newreactbuild/monaco-editor.js

185 lines
2.0 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"+3Gp":function(wt,P,o){"use strict";o.d(P,"a",function(){return U}),o.d(P,"b",function(){return j});var I=o("MNsG"),re=o("Yr1X"),ne=function(){var G=function(_,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(_,x)};return function(R,_){G(R,_);function x(){this.constructor=R}R.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}(),N=I.e?1.5:1.35,k=8,U=function(){function G(R){this.zoomLevel=R.zoomLevel,this.fontFamily=String(R.fontFamily),this.fontWeight=String(R.fontWeight),this.fontSize=R.fontSize,this.fontFeatureSettings=R.fontFeatureSettings,this.lineHeight=R.lineHeight|0,this.letterSpacing=R.letterSpacing}return G.createFromValidatedSettings=function(R,_,x){var K=R.get(33),D=R.get(37),A=R.get(36),te=R.get(35),H=R.get(49),E=R.get(46);return G._create(K,D,A,te,H,E,_,x)},G._create=function(R,_,x,K,D,A,te,H){D===0?D=Math.round(N*x):D<k&&(D=k);var E=1+(H?0:re.a.getZoomLevel()*.1);return x*=E,D*=E,new G({zoomLevel:te,fontFamily:R,fontWeight:_,fontSize:x,fontFeatureSettings:K,lineHeight:D,letterSpacing:A})},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}(),j=function(G){ne(R,G);function R(_,x){var K=G.call(this,_)||this;return K.isTrusted=x,K.isMonospace=_.isMonospace,K.typicalHalfwidthCharacterWidth=_.typicalHalfwidthCharacterWidth,K.typicalFullwidthCharacterWidth=_.typicalFullwidthCharacterWidth,K.canUseHalfwidthRightwardsArrow=_.canUseHalfwidthRightwardsArrow,K.spaceWidth=_.spaceWidth,K.middotWidth=_.middotWidth,K.maxDigitWidth=_.maxDigitWidth,K}return R.prototype.equals=function(_){return this.fontFamily===_.fontFamily&&this.fontWeight===_.fontWeight&&this.fontSize===_.fontSize&&this.fontFeatureSettings===_.fontFeatureSettings&&this.lineHeight===_.lineHeight&&this.letterSpacing===_.letterSpacing&&this.typicalHalfwidthCharacterWidth===_.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===_.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===_.canUseHalfwidthRightwardsArrow&&this.spaceWidth===_.spaceWidth&&this.middotWidth===_.middotWidth&&this.maxDigitWidth===_.maxDigitWidth},R}(U)},"+7oY":function(wt,P,o){"use strict";o.d(P,"a",function(){return N}),o.d(P,"i",function(){return k}),o.d(P,"b",function(){return U}),o.d(P,"h",function(){return j}),o.d(P,"d",function(){return R}),o.d(P,"c",function(){return _}),o.d(P,"e",function(){return x}),o.d(P,"g",function(){return K}),o.d(P,"f",function(){return D});var I=o("ic2d"),re=o("Cg/j"),ne=o("CRAX"),N=Object(re.c)("configurationService");function k(A,te){var H=Object.create(null);for(var E in A)U(H,E,A[E],te);return H}function U(A,te,H,E){for(var f=te.split("."),p=f.pop(),g=A,m=0;m<f.length;m++){var w=f[m],B=g[w];switch(typeof B){case"undefined":B=g[w]=Object.create(null);break;case"object":break;default:E("Ignoring "+te+" as "+f.slice(0,m+1).join(".")+" is "+JSON.stringify(B));return}g=B}typeof g=="object"?g[p]=H:E("Ignoring "+te+" as "+f.join(".")+" is "+JSON.stringify(g))}function j(A,te){var H=te.split(".");G(A,H)}function G(A,te){var H=te.shift();if(te.length===0){delete A[H];return}if(Object.keys(A).indexOf(H)!==-1){var E=A[H];typeof E=="object"&&!Array.isArray(E)&&(G(E,te),Object.keys(E).length===0&&delete A[H])}}function R(A,te,H){function E(g,m){for(var w=g,B=0,z=m;B<z.length;B++){var oe=z[B];if(typeof w!="object"||w===null)return;w=w[oe]}return w}var f=te.split("."),p=E(A,f);return typeof p=="undefined"?H:p}function _(){var A=I.a.as(ne.a.Configuration).getConfigurationProperties();return Object.keys(A)}function x(){var A=Object.create(null),te=I.a.as(ne.a.Configuration).getConfigurationProperties();for(var H in te){var E=te[H].default;U(A,H,E,function(f){return console.error("Conflict in default settings: "+f)})}return A}function K(A){return A.substring(1,A.length-1)}function D(A,te,H){var E=A.inspect(te),f=A.inspect(H);return typeof E.userValue!="undefined"||typeof E.workspaceValue!="undefined"||typeof E.workspaceFolderValue!="undefined"?E.value:typeof f.userValue!="undefined"||typeof f.workspaceValue!="undefined"||typeof f.workspaceFolderValue!="undefined"?f.value:E.defaultValue}},"+Fos":function(wt,P,o){"use strict";o.d(P,"a",function(){return U});var I=o("Ll0s"),re=o("cGHE"),ne=o("aokT"),N=o("N0LK"),k=function(){function j(G,R,_){this.lineNumber=G,this.column=R,this.leftoverVisibleColumns=_}return j}(),U=function(){function j(){}return j.leftPosition=function(G,R,_){return _>G.getLineMinColumn(R)?_=_-N.G(G.getLineContent(R),_-1):R>1&&(R=R-1,_=G.getLineMaxColumn(R)),new re.a(R,_)},j.left=function(G,R,_,x){var K=j.leftPosition(R,_,x);return new k(K.lineNumber,K.column,0)},j.moveLeft=function(G,R,_,x,K){var D,A;if(_.hasSelection()&&!x)D=_.selection.startLineNumber,A=_.selection.startColumn;else{var te=j.left(G,R,_.position.lineNumber,_.position.column-(K-1));D=te.lineNumber,A=te.column}return _.move(x,D,A,0)},j.rightPosition=function(G,R,_){return _<G.getLineMaxColumn(R)?_=_+N.E(G.getLineContent(R),_-1):R<G.getLineCount()&&(R=R+1,_=G.getLineMinColumn(R)),new re.a(R,_)},j.right=function(G,R,_,x){var K=j.rightPosition(R,_,x);return new k(K.lineNumber,K.column,0)},j.moveRight=function(G,R,_,x,K){var D,A;if(_.hasSelection()&&!x)D=_.selection.endLineNumber,A=_.selection.endColumn;else{var te=j.right(G,R,_.position.lineNumber,_.position.column+(K-1));D=te.lineNumber,A=te.column}return _.move(x,D,A,0)},j.down=function(G,R,_,x,K,D,A){var te=I.a.visibleColumnFromColumn(R.getLineContent(_),x,G.tabSize)+K;_=_+D;var H=R.getLineCount();return _>H?(_=H,A?x=R.getLineMaxColumn(_):x=Math.min(R.getLineMaxColumn(_),x)):x=I.a.columnFromVisibleColumn2(G,R,_,te),K=te-I.a.visibleColumnFromColumn(R.getLineContent(_),x,G.tabSize),new k(_,x,K)},j.moveDown=function(G,R,_,x,K){var D,A;_.hasSelection()&&!x?(D=_.selection.endLineNumber,A=_.selection.endColumn):(D=_.position.lineNumber,A=_.position.column);var te=j.down(G,R,D,A,_.leftoverVisibleColumns,K,!0);return _.move(x,te.lineNumber,te.column,te.leftoverVisibleColumns)},j.translateDown=function(G,R,_){var x=_.selection,K=j.down(G,R,x.selectionStartLineNumber,x.selectionStartColumn,_.selectionStartLeftoverVisibleColumns,1,!1),D=j.down(G,R,x.positionLineNumber,x.positionColumn,_.leftoverVisibleColumns,1,!1);return new I.f(new ne.a(K.lineNumber,K.column,K.lineNumber,K.column),K.leftoverVisibleColumns,new re.a(D.lineNumber,D.column),D.leftoverVisibleColumns)},j.up=function(G,R,_,x,K,D,A){var te=I.a.visibleColumnFromColumn(R.getLineContent(_),x,G.tabSize)+K;return _=_-D,_<1?(_=1,A?x=R.getLineMinColumn(_):x=Math.min(R.getLineMaxColumn(_),x)):x=I.a.columnFromVisibleColumn2(G,R,_,te),K=te-I.a.visibleColumnFromColumn(R.getLineContent(_),x,G.tabSize),new k(_,x,K)},j.moveUp=function(G,R,_,x,K){var D,A;_.hasSelection()&&!x?(D=_.selection.startLineNumber,A=_.selection.startColumn):(D=_.position.lineNumber,A=_.position.column);var te=j.up(G,R,D,A,_.leftoverVisibleColumns,K,!0);return _.move(x,te.lineNumber,te.column,te.leftoverVisibleColumns)},j.translateUp=function(G,R,_){var x=_.selection,K=j.up(G,R,x.selectionStartLineNumber,x.selectionStartColumn,_.selectionStartLeftoverVisibleColumns,1,!1),D=j.up(G,R,x.positionLineNumber,x.positionColumn,_.leftoverVisibleColumns,1,!1);return new I.f(new ne.a(K.lineNumber,K.column,K.lineNumber,K.column),K.leftoverVisibleColumns,new re.a(D.lineNumber,D.column),D.leftoverVisibleColumns)},j.moveToBeginningOfLine=function(G,R,_,x){var K=_.position.lineNumber,D=R.getLineMinColumn(K),A=R.getLineFirstNonWhitespaceColumn(K)||D,te,H=_.position.column;return H===A?te=D:te=A,_.move(x,K,te,0)},j.moveToEndOfLine=function(G,R,_,x){var K=_.position.lineNumber,D=R.getLineMaxColumn(K);return _.move(x,K,D,0)},j.moveToBeginningOfBuffer=function(G,R,_,x){return _.move(x,1,1,0)},j.moveToEndOfBuffer=function(G,R,_,x){var K=R.getLineCount(),D=R.getLineMaxColumn(K);return _.move(x,K,D,0)},j}()},"+a1H":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return o.e(215).then(o.bind(null,"O3xE"))}})},"+hIS":function(wt,P,o){"use strict";o.d(P,"a",function(){return U});var I=typeof monaco=="undefined"?self.monaco:monaco,re={},ne={},N=function(){function j(G){var R=this;this._languageId=G,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(_,x){R._lazyLoadPromiseResolve=_,R._lazyLoadPromiseReject=x})}return j.getOrCreate=function(G){return ne[G]||(ne[G]=new j(G)),ne[G]},j.prototype.whenLoaded=function(){return this._lazyLoadPromise},j.prototype.load=function(){var G=this;return this._loadingTriggered||(this._loadingTriggered=!0,re[this._languageId].loader().then(function(R){return G._lazyLoadPromiseResolve(R)},function(R){return G._lazyLoadPromiseReject(R)})),this._lazyLoadPromise},j}();function k(j){return N.getOrCreate(j).load()}function U(j){var G=j.id;re[G]=j,I.languages.register(j);var R=N.getOrCreate(G);I.languages.setMonarchTokensProvider(G,R.whenLoaded().then(function(_){return _.language})),I.languages.onLanguage(G,function(){R.load().then(function(_){I.languages.setLanguageConfiguration(G,_.conf)})})}},"/UlZ":function(wt,P,o){"use strict";o.d(P,"f",function(){return U}),o.d(P,"a",function(){return j}),o.d(P,"h",function(){return G}),o.d(P,"g",function(){return w}),o.d(P,"d",function(){return _e}),o.d(P,"j",function(){return ye}),o.d(P,"b",function(){return $e}),o.d(P,"c",function(){return we}),o.d(P,"i",function(){return F}),o.d(P,"e",function(){return Pe});var I=o("3/fG"),re=o("MNsG"),ne=o("0JNc"),N=function(){var ve=function(Ie,pe){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,_t){nt.__proto__=_t}||function(nt,_t){for(var Rt in _t)_t.hasOwnProperty(Rt)&&(nt[Rt]=_t[Rt])},ve(Ie,pe)};return function(Me,Ie){ve(Me,Ie);function pe(){this.constructor=Me}Me.prototype=Ie===null?Object.create(Ie):(pe.prototype=Ie.prototype,new pe)}}(),k=function(){return k=Object.assign||function(ve){for(var Me,Ie=1,pe=arguments.length;Ie<pe;Ie++){Me=arguments[Ie];for(var nt in Me)Object.prototype.hasOwnProperty.call(Me,nt)&&(ve[nt]=Me[nt])}return ve},k.apply(this,arguments)},U=8,j=function(){function ve(Me){this._values=Me}return ve.prototype.hasChanged=function(Me){return this._values[Me]},ve}(),G=function(){function ve(){this._values=[]}return ve.prototype._read=function(Me){return this._values[Me]},ve.prototype.get=function(Me){return this._values[Me]},ve.prototype._write=function(Me,Ie){this._values[Me]=Ie},ve}(),R=function(){function ve(Me,Ie,pe,nt){this.id=Me,this.name=Ie,this.defaultValue=pe,this.schema=nt}return ve.prototype.compute=function(Me,Ie,pe){return pe},ve}(),_=function(){function ve(Me,Ie){Ie===void 0&&(Ie=null),this.schema=void 0,this.id=Me,this.name="_never_",this.defaultValue=void 0,this.deps=Ie}return ve.prototype.validate=function(Me){return this.defaultValue},ve}(),x=function(){function ve(Me,Ie,pe,nt){this.id=Me,this.name=Ie,this.defaultValue=pe,this.schema=nt}return ve.prototype.validate=function(Me){return typeof Me=="undefined"?this.defaultValue:Me},ve.prototype.compute=function(Me,Ie,pe){return pe},ve}(),K=function(ve){N(Me,ve);function Me(Ie,pe,nt,_t){_t===void 0&&(_t=void 0);var Rt=this;return typeof _t!="undefined"&&(_t.type="boolean",_t.default=nt),Rt=ve.call(this,Ie,pe,nt,_t)||this,Rt}return Me.boolean=function(Ie,pe){return typeof Ie=="undefined"?pe:Ie==="false"?!1:Boolean(Ie)},Me.prototype.validate=function(Ie){return Me.boolean(Ie,this.defaultValue)},Me}(x),D=function(ve){N(Me,ve);function Me(Ie,pe,nt,_t,Rt,Mt){Mt===void 0&&(Mt=void 0);var zt=this;return typeof Mt!="undefined"&&(Mt.type="integer",Mt.default=nt,Mt.minimum=_t,Mt.maximum=Rt),zt=ve.call(this,Ie,pe,nt,Mt)||this,zt.minimum=_t,zt.maximum=Rt,zt}return Me.clampedInt=function(Ie,pe,nt,_t){var Rt;return typeof Ie=="undefined"?Rt=pe:(Rt=parseInt(Ie,10),isNaN(Rt)&&(Rt=pe)),Rt=Math.max(nt,Rt),Rt=Math.min(_t,Rt),Rt|0},Me.prototype.validate=function(Ie){return Me.clampedInt(Ie,this.defaultValue,this.minimum,this.maximum)},Me}(x),A=function(ve){N(Me,ve);function Me(Ie,pe,nt,_t,Rt){var Mt=this;return typeof Rt!="undefined"&&(Rt.type="number",Rt.default=nt),Mt=ve.call(this,Ie,pe,nt,Rt)||this,Mt.validationFn=_t,Mt}return Me.clamp=function(Ie,pe,nt){return Ie<pe?pe:Ie>nt?nt:Ie},Me.float=function(Ie,pe){if(typeof Ie=="number")return Ie;if(typeof Ie=="undefined")return pe;var nt=parseFloat(Ie);return isNaN(nt)?pe:nt},Me.prototype.validate=function(Ie){return this.validationFn(Me.float(Ie,this.defaultValue))},Me}(x),te=function(ve){N(Me,ve);function Me(Ie,pe,nt,_t){_t===void 0&&(_t=void 0);var Rt=this;return typeof _t!="undefined"&&(_t.type="string",_t.default=nt),Rt=ve.call(this,Ie,pe,nt,_t)||this,Rt}return Me.string=function(Ie,pe){return typeof Ie!="string"?pe:Ie},Me.prototype.validate=function(Ie){return Me.string(Ie,this.defaultValue)},Me}(x),H=function(ve){N(Me,ve);function Me(Ie,pe,nt,_t,Rt){Rt===void 0&&(Rt=void 0);var Mt=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=_t,Rt.default=nt),Mt=ve.call(this,Ie,pe,nt,Rt)||this,Mt._allowedValues=_t,Mt}return Me.stringSet=function(Ie,pe,nt){return typeof Ie!="string"||nt.indexOf(Ie)===-1?pe:Ie},Me.prototype.validate=function(Ie){return Me.stringSet(Ie,this.defaultValue,this._allowedValues)},Me}(x),E=function(ve){N(Me,ve);function Me(Ie,pe,nt,_t,Rt,Mt,zt){zt===void 0&&(zt=void 0);var Gt=this;return typeof zt!="undefined"&&(zt.type="string",zt.enum=Rt,zt.default=_t),Gt=ve.call(this,Ie,pe,nt,zt)||this,Gt._allowedValues=Rt,Gt._convert=Mt,Gt}return Me.prototype.validate=function(Ie){return typeof Ie!="string"?this.defaultValue:this._allowedValues.indexOf(Ie)===-1?this.defaultValue:this._convert(Ie)},Me}(R);function f(ve){switch(ve){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var p=function(ve){N(Me,ve);function Me(){return ve.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[I.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),I.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),I.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:I.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return Me.prototype.validate=function(Ie){switch(Ie){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},Me.prototype.compute=function(Ie,pe,nt){return nt===0?Ie.accessibilitySupport:nt},Me}(R),g=function(ve){N(Me,ve);function Me(){var Ie=this,pe={insertSpace:!0};return Ie=ve.call(this,13,"comments",pe,{"editor.comments.insertSpace":{type:"boolean",default:pe.insertSpace,description:I.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,Ie}return Me.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{insertSpace:K.boolean(pe.insertSpace,this.defaultValue.insertSpace)}},Me}(R);function m(ve){switch(ve){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var w;(function(ve){ve[ve.Line=1]="Line",ve[ve.Block=2]="Block",ve[ve.Underline=3]="Underline",ve[ve.LineThin=4]="LineThin",ve[ve.BlockOutline=5]="BlockOutline",ve[ve.UnderlineThin=6]="UnderlineThin"})(w||(w={}));function B(ve){switch(ve){case"line":return w.Line;case"block":return w.Block;case"underline":return w.Underline;case"line-thin":return w.LineThin;case"block-outline":return w.BlockOutline;case"underline-thin":return w.UnderlineThin}}var z=function(ve){N(Me,ve);function Me(){return ve.call(this,104,[55,26])||this}return Me.prototype.compute=function(Ie,pe,nt){var _t="monaco-editor";return pe.get(26)&&(_t+=" "+pe.get(26)),Ie.extraEditorClassName&&(_t+=" "+Ie.extraEditorClassName),pe.get(55)==="default"?_t+=" mouse-default":pe.get(55)==="copy"&&(_t+=" mouse-copy"),pe.get(85)&&(_t+=" showUnused"),_t},Me}(_),oe=function(ve){N(Me,ve);function Me(){return ve.call(this,25,"emptySelectionClipboard",!0,{description:I.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return Me.prototype.compute=function(Ie,pe,nt){return nt&&Ie.emptySelectionClipboard},Me}(K),he=function(ve){N(Me,ve);function Me(){var Ie=this,pe={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return Ie=ve.call(this,28,"find",pe,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:pe.seedSearchStringFromSelection,description:I.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:pe.autoFindInSelection,enumDescriptions:[I.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),I.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),I.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:I.a("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:pe.globalFindClipboard,description:I.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:re.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:pe.addExtraSpaceOnTop,description:I.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,Ie}return Me.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{seedSearchStringFromSelection:K.boolean(pe.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Ie.autoFindInSelection=="boolean"?Ie.autoFindInSelection?"always":"never":H.stringSet(pe.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:K.boolean(pe.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:K.boolean(pe.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},Me}(R),_e=function(ve){N(Me,ve);function Me(){return ve.call(this,35,"fontLigatures",Me.OFF,{anyOf:[{type:"boolean",description:I.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:I.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:I.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return Me.prototype.validate=function(Ie){return typeof Ie=="undefined"?this.defaultValue:typeof Ie=="string"?Ie==="false"?Me.OFF:Ie==="true"?Me.ON:Ie:Boolean(Ie)?Me.ON:Me.OFF},Me.OFF='"liga" off, "calt" off',Me.ON='"liga" on, "calt" on',Me}(R),Se=function(ve){N(Me,ve);function Me(){return ve.call(this,34)||this}return Me.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo},Me}(_),q=function(ve){N(Me,ve);function Me(){return ve.call(this,36,"fontSize",$e.fontSize,{type:"number",minimum:6,maximum:100,default:$e.fontSize,description:I.a("fontSize","Controls the font size in pixels.")})||this}return Me.prototype.validate=function(Ie){var pe=A.float(Ie,this.defaultValue);return pe===0?$e.fontSize:A.clamp(pe,6,100)},Me.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo.fontSize},Me}(x),Z=function(ve){N(Me,ve);function Me(){var Ie=this,pe={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},nt={type:"string",enum:["peek","gotoAndPeek","goto"],default:pe.multiple,enumDescriptions:[I.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),I.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),I.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return Ie=ve.call(this,41,"gotoLocation",pe,{"editor.gotoLocation.multiple":{deprecationMessage:I.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":k({description:I.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleTypeDefinitions":k({description:I.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleDeclarations":k({description:I.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleImplementations":k({description:I.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleReferences":k({description:I.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},nt),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:pe.alternativeDefinitionCommand,description:I.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:pe.alternativeTypeDefinitionCommand,description:I.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:pe.alternativeDeclarationCommand,description:I.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:pe.alternativeImplementationCommand,description:I.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:pe.alternativeReferenceCommand,description:I.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,Ie}return Me.prototype.validate=function(Ie){var pe,nt,_t,Rt,Mt;if(typeof Ie!="object")return this.defaultValue;var zt=Ie;return{multiple:H.stringSet(zt.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(pe=zt.multipleDefinitions)!==null&&pe!==void 0?pe:H.stringSet(zt.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(nt=zt.multipleTypeDefinitions)!==null&&nt!==void 0?nt:H.stringSet(zt.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(_t=zt.multipleDeclarations)!==null&&_t!==void 0?_t:H.stringSet(zt.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Rt=zt.multipleImplementations)!==null&&Rt!==void 0?Rt:H.stringSet(zt.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Mt=zt.multipleReferences)!==null&&Mt!==void 0?Mt:H.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}(R),ce=function(ve){N(Me,ve);function Me(){var Ie=this,pe={enabled:!0,delay:300,sticky:!0};return Ie=ve.call(this,44,"hover",pe,{"editor.hover.enabled":{type:"boolean",default:pe.enabled,description:I.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:pe.delay,description:I.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:pe.sticky,description:I.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,Ie}return Me.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),delay:D.clampedInt(pe.delay,this.defaultValue.delay,0,1e4),sticky:K.boolean(pe.sticky,this.defaultValue.sticky)}},Me}(R),Te=function(ve){N(Me,ve);function Me(){return ve.call(this,107,[40,48,30,54,78,50])||this}return Me.prototype.compute=function(Ie,pe,nt){return Me.computeLayout(pe,{outerWidth:Ie.outerWidth,outerHeight:Ie.outerHeight,lineHeight:Ie.fontInfo.lineHeight,lineNumbersDigitCount:Ie.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Ie.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Ie.fontInfo.maxDigitWidth,pixelRatio:Ie.pixelRatio})},Me.computeLayout=function(Ie,pe){var nt=pe.outerWidth|0,_t=pe.outerHeight|0,Rt=pe.lineHeight|0,Mt=pe.lineNumbersDigitCount|0,zt=pe.typicalHalfwidthCharacterWidth,Gt=pe.maxDigitWidth,on=pe.pixelRatio,Ln=Ie.get(40),yn=Ie.get(50).renderType!==0,Mn=Ie.get(51)|0,kt=Ie.get(54),pt=kt.enabled,gt=kt.side,Dt=kt.renderCharacters,Lt=on>=2?Math.round(kt.scale*2):kt.scale,Vt=kt.maxColumn|0,Jt=Ie.get(78),nn=Jt.verticalScrollbarSize|0,sn=Jt.verticalHasArrows,ln=Jt.arrowSize|0,_n=Jt.horizontalScrollbarSize|0,On=Ie.get(48),Pn=Ie.get(30),Gn;if(typeof On=="string"&&/^\d+(\.\d+)?ch$/.test(On)){var Jn=parseFloat(On.substr(0,On.length-2));Gn=D.clampedInt(Jn*zt,0,0,1e3)}else Gn=D.clampedInt(On,0,0,1e3);Pn&&(Gn+=16);var Qn=0;if(yn){var gi=Math.max(Mt,Mn);Qn=Math.round(gi*Gt)}var Kn=0;Ln&&(Kn=Rt);var yi=0,mi=yi+Kn,vt=mi+Qn,Tt=vt+Gn,Ht=nt-Kn-Qn-Gn,tn,Ut,Sn,Rn;if(!pt)Ut=0,Sn=0,tn=0,Rn=Ht;else{var Bn=Lt/on;tn=Dt?1:2,Sn=Math.max(0,Math.floor((Ht-nn-2)*Bn/(zt+Bn)))+U;var kn=Sn/Bn;kn>Vt&&(Sn=Math.floor(Vt*Bn)),Rn=Ht-Sn,gt==="left"?(Ut=0,yi+=Sn,mi+=Sn,vt+=Sn,Tt+=Sn):Ut=nt-Sn-nn}var oi=Math.max(1,Math.floor((Rn-nn-2)/zt)),ci=sn?ln:0;return{width:nt,height:_t,glyphMarginLeft:yi,glyphMarginWidth:Kn,lineNumbersLeft:mi,lineNumbersWidth:Qn,decorationsLeft:vt,decorationsWidth:Gn,contentLeft:Tt,contentWidth:Rn,renderMinimap:tn,minimapLeft:Ut,minimapWidth:Sn,viewportColumn:oi,verticalScrollbarWidth:nn,horizontalScrollbarHeight:_n,overviewRuler:{top:ci,width:nn,height:_t-2*ci,right:0}}},Me}(_),Ve=function(ve){N(Me,ve);function Me(){var Ie=this,pe={enabled:!0};return Ie=ve.call(this,47,"lightbulb",pe,{"editor.lightbulb.enabled":{type:"boolean",default:pe.enabled,description:I.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,Ie}return Me.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled)}},Me}(R),Ee=function(ve){N(Me,ve);function Me(){return ve.call(this,49,"lineHeight",$e.lineHeight,0,150,{description:I.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return Me.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo.lineHeight},Me}(D),de=function(ve){N(Me,ve);function Me(){var Ie=this,pe={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Ie=ve.call(this,54,"minimap",pe,{"editor.minimap.enabled":{type:"boolean",default:pe.enabled,description:I.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:pe.side,description:I.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:pe.showSlider,description:I.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:pe.scale,minimum:1,maximum:3,description:I.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:pe.renderCharacters,description:I.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:pe.maxColumn,description:I.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,Ie}return Me.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),side:H.stringSet(pe.side,this.defaultValue.side,["right","left"]),showSlider:H.stringSet(pe.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:K.boolean(pe.renderCharacters,this.defaultValue.renderCharacters),scale:D.clampedInt(pe.scale,1,1,3),maxColumn:D.clampedInt(pe.maxColumn,this.defaultValue.maxColumn,1,1e4)}},Me}(R);function se(ve){return ve==="ctrlCmd"?re.e?"metaKey":"ctrlKey":"altKey"}var fe=function(ve){N(Me,ve);function Me(){var Ie=this,pe={enabled:!0,cycle:!1};return Ie=ve.call(this,64,"parameterHints",pe,{"editor.parameterHints.enabled":{type:"boolean",default:pe.enabled,description:I.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:pe.cycle,description:I.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,Ie}return Me.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),cycle:K.boolean(pe.cycle,this.defaultValue.cycle)}},Me}(R),ie=function(ve){N(Me,ve);function Me(){return ve.call(this,105)||this}return Me.prototype.compute=function(Ie,pe,nt){return Ie.pixelRatio},Me}(_),Q=function(ve){N(Me,ve);function Me(){var Ie=this,pe={other:!0,comments:!1,strings:!1};return Ie=ve.call(this,66,"quickSuggestions",pe,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:pe.strings,description:I.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:pe.comments,description:I.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:pe.other,description:I.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:pe,description:I.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,Ie.defaultValue=pe,Ie}return Me.prototype.validate=function(Ie){if(typeof Ie=="boolean")return Ie;if(typeof Ie=="object"){var pe=Ie,nt={other:K.boolean(pe.other,this.defaultValue.other),comments:K.boolean(pe.comments,this.defaultValue.comments),strings:K.boolean(pe.strings,this.defaultValue.strings)};return nt.other&&nt.comments&&nt.strings?!0:!nt.other&&!nt.comments&&!nt.strings?!1:nt}return this.defaultValue},Me}(R),me=function(ve){N(Me,ve);function Me(){return ve.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[I.a("lineNumbers.off","Line numbers are not rendered."),I.a("lineNumbers.on","Line numbers are rendered as absolute number."),I.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),I.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:I.a("lineNumbers","Controls the display of line numbers.")})||this}return Me.prototype.validate=function(Ie){var pe=this.defaultValue.renderType,nt=this.defaultValue.renderFn;return typeof Ie!="undefined"&&(typeof Ie=="function"?(pe=4,nt=Ie):Ie==="interval"?pe=3:Ie==="relative"?pe=2:Ie==="on"?pe=1:pe=0),{renderType:pe,renderFn:nt}},Me}(R);function ye(ve){var Me=ve.get(73);return Me==="editable"?ve.get(68):!(Me==="on")}var He=function(ve){N(Me,ve);function Me(){var Ie=this,pe=[];return Ie=ve.call(this,77,"rulers",pe,{type:"array",items:{type:"number"},default:pe,description:I.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,Ie}return Me.prototype.validate=function(Ie){if(Array.isArray(Ie)){for(var pe=[],nt=0,_t=Ie;nt<_t.length;nt++){var Rt=_t[nt];pe.push(D.clampedInt(Rt,0,0,1e4))}return pe.sort(function(Mt,zt){return Mt-zt}),pe}return this.defaultValue},Me}(x);function tt(ve,Me){if(typeof ve!="string")return Me;switch(ve){case"hidden":return 2;case"visible":return 3;default:return 1}}var Et=function(ve){N(Me,ve);function Me(){return ve.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(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie,nt=D.clampedInt(pe.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),_t=D.clampedInt(pe.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:D.clampedInt(pe.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:tt(pe.vertical,this.defaultValue.vertical),horizontal:tt(pe.horizontal,this.defaultValue.horizontal),useShadows:K.boolean(pe.useShadows,this.defaultValue.useShadows),verticalHasArrows:K.boolean(pe.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:K.boolean(pe.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:K.boolean(pe.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:K.boolean(pe.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:nt,horizontalSliderSize:D.clampedInt(pe.horizontalSliderSize,nt,0,1e3),verticalScrollbarSize:_t,verticalSliderSize:D.clampedInt(pe.verticalSliderSize,_t,0,1e3)}},Me}(R),Pt=function(ve){N(Me,ve);function Me(){var Ie=this,pe={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 Ie=ve.call(this,89,"suggest",pe,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[I.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),I.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:pe.insertMode,description:I.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:pe.insertHighlight,description:I.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:pe.filterGraceful,description:I.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:pe.localityBonus,description:I.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:pe.shareSuggestSelections,markdownDescription:I.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:pe.snippetsPreventQuickSuggestions,description:I.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:pe.showIcons,description:I.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:pe.maxVisibleSuggestions,minimum:1,maximum:15,description:I.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:I.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:I.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this,Ie}return Me.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{insertMode:H.stringSet(pe.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:K.boolean(pe.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:K.boolean(pe.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:K.boolean(pe.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:K.boolean(pe.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:K.boolean(pe.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:K.boolean(pe.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:D.clampedInt(pe.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:K.boolean(pe.showMethods,this.defaultValue.showMethods),showFunctions:K.boolean(pe.showFunctions,this.defaultValue.showFunctions),showConstructors:K.boolean(pe.showConstructors,this.defaultValue.showConstructors),showFields:K.boolean(pe.showFields,this.defaultValue.showFields),showVariables:K.boolean(pe.showVariables,this.defaultValue.showVariables),showClasses:K.boolean(pe.showClasses,this.defaultValue.showClasses),showStructs:K.boolean(pe.showStructs,this.defaultValue.showStructs),showInterfaces:K.boolean(pe.showInterfaces,this.defaultValue.showInterfaces),showModules:K.boolean(pe.showModules,this.defaultValue.showModules),showProperties:K.boolean(pe.showProperties,this.defaultValue.showProperties),showEvents:K.boolean(pe.showEvents,this.defaultValue.showEvents),showOperators:K.boolean(pe.showOperators,this.defaultValue.showOperators),showUnits:K.boolean(pe.showUnits,this.defaultValue.showUnits),showValues:K.boolean(pe.showValues,this.defaultValue.showValues),showConstants:K.boolean(pe.showConstants,this.defaultValue.showConstants),showEnums:K.boolean(pe.showEnums,this.defaultValue.showEnums),showEnumMembers:K.boolean(pe.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:K.boolean(pe.showKeywords,this.defaultValue.showKeywords),showWords:K.boolean(pe.showWords,this.defaultValue.showWords),showColors:K.boolean(pe.showColors,this.defaultValue.showColors),showFiles:K.boolean(pe.showFiles,this.defaultValue.showFiles),showReferences:K.boolean(pe.showReferences,this.defaultValue.showReferences),showFolders:K.boolean(pe.showFolders,this.defaultValue.showFolders),showTypeParameters:K.boolean(pe.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:K.boolean(pe.showSnippets,this.defaultValue.showSnippets),hideStatusBar:K.boolean(pe.hideStatusBar,this.defaultValue.hideStatusBar)}},Me}(R),Xt=function(ve){N(Me,ve);function Me(){return ve.call(this,106,[68])||this}return Me.prototype.compute=function(Ie,pe,nt){var _t=pe.get(68);return _t?!0:Ie.tabFocusMode},Me}(_);function Ke(ve){switch(ve){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var Xe=function(ve){N(Me,ve);function Me(){return ve.call(this,108,[97,100,101,107,2])||this}return Me.prototype.compute=function(Ie,pe,nt){var _t=pe.get(97),Rt=pe.get(100),Mt=pe.get(101),zt=pe.get(107),Gt=pe.get(2),on=null;return Gt===2?on={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:Mt&&Ie.isDominatedByLongLines?on={isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,zt.viewportColumn)}:_t==="on"?on={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,zt.viewportColumn)}:_t==="bounded"?on={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,zt.viewportColumn),Rt)}:_t==="wordWrapColumn"?on={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:Rt}:on={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:Ie.isDominatedByLongLines,isWordWrapMinified:on.isWordWrapMinified,isViewportWrapping:on.isViewportWrapping,wrappingColumn:on.wrappingColumn}},Me}(_),Ze="Consolas, 'Courier New', monospace",Ye="Menlo, Monaco, 'Courier New', monospace",Fe="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",$e={fontFamily:re.e?Ye:re.d?Fe:Ze,fontWeight:"normal",fontSize:re.e?12:14,lineHeight:0,letterSpacing:0},we={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},F=[];function ee(ve){return F[ve.id]=ve,ve}var Pe={acceptSuggestionOnCommitCharacter:ee(new K(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:I.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 H(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",I.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:I.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 p),accessibilityPageSize:ee(new D(3,"accessibilityPageSize",10,1,1073741824,{description:I.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",I.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new H(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",I.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),I.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:I.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:ee(new H(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",I.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:I.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new H(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",I.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),I.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:I.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new E(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],f,{enumDescriptions:[I.a("editor.autoIndent.none","The editor will not insert indentation automatically."),I.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),I.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),I.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),I.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:I.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 H(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[I.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),I.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),I.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:I.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:ee(new K(11,"codeLens",!0,{description:I.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:ee(new K(12,"colorDecorators",!0,{description:I.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:ee(new g),contextmenu:ee(new K(14,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new K(15,"copyWithSyntaxHighlighting",!0,{description:I.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new E(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],m,{description:I.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new K(17,"cursorSmoothCaretAnimation",!1,{description:I.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new E(18,"cursorStyle",w.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],B,{description:I.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new D(19,"cursorSurroundingLines",0,0,1073741824,{description:I.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 H(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[I.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),I.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:I.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new D(21,"cursorWidth",0,0,1073741824,{markdownDescription:I.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:I.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 A(27,"fastScrollSensitivity",5,function(ve){return ve<=0?5:ve},{markdownDescription:I.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new he),fixedOverflowWidgets:ee(new K(29,"fixedOverflowWidgets",!1)),folding:ee(new K(30,"folding",!0,{description:I.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new H(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:I.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:I.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:ee(new te(33,"fontFamily",$e.fontFamily,{description:I.a("fontFamily","Controls the font family.")})),fontInfo:ee(new Se),fontLigatures2:ee(new _e),fontSize:ee(new q),fontWeight:ee(new te(37,"fontWeight",$e.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:I.a("fontWeight","Controls the font weight.")})),formatOnPaste:ee(new K(38,"formatOnPaste",!1,{description:I.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:I.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new K(40,"glyphMargin",!0,{description:I.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new Z),hideCursorInOverviewRuler:ee(new K(42,"hideCursorInOverviewRuler",!1,{description:I.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:ee(new K(43,"highlightActiveIndentGuide",!0,{description:I.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 A(46,"letterSpacing",$e.letterSpacing,function(ve){return A.clamp(ve,-5,20)},{description:I.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new Ve),lineDecorationsWidth:ee(new x(48,"lineDecorationsWidth",10)),lineHeight:ee(new Ee),lineNumbers:ee(new me),lineNumbersMinChars:ee(new D(51,"lineNumbersMinChars",5,1,300)),links:ee(new K(52,"links",!0,{description:I.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new H(53,"matchBrackets","always",["always","near","never"],{description:I.a("matchBrackets","Highlight matching brackets.")})),minimap:ee(new de),mouseStyle:ee(new H(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new A(56,"mouseWheelScrollSensitivity",1,function(ve){return ve===0?1:ve},{markdownDescription:I.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:I.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new K(58,"multiCursorMergeOverlapping",!0,{description:I.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new E(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],se,{markdownEnumDescriptions:[I.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),I.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:I.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 H(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[I.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),I.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:I.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:ee(new K(61,"occurrencesHighlight",!0,{description:I.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new K(62,"overviewRulerBorder",!0,{description:I.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 fe),peekWidgetDefaultFocus:ee(new H(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[I.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),I.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:I.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:ee(new Q),quickSuggestionsDelay:ee(new D(67,"quickSuggestionsDelay",10,0,1073741824,{description:I.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:I.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:ee(new K(70,"renderIndentGuides",!0,{description:I.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:ee(new K(71,"renderFinalNewline",!0,{description:I.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new H(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",I.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:I.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:ee(new H(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ee(new H(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",I.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),I.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:I.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:I.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new He),scrollbar:ee(new Et),scrollBeyondLastColumn:ee(new D(79,"scrollBeyondLastColumn",5,0,1073741824,{description:I.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new K(80,"scrollBeyondLastLine",!0,{description:I.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:ee(new K(81,"selectionClipboard",!0,{description:I.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:re.d})),selectionHighlight:ee(new K(82,"selectionHighlight",!0,{description:I.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new K(83,"selectOnLineNumbers",!0)),showFoldingControls:ee(new H(84,"showFoldingControls","mouseover",["always","mouseover"],{description:I.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:ee(new K(85,"showUnused",!0,{description:I.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:ee(new H(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[I.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),I.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),I.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),I.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:I.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:ee(new K(87,"smoothScrolling",!1,{description:I.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new D(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new Pt),suggestFontSize:ee(new D(90,"suggestFontSize",0,0,1e3,{markdownDescription:I.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:I.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:I.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new H(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[I.a("suggestSelection.first","Always select the first suggestion."),I.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),I.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:I.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new H(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[I.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),I.a("tabCompletion.off","Disable tab completions."),I.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:I.a("tabCompletion","Enables tab completions.")})),useTabStops:ee(new K(95,"useTabStops",!0,{description:I.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ee(new te(96,"wordSeparators",ne.b,{description:I.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new H(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[I.a("wordWrap.off","Lines will never wrap."),I.a("wordWrap.on","Lines will wrap at the viewport width."),I.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),I.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:I.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new te(98,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:ee(new te(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:ee(new D(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:I.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:ee(new K(101,"wordWrapMinified",!0)),wrappingIndent:ee(new E(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],Ke,{enumDescriptions:[I.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),I.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),I.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),I.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:I.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ee(new H(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[I.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),I.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:I.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ee(new z),pixelRatio:ee(new ie),tabFocusMode:ee(new Xt),layoutInfo:ee(new Te),wrappingInfo:ee(new Xe)}},"/cAr":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return o.e(224).then(o.bind(null,"8m5U"))}})},"/cxE":function(wt,P,o){"use strict";o.d(P,"e",function(){return ne}),o.d(P,"f",function(){return N}),o.d(P,"g",function(){return k}),o.d(P,"d",function(){return j}),o.d(P,"a",function(){return G}),o.d(P,"b",function(){return R}),o.d(P,"c",function(){return _});var I=function(){function x(){this.listeners=[],this.unexpectedErrorHandler=function(K){setTimeout(function(){throw K.stack?new Error(K.message+`
`+K.stack):K},0)}}return x.prototype.emit=function(K){this.listeners.forEach(function(D){D(K)})},x.prototype.onUnexpectedError=function(K){this.unexpectedErrorHandler(K),this.emit(K)},x.prototype.onUnexpectedExternalError=function(K){this.unexpectedErrorHandler(K)},x}(),re=new I;function ne(x){j(x)||re.onUnexpectedError(x);return}function N(x){j(x)||re.onUnexpectedExternalError(x);return}function k(x){if(x instanceof Error){var K=x.name,D=x.message,A=x.stacktrace||x.stack;return{$isError:!0,name:K,message:D,stack:A}}return x}var U="Canceled";function j(x){return x instanceof Error&&x.name===U&&x.message===U}function G(){var x=new Error(U);return x.name=x.message,x}function R(x){return x?new Error("Illegal argument: "+x):new Error("Illegal argument")}function _(x){return x?new Error("Illegal state: "+x):new Error("Illegal state")}},"/kV6":function(wt,P,o){"use strict";o.d(P,"b",function(){return U}),o.d(P,"a",function(){return j}),o.d(P,"f",function(){return G}),o.d(P,"e",function(){return _}),o.d(P,"d",function(){return K}),o.d(P,"c",function(){return D});var I=o("/cxE"),re=function(){function A(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return A.prototype.define=function(te,H){this._keyCodeToStr[te]=H,this._strToKeyCode[H.toLowerCase()]=te},A.prototype.keyCodeToStr=function(te){return this._keyCodeToStr[te]},A.prototype.strToKeyCode=function(te){return this._strToKeyCode[te.toLowerCase()]||0},A}(),ne=new re,N=new re,k=new re;(function(){function A(te,H,E,f){E===void 0&&(E=H),f===void 0&&(f=E),ne.define(te,H),N.define(te,E),k.define(te,f)}A(0,"unknown"),A(1,"Backspace"),A(2,"Tab"),A(3,"Enter"),A(4,"Shift"),A(5,"Ctrl"),A(6,"Alt"),A(7,"PauseBreak"),A(8,"CapsLock"),A(9,"Escape"),A(10,"Space"),A(11,"PageUp"),A(12,"PageDown"),A(13,"End"),A(14,"Home"),A(15,"LeftArrow","Left"),A(16,"UpArrow","Up"),A(17,"RightArrow","Right"),A(18,"DownArrow","Down"),A(19,"Insert"),A(20,"Delete"),A(21,"0"),A(22,"1"),A(23,"2"),A(24,"3"),A(25,"4"),A(26,"5"),A(27,"6"),A(28,"7"),A(29,"8"),A(30,"9"),A(31,"A"),A(32,"B"),A(33,"C"),A(34,"D"),A(35,"E"),A(36,"F"),A(37,"G"),A(38,"H"),A(39,"I"),A(40,"J"),A(41,"K"),A(42,"L"),A(43,"M"),A(44,"N"),A(45,"O"),A(46,"P"),A(47,"Q"),A(48,"R"),A(49,"S"),A(50,"T"),A(51,"U"),A(52,"V"),A(53,"W"),A(54,"X"),A(55,"Y"),A(56,"Z"),A(57,"Meta"),A(58,"ContextMenu"),A(59,"F1"),A(60,"F2"),A(61,"F3"),A(62,"F4"),A(63,"F5"),A(64,"F6"),A(65,"F7"),A(66,"F8"),A(67,"F9"),A(68,"F10"),A(69,"F11"),A(70,"F12"),A(71,"F13"),A(72,"F14"),A(73,"F15"),A(74,"F16"),A(75,"F17"),A(76,"F18"),A(77,"F19"),A(78,"NumLock"),A(79,"ScrollLock"),A(80,";",";","OEM_1"),A(81,"=","=","OEM_PLUS"),A(82,",",",","OEM_COMMA"),A(83,"-","-","OEM_MINUS"),A(84,".",".","OEM_PERIOD"),A(85,"/","/","OEM_2"),A(86,"`","`","OEM_3"),A(110,"ABNT_C1"),A(111,"ABNT_C2"),A(87,"[","[","OEM_4"),A(88,"\\","\\","OEM_5"),A(89,"]","]","OEM_6"),A(90,"'","'","OEM_7"),A(91,"OEM_8"),A(92,"OEM_102"),A(93,"NumPad0"),A(94,"NumPad1"),A(95,"NumPad2"),A(96,"NumPad3"),A(97,"NumPad4"),A(98,"NumPad5"),A(99,"NumPad6"),A(100,"NumPad7"),A(101,"NumPad8"),A(102,"NumPad9"),A(103,"NumPad_Multiply"),A(104,"NumPad_Add"),A(105,"NumPad_Separator"),A(106,"NumPad_Subtract"),A(107,"NumPad_Decimal"),A(108,"NumPad_Divide")})();var U;(function(A){function te(g){return ne.keyCodeToStr(g)}A.toString=te;function H(g){return ne.strToKeyCode(g)}A.fromString=H;function E(g){return N.keyCodeToStr(g)}A.toUserSettingsUS=E;function f(g){return k.keyCodeToStr(g)}A.toUserSettingsGeneral=f;function p(g){return N.strToKeyCode(g)||k.strToKeyCode(g)}A.fromUserSettings=p})(U||(U={}));function j(A,te){var H=(te&65535)<<16>>>0;return(A|H)>>>0}function G(A,te){if(A===0)return null;var H=(A&65535)>>>0,E=(A&4294901760)>>>16;return E!==0?new x([R(H,te),R(E,te)]):new x([R(H,te)])}function R(A,te){var H=!!(A&2048),E=!!(A&256),f=te===2?E:H,p=!!(A&1024),g=!!(A&512),m=te===2?H:E,w=A&255;return new _(f,p,g,m,w)}var _=function(){function A(te,H,E,f,p){this.ctrlKey=te,this.shiftKey=H,this.altKey=E,this.metaKey=f,this.keyCode=p}return A.prototype.equals=function(te){return this.ctrlKey===te.ctrlKey&&this.shiftKey===te.shiftKey&&this.altKey===te.altKey&&this.metaKey===te.metaKey&&this.keyCode===te.keyCode},A.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},A.prototype.toChord=function(){return new x([this])},A.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},A}(),x=function(){function A(te){if(te.length===0)throw Object(I.b)("parts");this.parts=te}return A.prototype.equals=function(te){if(te===null)return!1;if(this.parts.length!==te.parts.length)return!1;for(var H=0;H<this.parts.length;H++)if(!this.parts[H].equals(te.parts[H]))return!1;return!0},A}(),K=function(){function A(te,H,E,f,p,g){this.ctrlKey=te,this.shiftKey=H,this.altKey=E,this.metaKey=f,this.keyLabel=p,this.keyAriaLabel=g}return A}(),D=function(){function A(){}return A}()},"/oaI":function(wt,P,o){},"0/Sa":function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("aokT"),re=function(){function ne(){}return ne.insert=function(N,k){return{range:new I.a(N.lineNumber,N.column,N.lineNumber,N.column),text:k,forceMoveMarkers:!0}},ne.delete=function(N){return{range:N,text:null}},ne.replace=function(N,k){return{range:N,text:k}},ne.replaceMove=function(N,k){return{range:N,text:k,forceMoveMarkers:!0}},ne}()},"09fa":function(wt,P,o){"use strict";o.d(P,"a",function(){return re}),o.d(P,"b",function(){return ne}),o.d(P,"c",function(){return N});var I=o("Cg/j"),re=Object(I.c)("logService"),ne;(function(k){k[k.Trace=0]="Trace",k[k.Debug=1]="Debug",k[k.Info=2]="Info",k[k.Warning=3]="Warning",k[k.Error=4]="Error",k[k.Critical=5]="Critical",k[k.Off=6]="Off"})(ne||(ne={}));var N=function(){function k(){}return k.prototype.getLevel=function(){return ne.Info},k.prototype.trace=function(U){for(var j=[],G=1;G<arguments.length;G++)j[G-1]=arguments[G]},k.prototype.error=function(U){for(var j=[],G=1;G<arguments.length;G++)j[G-1]=arguments[G]},k.prototype.dispose=function(){},k}()},"0JNc":function(wt,P,o){"use strict";o.d(P,"b",function(){return I}),o.d(P,"a",function(){return ne}),o.d(P,"c",function(){return N}),o.d(P,"d",function(){return j});var I="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function re(G){G===void 0&&(G="");for(var R="(-?\\d*\\.\\d\\w*)|([^",_=0,x=I;_<x.length;_++){var K=x[_];if(G.indexOf(K)>=0)continue;R+="\\"+K}return R+="\\s]+)",new RegExp(R,"g")}var ne=re();function N(G){var R=ne;if(G&&G instanceof RegExp)if(G.global)R=G;else{var _="g";G.ignoreCase&&(_+="i"),G.multiline&&(_+="m"),G.unicode&&(_+="u"),R=new RegExp(G.source,_)}return R.lastIndex=0,R}function k(G,R,_,x){var K=G-1-x,D=_.lastIndexOf(" ",K-1)+1;R.lastIndex=D;for(var A;A=R.exec(_);){var te=A.index||0;if(te<=K&&R.lastIndex>=K)return{word:A[0],startColumn:x+1+te,endColumn:x+1+R.lastIndex}}return null}function U(G,R,_,x){var K=G-1-x;R.lastIndex=0;for(var D;D=R.exec(_);){var A=D.index||0;if(A>K)return null;if(R.lastIndex>=K)return{word:D[0],startColumn:x+1+A,endColumn:x+1+R.lastIndex}}return null}function j(G,R,_,x){R.lastIndex=0;var K=R.exec(_);if(!K)return null;var D=K[0].indexOf(" ")>=0?U(G,R,_,x):k(G,R,_,x);return R.lastIndex=0,D}},"0oIH":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return o.e(214).then(o.bind(null,"Eg73"))}})},"1YUG":function(wt,P,o){"use strict";o.r(P),o.d(P,"CoreEditorCommand",function(){return oe}),o.d(P,"EditorScroll_",function(){return he}),o.d(P,"RevealLine_",function(){return _e}),o.d(P,"CoreNavigationCommands",function(){return Se}),o.d(P,"CoreEditingCommands",function(){return q});var I=o("3/fG"),re=o("746U"),ne=o("sswD"),N=o("Vxe3"),k=o("Ll0s"),U=o("cGHE"),j=o("aokT"),G=function(){function Ee(){}return Ee.columnSelect=function(de,se,fe,ie,Q,me){for(var ye=Math.abs(Q-fe)+1,He=fe>Q,tt=ie>me,Et=ie<me,Pt=[],Xt=0;Xt<ye;Xt++){var Ke=fe+(He?-Xt:Xt),Xe=k.a.columnFromVisibleColumn2(de,se,Ke,ie),Ze=k.a.columnFromVisibleColumn2(de,se,Ke,me),Ye=k.a.visibleColumnFromColumn2(de,se,new U.a(Ke,Xe)),Fe=k.a.visibleColumnFromColumn2(de,se,new U.a(Ke,Ze));if(Et){if(Ye>me)continue;if(Fe<ie)continue}if(tt){if(Fe>ie)continue;if(Ye<me)continue}Pt.push(new k.f(new j.a(Ke,Xe,Ke,Xe),0,new U.a(Ke,Ze),0))}if(Pt.length===0)for(var Xt=0;Xt<ye;Xt++){var Ke=fe+(He?-Xt:Xt),$e=se.getLineMaxColumn(Ke);Pt.push(new k.f(new j.a(Ke,$e,Ke,$e),0,new U.a(Ke,$e),0))}return{viewStates:Pt,reversed:He,fromLineNumber:fe,fromVisualColumn:ie,toLineNumber:Q,toVisualColumn:me}},Ee.columnSelectLeft=function(de,se,fe){var ie=fe.toViewVisualColumn;return ie>1&&ie--,Ee.columnSelect(de,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,fe.toViewLineNumber,ie)},Ee.columnSelectRight=function(de,se,fe){for(var ie=0,Q=Math.min(fe.fromViewLineNumber,fe.toViewLineNumber),me=Math.max(fe.fromViewLineNumber,fe.toViewLineNumber),ye=Q;ye<=me;ye++){var He=se.getLineMaxColumn(ye),tt=k.a.visibleColumnFromColumn2(de,se,new U.a(ye,He));ie=Math.max(ie,tt)}var Et=fe.toViewVisualColumn;return Et<ie&&Et++,this.columnSelect(de,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,fe.toViewLineNumber,Et)},Ee.columnSelectUp=function(de,se,fe,ie){var Q=ie?de.pageSize:1,me=Math.max(1,fe.toViewLineNumber-Q);return this.columnSelect(de,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,me,fe.toViewVisualColumn)},Ee.columnSelectDown=function(de,se,fe,ie){var Q=ie?de.pageSize:1,me=Math.min(se.getLineCount(),fe.toViewLineNumber+Q);return this.columnSelect(de,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,me,fe.toViewVisualColumn)},Ee}(),R=o("snIX"),_=o("+Fos"),x=o("N0LK"),K=o("5v8Y"),D=function(){var Ee=function(se,fe){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,Q){ie.__proto__=Q}||function(ie,Q){for(var me in Q)Q.hasOwnProperty(me)&&(ie[me]=Q[me])},Ee(se,fe)};return function(de,se){Ee(de,se);function fe(){this.constructor=de}de.prototype=se===null?Object.create(se):(fe.prototype=se.prototype,new fe)}}(),A=function(){function Ee(){}return Ee._createWord=function(de,se,fe,ie,Q){return{start:ie,end:Q,wordType:se,nextCharClass:fe}},Ee._findPreviousWordOnLine=function(de,se,fe){var ie=se.getLineContent(fe.lineNumber);return this._doFindPreviousWordOnLine(ie,de,fe)},Ee._doFindPreviousWordOnLine=function(de,se,fe){for(var ie=0,Q=fe.column-2;Q>=0;Q--){var me=de.charCodeAt(Q),ye=se.get(me);if(ye===0){if(ie===2)return this._createWord(de,ie,ye,Q+1,this._findEndOfWord(de,se,ie,Q+1));ie=1}else if(ye===2){if(ie===1)return this._createWord(de,ie,ye,Q+1,this._findEndOfWord(de,se,ie,Q+1));ie=2}else if(ye===1&&ie!==0)return this._createWord(de,ie,ye,Q+1,this._findEndOfWord(de,se,ie,Q+1))}return ie!==0?this._createWord(de,ie,1,0,this._findEndOfWord(de,se,ie,0)):null},Ee._findEndOfWord=function(de,se,fe,ie){for(var Q=de.length,me=ie;me<Q;me++){var ye=de.charCodeAt(me),He=se.get(ye);if(He===1)return me;if(fe===1&&He===2)return me;if(fe===2&&He===0)return me}return Q},Ee._findNextWordOnLine=function(de,se,fe){var ie=se.getLineContent(fe.lineNumber);return this._doFindNextWordOnLine(ie,de,fe)},Ee._doFindNextWordOnLine=function(de,se,fe){for(var ie=0,Q=de.length,me=fe.column-1;me<Q;me++){var ye=de.charCodeAt(me),He=se.get(ye);if(He===0){if(ie===2)return this._createWord(de,ie,He,this._findStartOfWord(de,se,ie,me-1),me);ie=1}else if(He===2){if(ie===1)return this._createWord(de,ie,He,this._findStartOfWord(de,se,ie,me-1),me);ie=2}else if(He===1&&ie!==0)return this._createWord(de,ie,He,this._findStartOfWord(de,se,ie,me-1),me)}return ie!==0?this._createWord(de,ie,1,this._findStartOfWord(de,se,ie,Q-1),Q):null},Ee._findStartOfWord=function(de,se,fe,ie){for(var Q=ie;Q>=0;Q--){var me=de.charCodeAt(Q),ye=se.get(me);if(ye===1)return Q+1;if(fe===1&&ye===2)return Q+1;if(fe===2&&ye===0)return Q+1}return 0},Ee.moveWordLeft=function(de,se,fe,ie){var Q=fe.lineNumber,me=fe.column,ye=!1;me===1&&(Q>1&&(ye=!0,Q=Q-1,me=se.getLineMaxColumn(Q)));var He=Ee._findPreviousWordOnLine(de,se,new U.a(Q,me));if(ie===0){if(He&&!ye){var tt=se.getLineLastNonWhitespaceColumn(Q);if(tt<me)return new U.a(Q,He.end+1)}return new U.a(Q,He?He.start+1:1)}if(ie===1)return He&&He.wordType===2&&He.end-He.start===1&&He.nextCharClass===0&&(He=Ee._findPreviousWordOnLine(de,se,new U.a(Q,He.start+1))),new U.a(Q,He?He.start+1:1);if(ie===3){for(;He&&He.wordType===2;)He=Ee._findPreviousWordOnLine(de,se,new U.a(Q,He.start+1));return new U.a(Q,He?He.start+1:1)}return He&&me<=He.end+1&&(He=Ee._findPreviousWordOnLine(de,se,new U.a(Q,He.start+1))),new U.a(Q,He?He.end+1:1)},Ee._moveWordPartLeft=function(de,se){var fe=se.lineNumber,ie=de.getLineMaxColumn(fe);if(se.column===1)return fe>1?new U.a(fe-1,de.getLineMaxColumn(fe-1)):se;for(var Q=de.getLineContent(fe),me=se.column-1;me>1;me--){var ye=Q.charCodeAt(me-2),He=Q.charCodeAt(me-1);if(ye!==95&&He===95)return new U.a(fe,me);if(x.B(ye)&&x.C(He))return new U.a(fe,me);if(x.C(ye)&&x.C(He)&&me+1<ie){var tt=Q.charCodeAt(me);if(x.B(tt))return new U.a(fe,me)}}return new U.a(fe,1)},Ee.moveWordRight=function(de,se,fe,ie){var Q=fe.lineNumber,me=fe.column,ye=!1;me===se.getLineMaxColumn(Q)&&(Q<se.getLineCount()&&(ye=!0,Q=Q+1,me=1));var He=Ee._findNextWordOnLine(de,se,new U.a(Q,me));if(ie===2)He&&He.wordType===2&&(He.end-He.start===1&&He.nextCharClass===0&&(He=Ee._findNextWordOnLine(de,se,new U.a(Q,He.end+1)))),He?me=He.end+1:me=se.getLineMaxColumn(Q);else if(ie===3){for(ye&&(me=0);He&&(He.wordType===2||He.start+1<=me);)He=Ee._findNextWordOnLine(de,se,new U.a(Q,He.end+1));He?me=He.start+1:me=se.getLineMaxColumn(Q)}else He&&!ye&&me>=He.start+1&&(He=Ee._findNextWordOnLine(de,se,new U.a(Q,He.end+1))),He?me=He.start+1:me=se.getLineMaxColumn(Q);return new U.a(Q,me)},Ee._moveWordPartRight=function(de,se){var fe=se.lineNumber,ie=de.getLineMaxColumn(fe);if(se.column===ie)return fe<de.getLineCount()?new U.a(fe+1,1):se;for(var Q=de.getLineContent(fe),me=se.column+1;me<ie;me++){var ye=Q.charCodeAt(me-2),He=Q.charCodeAt(me-1);if(ye===95&&He!==95)return new U.a(fe,me);if(x.B(ye)&&x.C(He))return new U.a(fe,me);if(x.C(ye)&&x.C(He)&&me+1<ie){var tt=Q.charCodeAt(me);if(x.B(tt))return new U.a(fe,me)}}return new U.a(fe,ie)},Ee._deleteWordLeftWhitespace=function(de,se){var fe=de.getLineContent(se.lineNumber),ie=se.column-2,Q=x.D(fe,ie);return Q+1<ie?new j.a(se.lineNumber,Q+2,se.lineNumber,se.column):null},Ee.deleteWordLeft=function(de,se,fe,ie,Q){if(!fe.isEmpty())return fe;var me=new U.a(fe.positionLineNumber,fe.positionColumn),ye=me.lineNumber,He=me.column;if(ye===1&&He===1)return null;if(ie){var tt=this._deleteWordLeftWhitespace(se,me);if(tt)return tt}var Et=Ee._findPreviousWordOnLine(de,se,me);return Q===0?Et?He=Et.start+1:He>1?He=1:(ye--,He=se.getLineMaxColumn(ye)):(Et&&He<=Et.end+1&&(Et=Ee._findPreviousWordOnLine(de,se,new U.a(ye,Et.start+1))),Et?He=Et.end+1:He>1?He=1:(ye--,He=se.getLineMaxColumn(ye))),new j.a(ye,He,me.lineNumber,me.column)},Ee._deleteWordPartLeft=function(de,se){if(!se.isEmpty())return se;var fe=se.getPosition(),ie=Ee._moveWordPartLeft(de,fe);return new j.a(fe.lineNumber,fe.column,ie.lineNumber,ie.column)},Ee._findFirstNonWhitespaceChar=function(de,se){for(var fe=de.length,ie=se;ie<fe;ie++){var Q=de.charAt(ie);if(Q!==" "&&Q!==" ")return ie}return fe},Ee._deleteWordRightWhitespace=function(de,se){var fe=de.getLineContent(se.lineNumber),ie=se.column-1,Q=this._findFirstNonWhitespaceChar(fe,ie);return ie+1<Q?new j.a(se.lineNumber,se.column,se.lineNumber,Q+1):null},Ee.deleteWordRight=function(de,se,fe,ie,Q){if(!fe.isEmpty())return fe;var me=new U.a(fe.positionLineNumber,fe.positionColumn),ye=me.lineNumber,He=me.column,tt=se.getLineCount(),Et=se.getLineMaxColumn(ye);if(ye===tt&&He===Et)return null;if(ie){var Pt=this._deleteWordRightWhitespace(se,me);if(Pt)return Pt}var Xt=Ee._findNextWordOnLine(de,se,me);return Q===2?Xt?He=Xt.end+1:He<Et||ye===tt?He=Et:(ye++,Xt=Ee._findNextWordOnLine(de,se,new U.a(ye,1)),Xt?He=Xt.start+1:He=se.getLineMaxColumn(ye)):(Xt&&He>=Xt.start+1&&(Xt=Ee._findNextWordOnLine(de,se,new U.a(ye,Xt.end+1))),Xt?He=Xt.start+1:He<Et||ye===tt?He=Et:(ye++,Xt=Ee._findNextWordOnLine(de,se,new U.a(ye,1)),Xt?He=Xt.start+1:He=se.getLineMaxColumn(ye))),new j.a(ye,He,me.lineNumber,me.column)},Ee._deleteWordPartRight=function(de,se){if(!se.isEmpty())return se;var fe=se.getPosition(),ie=Ee._moveWordPartRight(de,fe);return new j.a(fe.lineNumber,fe.column,ie.lineNumber,ie.column)},Ee.word=function(de,se,fe,ie,Q){var me=Object(K.a)(de.wordSeparators),ye=Ee._findPreviousWordOnLine(me,se,Q),He=Ee._findNextWordOnLine(me,se,Q);if(!ie){var tt,Et;return ye&&ye.wordType===1&&ye.start<=Q.column-1&&Q.column-1<=ye.end?(tt=ye.start+1,Et=ye.end+1):He&&He.wordType===1&&He.start<=Q.column-1&&Q.column-1<=He.end?(tt=He.start+1,Et=He.end+1):(ye?tt=ye.end+1:tt=1,He?Et=He.start+1:Et=se.getLineMaxColumn(Q.lineNumber)),new k.f(new j.a(Q.lineNumber,tt,Q.lineNumber,Et),0,new U.a(Q.lineNumber,Et),0)}var Pt,Xt;ye&&ye.wordType===1&&ye.start<Q.column-1&&Q.column-1<ye.end?(Pt=ye.start+1,Xt=ye.end+1):He&&He.wordType===1&&He.start<Q.column-1&&Q.column-1<He.end?(Pt=He.start+1,Xt=He.end+1):(Pt=Q.column,Xt=Q.column);var Ke=Q.lineNumber,Xe;if(fe.selectionStart.containsPosition(Q))Xe=fe.selectionStart.endColumn;else if(Q.isBeforeOrEqual(fe.selectionStart.getStartPosition())){Xe=Pt;var Ze=new U.a(Ke,Xe);fe.selectionStart.containsPosition(Ze)&&(Xe=fe.selectionStart.endColumn)}else{Xe=Xt;var Ze=new U.a(Ke,Xe);fe.selectionStart.containsPosition(Ze)&&(Xe=fe.selectionStart.startColumn)}return fe.move(!0,Ke,Xe,0)},Ee}(),te=function(Ee){D(de,Ee);function de(){return Ee!==null&&Ee.apply(this,arguments)||this}return de.deleteWordPartLeft=function(se,fe,ie,Q){var me=H([A.deleteWordLeft(se,fe,ie,Q,0),A.deleteWordLeft(se,fe,ie,Q,2),A._deleteWordPartLeft(fe,ie)]);return me.sort(j.a.compareRangesUsingEnds),me[2]},de.deleteWordPartRight=function(se,fe,ie,Q){var me=H([A.deleteWordRight(se,fe,ie,Q,0),A.deleteWordRight(se,fe,ie,Q,2),A._deleteWordPartRight(fe,ie)]);return me.sort(j.a.compareRangesUsingStarts),me[0]},de.moveWordPartLeft=function(se,fe,ie){var Q=H([A.moveWordLeft(se,fe,ie,0),A.moveWordLeft(se,fe,ie,2),A._moveWordPartLeft(fe,ie)]);return Q.sort(U.a.compare),Q[2]},de.moveWordPartRight=function(se,fe,ie){var Q=H([A.moveWordRight(se,fe,ie,0),A.moveWordRight(se,fe,ie,2),A._moveWordPartRight(fe,ie)]);return Q.sort(U.a.compare),Q[0]},de}(A);function H(Ee){return Ee.filter(function(de){return Boolean(de)})}var E=function(){function Ee(){}return Ee.addCursorDown=function(de,se,fe){for(var ie=[],Q=0,me=0,ye=se.length;me<ye;me++){var He=se[me];ie[Q++]=new k.d(He.modelState,He.viewState),fe?ie[Q++]=k.d.fromModelState(_.a.translateDown(de.config,de.model,He.modelState)):ie[Q++]=k.d.fromViewState(_.a.translateDown(de.config,de.viewModel,He.viewState))}return ie},Ee.addCursorUp=function(de,se,fe){for(var ie=[],Q=0,me=0,ye=se.length;me<ye;me++){var He=se[me];ie[Q++]=new k.d(He.modelState,He.viewState),fe?ie[Q++]=k.d.fromModelState(_.a.translateUp(de.config,de.model,He.modelState)):ie[Q++]=k.d.fromViewState(_.a.translateUp(de.config,de.viewModel,He.viewState))}return ie},Ee.moveToBeginningOfLine=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q];ie[Q]=this._moveToLineStart(de,ye,fe)}return ie},Ee._moveToLineStart=function(de,se,fe){var ie=se.viewState.position.column,Q=se.modelState.position.column,me=ie===Q,ye=se.viewState.position.lineNumber,He=de.viewModel.getLineFirstNonWhitespaceColumn(ye),tt=ie===He;return!me&&!tt?this._moveToLineStartByView(de,se,fe):this._moveToLineStartByModel(de,se,fe)},Ee._moveToLineStartByView=function(de,se,fe){return k.d.fromViewState(_.a.moveToBeginningOfLine(de.config,de.viewModel,se.viewState,fe))},Ee._moveToLineStartByModel=function(de,se,fe){return k.d.fromModelState(_.a.moveToBeginningOfLine(de.config,de.model,se.modelState,fe))},Ee.moveToEndOfLine=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q];ie[Q]=this._moveToLineEnd(de,ye,fe)}return ie},Ee._moveToLineEnd=function(de,se,fe){var ie=se.viewState.position,Q=de.viewModel.getLineMaxColumn(ie.lineNumber),me=ie.column===Q,ye=se.modelState.position,He=de.model.getLineMaxColumn(ye.lineNumber),tt=Q-ie.column===He-ye.column;return me||tt?this._moveToLineEndByModel(de,se,fe):this._moveToLineEndByView(de,se,fe)},Ee._moveToLineEndByView=function(de,se,fe){return k.d.fromViewState(_.a.moveToEndOfLine(de.config,de.viewModel,se.viewState,fe))},Ee._moveToLineEndByModel=function(de,se,fe){return k.d.fromModelState(_.a.moveToEndOfLine(de.config,de.model,se.modelState,fe))},Ee.expandLineSelection=function(de,se){for(var fe=[],ie=0,Q=se.length;ie<Q;ie++){var me=se[ie],ye=me.modelState.selection.startLineNumber,He=de.model.getLineCount(),tt=me.modelState.selection.endLineNumber,Et=void 0;tt===He?Et=de.model.getLineMaxColumn(He):(tt++,Et=1),fe[ie]=k.d.fromModelState(new k.f(new j.a(ye,1,ye,1),0,new U.a(tt,Et),0))}return fe},Ee.moveToBeginningOfBuffer=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q];ie[Q]=k.d.fromModelState(_.a.moveToBeginningOfBuffer(de.config,de.model,ye.modelState,fe))}return ie},Ee.moveToEndOfBuffer=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q];ie[Q]=k.d.fromModelState(_.a.moveToEndOfBuffer(de.config,de.model,ye.modelState,fe))}return ie},Ee.selectAll=function(de,se){var fe=de.model.getLineCount(),ie=de.model.getLineMaxColumn(fe);return k.d.fromModelState(new k.f(new j.a(1,1,1,1),0,new U.a(fe,ie),0))},Ee.line=function(de,se,fe,ie,Q){var me=de.model.validatePosition(ie),ye=Q?de.validateViewPosition(new U.a(Q.lineNumber,Q.column),me):de.convertModelPositionToViewPosition(me);if(!fe||!se.modelState.hasSelection()){var He=de.model.getLineCount(),tt=me.lineNumber+1,Et=1;return tt>He&&(tt=He,Et=de.model.getLineMaxColumn(tt)),k.d.fromModelState(new k.f(new j.a(me.lineNumber,1,tt,Et),0,new U.a(tt,Et),0))}var Pt=se.modelState.selectionStart.getStartPosition().lineNumber;if(me.lineNumber<Pt)return k.d.fromViewState(se.viewState.move(se.modelState.hasSelection(),ye.lineNumber,1,0));if(me.lineNumber>Pt){var He=de.viewModel.getLineCount(),Xt=ye.lineNumber+1,Ke=1;return Xt>He&&(Xt=He,Ke=de.viewModel.getLineMaxColumn(Xt)),k.d.fromViewState(se.viewState.move(se.modelState.hasSelection(),Xt,Ke,0))}else{var Xe=se.modelState.selectionStart.getEndPosition();return k.d.fromModelState(se.modelState.move(se.modelState.hasSelection(),Xe.lineNumber,Xe.column,0))}},Ee.word=function(de,se,fe,ie){var Q=de.model.validatePosition(ie);return k.d.fromModelState(A.word(de.config,de.model,se.modelState,fe,Q))},Ee.cancelSelection=function(de,se){if(!se.modelState.hasSelection())return new k.d(se.modelState,se.viewState);var fe=se.viewState.position.lineNumber,ie=se.viewState.position.column;return k.d.fromViewState(new k.f(new j.a(fe,ie,fe,ie),0,new U.a(fe,ie),0))},Ee.moveTo=function(de,se,fe,ie,Q){var me=de.model.validatePosition(ie),ye=Q?de.validateViewPosition(new U.a(Q.lineNumber,Q.column),me):de.convertModelPositionToViewPosition(me);return k.d.fromViewState(se.viewState.move(fe,ye.lineNumber,ye.column,0))},Ee.move=function(de,se,fe){var ie=fe.select,Q=fe.value;switch(fe.direction){case 0:return fe.unit===4?this._moveHalfLineLeft(de,se,ie):this._moveLeft(de,se,ie,Q);case 1:return fe.unit===4?this._moveHalfLineRight(de,se,ie):this._moveRight(de,se,ie,Q);case 2:return fe.unit===2?this._moveUpByViewLines(de,se,ie,Q):this._moveUpByModelLines(de,se,ie,Q);case 3:return fe.unit===2?this._moveDownByViewLines(de,se,ie,Q):this._moveDownByModelLines(de,se,ie,Q);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 me=se[0],ye=de.getCompletelyVisibleModelRange(),He=this._firstLineNumberInRange(de.model,ye,Q),tt=de.model.getLineFirstNonWhitespaceColumn(He);return[this._moveToModelPosition(de,me,ie,He,tt)]}case 11:{var me=se[0],ye=de.getCompletelyVisibleModelRange(),He=this._lastLineNumberInRange(de.model,ye,Q),tt=de.model.getLineFirstNonWhitespaceColumn(He);return[this._moveToModelPosition(de,me,ie,He,tt)]}case 10:{var me=se[0],ye=de.getCompletelyVisibleModelRange(),He=Math.round((ye.startLineNumber+ye.endLineNumber)/2),tt=de.model.getLineFirstNonWhitespaceColumn(He);return[this._moveToModelPosition(de,me,ie,He,tt)]}case 12:{for(var Et=de.getCompletelyVisibleViewRange(),Pt=[],Xt=0,Ke=se.length;Xt<Ke;Xt++){var me=se[Xt];Pt[Xt]=this.findPositionInViewportIfOutside(de,me,Et,ie)}return Pt}}return null},Ee.findPositionInViewportIfOutside=function(de,se,fe,ie){var Q=se.viewState.position.lineNumber;if(fe.startLineNumber<=Q&&Q<=fe.endLineNumber-1)return new k.d(se.modelState,se.viewState);Q>fe.endLineNumber-1&&(Q=fe.endLineNumber-1),Q<fe.startLineNumber&&(Q=fe.startLineNumber);var me=de.viewModel.getLineFirstNonWhitespaceColumn(Q);return this._moveToViewPosition(de,se,ie,Q,me)},Ee._firstLineNumberInRange=function(de,se,fe){var ie=se.startLineNumber;return se.startColumn!==de.getLineMinColumn(ie)&&ie++,Math.min(se.endLineNumber,ie+fe-1)},Ee._lastLineNumberInRange=function(de,se,fe){var ie=se.startLineNumber;return se.startColumn!==de.getLineMinColumn(ie)&&ie++,Math.max(ie,se.endLineNumber-fe+1)},Ee._moveLeft=function(de,se,fe,ie){for(var Q=[],me=0,ye=se.length;me<ye;me++){var He=se[me],tt=_.a.moveLeft(de.config,de.viewModel,He.viewState,fe,ie);if(ie===1&&tt.position.lineNumber!==He.viewState.position.lineNumber){var Et=de.viewModel.coordinatesConverter.convertViewPositionToModelPosition(tt.position);Et.lineNumber===He.modelState.position.lineNumber&&(tt=_.a.moveLeft(de.config,de.viewModel,tt,fe,1))}Q[me]=k.d.fromViewState(tt)}return Q},Ee._moveHalfLineLeft=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q],He=ye.viewState.position.lineNumber,tt=Math.round(de.viewModel.getLineContent(He).length/2);ie[Q]=k.d.fromViewState(_.a.moveLeft(de.config,de.viewModel,ye.viewState,fe,tt))}return ie},Ee._moveRight=function(de,se,fe,ie){for(var Q=[],me=0,ye=se.length;me<ye;me++){var He=se[me],tt=_.a.moveRight(de.config,de.viewModel,He.viewState,fe,ie);if(ie===1&&tt.position.lineNumber!==He.viewState.position.lineNumber){var Et=de.viewModel.coordinatesConverter.convertViewPositionToModelPosition(tt.position);Et.lineNumber===He.modelState.position.lineNumber&&(tt=_.a.moveRight(de.config,de.viewModel,tt,fe,1))}Q[me]=k.d.fromViewState(tt)}return Q},Ee._moveHalfLineRight=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q],He=ye.viewState.position.lineNumber,tt=Math.round(de.viewModel.getLineContent(He).length/2);ie[Q]=k.d.fromViewState(_.a.moveRight(de.config,de.viewModel,ye.viewState,fe,tt))}return ie},Ee._moveDownByViewLines=function(de,se,fe,ie){for(var Q=[],me=0,ye=se.length;me<ye;me++){var He=se[me];Q[me]=k.d.fromViewState(_.a.moveDown(de.config,de.viewModel,He.viewState,fe,ie))}return Q},Ee._moveDownByModelLines=function(de,se,fe,ie){for(var Q=[],me=0,ye=se.length;me<ye;me++){var He=se[me];Q[me]=k.d.fromModelState(_.a.moveDown(de.config,de.model,He.modelState,fe,ie))}return Q},Ee._moveUpByViewLines=function(de,se,fe,ie){for(var Q=[],me=0,ye=se.length;me<ye;me++){var He=se[me];Q[me]=k.d.fromViewState(_.a.moveUp(de.config,de.viewModel,He.viewState,fe,ie))}return Q},Ee._moveUpByModelLines=function(de,se,fe,ie){for(var Q=[],me=0,ye=se.length;me<ye;me++){var He=se[me];Q[me]=k.d.fromModelState(_.a.moveUp(de.config,de.model,He.modelState,fe,ie))}return Q},Ee._moveToViewPosition=function(de,se,fe,ie,Q){return k.d.fromViewState(se.viewState.move(fe,ie,Q,0))},Ee._moveToModelPosition=function(de,se,fe,ie,Q){return k.d.fromModelState(se.modelState.move(fe,ie,Q,0))},Ee._moveToViewMinColumn=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q],He=ye.viewState.position.lineNumber,tt=de.viewModel.getLineMinColumn(He);ie[Q]=this._moveToViewPosition(de,ye,fe,He,tt)}return ie},Ee._moveToViewFirstNonWhitespaceColumn=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q],He=ye.viewState.position.lineNumber,tt=de.viewModel.getLineFirstNonWhitespaceColumn(He);ie[Q]=this._moveToViewPosition(de,ye,fe,He,tt)}return ie},Ee._moveToViewCenterColumn=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q],He=ye.viewState.position.lineNumber,tt=Math.round((de.viewModel.getLineMaxColumn(He)+de.viewModel.getLineMinColumn(He))/2);ie[Q]=this._moveToViewPosition(de,ye,fe,He,tt)}return ie},Ee._moveToViewMaxColumn=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q],He=ye.viewState.position.lineNumber,tt=de.viewModel.getLineMaxColumn(He);ie[Q]=this._moveToViewPosition(de,ye,fe,He,tt)}return ie},Ee._moveToViewLastNonWhitespaceColumn=function(de,se,fe){for(var ie=[],Q=0,me=se.length;Q<me;Q++){var ye=se[Q],He=ye.viewState.position.lineNumber,tt=de.viewModel.getLineLastNonWhitespaceColumn(He);ie[Q]=this._moveToViewPosition(de,ye,fe,He,tt)}return ie},Ee}(),f;(function(Ee){var de=function(ie){if(!re.i(ie))return!1;var Q=ie;return re.j(Q.to)?!re.k(Q.select)&&!re.e(Q.select)||!re.k(Q.by)&&!re.j(Q.by)?!1:!(!re.k(Q.value)&&!re.h(Q.value)):!1};Ee.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}}}}]},Ee.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"},Ee.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function se(fe){if(!fe.to)return null;var ie;switch(fe.to){case Ee.RawDirection.Left:ie=0;break;case Ee.RawDirection.Right:ie=1;break;case Ee.RawDirection.Up:ie=2;break;case Ee.RawDirection.Down:ie=3;break;case Ee.RawDirection.WrappedLineStart:ie=4;break;case Ee.RawDirection.WrappedLineFirstNonWhitespaceCharacter:ie=5;break;case Ee.RawDirection.WrappedLineColumnCenter:ie=6;break;case Ee.RawDirection.WrappedLineEnd:ie=7;break;case Ee.RawDirection.WrappedLineLastNonWhitespaceCharacter:ie=8;break;case Ee.RawDirection.ViewPortTop:ie=9;break;case Ee.RawDirection.ViewPortBottom:ie=11;break;case Ee.RawDirection.ViewPortCenter:ie=10;break;case Ee.RawDirection.ViewPortIfOutside:ie=12;break;default:return null}var Q=0;switch(fe.by){case Ee.RawUnit.Line:Q=1;break;case Ee.RawUnit.WrappedLine:Q=2;break;case Ee.RawUnit.Character:Q=3;break;case Ee.RawUnit.HalfLine:Q=4;break}return{direction:ie,unit:Q,select:!!fe.select,value:fe.value||1}}Ee.parse=se})(f||(f={}));var p=o("GR/f"),g=o("iuje"),m=o("wQH0"),w=o("T8No"),B=function(){var Ee=function(se,fe){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,Q){ie.__proto__=Q}||function(ie,Q){for(var me in Q)Q.hasOwnProperty(me)&&(ie[me]=Q[me])},Ee(se,fe)};return function(de,se){Ee(de,se);function fe(){this.constructor=de}de.prototype=se===null?Object.create(se):(fe.prototype=se.prototype,new fe)}}(),z=0,oe=function(Ee){B(de,Ee);function de(){return Ee!==null&&Ee.apply(this,arguments)||this}return de.prototype.runEditorCommand=function(se,fe,ie){var Q=fe._getCursors();if(!Q)return;this.runCoreEditorCommand(Q,ie||{})},de}(ne.c),he;(function(Ee){var de=function(ie){if(!re.i(ie))return!1;var Q=ie;return re.j(Q.to)?!re.k(Q.by)&&!re.j(Q.by)||!re.k(Q.value)&&!re.h(Q.value)?!1:!(!re.k(Q.revealCursor)&&!re.e(Q.revealCursor)):!1};Ee.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"}}}}]},Ee.RawDirection={Up:"up",Down:"down"},Ee.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"};function se(fe){var ie;switch(fe.to){case Ee.RawDirection.Up:ie=1;break;case Ee.RawDirection.Down:ie=2;break;default:return null}var Q;switch(fe.by){case Ee.RawUnit.Line:Q=1;break;case Ee.RawUnit.WrappedLine:Q=2;break;case Ee.RawUnit.Page:Q=3;break;case Ee.RawUnit.HalfPage:Q=4;break;default:Q=2}var me=Math.floor(fe.value||1),ye=!!fe.revealCursor;return{direction:ie,unit:Q,value:me,revealCursor:ye,select:!!fe.select}}Ee.parse=se})(he||(he={}));var _e;(function(Ee){var de=function(fe){if(!re.i(fe))return!1;var ie=fe;return re.h(ie.lineNumber)?!(!re.k(ie.at)&&!re.j(ie.at)):!1};Ee.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"]}}}}]},Ee.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(_e||(_e={}));var Se;(function(Ee){var de=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._inSelectionMode=Fe.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,[E.moveTo(Fe.context,Fe.getPrimaryCursor(),this._inSelectionMode,$e.position,$e.viewPosition)]),Fe.reveal($e.source,!0,0,0)},Ye}(oe);Ee.MoveTo=Object(ne.g)(new de({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),Ee.MoveToSelect=Object(ne.g)(new de({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var se=function(Ze){B(Ye,Ze);function Ye(){return Ze!==null&&Ze.apply(this,arguments)||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement();var we=this._getColumnSelectResult(Fe.context,Fe.getPrimaryCursor(),Fe.getColumnSelectData(),$e);Fe.setStates($e.source,3,we.viewStates.map(function(F){return k.d.fromViewState(F)})),Fe.setColumnSelectData({isReal:!0,fromViewLineNumber:we.fromLineNumber,fromViewVisualColumn:we.fromVisualColumn,toViewLineNumber:we.toLineNumber,toViewVisualColumn:we.toVisualColumn}),Fe.reveal($e.source,!0,we.reversed?1:2,0)},Ye}(oe);Ee.ColumnSelect=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"columnSelect",precondition:void 0})||this}return Ye.prototype._getColumnSelectResult=function(Fe,$e,we,F){var ee=Fe.model.validatePosition(F.position),Pe=Fe.validateViewPosition(new U.a(F.viewPosition.lineNumber,F.viewPosition.column),ee),ve=F.doColumnSelect?we.fromViewLineNumber:Pe.lineNumber,Me=F.doColumnSelect?we.fromViewVisualColumn:F.mouseColumn-1;return G.columnSelect(Fe.config,Fe.viewModel,ve,Me,Pe.lineNumber,F.mouseColumn-1)},Ye}(se))),Ee.CursorColumnSelectLeft=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|1024|512|15,linux:{primary:0}}})||this}return Ye.prototype._getColumnSelectResult=function(Fe,$e,we,F){return G.columnSelectLeft(Fe.config,Fe.viewModel,we)},Ye}(se))),Ee.CursorColumnSelectRight=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|1024|512|17,linux:{primary:0}}})||this}return Ye.prototype._getColumnSelectResult=function(Fe,$e,we,F){return G.columnSelectRight(Fe.config,Fe.viewModel,we)},Ye}(se)));var fe=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._isPaged=Fe.isPaged,$e}return Ye.prototype._getColumnSelectResult=function(Fe,$e,we,F){return G.columnSelectUp(Fe.config,Fe.viewModel,we,this._isPaged)},Ye}(se);Ee.CursorColumnSelectUp=Object(ne.g)(new fe({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|1024|512|16,linux:{primary:0}}})),Ee.CursorColumnSelectPageUp=Object(ne.g)(new fe({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|1024|512|11,linux:{primary:0}}}));var ie=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._isPaged=Fe.isPaged,$e}return Ye.prototype._getColumnSelectResult=function(Fe,$e,we,F){return G.columnSelectDown(Fe.config,Fe.viewModel,we,this._isPaged)},Ye}(se);Ee.CursorColumnSelectDown=Object(ne.g)(new ie({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|1024|512|18,linux:{primary:0}}})),Ee.CursorColumnSelectPageDown=Object(ne.g)(new ie({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|1024|512|12,linux:{primary:0}}}));var Q=function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorMove",precondition:void 0,description:f.description})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){var we=f.parse($e);if(!we)return;this._runCursorMove(Fe,$e.source,we)},Ye.prototype._runCursorMove=function(Fe,$e,we){Fe.context.model.pushStackElement(),Fe.setStates($e,3,E.move(Fe.context,Fe.getAll(),we)),Fe.reveal($e,!0,0,0)},Ye}(oe);Ee.CursorMoveImpl=Q,Ee.CursorMove=Object(ne.g)(new Q);var me=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._staticArgs=Fe.args,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){var we=this._staticArgs;this._staticArgs.value===-1&&(we={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:Fe.context.config.pageSize}),Ee.CursorMove._runCursorMove(Fe,$e.source,we)},Ye}(oe);Ee.CursorLeft=Object(ne.g)(new me({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:15,mac:{primary:15,secondary:[256|32]}}})),Ee.CursorLeftSelect=Object(ne.g)(new me({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1024|15}})),Ee.CursorRight=Object(ne.g)(new me({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:17,mac:{primary:17,secondary:[256|36]}}})),Ee.CursorRightSelect=Object(ne.g)(new me({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1024|17}})),Ee.CursorUp=Object(ne.g)(new me({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:16,mac:{primary:16,secondary:[256|46]}}})),Ee.CursorUpSelect=Object(ne.g)(new me({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1024|16,secondary:[2048|1024|16],mac:{primary:1024|16},linux:{primary:1024|16}}})),Ee.CursorPageUp=Object(ne.g)(new me({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:11}})),Ee.CursorPageUpSelect=Object(ne.g)(new me({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1024|11}})),Ee.CursorDown=Object(ne.g)(new me({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:18,mac:{primary:18,secondary:[256|44]}}})),Ee.CursorDownSelect=Object(ne.g)(new me({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1024|18,secondary:[2048|1024|18],mac:{primary:1024|18},linux:{primary:1024|18}}})),Ee.CursorPageDown=Object(ne.g)(new me({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:12}})),Ee.CursorPageDownSelect=Object(ne.g)(new me({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1024|12}})),Ee.CreateCursor=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"createCursor",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){var we=Fe.context,F;$e.wholeLine?F=E.line(we,Fe.getPrimaryCursor(),!1,$e.position,$e.viewPosition):F=E.moveTo(we,Fe.getPrimaryCursor(),!1,$e.position,$e.viewPosition);var ee=Fe.getAll();if(ee.length>1)for(var Pe=F.modelState?F.modelState.position:null,ve=F.viewState?F.viewState.position:null,Me=0,Ie=ee.length;Me<Ie;Me++){var pe=ee[Me];if(Pe&&!pe.modelState.selection.containsPosition(Pe))continue;if(ve&&!pe.viewState.selection.containsPosition(ve))continue;ee.splice(Me,1),Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,ee);return}ee.push(F),Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,ee)},Ye}(oe))),Ee.LastCursorMoveToSelect=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){var we=Fe.context,F=Fe.getLastAddedCursorIndex(),ee=Fe.getAll(),Pe=ee.slice(0);Pe[F]=E.moveTo(we,ee[F],!0,$e.position,$e.viewPosition),Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,Pe)},Ye}(oe)));var ye=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._inSelectionMode=Fe.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,E.moveToBeginningOfLine(Fe.context,Fe.getAll(),this._inSelectionMode)),Fe.reveal($e.source,!0,0,0)},Ye}(oe);Ee.CursorHome=Object(ne.g)(new ye({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2048|15]}}})),Ee.CursorHomeSelect=Object(ne.g)(new ye({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1024|14,mac:{primary:1024|14,secondary:[2048|1024|15]}}})),Ee.CursorLineStart=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|31}}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,this._exec(Fe.context,Fe.getAll())),Fe.reveal($e.source,!0,0,0)},Ye.prototype._exec=function(Fe,$e){for(var we=[],F=0,ee=$e.length;F<ee;F++){var Pe=$e[F],ve=Pe.modelState.position.lineNumber;we[F]=k.d.fromModelState(Pe.modelState.move(!1,ve,1,0))}return we},Ye}(oe)));var He=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._inSelectionMode=Fe.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,E.moveToEndOfLine(Fe.context,Fe.getAll(),this._inSelectionMode)),Fe.reveal($e.source,!0,0,0)},Ye}(oe);Ee.CursorEnd=Object(ne.g)(new He({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2048|17]}}})),Ee.CursorEndSelect=Object(ne.g)(new He({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1024|13,mac:{primary:1024|13,secondary:[2048|1024|17]}}})),Ee.CursorLineEnd=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|35}}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,this._exec(Fe.context,Fe.getAll())),Fe.reveal($e.source,!0,0,0)},Ye.prototype._exec=function(Fe,$e){for(var we=[],F=0,ee=$e.length;F<ee;F++){var Pe=$e[F],ve=Pe.modelState.position.lineNumber,Me=Fe.model.getLineMaxColumn(ve);we[F]=k.d.fromModelState(Pe.modelState.move(!1,ve,Me,0))}return we},Ye}(oe)));var tt=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._inSelectionMode=Fe.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,E.moveToBeginningOfBuffer(Fe.context,Fe.getAll(),this._inSelectionMode)),Fe.reveal($e.source,!0,0,0)},Ye}(oe);Ee.CursorTop=Object(ne.g)(new tt({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|14,mac:{primary:2048|16}}})),Ee.CursorTopSelect=Object(ne.g)(new tt({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|1024|14,mac:{primary:2048|1024|16}}}));var Et=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._inSelectionMode=Fe.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,E.moveToEndOfBuffer(Fe.context,Fe.getAll(),this._inSelectionMode)),Fe.reveal($e.source,!0,0,0)},Ye}(oe);Ee.CursorBottom=Object(ne.g)(new Et({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|13,mac:{primary:2048|18}}})),Ee.CursorBottomSelect=Object(ne.g)(new Et({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|1024|13,mac:{primary:2048|1024|18}}}));var Pt=function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"editorScroll",precondition:void 0,description:he.description})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){var we=he.parse($e);if(!we)return;this._runEditorScroll(Fe,$e.source,we)},Ye.prototype._runEditorScroll=function(Fe,$e,we){var F=this._computeDesiredScrollTop(Fe.context,we);if(we.revealCursor){var ee=Fe.context.getCompletelyVisibleViewRangeAtScrollTop(F);Fe.setStates($e,3,[E.findPositionInViewportIfOutside(Fe.context,Fe.getPrimaryCursor(),ee,we.select)])}Fe.scrollTo(F)},Ye.prototype._computeDesiredScrollTop=function(Fe,$e){if($e.unit===1){var we=Fe.getCompletelyVisibleModelRange(),F=void 0;$e.direction===1?F=Math.max(1,we.startLineNumber-$e.value):F=Math.min(Fe.model.getLineCount(),we.startLineNumber+$e.value);var ee=Fe.convertModelPositionToViewPosition(new U.a(F,1));return Fe.getVerticalOffsetForViewLine(ee.lineNumber)}var Pe;$e.unit===3?Pe=Fe.config.pageSize*$e.value:$e.unit===4?Pe=Math.round(Fe.config.pageSize/2)*$e.value:Pe=$e.value;var ve=($e.direction===1?-1:1)*Pe;return Fe.getCurrentScrollTop()+ve*Fe.config.lineHeight},Ye}(oe);Ee.EditorScrollImpl=Pt,Ee.EditorScroll=Object(ne.g)(new Pt),Ee.ScrollLineUp=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|16,mac:{primary:256|11}}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Ee.EditorScroll._runEditorScroll(Fe,$e.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},Ye}(oe))),Ee.ScrollPageUp=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|11,win:{primary:512|11},linux:{primary:512|11}}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Ee.EditorScroll._runEditorScroll(Fe,$e.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},Ye}(oe))),Ee.ScrollLineDown=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|18,mac:{primary:256|12}}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Ee.EditorScroll._runEditorScroll(Fe,$e.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},Ye}(oe))),Ee.ScrollPageDown=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|12,win:{primary:512|12},linux:{primary:512|12}}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Ee.EditorScroll._runEditorScroll(Fe,$e.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},Ye}(oe)));var Xt=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._inSelectionMode=Fe.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,[E.word(Fe.context,Fe.getPrimaryCursor(),this._inSelectionMode,$e.position)]),Fe.reveal($e.source,!0,0,0)},Ye}(oe);Ee.WordSelect=Object(ne.g)(new Xt({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),Ee.WordSelectDrag=Object(ne.g)(new Xt({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),Ee.LastCursorWordSelect=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){var we=Fe.context,F=Fe.getLastAddedCursorIndex(),ee=Fe.getAll(),Pe=ee.slice(0),ve=ee[F];Pe[F]=E.word(we,ve,ve.modelState.hasSelection(),$e.position),we.model.pushStackElement(),Fe.setStates($e.source,3,Pe)},Ye}(oe)));var Ke=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._inSelectionMode=Fe.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,[E.line(Fe.context,Fe.getPrimaryCursor(),this._inSelectionMode,$e.position,$e.viewPosition)]),Fe.reveal($e.source,!1,0,0)},Ye}(oe);Ee.LineSelect=Object(ne.g)(new Ke({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),Ee.LineSelectDrag=Object(ne.g)(new Ke({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var Xe=function(Ze){B(Ye,Ze);function Ye(Fe){var $e=Ze.call(this,Fe)||this;return $e._inSelectionMode=Fe.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){var we=Fe.getLastAddedCursorIndex(),F=Fe.getAll(),ee=F.slice(0);ee[we]=E.line(Fe.context,F[we],this._inSelectionMode,$e.position,$e.viewPosition),Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,ee)},Ye}(oe);Ee.LastCursorLineSelect=Object(ne.g)(new Xe({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),Ee.LastCursorLineSelectDrag=Object(ne.g)(new Xe({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),Ee.ExpandLineSelection=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|42}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,E.expandLineSelection(Fe.context,Fe.getAll())),Fe.reveal($e.source,!0,0,0)},Ye}(oe))),Ee.CancelSelection=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cancelSelection",precondition:m.a.hasNonEmptySelection,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,[E.cancelSelection(Fe.context,Fe.getPrimaryCursor())]),Fe.reveal($e.source,!0,0,0)},Ye}(oe))),Ee.RemoveSecondaryCursors=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"removeSecondaryCursors",precondition:m.a.hasMultipleSelections,kbOpts:{weight:z+1,kbExpr:m.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,[Fe.getPrimaryCursor()]),Fe.reveal($e.source,!0,0,0)},Ye}(oe))),Ee.RevealLine=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"revealLine",precondition:void 0,description:_e.description})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){var we=$e,F=(we.lineNumber||0)+1;F<1&&(F=1);var ee=Fe.context.model.getLineCount();F>ee&&(F=ee);var Pe=new j.a(F,1,F,Fe.context.model.getLineMaxColumn(F)),ve=0;if(we.at)switch(we.at){case _e.RawAtArgument.Top:ve=3;break;case _e.RawAtArgument.Center:ve=1;break;case _e.RawAtArgument.Bottom:ve=4;break;default:break}var Me=Fe.context.convertModelRangeToViewRange(Pe);Fe.revealRange($e.source,!1,Me,ve,0)},Ye}(oe))),Ee.SelectAll=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"selectAll",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,[E.selectAll(Fe.context,Fe.getPrimaryCursor())])},Ye}(oe))),Ee.SetSelection=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"setSelection",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(Fe,$e){Fe.context.model.pushStackElement(),Fe.setStates($e.source,3,[k.d.fromModelSelection($e.selection)])},Ye}(oe)))})(Se||(Se={}));var q;(function(Ee){var de=function(se){B(fe,se);function fe(){return se!==null&&se.apply(this,arguments)||this}return fe.prototype.runEditorCommand=function(ie,Q,me){var ye=Q._getCursors();if(!ye)return;this.runCoreEditingCommand(Q,ye,me||{})},fe}(ne.c);Ee.CoreEditingCommand=de,Ee.LineBreakInsert=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,Q,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.lineBreakInsert(Q.context.config,Q.context.model,Q.getAll().map(function(ye){return ye.modelState.selection})))},fe}(de))),Ee.Outdent=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:z,kbExpr:w.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return fe.prototype.runCoreEditingCommand=function(ie,Q,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.outdent(Q.context.config,Q.context.model,Q.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},fe}(de))),Ee.Tab=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:z,kbExpr:w.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}return fe.prototype.runCoreEditingCommand=function(ie,Q,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.tab(Q.context.config,Q.context.model,Q.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},fe}(de))),Ee.DeleteLeft=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:1,secondary:[1024|1],mac:{primary:1,secondary:[1024|1,256|38,256|1]}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,Q,me){var ye=R.a.deleteLeft(Q.getPrevEditOperationType(),Q.context.config,Q.context.model,Q.getAll().map(function(Et){return Et.modelState.selection})),He=ye[0],tt=ye[1];He&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),Q.setPrevEditOperationType(2)},fe}(de))),Ee.DeleteRight=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,Q,me){var ye=R.a.deleteRight(Q.getPrevEditOperationType(),Q.context.config,Q.context.model,Q.getAll().map(function(Et){return Et.modelState.selection})),He=ye[0],tt=ye[1];He&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),Q.setPrevEditOperationType(3)},fe}(de)))})(q||(q={}));function Z(Ee){Ee.register()}var ce=function(Ee){B(de,Ee);function de(se){var fe=Ee.call(this,se)||this;return fe._editorHandler=se.editorHandler,fe._inputHandler=se.inputHandler,fe}return de.prototype.runCommand=function(se,fe){var ie=se.get(N.a).getFocusedCodeEditor();if(ie&&ie.hasTextFocus())return this._runEditorHandler(se,ie,fe);var Q=document.activeElement;if(Q&&["input","textarea"].indexOf(Q.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var me=se.get(N.a).getActiveCodeEditor();if(me)return me.focus(),this._runEditorHandler(se,me,fe)},de.prototype._runEditorHandler=function(se,fe,ie){var Q=this._editorHandler;typeof Q=="string"?fe.trigger("keyboard",Q,ie):(ie=ie||{},ie.source="keyboard",Q.runEditorCommand(se,fe,ie))},de}(ne.a),Te=function(Ee){B(de,Ee);function de(se,fe,ie){var Q=Ee.call(this,{id:se,precondition:void 0,description:ie})||this;return Q._handlerId=fe,Q}return de.prototype.runCommand=function(se,fe){var ie=se.get(N.a).getFocusedCodeEditor();if(!ie)return;ie.trigger("keyboard",this._handlerId,fe)},de}(ne.a);Z(new ce({editorHandler:Se.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:z,kbExpr:null,primary:2048|31},menuOpts:{menuId:25,group:"1_basic",title:I.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),Z(new ce({editorHandler:g.b.Undo,inputHandler:"undo",id:g.b.Undo,precondition:m.a.writable,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|56},menuOpts:{menuId:17,group:"1_do",title:I.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),Z(new Te("default:"+g.b.Undo,g.b.Undo)),Z(new ce({editorHandler:g.b.Redo,inputHandler:"redo",id:g.b.Redo,precondition:m.a.writable,kbOpts:{weight:z,kbExpr:m.a.textInputFocus,primary:2048|55,secondary:[2048|1024|56],mac:{primary:2048|1024|56}},menuOpts:{menuId:17,group:"1_do",title:I.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),Z(new Te("default:"+g.b.Redo,g.b.Redo));function Ve(Ee,de){Z(new Te("default:"+Ee,Ee)),Z(new Te(Ee,Ee,de))}Ve(g.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),Ve(g.b.ReplacePreviousChar),Ve(g.b.CompositionStart),Ve(g.b.CompositionEnd),Ve(g.b.Paste),Ve(g.b.Cut)},"1lwE":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return o.e(249).then(o.bind(null,"cOMg"))}})},"23p7":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return o.e(202).then(o.bind(null,"aA7r"))}})},"24hK":function(wt,P,o){"use strict";o.d(P,"a",function(){return ne});var I=o("JYp7"),re=function(){function N(k){this.element=k,this.next=N.Undefined,this.prev=N.Undefined}return N.Undefined=new N(void 0),N}(),ne=function(){function N(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}return Object.defineProperty(N.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),N.prototype.isEmpty=function(){return this._first===re.Undefined},N.prototype.clear=function(){this._first=re.Undefined,this._last=re.Undefined,this._size=0},N.prototype.unshift=function(k){return this._insert(k,!1)},N.prototype.push=function(k){return this._insert(k,!0)},N.prototype._insert=function(k,U){var j=this,G=new re(k);if(this._first===re.Undefined)this._first=G,this._last=G;else if(U){var R=this._last;this._last=G,G.prev=R,R.next=G}else{var _=this._first;this._first=G,G.next=_,_.prev=G}this._size+=1;var x=!1;return function(){x||(x=!0,j._remove(G))}},N.prototype.shift=function(){if(this._first===re.Undefined)return;var k=this._first.element;return this._remove(this._first),k},N.prototype.pop=function(){if(this._last===re.Undefined)return;var k=this._last.element;return this._remove(this._last),k},N.prototype._remove=function(k){if(k.prev!==re.Undefined&&k.next!==re.Undefined){var U=k.prev;U.next=k.next,k.next.prev=U}else k.prev===re.Undefined&&k.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):k.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):k.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1},N.prototype.iterator=function(){var k,U=this._first;return{next:function(){return U===re.Undefined?I.b:(k?k.value=U.element:k={done:!1,value:U.element},U=U.next,k)}}},N.prototype.toArray=function(){for(var k=[],U=this._first;U!==re.Undefined;U=U.next)k.push(U.element);return k},N}()},"2MPD":function(wt,P,o){},"2Tsy":function(wt,P,o){},"2V9f":function(wt,P,o){},"3/fG":function(wt,P,o){"use strict";o.d(P,"a",function(){return re});function I(ne,N){var k;return N.length===0?k=ne:k=ne.replace(/\{(\d+)\}/g,function(U,j){var G=j[0];return typeof N[G]!="undefined"?N[G]:U}),k}function re(ne,N){for(var k=[],U=2;U<arguments.length;U++)k[U-2]=arguments[U];return I(N,k)}},"3Rsk":function(wt,P,o){"use strict";o.d(P,"a",function(){return ne});var I=o("ic2d"),re=o("MI8n"),ne={JSONContribution:"base.contributions.json"};function N(j){return j.length>0&&j.charAt(j.length-1)==="#"?j.substring(0,j.length-1):j}var k=function(){function j(){this._onDidChangeSchema=new re.a,this.schemasById={}}return j.prototype.registerSchema=function(G,R){this.schemasById[N(G)]=R,this._onDidChangeSchema.fire(G)},j.prototype.notifySchemaChanged=function(G){this._onDidChangeSchema.fire(G)},j}(),U=new k;I.a.add(ne.JSONContribution,U)},"3qCu":function(wt,P,o){"use strict";o.d(P,"a",function(){return fe});var I=o("EffR"),re=o("Md8J"),ne=o("/cxE"),N=o("eLzo"),k=o("nD70"),U;(function(ie){"use strict";var Q={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:F,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:F,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:F,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};Q._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Q._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Q.def=Ze(Q.def).replace("label",Q._label).replace("title",Q._title).getRegex(),Q.bullet=/(?:[*+-]|\d{1,9}\.)/,Q.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Q.item=Ze(Q.item,"gm").replace(/bull/g,Q.bullet).getRegex(),Q.list=Ze(Q.list).replace(/bull/g,Q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Q.def.source+")").getRegex(),Q._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",Q._comment=/<!--(?!-?>)[\s\S]*?-->/,Q.html=Ze(Q.html,"i").replace("comment",Q._comment).replace("tag",Q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q.paragraph=Ze(Q.paragraph).replace("hr",Q.hr).replace("heading",Q.heading).replace("lheading",Q.lheading).replace("tag",Q._tag).getRegex(),Q.blockquote=Ze(Q.blockquote).replace("paragraph",Q.paragraph).getRegex(),Q.normal=ee({},Q),Q.gfm=ee({},Q.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),Q.gfm.paragraph=Ze(Q.paragraph).replace("(?!","(?!"+Q.gfm.fences.source.replace("\\1","\\2")+"|"+Q.list.source.replace("\\1","\\3")+"|").getRegex(),Q.tables=ee({},Q.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),Q.pedantic=ee({},Q.normal,{html:Ze(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Q._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 me(pe){this.tokens=[],this.tokens.links=Object.create(null),this.options=pe||Ie.defaults,this.rules=Q.normal,this.options.pedantic?this.rules=Q.pedantic:this.options.gfm&&(this.options.tables?this.rules=Q.tables:this.rules=Q.gfm)}me.rules=Q,me.lex=function(pe,nt){var _t=new me(nt);return _t.lex(pe)},me.prototype.lex=function(pe){return pe=pe.replace(/\r\n|\r/g,`
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
`),this.token(pe,!0)},me.prototype.token=function(pe,nt){pe=pe.replace(/^ +$/gm,"");for(var _t,Rt,Mt,zt,Gt,on,Ln,yn,Mn,kt,pt,gt,Dt,Lt,Vt,Jt;pe;){if((Mt=this.rules.newline.exec(pe))&&(pe=pe.substring(Mt[0].length),Mt[0].length>1&&this.tokens.push({type:"space"})),Mt=this.rules.code.exec(pe)){pe=pe.substring(Mt[0].length),Mt=Mt[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?Mt:ve(Mt,`
`)});continue}if(Mt=this.rules.fences.exec(pe)){pe=pe.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(pe)){pe=pe.substring(Mt[0].length),this.tokens.push({type:"heading",depth:Mt[1].length,text:Mt[2]});continue}if((Mt=this.rules.nptable.exec(pe))&&(on={type:"table",header:Pe(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(pe=pe.substring(Mt[0].length),pt=0;pt<on.align.length;pt++)/^ *-+: *$/.test(on.align[pt])?on.align[pt]="right":/^ *:-+: *$/.test(on.align[pt])?on.align[pt]="center":/^ *:-+ *$/.test(on.align[pt])?on.align[pt]="left":on.align[pt]=null;for(pt=0;pt<on.cells.length;pt++)on.cells[pt]=Pe(on.cells[pt],on.header.length);this.tokens.push(on);continue}if(Mt=this.rules.hr.exec(pe)){pe=pe.substring(Mt[0].length),this.tokens.push({type:"hr"});continue}if(Mt=this.rules.blockquote.exec(pe)){pe=pe.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(pe)){for(pe=pe.substring(Mt[0].length),zt=Mt[2],Lt=zt.length>1,Ln={type:"list_start",ordered:Lt,start:Lt?+zt:"",loose:!1},this.tokens.push(Ln),Mt=Mt[0].match(this.rules.item),yn=[],_t=!1,Dt=Mt.length,pt=0;pt<Dt;pt++)on=Mt[pt],kt=on.length,on=on.replace(/^ *([*+-]|\d+\.) */,""),~on.indexOf(`
`)&&(kt-=on.length,on=this.options.pedantic?on.replace(/^ {1,4}/gm,""):on.replace(new RegExp("^ {1,"+kt+"}","gm"),"")),pt!==Dt-1&&(Gt=Q.bullet.exec(Mt[pt+1])[0],(zt.length>1?Gt.length===1:Gt.length>1||this.options.smartLists&&Gt!==zt)&&(pe=Mt.slice(pt+1).join(`
`)+pe,pt=Dt-1)),Rt=_t||/\n\n(?!\s*$)/.test(on),pt!==Dt-1&&(_t=on.charAt(on.length-1)===`
`,Rt||(Rt=_t)),Rt&&(Ln.loose=!0),Vt=/^\[[ xX]\] /.test(on),Jt=void 0,Vt&&(Jt=on[1]!==" ",on=on.replace(/^\[[ xX]\] +/,"")),Mn={type:"list_item_start",task:Vt,checked:Jt,loose:Rt},yn.push(Mn),this.tokens.push(Mn),this.token(on,!1),this.tokens.push({type:"list_item_end"});if(Ln.loose)for(Dt=yn.length,pt=0;pt<Dt;pt++)yn[pt].loose=!0;this.tokens.push({type:"list_end"});continue}if(Mt=this.rules.html.exec(pe)){pe=pe.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(pe))){pe=pe.substring(Mt[0].length),Mt[3]&&(Mt[3]=Mt[3].substring(1,Mt[3].length-1)),gt=Mt[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[gt]||(this.tokens.links[gt]={href:Mt[2],title:Mt[3]});continue}if((Mt=this.rules.table.exec(pe))&&(on={type:"table",header:Pe(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(pe=pe.substring(Mt[0].length),pt=0;pt<on.align.length;pt++)/^ *-+: *$/.test(on.align[pt])?on.align[pt]="right":/^ *:-+: *$/.test(on.align[pt])?on.align[pt]="center":/^ *:-+ *$/.test(on.align[pt])?on.align[pt]="left":on.align[pt]=null;for(pt=0;pt<on.cells.length;pt++)on.cells[pt]=Pe(on.cells[pt].replace(/^ *\| *| *\| *$/g,""),on.header.length);this.tokens.push(on);continue}if(Mt=this.rules.lheading.exec(pe)){pe=pe.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(pe))){pe=pe.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(pe)){pe=pe.substring(Mt[0].length),this.tokens.push({type:"text",text:Mt[0]});continue}if(pe)throw new Error("Infinite loop on byte: "+pe.charCodeAt(0))}return this.tokens};var ye={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:F,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:F,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};ye._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`,ye.em=Ze(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=Ze(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=Ze(ye.tag).replace("comment",Q._comment).replace("attribute",ye._attribute).getRegex(),ye._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,ye._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,ye._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ye.link=Ze(ye.link).replace("label",ye._label).replace("href",ye._href).replace("title",ye._title).getRegex(),ye.reflink=Ze(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:Ze(/^!?\[(label)\]\((.*?)\)/).replace("label",ye._label).getRegex(),reflink:Ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ye._label).getRegex()}),ye.gfm=ee({},ye.normal,{escape:Ze(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=Ze(ye.gfm.url,"i").replace("email",ye.gfm._extended_email).getRegex(),ye.breaks=ee({},ye.gfm,{br:Ze(ye.br).replace("{2,}","*").getRegex(),text:Ze(ye.gfm.text).replace(/\{2,\}/g,"*").getRegex()});function He(pe,nt){if(this.options=nt||Ie.defaults,this.links=pe,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)}He.rules=ye,He.output=function(pe,nt,_t){var Rt=new He(nt,_t);return Rt.output(pe)},He.prototype.output=function(pe){for(var nt="",_t,Rt,Mt,zt,Gt,on;pe;){if(Gt=this.rules.escape.exec(pe)){pe=pe.substring(Gt[0].length),nt+=Ke(Gt[1]);continue}if(Gt=this.rules.tag.exec(pe)){!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),pe=pe.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(pe)){var Ln=Me(Gt[2],"()");if(Ln>-1){var yn=Gt[0].length-(Gt[2].length-Ln)-(Gt[3]||"").length;Gt[2]=Gt[2].substring(0,Ln),Gt[0]=Gt[0].substring(0,yn).trim(),Gt[3]=""}pe=pe.substring(Gt[0].length),this.inLink=!0,Mt=Gt[2],this.options.pedantic?(_t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Mt),_t?(Mt=_t[1],zt=_t[3]):zt=""):zt=Gt[3]?Gt[3].slice(1,-1):"",Mt=Mt.trim().replace(/^<([\s\S]*)>$/,"$1"),nt+=this.outputLink(Gt,{href:He.escapes(Mt),title:He.escapes(zt)}),this.inLink=!1;continue}if((Gt=this.rules.reflink.exec(pe))||(Gt=this.rules.nolink.exec(pe))){if(pe=pe.substring(Gt[0].length),_t=(Gt[2]||Gt[1]).replace(/\s+/g," "),_t=this.links[_t.toLowerCase()],!_t||!_t.href){nt+=Gt[0].charAt(0),pe=Gt[0].substring(1)+pe;continue}this.inLink=!0,nt+=this.outputLink(Gt,_t),this.inLink=!1;continue}if(Gt=this.rules.strong.exec(pe)){pe=pe.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(pe)){pe=pe.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(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.codespan(Ke(Gt[2].trim(),!0));continue}if(Gt=this.rules.br.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.br();continue}if(Gt=this.rules.del.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.del(this.output(Gt[1]));continue}if(Gt=this.rules.autolink.exec(pe)){pe=pe.substring(Gt[0].length),Gt[2]==="@"?(Rt=Ke(this.mangle(Gt[1])),Mt="mailto:"+Rt):(Rt=Ke(Gt[1]),Mt=Rt),nt+=this.renderer.link(Mt,null,Rt);continue}if(!this.inLink&&(Gt=this.rules.url.exec(pe))){if(Gt[2]==="@")Rt=Ke(Gt[0]),Mt="mailto:"+Rt;else{do on=Gt[0],Gt[0]=this.rules._backpedal.exec(Gt[0])[0];while(on!==Gt[0]);Rt=Ke(Gt[0]),Gt[1]==="www."?Mt="http://"+Rt:Mt=Rt}pe=pe.substring(Gt[0].length),nt+=this.renderer.link(Mt,null,Rt);continue}if(Gt=this.rules.text.exec(pe)){pe=pe.substring(Gt[0].length),this.inRawBlock?nt+=this.renderer.text(Gt[0]):nt+=this.renderer.text(Ke(this.smartypants(Gt[0])));continue}if(pe)throw new Error("Infinite loop on byte: "+pe.charCodeAt(0))}return nt},He.escapes=function(pe){return pe&&pe.replace(He.rules._escapes,"$1")},He.prototype.outputLink=function(pe,nt){var _t=nt.href,Rt=nt.title?Ke(nt.title):null;return pe[0].charAt(0)!=="!"?this.renderer.link(_t,Rt,this.output(pe[1])):this.renderer.image(_t,Rt,Ke(pe[1]))},He.prototype.smartypants=function(pe){return this.options.smartypants?pe.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"):pe},He.prototype.mangle=function(pe){if(!this.options.mangle)return pe;for(var nt="",_t=pe.length,Rt=0,Mt;Rt<_t;Rt++)Mt=pe.charCodeAt(Rt),Math.random()>.5&&(Mt="x"+Mt.toString(16)),nt+="&#"+Mt+";";return nt};function tt(pe){this.options=pe||Ie.defaults}tt.prototype.code=function(pe,nt,_t){var Rt=(nt||"").match(/\S*/)[0];if(this.options.highlight){var Mt=this.options.highlight(pe,Rt);Mt!=null&&Mt!==pe&&(_t=!0,pe=Mt)}return Rt?'<pre><code class="'+this.options.langPrefix+Ke(Rt,!0)+'">'+(_t?pe:Ke(pe,!0))+`</code></pre>
`:"<pre><code>"+(_t?pe:Ke(pe,!0))+"</code></pre>"},tt.prototype.blockquote=function(pe){return`<blockquote>
`+pe+`</blockquote>
`},tt.prototype.html=function(pe){return pe},tt.prototype.heading=function(pe,nt,_t,Rt){return this.options.headerIds?"<h"+nt+' id="'+this.options.headerPrefix+Rt.slug(_t)+'">'+pe+"</h"+nt+`>
`:"<h"+nt+">"+pe+"</h"+nt+`>
`},tt.prototype.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},tt.prototype.list=function(pe,nt,_t){var Rt=nt?"ol":"ul",Mt=nt&&_t!==1?' start="'+_t+'"':"";return"<"+Rt+Mt+`>
`+pe+"</"+Rt+`>
`},tt.prototype.listitem=function(pe){return"<li>"+pe+`</li>
`},tt.prototype.checkbox=function(pe){return"<input "+(pe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},tt.prototype.paragraph=function(pe){return"<p>"+pe+`</p>
`},tt.prototype.table=function(pe,nt){return nt&&(nt="<tbody>"+nt+"</tbody>"),`<table>
<thead>
`+pe+`</thead>
`+nt+`</table>
`},tt.prototype.tablerow=function(pe){return`<tr>
`+pe+`</tr>
`},tt.prototype.tablecell=function(pe,nt){var _t=nt.header?"th":"td",Rt=nt.align?"<"+_t+' align="'+nt.align+'">':"<"+_t+">";return Rt+pe+"</"+_t+`>
`},tt.prototype.strong=function(pe){return"<strong>"+pe+"</strong>"},tt.prototype.em=function(pe){return"<em>"+pe+"</em>"},tt.prototype.codespan=function(pe){return"<code>"+pe+"</code>"},tt.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},tt.prototype.del=function(pe){return"<del>"+pe+"</del>"},tt.prototype.link=function(pe,nt,_t){if(pe=Ye(this.options.sanitize,this.options.baseUrl,pe),pe===null)return _t;var Rt='<a href="'+Ke(pe)+'"';return nt&&(Rt+=' title="'+nt+'"'),Rt+=">"+_t+"</a>",Rt},tt.prototype.image=function(pe,nt,_t){if(pe=Ye(this.options.sanitize,this.options.baseUrl,pe),pe===null)return _t;var Rt='<img src="'+pe+'" alt="'+_t+'"';return nt&&(Rt+=' title="'+nt+'"'),Rt+=this.options.xhtml?"/>":">",Rt},tt.prototype.text=function(pe){return pe};function Et(){}Et.prototype.strong=Et.prototype.em=Et.prototype.codespan=Et.prototype.del=Et.prototype.text=function(pe){return pe},Et.prototype.link=Et.prototype.image=function(pe,nt,_t){return""+_t},Et.prototype.br=function(){return""};function Pt(pe){this.tokens=[],this.token=null,this.options=pe||Ie.defaults,this.options.renderer=this.options.renderer||new tt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xt}Pt.parse=function(pe,nt){var _t=new Pt(nt);return _t.parse(pe)},Pt.prototype.parse=function(pe){this.inline=new He(pe.links,this.options),this.inlineText=new He(pe.links,ee({},this.options,{renderer:new Et})),this.tokens=pe.reverse();for(var nt="";this.next();)nt+=this.tok();return nt},Pt.prototype.next=function(){return this.token=this.tokens.pop()},Pt.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Pt.prototype.parseText=function(){for(var pe=this.token.text;this.peek().type==="text";)pe+=`
`+this.next().text;return this.inline.output(pe)},Pt.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,Xe(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var pe="",nt="",_t,Rt,Mt,zt;for(Mt="",_t=0;_t<this.token.header.length;_t++)Mt+=this.renderer.tablecell(this.inline.output(this.token.header[_t]),{header:!0,align:this.token.align[_t]});for(pe+=this.renderer.tablerow(Mt),_t=0;_t<this.token.cells.length;_t++){for(Rt=this.token.cells[_t],Mt="",zt=0;zt<Rt.length;zt++)Mt+=this.renderer.tablecell(this.inline.output(Rt[zt]),{header:!1,align:this.token.align[zt]});nt+=this.renderer.tablerow(Mt)}return this.renderer.table(pe,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 Ln=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+=!Ln&&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 kt='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(kt);else throw new Error(kt)}}};function Xt(){this.seen={}}Xt.prototype.slug=function(pe){var nt=pe.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(nt)){var _t=nt;do this.seen[_t]++,nt=_t+"-"+this.seen[_t];while(this.seen.hasOwnProperty(nt))}return this.seen[nt]=0,nt};function Ke(pe,nt){if(nt){if(Ke.escapeTest.test(pe))return pe.replace(Ke.escapeReplace,function(_t){return Ke.replacements[_t]})}else if(Ke.escapeTestNoEncode.test(pe))return pe.replace(Ke.escapeReplaceNoEncode,function(_t){return Ke.replacements[_t]});return pe}Ke.escapeTest=/[&<>"']/,Ke.escapeReplace=/[&<>"']/g,Ke.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ke.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,Ke.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function Xe(pe){return pe.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(nt,_t){return _t=_t.toLowerCase(),_t==="colon"?":":_t.charAt(0)==="#"?_t.charAt(1)==="x"?String.fromCharCode(parseInt(_t.substring(2),16)):String.fromCharCode(+_t.substring(1)):""})}function Ze(pe,nt){return pe=pe.source||pe,nt=nt||"",{replace:function(Rt,Mt){return Mt=Mt.source||Mt,Mt=Mt.replace(/(^|[^\[])\^/g,"$1"),pe=pe.replace(Rt,Mt),this},getRegex:function(){return new RegExp(pe,nt)}}}function Ye(pe,nt,_t){if(pe){try{var Rt=decodeURIComponent(Xe(_t)).replace(/[^\w:]/g,"").toLowerCase()}catch(Mt){return null}if(Rt.indexOf("javascript:")===0||Rt.indexOf("vbscript:")===0||Rt.indexOf("data:")===0)return null}nt&&!we.test(_t)&&(_t=Fe(nt,_t));try{_t=encodeURI(_t).replace(/%25/g,"%")}catch(Mt){return null}return _t}function Fe(pe,nt){return $e[" "+pe]||(/^[^:]+:\/*[^/]*$/.test(pe)?$e[" "+pe]=pe+"/":$e[" "+pe]=ve(pe,"/",!0)),pe=$e[" "+pe],nt.slice(0,2)==="//"?pe.replace(/:[\s\S]*/,":")+nt:nt.charAt(0)==="/"?pe.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+nt:pe+nt}var $e={},we=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function F(){}F.exec=F;function ee(pe){for(var nt=1,_t,Rt;nt<arguments.length;nt++){_t=arguments[nt];for(Rt in _t)Object.prototype.hasOwnProperty.call(_t,Rt)&&(pe[Rt]=_t[Rt])}return pe}function Pe(pe,nt){var _t=pe.replace(/\|/g,function(zt,Gt,on){for(var Ln=!1,yn=Gt;--yn>=0&&on[yn]==="\\";)Ln=!Ln;return Ln?"|":" |"}),Rt=_t.split(/ \|/),Mt=0;if(Rt.length>nt)Rt.splice(nt);else for(;Rt.length<nt;)Rt.push("");for(;Mt<Rt.length;Mt++)Rt[Mt]=Rt[Mt].trim().replace(/\\\|/g,"|");return Rt}function ve(pe,nt,_t){if(pe.length===0)return"";for(var Rt=0;Rt<pe.length;){var Mt=pe.charAt(pe.length-Rt-1);if(Mt===nt&&!_t)Rt++;else if(Mt!==nt&&_t)Rt++;else break}return pe.substr(0,pe.length-Rt)}function Me(pe,nt){if(pe.indexOf(nt[1])===-1)return-1;for(var _t=0,Rt=0;Rt<pe.length;Rt++)if(pe[Rt]==="\\")Rt++;else if(pe[Rt]===nt[0])_t++;else if(pe[Rt]===nt[1]&&(_t--,_t<0))return Rt;return-1}function Ie(pe,nt,_t){if(typeof pe=="undefined"||pe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof pe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(pe)+", string expected");if(_t||typeof nt=="function"){_t||(_t=nt,nt=null),nt=ee({},Ie.defaults,nt||{});var Rt=nt.highlight,Mt,zt,Gt=0;try{Mt=me.lex(pe,nt)}catch(Ln){return _t(Ln)}zt=Mt.length;var on=function(yn){if(yn)return nt.highlight=Rt,_t(yn);var Mn;try{Mn=Pt.parse(Mt,nt)}catch(kt){yn=kt}return nt.highlight=Rt,yn?_t(yn):_t(null,Mn)};if(!Rt||Rt.length<3)return on();if(delete nt.highlight,!zt)return on();for(;Gt<Mt.length;Gt++)(function(Ln){return Ln.type!=="code"?--zt||on():Rt(Ln.text,Ln.lang,function(yn,Mn){if(yn)return on(yn);if(Mn==null||Mn===Ln.text)return--zt||on();Ln.text=Mn,Ln.escaped=!0,--zt||on()})})(Mt[Gt]);return}try{return nt&&(nt=ee({},Ie.defaults,nt)),Pt.parse(me.lex(pe,nt),nt)}catch(Ln){if(Ln.message+=`
Please report this to https://github.com/markedjs/marked.`,(nt||Ie.defaults).silent)return"<p>An error occurred:</p><pre>"+Ke(Ln.message+"",!0)+"</pre>";throw Ln}}Ie.options=Ie.setOptions=function(pe){return ee(Ie.defaults,pe),Ie},Ie.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new tt,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Ie.defaults=Ie.getDefaults(),Ie.Parser=Pt,Ie.parser=Pt.parse,Ie.Renderer=tt,Ie.TextRenderer=Et,Ie.Lexer=me,Ie.lexer=me.lex,Ie.InlineLexer=He,Ie.inlineLexer=He.output,Ie.Slugger=Xt,Ie.parse=Ie,U=Ie}).call(void 0);var j=U,G=U.Parser,R=U.parser,_=U.Renderer,x=U.TextRenderer,K=U.Lexer,D=U.lexer,A=U.InlineLexer,te=U.inlineLexer,H=U.parse,E,E,f;(function(){function ie(Q,me,ye){function He(Pt,Xt){if(!me[Pt]){if(!Q[Pt]){var Ke=typeof E=="function"&&E;if(!Xt&&Ke)return E(Pt,!0);if(tt)return tt(Pt,!0);var Xe=new Error("Cannot find module '"+Pt+"'");throw Xe.code="MODULE_NOT_FOUND",Xe}var Ze=me[Pt]={exports:{}};Q[Pt][0].call(Ze.exports,function(Ye){var Fe=Q[Pt][1][Ye];return He(Fe||Ye)},Ze,Ze.exports,ie,Q,me,ye)}return me[Pt].exports}for(var tt=typeof E=="function"&&E,Et=0;Et<ye.length;Et++)He(ye[Et]);return He}return ie})()({1:[function(ie,Q,me){"use strict";var ye=ie("./toMap"),He=["background","base","cite","href","longdesc","src","usemap"];Q.exports={uris:ye(He)}},{"./toMap":10}],2:[function(ie,Q,me){"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};Q.exports=ye},{}],3:[function(ie,Q,me){"use strict";var ye=ie("./toMap"),He=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];Q.exports={voids:ye(He)}},{"./toMap":10}],4:[function(ie,Q,me){"use strict";var ye=ie("he"),He=ie("assignment"),tt=ie("./parser"),Et=ie("./sanitizer"),Pt=ie("./defaults");function Xt(Ke,Xe,Ze){var Ye=[],Fe=Ze===!0?Xe:He({},Pt,Xe),$e=Et(Ye,Fe);return tt(Ke,$e),Ye.join("")}Xt.defaults=Pt,Q.exports=Xt,f=Xt},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(ie,Q,me){"use strict";Q.exports=function(He){return typeof He=="string"?He.toLowerCase():He}},{}],6:[function(ie,Q,me){"use strict";function ye(He){for(var tt=Array.prototype.slice.call(arguments,1),Et,Pt;tt.length;){Et=tt.shift();for(Pt in Et)Et.hasOwnProperty(Pt)&&(Object.prototype.toString.call(He[Pt])==="[object Object]"?He[Pt]=ye(He[Pt],Et[Pt]):He[Pt]=Et[Pt])}return He}Q.exports=ye},{}],7:[function(ie,Q,me){"use strict";var ye=ie("he"),He=ie("./lowercase"),tt=ie("./attributes"),Et=ie("./elements"),Pt=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Xt=/^<\s*\/\s*([\w:-]+)[^>]*>/,Ke=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,Xe=/^</,Ze=/^<\s*\//;function Ye(){var $e=[];return $e.lastItem=function(){return $e[$e.length-1]},$e}function Fe($e,we){for(var F=Ye(),ee=$e,Pe;$e;)ve();Rt();function ve(){Pe=!0,Me();var Mt=$e===ee;ee=$e,Mt&&($e="")}function Me(){$e.substr(0,4)==="<!--"?pe():Ze.test($e)?Ie(Xt,Rt):Xe.test($e)&&Ie(Pt,_t),nt()}function Ie(Mt,zt){var Gt=$e.match(Mt);Gt&&($e=$e.substring(Gt[0].length),Gt[0].replace(Mt,zt),Pe=!1)}function pe(){var Mt=$e.indexOf("-->");Mt>=0&&(we.comment&&we.comment($e.substring(4,Mt)),$e=$e.substring(Mt+3),Pe=!1)}function nt(){if(!Pe)return;var Mt,zt=$e.indexOf("<");zt>=0?(Mt=$e.substring(0,zt),$e=$e.substring(zt)):(Mt=$e,$e=""),we.chars&&we.chars(Mt)}function _t(Mt,zt,Gt,on){var Ln={},yn=He(zt),Mn=Et.voids[yn]||!!on;Gt.replace(Ke,kt),Mn||F.push(yn),we.start&&we.start(yn,Ln,Mn);function kt(pt,gt,Dt,Lt,Vt){Dt===void 0&&Lt===void 0&&Vt===void 0?Ln[gt]=void 0:Ln[gt]=ye.decode(Dt||Lt||Vt||"")}}function Rt(Mt,zt){var Gt,on=0,Ln=He(zt);if(Ln)for(on=F.length-1;on>=0&&!(F[on]===Ln);on--);if(on>=0){for(Gt=F.length-1;Gt>=on;Gt--)we.end&&we.end(F[Gt]);F.length=on}}}Q.exports=Fe},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(ie,Q,me){"use strict";var ye=ie("he"),He=ie("./lowercase"),tt=ie("./attributes"),Et=ie("./elements");function Pt(Xt,Ke){var Xe,Ze,Ye=Ke||{};return Me(),{start:$e,end:we,chars:ee};function Fe(Ie){Xt.push(Ie)}function $e(Ie,pe,nt){var _t=He(Ie);if(Ze.ignoring){Pe(_t);return}if((Ye.allowedTags||[]).indexOf(_t)===-1){Pe(_t);return}if(Ye.filter&&!Ye.filter({tag:_t,attrs:pe})){Pe(_t);return}Fe("<"),Fe(_t),Object.keys(pe).forEach(Rt),Fe(nt?"/>":">");function Rt(Mt){var zt=pe[Mt],Gt=(Ye.allowedClasses||{})[_t]||[],on=(Ye.allowedAttributes||{})[_t]||[];on=on.concat((Ye.allowedAttributes||{})["*"]||[]);var Ln,yn=He(Mt);yn==="class"&&on.indexOf(yn)===-1?(zt=zt.split(" ").filter(Mn).join(" ").trim(),Ln=zt.length):Ln=on.indexOf(yn)!==-1&&(tt.uris[yn]!==!0||F(zt)),Ln&&(Fe(" "),Fe(Mt),typeof zt=="string"&&(Fe('="'),Fe(ye.encode(zt)),Fe('"')));function Mn(kt){return Gt&&Gt.indexOf(kt)!==-1}}}function we(Ie){var pe=He(Ie),nt=(Ye.allowedTags||[]).indexOf(pe)!==-1;nt&&Ze.ignoring===!1?(Fe("</"),Fe(pe),Fe(">")):ve(pe)}function F(Ie){var pe=Ie[0];if(pe==="#"||pe==="/")return!0;var nt=Ie.indexOf(":");if(nt===-1)return!0;var _t=Ie.indexOf("?");if(_t!==-1&&nt>_t)return!0;var Rt=Ie.indexOf("#");if(Rt!==-1&&nt>Rt)return!0;return Ye.allowedSchemes.some(Mt);function Mt(zt){return Ie.indexOf(zt+":")===0}}function ee(Ie){Ze.ignoring===!1&&Fe(Ye.transformText?Ye.transformText(Ie):Ie)}function Pe(Ie){if(Et.voids[Ie])return;Ze.ignoring===!1?Ze={ignoring:Ie,depth:1}:Ze.ignoring===Ie&&Ze.depth++}function ve(Ie){Ze.ignoring===Ie&&(--Ze.depth<=0&&Me())}function Me(){Ze={ignoring:!1,depth:0}}}Q.exports=Pt},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(ie,Q,me){"use strict";var ye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},He={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tt=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,Et=/[&<>"']/g;function Pt(Ze){return ye[Ze]}function Xt(Ze){return He[Ze]}function Ke(Ze){return Ze==null?"":String(Ze).replace(Et,Pt)}function Xe(Ze){return Ze==null?"":String(Ze).replace(tt,Xt)}Ke.options=Xe.options={},Q.exports={encode:Ke,escape:Ke,decode:Xe,unescape:Xe,version:"1.0.0-browser"}},{}],10:[function(ie,Q,me){"use strict";function ye(tt){return tt.reduce(He,{})}function He(tt,Et){return tt[Et]=!0,tt}Q.exports=ye},{}]},{},[4]);var p=f,g=o("Q4rV"),m=o("qj0h"),w=o("N0LK"),B=o("bY76"),z=o("tYmi"),oe=o("Vhoy");function he(ie,Q){Q===void 0&&(Q={});var me=Object(re.a)(Q),ye=function(Fe){var $e;try{$e=Object(g.a)(decodeURIComponent(Fe))}catch(we){}return $e?($e=Object(m.b)($e,function(we){return ie.uris&&ie.uris[we]?B.a.revive(ie.uris[we]):void 0}),encodeURIComponent(JSON.stringify($e))):Fe},He=function(Fe,$e){var we=ie.uris&&ie.uris[Fe];if(!we)return Fe;var F=B.a.revive(we);return B.a.parse(Fe).toString()===F.toString()?Fe:($e&&(F=I.r(F)),F.query&&(F=F.with({query:ye(F.query)})),F.toString(!0))},tt,Et=new Promise(function(Ye){return tt=Ye}),Pt=new _;Pt.image=function(Ye,Fe,$e){var we,F=[],ee=[];return Ye&&(we=Object(N.d)(Ye),Ye=we.href,F=we.dimensions,Ye=He(Ye,!0),ee.push('src="'+Ye+'"')),$e&&ee.push('alt="'+$e+'"'),Fe&&ee.push('title="'+Fe+'"'),F.length&&(ee=ee.concat(F)),"<img "+ee.join(" ")+">"},Pt.link=function(Ye,Fe,$e){return Ye===$e&&($e=Object(N.e)($e)),Ye=He(Ye,!1),Fe=Object(N.e)(Fe),Ye=Object(N.e)(Ye),!Ye||Ye.match(/^data:|javascript:/i)||Ye.match(/^command:/i)&&!ie.isTrusted||Ye.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?$e:(Ye=Ye.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),'<a href="#" data-href="'+Ye+'" title="'+(Fe||Ye)+'">'+$e+"</a>")},Pt.paragraph=function(Ye){return"<p>"+(ie.supportThemeIcons?Object(oe.c)(Ye):Ye)+"</p>"},Q.codeBlockRenderer&&(Pt.code=function(Ye,Fe){var $e=Q.codeBlockRenderer(Fe,Ye),we=k.b.nextId(),F=Promise.all([$e,Et]).then(function(ee){var Pe=ee[0],ve=me.querySelector('div[data-code="'+we+'"]');ve&&(ve.innerHTML=Pe)}).catch(function(ee){});return Q.codeBlockRenderCallback&&F.then(Q.codeBlockRenderCallback),'<div class="code" data-code="'+we+'">'+Object(w.o)(Ye)+"</div>"});var Xt=Q.actionHandler;Xt&&Xt.disposeables.add(I.n(me,"click",function(Ye){var Fe=Ye.target;if(Fe.tagName!=="A"&&(Fe=Fe.parentElement,!Fe||Fe.tagName!=="A"))return;try{var $e=Fe.dataset.href;$e&&Xt.callback($e,Ye)}catch(we){Object(ne.e)(we)}finally{Ye.preventDefault()}}));var Ke={sanitize:!0,renderer:Pt},Xe=[z.b.http,z.b.https,z.b.mailto,z.b.data,z.b.file,z.b.vscodeRemote,z.b.vscodeRemoteResource];ie.isTrusted&&Xe.push(z.b.command);var Ze=H(ie.supportThemeIcons?Object(oe.b)(ie.value):ie.value,Ke);return me.innerHTML=p(Ze,{allowedSchemes:Xe,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),tt(),me}var _e=o("W9cx"),Se=o("WBhO"),q=o("TQUy"),Z=o("Cg/j"),ce=o("MI8n"),Te=o("pmY6"),Ve=o("twdY"),Ee=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,tt){He.__proto__=tt}||function(He,tt){for(var Et in tt)tt.hasOwnProperty(Et)&&(He[Et]=tt[Et])},ie(me,ye)};return function(Q,me){ie(Q,me);function ye(){this.constructor=Q}Q.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),de=function(ie,Q,me,ye){var He=arguments.length,tt=He<3?Q:ye===null?ye=Object.getOwnPropertyDescriptor(Q,me):ye,Et;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(ie,Q,me,ye);else for(var Pt=ie.length-1;Pt>=0;Pt--)(Et=ie[Pt])&&(tt=(He<3?Et(tt):He>3?Et(Q,me,tt):Et(Q,me))||tt);return He>3&&tt&&Object.defineProperty(Q,me,tt),tt},se=function(ie,Q){return function(me,ye){Q(me,ye,ie)}},fe=function(ie){Ee(Q,ie);function Q(me,ye,He){He===void 0&&(He=_e.b);var tt=ie.call(this)||this;return tt._editor=me,tt._modeService=ye,tt._openerService=He,tt._onDidRenderCodeBlock=tt._register(new ce.a),tt.onDidRenderCodeBlock=tt._onDidRenderCodeBlock.event,tt}return Q.prototype.getOptions=function(me){var ye=this;return{codeBlockRenderer:function(tt,Et){var Pt=null;if(tt)Pt=ye._modeService.getModeIdForLanguageName(tt);else{var Xt=ye._editor.getModel();Xt&&(Pt=Xt.getLanguageIdentifier().language)}return ye._modeService.triggerMode(Pt||""),Promise.resolve(!0).then(function(Ke){var Xe=Ve.y.getPromise(Pt||"");return Xe?Xe.then(function(Ze){return Object(q.b)(Et,Ze)}):Object(q.b)(Et,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:me}}},Q.prototype.render=function(me){var ye=new Te.b,He;return me?He=he(me,this.getOptions(ye)):He=document.createElement("span"),{element:He,dispose:function(){return ye.dispose()}}},Q=de([se(1,Se.a),se(2,Object(Z.d)(_e.a))],Q),Q}(Te.a)},"3rx1":function(wt,P,o){"use strict";o.d(P,"b",function(){return j}),o.d(P,"a",function(){return G}),o.d(P,"c",function(){return _});var I=o("bY76"),re=o("MrjW"),ne=o("N0LK"),N=o("tYmi"),k=o("MNsG"),U=o("gslv");function j(D,A,te){if(typeof D=="string"&&(D=I.a.file(D)),te){var H=te.getWorkspaceFolder(D);if(H){var E=te.getWorkspace().folders.length>1,f=void 0;if(Object(U.e)(H.uri,D)?f="":f=Object(U.h)(H.uri,D),E){var p=H.name?H.name:Object(U.b)(H.uri);f=f?p+" \u2022 "+f:p}return f}}if(D.scheme!==N.b.file&&D.scheme!==N.b.untitled)return D.with({query:null,fragment:null}).toString(!0);if(R(D.fsPath))return Object(re.normalize)(_(D.fsPath));var g=Object(re.normalize)(D.fsPath);return!k.h&&A&&(g=K(g,A.userHome)),g}function G(D){if(!D)return;typeof D=="string"&&(D=I.a.file(D));var A=Object(U.b)(D)||(D.scheme===N.b.file?D.fsPath:D.path);return R(A)?_(A):A}function R(D){return!!(k.h&&D&&D[1]===":")}function _(D){return R(D)?D.charAt(0).toUpperCase()+D.slice(1):D}var x=Object.create(null);function K(D,A){if(k.h||!D||!A)return D;var te=x.original===A?x.normalized:void 0;return te||(te=""+Object(ne.K)(A,re.posix.sep)+re.posix.sep,x={original:A,normalized:te}),(k.d?Object(ne.M)(D,te):Object(ne.N)(D,te))&&(D="~/"+D.substr(te.length)),D}},"4bUh":function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("twdY"),re=function(){function N(k,U){this._tokens=k,this._tokensCount=this._tokens.length>>>1,this._text=U}return N.prototype.equals=function(k){return k instanceof N?this.slicedEquals(k,0,this._tokensCount):!1},N.prototype.slicedEquals=function(k,U,j){if(this._text!==k._text)return!1;if(this._tokensCount!==k._tokensCount)return!1;for(var G=U<<1,R=G+(j<<1),_=G;_<R;_++)if(this._tokens[_]!==k._tokens[_])return!1;return!0},N.prototype.getLineContent=function(){return this._text},N.prototype.getCount=function(){return this._tokensCount},N.prototype.getStartOffset=function(k){return k>0?this._tokens[k-1<<1]:0},N.prototype.getMetadata=function(k){var U=this._tokens[(k<<1)+1];return U},N.prototype.getLanguageId=function(k){var U=this._tokens[(k<<1)+1];return I.x.getLanguageId(U)},N.prototype.getStandardTokenType=function(k){var U=this._tokens[(k<<1)+1];return I.x.getTokenType(U)},N.prototype.getForeground=function(k){var U=this._tokens[(k<<1)+1];return I.x.getForeground(U)},N.prototype.getClassName=function(k){var U=this._tokens[(k<<1)+1];return I.x.getClassNameFromMetadata(U)},N.prototype.getInlineStyle=function(k,U){var j=this._tokens[(k<<1)+1];return I.x.getInlineStyleFromMetadata(j,U)},N.prototype.getEndOffset=function(k){return this._tokens[k<<1]},N.prototype.findTokenIndexAtOffset=function(k){return N.findIndexInTokensArray(this._tokens,k)},N.prototype.inflate=function(){return this},N.prototype.sliceAndInflate=function(k,U,j){return new ne(this,k,U,j)},N.convertToEndOffset=function(k,U){for(var j=k.length>>>1,G=j-1,R=0;R<G;R++)k[R<<1]=k[R+1<<1];k[G<<1]=U},N.findIndexInTokensArray=function(k,U){if(k.length<=2)return 0;for(var j=0,G=(k.length>>>1)-1;j<G;){var R=j+Math.floor((G-j)/2),_=k[R<<1];if(_===U)return R+1;_<U?j=R+1:_>U&&(G=R)}return j},N}(),ne=function(){function N(k,U,j,G){this._source=k,this._startOffset=U,this._endOffset=j,this._deltaOffset=G,this._firstTokenIndex=k.findTokenIndexAtOffset(U),this._tokensCount=0;for(var R=this._firstTokenIndex,_=k.getCount();R<_;R++){var x=k.getStartOffset(R);if(x>=j)break;this._tokensCount++}}return N.prototype.equals=function(k){return k instanceof N?this._startOffset===k._startOffset&&this._endOffset===k._endOffset&&this._deltaOffset===k._deltaOffset&&this._source.slicedEquals(k._source,this._firstTokenIndex,this._tokensCount):!1},N.prototype.getCount=function(){return this._tokensCount},N.prototype.getForeground=function(k){return this._source.getForeground(this._firstTokenIndex+k)},N.prototype.getEndOffset=function(k){var U=this._source.getEndOffset(this._firstTokenIndex+k);return Math.min(this._endOffset,U)-this._startOffset+this._deltaOffset},N.prototype.getClassName=function(k){return this._source.getClassName(this._firstTokenIndex+k)},N.prototype.getInlineStyle=function(k,U){return this._source.getInlineStyle(this._firstTokenIndex+k,U)},N.prototype.findTokenIndexAtOffset=function(k){return this._source.findTokenIndexAtOffset(k+this._startOffset-this._deltaOffset)-this._firstTokenIndex},N}()},"4rho":function(wt,P,o){},"4y0V":function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("MI8n"),re=function(k,U,j){var G=function(x){return R.fire(x)},R=new I.a({onFirstListenerAdd:function(){k.addEventListener(U,G,j)},onLastListenerRemove:function(){k.removeEventListener(U,G,j)}});return R.event};function ne(N){return I.b.map(N,function(k){return k.preventDefault(),k.stopPropagation(),k})}},"51B1":function(wt,P,o){},"51f4":function(wt,P,o){"use strict";o.d(P,"a",function(){return k});var I=!1,re=null;function ne(U){if(!U.parent||U.parent===U)return null;try{var j=U.location,G=U.parent.location;if(j.protocol!==G.protocol||j.hostname!==G.hostname||j.port!==G.port)return I=!0,null}catch(R){return I=!0,null}return U.parent}function N(U,j){for(var G=U.document.getElementsByTagName("iframe"),R,_=0,x=G.length;_<x;_++)if(R=G[_],R.contentWindow===j)return R;return null}var k=function(){function U(){}return U.getSameOriginWindowChain=function(){if(!re){re=[];var j=window,G;do G=ne(j),G?re.push({window:j,iframeElement:N(G,j)}):re.push({window:j,iframeElement:null}),j=G;while(j)}return re.slice(0)},U.hasDifferentOriginAncestor=function(){return re||this.getSameOriginWindowChain(),I},U.getPositionOfChildWindowRelativeToAncestorWindow=function(j,G){if(!G||j===G)return{top:0,left:0};for(var R=0,_=0,x=this.getSameOriginWindowChain(),K=0,D=x;K<D.length;K++){var A=D[K];if(A.window===G)break;if(!A.iframeElement)break;var te=A.iframeElement.getBoundingClientRect();R+=te.top,_+=te.left}return{top:R,left:_}},U}()},"5DEy":function(wt,P,o){},"5TxY":function(wt,P,o){"use strict";o.d(P,"a",function(){return K}),o.d(P,"b",function(){return A});var I=o("D3Dy"),re=o("EffR"),ne=o("X+cX"),N=o("MI8n"),k=o("pmY6"),U=o("MNsG"),j=o("N0LK"),G=o("Comh"),R=o("gCVg"),_=o("CjF5"),x=function(){var E=function(p,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},E(p,g)};return function(f,p){E(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),K={forceCopyWithSyntaxHighlighting:!1},D=function(){function E(){this._lastState=null}return E.prototype.set=function(f,p){this._lastState={lastCopiedValue:f,data:p}},E.prototype.get=function(f){return this._lastState&&this._lastState.lastCopiedValue===f?this._lastState.data:(this._lastState=null,null)},E.INSTANCE=new E,E}(),A=function(E){x(f,E);function f(p,g){var m=E.call(this)||this;m.textArea=g,m._onFocus=m._register(new N.a),m.onFocus=m._onFocus.event,m._onBlur=m._register(new N.a),m.onBlur=m._onBlur.event,m._onKeyDown=m._register(new N.a),m.onKeyDown=m._onKeyDown.event,m._onKeyUp=m._register(new N.a),m.onKeyUp=m._onKeyUp.event,m._onCut=m._register(new N.a),m.onCut=m._onCut.event,m._onPaste=m._register(new N.a),m.onPaste=m._onPaste.event,m._onType=m._register(new N.a),m.onType=m._onType.event,m._onCompositionStart=m._register(new N.a),m.onCompositionStart=m._onCompositionStart.event,m._onCompositionUpdate=m._register(new N.a),m.onCompositionUpdate=m._onCompositionUpdate.event,m._onCompositionEnd=m._register(new N.a),m.onCompositionEnd=m._onCompositionEnd.event,m._onSelectionChangeRequest=m._register(new N.a),m.onSelectionChangeRequest=m._onSelectionChangeRequest.event,m._host=p,m._textArea=m._register(new H(g)),m._asyncTriggerCut=m._register(new ne.d(function(){return m._onCut.fire()},0)),m._textAreaState=G.b.EMPTY,m._selectionChangeListener=null,m.writeScreenReaderContent("ctor"),m._hasFocus=!1,m._isDoingComposition=!1,m._nextCommand=0,m._register(re.n(g.domNode,"keydown",function(oe){m._isDoingComposition&&(oe.keyCode===109||oe.keyCode===1)&&oe.stopPropagation(),oe.equals(9)&&oe.preventDefault(),m._onKeyDown.fire(oe)})),m._register(re.n(g.domNode,"keyup",function(oe){m._onKeyUp.fire(oe)})),m._register(re.i(g.domNode,"compositionstart",function(oe){if(m._isDoingComposition)return;m._isDoingComposition=!0,I.f||m._setAndWriteTextAreaState("compositionstart",G.b.EMPTY),m._onCompositionStart.fire()}));var w=function(he){var _e=m._textAreaState,Se=G.b.readFromTextArea(m._textArea);return[Se,G.b.deduceInput(_e,Se,he)]},B=function(he){var _e=m._textAreaState,Se=G.b.selectedText(he),q={text:Se.value,replaceCharCnt:_e.selectionEnd-_e.selectionStart};return[Se,q]},z=function(he){return I.f&&he==="ja"?!0:!!(I.i&&he.indexOf("zh-Han")===0)};return m._register(re.i(g.domNode,"compositionupdate",function(oe){if(z(oe.locale)){var he=w(!1),_e=he[0],Se=he[1];m._textAreaState=_e,m._onType.fire(Se),m._onCompositionUpdate.fire(oe);return}var q=B(oe.data),Z=q[0],ce=q[1];m._textAreaState=Z,m._onType.fire(ce),m._onCompositionUpdate.fire(oe)})),m._register(re.i(g.domNode,"compositionend",function(oe){if(!m._isDoingComposition)return;if(z(oe.locale)){var he=w(!1),_e=he[0],Se=he[1];m._textAreaState=_e,m._onType.fire(Se)}else{var q=B(oe.data),_e=q[0],Se=q[1];m._textAreaState=_e,m._onType.fire(Se)}if((I.f||I.d)&&(m._textAreaState=G.b.readFromTextArea(m._textArea)),!m._isDoingComposition)return;m._isDoingComposition=!1,m._onCompositionEnd.fire()})),m._register(re.i(g.domNode,"input",function(){if(m._textArea.setIgnoreSelectionChangeTime("received input event"),m._isDoingComposition)return;var oe=w(U.e),he=oe[0],_e=oe[1];if(_e.replaceCharCnt===0&&_e.text.length===1&&j.z(_e.text.charCodeAt(0)))return;m._textAreaState=he,m._nextCommand===0?_e.text!==""&&m._onType.fire(_e):((_e.text!==""||_e.replaceCharCnt!==0)&&m._firePaste(_e.text,null),m._nextCommand=0)})),m._register(re.i(g.domNode,"cut",function(oe){m._textArea.setIgnoreSelectionChangeTime("received cut event"),m._ensureClipboardGetsEditorSelection(oe),m._asyncTriggerCut.schedule()})),m._register(re.i(g.domNode,"copy",function(oe){m._ensureClipboardGetsEditorSelection(oe)})),m._register(re.i(g.domNode,"paste",function(oe){if(m._textArea.setIgnoreSelectionChangeTime("received paste event"),te.canUseTextData(oe)){var he=te.getTextData(oe),_e=he[0],Se=he[1];_e!==""&&m._firePaste(_e,Se)}else m._textArea.getSelectionStart()!==m._textArea.getSelectionEnd()&&m._setAndWriteTextAreaState("paste",G.b.EMPTY),m._nextCommand=1})),m._register(re.i(g.domNode,"focus",function(){m._setHasFocus(!0)})),m._register(re.i(g.domNode,"blur",function(){m._setHasFocus(!1)})),m}return f.prototype._installSelectionChangeListener=function(){var p=this,g=0;return re.i(document,"selectionchange",function(m){if(!p._hasFocus)return;if(p._isDoingComposition)return;if(!I.d||!U.h)return;var w=Date.now(),B=w-g;if(g=w,B<5)return;var z=w-p._textArea.getIgnoreSelectionChangeTime();if(p._textArea.resetSelectionChangeTime(),z<100)return;if(!p._textAreaState.selectionStartPosition||!p._textAreaState.selectionEndPosition)return;var oe=p._textArea.getValue();if(p._textAreaState.value!==oe)return;var he=p._textArea.getSelectionStart(),_e=p._textArea.getSelectionEnd();if(p._textAreaState.selectionStart===he&&p._textAreaState.selectionEnd===_e)return;var Se=p._textAreaState.deduceEditorPosition(he),q=p._host.deduceModelPosition(Se[0],Se[1],Se[2]),Z=p._textAreaState.deduceEditorPosition(_e),ce=p._host.deduceModelPosition(Z[0],Z[1],Z[2]),Te=new R.a(q.lineNumber,q.column,ce.lineNumber,ce.column);p._onSelectionChangeRequest.fire(Te)})},f.prototype.dispose=function(){E.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},f.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},f.prototype.isFocused=function(){return this._hasFocus},f.prototype.refreshFocusState=function(){var p=re.D(this.textArea.domNode);p?this._setHasFocus(p.activeElement===this.textArea.domNode):re.L(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},f.prototype._setHasFocus=function(p){if(this._hasFocus===p)return;this._hasFocus=p,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(I.e?this._setAndWriteTextAreaState("focusgain",G.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire()},f.prototype._setAndWriteTextAreaState=function(p,g){this._hasFocus||(g=g.collapseSelection()),g.writeToTextArea(p,this._textArea,this._hasFocus),this._textAreaState=g},f.prototype.writeScreenReaderContent=function(p){if(this._isDoingComposition)return;this._setAndWriteTextAreaState(p,this._host.getScreenReaderContent(this._textAreaState))},f.prototype._ensureClipboardGetsEditorSelection=function(p){var g=this._host.getDataToCopy(te.canUseTextData(p)&&_.a.clipboard.richText),m={version:1,isFromEmptySelection:g.isFromEmptySelection,multicursorText:g.multicursorText,mode:g.mode};if(D.INSTANCE.set(I.h?g.text.replace(/\r\n/g,`
`):g.text,m),!te.canUseTextData(p)){this._setAndWriteTextAreaState("copy or cut",G.b.selectedText(g.text));return}te.setTextData(p,g.text,g.html,m)},f.prototype._firePaste=function(p,g){g||(g=D.INSTANCE.get(p)),this._onPaste.fire({text:p,metadata:g})},f}(k.a),te=function(){function E(){}return E.canUseTextData=function(f){return f.clipboardData?!0:!!window.clipboardData},E.getTextData=function(f){if(f.clipboardData){f.preventDefault();var p=f.clipboardData.getData("text/plain"),g=null,m=f.clipboardData.getData("vscode-editor-data");if(typeof m=="string")try{g=JSON.parse(m),g.version!==1&&(g=null)}catch(w){}return[p,g]}if(window.clipboardData){f.preventDefault();var p=window.clipboardData.getData("Text");return[p,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},E.setTextData=function(f,p,g,m){if(f.clipboardData){f.clipboardData.setData("text/plain",p),typeof g=="string"&&f.clipboardData.setData("text/html",g),f.clipboardData.setData("vscode-editor-data",JSON.stringify(m)),f.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",p),f.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},E}(),H=function(E){x(f,E);function f(p){var g=E.call(this)||this;return g._actual=p,g._ignoreSelectionChangeTime=0,g}return f.prototype.setIgnoreSelectionChangeTime=function(p){this._ignoreSelectionChangeTime=Date.now()},f.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},f.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},f.prototype.getValue=function(){return this._actual.domNode.value},f.prototype.setValue=function(p,g){var m=this._actual.domNode;if(m.value===g)return;this.setIgnoreSelectionChangeTime("setValue"),m.value=g},f.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},f.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},f.prototype.setSelectionRange=function(p,g,m){var w=this._actual.domNode,B=null,z=re.D(w);z?B=z.activeElement:B=document.activeElement;var oe=B===w,he=w.selectionStart,_e=w.selectionEnd;if(oe&&he===g&&_e===m){I.h&&window.parent!==window&&w.focus();return}if(oe){this.setIgnoreSelectionChangeTime("setSelectionRange"),w.setSelectionRange(g,m),I.h&&window.parent!==window&&w.focus();return}try{var Se=re.U(w);this.setIgnoreSelectionChangeTime("setSelectionRange"),w.focus(),w.setSelectionRange(g,m),re.S(w,Se)}catch(q){}},f}(k.a)},"5Y4S":function(wt,P,o){"use strict";o.d(P,"a",function(){return ne});var I=o("MNsG"),re=I.b.performance&&typeof I.b.performance.now=="function",ne=function(){function N(k){this._highResolution=re&&k,this._startTime=this._now(),this._stopTime=-1}return N.create=function(k){return k===void 0&&(k=!0),new N(k)},N.prototype.stop=function(){this._stopTime=this._now()},N.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},N.prototype._now=function(){return this._highResolution?I.b.performance.now():new Date().getTime()},N}()},"5v8Y":function(wt,P,o){"use strict";o.d(P,"a",function(){return k});var I=o("MXAL"),re=function(){var U=function(G,R){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,x){_.__proto__=x}||function(_,x){for(var K in x)x.hasOwnProperty(K)&&(_[K]=x[K])},U(G,R)};return function(j,G){U(j,G);function R(){this.constructor=j}j.prototype=G===null?Object.create(G):(R.prototype=G.prototype,new R)}}(),ne=function(U){re(j,U);function j(G){for(var R=U.call(this,0)||this,_=0,x=G.length;_<x;_++)R.set(G.charCodeAt(_),2);return R.set(32,1),R.set(9,1),R}return j}(I.a);function N(U){var j={};return function(G){return j.hasOwnProperty(G)||(j[G]=U(G)),j[G]}}var k=N(function(U){return new ne(U)})},"62hx":function(wt,P,o){},"6OMU":function(wt,P,o){"use strict";o.d(P,"v",function(){return I}),o.d(P,"w",function(){return re}),o.d(P,"g",function(){return ne}),o.d(P,"c",function(){return N}),o.d(P,"i",function(){return k}),o.d(P,"r",function(){return U}),o.d(P,"o",function(){return R}),o.d(P,"d",function(){return _}),o.d(P,"p",function(){return x}),o.d(P,"q",function(){return K}),o.d(P,"e",function(){return D}),o.d(P,"f",function(){return A}),o.d(P,"n",function(){return te}),o.d(P,"k",function(){return H}),o.d(P,"j",function(){return E}),o.d(P,"l",function(){return f}),o.d(P,"m",function(){return p}),o.d(P,"u",function(){return g}),o.d(P,"a",function(){return m}),o.d(P,"t",function(){return w}),o.d(P,"s",function(){return B}),o.d(P,"h",function(){return z}),o.d(P,"b",function(){return oe});function I(he,_e){return _e===void 0&&(_e=0),he[he.length-(1+_e)]}function re(he){if(he.length===0)throw new Error("Invalid tail call");return[he.slice(0,he.length-1),he[he.length-1]]}function ne(he,_e,Se){if(Se===void 0&&(Se=function(Te,Ve){return Te===Ve}),he===_e)return!0;if(!he||!_e)return!1;if(he.length!==_e.length)return!1;for(var q=0,Z=he.length;q<Z;q++)if(!Se(he[q],_e[q]))return!1;return!0}function N(he,_e,Se){for(var q=0,Z=he.length-1;q<=Z;){var ce=(q+Z)/2|0,Te=Se(he[ce],_e);if(Te<0)q=ce+1;else if(Te>0)Z=ce-1;else return ce}return-(q+1)}function k(he,_e){var Se=0,q=he.length;if(q===0)return 0;for(;Se<q;){var Z=Math.floor((Se+q)/2);_e(he[Z])?q=Z:Se=Z+1}return Se}function U(he,_e){return G(he,_e,0,he.length-1,[]),he}function j(he,_e,Se,q,Z,ce){for(var Te=Se,Ve=q+1,Ee=Se;Ee<=Z;Ee++)ce[Ee]=he[Ee];for(var Ee=Se;Ee<=Z;Ee++)Te>q?he[Ee]=ce[Ve++]:Ve>Z?he[Ee]=ce[Te++]:_e(ce[Ve],ce[Te])<0?he[Ee]=ce[Ve++]:he[Ee]=ce[Te++]}function G(he,_e,Se,q,Z){if(q<=Se)return;var ce=Se+(q-Se)/2|0;if(G(he,_e,Se,ce,Z),G(he,_e,ce+1,q,Z),_e(he[ce],he[ce+1])<=0)return;j(he,_e,Se,ce,q,Z)}function R(he,_e){for(var Se=[],q=void 0,Z=0,ce=U(he.slice(0),_e);Z<ce.length;Z++){var Te=ce[Z];!q||_e(q[0],Te)!==0?(q=[Te],Se.push(q)):q.push(Te)}return Se}function _(he){return he.filter(function(_e){return!!_e})}function x(he){return!Array.isArray(he)||he.length===0}function K(he){return Array.isArray(he)&&he.length>0}function D(he,_e){if(!_e)return he.filter(function(q,Z){return he.indexOf(q)===Z});var Se=Object.create(null);return he.filter(function(q){var Z=_e(q);return Se[Z]?!1:(Se[Z]=!0,!0)})}function A(he){var _e=new Set;return he.filter(function(Se){return _e.has(Se)?!1:(_e.add(Se),!0)})}function te(he){var _e=[];return he.forEach(function(Se){return _e.push(Se)}),_e}function H(he,_e){for(var Se=0;Se<he.length;Se++){var q=he[Se];if(_e(q))return Se}return-1}function E(he,_e,Se){Se===void 0&&(Se=void 0);var q=H(he,_e);return q<0?Se:he[q]}function f(he,_e){return he.length>0?he[0]:_e}function p(he){var _e;return(_e=[]).concat.apply(_e,he)}function g(he,_e){var Se=typeof _e=="number"?he:0;typeof _e=="number"?Se=he:(Se=0,_e=he);var q=[];if(Se<=_e)for(var Z=Se;Z<_e;Z++)q.push(Z);else for(var Z=Se;Z>_e;Z--)q.push(Z);return q}function m(he,_e,Se){var q=he.slice(0,_e),Z=he.slice(_e);return q.concat(Se,Z)}function w(he,_e){var Se=he.indexOf(_e);Se>-1&&(he.splice(Se,1),he.unshift(_e))}function B(he,_e){var Se=he.indexOf(_e);Se>-1&&(he.splice(Se,1),he.push(_e))}function z(he,_e){for(var Se=0;Se<he.length;Se++){var q=he[Se];if(_e(q,Se,he))return q}return}function oe(he){return Array.isArray(he)?he:[he]}},"6lNC":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return o.e(227).then(o.bind(null,"meXB"))}})},"746U":function(wt,P,o){"use strict";o.d(P,"d",function(){return re}),o.d(P,"j",function(){return ne}),o.d(P,"i",function(){return N}),o.d(P,"h",function(){return k}),o.d(P,"e",function(){return U}),o.d(P,"k",function(){return j}),o.d(P,"l",function(){return G}),o.d(P,"a",function(){return R}),o.d(P,"f",function(){return x}),o.d(P,"g",function(){return K}),o.d(P,"m",function(){return D}),o.d(P,"c",function(){return H}),o.d(P,"b",function(){return E}),o.d(P,"n",function(){return f}),o.d(P,"o",function(){return p});var I={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function re(g){return Array.isArray?Array.isArray(g):!!(g&&typeof g.length===I.number&&g.constructor===Array)}function ne(g){return typeof g===I.string||g instanceof String}function N(g){return typeof g===I.object&&g!==null&&!Array.isArray(g)&&!(g instanceof RegExp)&&!(g instanceof Date)}function k(g){return(typeof g===I.number||g instanceof Number)&&!isNaN(g)}function U(g){return g===!0||g===!1}function j(g){return typeof g===I.undefined}function G(g){return j(g)||g===null}function R(g,m){if(!g)throw new Error(m?"Unexpected type, expected '"+m+"'":"Unexpected type")}var _=Object.prototype.hasOwnProperty;function x(g){if(!N(g))return!1;for(var m in g)if(_.call(g,m))return!1;return!0}function K(g){return typeof g===I.function}function D(g,m){for(var w=Math.min(g.length,m.length),B=0;B<w;B++)A(g[B],m[B])}function A(g,m){if(ne(m)){if(typeof g!==m)throw new Error("argument does not match constraint: typeof "+m)}else if(K(m)){try{if(g instanceof m)return}catch(w){}if(!G(g)&&g.constructor===m)return;if(m.length===1&&m.call(void 0,g)===!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(g){for(var m=[],w=Object.getPrototypeOf(g);Object.prototype!==w;)m=m.concat(Object.getOwnPropertyNames(w)),w=Object.getPrototypeOf(w);return m}function H(g){for(var m=[],w=0,B=te(g);w<B.length;w++){var z=B[w];typeof g[z]=="function"&&m.push(z)}return m}function E(g,m){for(var w=function(Se){return function(){var q=Array.prototype.slice.call(arguments,0);return m(Se,q)}},B={},z=0,oe=g;z<oe.length;z++){var he=oe[z];B[he]=w(he)}return B}function f(g){return g===null?void 0:g}function p(g){return typeof g=="undefined"?null:g}},"79sc":function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("markerDecorationsService")},"7afs":function(wt,P,o){"use strict";o.d(P,"a",function(){return I}),o.d(P,"b",function(){return N});function I(j,G){G===void 0&&(G=0);switch(typeof j){case"object":return j===null?re(349,G):Array.isArray(j)?k(j,G):U(j,G);case"string":return N(j,G);case"boolean":return ne(j,G);case"number":return re(j,G);case"undefined":return re(0,937);default:return re(0,617)}}function re(j,G){return(G<<5)-G+j|0}function ne(j,G){return re(j?433:863,G)}function N(j,G){G=re(149417,G);for(var R=0,_=j.length;R<_;R++)G=re(j.charCodeAt(R),G);return G}function k(j,G){return G=re(104579,G),j.reduce(function(R,_){return I(_,R)},G)}function U(j,G){return G=re(181387,G),Object.keys(j).sort().reduce(function(R,_){return R=N(_,R),I(j[_],R)},G)}},"7lZ/":function(wt,P,o){"use strict";o.d(P,"a",function(){return N});var I=o("qj0h"),re=o("Vhoy"),ne=o("N0LK"),N=function(){function k(U,j){this.supportCodicons=j,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",U.appendChild(this.domNode)}return Object.defineProperty(k.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),k.prototype.set=function(U,j,G,R){if(j===void 0&&(j=[]),G===void 0&&(G=""),U||(U=""),R&&(U=k.escapeNewLines(U,j)),this.didEverRender&&this.text===U&&this.title===G&&I.e(this.highlights,j))return;Array.isArray(j)||(j=[]),this.text=U,this.title=G,this.highlights=j,this.render()},k.prototype.render=function(){for(var U="",j=0,G=0,R=this.highlights;G<R.length;G++){var _=R[G];if(_.end===_.start)continue;if(j<_.start){U+="<span>";var x=this.text.substring(j,_.start);U+=this.supportCodicons?Object(re.c)(Object(ne.o)(x)):Object(ne.o)(x),U+="</span>",j=_.end}_.extraClasses?U+='<span class="highlight '+_.extraClasses+'">':U+='<span class="highlight">';var K=this.text.substring(_.start,_.end);U+=this.supportCodicons?Object(re.c)(Object(ne.o)(K)):Object(ne.o)(K),U+="</span>",j=_.end}if(j<this.text.length){U+="<span>";var K=this.text.substring(j);U+=this.supportCodicons?Object(re.c)(Object(ne.o)(K)):Object(ne.o)(K),U+="</span>"}this.domNode.innerHTML=U,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},k.escapeNewLines=function(U,j){var G=0,R=0;return U.replace(/\r\n|\r|\n/g,function(_,x){R=_===`\r
`?-1:0,x+=G;for(var K=0,D=j;K<D.length;K++){var A=D[K];if(A.end<=x)continue;A.start>=x&&(A.start+=R),A.end>=x&&(A.end+=R)}return G+=R,"\u23CE"})},k}()},"7zd4":function(wt,P,o){},"8ATB":function(wt,P,o){},"8HAY":function(wt,P,o){"use strict";o.d(P,"a",function(){return U}),o.d(P,"b",function(){return j});var I=o("pmY6"),re=o("MI8n"),ne=function(){var G=function(_,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(_,x)};return function(R,_){G(R,_);function x(){this.constructor=R}R.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}(),N=function(G,R,_,x){function K(D){return D instanceof _?D:new _(function(A){A(D)})}return new(_||(_=Promise))(function(D,A){function te(f){try{E(x.next(f))}catch(p){A(p)}}function H(f){try{E(x.throw(f))}catch(p){A(p)}}function E(f){f.done?D(f.value):K(f.value).then(te,H)}E((x=x.apply(G,R||[])).next())})},k=function(G,R){var _={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]},x,K,D,A;return A={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function te(E){return function(f){return H([E,f])}}function H(E){if(x)throw new TypeError("Generator is already executing.");for(;_;)try{if(x=1,K&&(D=E[0]&2?K.return:E[0]?K.throw||((D=K.return)&&D.call(K),0):K.next)&&!(D=D.call(K,E[1])).done)return D;(K=0,D)&&(E=[E[0]&2,D.value]);switch(E[0]){case 0:case 1:D=E;break;case 4:return _.label++,{value:E[1],done:!1};case 5:_.label++,K=E[1],E=[0];continue;case 7:E=_.ops.pop(),_.trys.pop();continue;default:if(!(D=_.trys,D=D.length>0&&D[D.length-1])&&(E[0]===6||E[0]===2)){_=0;continue}if(E[0]===3&&(!D||E[1]>D[0]&&E[1]<D[3])){_.label=E[1];break}if(E[0]===6&&_.label<D[1]){_.label=D[1],D=E;break}if(D&&_.label<D[2]){_.label=D[2],_.ops.push(E);break}D[2]&&_.ops.pop(),_.trys.pop();continue}E=R.call(G,_)}catch(f){E=[6,f],K=0}finally{x=D=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}},U=function(G){ne(R,G);function R(_,x,K,D,A){x===void 0&&(x=""),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=_,te._label=x,te._cssClass=K,te._enabled=D,te._actionCallback=A,te}return Object.defineProperty(R.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"label",{get:function(){return this._label},set:function(x){this._setLabel(x)},enumerable:!0,configurable:!0}),R.prototype._setLabel=function(_){this._label!==_&&(this._label=_,this._onDidChange.fire({label:_}))},Object.defineProperty(R.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(x){this._setTooltip(x)},enumerable:!0,configurable:!0}),R.prototype._setTooltip=function(_){this._tooltip!==_&&(this._tooltip=_,this._onDidChange.fire({tooltip:_}))},Object.defineProperty(R.prototype,"class",{get:function(){return this._cssClass},set:function(x){this._setClass(x)},enumerable:!0,configurable:!0}),R.prototype._setClass=function(_){this._cssClass!==_&&(this._cssClass=_,this._onDidChange.fire({class:_}))},Object.defineProperty(R.prototype,"enabled",{get:function(){return this._enabled},set:function(x){this._setEnabled(x)},enumerable:!0,configurable:!0}),R.prototype._setEnabled=function(_){this._enabled!==_&&(this._enabled=_,this._onDidChange.fire({enabled:_}))},Object.defineProperty(R.prototype,"checked",{get:function(){return this._checked},set:function(x){this._setChecked(x)},enumerable:!0,configurable:!0}),R.prototype._setChecked=function(_){this._checked!==_&&(this._checked=_,this._onDidChange.fire({checked:_}))},R.prototype.run=function(_,x){return this._actionCallback?this._actionCallback(_):Promise.resolve(!0)},R}(I.a),j=function(G){ne(R,G);function R(){var _=G!==null&&G.apply(this,arguments)||this;return _._onDidBeforeRun=_._register(new re.a),_.onDidBeforeRun=_._onDidBeforeRun.event,_._onDidRun=_._register(new re.a),_.onDidRun=_._onDidRun.event,_}return R.prototype.run=function(_,x){return N(this,void 0,void 0,function(){var K,D;return k(this,function(A){switch(A.label){case 0:if(!_.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:_}),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this.runAction(_,x)];case 2:return K=A.sent(),this._onDidRun.fire({action:_,result:K}),[3,4];case 3:return D=A.sent(),this._onDidRun.fire({action:_,error:D}),[3,4];case 4:return[2]}})})},R.prototype.runAction=function(_,x){var K=x?_.run(x):_.run();return Promise.resolve(K)},R}(I.a)},"8HsV":function(wt,P,o){"use strict";o.d(P,"a",function(){return I});var I=function(){function re(){for(var ne=[],N=0;N<arguments.length;N++)ne[N]=arguments[N];this._entries=new Map;for(var k=0,U=ne;k<U.length;k++){var j=U[k],G=j[0],R=j[1];this.set(G,R)}}return re.prototype.set=function(ne,N){var k=this._entries.get(ne);return this._entries.set(ne,N),k},re.prototype.has=function(ne){return this._entries.has(ne)},re.prototype.get=function(ne){return this._entries.get(ne)},re}()},"8gvo":function(wt,P,o){},"8z58":function(wt,P,o){"use strict";o.r(P),o.d(P,"CancellationTokenSource",function(){return fd}),o.d(P,"Emitter",function(){return pd}),o.d(P,"KeyCode",function(){return gd}),o.d(P,"KeyMod",function(){return md}),o.d(P,"Position",function(){return vd}),o.d(P,"Range",function(){return yd}),o.d(P,"Selection",function(){return bd}),o.d(P,"SelectionDirection",function(){return Cd}),o.d(P,"MarkerSeverity",function(){return Ed}),o.d(P,"MarkerTag",function(){return _d}),o.d(P,"Uri",function(){return Sd}),o.d(P,"Token",function(){return wd}),o.d(P,"editor",function(){return Ld}),o.d(P,"languages",function(){return Dd});var I=o("/UlZ"),re=o("URDS"),ne=o("JQT/"),N=o("MI8n"),k=o("/kV6"),U=o("bY76"),j=o("cGHE"),G=o("aokT"),R=o("gCVg"),_=o("Tcc1"),x;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(x||(x={}));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 A;(function(s){s[s.Deprecated=1]="Deprecated"})(A||(A={}));var te;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(te||(te={}));var H;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(H||(H={}));var E;(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"})(E||(E={}));var f;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(f||(f={}));var p;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(p||(p={}));var g;(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"})(g||(g={}));var m;(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"})(m||(m={}));var w;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(w||(w={}));var B;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(B||(B={}));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 he;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(he||(he={}));var _e;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(_e||(_e={}));var Se;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(Se||(Se={}));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 Z;(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"})(Z||(Z={}));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 Te;(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"})(Te||(Te={}));var Ve;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(Ve||(Ve={}));var Ee;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(Ee||(Ee={}));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 fe;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(fe||(fe={}));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 Q;(function(s){s[s.Deprecated=1]="Deprecated"})(Q||(Q={}));var me;(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"})(me||(me={}));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 He;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(He||(He={}));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 Et=function(){function s(){}return s.chord=function(r,t){return Object(k.a)(r,t)},s.CtrlCmd=2048,s.Shift=1024,s.Alt=512,s.WinCtrl=256,s}();function Pt(){return{editor:void 0,languages:void 0,CancellationTokenSource:ne.b,Emitter:N.a,KeyCode:oe,KeyMod:Et,Position:j.a,Range:G.a,Selection:R.a,SelectionDirection:se,MarkerSeverity:he,MarkerTag:_e,Uri:U.a,Token:_.a}}var Xt=o("siPX"),Ke=o("Vxe3"),Xe=o("EffR"),Ze=o("24hK"),Ye=o("Q4rV"),Fe=o("tYmi"),$e=o("gslv"),we=o("nnTU"),F=o("W9cx"),ee;(function(s){s[s.API=0]="API",s[s.USER=1]="USER"})(ee||(ee={}));var Pe=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},ve=function(s,r){return function(t,a){r(t,a,s)}},Me=function(s,r,t,a){function h(v){return v instanceof t?v:new t(function(V){V(v)})}return new(t||(t=Promise))(function(v,V){function be(ot){try{Ne(a.next(ot))}catch(dt){V(dt)}}function Ae(ot){try{Ne(a.throw(ot))}catch(dt){V(dt)}}function Ne(ot){ot.done?v(ot.value):h(ot.value).then(be,Ae)}Ne((a=a.apply(s,r||[])).next())})},Ie=function(s,r){var t={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},a,h,v,V;return V={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function be(Ne){return function(ot){return Ae([Ne,ot])}}function Ae(Ne){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,h&&(v=Ne[0]&2?h.return:Ne[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,Ne[1])).done)return v;(h=0,v)&&(Ne=[Ne[0]&2,v.value]);switch(Ne[0]){case 0:case 1:v=Ne;break;case 4:return t.label++,{value:Ne[1],done:!1};case 5:t.label++,h=Ne[1],Ne=[0];continue;case 7:Ne=t.ops.pop(),t.trys.pop();continue;default:if(!(v=t.trys,v=v.length>0&&v[v.length-1])&&(Ne[0]===6||Ne[0]===2)){t=0;continue}if(Ne[0]===3&&(!v||Ne[1]>v[0]&&Ne[1]<v[3])){t.label=Ne[1];break}if(Ne[0]===6&&t.label<v[1]){t.label=v[1],v=Ne;break}if(v&&t.label<v[2]){t.label=v[2],t.ops.push(Ne);break}v[2]&&t.ops.pop(),t.trys.pop();continue}Ne=r.call(s,t)}catch(ot){Ne=[6,ot],h=0}finally{a=v=0}if(Ne[0]&5)throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}},pe=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),h=0,r=0;r<t;r++)for(var v=arguments[r],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];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 Ie(this,function(h){switch(h.label){case 0:if(!Object(F.c)(r,Fe.b.command))return[2,!1];if(typeof r=="string"&&(r=U.a.parse(r)),!we.a.getCommand(r.path))throw new Error("command '"+r.path+"' NOT known");t=[];try{t=Object(Ye.a)(decodeURIComponent(r.query))}catch(v){try{t=Object(Ye.a)(r.query)}catch(V){}}return Array.isArray(t)||(t=[t]),[4,(a=this._commandService).executeCommand.apply(a,pe([r.path],t))];case 1:return h.sent(),[2,!0]}})})},s=Pe([ve(0,we.b)],s),s}(),_t=function(){function s(r){this._editorService=r}return s.prototype.open=function(r,t){return Me(this,void 0,void 0,function(){var a,h;return Ie(this,function(v){switch(v.label){case 0:return typeof r=="string"&&(r=U.a.parse(r)),a=void 0,h=/^L?(\d+)(?:,(\d+))?/.exec(r.fragment),h&&(a={startLineNumber:parseInt(h[1]),startColumn:h[2]?parseInt(h[2]):1},r=r.with({fragment:""})),r.scheme===Fe.b.file&&(r=Object($e.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 v.sent(),[2,!0]}})})},s=Pe([ve(0,Ke.a)],s),s}(),Rt=function(){function s(r,t){var a=this;this._openers=new Ze.a,this._validators=new Ze.a,this._resolvers=new Ze.a,this._externalOpener={openExternal:function(v){return Xe.Z(v),Promise.resolve(!0)}},this._openers.push({open:function(v,V){return Me(a,void 0,void 0,function(){return Ie(this,function(be){switch(be.label){case 0:return(V==null?void 0:V.openExternal)||Object(F.c)(v,Fe.b.mailto)||Object(F.c)(v,Fe.b.http)||Object(F.c)(v,Fe.b.https)?[4,this._doOpenExternal(v,V)]:[3,2];case 1:return be.sent(),[2,!0];case 2:return[2,!1]}})})}}),this._openers.push(new nt(t)),this._openers.push(new _t(r))}return s.prototype.open=function(r,t){return Me(this,void 0,void 0,function(){var a,h,v,V,be,Ae,Ne;return Ie(this,function(ot){switch(ot.label){case 0:a=0,h=this._validators.toArray(),ot.label=1;case 1:return a<h.length?(v=h[a],[4,v.shouldOpen(r)]):[3,4];case 2:if(!ot.sent())return[2,!1];ot.label=3;case 3:return a++,[3,1];case 4:V=0,be=this._openers.toArray(),ot.label=5;case 5:return V<be.length?(Ae=be[V],[4,Ae.open(r,t)]):[3,8];case 6:if(Ne=ot.sent(),Ne)return[2,!0];ot.label=7;case 7:return V++,[3,5];case 8:return[2,!1]}})})},s.prototype.resolveExternalUri=function(r,t){return Me(this,void 0,void 0,function(){var a,h,v,V;return Ie(this,function(be){switch(be.label){case 0:a=0,h=this._resolvers.toArray(),be.label=1;case 1:return a<h.length?(v=h[a],[4,v.resolveExternalUri(r,t)]):[3,4];case 2:if(V=be.sent(),V)return[2,V];be.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,h;return Ie(this,function(v){switch(v.label){case 0:return a=typeof r=="string"?U.a.parse(r):r,[4,this.resolveExternalUri(a,t)];case 1:if(h=v.sent().resolved,typeof r=="string"&&a.toString()===h.toString())return[2,this._externalOpener.openExternal(r)];return[2,this._externalOpener.openExternal(encodeURI(h.toString(!0)))];return[2]}})})},s.prototype.dispose=function(){this._validators.clear()},s=Pe([ve(0,Ke.a),ve(1,we.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(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},yn=function(s){on(r,s);function r(t,a){a===void 0&&(a={});var h=s.call(this)||this;return h._onDidUpdate=h._register(new N.a),h._editor=t,h._options=Gt.g(a,Ln,!1),h.disposed=!1,h.nextIdx=-1,h.ranges=[],h.ignoreSelectionChange=!1,h.revealFirst=Boolean(h._options.alwaysRevealFirst),h._register(h._editor.onDidDispose(function(){return h.dispose()})),h._register(h._editor.onDidUpdateDiff(function(){return h._onDiffUpdated()})),h._options.followsCaret&&h._register(h._editor.getModifiedEditor().onDidChangeCursorPosition(function(v){if(h.ignoreSelectionChange)return;h.nextIdx=-1})),h._options.alwaysRevealFirst&&h._register(h._editor.getModifiedEditor().onDidChangeModel(function(v){h.revealFirst=!0})),h._init(),h}return r.prototype._init=function(){var t=this._editor.getLineChanges();if(!t)return},r.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&(this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1)))},r.prototype._compute=function(t){var a=this;this.ranges=[],t&&t.forEach(function(h){!a._options.ignoreCharChanges&&h.charChanges?h.charChanges.forEach(function(v){a.ranges.push({rhs:!0,range:new G.a(v.modifiedStartLineNumber,v.modifiedStartColumn,v.modifiedEndLineNumber,v.modifiedEndColumn)})}):a.ranges.push({rhs:!0,range:new G.a(h.modifiedStartLineNumber,1,h.modifiedStartLineNumber,1)})}),this.ranges.sort(function(h,v){return h.range.getStartPosition().isBeforeOrEqual(v.range.getStartPosition())?-1:v.range.getStartPosition().isBeforeOrEqual(h.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},r.prototype._initIdx=function(t){var a=!1,h=this._editor.getPosition();if(!h){this.nextIdx=0;return}for(var v=0,V=this.ranges.length;v<V&&!a;v++){var be=this.ranges[v].range;h.isBeforeOrEqual(be.getStartPosition())&&(this.nextIdx=v+(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())return;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 h=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var v=h.range.getStartPosition();this._editor.setPosition(v),this._editor.revealPositionInCenter(v,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"),kt=o("iuje"),pt=o("M1Kb"),gt=o("twdY"),Dt=o("i/Ef"),Lt=o("pAvP"),Vt=o("t49l"),Jt=o("X+cX"),nn=o("/cxE"),sn=o("MNsG"),ln=o("746U"),_n=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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="$initialize",Pn=!1;function Gn(s){if(!sn.g)return;Pn||(Pn=!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,h=String(++this._lastSentReq);return new Promise(function(v,V){a._pendingReplies[h]={resolve:v,reject:V},a._send({vsWorker:a._workerId,req:h,method:r,args:t})})},s.prototype.handleMessage=function(r){if(!r||!r.vsWorker)return;if(this._workerId!==-1&&r.vsWorker!==this._workerId)return;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 h=this._pendingReplies[a.seq];if(delete this._pendingReplies[a.seq],a.err){var v=a.err;a.err.$isError&&(v=new Error,v.name=a.err.name,v.message=a.err.message,v.stack=a.err.stack),h.reject(v);return}h.resolve(a.res);return}var V=r,be=V.req,Ae=this._handler.handleMessage(V.method,V.args);Ae.then(function(Ne){t._send({vsWorker:t._workerId,seq:be,res:Ne,err:void 0})},function(Ne){Ne.detail instanceof Error&&(Ne.detail=Object(nn.g)(Ne.detail)),t._send({vsWorker:t._workerId,seq:be,res:void 0,err:Object(nn.g)(Ne)})})},s.prototype._send=function(r){var t=[];if(r.req)for(var a=r,h=0;h<a.args.length;h++)a.args[h]instanceof ArrayBuffer&&t.push(a.args[h]);else{var a=r;a.res instanceof ArrayBuffer&&t.push(a.res)}this._handler.sendMessage(r,t)},s}(),Qn=function(s){_n(r,s);function r(t,a,h){var v=s.call(this)||this,V=null;v._worker=v._register(t.create("vs/base/common/worker/simpleWorker",function(ot){v._protocol.handleMessage(ot)},function(ot){V&&V(ot)})),v._protocol=new Jn({sendMessage:function(dt,bt){v._worker.postMessage(dt,bt)},handleMessage:function(dt,bt){if(typeof h[dt]!="function")return Promise.reject(new Error("Missing method "+dt+" on main thread host."));try{return Promise.resolve(h[dt].apply(h,bt))}catch(mt){return Promise.reject(mt)}}}),v._protocol.setWorkerId(v._worker.getId());var be=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?be=self.require.getConfig():typeof self.requirejs!="undefined"&&(be=self.requirejs.s.contexts._.config);var Ae=ln.c(h);v._onModuleLoaded=v._protocol.sendMessage(On,[v._worker.getId(),JSON.parse(JSON.stringify(be)),a,Ae]);var Ne=function(dt,bt){return v._request(dt,bt)};return v._lazyProxy=new Promise(function(ot,dt){V=dt,v._onModuleLoaded.then(function(bt){ot(ln.b(bt,Ne))},function(bt){dt(bt),v._onError("Worker failed to load "+a,bt)})}),v}return r.prototype.getProxyObject=function(){return this._lazyProxy},r.prototype._request=function(t,a){var h=this;return new Promise(function(v,V){h._onModuleLoaded.then(function(){h._protocol.sendMessage(t,a).then(v,V)},V)})},r.prototype._onError=function(t,a){console.error(t),console.info(a)},r}(zt.a),gi=function(){function s(r,t){var a=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Jn({sendMessage:function(v,V){r(v,V)},handleMessage:function(v,V){return a._handleMessage(v,V)}})}return s.prototype.onmessage=function(r){this._protocol.handleMessage(r)},s.prototype._handleMessage=function(r,t){if(r===On)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,h){var v=this;this._protocol.setWorkerId(r);var V=function(Ne,ot){return v._protocol.sendMessage(Ne,ot)},be=ln.b(h,V);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(be),Promise.resolve(ln.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(Ae,Ne){self.require([a],function(ot){if(v._requestHandler=ot.create(be),!v._requestHandler){Ne(new Error("No RequestHandler!"));return}Ae(ln.c(v._requestHandler))},Ne)}))},s}();function Kn(s){return new gi(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 mi(s){return typeof s.then=="function"}var vt=function(){function s(r,t,a,h,v){this.id=t;var V=yi("workerMain.js",a);mi(V)?this.worker=V:this.worker=Promise.resolve(V),this.postMessage(r,[]),this.worker.then(function(be){be.onmessage=function(Ae){h(Ae.data)},be.onmessageerror=v,typeof be.addEventListener=="function"&&be.addEventListener("error",v)})}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}(),Tt=function(){function s(r){this._label=r,this._webWorkerFailedBeforeError=!1}return s.prototype.create=function(r,t,a){var h=this,v=++s.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new vt(r,v,this._label||"anonymous"+v,t,function(V){Gn(V),h._webWorkerFailedBeforeError=V,a(V)})},s.LAST_WORKER_ID=0,s}(),Ht=o("cMvZ"),tn=o("6OMU"),Ut=function(){function s(r,t,a,h){this.originalStart=r,this.originalLength=t,this.modifiedStart=a,this.modifiedLength=h}return s.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},s.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},s}(),Sn=o("7afs"),Rn=function(){function s(r){this.source=r}return s.prototype.getElements=function(){for(var r=this.source,t=new Int32Array(r.length),a=0,h=r.length;a<h;a++)t[a]=r.charCodeAt(a);return t},s}();function Bn(s,r,t){return new Hi(new Rn(s),new Rn(r)).ComputeDiff(t).changes}var kn=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,h,v){for(var V=0;V<v;V++)a[h+V]=r[t+V]},s.Copy2=function(r,t,a,h,v){for(var V=0;V<v;V++)a[h+V]=r[t+V]},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 Ut(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}(),Hi=function(){function s(r,t,a){a===void 0&&(a=null),this.ContinueProcessingPredicate=a;var h=s._getElements(r),v=h[0],V=h[1],be=h[2],Ae=s._getElements(t),Ne=Ae[0],ot=Ae[1],dt=Ae[2];this._hasStrings=be&&dt,this._originalStringElements=v,this._originalElementsOrHash=V,this._modifiedStringElements=Ne,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),h=0,v=t.length;h<v;h++)a[h]=Object(Sn.b)(t[h],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,h,v){var V=[!1],be=this.ComputeDiffRecursive(r,t,a,h,V);return v&&(be=this.PrettifyChanges(be)),{quitEarly:V[0],changes:be}},s.prototype.ComputeDiffRecursive=function(r,t,a,h,v){for(v[0]=!1;r<=t&&a<=h&&this.ElementsAreEqual(r,a);)r++,a++;for(;t>=r&&h>=a&&this.ElementsAreEqual(t,h);)t--,h--;if(r>t||a>h){var V=void 0;return a<=h?(kn.Assert(r===t+1,"originalStart should only be one more than originalEnd"),V=[new Ut(r,0,a,h-a+1)]):r<=t?(kn.Assert(a===h+1,"modifiedStart should only be one more than modifiedEnd"),V=[new Ut(r,t-r+1,a,0)]):(kn.Assert(r===t+1,"originalStart should only be one more than originalEnd"),kn.Assert(a===h+1,"modifiedStart should only be one more than modifiedEnd"),V=[]),V}var be=[0],Ae=[0],Ne=this.ComputeRecursionPoint(r,t,a,h,be,Ae,v),ot=be[0],dt=Ae[0];if(Ne!==null)return Ne;if(!v[0]){var bt=this.ComputeDiffRecursive(r,ot,a,dt,v),mt=[];return v[0]?mt=[new Ut(ot+1,t-(ot+1)+1,dt+1,h-(dt+1)+1)]:mt=this.ComputeDiffRecursive(ot+1,t,dt+1,h,v),this.ConcatenateChanges(bt,mt)}return[new Ut(r,t-r+1,a,h-a+1)]},s.prototype.WALKTRACE=function(r,t,a,h,v,V,be,Ae,Ne,ot,dt,bt,mt,$t,Kt,Wt,Bt,rn){var cn=null,wn=null,En=new ci,Fn=t,Wn=a,jn=mt[0]-Wt[0]-h,ei=-1073741824,zn=this.m_forwardHistory.length-1;do{var vn=jn+r;vn===Fn||vn<Wn&&Ne[vn-1]<Ne[vn+1]?(dt=Ne[vn+1],$t=dt-jn-h,dt<ei&&En.MarkNextChange(),ei=dt,En.AddModifiedElement(dt+1,$t),jn=vn+1-r):(dt=Ne[vn-1]+1,$t=dt-jn-h,dt<ei&&En.MarkNextChange(),ei=dt-1,En.AddOriginalElement(dt,$t+1),jn=vn-1-r),zn>=0&&(Ne=this.m_forwardHistory[zn],r=Ne[0],Fn=1,Wn=Ne.length-1)}while(--zn>=-1);if(cn=En.getReverseChanges(),rn[0]){var ni=mt[0]+1,$n=Wt[0]+1;if(cn!==null&&cn.length>0){var pi=cn[cn.length-1];ni=Math.max(ni,pi.getOriginalEnd()),$n=Math.max($n,pi.getModifiedEnd())}wn=[new Ut(ni,bt-ni+1,$n,Kt-$n+1)]}else{En=new ci,Fn=V,Wn=be,jn=mt[0]-Wt[0]-Ae,ei=1073741824,zn=Bt?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var vn=jn+v;vn===Fn||vn<Wn&&ot[vn-1]>=ot[vn+1]?(dt=ot[vn+1]-1,$t=dt-jn-Ae,dt>ei&&En.MarkNextChange(),ei=dt+1,En.AddOriginalElement(dt+1,$t+1),jn=vn+1-v):(dt=ot[vn-1],$t=dt-jn-Ae,dt>ei&&En.MarkNextChange(),ei=dt,En.AddModifiedElement(dt+1,$t+1),jn=vn-1-v),zn>=0&&(ot=this.m_reverseHistory[zn],v=ot[0],Fn=1,Wn=ot.length-1)}while(--zn>=-1);wn=En.getChanges()}return this.ConcatenateChanges(cn,wn)},s.prototype.ComputeRecursionPoint=function(r,t,a,h,v,V,be){var Ae=0,Ne=0,ot=0,dt=0,bt=0,mt=0;r--,a--,v[0]=0,V[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var $t=t-r+(h-a),Kt=$t+1,Wt=new Int32Array(Kt),Bt=new Int32Array(Kt),rn=h-a,cn=t-r,wn=r-a,En=t-h,Fn=cn-rn,Wn=Fn%2===0;Wt[rn]=r,Bt[cn]=t,be[0]=!1;for(var jn=1;jn<=$t/2+1;jn++){var ei=0,zn=0;ot=this.ClipDiagonalBound(rn-jn,jn,rn,Kt),dt=this.ClipDiagonalBound(rn+jn,jn,rn,Kt);for(var vn=ot;vn<=dt;vn+=2){vn===ot||vn<dt&&Wt[vn-1]<Wt[vn+1]?Ae=Wt[vn+1]:Ae=Wt[vn-1]+1,Ne=Ae-(vn-rn)-wn;for(var ni=Ae;Ae<t&&Ne<h&&this.ElementsAreEqual(Ae+1,Ne+1);)Ae++,Ne++;if(Wt[vn]=Ae,Ae+Ne>ei+zn&&(ei=Ae,zn=Ne),!Wn&&Math.abs(vn-cn)<=jn-1&&Ae>=Bt[vn])return v[0]=Ae,V[0]=Ne,ni<=Bt[vn]&&1447>0&&jn<=1447+1?this.WALKTRACE(rn,ot,dt,wn,cn,bt,mt,En,Wt,Bt,Ae,t,v,Ne,h,V,Wn,be):null}var $n=(ei-r+(zn-a)-jn)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(ei,$n))return be[0]=!0,v[0]=ei,V[0]=zn,$n>0&&1447>0&&jn<=1447+1?this.WALKTRACE(rn,ot,dt,wn,cn,bt,mt,En,Wt,Bt,Ae,t,v,Ne,h,V,Wn,be):(r++,a++,[new Ut(r,t-r+1,a,h-a+1)]);bt=this.ClipDiagonalBound(cn-jn,jn,cn,Kt),mt=this.ClipDiagonalBound(cn+jn,jn,cn,Kt);for(var vn=bt;vn<=mt;vn+=2){vn===bt||vn<mt&&Bt[vn-1]>=Bt[vn+1]?Ae=Bt[vn+1]-1:Ae=Bt[vn-1],Ne=Ae-(vn-cn)-En;for(var ni=Ae;Ae>r&&Ne>a&&this.ElementsAreEqual(Ae,Ne);)Ae--,Ne--;if(Bt[vn]=Ae,Wn&&Math.abs(vn-rn)<=jn&&Ae<=Wt[vn])return v[0]=Ae,V[0]=Ne,ni>=Wt[vn]&&1447>0&&jn<=1447+1?this.WALKTRACE(rn,ot,dt,wn,cn,bt,mt,En,Wt,Bt,Ae,t,v,Ne,h,V,Wn,be):null}if(jn<=1447){var pi=new Int32Array(dt-ot+2);pi[0]=rn-ot+1,oi.Copy2(Wt,ot,pi,1,dt-ot+1),this.m_forwardHistory.push(pi),pi=new Int32Array(mt-bt+2),pi[0]=cn-bt+1,oi.Copy2(Bt,bt,pi,1,mt-bt+1),this.m_reverseHistory.push(pi)}}return this.WALKTRACE(rn,ot,dt,wn,cn,bt,mt,En,Wt,Bt,Ae,t,v,Ne,h,V,Wn,be)},s.prototype.PrettifyChanges=function(r){for(var t=0;t<r.length;t++){for(var a=r[t],h=t<r.length-1?r[t+1].originalStart:this._originalElementsOrHash.length,v=t<r.length-1?r[t+1].modifiedStart:this._modifiedElementsOrHash.length,V=a.originalLength>0,be=a.modifiedLength>0;a.originalStart+a.originalLength<h&&a.modifiedStart+a.modifiedLength<v&&(!V||this.OriginalElementsAreEqual(a.originalStart,a.originalStart+a.originalLength))&&(!be||this.ModifiedElementsAreEqual(a.modifiedStart,a.modifiedStart+a.modifiedLength));)a.originalStart++,a.modifiedStart++;var Ae=[null];if(t<r.length-1&&this.ChangesOverlap(r[t],r[t+1],Ae)){r[t]=Ae[0],r.splice(t+1,1),t--;continue}}for(var t=r.length-1;t>=0;t--){var a=r[t],h=0,v=0;if(t>0){var Ne=r[t-1];Ne.originalLength>0&&(h=Ne.originalStart+Ne.originalLength),Ne.modifiedLength>0&&(v=Ne.modifiedStart+Ne.modifiedLength)}for(var V=a.originalLength>0,be=a.modifiedLength>0,ot=0,dt=this._boundaryScore(a.originalStart,a.originalLength,a.modifiedStart,a.modifiedLength),bt=1;;bt++){var mt=a.originalStart-bt,$t=a.modifiedStart-bt;if(mt<h||$t<v)break;if(V&&!this.OriginalElementsAreEqual(mt,mt+a.originalLength))break;if(be&&!this.ModifiedElementsAreEqual($t,$t+a.modifiedLength))break;var Kt=this._boundaryScore(mt,a.originalLength,$t,a.modifiedLength);Kt>dt&&(dt=Kt,ot=bt)}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,h){var v=this._OriginalRegionIsBoundary(r,t)?1:0,V=this._ModifiedRegionIsBoundary(a,h)?1:0;return v+V},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 h=new Array(r.length+t.length-1);return oi.Copy(r,0,h,0,r.length-1),h[r.length-1]=a[0],oi.Copy(t,1,h,r.length,t.length-1),h}else{var h=new Array(r.length+t.length);return oi.Copy(r,0,h,0,r.length),oi.Copy(t,0,h,r.length,t.length),h}},s.prototype.ChangesOverlap=function(r,t,a){if(kn.Assert(r.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),kn.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 h=r.originalStart,v=r.originalLength,V=r.modifiedStart,be=r.modifiedLength;return r.originalStart+r.originalLength>=t.originalStart&&(v=t.originalStart+t.originalLength-r.originalStart),r.modifiedStart+r.modifiedLength>=t.modifiedStart&&(be=t.modifiedStart+t.modifiedLength-r.modifiedStart),a[0]=new Ut(h,v,V,be),!0}else return a[0]=null,!1},s.prototype.ClipDiagonalBound=function(r,t,a,h){if(r>=0&&r<h)return r;var v=a,V=h-a-1,be=t%2===0;if(r<0){var Ae=v%2===0;return be===Ae?0:1}else{var Ne=V%2===0;return be===Ne?h-1:h-2}},s}(),rr=o("JYp7"),Zn=o("N0LK"),Ii=3;function Si(s,r,t,a){var h=new Hi(s,r,t);return h.ComputeDiff(a)}var ji=function(){function s(r){for(var t=[],a=[],h=0,v=r.length;h<v;h++)t[h]=Bi(r[h],1),a[h]=vi(r[h],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 h=[],v=[],V=[],be=0,Ae=t;Ae<=a;Ae++)for(var Ne=this.lines[Ae],ot=r?this._startColumns[Ae]:1,dt=r?this._endColumns[Ae]:Ne.length+1,bt=ot;bt<dt;bt++)h[be]=Ne.charCodeAt(bt-1),v[be]=Ae+1,V[be]=bt,be++;return new Un(h,v,V)},s}(),Un=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}(),Ci=function(){function s(r,t,a,h,v,V,be,Ae){this.originalStartLineNumber=r,this.originalStartColumn=t,this.originalEndLineNumber=a,this.originalEndColumn=h,this.modifiedStartLineNumber=v,this.modifiedStartColumn=V,this.modifiedEndLineNumber=be,this.modifiedEndColumn=Ae}return s.createFromDiffChange=function(r,t,a){var h,v,V,be,Ae,Ne,ot,dt;return r.originalLength===0?(h=0,v=0,V=0,be=0):(h=t.getStartLineNumber(r.originalStart),v=t.getStartColumn(r.originalStart),V=t.getEndLineNumber(r.originalStart+r.originalLength-1),be=t.getEndColumn(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(Ae=0,Ne=0,ot=0,dt=0):(Ae=a.getStartLineNumber(r.modifiedStart),Ne=a.getStartColumn(r.modifiedStart),ot=a.getEndLineNumber(r.modifiedStart+r.modifiedLength-1),dt=a.getEndColumn(r.modifiedStart+r.modifiedLength-1)),new s(h,v,V,be,Ae,Ne,ot,dt)},s}();function Wi(s){if(s.length<=1)return s;for(var r=[s[0]],t=r[0],a=1,h=s.length;a<h;a++){var v=s[a],V=v.originalStart-(t.originalStart+t.originalLength),be=v.modifiedStart-(t.modifiedStart+t.modifiedLength),Ae=Math.min(V,be);Ae<Ii?(t.originalLength=v.originalStart+v.originalLength-t.originalStart,t.modifiedLength=v.modifiedStart+v.modifiedLength-t.modifiedStart):(r.push(v),t=v)}return r}var Mi=function(){function s(r,t,a,h,v){this.originalStartLineNumber=r,this.originalEndLineNumber=t,this.modifiedStartLineNumber=a,this.modifiedEndLineNumber=h,this.charChanges=v}return s.createFromDiffResult=function(r,t,a,h,v,V,be){var Ae,Ne,ot,dt,bt=void 0;if(t.originalLength===0?(Ae=a.getStartLineNumber(t.originalStart)-1,Ne=0):(Ae=a.getStartLineNumber(t.originalStart),Ne=a.getEndLineNumber(t.originalStart+t.originalLength-1)),t.modifiedLength===0?(ot=h.getStartLineNumber(t.modifiedStart)-1,dt=0):(ot=h.getStartLineNumber(t.modifiedStart),dt=h.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),V&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&v()){var mt=a.createCharSequence(r,t.originalStart,t.originalStart+t.originalLength-1),$t=h.createCharSequence(r,t.modifiedStart,t.modifiedStart+t.modifiedLength-1),Kt=Si(mt,$t,v,!0).changes;be&&(Kt=Wi(Kt)),bt=[];for(var Wt=0,Bt=Kt.length;Wt<Bt;Wt++)bt.push(Ci.createFromDiffChange(Kt[Wt],mt,$t))}return new s(Ae,Ne,ot,dt,bt)},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 ji(r),this.modified=new ji(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=Si(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=r.changes,a=r.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var h=[],v=0,V=t.length;v<V;v++)h.push(Mi.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[v],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:a,changes:h}}for(var be=[],Ae=0,Ne=0,v=-1,ot=t.length;v<ot;v++){for(var dt=v+1<ot?t[v+1]:null,bt=dt?dt.originalStart:this.originalLines.length,mt=dt?dt.modifiedStart:this.modifiedLines.length;Ae<bt&&Ne<mt;){var $t=this.originalLines[Ae],Kt=this.modifiedLines[Ne];if($t!==Kt){{for(var Wt=Bi($t,1),Bt=Bi(Kt,1);Wt>1&&Bt>1;){var rn=$t.charCodeAt(Wt-2),cn=Kt.charCodeAt(Bt-2);if(rn!==cn)break;Wt--,Bt--}(Wt>1||Bt>1)&&this._pushTrimWhitespaceCharChange(be,Ae+1,1,Wt,Ne+1,1,Bt)}{for(var wn=vi($t,1),En=vi(Kt,1),Fn=$t.length+1,Wn=Kt.length+1;wn<Fn&&En<Wn;){var rn=$t.charCodeAt(wn-1),cn=$t.charCodeAt(En-1);if(rn!==cn)break;wn++,En++}(wn<Fn||En<Wn)&&this._pushTrimWhitespaceCharChange(be,Ae+1,wn,Fn,Ne+1,En,Wn)}}Ae++,Ne++}dt&&(be.push(Mi.createFromDiffResult(this.shouldIgnoreTrimWhitespace,dt,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Ae+=dt.originalLength,Ne+=dt.modifiedLength)}return{quitEarly:a,changes:be}},s.prototype._pushTrimWhitespaceCharChange=function(r,t,a,h,v,V,be){if(this._mergeTrimWhitespaceCharChange(r,t,a,h,v,V,be))return;var Ae=void 0;this.shouldComputeCharChanges&&(Ae=[new Ci(t,a,t,h,v,V,v,be)]),r.push(new Mi(t,t,v,v,Ae))},s.prototype._mergeTrimWhitespaceCharChange=function(r,t,a,h,v,V,be){var Ae=r.length;if(Ae===0)return!1;var Ne=r[Ae-1];return Ne.originalEndLineNumber===0||Ne.modifiedEndLineNumber===0?!1:Ne.originalEndLineNumber+1===t&&Ne.modifiedEndLineNumber+1===v?(Ne.originalEndLineNumber=t,Ne.modifiedEndLineNumber=v,this.shouldComputeCharChanges&&Ne.charChanges&&Ne.charChanges.push(new Ci(t,a,t,h,v,V,v,be)),!0):!1},s}();function Bi(s,r){var t=Zn.q(s);return t===-1?r:t+1}function vi(s,r){var t=Zn.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+"),bi=function(){function s(r,t,a,h){this._uri=r,this._lines=t,this._eol=a,this._versionId=h,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,h=t;a<h.length;a++){var v=h[a];this._acceptDeleteRange(v.range),this._acceptInsertText(new j.a(v.range.startLineNumber,v.range.startColumn),v.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),h=0;h<t;h++)a[h]=this._lines[h].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)return;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 h=new Uint32Array(a.length-1),v=1;v<a.length;v++)this._lines.splice(r.lineNumber+v-1,0,a[v]),h[v-1]=a[v].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(r.lineNumber,h)},s}(),Di=o("0JNc"),Xi=o("MXAL"),lr=function(){function s(r,t,a){for(var h=new Uint8Array(r*t),v=0,V=r*t;v<V;v++)h[v]=a;this._data=h,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}(),Ti=function(){function s(r){for(var t=0,a=0,h=0,v=r.length;h<v;h++){var V=r[h],be=V[0],Ae=V[1],Ne=V[2];Ae>t&&(t=Ae),be>a&&(a=be),Ne>a&&(a=Ne)}t++,a++;for(var ot=new lr(a,t,0),h=0,v=r.length;h<v;h++){var dt=r[h],be=dt[0],Ae=dt[1],Ne=dt[2];ot.set(be,Ae,Ne)}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 Qe(){return sr===null&&(sr=new Ti([[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 O=null;function M(){if(O===null){O=new Xi.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++)O.set(s.charCodeAt(r),1);for(var t=".,;",r=0;r<t.length;r++)O.set(t.charCodeAt(r),2)}return O}var Y=function(){function s(){}return s._createLink=function(r,t,a,h,v){var V=v-1;do{var be=t.charCodeAt(V),Ae=r.get(be);if(Ae!==2)break;V--}while(V>h);if(h>0){var Ne=t.charCodeAt(h-1),ot=t.charCodeAt(V);(Ne===40&&ot===41||Ne===91&&ot===93||Ne===123&&ot===125)&&V--}return{range:{startLineNumber:a,startColumn:h+1,endLineNumber:a,endColumn:V+2},url:t.substring(h,V+1)}},s.computeLinks=function(r,t){t===void 0&&(t=Qe());for(var a=M(),h=[],v=1,V=r.getLineCount();v<=V;v++){for(var be=r.getLineContent(v),Ae=be.length,Ne=0,ot=0,dt=0,bt=1,mt=!1,$t=!1,Kt=!1;Ne<Ae;){var Wt=!1,Bt=be.charCodeAt(Ne);if(bt===13){var rn=void 0;switch(Bt){case 40:mt=!0,rn=0;break;case 41:rn=mt?0:1;break;case 91:$t=!0,rn=0;break;case 93:rn=$t?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(Bt)}rn===1&&(h.push(s._createLink(a,be,v,ot,Ne)),Wt=!0)}else if(bt===12){var rn=void 0;Bt===91?($t=!0,rn=0):rn=a.get(Bt),rn===1?Wt=!0:bt=13}else bt=t.nextState(bt,Bt),bt===0&&(Wt=!0);Wt&&(bt=1,mt=!1,$t=!1,Kt=!1,ot=Ne+1,dt=Bt),Ne++}bt===13&&h.push(s._createLink(a,be,v,ot,Ae))}return h},s}();function De(s){return!s||typeof s.getLineCount!="function"||typeof s.getLineContent!="function"?[]:Y.computeLinks(s)}var Re=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,h,v){if(r&&t){var V=this.doNavigateValueSet(t,v);if(V)return{range:r,value:V}}if(a&&h){var V=this.doNavigateValueSet(h,v);if(V)return{range:a,value:V}}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)),h=Number(r),v=parseFloat(r);return!isNaN(h)&&!isNaN(v)&&h===v?h===0&&!t?null:(h=Math.floor(h*a),h+=t?a:-a,String(h/a)):null},s.prototype.textReplace=function(r,t){return this.valueSetsReplace(this._defaultValueSet,r,t)},s.prototype.valueSetsReplace=function(r,t,a){for(var h=null,v=0,V=r.length;h===null&&v<V;v++)h=this.valueSetReplace(r[v],t,a);return h},s.prototype.valueSetReplace=function(r,t,a){var h=r.indexOf(t);return h>=0?(h+=a?1:-1,h<0?h=r.length-1:h%=r.length,r[h]):null},s.INSTANCE=new s,s}(),We=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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,r,t,a){function h(v){return v instanceof t?v:new t(function(V){V(v)})}return new(t||(t=Promise))(function(v,V){function be(ot){try{Ne(a.next(ot))}catch(dt){V(dt)}}function Ae(ot){try{Ne(a.throw(ot))}catch(dt){V(dt)}}function Ne(ot){ot.done?v(ot.value):h(ot.value).then(be,Ae)}Ne((a=a.apply(s,r||[])).next())})},lt=function(s,r){var t={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},a,h,v,V;return V={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function be(Ne){return function(ot){return Ae([Ne,ot])}}function Ae(Ne){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,h&&(v=Ne[0]&2?h.return:Ne[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,Ne[1])).done)return v;(h=0,v)&&(Ne=[Ne[0]&2,v.value]);switch(Ne[0]){case 0:case 1:v=Ne;break;case 4:return t.label++,{value:Ne[1],done:!1};case 5:t.label++,h=Ne[1],Ne=[0];continue;case 7:Ne=t.ops.pop(),t.trys.pop();continue;default:if(!(v=t.trys,v=v.length>0&&v[v.length-1])&&(Ne[0]===6||Ne[0]===2)){t=0;continue}if(Ne[0]===3&&(!v||Ne[1]>v[0]&&Ne[1]<v[3])){t.label=Ne[1];break}if(Ne[0]===6&&t.label<v[1]){t.label=v[1],v=Ne;break}if(v&&t.label<v[2]){t.label=v[2],t.ops.push(Ne);break}v[2]&&t.ops.pop(),t.trys.pop();continue}Ne=r.call(s,t)}catch(ot){Ne=[6,ot],h=0}finally{a=v=0}if(Ne[0]&5)throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}},yt=function(s){We(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 h=Object(Di.d)(t.column,Object(Di.c)(a),this._lines[t.lineNumber-1],0);return h?new G.a(t.lineNumber,h.startColumn,t.lineNumber,h.endColumn):null},r.prototype.createWordIterator=function(t){var a=this,h,v=0,V,be=0,Ae=[],Ne=function ot(){if(be<Ae.length){var dt=V.substring(Ae[be].start,Ae[be].end);return be+=1,h?h.value=dt:h={done:!1,value:dt},h}else return v>=a._lines.length?rr.b:(V=a._lines[v],Ae=a._wordenize(V,t),be=0,v+=1,ot())};return{next:Ne}},r.prototype.getLineWords=function(t,a){for(var h=this._lines[t-1],v=this._wordenize(h,a),V=[],be=0,Ae=v;be<Ae.length;be++){var Ne=Ae[be];V.push({word:h.substring(Ne.start,Ne.end),startColumn:Ne.start+1,endColumn:Ne.end+1})}return V},r.prototype._wordenize=function(t,a){var h=[],v;for(a.lastIndex=0;(v=a.exec(t))&&!(v[0].length===0);)h.push({start:v.index,end:v.index+v[0].length});return h},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,h=t.startLineNumber-1,v=t.endLineNumber-1,V=[];V.push(this._lines[h].substring(t.startColumn-1));for(var be=h+1;be<v;be++)V.push(this._lines[be]);return V.push(this._lines[v].substring(0,t.endColumn-1)),V.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),h=this._lines[a.index].length;return{lineNumber:1+a.index,column:1+Math.min(a.remainder,h)}},r.prototype._validateRange=function(t){var a=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),h=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return a.lineNumber!==t.startLineNumber||a.column!==t.startColumn||h.lineNumber!==t.endLineNumber||h.column!==t.endColumn?{startLineNumber:a.lineNumber,startColumn:a.column,endLineNumber:h.lineNumber,endColumn:h.column}:t},r.prototype._validatePosition=function(t){if(!j.a.isIPosition(t))throw new Error("bad position");var a=t.lineNumber,h=t.column,v=!1;if(a<1)a=1,h=1,v=!0;else if(a>this._lines.length)a=this._lines.length,h=this._lines[a-1].length+1,v=!0;else{var V=this._lines[a-1].length+1;h<1?(h=1,v=!0):h>V&&(h=V,v=!0)}return v?{lineNumber:a,column:h}:t},r}(bi),xt=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(U.a.parse(r.url),r.lines,r.EOL,r.versionId)},s.prototype.acceptModelChanged=function(r,t){if(!this._models[r])return;var a=this._models[r];a.onEvents(t)},s.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},s.prototype.computeDiff=function(r,t,a,h){return ft(this,void 0,void 0,function(){var v,V,be,Ae,Ne,ot,dt;return lt(this,function(bt){return v=this._getModel(r),V=this._getModel(t),!v||!V?[2,null]:(be=v.getLinesContent(),Ae=V.getLinesContent(),Ne=new Gi(be,Ae,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:a,shouldMakePrettyDiff:!0,maxComputationTime:h}),ot=Ne.computeDiff(),dt=ot.changes.length>0?!1:this._modelsAreIdentical(v,V),[2,{quitEarly:ot.quitEarly,identical:dt,changes:ot.changes}])})})},s.prototype._modelsAreIdentical=function(r,t){var a=r.getLineCount(),h=t.getLineCount();if(a!==h)return!1;for(var v=1;v<=a;v++){var V=r.getLineContent(v),be=t.getLineContent(v);if(V!==be)return!1}return!0},s.prototype.computeMoreMinimalEdits=function(r,t){return ft(this,void 0,void 0,function(){var a,h,v,V,be,Ae,Ne,ot,dt,bt,mt,$t,Kt,Wt,Bt,rn,cn,wn;return lt(this,function(En){if(a=this._getModel(r),!a)return[2,t];for(h=[],v=void 0,t=Object(tn.r)(t,function(Fn,Wn){if(Fn.range&&Wn.range)return G.a.compareRangesUsingStarts(Fn.range,Wn.range);var jn=Fn.range?0:1,ei=Wn.range?0:1;return jn-ei}),V=0,be=t;V<be.length;V++){if(Ae=be[V],Ne=Ae.range,ot=Ae.text,dt=Ae.eol,typeof dt=="number"&&(v=dt),G.a.isEmpty(Ne)&&!ot)continue;if(bt=a.getValueInRange(Ne),ot=ot.replace(/\r\n|\n|\r/g,a.eol),bt===ot)continue;if(Math.max(ot.length,bt.length)>s._diffLimit){h.push({range:Ne,text:ot});continue}for(mt=Bn(bt,ot,!1),$t=a.offsetAt(G.a.lift(Ne).getStartPosition()),Kt=0,Wt=mt;Kt<Wt.length;Kt++)Bt=Wt[Kt],rn=a.positionAt($t+Bt.originalStart),cn=a.positionAt($t+Bt.originalStart+Bt.originalLength),wn={text:ot.substr(Bt.modifiedStart,Bt.modifiedLength),range:{startLineNumber:rn.lineNumber,startColumn:rn.column,endLineNumber:cn.lineNumber,endColumn:cn.column}},a.getValueInRange(wn.range)!==wn.text&&h.push(wn)}return typeof v=="number"&&h.push({eol:v,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,h]})})},s.prototype.computeLinks=function(r){return ft(this,void 0,void 0,function(){var t;return lt(this,function(a){return t=this._getModel(r),t?[2,De(t)]:[2,null]})})},s.prototype.textualSuggest=function(r,t,a,h){return ft(this,void 0,void 0,function(){var v,V,be,Ae,Ne,ot,dt,bt;return lt(this,function(mt){if(v=this._getModel(r),!v)return[2,null];for(V=[],be=new Set,Ae=new RegExp(a,h),Ne=v.getWordAtPosition(t,Ae),Ne&&be.add(v.getValueInRange(Ne)),ot=v.createWordIterator(Ae),dt=ot.next();!dt.done&&be.size<=s._suggestionsLimit;dt=ot.next()){if(bt=dt.value,be.has(bt))continue;if(be.add(bt),!isNaN(Number(bt)))continue;V.push(bt)}return[2,V]})})},s.prototype.computeWordRanges=function(r,t,a,h){return ft(this,void 0,void 0,function(){var v,V,be,Ae,Ne,ot,dt,bt,mt;return lt(this,function($t){if(v=this._getModel(r),!v)return[2,Object.create(null)];for(V=new RegExp(a,h),be=Object.create(null),Ae=t.startLineNumber;Ae<t.endLineNumber;Ae++)for(Ne=v.getLineWords(Ae,V),ot=0,dt=Ne;ot<dt.length;ot++){if(bt=dt[ot],!isNaN(Number(bt.word)))continue;mt=be[bt.word],mt||(mt=[],be[bt.word]=mt),mt.push({startLineNumber:Ae,startColumn:bt.startColumn,endLineNumber:Ae,endColumn:bt.endColumn})}return[2,be]})})},s.prototype.navigateValueSet=function(r,t,a,h,v){return ft(this,void 0,void 0,function(){var V,be,Ae,Ne,ot,dt;return lt(this,function(bt){return V=this._getModel(r),V?(be=new RegExp(h,v),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),Ae=V.getValueInRange(t),Ne=V.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},be),Ne?(ot=V.getValueInRange(Ne),dt=Re.INSTANCE.navigateValueSet(t,Ae,Ne,ot,a),[2,dt]):[2,null]):[2,null]})})},s.prototype.loadForeignModule=function(r,t,a){var h=this,v=function(Ne,ot){return h._host.fhr(Ne,ot)},V=ln.b(a,v),be={host:V,getMirrorModels:function(){return h._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(be,t),Promise.resolve(ln.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 It(s){return new xt(s,null)}typeof importScripts=="function"&&(sn.b.monaco=Pt());var Ft=o("G2kB"),Yt=o("Cg/j"),Zt=Object(Yt.c)("textResourceConfigurationService"),un=Object(Yt.c)("textResourcePropertiesService"),fn=o("09fa"),An=o("5Y4S"),gn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),Tn=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},xn=function(s,r){return function(t,a){r(t,a,s)}},Le=function(s,r,t,a){function h(v){return v instanceof t?v:new t(function(V){V(v)})}return new(t||(t=Promise))(function(v,V){function be(ot){try{Ne(a.next(ot))}catch(dt){V(dt)}}function Ae(ot){try{Ne(a.throw(ot))}catch(dt){V(dt)}}function Ne(ot){ot.done?v(ot.value):h(ot.value).then(be,Ae)}Ne((a=a.apply(s,r||[])).next())})},W=function(s,r){var t={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},a,h,v,V;return V={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function be(Ne){return function(ot){return Ae([Ne,ot])}}function Ae(Ne){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,h&&(v=Ne[0]&2?h.return:Ne[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,Ne[1])).done)return v;(h=0,v)&&(Ne=[Ne[0]&2,v.value]);switch(Ne[0]){case 0:case 1:v=Ne;break;case 4:return t.label++,{value:Ne[1],done:!1};case 5:t.label++,h=Ne[1],Ne=[0];continue;case 7:Ne=t.ops.pop(),t.trys.pop();continue;default:if(!(v=t.trys,v=v.length>0&&v[v.length-1])&&(Ne[0]===6||Ne[0]===2)){t=0;continue}if(Ne[0]===3&&(!v||Ne[1]>v[0]&&Ne[1]<v[3])){t.label=Ne[1];break}if(Ne[0]===6&&t.label<v[1]){t.label=v[1],v=Ne;break}if(v&&t.label<v[2]){t.label=v[2],t.ops.push(Ne);break}v[2]&&t.ops.pop(),t.trys.pop();continue}Ne=r.call(s,t)}catch(ot){Ne=[6,ot],h=0}finally{a=v=0}if(Ne[0]&5)throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}},ae=60*1e3,ke=5*60*1e3;function qe(s,r){var t=s.getModel(r);return t?!t.isTooLargeForSyncing():!1}var ct=function(s){gn(r,s);function r(t,a,h){var v=s.call(this)||this;return v._modelService=t,v._workerManager=v._register(new Ge(v._modelService)),v._logService=h,v._register(gt.r.register("*",{provideLinks:function(be,Ae){return qe(v._modelService,be.uri)?v._workerManager.withWorker().then(function(Ne){return Ne.computeLinks(be.uri)}).then(function(Ne){return Ne&&{links:Ne}}):Promise.resolve({links:[]})}})),v._register(gt.d.register("*",new St(v._workerManager,a,v._modelService))),v}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,h,v){return this._workerManager.withWorker().then(function(V){return V.computeDiff(t,a,h,v)})},r.prototype.computeMoreMinimalEdits=function(t,a){var h=this;if(Object(tn.q)(a)){if(!qe(this._modelService,t))return Promise.resolve(a);var v=An.a.create(!0),V=this._workerManager.withWorker().then(function(be){return be.computeMoreMinimalEdits(t,a)});return V.finally(function(){return h._logService.trace("FORMAT#computeMoreMinimalEdits",t.toString(!0),v.elapsed())}),V}else return Promise.resolve(void 0)},r.prototype.canNavigateValueSet=function(t){return qe(this._modelService,t)},r.prototype.navigateValueSet=function(t,a,h){return this._workerManager.withWorker().then(function(v){return v.navigateValueSet(t,a,h)})},r.prototype.canComputeWordRanges=function(t){return qe(this._modelService,t)},r.prototype.computeWordRanges=function(t,a){return this._workerManager.withWorker().then(function(h){return h.computeWordRanges(t,a)})},r=Tn([xn(0,Ft.a),xn(1,Zt),xn(2,fn.a)],r),r}(zt.a),St=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 Le(this,void 0,void 0,function(){var a,h,v,V,be,Ae;return W(this,function(Ne){switch(Ne.label){case 0:return a=this._configurationService.getValue(r.uri,t,"editor").wordBasedSuggestions,a?qe(this._modelService,r.uri)?(h=r.getWordAtPosition(t),v=h?new G.a(t.lineNumber,h.startColumn,t.lineNumber,h.endColumn):G.a.fromPositions(t),V=v.setEndPosition(t.lineNumber,t.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return be=Ne.sent(),[4,be.textualSuggest(r.uri,t)];case 2:return Ae=Ne.sent(),Ae?[2,{suggestions:Ae.map(function(ot){return{kind:18,label:ot,insertText:ot,range:{insert:V,replace:v}}})}]:[2,void 0]}})})},s}(),Ge=function(s){gn(r,s);function r(t){var a=s.call(this)||this;a._modelService=t,a._editorWorkerClient=null,a._lastWorkerUsedTime=new Date().getTime();var h=a._register(new Jt.c);return h.cancelAndSet(function(){return a._checkStopIdleWorker()},Math.round(ke/2)),a._register(a._modelService.onModelRemoved(function(v){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)return;var t=this._modelService.getModels();t.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype._checkStopIdleWorker=function(){if(!this._editorWorkerClient)return;var t=new Date().getTime()-this._lastWorkerUsedTime;t>ke&&(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),ue=function(s){gn(r,s);function r(t,a,h){var v=s.call(this)||this;if(v._syncedModels=Object.create(null),v._syncedModelsLastUsedTime=Object.create(null),v._proxy=t,v._modelService=a,!h){var V=new Jt.c;V.cancelAndSet(function(){return v._checkStopModelSync()},Math.round(ae/2)),v._register(V)}return v}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,h=t;a<h.length;a++){var v=h[a],V=v.toString();this._syncedModels[V]||this._beginModelSync(v),this._syncedModels[V]&&(this._syncedModelsLastUsedTime[V]=new Date().getTime())}},r.prototype._checkStopModelSync=function(){var t=new Date().getTime(),a=[];for(var h in this._syncedModelsLastUsedTime){var v=t-this._syncedModelsLastUsedTime[h];v>ae&&a.push(h)}for(var V=0,be=a;V<be.length;V++){var Ae=be[V];this._stopModelSync(Ae)}},r.prototype._beginModelSync=function(t){var a=this,h=this._modelService.getModel(t);if(!h)return;if(h.isTooLargeForSyncing())return;var v=t.toString();this._proxy.acceptNewModel({url:h.uri.toString(),lines:h.getLinesContent(),EOL:h.getEOL(),versionId:h.getVersionId()});var V=new zt.b;V.add(h.onDidChangeContent(function(be){a._proxy.acceptModelChanged(v.toString(),be)})),V.add(h.onWillDispose(function(){a._stopModelSync(v)})),V.add(Object(zt.h)(function(){a._proxy.acceptRemovedModel(v)})),this._syncedModels[v]=V},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),X=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}(),Ue=function(){function s(r){this._workerClient=r}return s.prototype.fhr=function(r,t){return this._workerClient.fhr(r,t)},s}(),at=function(s){gn(r,s);function r(t,a,h){var v=s.call(this)||this;return v._modelService=t,v._keepIdleModels=a,v._workerFactory=new Tt(h),v._worker=null,v._modelManager=null,v}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 Qn(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Ue(this)))}catch(t){Gn(t),this._worker=new X(new xt(new Ue(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 X(new xt(new Ue(t),null)),t._getOrCreateWorker().getProxyObject()})},r.prototype._getOrCreateModelManager=function(t){return this._modelManager||(this._modelManager=this._register(new ue(t,this._modelService,this._keepIdleModels))),this._modelManager},r.prototype._withSyncedResources=function(t){var a=this;return this._getProxy().then(function(h){return a._getOrCreateModelManager(h).ensureSyncedResources(t),h})},r.prototype.computeDiff=function(t,a,h,v){return this._withSyncedResources([t,a]).then(function(V){return V.computeDiff(t.toString(),a.toString(),h,v)})},r.prototype.computeMoreMinimalEdits=function(t,a){return this._withSyncedResources([t]).then(function(h){return h.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 h=this;return this._withSyncedResources([t]).then(function(v){var V=h._modelService.getModel(t);if(!V)return null;var be=Ht.a.getWordDefinition(V.getLanguageIdentifier().id),Ae=be.source,Ne=Object(Zn.H)(be);return v.textualSuggest(t.toString(),a,Ae,Ne)})},r.prototype.computeWordRanges=function(t,a){var h=this;return this._withSyncedResources([t]).then(function(v){var V=h._modelService.getModel(t);if(!V)return Promise.resolve(null);var be=Ht.a.getWordDefinition(V.getLanguageIdentifier().id),Ae=be.source,Ne=Object(Zn.H)(be);return v.computeWordRanges(t.toString(),a,Ae,Ne)})},r.prototype.navigateValueSet=function(t,a,h){var v=this;return this._withSyncedResources([t]).then(function(V){var be=v._modelService.getModel(t);if(!be)return null;var Ae=Ht.a.getWordDefinition(be.getLanguageIdentifier().id),Ne=Ae.source,ot=Object(Zn.H)(Ae);return V.navigateValueSet(t.toString(),a,h,Ne,ot)})},r}(zt.a),et=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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 Ce(s,r)}var Ce=function(s){et(r,s);function r(t,a){var h=s.call(this,t,a.keepIdleModels||!1,a.label)||this;return h._foreignModuleId=a.moduleId,h._foreignModuleCreateData=a.createData||null,h._foreignModuleHost=a.host||null,h._foreignProxy=null,h}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(h){return Promise.reject(h)}},r.prototype._getForeignProxy=function(){var t=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(a){var h=t._foreignModuleHost?ln.c(t._foreignModuleHost):[];return a.loadForeignModule(t._foreignModuleId,t._foreignModuleCreateData,h).then(function(v){t._foreignModuleCreateData=null;for(var V=function(mt,$t){return a.fmr(mt,$t)},be=function(mt,$t){return function(){var Kt=Array.prototype.slice.call(arguments,0);return $t(mt,Kt)}},Ae={},Ne=0,ot=v;Ne<ot.length;Ne++){var dt=ot[Ne];Ae[dt]=be(dt,V)}return Ae})})),this._foreignProxy},r.prototype.getProxy=function(){return this._getForeignProxy()},r.prototype.withSyncedResources=function(t){var a=this;return this._withSyncedResources(t).then(function(h){return a.getProxy()})},r}(at),Oe=o("4bUh"),it=o("baJR"),Je=o("qNAo");function je(s){return Array.isArray(s)}function Ct(s){return!je(s)}function Ot(s){return typeof s=="string"}function Qt(s){return!Ot(s)}function At(s){return!s}function jt(s,r){return s.ignoreCase&&r?r.toLowerCase():r}function hn(s){return s.replace(/[&<>'"_]/g,"-")}function bn(s,r){console.log(s.languageId+": "+r)}function mn(s,r){return new Error(s.languageId+": "+r)}function Vn(s,r,t,a,h){var v=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,V=null;return r.replace(v,function(be,Ae,Ne,ot,dt,bt,mt,$t,Kt){return At(Ne)?At(ot)?!At(dt)&&dt<a.length?jt(s,a[dt]):!At(mt)&&s&&typeof s[mt]=="string"?s[mt]:(V===null&&(V=h.split("."),V.unshift(h)),!At(bt)&&bt<V.length?jt(s,V[bt]):""):jt(s,t):"$"})}function Xn(s,r){for(var t=r;t&&t.length>0;){var a=s.tokenizer[t];if(a)return a;var h=t.lastIndexOf(".");h<0?t=null:t=t.substr(0,h)}return null}function Yn(s,r){for(var t=r;t&&t.length>0;){var a=s.stateNames[t];if(a)return!0;var h=t.lastIndexOf(".");h<0?t=null:t=t.substr(0,h)}return!1}var Ui=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 Pi(r,t);var a=Pi.getStackElementId(r);a.length>0&&(a+="|"),a+=t;var h=this._entries[a];return h||(h=new Pi(r,t),this._entries[a]=h,h)},s._INSTANCE=new s(Ui),s}(),Pi=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}(),ur=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=Pi.getStackElementId(r),h=this._entries[a];return h||(h=new tr(r,null),this._entries[a]=h,h)},s._INSTANCE=new s(Ui),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)?this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData):!1},s}(),Hn=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){if(this._lastTokenType===t&&this._lastTokenLanguage===this._language)return;this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new _.a(r,t,this._language))},s.prototype.nestedModeTokenize=function(r,t,a){var h=t.modeId,v=t.state,V=gt.y.get(h);if(!V)return this.enterMode(a,h),this.emit(a,""),v;var be=V.tokenize(r,v,a);return this._tokens=this._tokens.concat(be.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,be.endState},s.prototype.finalize=function(r){return new _.b(this._tokens,r)},s}(),Vr=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);if(this._lastTokenMetadata===a)return;this._lastTokenMetadata=a,this._tokens.push(r),this._tokens.push(a)},s._merge=function(r,t,a){var h=r!==null?r.length:0,v=t.length,V=a!==null?a.length:0;if(h===0&&v===0&&V===0)return new Uint32Array(0);if(h===0&&v===0)return a;if(v===0&&V===0)return r;var be=new Uint32Array(h+v+V);r!==null&&be.set(r);for(var Ae=0;Ae<v;Ae++)be[h+Ae]=t[Ae];return a!==null&&be.set(a,h+v),be},s.prototype.nestedModeTokenize=function(r,t,a){var h=t.modeId,v=t.state,V=gt.y.get(h);if(!V)return this.enterMode(a,h),this.emit(a,""),v;var be=V.tokenize2(r,v,a);return this._prependTokens=s._merge(this._prependTokens,this._tokens,be.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,be.endState},s.prototype.finalize=function(r){return new _.c(s._merge(this._prependTokens,this._tokens,null),r)},s}(),Oi=function(){function s(r,t,a,h){var v=this;this._modeService=r,this._standaloneThemeService=t,this._modeId=a,this._lexer=h,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var V=!1;this._tokenizationRegistryListener=gt.y.onDidChange(function(be){if(V)return;for(var Ae=!1,Ne=0,ot=be.changedLanguages.length;Ne<ot;Ne++){var dt=be.changedLanguages[Ne];if(v._embeddedModes[dt]){Ae=!0;break}}Ae&&(V=!0,gt.y.fire([v._modeId]),V=!1)})}return s.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},s.prototype.getLoadStatus=function(){var r=[];for(var t in this._embeddedModes){var a=gt.y.get(t);if(a){if(a instanceof s){var h=a.getLoadStatus();h.loaded===!1&&r.push(h.promise)}continue}var v=gt.y.getPromise(t);v&&r.push(v)}return r.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(r).then(function(V){return})}},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 h=new Hn,v=this._tokenize(r,t,a,h);return h.finalize(v)},s.prototype.tokenize2=function(r,t,a){var h=new Vr(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),v=this._tokenize(r,t,a,h);return h.finalize(v)},s.prototype._tokenize=function(r,t,a,h){return t.embeddedModeData?this._nestedTokenize(r,t,a,h):this._myTokenize(r,t,a,h)},s.prototype._findLeavingNestedModeOffset=function(r,t){var a=this._lexer.tokenizer[t.stack.state];if(!a&&(a=Xn(this._lexer,t.stack.state),!a))throw mn(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var h=-1,v=!1,V=0,be=a;V<be.length;V++){var Ae=be[V];if(!Qt(Ae.action)||Ae.action.nextEmbedded!=="@pop")continue;v=!0;var Ne=Ae.regex,ot=Ae.regex.source;ot.substr(0,4)==="^(?:"&&ot.substr(ot.length-1,1)===")"&&(Ne=new RegExp(ot.substr(4,ot.length-5),Ne.ignoreCase?"i":""));var dt=r.search(Ne);if(dt===-1||dt!==0&&Ae.matchOnlyAtLineStart)continue;(h===-1||dt<h)&&(h=dt)}if(!v)throw mn(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return h},s.prototype._nestedTokenize=function(r,t,a,h){var v=this._findLeavingNestedModeOffset(r,t);if(v===-1){var V=h.nestedModeTokenize(r,t.embeddedModeData,a);return er.create(t.stack,new ur(t.embeddedModeData.modeId,V))}var be=r.substring(0,v);be.length>0&&h.nestedModeTokenize(be,t.embeddedModeData,a);var Ae=r.substring(v);return this._myTokenize(Ae,t,a+v,h)},s.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},s.prototype._myTokenize=function(r,t,a,h){h.enterMode(a,this._modeId);for(var v=r.length,V=t.embeddedModeData,be=t.stack,Ae=0,Ne=null,ot=!0;ot||Ae<v;){var dt=Ae,bt=be.depth,mt=Ne?Ne.groups.length:0,$t=be.state,Kt=null,Wt=null,Bt=null,rn=null,cn=null;if(Ne){Kt=Ne.matches;var wn=Ne.groups.shift();Wt=wn.matched,Bt=wn.action,rn=Ne.rule,Ne.groups.length===0&&(Ne=null)}else{if(!ot&&Ae>=v)break;ot=!1;var En=this._lexer.tokenizer[$t];if(!En&&(En=Xn(this._lexer,$t),!En))throw mn(this._lexer,"tokenizer state is not defined: "+$t);for(var Fn=r.substr(Ae),Wn=0,jn=En;Wn<jn.length;Wn++){var ei=jn[Wn];if((Ae===0||!ei.matchOnlyAtLineStart)&&(Kt=Fn.match(ei.regex),Kt)){Wt=Kt[0],Bt=ei.action;break}}}if(Kt||(Kt=[""],Wt=""),Bt||(Ae<v&&(Kt=[r.charAt(Ae)],Wt=Kt[0]),Bt=this._lexer.defaultToken),Wt===null)break;for(Ae+=Wt.length;Ct(Bt)&&Qt(Bt)&&Bt.test;)Bt=Bt.test(Wt,Kt,$t,Ae===v);var zn=null;if(typeof Bt=="string"||Array.isArray(Bt))zn=Bt;else if(Bt.group)zn=Bt.group;else if(Bt.token!==null&&Bt.token!==void 0){if(Bt.tokenSubst?zn=Vn(this._lexer,Bt.token,Wt,Kt,$t):zn=Bt.token,Bt.nextEmbedded)if(Bt.nextEmbedded==="@pop"){if(!V)throw mn(this._lexer,"cannot pop embedded mode if not inside one");V=null}else{if(V)throw mn(this._lexer,"cannot enter embedded mode from within an embedded mode");cn=Vn(this._lexer,Bt.nextEmbedded,Wt,Kt,$t)}if(Bt.goBack&&(Ae=Math.max(0,Ae-Bt.goBack)),Bt.switchTo&&typeof Bt.switchTo=="string"){var vn=Vn(this._lexer,Bt.switchTo,Wt,Kt,$t);if(vn[0]==="@"&&(vn=vn.substr(1)),Xn(this._lexer,vn))be=be.switchTo(vn);else throw mn(this._lexer,"trying to switch to a state '"+vn+"' that is undefined in rule: "+this._safeRuleName(rn))}else{if(Bt.transform&&typeof Bt.transform=="function")throw mn(this._lexer,"action.transform not supported");if(Bt.next)if(Bt.next==="@push"){if(be.depth>=this._lexer.maxStack)throw mn(this._lexer,"maximum tokenizer stack size reached: ["+be.state+","+be.parent.state+",...]");be=be.push($t)}else if(Bt.next==="@pop"){if(be.depth<=1)throw mn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(rn));be=be.pop()}else if(Bt.next==="@popall")be=be.popall();else{var vn=Vn(this._lexer,Bt.next,Wt,Kt,$t);if(vn[0]==="@"&&(vn=vn.substr(1)),Xn(this._lexer,vn))be=be.push(vn);else throw mn(this._lexer,"trying to set a next state '"+vn+"' that is undefined in rule: "+this._safeRuleName(rn))}}Bt.log&&typeof Bt.log=="string"&&bn(this._lexer,this._lexer.languageId+": "+Vn(this._lexer,Bt.log,Wt,Kt,$t))}if(zn===null)throw mn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(rn));if(Array.isArray(zn)){if(Ne&&Ne.groups.length>0)throw mn(this._lexer,"groups cannot be nested: "+this._safeRuleName(rn));if(Kt.length!==zn.length+1)throw mn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(rn));for(var ni=0,$n=1;$n<Kt.length;$n++)ni+=Kt[$n].length;if(ni!==Wt.length)throw mn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(rn));Ne={rule:rn,matches:Kt,groups:[]};for(var $n=0;$n<zn.length;$n++)Ne.groups[$n]={action:zn[$n],matched:Kt[$n+1]};Ae-=Wt.length;continue}else{if(zn==="@rematch"&&(Ae-=Wt.length,Wt="",Kt=null,zn=""),Wt.length===0){if(v===0||bt!==be.depth||$t!==be.state||(Ne?Ne.groups.length:0)!==mt)continue;throw mn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(rn))}var pi=null;if(Ot(zn)&&zn.indexOf("@brackets")===0){var xi=zn.substr("@brackets".length),Or=wo(this._lexer,Wt);if(!Or)throw mn(this._lexer,"@brackets token returned but no bracket defined as: "+Wt);pi=hn(Or.token+xi)}else{var yr=zn===""?"":zn+this._lexer.tokenPostfix;pi=hn(yr)}h.emit(dt+a,pi)}if(cn!==null){var Rr=this._modeService.getModeIdForLanguageName(cn);Rr&&(cn=Rr);var So=this._getNestedEmbeddedModeData(cn);if(Ae<v){var Fn=r.substr(Ae);return this._nestedTokenize(Fn,er.create(be,So),a+Ae,h)}else return er.create(be,So)}}return er.create(be,V)},s.prototype._getNestedEmbeddedModeData=function(r){var t=this._locateMode(r);if(t){var a=gt.y.get(t);if(a)return new ur(t,a.getInitialState())}return new ur(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 wo(s,r){if(!r)return null;r=jt(s,r);for(var t=s.brackets,a=0,h=t;a<h.length;a++){var v=h[a];if(v.open===r)return{token:v.token,bracketType:1};if(v.close===r)return{token:v.token,bracketType:-1}}return null}function Ir(s,r,t,a){return new Oi(s,r,t,a)}var Hr=function(){function s(){}return s.colorizeElement=function(r,t,a,h){h=h||{};var v=h.theme||"vs",V=h.mimeType||a.getAttribute("lang")||a.getAttribute("data-lang");if(!V)return console.error("Mode not detected"),Promise.resolve();r.setTheme(v);var be=a.firstChild?a.firstChild.nodeValue:"";a.className+=" "+v;var Ae=function(ot){a.innerHTML=ot};return this.colorize(t,be||"",V,h).then(Ae,function(Ne){return console.error(Ne)})},s.colorize=function(r,t,a,h){var v=4;h&&typeof h.tabSize=="number"&&(v=h.tabSize),Zn.O(t)&&(t=t.substr(1));var V=t.split(/\r\n|\r|\n/),be=r.getModeId(a);if(!be)return Promise.resolve(eo(V,v));r.triggerMode(be);var Ae=gt.y.get(be);if(Ae)return Pr(V,v,Ae);var Ne=gt.y.getPromise(be);return Ne?new Promise(function(ot,dt){Ne.then(function(bt){Pr(V,v,bt).then(ot,dt)},dt)}):new Promise(function(ot,dt){var bt=null,mt=null,$t=function(){bt&&(bt.dispose(),bt=null),mt&&(mt.dispose(),mt=null);var Wt=gt.y.get(be);if(Wt){Pr(V,v,Wt).then(ot,dt);return}ot(eo(V,v))};mt=new Jt.e,mt.cancelAndSet($t,500),bt=gt.y.onDidChange(function(Kt){Kt.changedLanguages.indexOf(be)>=0&&$t()})})},s.colorizeLine=function(r,t,a,h,v){v===void 0&&(v=4);var V=Je.d.isBasicASCII(r,t),be=Je.d.containsRTL(r,V,a),Ae=Object(it.e)(new it.c(!1,!0,r,!1,V,be,0,h,[],v,0,0,0,-1,"none",!1,!1,null));return Ae.html},s.colorizeModelLine=function(r,t,a){a===void 0&&(a=4);var h=r.getLineContent(t);r.forceTokenization(t);var v=r.getLineTokens(t),V=v.inflate();return this.colorizeLine(h,r.mightContainNonBasicASCII(),r.mightContainRTL(),V,a)},s}();function Pr(s,r,t){return new Promise(function(a,h){var v=function V(){var be=po(s,r,t);if(t instanceof Oi){var Ae=t.getLoadStatus();if(Ae.loaded===!1){Ae.promise.then(V,h);return}}a(be)};v()})}function eo(s,r){var t=[],a=(0<<11|1<<14|2<<23)>>>0,h=new Uint32Array(2);h[0]=0,h[1]=a;for(var v=0,V=s.length;v<V;v++){var be=s[v];h[0]=be.length;var Ae=new Oe.a(h,be),Ne=Je.d.isBasicASCII(be,!0),ot=Je.d.containsRTL(be,Ne,!0),dt=Object(it.e)(new it.c(!1,!0,be,!1,Ne,ot,0,Ae,[],r,0,0,0,-1,"none",!1,!1,null));t=t.concat(dt.html),t.push("<br/>")}return t.join("")}function po(s,r,t){for(var a=[],h=t.getInitialState(),v=0,V=s.length;v<V;v++){var be=s[v],Ae=t.tokenize2(be,h,0);Oe.a.convertToEndOffset(Ae.tokens,be.length);var Ne=new Oe.a(Ae.tokens,be),ot=Je.d.isBasicASCII(be,!0),dt=Je.d.containsRTL(be,ot,!0),bt=Object(it.e)(new it.c(!1,!0,be,!1,ot,dt,0,Ne.inflate(),[],r,0,0,0,-1,"none",!1,!1,null));a=a.concat(bt.html),a.push("<br/>"),h=Ae.endState}return a.join("")}var dr=o("uDWl"),_r=o("S3by"),go=o("sFUC"),Bo=o("iDAx"),Lo=o("0/Sa"),Ai=o("+7oY"),zr=o("QDVR"),is=o("CRAX"),kr=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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),h=0,r=0;r<t;r++)for(var v=arguments[r],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];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(Ai.d)(this.contents,r):this.contents},s.prototype.getOverrideValue=function(r,t){var a=this.getContentsForOverrideIdentifer(t);return a?r?Object(Ai.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={},h=0,v=tn.e(rs(Object.keys(this.contents),Object.keys(t)));h<v.length;h++){var V=v[h],be=this.contents[V],Ae=t[V];Ae&&(typeof be=="object"&&typeof Ae=="object"?(be=Gt.c(be),this.mergeContents(be,Ae)):be=Ae),a[V]=be}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),h=Gt.c(this.overrides),v=rs(this.keys),V=0,be=r;V<be.length;V++){var Ae=be[V];this.mergeContents(a,Ae.contents);for(var Ne=function(rn){var cn=h.filter(function(wn){return tn.g(wn.identifiers,rn.identifiers)})[0];cn?ot.mergeContents(cn.contents,rn.contents):h.push(Gt.c(rn))},ot=this,dt=0,bt=Ae.overrides;dt<bt.length;dt++){var mt=bt[dt];Ne(mt)}for(var $t=0,Kt=Ae.keys;$t<Kt.length;$t++){var Wt=Kt[$t];v.indexOf(Wt)===-1&&v.push(Wt)}}return new s(a,v,h)},s.prototype.freeze=function(){return this.isFrozen=!0,this},s.prototype.mergeContents=function(r,t){for(var a=0,h=Object.keys(t);a<h.length;a++){var v=h[a];if(v in r&&(ln.i(r[v])&&ln.i(t[v]))){this.mergeContents(r[v],t[v]);continue}r[v]=Gt.c(t[v])}},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 h=a[t];if(h.identifiers.indexOf(r)!==-1)return h.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(Ai.b)(this.contents,r,t,function(a){throw new Error(a)})},s.prototype.removeValue=function(r){this.removeKey(r)&&Object(Ai.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){kr(r,s);function r(){for(var t=this,a=Object(Ai.e)(),h=Object(Ai.c)(),v=[],V=0,be=Object.keys(a);V<be.length;V++){var Ae=be[V];is.b.test(Ae)&&v.push({identifiers:[Object(Ai.g)(Ae).trim()],keys:Object.keys(a[Ae]),contents:Object(Ai.i)(a[Ae],function(Ne){return console.error("Conflict in default settings file: "+Ne)})})}return t=s.call(this,a,h,v)||this,t}return r}(ar),Do=function(){function s(r,t,a,h,v,V,be,Ae){a===void 0&&(a=new ar),h===void 0&&(h=new ar),v===void 0&&(v=new zr.b),V===void 0&&(V=new ar),be===void 0&&(be=new zr.b),Ae===void 0&&(Ae=!0),this._defaultConfiguration=r,this._localUserConfiguration=t,this._remoteUserConfiguration=a,this._workspaceConfiguration=h,this._folderConfigurations=v,this._memoryConfiguration=V,this._memoryConfigurationByResource=be,this._freeze=Ae,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new zr.b,this._userConfiguration=null}return s.prototype.getValue=function(r,t,a){var h=this.getConsolidateConfigurationModel(t,a);return h.getValue(r)},s.prototype.updateValue=function(r,t,a){a===void 0&&(a={});var h;a.resource?(h=this._memoryConfigurationByResource.get(a.resource),h||(h=new ar,this._memoryConfigurationByResource.set(a.resource,h))):h=this._memoryConfiguration,t===void 0?h.removeValue(r):h.setValue(r,t),a.resource||(this._workspaceConsolidatedConfiguration=null)},s.prototype.inspect=function(r,t,a){var h=this.getConsolidateConfigurationModel(t,a),v=this.getFolderConfigurationModelForResource(t.resource,a),V=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,be=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(r):this._defaultConfiguration.freeze().getValue(r),Ae=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(r):this.userConfiguration.freeze().getValue(r),Ne=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,bt=v?t.overrideIdentifier?v.freeze().override(t.overrideIdentifier).getValue(r):v.freeze().getValue(r):void 0,mt=t.overrideIdentifier?V.override(t.overrideIdentifier).getValue(r):V.getValue(r),$t=h.getValue(r),Kt=tn.e(tn.m(h.overrides.map(function(Wt){return Wt.identifiers}))).filter(function(Wt){return h.getOverrideValue(r,Wt)!==void 0});return{defaultValue:be,userValue:Ae,userLocalValue:Ne,userRemoteValue:ot,workspaceValue:dt,workspaceFolderValue:bt,memoryValue:mt,value:$t,default:be!==void 0?{value:this._defaultConfiguration.freeze().getValue(r),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,user:Ae!==void 0?{value:this.userConfiguration.freeze().getValue(r),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,userLocal:Ne!==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:bt!==void 0?{value:v==null?void 0:v.freeze().getValue(r),override:t.overrideIdentifier?v==null?void 0:v.freeze().getOverrideValue(r,t.overrideIdentifier):void 0}:void 0,memory:mt!==void 0?{value:V.getValue(r),override:t.overrideIdentifier?V.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,h=this.getWorkspaceConsolidatedConfiguration();if(t&&a){var v=t.getFolder(a);v&&(h=this.getFolderConsolidatedConfiguration(v.uri)||h);var V=this._memoryConfigurationByResource.get(a);V&&(h=h.merge(V))}return h},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(),h=this._folderConfigurations.get(r);h?(t=a.merge(h),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)}return},s}(),pn=o("3/fG"),Os=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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){Os(r,s);function r(t,a,h,v){var V=s.call(this)||this;return V._contextKeyService=t,V._commandService=a,V._telemetryService=h,V._notificationService=v,V._onDidUpdateKeybindings=V._register(new N.a),V._currentChord=null,V._currentChordChecker=new Jt.c,V._currentChordStatusMessage=null,V}return Object.defineProperty(r.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:N.b.None},enumerable:!0,configurable:!0}),r.prototype.dispose=function(){s.prototype.dispose.call(this)},r.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},r.prototype.lookupKeybinding=function(t){var a=this._getResolver().lookupPrimaryKeybinding(t);return a?a.resolvedKeybinding:void 0},r.prototype.softDispatch=function(t,a){var h=this.resolveKeyboardEvent(t);if(h.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var v=h.getDispatchParts()[0];if(v===null)return null;var V=this._contextKeyService.getContext(a),be=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(V,be,v)},r.prototype._enterChordMode=function(t,a){var h=this;this._currentChord={keypress:t,label:a},this._currentChordStatusMessage=this._notificationService.status(pn.a("first.chord","({0}) was pressed. Waiting for second key of chord...",a));var v=Date.now();this._currentChordChecker.cancelAndSet(function(){if(!h._documentHasFocus()){h._leaveChordMode();return}Date.now()-v>5e3&&h._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 h=this,v=!1;if(t.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var V=t.getDispatchParts()[0];if(V===null)return v;var be=this._contextKeyService.getContext(a),Ae=this._currentChord?this._currentChord.keypress:null,Ne=t.getLabel(),ot=this._getResolver().resolve(be,Ae,V);return ot&&ot.enterChord?(v=!0,this._enterChordMode(V,Ne),v):(this._currentChord&&((!ot||!ot.commandId)&&(this._notificationService.status(pn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Ne),{hideAfter:10*1e3}),v=!0)),this._leaveChordMode(),ot&&ot.commandId&&(ot.bubble||(v=!0),typeof ot.commandArgs=="undefined"?this._commandService.executeCommand(ot.commandId).then(void 0,function(dt){return h._notificationService.warn(dt)}):this._commandService.executeCommand(ot.commandId,ot.commandArgs).then(void 0,function(dt){return h._notificationService.warn(dt)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:ot.commandId,from:"keybinding"})),v)},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),Ei=o("T8No"),mo=function(){function s(r,t){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var a=0,h=r.length;a<h;a++){var v=r[a].command;v&&this._defaultBoundCommands.set(v,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=s.combine(r,t);for(var a=0,h=this._keybindings.length;a<h;a++){var V=this._keybindings[a];if(V.keypressParts.length===0)continue;this._addKeyPress(V.keypressParts[0],V)}}return s._isTargetedForRemoval=function(r,t,a,h,v){if(r.command!==h)return!1;if(t&&r.keypressParts[0]!==t)return!1;if(a&&r.keypressParts[1]!==a)return!1;if(v){if(!r.when)return!1;if(!v.equals(r.when))return!1}return!0},s.combine=function(r,t){r=r.slice(0);for(var a=[],h=0,v=t;h<v.length;h++){var V=v[h];if(!V.command||V.command.length===0||V.command.charAt(0)!=="-"){a.push(V);continue}for(var be=V.command.substr(1),Ae=V.keypressParts[0],Ne=V.keypressParts[1],ot=V.when,dt=r.length-1;dt>=0;dt--)this._isTargetedForRemoval(r[dt],Ae,Ne,be,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 h=a.length-1;h>=0;h--){var v=a[h];if(v.command===t.command)continue;var V=v.keypressParts.length>1,be=t.keypressParts.length>1;if(V&&be&&v.keypressParts[1]!==t.keypressParts[1])continue;s.whenIsEntirelyIncluded(v.when,t.when)&&this._removeFromLookupMap(v)}a.push(t),this._addToLookupMap(t)},s.prototype._addToLookupMap=function(r){if(!r.command)return;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)return;var t=this._lookupMap.get(r.command);if(typeof t=="undefined")return;for(var a=0,h=t.length;a<h;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(),h=function(bt){return bt instanceof Ei.b?bt.expr:[bt]},v=h(a).concat(h(t)),V=0;V<v.length;V++)for(var be=v[V],Ae=be.negate(),Ne=V+1;Ne<v.length;Ne++){var ot=v[Ne];if(Ae.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 h=null;if(t!==null){var v=this._map.get(t);if(typeof v=="undefined")return null;h=[];for(var V=0,be=v.length;V<be;V++){var Ae=v[V];Ae.keypressParts[1]===a&&h.push(Ae)}}else{var v=this._map.get(a);if(typeof v=="undefined")return null;h=v}var Ne=this._findCommand(r,h);return Ne?t===null&&Ne.keypressParts.length>1&&Ne.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Ne.command,commandArgs:Ne.commandArgs,bubble:Ne.bubble}:null},s.prototype._findCommand=function(r,t){for(var a=t.length-1;a>=0;a--){var h=t[a];if(!s.contextMatchesRules(r,h.when))continue;return h}return null},s.contextMatchesRules=function(r,t){return t?t.evaluate(r):!0},s}(),ss=o("nrhi"),as=function(){function s(r,t,a,h,v){this.resolvedKeybinding=r,this.keypressParts=r?Ts(r.getDispatchParts()):[],this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=a,this.when=h,this.isDefault=v}return s}();function Ts(s){for(var r=[],t=0,a=s.length;t<a;t++){var h=s[t];if(!h)return r;r.push(h)}return r}var Fr=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 h=[],v=0,V=t.length;v<V;v++){var be=t[v],Ae=a(be);if(Ae===null)return null;h[v]=ua(be,Ae,this.modifierLabels[r])}return h.join(" ")},s}(),ls=new Fr({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:pn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:pn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:pn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),$s=new Fr({ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function ua(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 Qs=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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){Qs(r,s);function r(t,a){var h=s.call(this)||this;if(a.length===0)throw Object(nn.b)("parts");return h._os=t,h._parts=a,h}return r.prototype.getLabel=function(){var t=this;return ls.toLabel(this._os,this._parts,function(a){return t._getLabel(a)})},r.prototype.getAriaLabel=function(){var t=this;return $s.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 k.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}(k.c),da=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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){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 k.b.toString(t)},r.prototype._getLabel=function(t){return t.isDuplicateModifierCase()?"":this._keyCodeToUILabel(t.keyCode)},r.prototype._getAriaLabel=function(t){return t.isDuplicateModifierCase()?"":k.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+=k.b.toString(t.keyCode),a},r}(Js),Sr=o("sM1p"),xs=o("EWX2"),Ni;(function(s){s.noSelection=pn.a("noSelection","No selection"),s.singleSelectionRange=pn.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),s.singleSelection=pn.a("singleSelection","Line {0}, Column {1}"),s.multiSelectionRange=pn.a("multiSelectionRange","{0} selections ({1} characters selected)"),s.multiSelection=pn.a("multiSelection","{0} selections"),s.emergencyConfOn=pn.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),s.openingDocs=pn.a("openingDocs","Now opening the Editor Accessibility documentation page."),s.readonlyDiffEditor=pn.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),s.editableDiffEditor=pn.a("editableDiffEditor"," in a pane of a diff editor."),s.readonlyEditor=pn.a("readonlyEditor"," in a read-only code editor"),s.editableEditor=pn.a("editableEditor"," in a code editor"),s.changeConfigToOnMac=pn.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),s.changeConfigToOnWinLinux=pn.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),s.auto_on=pn.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),s.auto_off=pn.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=pn.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),s.tabFocusModeOnMsgNoKb=pn.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=pn.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),s.tabFocusModeOffMsgNoKb=pn.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=pn.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),s.openDocWinLinux=pn.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),s.outroMsg=pn.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),s.showAccessibilityHelpAction=pn.a("showAccessibilityHelpAction","Show Accessibility Help")})(Ni||(Ni={}));var Kr;(function(s){s.inspectTokensAction=pn.a("inspectTokens","Developer: Inspect Tokens")})(Kr||(Kr={}));var Gr;(function(s){s.gotoLineLabelValidLineAndColumn=pn.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),s.gotoLineLabelValidLine=pn.a("gotoLineLabelValidLine","Go to line {0}"),s.gotoLineLabelEmptyWithLineLimit=pn.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),s.gotoLineLabelEmptyWithLineAndColumnLimit=pn.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),s.gotoLineAriaLabel=pn.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),s.gotoLineActionInput=pn.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),s.gotoLineActionLabel=pn.a("gotoLineActionLabel","Go to Line...")})(Gr||(Gr={}));var ds;(function(s){s.ariaLabelEntryWithKey=pn.a("ariaLabelEntryWithKey","{0}, {1}, commands"),s.ariaLabelEntry=pn.a("ariaLabelEntry","{0}, commands"),s.quickCommandActionInput=pn.a("quickCommandActionInput","Type the name of an action you want to execute"),s.quickCommandActionLabel=pn.a("quickCommandActionLabel","Command Palette")})(ds||(ds={}));var Uo;(function(s){s.entryAriaLabel=pn.a("entryAriaLabel","{0}, symbols"),s.quickOutlineActionInput=pn.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),s.quickOutlineActionLabel=pn.a("quickOutlineActionLabel","Go to Symbol..."),s._symbols_=pn.a("symbols","symbols ({0})"),s._modules_=pn.a("modules","modules ({0})"),s._class_=pn.a("class","classes ({0})"),s._interface_=pn.a("interface","interfaces ({0})"),s._method_=pn.a("method","methods ({0})"),s._function_=pn.a("function","functions ({0})"),s._property_=pn.a("property","properties ({0})"),s._variable_=pn.a("variable","variables ({0})"),s._variable2_=pn.a("variable2","variables ({0})"),s._constructor_=pn.a("_constructor","constructors ({0})"),s._call_=pn.a("call","calls ({0})")})(Uo||(Uo={}));var Xr;(function(s){s.editorViewAccessibleLabel=pn.a("editorViewAccessibleLabel","Editor content"),s.accessibilityHelpMessageIE=pn.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),s.accessibilityHelpMessage=pn.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(Xr||(Xr={}));var cs;(function(s){s.toggleHighContrast=pn.a("toggleHighContrast","Toggle High Contrast Theme")})(cs||(cs={}));var to;(function(s){s.bulkEditServiceSummary=pn.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(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),vo=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},hs=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),h=0,r=0;r<t;r++)for(var v=arguments[r],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},As=function(){function s(r){this.model=r,this._onDispose=new N.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 Ns(s,r,t){return Object(go.a)(s)?r(s):t(s)}var Yr=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=Ns(this.editor,function(h){return t.findModel(h,r)},function(h){return t.findModel(h.getOriginalEditor(),r)||t.findModel(h.getModifiedEditor(),r)})),a?Promise.resolve(new zt.c(new As(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}(),Vo=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}(),fs=function(){function s(){}return s}(),ps=function(){function s(){}return s.prototype.info=function(r){return this.notify({severity:_r.a.Info,message:r})},s.prototype.warn=function(r){return this.notify({severity:_r.a.Warning,message:r})},s.prototype.error=function(r){return this.notify({severity:_r.a.Error,message:r})},s.prototype.notify=function(r){switch(r.severity){case _r.a.Error:console.error(r.message);break;case _r.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 Sr.b,s}(),Ho=function(){function s(r){this._onWillExecuteCommand=new N.a,this._onDidExecuteCommand=new N.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 h=we.a.getCommand(r)||this._dynamicCommands[r];if(!h)return Promise.reject(new Error("command '"+r+"' not found"));try{this._onWillExecuteCommand.fire({commandId:r,args:t});var v=this._instantiationService.invokeFunction.apply(this._instantiationService,ea([h.handler],t));return this._onDidExecuteCommand.fire({commandId:r,args:t}),Promise.resolve(v)}catch(V){return Promise.reject(V)}},s}(),yo=function(s){qs(r,s);function r(t,a,h,v,V){var be=s.call(this,t,a,h,v)||this;return be._cachedResolver=null,be._dynamicKeybindings=[],be._register(Xe.i(V,Xe.c.KEY_DOWN,function(Ae){var Ne=new dr.a(Ae),ot=be._dispatch(Ne,Ne.target);ot&&(Ne.preventDefault(),Ne.stopPropagation())})),be}return r.prototype.addDynamicKeybinding=function(t,a,h,v){var V=this,be=Object(k.f)(a,sn.a),Ae=new zt.b;be&&(this._dynamicKeybindings.push({keybinding:be,command:t,when:v,weight1:1e3,weight2:0}),Ae.add(Object(zt.h)(function(){for(var ot=0;ot<V._dynamicKeybindings.length;ot++){var dt=V._dynamicKeybindings[ot];if(dt.command===t){V._dynamicKeybindings.splice(ot,1),V.updateResolver({source:1});return}}})));var Ne=this._commandService;if(Ne instanceof Ho)Ae.add(Ne.addCommand({id:t,handler:h}));else throw new Error("Unknown command service!");return this.updateResolver({source:1}),Ae},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 mo(t,a)}return this._cachedResolver},r.prototype._documentHasFocus=function(){return document.hasFocus()},r.prototype._toNormalizedKeybindingItems=function(t,a){for(var h=[],v=0,V=0,be=t;V<be.length;V++){var Ae=be[V],Ne=Ae.when||void 0,ot=Ae.keybinding;if(!ot)h[v++]=new as(void 0,Ae.command,Ae.commandArgs,Ne,a);else for(var dt=this.resolveKeybinding(ot),bt=0,mt=dt;bt<mt.length;bt++){var $t=mt[bt];h[v++]=new as($t,Ae.command,Ae.commandArgs,Ne,a)}}return h},r.prototype.resolveKeybinding=function(t){return[new us(t,sn.a)]},r.prototype.resolveKeyboardEvent=function(t){var a=new k.e(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,t.keyCode).toChord();return new us(a,sn.a)},r}(Ms);function Oo(s){return s&&typeof s=="object"&&(!s.overrideIdentifier||typeof s.overrideIdentifier=="string")&&(!s.resource||s.resource instanceof U.a)}var Mo=function(){function s(){this._onDidChangeConfiguration=new N.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,h=Oo(r)?r:Oo(t)?t:{};return this.configuration().getValue(a,h,void 0)},s.prototype.updateValue=function(r,t,a,h){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 N.a,this.configurationService.onDidChangeConfiguration(function(a){t._onDidChangeConfiguration.fire({affectedKeys:a.affectedKeys,affectsConfiguration:function(v,V){return a.affectsConfiguration(V)}})})}return s.prototype.getValue=function(r,t,a){var h=j.a.isIPosition(t)?t:null,v=h?typeof a=="string"?a:void 0:typeof t=="string"?t:void 0;return typeof v=="undefined"?this.configurationService.getValue():this.configurationService.getValue(v)},s}(),gs=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=vo([hs(0,Ai.a)],s),s}(),jr=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}(),Rs=function(){function s(){var r=U.a.from({scheme:s.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new xs.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){if(!r)return;if(!(s instanceof Mo))return;Object.keys(r).forEach(function(a){Object(Bo.c)(a)&&s.updateValue("editor."+a,r[a]),t&&Object(Bo.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 h=0,v=r.edits;h<v.length;h++){var V=v[h];if(!gt.A.is(V))return Promise.reject(new Error("bad edit - only text edits are supported"));var be=this._modelService.getModel(V.resource);if(!be)return Promise.reject(new Error("bad edit - model not found"));var Ae=a.get(be);Ae||(Ae=[],a.set(be,Ae)),Ae.push(V.edit)}var Ne=0,ot=0;return a.forEach(function(dt,bt){bt.pushStackElement(),bt.pushEditOperations([],dt.map(function(mt){return Lo.a.replaceMove(G.a.lift(mt.range),mt.text)}),function(){return[]}),bt.pushStackElement(),ot+=1,Ne+=dt.length}),Promise.resolve({selection:void 0,ariaSummary:Zn.r(to.bulkEditServiceSummary,Ne,ot)})},s}(),ta=function(){function s(){}return s.prototype.getUriLabel=function(r,t){return r.scheme==="file"?r.fsPath:r.path},s}(),Is=function(){function s(r){this._container=r,this.onLayout=N.b.None}return Object.defineProperty(s.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),s}(),Ps=o("D3Dy"),ms=o("OBOq"),To=o("nB0o"),ks=o("lKfe"),no=o("ZlPH"),Fs=o("cMOf"),si=o("HdwC"),js=o("vATl"),na=o("DTDp"),Mr=o("WqXY"),io=o("GJhM"),ro=o("8HAY"),nr=o("sswD"),br=o("kYye"),wi=o("MD5Z"),Fi=o("t9D7"),xo=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),Ao=3,oo=function(){function s(r,t,a,h){this.originalLineStart=r,this.originalLineEnd=t,this.modifiedLineStart=a,this.modifiedLineEnd=h}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}(),No=function(s){xo(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",pn.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(){if(!a._isVisible)return;a._diffs=a._compute(),a._render()})),a._register(t.getModifiedEditor().onDidChangeCursorPosition(function(){if(!a._isVisible)return;a._render()})),a._register(t.getOriginalEditor().onDidFocusEditorWidget(function(){a._isVisible&&a.hide()})),a._register(t.getModifiedEditor().onDidFocusEditorWidget(function(){a._isVisible&&a.hide()})),a._register(Xe.n(a.domNode.domNode,"click",function(h){h.preventDefault();var v=Xe.w(h.target,"diff-review-row");v&&a._goToRow(v)})),a._register(Xe.n(a.domNode.domNode,"keydown",function(h){(h.equals(18)||h.equals(2048|18)||h.equals(512|18))&&(h.preventDefault(),a._goToRow(a._getNextRow())),(h.equals(16)||h.equals(2048|16)||h.equals(512|16))&&(h.preventDefault(),a._goToRow(a._getPrevRow())),(h.equals(9)||h.equals(2048|9)||h.equals(512|9)||h.equals(1024|9))&&(h.preventDefault(),a.hide()),(h.equals(10)||h.equals(3))&&(h.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,h=0,v=this._diffs.length;h<v;h++)if(this._diffs[h]===this._currentDiff){a=h;break}t=this._diffs.length+a-1}else t=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;t=t%this._diffs.length,this._diffEditor.setPosition(new j.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,h=0,v=this._diffs.length;h<v;h++)if(this._diffs[h]===this._currentDiff){a=h;break}t=a+1}else t=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;t=t%this._diffs.length,this._diffEditor.setPosition(new j.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 h=parseInt(a.getAttribute("data-line"),10);isNaN(h)||(t=h)}this.hide(),t!==-1&&(this._diffEditor.setPosition(new j.a(t,1)),this._diffEditor.revealPosition(new j.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,h){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(h),this._content.setHeight(h),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(),h=this._diffEditor.getModifiedEditor().getModel();return!a||!h?[]:r._mergeAdjacent(t,a.getLineCount(),h.getLineCount())},r._mergeAdjacent=function(t,a,h){if(!t||t.length===0)return[];for(var v=[],V=0,be=0,Ae=t.length;be<Ae;be++){var Ne=t[be],ot=Ne.originalStartLineNumber,dt=Ne.originalEndLineNumber,bt=Ne.modifiedStartLineNumber,mt=Ne.modifiedEndLineNumber,$t=[],Kt=0;{var Wt=dt===0?ot:ot-1,Bt=mt===0?bt:bt-1,rn=1,cn=1;if(be>0){var wn=t[be-1];wn.originalEndLineNumber===0?rn=wn.originalStartLineNumber+1:rn=wn.originalEndLineNumber+1,wn.modifiedEndLineNumber===0?cn=wn.modifiedStartLineNumber+1:cn=wn.modifiedEndLineNumber+1}var En=Wt-Ao+1,Fn=Bt-Ao+1;if(En<rn){var Wn=rn-En;En=En+Wn,Fn=Fn+Wn}if(Fn<cn){var Wn=cn-Fn;En=En+Wn,Fn=Fn+Wn}$t[Kt++]=new oo(En,Wt,Fn,Bt)}dt!==0&&($t[Kt++]=new oo(ot,dt,0,0)),mt!==0&&($t[Kt++]=new oo(0,0,bt,mt));{var jn=dt===0?ot+1:dt+1,ei=mt===0?bt+1:mt+1,zn=a,vn=h;if(be+1<Ae){var ni=t[be+1];ni.originalEndLineNumber===0?zn=ni.originalStartLineNumber:zn=ni.originalStartLineNumber-1,ni.modifiedEndLineNumber===0?vn=ni.modifiedStartLineNumber:vn=ni.modifiedStartLineNumber-1}var $n=jn+Ao-1,pi=ei+Ao-1;if($n>zn){var Wn=zn-$n;$n=$n+Wn,pi=pi+Wn}if(pi>vn){var Wn=vn-pi;$n=$n+Wn,pi=pi+Wn}$t[Kt++]=new oo(jn,$n,ei,pi)}v[V++]=new Ko($t)}for(var xi=v[0].entries,Or=[],yr=0,be=1,Ae=v.length;be<Ae;be++){var Rr=v[be].entries,So=xi[xi.length-1],Ds=Rr[0];if(So.getType()===0&&Ds.getType()===0&&Ds.originalLineStart<=So.originalLineEnd){xi[xi.length-1]=new oo(So.originalLineStart,Ds.originalLineEnd,So.modifiedLineStart,Ds.modifiedLineEnd),xi=xi.concat(Rr.slice(1));continue}Or[yr++]=new Ko(xi),xi=Rr}return Or[yr++]=new Ko(xi),Or},r.prototype._findDiffIndex=function(t){for(var a=t.lineNumber,h=0,v=this._diffs.length;h<v;h++){var V=this._diffs[h].entries,be=V[V.length-1].modifiedLineEnd;if(a<=be)return h}return 0},r.prototype._render=function(){var t=this._diffEditor.getOriginalEditor().getOptions(),a=this._diffEditor.getModifiedEditor().getOptions(),h=this._diffEditor.getOriginalEditor().getModel(),v=this._diffEditor.getModifiedEditor().getModel(),V=h.getOptions(),be=v.getOptions();if(!this._isVisible||!h||!v){Xe.s(this._content.domNode),this._currentDiff=null,this.scrollbar.scanDomNode();return}var Ae=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[Ae]===this._currentDiff)return;this._currentDiff=this._diffs[Ae];var Ne=this._diffs[Ae].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,bt=0,mt=0,$t=0,Kt=0,Wt=Ne.length;Kt<Wt;Kt++){var Bt=Ne[Kt],rn=Bt.originalLineStart,cn=Bt.originalLineEnd,wn=Bt.modifiedLineStart,En=Bt.modifiedLineEnd;rn!==0&&(dt===0||rn<dt)&&(dt=rn),cn!==0&&(bt===0||cn>bt)&&(bt=cn),wn!==0&&(mt===0||wn<mt)&&(mt=wn),En!==0&&($t===0||En>$t)&&($t=En)}var Fn=document.createElement("div");Fn.className="diff-review-row";var Wn=document.createElement("div");Wn.className="diff-review-cell diff-review-summary";var jn=bt-dt+1,ei=$t-mt+1;Wn.appendChild(document.createTextNode(Ae+1+"/"+this._diffs.length+": @@ -"+dt+","+jn+" +"+mt+","+ei+" @@")),Fn.setAttribute("data-line",String(mt));var zn=function(xi){return xi===0?pn.a("no_lines","no lines"):xi===1?pn.a("one_line","1 line"):pn.a("more_lines","{0} lines",xi)},vn=zn(jn),ni=zn(ei);Fn.setAttribute("aria-label",pn.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}",Ae+1,this._diffs.length,dt,vn,mt,ni)),Fn.appendChild(Wn),Fn.setAttribute("role","listitem"),ot.appendChild(Fn);for(var $n=mt,Kt=0,Wt=Ne.length;Kt<Wt;Kt++){var Bt=Ne[Kt];r._renderSection(ot,Bt,$n,this._width,t,h,V,a,v,be),Bt.modifiedLineStart!==0&&($n=Bt.modifiedLineEnd)}Xe.s(this._content.domNode),this._content.domNode.appendChild(ot),this.scrollbar.scanDomNode()},r._renderSection=function(t,a,h,v,V,be,Ae,Ne,ot,dt){var bt=a.getType(),mt="diff-review-row",$t="",Kt="diff-review-spacer";switch(bt){case 1:mt="diff-review-row line-insert",$t=" char-insert",Kt="diff-review-spacer insert-sign";break;case 2:mt="diff-review-row line-delete",$t=" char-delete",Kt="diff-review-spacer delete-sign";break}for(var Wt=a.originalLineStart,Bt=a.originalLineEnd,rn=a.modifiedLineStart,cn=a.modifiedLineEnd,wn=Math.max(cn-rn,Bt-Wt),En=V.get(107),Fn=En.glyphMarginWidth+En.lineNumbersWidth,Wn=Ne.get(107),jn=10+Wn.glyphMarginWidth+Wn.lineNumbersWidth,ei=0;ei<=wn;ei++){var zn=Wt===0?0:Wt+ei,vn=rn===0?0:rn+ei,ni=document.createElement("div");ni.style.minWidth=v+"px",ni.className=mt,ni.setAttribute("role","listitem"),vn!==0&&(h=vn),ni.setAttribute("data-line",String(h));var $n=document.createElement("div");$n.className="diff-review-cell",ni.appendChild($n);var pi=document.createElement("span");pi.style.width=Fn+"px",pi.style.minWidth=Fn+"px",pi.className="diff-review-line-number"+$t,zn!==0?pi.appendChild(document.createTextNode(String(zn))):pi.innerHTML="&#160;",$n.appendChild(pi);var xi=document.createElement("span");xi.style.width=jn+"px",xi.style.minWidth=jn+"px",xi.style.paddingRight="10px",xi.className="diff-review-line-number"+$t,vn!==0?xi.appendChild(document.createTextNode(String(vn))):xi.innerHTML="&#160;",$n.appendChild(xi);var Or=document.createElement("span");Or.className=Kt,Or.innerHTML="&#160;&#160;",$n.appendChild(Or);var yr=void 0;vn!==0?($n.insertAdjacentHTML("beforeend",this._renderLine(ot,Ne,dt.tabSize,vn)),yr=ot.getLineContent(vn)):($n.insertAdjacentHTML("beforeend",this._renderLine(be,V,Ae.tabSize,zn)),yr=be.getLineContent(zn)),yr.length===0&&(yr=pn.a("blankLine","blank"));var Rr="";switch(bt){case 0:Rr=pn.a("equalLine","original {0}, modified {1}: {2}",zn,vn,yr);break;case 1:Rr=pn.a("insertLine","+ modified {0}: {1}",vn,yr);break;case 2:Rr=pn.a("deleteLine","- original {0}: {1}",zn,yr);break}ni.setAttribute("aria-label",Rr),t.appendChild(ni)}},r._renderLine=function(t,a,h,v){var V=t.getLineContent(v),be=a.get(34),Ae=(0<<11|1<<14|2<<23)>>>0,Ne=new Uint32Array(2);Ne[0]=V.length,Ne[1]=Ae;var ot=new Oe.a(Ne,V),dt=Je.d.isBasicASCII(V,t.mightContainNonBasicASCII()),bt=Je.d.containsRTL(V,dt,t.mightContainRTL()),mt=Object(it.e)(new it.c(be.isMonospace&&!a.get(23),be.canUseHalfwidthRightwardsArrow,V,!1,dt,bt,0,ot,[],h,0,be.spaceWidth,be.middotWidth,a.get(88),a.get(74),a.get(69),a.get(35)!==I.d.OFF,null));return mt.html},r}(zt.a);Object(Fi.e)(function(s,r){var t=s.getColor(br.j);t&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+t+"; }");var a=s.getColor(wi.Tb);a&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+a+" 0 -6px 6px -6px inset; }")});var so=function(s){xo(r,s);function r(){return s.call(this,{id:"editor.action.diffReview.next",label:pn.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Ei.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(t,a){var h=wr(t);h&&h.diffReviewNext()},r}(nr.b),Cr=function(s){xo(r,s);function r(){return s.call(this,{id:"editor.action.diffReview.prev",label:pn.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Ei.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(t,a){var h=wr(t);h&&h.diffReviewPrev()},r}(nr.b);function wr(s){for(var r=s.get(Ke.a),t=r.listDiffEditors(),a=0,h=t.length;a<h;a++){var v=t[a];if(v.hasWidgetFocus())return v}return null}Object(nr.f)(so),Object(nr.f)(Cr);var vs=o("erNZ"),hr=o("tX9W"),ao=o("MvK1"),Ws=o("dBaI"),Wr=o("8HsV"),Er=o("Uzvx"),Bs=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),fr=function(s,r,t,a){function h(v){return v instanceof t?v:new t(function(V){V(v)})}return new(t||(t=Promise))(function(v,V){function be(ot){try{Ne(a.next(ot))}catch(dt){V(dt)}}function Ae(ot){try{Ne(a.throw(ot))}catch(dt){V(dt)}}function Ne(ot){ot.done?v(ot.value):h(ot.value).then(be,Ae)}Ne((a=a.apply(s,r||[])).next())})},lo=function(s,r){var t={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},a,h,v,V;return V={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function be(Ne){return function(ot){return Ae([Ne,ot])}}function Ae(Ne){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,h&&(v=Ne[0]&2?h.return:Ne[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,Ne[1])).done)return v;(h=0,v)&&(Ne=[Ne[0]&2,v.value]);switch(Ne[0]){case 0:case 1:v=Ne;break;case 4:return t.label++,{value:Ne[1],done:!1};case 5:t.label++,h=Ne[1],Ne=[0];continue;case 7:Ne=t.ops.pop(),t.trys.pop();continue;default:if(!(v=t.trys,v=v.length>0&&v[v.length-1])&&(Ne[0]===6||Ne[0]===2)){t=0;continue}if(Ne[0]===3&&(!v||Ne[1]>v[0]&&Ne[1]<v[3])){t.label=Ne[1];break}if(Ne[0]===6&&t.label<v[1]){t.label=v[1],v=Ne;break}if(v&&t.label<v[2]){t.label=v[2],t.ops.push(Ne);break}v[2]&&t.ops.pop(),t.trys.pop();continue}Ne=r.call(s,t)}catch(ot){Ne=[6,ot],h=0}finally{a=v=0}if(Ne[0]&5)throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}},Us=function(s){Bs(r,s);function r(t,a,h,v,V,be){var Ae=s.call(this)||this;Ae._viewZoneId=t,Ae._marginDomNode=a,Ae.editor=h,Ae.diff=v,Ae._contextMenuService=V,Ae._clipboardService=be,Ae._visibility=!1,Ae._marginDomNode.style.zIndex="10",Ae._diffActions=document.createElement("div"),Ae._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",Ae._diffActions.style.position="absolute";var Ne=h.getOption(49),ot=h.getModel().getEOL();Ae._diffActions.style.right="0px",Ae._diffActions.style.visibility="hidden",Ae._diffActions.style.height=Ne+"px",Ae._diffActions.style.lineHeight=Ne+"px",Ae._marginDomNode.appendChild(Ae._diffActions);var dt=[];dt.push(new ro.a("diff.clipboard.copyDeletedContent",v.originalEndLineNumber>v.modifiedStartLineNumber?pn.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):pn.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return fr(Ae,void 0,void 0,function(){return lo(this,function(Wt){switch(Wt.label){case 0:return[4,this._clipboardService.writeText(v.originalContent.join(ot)+ot)];case 1:return Wt.sent(),[2]}})})}));var bt=0,mt=void 0;v.originalEndLineNumber>v.modifiedStartLineNumber&&(mt=new ro.a("diff.clipboard.copyDeletedLineContent",pn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",v.originalStartLineNumber),void 0,!0,function(){return fr(Ae,void 0,void 0,function(){return lo(this,function(Wt){switch(Wt.label){case 0:return[4,this._clipboardService.writeText(v.originalContent[bt])];case 1:return Wt.sent(),[2]}})})}),dt.push(mt));var $t=h.getOption(68);$t||dt.push(new ro.a("diff.inline.revertChange",pn.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return fr(Ae,void 0,void 0,function(){var Wt,Wt;return lo(this,function(Bt){return v.modifiedEndLineNumber===0?(Wt=h.getModel().getLineMaxColumn(v.modifiedStartLineNumber),h.executeEdits("diffEditor",[{range:new G.a(v.modifiedStartLineNumber,Wt,v.modifiedStartLineNumber,Wt),text:ot+v.originalContent.join(ot)}])):(Wt=h.getModel().getLineMaxColumn(v.modifiedEndLineNumber),h.executeEdits("diffEditor",[{range:new G.a(v.modifiedStartLineNumber,1,v.modifiedEndLineNumber,Wt),text:v.originalContent.join(ot)}])),[2]})})}));var Kt=function(Bt,rn){Ae._contextMenuService.showContextMenu({getAnchor:function(){return{x:Bt,y:rn}},getActions:function(){return mt&&(mt.label=pn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",v.originalStartLineNumber+bt)),dt},autoSelectFirstItem:!0})};return Ae._register(Xe.n(Ae._diffActions,"mousedown",function(Wt){var Bt=Xe.B(Ae._diffActions),rn=Bt.top,cn=Bt.height,wn=Math.floor(Ne/3);Wt.preventDefault(),Kt(Wt.posx,rn+cn+wn)})),Ae._register(h.onMouseMove(function(Wt){if(Wt.target.type===8||Wt.target.type===5){var Bt=Wt.target.detail.viewZoneId;Bt===Ae._viewZoneId?(Ae.visibility=!0,bt=Ae._updateLightBulbPosition(Ae._marginDomNode,Wt.event.browserEvent.y,Ne)):Ae.visibility=!1}else Ae.visibility=!1})),Ae._register(h.onMouseDown(function(Wt){if(!Wt.event.rightButton)return;if(Wt.target.type===8||Wt.target.type===5){var Bt=Wt.target.detail.viewZoneId;Bt===Ae._viewZoneId&&(Wt.event.preventDefault(),bt=Ae._updateLightBulbPosition(Ae._marginDomNode,Wt.event.browserEvent.y,Ne),Kt(Wt.event.posx,Wt.event.posy+Ne))}})),Ae}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,h){var v=Xe.B(t).top,V=a-v,be=Math.floor(V/h),Ae=be*h;return this._diffActions.style.top=Ae+"px",be},r}(zt.a),bo=o("tTk5"),Vs=o("o39E"),Lr=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),Hs=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},Br=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 h=0,v=t._zones.length;h<v;h++)a.removeZone(t._zones[h])}),this._zones=[],this._zonesMap={},this._decorations=r.deltaDecorations(this._decorations,[])},s.prototype.apply=function(r,t,a,h){var v=this,V=h?js.c.capture(r):null;r.changeViewZones(function(be){for(var Ae=0,Ne=v._zones.length;Ae<Ne;Ae++)be.removeZone(v._zones[Ae]);for(var Ae=0,ot=v.inlineDiffMargins.length;Ae<ot;Ae++)v.inlineDiffMargins[Ae].dispose();v._zones=[],v._zonesMap={},v.inlineDiffMargins=[];for(var Ae=0,dt=a.zones.length;Ae<dt;Ae++){var bt=a.zones[Ae];bt.suppressMouseDown=!0;var mt=be.addZone(bt);v._zones.push(mt),v._zonesMap[String(mt)]=!0,a.zones[Ae].diff&&bt.marginDomNode&&v._clipboardService&&(bt.suppressMouseDown=!1,v.inlineDiffMargins.push(new Us(mt,bt.marginDomNode,r,a.zones[Ae].diff,v._contextMenuService,v._clipboardService)))}}),V&&V.restore(r),this._decorations=r.deltaDecorations(this._decorations,a.decorations),t&&t.setZones(a.overviewZones)},s}(),bs=0,Go=function(s){Lr(r,s);function r(t,a,h,v,V,be,Ae,Ne,ot,dt,bt){var mt=s.call(this)||this;mt._editorProgressService=bt,mt._onDidDispose=mt._register(new N.a),mt.onDidDispose=mt._onDidDispose.event,mt._onDidUpdateDiff=mt._register(new N.a),mt.onDidUpdateDiff=mt._onDidUpdateDiff.event,mt._lastOriginalWarning=null,mt._lastModifiedWarning=null,mt._editorWorkerService=v,mt._codeEditorService=Ae,mt._contextKeyService=mt._register(V.createScoped(t)),mt._contextKeyService.createKey("isInDiffEditor",!0),mt._themeService=Ne,mt._notificationService=ot,mt.id=++bs,mt._state=0,mt._updatingDiffProgress=null,mt._domElement=t,a=a||{},mt._renderSideBySide=!0,typeof a.renderSideBySide!="undefined"&&(mt._renderSideBySide=a.renderSideBySide),mt._maxComputationTime=5e3,typeof a.maxComputationTime!="undefined"&&(mt._maxComputationTime=a.maxComputationTime),mt._ignoreTrimWhitespace=!0,typeof a.ignoreTrimWhitespace!="undefined"&&(mt._ignoreTrimWhitespace=a.ignoreTrimWhitespace),mt._renderIndicators=!0,typeof a.renderIndicators!="undefined"&&(mt._renderIndicators=a.renderIndicators),mt._originalIsEditable=!1,typeof a.originalEditable!="undefined"&&(mt._originalIsEditable=Boolean(a.originalEditable)),mt._updateDecorationsRunner=mt._register(new Jt.d(function(){return mt._updateDecorations()},0)),mt._containerDomElement=document.createElement("div"),mt._containerDomElement.className=r._getClassName(mt._themeService.getTheme(),mt._renderSideBySide),mt._containerDomElement.style.position="relative",mt._containerDomElement.style.height="100%",mt._domElement.appendChild(mt._containerDomElement),mt._overviewViewportDomElement=Object(no.b)(document.createElement("div")),mt._overviewViewportDomElement.setClassName("diffViewport"),mt._overviewViewportDomElement.setPosition("absolute"),mt._overviewDomElement=document.createElement("div"),mt._overviewDomElement.className="diffOverview",mt._overviewDomElement.style.position="absolute",mt._overviewDomElement.appendChild(mt._overviewViewportDomElement.domNode),mt._register(Xe.n(mt._overviewDomElement,"mousedown",function(jn){mt.modifiedEditor.delegateVerticalScrollbarMouseDown(jn)})),mt._containerDomElement.appendChild(mt._overviewDomElement),mt._originalDomNode=document.createElement("div"),mt._originalDomNode.className="editor original",mt._originalDomNode.style.position="absolute",mt._originalDomNode.style.height="100%",mt._containerDomElement.appendChild(mt._originalDomNode),mt._modifiedDomNode=document.createElement("div"),mt._modifiedDomNode.className="editor modified",mt._modifiedDomNode.style.position="absolute",mt._modifiedDomNode.style.height="100%",mt._containerDomElement.appendChild(mt._modifiedDomNode),mt._beginUpdateDecorationsTimeout=-1,mt._currentlyChangingViewZones=!1,mt._diffComputationToken=0,mt._originalEditorState=new ys(dt,h),mt._modifiedEditorState=new ys(dt,h),mt._isVisible=!0,mt._isHandlingScrollEvent=!1,mt._elementSizeObserver=mt._register(new Vs.a(mt._containerDomElement,void 0,function(){return mt._onDidContainerSizeChanged()})),a.automaticLayout&&mt._elementSizeObserver.startObserving(),mt._diffComputationResult=null;var $t=mt._contextKeyService.createScoped();$t.createKey("isInDiffLeftEditor",!0);var Kt=new Wr.a;Kt.set(Ei.c,$t);var Wt=be.createChild(Kt),Bt=mt._contextKeyService.createScoped();Bt.createKey("isInDiffRightEditor",!0);var rn=new Wr.a;rn.set(Ei.c,Bt);var cn=be.createChild(rn);mt.originalEditor=mt._createLeftHandSideEditor(a,Wt),mt.modifiedEditor=mt._createRightHandSideEditor(a,cn),mt._originalOverviewRuler=null,mt._modifiedOverviewRuler=null,mt._reviewPane=new No(mt),mt._containerDomElement.appendChild(mt._reviewPane.domNode.domNode),mt._containerDomElement.appendChild(mt._reviewPane.shadow.domNode),mt._containerDomElement.appendChild(mt._reviewPane.actionBarContainer.domNode),mt._enableSplitViewResizing=!0,typeof a.enableSplitViewResizing!="undefined"&&(mt._enableSplitViewResizing=a.enableSplitViewResizing),mt._renderSideBySide?mt._setStrategy(new $r(mt._createDataSource(),mt._enableSplitViewResizing)):mt._setStrategy(new xr(mt._createDataSource(),mt._enableSplitViewResizing)),mt._register(Ne.onThemeChange(function(jn){mt._strategy&&mt._strategy.applyColors(jn)&&mt._updateDecorationsRunner.schedule(),mt._containerDomElement.className=r._getClassName(mt._themeService.getTheme(),mt._renderSideBySide)}));for(var wn=nr.d.getDiffEditorContributions(),En=0,Fn=wn;En<Fn.length;En++){var Wn=Fn[En];try{mt._register(be.createInstance(Wn.ctor,mt))}catch(jn){Object(nn.e)(jn)}}return mt._codeEditorService.addDiffEditor(mt),mt}return r.prototype._setState=function(t){if(this._state===t)return;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 Xe.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 h="monaco-diff-editor monaco-editor-background ";return a&&(h+="side-by-side "),h+=Object(Fi.d)(t.type),h},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 h=this,v=this._createInnerEditor(a,this._originalDomNode,this._adjustOptionsForLeftHandSide(t,this._originalIsEditable));return this._register(v.onDidScrollChange(function(V){if(h._isHandlingScrollEvent)return;if(!V.scrollTopChanged&&!V.scrollLeftChanged&&!V.scrollHeightChanged)return;h._isHandlingScrollEvent=!0,h.modifiedEditor.setScrollPosition({scrollLeft:V.scrollLeft,scrollTop:V.scrollTop}),h._isHandlingScrollEvent=!1,h._layoutOverviewViewport()})),this._register(v.onDidChangeViewZones(function(){h._onViewZonesChanged()})),this._register(v.onDidChangeModelContent(function(){h._isVisible&&h._beginUpdateDecorationsSoon()})),v},r.prototype._createRightHandSideEditor=function(t,a){var h=this,v=this._createInnerEditor(a,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t));return this._register(v.onDidScrollChange(function(V){if(h._isHandlingScrollEvent)return;if(!V.scrollTopChanged&&!V.scrollLeftChanged&&!V.scrollHeightChanged)return;h._isHandlingScrollEvent=!0,h.originalEditor.setScrollPosition({scrollLeft:V.scrollLeft,scrollTop:V.scrollTop}),h._isHandlingScrollEvent=!1,h._layoutOverviewViewport()})),this._register(v.onDidChangeViewZones(function(){h._onViewZonesChanged()})),this._register(v.onDidChangeConfiguration(function(V){V.hasChanged(34)&&v.getModel()&&h._onViewZonesChanged()})),this._register(v.onDidChangeModelContent(function(){h._isVisible&&h._beginUpdateDecorationsSoon()})),this._register(v.onDidChangeModelOptions(function(V){V.tabSize&&h._updateDecorationsRunner.schedule()})),v},r.prototype._createInnerEditor=function(t,a,h){return t.createInstance(To.a,a,h,{})},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 kt.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 h=!1;typeof t.ignoreTrimWhitespace!="undefined"&&(this._ignoreTrimWhitespace!==t.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=t.ignoreTrimWhitespace,h=!0)),typeof t.renderIndicators!="undefined"&&(this._renderIndicators!==t.renderIndicators&&(this._renderIndicators=t.renderIndicators,h=!0)),h&&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 $r(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new xr(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,h){h===void 0&&(h=0),this.modifiedEditor.revealLines(t,a,h)},r.prototype.revealLinesInCenter=function(t,a,h){h===void 0&&(h=0),this.modifiedEditor.revealLinesInCenter(t,a,h)},r.prototype.revealLinesInCenterIfOutsideViewport=function(t,a,h){h===void 0&&(h=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(t,a,h)},r.prototype.revealRange=function(t,a,h,v){a===void 0&&(a=0),h===void 0&&(h=!1),v===void 0&&(v=!0),this.modifiedEditor.revealRange(t,a,h,v)},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,h){this.modifiedEditor.trigger(t,a,h)},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)return;var t=this._elementSizeObserver.getHeight(),a=this._getReviewHeight(),h=r.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r.ONE_OVERVIEW_WIDTH,v=this.modifiedEditor.getLayoutInfo();v&&(this._originalOverviewRuler.setLayout({top:0,width:r.ONE_OVERVIEW_WIDTH,right:h+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(){if(this._currentlyChangingViewZones)return;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(),h=this.modifiedEditor.getModel();if(!a||!h)return;this._diffComputationToken++;var v=this._diffComputationToken;if(this._setState(1),!this._editorWorkerService.canComputeDiff(a.uri,h.uri)){(!r._equals(a.uri,this._lastOriginalWarning)||!r._equals(h.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=a.uri,this._lastModifiedWarning=h.uri,this._notificationService.warn(pn.a("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._editorWorkerService.computeDiff(a.uri,h.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(function(V){v===t._diffComputationToken&&a===t.originalEditor.getModel()&&h===t.modifiedEditor.getModel()&&(t._setState(2),t._diffComputationResult=V,t._updateDecorationsRunner.schedule(),t._onDidUpdateDiff.fire())},function(V){v===t._diffComputationToken&&a===t.originalEditor.getModel()&&h===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)return;var t=this._diffComputationResult?this._diffComputationResult.changes:[],a=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),h=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),v=this._strategy.getEditorsDiffDecorations(t,this._ignoreTrimWhitespace,this._renderIndicators,a,h,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,v.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,v.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 h=this._adjustOptionsForSubEditor(t);return h.readOnly=!a,h.extraEditorClassName="original-in-monaco-diff-editor",h},r.prototype._adjustOptionsForRightHandSide=function(t){var a=this._adjustOptionsForSubEditor(t);return a.revealHorizontalRightPadding=I.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(),h=this._getReviewHeight(),v=this._strategy.layout();this._originalDomNode.style.width=v+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-v+"px",this._modifiedDomNode.style.left=v+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=a-h+"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:v,height:a-h}),this.modifiedEditor.layout({width:t-v-r.ENTIRE_DIFF_OVERVIEW_WIDTH,height:a-h}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(a-h,t,h),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(),h=this.modifiedEditor.getScrollHeight(),v=Math.max(0,t.height),V=Math.max(0,v-2*0),be=h>0?V/h:0,Ae=Math.max(0,Math.floor(t.height*be)),Ne=Math.floor(a*be);return{height:Ae,top:Ne}},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 h=this._diffComputationResult?this._diffComputationResult.changes:[];if(h.length===0||t<a(h[0]))return null;for(var v=0,V=h.length-1;v<V;){var be=Math.floor((v+V)/2),Ae=a(h[be]),Ne=be+1<=V?a(h[be+1]):1073741824;t<Ae?V=be-1:t>=Ne?v=be+1:(v=be,V=be)}return h[v]},r.prototype._getEquivalentLineForOriginalLineNumber=function(t){var a=this._getLineChangeAtOrBeforeLineNumber(t,function(Ne){return Ne.originalStartLineNumber});if(!a)return t;var h=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),v=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),V=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,be=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Ae=t-h;return Ae<=V?v+Math.min(Ae,be):v+be-V+Ae},r.prototype._getEquivalentLineForModifiedLineNumber=function(t){var a=this._getLineChangeAtOrBeforeLineNumber(t,function(Ne){return Ne.modifiedStartLineNumber});if(!a)return t;var h=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),v=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),V=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,be=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Ae=t-v;return Ae<=be?h+Math.min(Ae,V):h+V-be+Ae},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=Hs([Br(3,Lt.a),Br(4,Ei.c),Br(5,Yt.a),Br(6,Ke.a),Br(7,Fi.c),Br(8,Sr.a),Br(9,Er.a),Br(10,bo.a)],r),r}(zt.a),Ur=function(s){Lr(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(wi.j)||wi.g).transparent(2),h=(t.getColor(wi.l)||wi.h).transparent(2),v=!a.equals(this._insertColor)||!h.equals(this._removeColor);return this._insertColor=a,this._removeColor=h,v},r.prototype.getEditorsDiffDecorations=function(t,a,h,v,V,be,Ae){V=V.sort(function(bt,mt){return bt.afterLineNumber-mt.afterLineNumber}),v=v.sort(function(bt,mt){return bt.afterLineNumber-mt.afterLineNumber});var Ne=this._getViewZones(t,v,V,be,Ae,h),ot=this._getOriginalEditorDecorations(t,a,h,be,Ae),dt=this._getModifiedEditorDecorations(t,a,h,be,Ae);return{original:{decorations:ot.decorations,overviewZones:ot.overviewZones,zones:Ne.original},modified:{decorations:dt.decorations,overviewZones:dt.overviewZones,zones:Ne.modified}}},r}(zt.a),Cs=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}(),Zr=function(){function s(r,t,a,h,v){this.lineChanges=r,this.originalForeignVZ=t,this.originalLineHeight=a,this.modifiedForeignVZ=h,this.modifiedLineHeight=v}return s.prototype.getViewZones=function(){for(var r={original:[],modified:[]},t=0,a=0,h=0,v=0,V=0,be=0,Ae=function(vn,ni){return vn.afterLineNumber-ni.afterLineNumber},Ne=function(vn,ni){if(ni.domNode===null&&vn.length>0){var $n=vn[vn.length-1];if($n.afterLineNumber===ni.afterLineNumber&&$n.domNode===null){$n.heightInLines+=ni.heightInLines;return}}vn.push(ni)},ot=new Cs(this.modifiedForeignVZ),dt=new Cs(this.originalForeignVZ),bt=0,mt=this.lineChanges.length;bt<=mt;bt++){var $t=bt<mt?this.lineChanges[bt]:null;$t!==null?(h=$t.originalStartLineNumber+($t.originalEndLineNumber>0?-1:0),v=$t.modifiedStartLineNumber+($t.modifiedEndLineNumber>0?-1:0),a=$t.originalEndLineNumber>0?$t.originalEndLineNumber-$t.originalStartLineNumber+1:0,t=$t.modifiedEndLineNumber>0?$t.modifiedEndLineNumber-$t.modifiedStartLineNumber+1:0,V=Math.max($t.originalStartLineNumber,$t.originalEndLineNumber),be=Math.max($t.modifiedStartLineNumber,$t.modifiedEndLineNumber)):(h+=1e7+a,v+=1e7+t,V=h,be=v);for(var Kt=[],Wt=[];ot.current&&ot.current.afterLineNumber<=be;){var Bt=void 0;ot.current.afterLineNumber<=v?Bt=h-v+ot.current.afterLineNumber:Bt=V;var rn=null;$t&&$t.modifiedStartLineNumber<=ot.current.afterLineNumber&&ot.current.afterLineNumber<=$t.modifiedEndLineNumber&&(rn=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),Kt.push({afterLineNumber:Bt,heightInLines:ot.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:rn}),ot.advance()}for(;dt.current&&dt.current.afterLineNumber<=V;){var Bt=void 0;dt.current.afterLineNumber<=h?Bt=v-h+dt.current.afterLineNumber:Bt=be,Wt.push({afterLineNumber:Bt,heightInLines:dt.current.height/this.originalLineHeight,domNode:null}),dt.advance()}if($t!==null&&Qr($t)){var cn=this._produceOriginalFromDiff($t,a,t);cn&&Kt.push(cn)}if($t!==null&&Dr($t)){var cn=this._produceModifiedFromDiff($t,a,t);cn&&Wt.push(cn)}var wn=0,En=0;for(Kt=Kt.sort(Ae),Wt=Wt.sort(Ae);wn<Kt.length&&En<Wt.length;){var Fn=Kt[wn],Wn=Wt[En],jn=Fn.afterLineNumber-h,ei=Wn.afterLineNumber-v;jn<ei?(Ne(r.original,Fn),wn++):ei<jn?(Ne(r.modified,Wn),En++):Fn.shouldNotShrink?(Ne(r.original,Fn),wn++):Wn.shouldNotShrink?(Ne(r.modified,Wn),En++):Fn.heightInLines>=Wn.heightInLines?(Fn.heightInLines-=Wn.heightInLines,En++):(Wn.heightInLines-=Fn.heightInLines,wn++)}for(;wn<Kt.length;)Ne(r.original,Kt[wn]),wn++;for(;En<Wt.length;)Ne(r.modified,Wt[En]),En++}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=Zo()),t})},s}();function Tr(s,r,t,a,h){return{range:new G.a(s,r,t,a),options:h}}var Yi={charDelete:hr.a.register({className:"char-delete"}),charDeleteWholeLine:hr.a.register({className:"char-delete",isWholeLine:!0}),charInsert:hr.a.register({className:"char-insert"}),charInsertWholeLine:hr.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:hr.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:hr.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:hr.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:hr.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:hr.a.register({marginClassName:"line-delete"})},$r=function(s){Lr(r,s);function r(t,a){var h=s.call(this,t)||this;return h._disableSash=a===!1,h._sashRatio=null,h._sashPosition=null,h._startSashPosition=null,h._sash=h._register(new Fs.a(h._dataSource.getContainerDomNode(),h)),h._disableSash&&(h._sash.state=0),h._sash.onDidStart(function(){return h.onSashDragStart()}),h._sash.onDidChange(function(v){return h.onSashDrag(v)}),h._sash.onDidEnd(function(){return h.onSashDragEnd()}),h._sash.onDidReset(function(){return h.onSashReset()}),h}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(),h=a-Go.ENTIRE_DIFF_OVERVIEW_WIDTH,v=Math.floor((t||.5)*h),V=Math.floor(.5*h);return v=this._disableSash?V:v||V,h>r.MINIMUM_EDITOR_WIDTH*2?(v<r.MINIMUM_EDITOR_WIDTH&&(v=r.MINIMUM_EDITOR_WIDTH),v>h-r.MINIMUM_EDITOR_WIDTH&&(v=h-r.MINIMUM_EDITOR_WIDTH)):v=V,this._sashPosition!==v&&(this._sashPosition=v,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(t){var a=this._dataSource.getWidth(),h=a-Go.ENTIRE_DIFF_OVERVIEW_WIDTH,v=this.layout((this._startSashPosition+(t.currentX-t.startX))/h);this._sashRatio=v/h,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,h,v,V){var be=new Xo(t,a,v.getOption(49),h,V.getOption(49));return be.getViewZones()},r.prototype._getOriginalEditorDecorations=function(t,a,h,v,V){for(var be=String(this._removeColor),Ae={decorations:[],overviewZones:[]},Ne=v.getModel(),ot=0,dt=t.length;ot<dt;ot++){var bt=t[ot];if(Dr(bt)&&(Ae.decorations.push({range:new G.a(bt.originalStartLineNumber,1,bt.originalEndLineNumber,1073741824),options:h?Yi.lineDeleteWithSign:Yi.lineDelete}),(!Qr(bt)||!bt.charChanges)&&Ae.decorations.push(Tr(bt.originalStartLineNumber,1,bt.originalEndLineNumber,1073741824,Yi.charDeleteWholeLine)),Ae.overviewZones.push(new ao.a(bt.originalStartLineNumber,bt.originalEndLineNumber,be)),bt.charChanges))for(var mt=0,$t=bt.charChanges.length;mt<$t;mt++){var Kt=bt.charChanges[mt];if(Dr(Kt))if(a)for(var Wt=Kt.originalStartLineNumber;Wt<=Kt.originalEndLineNumber;Wt++){var Bt=void 0,rn=void 0;Wt===Kt.originalStartLineNumber?Bt=Kt.originalStartColumn:Bt=Ne.getLineFirstNonWhitespaceColumn(Wt),Wt===Kt.originalEndLineNumber?rn=Kt.originalEndColumn:rn=Ne.getLineLastNonWhitespaceColumn(Wt),Ae.decorations.push(Tr(Wt,Bt,Wt,rn,Yi.charDelete))}else Ae.decorations.push(Tr(Kt.originalStartLineNumber,Kt.originalStartColumn,Kt.originalEndLineNumber,Kt.originalEndColumn,Yi.charDelete))}}return Ae},r.prototype._getModifiedEditorDecorations=function(t,a,h,v,V){for(var be=String(this._insertColor),Ae={decorations:[],overviewZones:[]},Ne=V.getModel(),ot=0,dt=t.length;ot<dt;ot++){var bt=t[ot];if(Qr(bt)&&(Ae.decorations.push({range:new G.a(bt.modifiedStartLineNumber,1,bt.modifiedEndLineNumber,1073741824),options:h?Yi.lineInsertWithSign:Yi.lineInsert}),(!Dr(bt)||!bt.charChanges)&&Ae.decorations.push(Tr(bt.modifiedStartLineNumber,1,bt.modifiedEndLineNumber,1073741824,Yi.charInsertWholeLine)),Ae.overviewZones.push(new ao.a(bt.modifiedStartLineNumber,bt.modifiedEndLineNumber,be)),bt.charChanges))for(var mt=0,$t=bt.charChanges.length;mt<$t;mt++){var Kt=bt.charChanges[mt];if(Qr(Kt))if(a)for(var Wt=Kt.modifiedStartLineNumber;Wt<=Kt.modifiedEndLineNumber;Wt++){var Bt=void 0,rn=void 0;Wt===Kt.modifiedStartLineNumber?Bt=Kt.modifiedStartColumn:Bt=Ne.getLineFirstNonWhitespaceColumn(Wt),Wt===Kt.modifiedEndLineNumber?rn=Kt.modifiedEndColumn:rn=Ne.getLineLastNonWhitespaceColumn(Wt),Ae.decorations.push(Tr(Wt,Bt,Wt,rn,Yi.charInsert))}else Ae.decorations.push(Tr(Kt.modifiedStartLineNumber,Kt.modifiedStartColumn,Kt.modifiedEndLineNumber,Kt.modifiedEndColumn,Yi.charInsert))}}return Ae},r.MINIMUM_EDITOR_WIDTH=100,r}(Ur),Xo=function(s){Lr(r,s);function r(t,a,h,v,V){return s.call(this,t,a,h,v,V)||this}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},r.prototype._produceOriginalFromDiff=function(t,a,h){return h>a?{afterLineNumber:Math.max(t.originalStartLineNumber,t.originalEndLineNumber),heightInLines:h-a,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(t,a,h){return a>h?{afterLineNumber:Math.max(t.modifiedStartLineNumber,t.modifiedEndLineNumber),heightInLines:a-h,domNode:null}:null},r}(Zr),xr=function(s){Lr(r,s);function r(t,a){var h=s.call(this,t)||this;return h.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,h._register(t.getOriginalEditor().onDidLayoutChange(function(v){h.decorationsLeft!==v.decorationsLeft&&(h.decorationsLeft=v.decorationsLeft,t.relayoutEditors())})),h}return r.prototype.setEnableSplitViewResizing=function(t){},r.prototype._getViewZones=function(t,a,h,v,V,be){var Ae=new Yo(t,a,h,v,V,be);return Ae.getViewZones()},r.prototype._getOriginalEditorDecorations=function(t,a,h,v,V){for(var be=String(this._removeColor),Ae={decorations:[],overviewZones:[]},Ne=0,ot=t.length;Ne<ot;Ne++){var dt=t[Ne];Dr(dt)&&(Ae.decorations.push({range:new G.a(dt.originalStartLineNumber,1,dt.originalEndLineNumber,1073741824),options:Yi.lineDeleteMargin}),Ae.overviewZones.push(new ao.a(dt.originalStartLineNumber,dt.originalEndLineNumber,be)))}return Ae},r.prototype._getModifiedEditorDecorations=function(t,a,h,v,V){for(var be=String(this._insertColor),Ae={decorations:[],overviewZones:[]},Ne=V.getModel(),ot=0,dt=t.length;ot<dt;ot++){var bt=t[ot];if(Qr(bt))if(Ae.decorations.push({range:new G.a(bt.modifiedStartLineNumber,1,bt.modifiedEndLineNumber,1073741824),options:h?Yi.lineInsertWithSign:Yi.lineInsert}),Ae.overviewZones.push(new ao.a(bt.modifiedStartLineNumber,bt.modifiedEndLineNumber,be)),bt.charChanges)for(var mt=0,$t=bt.charChanges.length;mt<$t;mt++){var Kt=bt.charChanges[mt];if(Qr(Kt))if(a)for(var Wt=Kt.modifiedStartLineNumber;Wt<=Kt.modifiedEndLineNumber;Wt++){var Bt=void 0,rn=void 0;Wt===Kt.modifiedStartLineNumber?Bt=Kt.modifiedStartColumn:Bt=Ne.getLineFirstNonWhitespaceColumn(Wt),Wt===Kt.modifiedEndLineNumber?rn=Kt.modifiedEndColumn:rn=Ne.getLineLastNonWhitespaceColumn(Wt),Ae.decorations.push(Tr(Wt,Bt,Wt,rn,Yi.charInsert))}else Ae.decorations.push(Tr(Kt.modifiedStartLineNumber,Kt.modifiedStartColumn,Kt.modifiedEndLineNumber,Kt.modifiedEndColumn,Yi.charInsert))}else Ae.decorations.push(Tr(bt.modifiedStartLineNumber,1,bt.modifiedEndLineNumber,1073741824,Yi.charInsertWholeLine))}return Ae},r.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},r}(Ur),Yo=function(s){Lr(r,s);function r(t,a,h,v,V,be){var Ae=s.call(this,t,a,v.getOption(49),h,V.getOption(49))||this;return Ae.originalModel=v.getModel(),Ae.modifiedEditorOptions=V.getOptions(),Ae.modifiedEditorTabSize=V.getModel().getOptions().tabSize,Ae.renderIndicators=be,Ae}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,h){var v=document.createElement("div");return v.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(t.originalStartLineNumber,t.originalEndLineNumber),heightInLines:h,domNode:document.createElement("div"),marginDomNode:v}},r.prototype._produceModifiedFromDiff=function(t,a,h){var v=[];if(t.charChanges)for(var V=0,be=t.charChanges.length;V<be;V++){var Ae=t.charChanges[V];Dr(Ae)&&v.push(new Je.a(new G.a(Ae.originalStartLineNumber,Ae.originalStartColumn,Ae.originalEndLineNumber,Ae.originalEndColumn),"char-delete",0))}for(var Ne=Object(vs.a)(1e4),ot=[],dt=this.modifiedEditorOptions.get(107),bt=this.modifiedEditorOptions.get(34),mt=dt.decorationsWidth,$t=this.modifiedEditorOptions.get(49),Kt=bt.typicalHalfwidthCharacterWidth,Wt=0,Bt=[],rn=t.originalStartLineNumber;rn<=t.originalEndLineNumber;rn++)if(Wt=Math.max(Wt,this._renderOriginalLine(rn-t.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,rn,v,Ne)),Bt.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*$t+"px;width:"+mt+"px;height:"+$t+'px;right:0;"></div>'])}Wt+=this.modifiedEditorOptions.get(79);var wn=document.createElement("div");wn.className="view-lines line-delete",wn.innerHTML=Ne.build(),si.a.applyFontInfoSlow(wn,bt);var En=document.createElement("div");return En.className="inline-deleted-margin-view-zone",En.innerHTML=ot.join(""),si.a.applyFontInfoSlow(En,bt),{shouldNotShrink:!0,afterLineNumber:t.modifiedEndLineNumber===0?t.modifiedStartLineNumber:t.modifiedStartLineNumber-1,heightInLines:a,minWidthInPx:Wt*Kt,domNode:wn,marginDomNode:En,diff:{originalStartLineNumber:t.originalStartLineNumber,originalEndLineNumber:t.originalEndLineNumber,modifiedStartLineNumber:t.modifiedStartLineNumber,modifiedEndLineNumber:t.modifiedEndLineNumber,originalContent:Bt}}},r.prototype._renderOriginalLine=function(t,a,h,v,V,be,Ae){var Ne=a.getLineTokens(V),ot=Ne.getLineContent(),dt=h.get(34),bt=Ws.a.filter(be,V,1,ot.length+1);Ae.appendASCIIString('<div class="view-line'),be.length===0&&Ae.appendASCIIString(" char-delete"),Ae.appendASCIIString('" style="top:'),Ae.appendASCIIString(String(t*h.get(49))),Ae.appendASCIIString('px;width:1000000px;">');var mt=Je.d.isBasicASCII(ot,a.mightContainNonBasicASCII()),$t=Je.d.containsRTL(ot,mt,a.mightContainRTL()),Kt=Object(it.d)(new it.c(dt.isMonospace&&!h.get(23),dt.canUseHalfwidthRightwardsArrow,ot,!1,mt,$t,0,Ne,bt,v,0,dt.spaceWidth,dt.middotWidth,h.get(88),h.get(74),h.get(69),h.get(35)!==I.d.OFF,null),Ae);Ae.appendASCIIString("</div>");var Wt=Kt.characterMapping.getAbsoluteOffsets();return Wt.length>0?Wt[Wt.length-1]:0},r}(Zr);function Qr(s){return s.modifiedEndLineNumber>0}function Dr(s){return s.originalEndLineNumber>0}function Zo(){var s=document.createElement("div");return s.className="diagonal-fill",s}Object(Fi.e)(function(s,r){var t=s.getColor(wi.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(wi.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 h=s.getColor(wi.k);h&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+h+"; }");var v=s.getColor(wi.m);v&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+v+"; }");var V=s.getColor(wi.Tb);V&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+V+"; }");var be=s.getColor(wi.i);be&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+be+"; }")});var Jr=o("9Y+e"),uo=Object(Yt.c)("themeService"),pr=o("fjLI"),_i=o("bexQ"),Zi=o("R3nR"),vr=o("9XeP"),Co=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),Eo=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},ai=function(s,r){return function(t,a){r(t,a,s)}},_o=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),h=0,r=0;r<t;r++)for(var v=arguments[r],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},qr=0,Ro=!1;function Ar(){if(Ro)return;Ro=!0,ms.b(document.body)}var Io=function(s){Co(r,s);function r(t,a,h,v,V,be,Ae,Ne,ot,dt){var bt=this;return a=a||{},a.ariaLabel=a.ariaLabel||Xr.editorViewAccessibleLabel,a.ariaLabel=a.ariaLabel+";"+(Ps.i?Xr.accessibilityHelpMessageIE:Xr.accessibilityHelpMessage),bt=s.call(this,t,a,{},h,v,V,be,Ne,ot,dt)||this,Ae instanceof yo?bt._standaloneKeybindingService=Ae:bt._standaloneKeybindingService=null,Ar(),bt}return r.prototype.addCommand=function(t,a,h){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var v="DYNAMIC_"+ ++qr,V=Ei.a.deserialize(h);return this._standaloneKeybindingService.addDynamicKeybinding(v,t,a,V),v},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 h=t.id,v=t.label,V=Ei.a.and(Ei.a.equals("editorId",this.getId()),Ei.a.deserialize(t.precondition)),be=t.keybindings,Ae=Ei.a.and(V,Ei.a.deserialize(t.keybindingContext)),Ne=t.contextMenuGroupId||null,ot=t.contextMenuOrder||0,dt=function(wn){for(var En=[],Fn=1;Fn<arguments.length;Fn++)En[Fn-1]=arguments[Fn];return Promise.resolve(t.run.apply(t,_o([a],En)))},bt=new zt.b,mt=this.getId()+":"+h;if(bt.add(we.a.registerCommand(mt,dt)),Ne){var $t={command:{id:mt,title:v},when:V,group:Ne,order:ot};bt.add(pr.c.appendMenuItem(7,$t))}if(Array.isArray(be))for(var Kt=0,Wt=be;Kt<Wt.length;Kt++){var Bt=Wt[Kt];bt.add(this._standaloneKeybindingService.addDynamicKeybinding(mt,Bt,dt,Ae))}var rn=new Jr.a(mt,v,v,V,dt,this._contextKeyService);return this._actions[h]=rn,bt.add(Object(zt.h)(function(){delete a._actions[h]})),bt},r=Eo([ai(2,Yt.a),ai(3,Ke.a),ai(4,we.b),ai(5,Ei.c),ai(6,_i.a),ai(7,Fi.c),ai(8,Sr.a),ai(9,Zi.b)],r),r}(To.a),co=function(s){Co(r,s);function r(t,a,h,v,V,be,Ae,Ne,ot,dt,bt,mt,$t){var Kt=this;cr(mt,a,!1);var Wt=dt.registerEditorContainer(t);a=a||{},typeof a.theme=="string"&&dt.setTheme(a.theme);var Bt=a.model;delete a.model,Kt=s.call(this,t,a,v,V,be,Ae,Ne,dt,bt,$t)||this,Kt._contextViewService=ot,Kt._configurationService=mt,Kt._register(h),Kt._register(Wt);var rn;if(typeof Bt=="undefined"?(rn=self.monaco.editor.createModel(a.value||"",a.language||"text/plain"),Kt._ownsModel=!0):(rn=Bt,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=Eo([ai(3,Yt.a),ai(4,Ke.a),ai(5,we.b),ai(6,Ei.c),ai(7,_i.a),ai(8,Er.b),ai(9,uo),ai(10,Sr.a),ai(11,Ai.a),ai(12,Zi.b)],r),r}(Io),Po=function(s){Co(r,s);function r(t,a,h,v,V,be,Ae,Ne,ot,dt,bt,mt,$t,Kt,Wt){var Bt=this;cr(mt,a,!0);var rn=dt.registerEditorContainer(t);return a=a||{},typeof a.theme=="string"&&(a.theme=dt.setTheme(a.theme)),Bt=s.call(this,t,a,Wt,Ne,V,v,ot,dt,bt,$t,Kt)||this,Bt._contextViewService=Ae,Bt._configurationService=mt,Bt._register(h),Bt._register(rn),Bt._contextViewService.setContainer(Bt._containerDomElement),Bt}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,h){return t.createInstance(Io,a,h)},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,h){return this.getModifiedEditor().addCommand(t,a,h)},r.prototype.createContextKey=function(t,a){return this.getModifiedEditor().createContextKey(t,a)},r.prototype.addAction=function(t){return this.getModifiedEditor().addAction(t)},r=Eo([ai(3,Yt.a),ai(4,Ei.c),ai(5,_i.a),ai(6,Er.b),ai(7,Lt.a),ai(8,Ke.a),ai(9,uo),ai(10,Sr.a),ai(11,Ai.a),ai(12,Er.a),ai(13,bo.a),ai(14,Object(Yt.d)(vr.a))],r),r}(Go),$o=o("x/UI"),Es=o("WBhO"),_s=function(){function s(r){this._languageIdentifier=r}return s.prototype.getId=function(){return this._languageIdentifier.language},s}(),Qo=o("MrjW"),Ss=o("l2gE"),Jo="text/plain",ko="application/unknown",ho=[],Fo=[],qo=[];function L(s,r){r===void 0&&(r=!1);var t=n(s);ho.push(t),t.userConfigured?qo.push(t):Fo.push(t),r&&!t.userConfigured&&ho.forEach(function(a){if(a.mime===t.mime||a.userConfigured)return;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(Qo.posix.sep)>=0:!1}}function e(s,r){var t;if(s)switch(s.scheme){case Fe.b.file:t=s.fsPath;break;case Fe.b.data:var a=$e.a.parseMetaData(s);t=a.get($e.a.META_DATA_LABEL);break;default:t=s.path}if(!t)return[ko];t=t.toLowerCase();var h=Object(Qo.basename)(t),v=i(t,h,qo);if(v)return[v,Jo];var V=i(t,h,Fo);if(V)return[V,Jo];if(r){var be=u(r);if(be)return[be,Jo]}return[ko]}function i(s,r,t){for(var a=null,h=null,v=null,V=t.length-1;V>=0;V--){var be=t[V];if(r===be.filenameLowercase){a=be;break}if(be.filepattern&&(!h||be.filepattern.length>h.filepattern.length)){var Ae=be.filepatternOnPath?s:r;Object(Ss.a)(be.filepatternLowercase,Ae)&&(h=be)}be.extension&&((!v||be.extension.length>v.extension.length)&&(Object(Zn.m)(r,be.extensionLowercase)&&(v=be)))}return a?a.mime:h?h.mime:v?v.mime:null}function u(s){if(Object(Zn.O)(s)&&(s=s.substr(1)),s.length>0)for(var r=ho.length-1;r>=0;r--){var t=ho[r];if(!t.firstline)continue;var a=s.match(t.firstline);if(a&&a.length>0)return t.mime}return null}var c=o("MqQJ"),T=o("ic2d"),ge=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),le=Object.prototype.hasOwnProperty,ze=function(s){ge(r,s);function r(t,a){t===void 0&&(t=!0),a===void 0&&(a=!1);var h=s.call(this)||this;return h._onDidChange=h._register(new N.a),h.onDidChange=h._onDidChange.event,h._warnOnOverwrite=a,h._nextLanguageId2=1,h._languageIdToLanguage=[],h._languageToLanguageId=Object.create(null),h._languages={},h._mimeTypesMap={},h._nameMap={},h._lowercaseNameMap={},t&&(h._initializeFromRegistry(),h._register(c.a.onDidChangeLanguages(function(v){return h._initializeFromRegistry()}))),h}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,h=0,v=t;h<v.length;h++){var V=v[h];this._registerLanguage(V)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(function(be){var Ae=a._languages[be];Ae.name&&(a._nameMap[Ae.name]=Ae.identifier),Ae.aliases.forEach(function(Ne){a._lowercaseNameMap[Ne.toLowerCase()]=Ae.identifier}),Ae.mimetypes.forEach(function(Ne){a._mimeTypesMap[Ne]=Ae.identifier})}),T.a.as(is.a.Configuration).registerOverrideIdentifiers(c.a.getLanguages().map(function(be){return be.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,h;if(le.call(this._languages,a))h=this._languages[a];else{var v=this._getLanguageId(a);h={identifier:new gt.q(a,v),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[a]=h}this._mergeLanguage(h,t)},r.prototype._mergeLanguage=function(t,a){var h,v=a.id,V=null;if(Array.isArray(a.mimetypes)&&a.mimetypes.length>0&&((h=t.mimetypes).push.apply(h,a.mimetypes),V=a.mimetypes[0]),V||(V="text/x-"+v,t.mimetypes.push(V)),Array.isArray(a.extensions))for(var be=0,Ae=a.extensions;be<Ae.length;be++){var Ne=Ae[be];L({id:v,mime:V,extension:Ne},this._warnOnOverwrite),t.extensions.push(Ne)}if(Array.isArray(a.filenames))for(var ot=0,dt=a.filenames;ot<dt.length;ot++){var bt=dt[ot];L({id:v,mime:V,filename:bt},this._warnOnOverwrite),t.filenames.push(bt)}if(Array.isArray(a.filenamePatterns))for(var mt=0,$t=a.filenamePatterns;mt<$t.length;mt++){var Kt=$t[mt];L({id:v,mime:V,filepattern:Kt},this._warnOnOverwrite)}if(typeof a.firstLine=="string"&&a.firstLine.length>0){var Wt=a.firstLine;Wt.charAt(0)!=="^"&&(Wt="^"+Wt);try{var Bt=new RegExp(Wt);Zn.I(Bt)||L({id:v,mime:V,firstline:Bt},this._warnOnOverwrite)}catch(jn){Object(nn.e)(jn)}}t.aliases.push(v);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,wn=rn;cn<wn.length;cn++){var En=wn[cn];if(!En||En.length===0)continue;t.aliases.push(En)}var Fn=rn!==null&&rn.length>0;if(!(Fn&&rn[0]===null)){var Wn=(Fn?rn[0]:null)||v;(Fn||!t.name)&&(t.name=Wn)}a.configuration&&t.configurationFiles.push(a.configuration)},r.prototype.isRegisteredMode=function(t){return le.call(this._mimeTypesMap,t)?!0:le.call(this._languages,t)},r.prototype.getModeIdForLanguageNameLowercase=function(t){return le.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t].language:null},r.prototype.extractModeIds=function(t){var a=this;return t?t.split(",").map(function(h){return h.trim()}).map(function(h){return le.call(a._mimeTypesMap,h)?a._mimeTypesMap[h].language:h}).filter(function(h){return le.call(a._languages,h)}):[]},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 le.call(this._languages,a)?this._languages[a].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(t,a){if(!t&&!a)return[];var h=e(t,a);return this.extractModeIds(h.join(","))},r}(zt.a),st=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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){st(r,s);function r(t,a){var h=s.call(this)||this;return h._onDidChange=h._register(new N.a),h.onDidChange=h._onDidChange.event,h._selector=a,h.languageIdentifier=h._selector(),h._register(t(function(){return h._evaluate()})),h}return r.prototype._evaluate=function(){var t=this._selector();if(t.id===this.languageIdentifier.id)return;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 N.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new N.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 ht(this.onLanguagesMaybeChanged,function(){var a=t.getModeId(r);return t._createModeAndGetLanguageIdentifier(a)})},s.prototype.createByFilepathOrFirstLine=function(r,t){var a=this;return new ht(this.onLanguagesMaybeChanged,function(){var h=a.getModeIdByFilepathOrFirstLine(r,t);return a._createModeAndGetLanguageIdentifier(h)})},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 _s(t),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},s}(),d=o("QRHv"),l=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),b=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},S=function(s,r){return function(t,a){r(t,a,s)}};function C(s){return s.toString()}var $=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(h){return a(r,h)}))}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}(),Be=sn.d||sn.e?1:2,rt=function(s){l(r,s);function r(t,a,h,v){var V=s.call(this)||this;return V._onModelAdded=V._register(new N.a),V.onModelAdded=V._onModelAdded.event,V._onModelRemoved=V._register(new N.a),V.onModelRemoved=V._onModelRemoved.event,V._onModelModeChanged=V._register(new N.a),V.onModelModeChanged=V._onModelModeChanged.event,V._configurationService=t,V._resourcePropertiesService=a,V._models={},V._modelCreationOptionsByLanguageAndResource=Object.create(null),V._configurationServiceSubscription=V._configurationService.onDidChangeConfiguration(function(be){return V._updateModelOptions()}),V._updateModelOptions(),V._register(new xe(V,h,t,v)),V}return r._readModelOptions=function(t,a){var h=I.c.tabSize;if(t.editor&&typeof t.editor.tabSize!="undefined"){var v=parseInt(t.editor.tabSize,10);isNaN(v)||(h=v),h<1&&(h=1)}var V=h;if(t.editor&&typeof t.editor.indentSize!="undefined"&&t.editor.indentSize!=="tabSize"){var be=parseInt(t.editor.indentSize,10);isNaN(be)||(V=be),V<1&&(V=1)}var Ae=I.c.insertSpaces;t.editor&&typeof t.editor.insertSpaces!="undefined"&&(Ae=t.editor.insertSpaces==="false"?!1:Boolean(t.editor.insertSpaces));var Ne=Be,ot=t.eol;ot===`\r
`?Ne=2:ot===`
`&&(Ne=1);var dt=I.c.trimAutoWhitespace;t.editor&&typeof t.editor.trimAutoWhitespace!="undefined"&&(dt=t.editor.trimAutoWhitespace==="false"?!1:Boolean(t.editor.trimAutoWhitespace));var bt=I.c.detectIndentation;t.editor&&typeof t.editor.detectIndentation!="undefined"&&(bt=t.editor.detectIndentation==="false"?!1:Boolean(t.editor.detectIndentation));var mt=I.c.largeFileOptimizations;return t.editor&&typeof t.editor.largeFileOptimizations!="undefined"&&(mt=t.editor.largeFileOptimizations==="false"?!1:Boolean(t.editor.largeFileOptimizations)),{isForSimpleWidget:a,tabSize:h,indentSize:V,insertSpaces:Ae,detectIndentation:bt,defaultEOL:Ne,trimAutoWhitespace:dt,largeFileOptimizations:mt}},r.prototype.getCreationOptions=function(t,a,h){var v=this._modelCreationOptionsByLanguageAndResource[t+a];if(!v){var V=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:a}),be=this._resourcePropertiesService.getEOL(a,t);v=r._readModelOptions({editor:V,eol:be},h),this._modelCreationOptionsByLanguageAndResource[t+a]=v}return v},r.prototype._updateModelOptions=function(){var t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var a=Object.keys(this._models),h=0,v=a.length;h<v;h++){var V=a[h],be=this._models[V],Ae=be.model.getLanguageIdentifier().language,Ne=be.model.uri,ot=t[Ae+Ne],dt=this.getCreationOptions(Ae,Ne,be.model.isForSimpleWidget);r._setModelOptionsForModel(be.model,dt,ot)}},r._setModelOptionsForModel=function(t,a,h){if(h&&h.defaultEOL!==a.defaultEOL&&t.getLineCount()===1&&t.setEOL(a.defaultEOL===1?0:1),h&&h.detectIndentation===a.detectIndentation&&h.insertSpaces===a.insertSpaces&&h.tabSize===a.tabSize&&h.indentSize===a.indentSize&&h.trimAutoWhitespace===a.trimAutoWhitespace)return;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,h,v){var V=this,be=this.getCreationOptions(a.language,h,v),Ae=new hr.b(t,be,a,h),Ne=C(Ae.uri);if(this._models[Ne])throw new Error("ModelService: Cannot add model because it already exists!");var ot=new $(Ae,function(dt){return V._onWillDispose(dt)},function(dt,bt){return V._onDidChangeLanguage(dt,bt)});return this._models[Ne]=ot,ot},r.prototype.createModel=function(t,a,h,v){v===void 0&&(v=!1);var V;return a?(V=this._createModelData(t,a.languageIdentifier,h,v),this.setMode(V.model,a)):V=this._createModelData(t,c.b,h,v),this._onModelAdded.fire(V.model),V.model},r.prototype.setMode=function(t,a){if(!a)return;var h=this._models[C(t.uri)];if(!h)return;h.setLanguage(a)},r.prototype.getModels=function(){for(var t=[],a=Object.keys(this._models),h=0,v=a.length;h<v;h++){var V=a[h];t.push(this._models[V].model)}return t},r.prototype.getModel=function(t){var a=C(t),h=this._models[a];return h?h.model:null},r.prototype._onWillDispose=function(t){var a=C(t.uri),h=this._models[a];delete this._models[a],h.dispose(),delete this._modelCreationOptionsByLanguageAndResource[t.getLanguageIdentifier().language+t.uri],this._onModelRemoved.fire(t)},r.prototype._onDidChangeLanguage=function(t,a){var h=a.oldLanguage,v=t.getLanguageIdentifier().language,V=this.getCreationOptions(h,t.uri,t.isForSimpleWidget),be=this.getCreationOptions(v,t.uri,t.isForSimpleWidget);r._setModelOptionsForModel(t,be,V),this._onModelModeChanged.fire({model:t,oldModeId:h})},r=b([S(0,Ai.a),S(1,un),S(2,Fi.c),S(3,fn.a)],r),r}(zt.a),xe=function(s){l(r,s);function r(t,a,h,v){var V=s.call(this)||this;V._configurationService=h,V._watchers=Object.create(null),V._semanticStyling=V._register(new ut(a,v));var be=function(dt){var bt=h.getValue(r.SETTING_ID,{overrideIdentifier:dt.getLanguageIdentifier().language,resource:dt.uri});return bt&&bt.enabled},Ae=function(dt){V._watchers[dt.uri.toString()]=new an(dt,a,V._semanticStyling)},Ne=function(dt,bt){bt.dispose(),delete V._watchers[dt.uri.toString()]};return V._register(t.onModelAdded(function(ot){be(ot)&&Ae(ot)})),V._register(t.onModelRemoved(function(ot){var dt=V._watchers[ot.uri.toString()];dt&&Ne(ot,dt)})),V._configurationService.onDidChangeConfiguration(function(ot){if(ot.affectsConfiguration(r.SETTING_ID))for(var dt=0,bt=t.getModels();dt<bt.length;dt++){var mt=bt[dt],$t=V._watchers[mt.uri.toString()];be(mt)?$t||Ae(mt):$t&&Ne(mt,$t)}}),V}return r.SETTING_ID="editor.semanticHighlighting",r}(zt.a),ut=function(s){l(r,s);function r(t,a){var h=s.call(this)||this;return h._themeService=t,h._logService=a,h._caches=new WeakMap,h._themeService&&h._register(h._themeService.onThemeChange(function(){h._caches=new WeakMap})),h}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),Nt=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),h=this._elements[a];h;){if(h.tokenTypeIndex===r&&h.tokenModifierSet===t)return h;h=h.next}return null},s.prototype.add=function(r,t,a){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){var h=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 v=0,V=h;v<V.length;v++)for(var be=V[v],Ae=be;Ae;){var Ne=Ae.next;Ae.next=null,this._add(Ae),Ae=Ne}}this._add(new Nt(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),h;if(a)h=a.metadata;else{for(var v=this._legend.tokenTypes[r],V=[],be=t,Ae=0;be>0&&Ae<this._legend.tokenModifiers.length;Ae++)be&1&&V.push(this._legend.tokenModifiers[Ae]),be=be>>1;var Ne=this._themeService.getTheme().getTokenStyleMetadata(v,V);if(typeof Ne=="undefined")h=2147483647;else{if(h=0,typeof Ne.italic!="undefined"){var ot=(Ne.italic?1:0)<<11;h|=ot|1}if(typeof Ne.bold!="undefined"){var dt=(Ne.bold?2:0)<<11;h|=dt|2}if(typeof Ne.underline!="undefined"){var bt=(Ne.underline?4:0)<<11;h|=bt|4}if(Ne.foreground){var mt=Ne.foreground<<14;h|=mt|8}h===0&&(h=2147483647)}this._hashTable.add(r,t,h)}if(this._logService.getLevel()===fn.b.Trace){var $t=this._legend.tokenTypes[r],Kt=t?" "+this._legend.tokenModifiers.filter(function(Wt,Bt){return t&1<<Bt}).join(" "):"";this._logService.trace("tokenStyleMetadata "+(a?"[CACHED] ":"")+$t+Kt+": foreground "+gt.x.getForeground(h)+", fontStyle "+gt.x.getFontStyle(h).toString(2))}return h},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){l(r,s);function r(t,a,h){var v=s.call(this)||this;return v._isDisposed=!1,v._model=t,v._semanticStyling=h,v._fetchSemanticTokens=v._register(new Jt.d(function(){return v._fetchSemanticTokensNow()},300)),v._currentResponse=null,v._currentRequestCancellationTokenSource=null,v._register(v._model.onDidChangeContent(function(V){v._fetchSemanticTokens.isScheduled()||v._fetchSemanticTokens.schedule()})),v._register(gt.k.onDidChange(function(V){return v._fetchSemanticTokens.schedule()})),a&&v._register(a.onThemeChange(function(V){v._setSemanticTokens(null,null,null,[]),v._fetchSemanticTokens.schedule()})),v._fetchSemanticTokens.schedule(0),v}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)return;var a=this._getSemanticColoringProvider();if(!a)return;this._currentRequestCancellationTokenSource=new ne.b;var h=[],v=this._model.onDidChangeContent(function(Ne){h.push(Ne)}),V=this._semanticStyling.get(a),be=this._currentResponse&&this._currentResponse.resultId||null,Ae=Promise.resolve(a.provideDocumentSemanticTokens(this._model,be,this._currentRequestCancellationTokenSource.token));Ae.then(function(Ne){t._currentRequestCancellationTokenSource=null,v.dispose(),t._setSemanticTokens(a,Ne||null,V,h)},function(Ne){(!Ne||typeof Ne.message!="string"||Ne.message.indexOf("busy")===-1)&&nn.e(Ne),t._currentRequestCancellationTokenSource=null,v.dispose(),h.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,h,v,V){for(var be=0;be<V;be++)h[v+be]=t[a+be]},r.prototype._setSemanticTokens=function(t,a,h,v){var V=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed){t&&a&&t.releaseDocumentSemanticTokens(a.resultId);return}if(!t||!a||!h){this._model.setSemanticTokens(null);return}if(r._isSemanticTokensEdits(a)){if(!V){this._model.setSemanticTokens(null);return}if(a.edits.length===0)a={resultId:a.resultId,data:V.data};else{for(var be=0,Ae=0,Ne=a.edits;Ae<Ne.length;Ae++){var ot=Ne[Ae];be+=(ot.data?ot.data.length:0)-ot.deleteCount}for(var dt=V.data,bt=new Uint32Array(dt.length+be),mt=dt.length,$t=bt.length,Kt=a.edits.length-1;Kt>=0;Kt--){var ot=a.edits[Kt],Wt=mt-(ot.start+ot.deleteCount);Wt>0&&(r._copy(dt,mt-Wt,bt,$t-Wt,Wt),$t-=Wt),ot.data&&(r._copy(ot.data,0,bt,$t-ot.data.length,ot.data.length),$t-=ot.data.length),mt=ot.start}mt>0&&r._copy(dt,0,bt,0,mt),a={resultId:a.resultId,data:bt}}}if(r._isSemanticTokens(a)){this._currentResponse=new dn(t,a.resultId,a.data);for(var dt=a.data,Bt=a.data.length/5|0,rn=Math.max(Math.ceil(Bt/1024),400),cn=[],wn=0,En=1,Fn=0;wn<Bt;){var Wn=wn,jn=Math.min(Wn+rn,Bt);if(jn<Bt){for(var ei=jn;ei-1>Wn&&dt[5*ei]===0;)ei--;if(ei-1===Wn){for(var zn=jn;zn+1<Bt&&dt[5*zn]===0;)zn++;jn=zn}else jn=ei}for(var bt=new Uint32Array((jn-Wn)*4),vn=0,ni=0;wn<jn;){var $n=5*wn,pi=dt[$n],xi=dt[$n+1],Or=En+pi,yr=pi===0?Fn+xi:xi,Rr=dt[$n+2],So=dt[$n+3],Ds=dt[$n+4],el=h.getMetadata(So,Ds);el!==2147483647&&(ni===0&&(ni=Or),bt[vn]=Or-ni,bt[vn+1]=yr,bt[vn+2]=yr+Rr,bt[vn+3]=el,vn+=4),En=Or,Fn=yr,wn++}vn!==bt.length&&(bt=bt.subarray(0,vn));var Od=new d.a(ni,new d.c(bt));cn.push(Od)}if(v.length>0){for(var Da=0,tl=v;Da<tl.length;Da++)for(var Md=tl[Da],Oa=0,nl=cn;Oa<nl.length;Oa++)for(var Td=nl[Oa],Ma=0,il=Md.changes;Ma<il.length;Ma++){var rl=il[Ma];Td.applyEdit(rl.range,rl.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(cn);return}this._model.setSemanticTokens(null)},r.prototype._getSemanticColoringProvider=function(){var t=gt.k.ordered(this._model);return t.length>0?t[0]:null},r}(zt.a),Cn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),In=function(s){Cn(r,s);function r(){var t=s.call(this)||this;return t._onCodeEditorAdd=t._register(new N.a),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new N.a),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new N.a),t._onDiffEditorRemove=t._register(new N.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(),h=0,v=a;h<v.length;h++){var V=v[h];if(V.hasTextFocus())return V;V.hasWidgetFocus()&&(t=V)}return t},r}(zt.a),Nn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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 h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},Dn=function(s,r){return function(t,a){r(t,a,s)}},ui=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}(),Ri=function(s){Nn(r,s);function r(t,a){a===void 0&&(a=null);var h=s.call(this)||this;return h._decorationOptionProviders=new Map,h._editorStyleSheets=new Map,h._globalStyleSheet=a?new qn(a):null,h._themeService=t,h}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qn(Xe.v())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(t){if(!t)return this._getOrCreateGlobalStyleSheet();var a=t.getContainerDomNode();if(!Xe.M(a))return this._getOrCreateGlobalStyleSheet();var h=t.getId();if(!this._editorStyleSheets.has(h)){var v=new ui(this,h,Xe.v(a));this._editorStyleSheets.set(h,v)}return this._editorStyleSheets.get(h)},r.prototype._removeEditorStyleSheets=function(t){this._editorStyleSheets.delete(t)},r.prototype.registerDecorationType=function(t,a,h,v){var V=this._decorationOptionProviders.get(t);if(!V){var be=this._getOrCreateStyleSheet(v),Ae={styleSheet:be.styleSheet,key:t,parentTypeKey:h,options:a||Object.create(null)};h?V=new li(this._themeService,be,Ae):V=new gr(this._themeService,be,Ae),this._decorationOptionProviders.set(t,V)}V.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(h){return h.removeDecorations(t)})))},r.prototype.resolveDecorationOptions=function(t,a){var h=this._decorationOptionProviders.get(t);if(!h)throw new Error("Unknown decoration type key: "+t);return h.getOptions(this,a)},r=ti([Dn(0,Fi.c)],r),r}(In),li=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}(),gr=function(){function s(r,t,a){var h=this;this._disposables=new zt.b,this._styleSheet=t,this._styleSheet.ref(),this.refCount=0;var v=function(bt){var mt=new di(bt,a,r);return h._disposables.add(mt),mt.hasContent?mt.className:void 0},V=function(bt){var mt=new di(bt,a,r);return h._disposables.add(mt),mt.hasContent?{className:mt.className,hasLetterSpacing:mt.hasLetterSpacing}:null};this.className=v(0);var be=V(1);be&&(this.inlineClassName=be.className,this.inlineClassNameAffectsLetterSpacing=be.hasLetterSpacing),this.beforeContentClassName=v(3),this.afterContentClassName=v(4),this.glyphMarginClassName=v(2);var Ae=a.options;this.isWholeLine=Boolean(Ae.isWholeLine),this.stickiness=Ae.rangeBehavior;var Ne=Ae.light&&Ae.light.overviewRulerColor||Ae.overviewRulerColor,ot=Ae.dark&&Ae.dark.overviewRulerColor||Ae.overviewRulerColor;(typeof Ne!="undefined"||typeof ot!="undefined")&&(this.overviewRuler={color:Ne||ot,darkColor:ot||Ne,position:Ae.overviewRulerLane||pt.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}(),Li={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 h=this;this._theme=a.getTheme(),this._ruleType=r,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var v=zi.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(v=v+" "+zi.getClassName(this._providerArgs.parentTypeKey,r)),this._className=v,this._unThemedSelector=zi.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=a.onThemeChange(function(V){h._theme=a.getTheme(),h._removeCSS(),h._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,h;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(r),a=this.getCSSTextForModelDecorationClassName(r.light),h=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(r),a=this.getCSSTextForModelDecorationInlineClassName(r.light),h=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(r),a=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),h=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(r.before),a=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),h=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(r.after),a=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),h=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var v=this._providerArgs.styleSheet.sheet,V=!1;t.length>0&&(v.insertRule(this._unThemedSelector+" {"+t+"}",0),V=!0),a.length>0&&(v.insertRule(".vs"+this._unThemedSelector+" {"+a+"}",0),V=!0),h.length>0&&(v.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+h+"}",0),V=!0),this._hasContent=V},s.prototype._removeCSS=function(){Xe.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(Zn.r(Li.contentIconPath,Xe.q(U.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var a=r.contentText.match(/^.*$/m)[0],h=a.replace(/['\\]/g,"\\$&");t.push(Zn.r(Li.contentText,h))}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(Zn.r(Li.gutterIconPath,Xe.q(U.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&t.push(Zn.r(Li.gutterIconSize,r.gutterIconSize))),t.join("")},s.prototype.collectBorderSettingsCSSText=function(r,t){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)?(t.push(Zn.r("box-sizing: border-box;")),!0):!1},s.prototype.collectCSSText=function(r,t,a){for(var h=a.length,v=0,V=t;v<V.length;v++){var be=V[v],Ae=this.resolveValue(r[be]);typeof Ae=="string"&&a.push(Zn.r(Li[be],Ae))}return a.length!==h},s.prototype.resolveValue=function(r){if(Object(kt.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 h=".monaco-editor ."+this.getClassName(r,a);return t&&(h=h+"."+this.getClassName(t,a)),a===3?h+="::before":a===4&&(h+="::after"),h},s}(),$i=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),Qi=function(s){$i(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,h){return a?Promise.resolve(this.doOpenEditor(a,t)):Promise.resolve(null)},r.prototype.doOpenEditor=function(t,a){var h=this.findModel(t,a.resource);if(!h){if(a.resource){var v=a.resource.scheme;if(v===Fe.b.http||v===Fe.b.https)return Object(Xe.Z)(a.resource.toString()),t}return null}var V=a.options?a.options.selection:null;if(V)if(typeof V.endLineNumber=="number"&&typeof V.endColumn=="number")t.setSelection(V),t.revealRangeInCenter(V,1);else{var be={lineNumber:V.startLineNumber,column:V.startColumn};t.setPosition(be),t.revealPositionInCenter(be,1)}return t},r.prototype.findModel=function(t,a){var h=t.getModel();return h&&h.uri.toString()!==a.toString()?null:h},r}(Ri),Vi=o("zrhQ"),Ji=function(){function s(r,t,a,h,v){this.token=r,this.index=t,this.fontStyle=a,this.foreground=h,this.background=v}return s}();function hi(s){if(!s||!Array.isArray(s))return[];for(var r=[],t=0,a=0,h=s.length;a<h;a++){var v=s[a],V=-1;if(typeof v.fontStyle=="string"){V=0;for(var be=v.fontStyle.split(" "),Ae=0,Ne=be.length;Ae<Ne;Ae++){var ot=be[Ae];switch(ot){case"italic":V=V|1;break;case"bold":V=V|2;break;case"underline":V=V|4;break}}}var dt=null;typeof v.foreground=="string"&&(dt=v.foreground);var bt=null;typeof v.background=="string"&&(bt=v.background),r[t++]=new Ji(v.token||"",a,V,dt,bt)}return r}function ki(s,r){s.sort(function(Bt,rn){var cn=Nr(Bt.token,rn.token);return cn!==0?cn:Bt.index-rn.index});for(var t=0,a="000000",h="ffffff";s.length>=1&&s[0].token==="";){var v=s.shift();v.fontStyle!==-1&&(t=v.fontStyle),v.foreground!==null&&(a=v.foreground),v.background!==null&&(h=v.background)}for(var V=new es,be=0,Ae=r;be<Ae.length;be++){var Ne=Ae[be];V.getId(Ne)}for(var ot=V.getId(a),dt=V.getId(h),bt=new ol(t,ot,dt),mt=new sl(bt),$t=0,Kt=s.length;$t<Kt;$t++){var Wt=s[$t];mt.insert(Wt.token,Wt.fontStyle,V.getId(Wt.foreground),V.getId(Wt.background))}return new ws(V,mt)}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]=Vi.a.fromHex("#"+r),a)},s.prototype.getColorMap=function(){return this._id2color.slice(0)},s}(),ws=function(){function s(r,t){this._colorMap=r,this._root=t,this._cache=new Map}return s.createFromRawTokenTheme=function(r,t){return this.createFromParsedTokenTheme(hi(r),t)},s.createFromParsedTokenTheme=function(r,t){return ki(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 h=this._match(t),v=ir(t);a=(h.metadata|v<<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 Nr(s,r){return s<r?-1:s>r?1:0}var ol=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}(),sl=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,h;t===-1?(a=r,h=""):(a=r.substring(0,t),h=r.substring(t+1));var v=this._children.get(a);return typeof v!="undefined"?v.match(h):this._mainRule},s.prototype.insert=function(r,t,a,h){if(r===""){this._mainRule.acceptOverwrite(t,a,h);return}var v=r.indexOf("."),V,be;v===-1?(V=r,be=""):(V=r.substring(0,v),be=r.substring(v+1));var Ae=this._children.get(V);typeof Ae=="undefined"&&(Ae=new s(this._mainRule.clone()),this._children.set(V,Ae)),Ae.insert(be,t,a,h)},s}();function al(s){for(var r=[],t=1,a=s.length;t<a;t++){var h=s[t];r[t]=".mtk"+t+" { color: "+h+"; }"}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 jo,Wo,Ls,ll={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:(jo={},jo[wi.o]="#FFFFFE",jo[wi.x]="#000000",jo[wi.F]="#E5EBF1",jo[br.g]="#D3D3D3",jo[br.a]="#939393",jo[wi.M]="#ADD6FF4D",jo)},ul={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:(Wo={},Wo[wi.o]="#1E1E1E",Wo[wi.x]="#D4D4D4",Wo[wi.F]="#3A3D41",Wo[br.g]="#404040",Wo[br.a]="#707070",Wo[wi.M]="#ADD6FF26",Wo)},dl={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:(Ls={},Ls[wi.o]="#000000",Ls[wi.x]="#FFFFFF",Ls[br.g]="#FFFFFF",Ls[br.a]="#FFFFFF",Ls)},cl=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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",hl=T.a.as(wi.a.ColorContribution),fl=T.a.as(Fi.a.ThemingContribution),Ta=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,Vi.a.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var a=ha(this.themeData.base);for(var t in a.colors)r.has(t)||r.set(t,Vi.a.fromHex(a.colors[t]))}this.colors=r}return this.colors},s.prototype.getColor=function(r,t){var a=this.getColors().get(r);return a||(t!==!1?this.getDefault(r):void 0)},s.prototype.getDefault=function(r){var t=this.defaultColors[r];return t||(t=hl.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 h=ha(this.themeData.base);t=h.rules,h.encodedTokensColors&&(a=h.encodedTokensColors)}t=t.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(a=this.themeData.encodedTokensColors),this._tokenTheme=ws.createFromRawTokenTheme(t,a)}return this._tokenTheme},enumerable:!0,configurable:!0}),s.prototype.getTokenStyleMetadata=function(r,t){return},s}();function ca(s){return s===ts||s===ra||s===zs}function ha(s){switch(s){case ts:return ll;case ra:return ul;case zs:return dl}}function fa(s){var r=ha(s);return new Ta(s,r)}var pl=function(s){cl(r,s);function r(){var t=s.call(this)||this;return t._onThemeChange=t._register(new N.a),t.onThemeChange=t._onThemeChange.event,t._environment=Object.create(null),t._knownThemes=new Map,t._knownThemes.set(ts,fa(ts)),t._knownThemes.set(ra,fa(ra)),t._knownThemes.set(zs,fa(zs)),t._css="",t._globalStyleElement=null,t._styleElements=[],t.setTheme(ts),t}return r.prototype.registerEditorContainer=function(t){return Xe.M(t)?this._registerShadowDomContainer(t):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=Xe.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,h=Xe.v(t);return h.className="monaco-colors",h.innerHTML=this._css,this._styleElements.push(h),{dispose:function(){for(var V=0;V<a._styleElements.length;V++)if(a._styleElements[V]===h){a._styleElements.splice(V,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 Ta(t,a)),ca(t)&&this._knownThemes.forEach(function(h){h.base===t&&h.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,h;if(this._knownThemes.has(t)?h=this._knownThemes.get(t):h=this._knownThemes.get(ts),this._theme===h)return h.id;this._theme=h;var v=[],V={},be={addRule:function(dt){V[dt]||(v.push(dt),V[dt]=!0)}};fl.getThemingParticipants().forEach(function(ot){return ot(h,be,a._environment)});var Ae=h.tokenTheme,Ne=Ae.getColorMap();return be.addRule(al(Ne)),this._css=v.join(`
`),this._styleElements.forEach(function(ot){return ot.innerHTML=a._css}),gt.y.setColorMap(Ne),this._onThemeChange.fire(h),h.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(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),gl=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},ml=function(s,r){return function(t,a){r(t,a,s)}},sa="data-keybinding-context",pa=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){return},r.INSTANCE=new r,r}(pa),vl=function(s){oa(r,s);function r(t,a,h){var v=s.call(this,t,null)||this;return v._configurationService=a,v._values=new Map,v._listener=v._configurationService.onDidChangeConfiguration(function(V){if(V.source===6){var be=Object(zr.d)(v._values);v._values.clear(),h.fire(new Aa(be))}else{for(var Ae=[],Ne=0,ot=V.affectedKeys;Ne<ot.length;Ne++){var dt=ot[Ne],bt="config."+dt;v._values.has(bt)&&(v._values.delete(bt),Ae.push(bt))}h.fire(new Aa(Ae))}}),v}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),h=this._configurationService.getValue(a),v=void 0;switch(typeof h){case"number":case"boolean":case"string":v=h;break}return this._values.set(t,v),v},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}(pa),yl=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}(),xa=function(){function s(r){this.key=r}return s.prototype.affectsSome=function(r){return r.has(this.key)},s}(),Aa=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 h=a[t];if(r.has(h))return!0}return!1},s}(),bl=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 h=a[t];if(h.affectsSome(r))return!0}return!1},s}(),Na=function(){function s(r){this._onDidChangeContext=new N.d({merge:function(a){return new bl(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 yl(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 El(this,r)},s.prototype.contextMatchesRules=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId),a=mo.contextMatchesRules(t,r);return a},s.prototype.getContextKeyValue=function(r){return this._isDisposed?void 0:this.getContextValuesContainer(this._myContextId).getValue(r)},s.prototype.setContext=function(r,t){if(this._isDisposed)return;var a=this.getContextValuesContainer(this._myContextId);if(!a)return;a.setValue(r,t)&&this._onDidChangeContext.fire(new xa(r))},s.prototype.removeContext=function(r){if(this._isDisposed)return;this.getContextValuesContainer(this._myContextId).removeValue(r)&&this._onDidChangeContext.fire(new xa(r))},s.prototype.getContext=function(r){return this._isDisposed?aa.INSTANCE:this.getContextValuesContainer(_l(r))},s}(),Cl=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 h=new vl(a._myContextId,t,a._onDidChangeContext);return a._contexts.set(a._myContextId,h),a._toDispose.add(h),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 pa(a,this.getContextValuesContainer(t))),a},r.prototype.disposeContext=function(t){this._isDisposed||this._contexts.delete(t)},r=gl([ml(0,Ai.a)],r),r}(Na),El=function(s){oa(r,s);function r(t,a){var h=s.call(this,t.createChildContext())||this;return h._parent=t,a&&(h._domNode=a,h._domNode.setAttribute(sa,String(h._myContextId))),h}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 N.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){if(this._isDisposed)return;this._parent.disposeContext(t)},r}(Na);function _l(s){for(;s;){if(s.hasAttribute(sa)){var r=s.getAttribute(sa);return r?parseInt(r,10):NaN}s=s.parentElement}return 0}we.a.registerCommand(Ei.e,function(s,r,t){s.get(Ei.c).createKey(String(r),t)});var xd=o("eizg"),Ad=o("CHaL"),Ks=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),Sl=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),h=0,r=0;r<t;r++)for(var v=arguments[r],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},ga=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,ma=/(&amp;)?(&amp;)([^\s&])/g,Gs;(function(s){s[s.Right=0]="Right",s[s.Left=1]="Left"})(Gs||(Gs={}));var wl=function(s){Ks(r,s);function r(t,a,h){var v=s.call(this,h||"submenu",t,"",!0)||this;return v.entries=a,v}return r}(ro.a),Ra=function(s){Ks(r,s);function r(t,a,h){h===void 0&&(h={});var v=this;Object(Xe.e)(t,"monaco-menu-container"),t.setAttribute("role","presentation");var V=document.createElement("div");Object(Xe.e)(V,"monaco-menu"),V.setAttribute("role","presentation"),v=s.call(this,V,{orientation:2,actionViewItemProvider:function(ot){return v.doGetActionViewItem(ot,h,be)},context:h.context,actionRunner:h.actionRunner,ariaLabel:h.ariaLabel,triggerKeys:{keys:Sl([3],sn.e?[10]:[]),keyDown:!0}})||this,v.menuElement=V,v.actionsList.setAttribute("role","menu"),v.actionsList.tabIndex=0,v.menuDisposables=v._register(new zt.b),Object(Xe.i)(V,Xe.c.KEY_DOWN,function(Ne){var ot=new dr.a(Ne);ot.equals(2)&&Ne.preventDefault()}),h.enableMnemonics&&v.menuDisposables.add(Object(Xe.i)(V,Xe.c.KEY_DOWN,function(Ne){var ot=Ne.key.toLocaleLowerCase();if(v.mnemonics.has(ot)){Xe.b.stop(Ne,!0);var dt=v.mnemonics.get(ot);if(dt.length===1&&(dt[0]instanceof Ia&&dt[0].container&&v.focusItemByElement(dt[0].container),dt[0].onClick(Ne)),dt.length>1){var bt=dt.shift();bt&&bt.container&&(v.focusItemByElement(bt.container),dt.push(bt)),v.mnemonics.set(ot,dt)}}})),sn.d&&v._register(Object(Xe.i)(V,Xe.c.KEY_DOWN,function(Ne){var ot=new dr.a(Ne);ot.equals(14)||ot.equals(11)?(v.focusedItem=v.viewItems.length-1,v.focusNext(),Xe.b.stop(Ne,!0)):(ot.equals(13)||ot.equals(12))&&(v.focusedItem=0,v.focusPrevious(),Xe.b.stop(Ne,!0))})),v._register(Object(Xe.i)(v.domNode,Xe.c.MOUSE_OUT,function(Ne){var ot=Ne.relatedTarget;Object(Xe.J)(ot,v.domNode)||(v.focusedItem=void 0,v.updateFocus(),Ne.stopPropagation())})),v._register(Object(Xe.i)(v.actionsList,Xe.c.MOUSE_OVER,function(Ne){var ot=Ne.target;if(!ot||!Object(Xe.J)(ot,v.actionsList)||ot===v.actionsList)return;for(;ot.parentElement!==v.actionsList&&ot.parentElement!==null;)ot=ot.parentElement;if(Object(Xe.H)(ot,"action-item")){var dt=v.focusedItem;v.setFocusedItem(ot),dt!==v.focusedItem&&v.updateFocus()}}));var be={parent:v};v.mnemonics=new Map,v.scrollableElement=v._register(new io.a(V,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var Ae=v.scrollableElement.getDomNode();return Ae.style.position="",v._register(Object(Xe.i)(Ae,Xe.c.MOUSE_UP,function(Ne){Ne.preventDefault()})),V.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",v.push(a,{icon:!0,label:!0,isMenu:!0}),t.appendChild(v.scrollableElement.getDomNode()),v.scrollableElement.scanDomNode(),v.viewItems.filter(function(Ne){return!(Ne instanceof ya)}).forEach(function(Ne,ot,dt){Ne.updatePositionInSet(ot+1,dt.length)}),v}return r.prototype.style=function(t){var a=this.getContainer(),h=t.foregroundColor?""+t.foregroundColor:"",v=t.backgroundColor?""+t.backgroundColor:"",V=t.borderColor?"1px solid "+t.borderColor:"",be=t.shadowColor?"0 2px 4px "+t.shadowColor:"";a.style.border=V,this.domNode.style.color=h,this.domNode.style.backgroundColor=v,a.style.boxShadow=be,this.viewItems&&this.viewItems.forEach(function(Ae){(Ae instanceof va||Ae instanceof ya)&&Ae.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 h=this.actionsList.children[a];if(t===h){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,h){if(t instanceof Mr.d)return new ya(a.context,t,{icon:!0});if(t instanceof wl){var v=new Ia(t,t.entries,h,a);if(a.enableMnemonics){var V=v.getMnemonic();if(V&&v.isEnabled()){var be=[];this.mnemonics.has(V)&&(be=this.mnemonics.get(V)),be.push(v),this.mnemonics.set(V,be)}}return v}else{var Ae={enableMnemonics:a.enableMnemonics};if(a.getKeyBinding){var Ne=a.getKeyBinding(t);if(Ne){var ot=Ne.getLabel();ot&&(Ae.keybinding=ot)}}var v=new va(a.context,t,Ae);if(a.enableMnemonics){var V=v.getMnemonic();if(V&&v.isEnabled()){var be=[];this.mnemonics.has(V)&&(be=this.mnemonics.get(V)),be.push(v),this.mnemonics.set(V,be)}}return v}},r}(Mr.a),va=function(s){Ks(r,s);function r(t,a,h){h===void 0&&(h={});var v=this;if(h.isMenu=!0,v=s.call(this,a,a,h)||this,v.options=h,v.options.icon=h.icon!==void 0?h.icon:!1,v.options.label=h.label!==void 0?h.label:!0,v.cssClass="",v.options.label&&h.enableMnemonics){var V=v.getAction().label;if(V){var be=ga.exec(V);be&&(v.mnemonic=(be[1]?be[1]:be[3]).toLocaleLowerCase())}}return v.runOnceToEnableMouseUp=new Jt.d(function(){if(!v.element)return;v._register(Object(Xe.i)(v.element,Xe.c.MOUSE_UP,function(Ae){if(Ae.defaultPrevented)return;Xe.b.stop(Ae,!0),v.onClick(Ae)}))},100),v._register(v.runOnceToEnableMouseUp),v}return r.prototype.render=function(t){if(s.prototype.render.call(this,t),!this.element)return;this.container=t,this.item=Object(Xe.p)(this.element,Object(Xe.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(Xe.p)(this.item,Object(Xe.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(Xe.p)(this.item,Object(Xe.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(Xe.p)(this.item,Object(Xe.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=Ll(t);this.options.enableMnemonics||(t=a),this.label&&this.label.setAttribute("aria-label",a.replace(/&&/g,"&"));var h=ga.exec(t);if(h){t=Zn.o(t),ma.lastIndex=0;for(var v=ma.exec(t);v&&v[1];)v=ma.exec(t);v&&(t=t.substr(0,v.index)+'<u aria-hidden="true">'+v[3]+"</u>"+t.substr(v.index+v[0].length)),t=t.replace(/&amp;&amp;/g,"&amp;"),this.item&&this.item.setAttribute("aria-keyshortcuts",(h[1]?h[1]:h[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=pn.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(Xe.P)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(Xe.e)(this.label,"icon"),this.cssClass&&Object(Xe.f)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(Xe.O)(this.label,"icon")},r.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(Xe.O)(this.element,"disabled"),this.item&&(Object(Xe.O)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(Xe.e)(this.element,"disabled"),this.item&&(Object(Xe.e)(this.item,"disabled"),Object(Xe.R)(this.item)))},r.prototype.updateChecked=function(){if(!this.item)return;this.getAction().checked?(Object(Xe.e)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(Xe.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)return;var t=this.element&&Object(Xe.H)(this.element,"focused"),a=t&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,h=t&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,v=t&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=a?a.toString():"",this.item.style.backgroundColor=h?h.toString():""),this.check&&(this.check.style.color=a?a.toString():""),this.container&&(this.container.style.border=v)},r.prototype.style=function(t){this.menuStyle=t,this.applyStyle()},r}(Mr.c),Ia=function(s){Ks(r,s);function r(t,a,h,v){var V=s.call(this,t,t,v)||this;return V.submenuActions=a,V.parentData=h,V.submenuOptions=v,V.mysubmenu=null,V.submenuDisposables=V._register(new zt.b),V.mouseOver=!1,V.expandDirection=v&&v.expandDirection!==void 0?v.expandDirection:Gs.Right,V.showScheduler=new Jt.d(function(){V.mouseOver&&(V.cleanupExistingSubmenu(!1),V.createSubmenu(!1))},250),V.hideScheduler=new Jt.d(function(){V.element&&!Object(Xe.J)(document.activeElement,V.element)&&V.parentData.submenu===V.mysubmenu&&(V.parentData.parent.focus(!1),V.cleanupExistingSubmenu(!0))},750),V}return r.prototype.render=function(t){var a=this;if(s.prototype.render.call(this,t),!this.element)return;this.item&&(Object(Xe.e)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(Xe.p)(this.item,Object(Xe.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(Xe.i)(this.element,Xe.c.KEY_UP,function(h){var v=new dr.a(h);(v.equals(17)||v.equals(3))&&(Xe.b.stop(h,!0),a.createSubmenu(!0))})),this._register(Object(Xe.i)(this.element,Xe.c.KEY_DOWN,function(h){var v=new dr.a(h);document.activeElement===a.item&&((v.equals(17)||v.equals(3))&&Xe.b.stop(h,!0))})),this._register(Object(Xe.i)(this.element,Xe.c.MOUSE_OVER,function(h){a.mouseOver||(a.mouseOver=!0,a.showScheduler.schedule())})),this._register(Object(Xe.i)(this.element,Xe.c.MOUSE_LEAVE,function(h){a.mouseOver=!1})),this._register(Object(Xe.i)(this.element,Xe.c.FOCUS_OUT,function(h){a.element&&!Object(Xe.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){Xe.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)return;if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(Xe.p)(this.element,Object(Xe.a)("div.monaco-submenu")),Object(Xe.f)(this.submenuContainer,"menubar-menu-items-holder","context-view");var h=getComputedStyle(this.parentData.parent.domNode),v=parseFloat(h.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-v+"px",this.parentData.submenu=new Ra(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var V=this.element.getBoundingClientRect(),be=this.submenuContainer.getBoundingClientRect();this.expandDirection===Gs.Right?window.innerWidth<=V.right+be.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+V.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-v+"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-v+"px"),this.submenuDisposables.add(Object(Xe.i)(this.submenuContainer,Xe.c.KEY_UP,function(Ae){var Ne=new dr.a(Ae);Ne.equals(15)&&(Xe.b.stop(Ae,!0),a.parentData.parent.focus(),a.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(Xe.i)(this.submenuContainer,Xe.c.KEY_DOWN,function(Ae){var Ne=new dr.a(Ae);Ne.equals(15)&&Xe.b.stop(Ae,!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)return;var t=this.element&&Object(Xe.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}(va),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 Ll(s){var r=ga,t=r.exec(s);if(!t)return s;var a=!t[1];return s.replace(r,a?"$2$3":"").trim()}var Dl=o("ptcw"),Pa=o("4y0V"),Ol=o("XSiN"),Ml=function(){function s(r,t,a,h,v){this.contextViewService=r,this.telemetryService=t,this.notificationService=a,this.keybindingService=h,this.themeService=v,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)return;this.focusToReturn=document.activeElement;var h;this.contextViewService.showContextView({getAnchor:function(){return r.getAnchor()},canRelayout:!1,anchorAlignment:r.anchorAlignment,render:function(V){var be=r.getMenuClassName?r.getMenuClassName():"";be&&(V.className+=" "+be),t.options.blockMouse&&(t.block=V.appendChild(Object(Xe.a)(".context-view-block")));var Ae=new zt.b,Ne=r.actionRunner||new ro.b;return Ne.onDidBeforeRun(t.onActionRun,t,Ae),Ne.onDidRun(t.onDidActionRun,t,Ae),h=new Ra(V,a,{actionViewItemProvider:r.getActionViewItem,context:r.getActionsContext?r.getActionsContext():null,actionRunner:Ne,getKeyBinding:r.getKeyBinding?r.getKeyBinding:function(ot){return t.keybindingService.lookupKeybinding(ot.id)}}),Ae.add(Object(Dl.c)(h,t.themeService)),h.onDidCancel(function(){return t.contextViewService.hideContextView(!0)},null,Ae),h.onDidBlur(function(){return t.contextViewService.hideContextView(!0)},null,Ae),Object(Pa.a)(window,Xe.c.BLUR)(function(){t.contextViewService.hideContextView(!0)},null,Ae),Object(Pa.a)(window,Xe.c.MOUSE_DOWN)(function(ot){if(ot.defaultPrevented)return;var dt=new Ol.a(ot),bt=dt.target;if(dt.rightButton)return;for(;bt;){if(bt===V)return;bt=bt.parentElement}t.contextViewService.hideContextView(!0)},null,Ae),Object(zt.e)(Ae,h)},focus:function(){h&&h.focus(!!r.autoSelectFirstItem)},onHide:function(V){r.onHide&&r.onHide(!!V),t.block&&(Object(Xe.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}(),ba=o("XXUj"),Tl=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),xl=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},Xs=function(s,r){return function(t,a){r(t,a,s)}},Al=function(s){Tl(r,s);function r(t,a,h,v,V){var be=s.call(this)||this;return be._onDidContextMenu=be._register(new N.a),be.contextMenuHandler=new Ml(h,t,a,v,V),be}return r.prototype.configure=function(t){this.contextMenuHandler.configure(t)},r.prototype.showContextMenu=function(t){this.contextMenuHandler.showContextMenu(t),this._onDidContextMenu.fire()},r=xl([Xs(0,ba.a),Xs(1,Sr.a),Xs(2,Er.b),Xs(3,_i.a),Xs(4,Fi.c)],r),r}(zt.a),Nd=o("TT2d"),Nl=o("nuFA"),Rl=o("CjF5"),Il=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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 ka(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 Pl=function(s){Il(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=Xe.a(".context-view"),Xe.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 h=new zt.b;r.BUBBLE_UP_EVENTS.forEach(function(v){h.add(Xe.n(a.container,v,function(V){a.onDOMEvent(V,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(v){h.add(Xe.n(a.container,v,function(V){a.onDOMEvent(V,!0)},!0))}),this.toDisposeOnSetContainer=h}},r.prototype.show=function(t){this.isVisible()&&this.hide(),Xe.s(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",Xe.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())return;if(this.delegate.canRelayout===!1&&!(sn.c&&Rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var t=this.delegate.getAnchor(),a;if(Xe.K(t)){var h=Xe.B(t);a={top:h.top,left:h.left,width:h.width,height:h.height}}else a={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var v=Xe.G(this.view),V=Xe.F(this.view),be=this.delegate.anchorPosition||0,Ae=this.delegate.anchorAlignment||0,Ne={offset:a.top-window.pageYOffset,size:a.height,position:be===0?0:1},ot;Ae===0?ot={offset:a.left,size:0,position:0}:ot={offset:a.left+a.width,size:0,position:1};var dt=ka(window.innerHeight,V,Ne)+window.pageYOffset;Nl.a.intersects({start:dt,end:dt+V},{start:Ne.offset,end:Ne.offset+Ne.size})&&(ot.size=a.width,Ae===1&&(ot.offset=a.left));var bt=ka(window.innerWidth,v,ot);Xe.P(this.view,"top","bottom","left","right"),Xe.e(this.view,be===0?"bottom":"top"),Xe.e(this.view,Ae===0?"left":"right");var mt=Xe.B(this.container);this.view.style.top=dt-mt.top+"px",this.view.style.left=bt-mt.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(),Xe.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&&!Xe.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),Fa=Object(Yt.c)("layoutService"),kl=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),Fl=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},jl=function(s,r){return function(t,a){r(t,a,s)}},Wl=function(s){kl(r,s);function r(t){var a=s.call(this)||this;return a.layoutService=t,a.contextView=a._register(new Pl(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=Fl([jl(0,Fa)],r),r}(zt.a),Bl=Object(Yt.c)("dialogService"),Ca=o("vl9R");function Ul(s){return{data:s,incoming:Object.create(null),outgoing:Object.create(null)}}var Vl=function(){function s(r){this._hashFn=r,this._nodes=Object.create(null)}return s.prototype.roots=function(){var r=[];return Object(Ca.b)(this._nodes,function(t){Object(ln.f)(t.value.outgoing)&&r.push(t.value)}),r},s.prototype.insertEdge=function(r,t){var a=this.lookupOrInsertNode(r),h=this.lookupOrInsertNode(t);a.outgoing[this._hashFn(t)]=h,h.incoming[this._hashFn(r)]=a},s.prototype.removeNode=function(r){var t=this._hashFn(r);delete this._nodes[t],Object(Ca.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=Ul(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(Ca.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}(),Ys=o("r0BQ"),ja=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),Ea=function(){for(var s=0,r=0,t=arguments.length;r<t;r++)s+=arguments[r].length;for(var a=Array(s),h=0,r=0;r<t;r++)for(var v=arguments[r],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},Wa=!1,Hl=typeof Proxy=="function",Ba=function(s){ja(r,s);function r(t){var a=s.call(this,"cyclic dependency between services")||this;return a.message=t.toString(),a}return r}(Error),Ua=function(){function s(r,t,a){r===void 0&&(r=new Wr.a),t===void 0&&(t=!1),this._services=r,this._strict=t,this._parent=a,this._services.set(Yt.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=[],h=1;h<arguments.length;h++)a[h-1]=arguments[h];var v=_a.traceInvocation(r),V=!1;try{var be={get:function(Ne,ot){if(V)throw Object(nn.c)("service accessor is only valid during the invocation of its target method");var dt=t._getOrCreateServiceInstance(Ne,v);if(!dt&&ot!==Yt.d)throw new Error("[invokeFunction] unknown service '"+Ne+"'");return dt}};return r.apply(void 0,Ea([be],a))}finally{V=!0,v.stop()}},s.prototype.createInstance=function(r){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];var h,v;return r instanceof Ys.a?(h=_a.traceCreation(r.ctor),v=this._createInstance(r.ctor,r.staticArguments.concat(t),h)):(h=_a.traceCreation(r),v=this._createInstance(r,t,h)),h.stop(),v},s.prototype._createInstance=function(r,t,a){t===void 0&&(t=[]);for(var h=Yt.b.getServiceDependencies(r).sort(function(bt,mt){return bt.index-mt.index}),v=[],V=0,be=h;V<be.length;V++){var Ae=be[V],Ne=this._getOrCreateServiceInstance(Ae.id,a);if(!Ne&&this._strict&&!Ae.optional)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+Ae.id+".");v.push(Ne)}var ot=h.length>0?h[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,Ea([void 0],Ea(t,v))))},s.prototype._setServiceInstance=function(r,t){if(this._services.get(r)instanceof Ys.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 Ys.a?this._createAndCacheServiceInstance(r,a,t.branch(r,!0)):(t.branch(r,!1),a)},s.prototype._createAndCacheServiceInstance=function(r,t,a){for(var h=new Vl(function(rn){return rn.id.toString()}),v=0,V=[{id:r,desc:t,_trace:a}];V.length;){var be=V.pop();if(h.lookupOrInsertNode(be),v++>150)throw new Ba(h);for(var Ae=0,Ne=Yt.b.getServiceDependencies(be.desc.ctor);Ae<Ne.length;Ae++){var ot=Ne[Ae],dt=this._getServiceInstanceOrDescriptor(ot.id);if(!dt&&!ot.optional&&console.warn("[createInstance] "+r+" depends on "+ot.id+" which is NOT registered."),dt instanceof Ys.a){var bt={id:ot.id,desc:dt,_trace:be._trace.branch(ot.id,!0)};h.insertEdge(be,bt),V.push(bt)}}}for(;;){var mt=h.roots();if(mt.length===0){if(!h.isEmpty())throw new Ba(h);break}for(var $t=0,Kt=mt;$t<Kt.length;$t++){var Wt=Kt[$t].data,Bt=this._createServiceInstanceWithOwner(Wt.id,Wt.desc.ctor,Wt.desc.staticArguments,Wt.desc.supportsDelayedInstantiation,Wt._trace);this._setServiceInstance(Wt.id,Bt),h.removeNode(Wt)}}return this._getServiceInstanceOrDescriptor(r)},s.prototype._createServiceInstanceWithOwner=function(r,t,a,h,v){if(a===void 0&&(a=[]),this._services.get(r)instanceof Ys.a)return this._createServiceInstance(t,a,h,v);if(this._parent)return this._parent._createServiceInstanceWithOwner(r,t,a,h,v);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)},s.prototype._createServiceInstance=function(r,t,a,h){var v=this;if(t===void 0&&(t=[]),!a||!Hl)return this._createInstance(r,t,h);var V=new Jt.b(function(){return v._createInstance(r,t,h)});return new Proxy(Object.create(null),{get:function(Ae,Ne){if(Ne in Ae)return Ae[Ne];var ot=V.getValue(),dt=ot[Ne];return typeof dt!="function"||(dt=dt.bind(ot),Ae[Ne]=dt),dt},set:function(Ae,Ne,ot){return V.getValue()[Ne]=ot,!0}})},s}(),_a=function(){function s(r,t){this.type=r,this.name=t,this._start=Date.now(),this._dep=[]}return s.traceInvocation=function(r){return Wa?new s(1,r.name||r.toString().substring(0,42).replace(/\n/g,"")):s._None},s.traceCreation=function(r){return Wa?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(v,V){for(var be=[],Ae=new Array(v+1).join(" "),Ne=0,ot=V._dep;Ne<ot.length;Ne++){var dt=ot[Ne],bt=dt[0],mt=dt[1],$t=dt[2];if(mt&&$t){t=!0,be.push(Ae+"CREATES -> "+bt);var Kt=a(v+1,$t);Kt&&be.push(Kt)}else be.push(Ae+"uses -> "+bt)}return be.join(`
`)}var h=[(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(h.join(`
`))},s._None=new(function(r){ja(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}(),zl=o("R8sh"),Va=o("k9mg"),fo=o("tADe"),ns;(function(s){function r(h,v,V){return h[v]?h[v][V]:void 0}s.get=r;function t(h,v,V,be){h[v]||(h[v]=Object.create(null)),h[v][V]=be}s.set=t;function a(h,v,V){return h[v]&&h[v][V]?(delete h[v][V],Object(ln.f)(h[v])&&delete h[v],!0):!1}s.remove=a})(ns||(ns={}));var Kl=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)return;for(var t=0,a=r;t<a.length;t++){var h=a[t],v=h.toString(),V=this._data[v];V&&this._substract(V);var be=this._resourceStats(h);this._add(be),this._data[v]=be}},s.prototype._resourceStats=function(r){var t={errors:0,warnings:0,infos:0,unknowns:0};if(r.scheme===Fe.b.inMemory||r.scheme===Fe.b.walkThrough||r.scheme===Fe.b.walkThroughSnippet)return t;for(var a=0,h=this._service.read({resource:r});a<h.length;a++){var v=h[a].severity;v===fo.c.Error?t.errors+=1:v===fo.c.Warning?t.warnings+=1:v===fo.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}(),Gl=function(){function s(){this._onMarkerChanged=new N.a,this._onMarkerChangedEvent=N.b.debounce(this._onMarkerChanged.event,s._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new Kl(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,h=t||[];a<h.length;a++){var v=h[a];this.changeOne(r,v,[])}},s.prototype.changeOne=function(r,t,a){if(Object(tn.p)(a)){var h=ns.remove(this._byResource,t.toString(),r),v=ns.remove(this._byOwner,r,t.toString());if(h!==v)throw new Error("invalid marker service state");h&&v&&this._onMarkerChanged.fire([t])}else{for(var V=[],be=0,Ae=a;be<Ae.length;be++){var Ne=Ae[be],ot=s._toMarker(r,t,Ne);ot&&V.push(ot)}ns.set(this._byResource,t.toString(),r,V),ns.set(this._byOwner,r,t.toString(),V),this._onMarkerChanged.fire([t])}},s._toMarker=function(r,t,a){var h=a.code,v=a.severity,V=a.message,be=a.source,Ae=a.startLineNumber,Ne=a.startColumn,ot=a.endLineNumber,dt=a.endColumn,bt=a.relatedInformation,mt=a.tags;return V?(Ae=Ae>0?Ae:1,Ne=Ne>0?Ne:1,ot=ot>=Ae?ot:Ae,dt=dt>0?dt:Ne,{resource:t,owner:r,code:h,severity:v,message:V,source:be,startLineNumber:Ae,startColumn:Ne,endLineNumber:ot,endColumn:dt,relatedInformation:bt,tags:mt}):void 0},s.prototype.read=function(r){r===void 0&&(r=Object.create(null));var t=r.owner,a=r.resource,h=r.severities,v=r.take;if((!v||v<0)&&(v=-1),t&&a){var V=ns.get(this._byResource,a.toString(),t);if(V){for(var be=[],Ae=0,Ne=V;Ae<Ne.length;Ae++){var ot=Ne[Ae];if(s._accept(ot,h)){var dt=be.push(ot);if(v>0&&dt===v)break}}return be}else return[]}else if(!t&&!a){var be=[];for(var bt in this._byResource)for(var mt in this._byResource[bt])for(var $t=0,Kt=this._byResource[bt][mt];$t<Kt.length;$t++){var V=Kt[$t];if(s._accept(V,h)){var dt=be.push(V);if(v>0&&dt===v)return be}}return be}else{var Wt=t?this._byOwner[t]:a?this._byResource[a.toString()]:void 0;if(!Wt)return[];var be=[];for(var Bt in Wt)for(var rn=0,cn=Wt[Bt];rn<cn.length;rn++){var V=cn[rn];if(s._accept(V,h)){var dt=be.push(V);if(v>0&&dt===v)return be}}return be}},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,h=t;a<h.length;a++){var v=h[a];s._dedupeMap[v.toString()]===void 0&&(s._dedupeMap[v.toString()]=!0,r.push(v))}return r},s}(),Ha=o("A+jI"),za=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},Sa=function(s,r){return function(t,a){r(t,a,s)}},Xl=function(){function s(r){this._commandService=r}return s.prototype.createMenu=function(r,t){return new Yl(r,this._commandService,t)},s=za([Sa(0,we.b)],s),s}(),Yl=function(){function s(r,t,a){var h=this;this._id=r,this._commandService=t,this._contextKeyService=a,this._onDidChange=new N.a,this._dispoables=new zt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(N.b.debounce(N.b.filter(pr.c.onDidChangeMenu,function(v){return v===h._id}),function(){},50)(this._build,this)),this._dispoables.add(N.b.debounce(this._contextKeyService.onDidChangeContext,function(v,V){return v||V.affectsSome(h._contextKeys)},50)(function(v){return v&&h._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=pr.c.getMenuItems(this._id),t;r.sort(s._compareMenuItems);for(var a=0,h=r;a<h.length;a++){var v=h[a],V=v.group||"";(!t||t[0]!==V)&&(t=[V,[]],this._menuGroups.push(t)),t[1].push(v),s._fillInKbExprKeys(v.when,this._contextKeys),Object(pr.e)(v)&&v.command.precondition&&s._fillInKbExprKeys(v.command.precondition,this._contextKeys),Object(pr.e)(v)&&v.command.toggled&&s._fillInKbExprKeys(v.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},s.prototype.getActions=function(r){for(var t=[],a=0,h=this._menuGroups;a<h.length;a++){for(var v=h[a],V=v[0],be=v[1],Ae=[],Ne=0,ot=be;Ne<ot.length;Ne++){var dt=ot[Ne];if(this._contextKeyService.contextMatchesRules(dt.when)){var bt=Object(pr.e)(dt)?new pr.b(dt.command,dt.alt,r,this._contextKeyService,this._commandService):new pr.d(dt);Ae.push(bt)}}Ae.length>0&&t.push([V,Ae])}return t},s._fillInKbExprKeys=function(r,t){if(r)for(var a=0,h=r.keys();a<h.length;a++){var v=h[a];t.add(v)}},s._compareMenuItems=function(r,t){var a=r.group,h=t.group;if(a!==h){if(a){if(!h)return-1}else return 1;if(a==="navigation")return-1;if(h==="navigation")return 1;var v=a.localeCompare(h);if(v!==0)return v}var V=r.order||0,be=t.order||0;return V<be?-1:V>be?1:s._compareTitles(Object(pr.e)(r)?r.command.title:r.title,Object(pr.e)(t)?t.command.title:t.title)},s._compareTitles=function(r,t){var a=typeof r=="string"?r:r.value,h=typeof t=="string"?t:t.value;return a.localeCompare(h)},s=za([Sa(1,we.b),Sa(2,Ei.c)],s),s}(),Zl=o("79sc"),Ka=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),$l=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},Ga=function(s,r){return function(t,a){r(t,a,s)}};function Zs(s){return s.toString()}var Ql=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 h=Object(zr.d)(this._markersData);this._markersData.clear();for(var v=this.model.deltaDecorations(h,a),V=0;V<v.length;V++)this._markersData.set(v[V],t[V])},r.prototype.getMarker=function(t){return this._markersData.get(t.id)},r}(zt.a),Jl=function(s){Ka(r,s);function r(t,a){var h=s.call(this)||this;return h._markerService=a,h._onDidChangeMarker=h._register(new N.a),h._markerDecorations=new Map,t.getModels().forEach(function(v){return h._onModelAdded(v)}),h._register(t.onModelAdded(h._onModelAdded,h)),h._register(t.onModelRemoved(h._onModelRemoved,h)),h._register(h._markerService.onMarkerChanged(h._handleMarkerChange,h)),h}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 h=this._markerDecorations.get(Zs(t.uri));return h?Object(ln.o)(h.getMarker(a)):null},r.prototype._handleMarkerChange=function(t){var a=this;t.forEach(function(h){var v=a._markerDecorations.get(Zs(h));v&&a._updateDecorations(v)})},r.prototype._onModelAdded=function(t){var a=new Ql(t);this._markerDecorations.set(Zs(t.uri),a),this._updateDecorations(a)},r.prototype._onModelRemoved=function(t){var a=this,h=this._markerDecorations.get(Zs(t.uri));h&&(h.dispose(),this._markerDecorations.delete(Zs(t.uri))),(t.uri.scheme===Fe.b.inMemory||t.uri.scheme===Fe.b.internal||t.uri.scheme===Fe.b.vscode)&&(this._markerService&&this._markerService.read({resource:t.uri}).map(function(v){return v.owner}).forEach(function(v){return a._markerService.remove(v,[t.uri])}))},r.prototype._updateDecorations=function(t){var a=this,h=this._markerService.read({resource:t.model.uri,take:500}),v=h.map(function(V){return{range:a._createDecorationRange(t.model,V),options:a._createDecorationOption(V)}});t.update(h,v),this._onDidChangeMarker.fire(t.model)},r.prototype._createDecorationRange=function(t,a){var h=G.a.lift(a);if(a.severity===fo.c.Hint&&!this._hasMarkerTag(a,1)&&!this._hasMarkerTag(a,2)&&(h=h.setEndPosition(h.startLineNumber,h.startColumn+2)),h=t.validateRange(h),h.isEmpty()){var v=t.getWordAtPosition(h.getStartPosition());if(v)h=new G.a(h.startLineNumber,v.startColumn,h.endLineNumber,v.endColumn);else{var V=t.getLineLastNonWhitespaceColumn(h.startLineNumber)||t.getLineMaxColumn(h.startLineNumber);V===1||(h.endColumn>=V?h=new G.a(h.startLineNumber,V-1,h.endLineNumber,V):h=new G.a(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn+1))}}else if(a.endColumn===Number.MAX_VALUE&&a.startColumn===1&&h.startLineNumber===h.endLineNumber){var be=t.getLineFirstNonWhitespaceColumn(a.startLineNumber);be<h.endColumn&&(h=new G.a(h.startLineNumber,be,h.endLineNumber,h.endColumn),a.startColumn=be)}return h},r.prototype._createDecorationOption=function(t){var a,h=void 0,v,V=void 0,be;switch(t.severity){case fo.c.Hint:this._hasMarkerTag(t,2)?a=void 0:this._hasMarkerTag(t,1)?a="squiggly-unnecessary":a="squiggly-hint",v=0;break;case fo.c.Warning:a="squiggly-warning",h=Object(Fi.f)(br.q),v=20,be={color:Object(Fi.f)(wi.Ib),position:pt.c.Inline};break;case fo.c.Info:a="squiggly-info",h=Object(Fi.f)(br.p),v=10;break;case fo.c.Error:default:a="squiggly-error",h=Object(Fi.f)(br.o),v=30,be={color:Object(Fi.f)(wi.Fb),position:pt.c.Inline};break}return t.tags&&(t.tags.indexOf(1)!==-1&&(V="squiggly-inline-unnecessary"),t.tags.indexOf(2)!==-1&&(V="squiggly-inline-deprecated")),{stickiness:1,className:a,showIfCollapsed:!0,overviewRuler:{color:h,position:pt.d.Right},minimap:be,zIndex:v,inlineClassName:V}},r.prototype._hasMarkerTag=function(t,a){return t.tags?t.tags.indexOf(a)>=0:!1},r=$l([Ga(0,Ft.a),Ga(1,fo.b)],r),r}(zt.a),ql=o("9fML"),eu=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),tu=function(s,r,t,a){var h=arguments.length,v=h<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,r,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(r,t,v):V(r,t))||v);return h>3&&v&&Object.defineProperty(r,t,v),v},Xa=function(s,r){return function(t,a){r(t,a,s)}},nu=function(s){eu(r,s);function r(t,a){var h=s.call(this)||this;h._contextKeyService=t,h._configurationService=a,h._accessibilitySupport=0,h._onDidChangeScreenReaderOptimized=new N.a,h._accessibilityModeEnabledContext=Zi.a.bindTo(h._contextKeyService);var v=function(){return h._accessibilityModeEnabledContext.set(h.isScreenReaderOptimized())};return h._register(h._configurationService.onDidChangeConfiguration(function(V){V.affectsConfiguration("editor.accessibilitySupport")&&(v(),h._onDidChangeScreenReaderOptimized.fire())})),v(),h.onDidChangeScreenReaderOptimized(function(){return v()}),h}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=tu([Xa(0,Ei.c),Xa(1,Ai.a)],r),r}(zt.a),iu=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},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)}}(),fi;(function(s){var r=new Wr.a,t=function(){function be(Ae,Ne){this._serviceId=Ae,this._factory=Ne,this._value=null}return Object.defineProperty(be.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),be.prototype.get=function(Ae){if(!this._value){if(Ae&&(this._value=Ae[this._serviceId.toString()]),this._value||(this._value=this._factory(Ae)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},be}();s.LazyStaticService=t;var a=[];function h(be,Ae){var Ne=new t(be,Ae);return a.push(Ne),Ne}function v(be){for(var Ae=new Wr.a,Ne=0,ot=Object(ql.a)();Ne<ot.length;Ne++){var dt=ot[Ne],bt=dt[0],mt=dt[1];Ae.set(bt,mt)}for(var $t in be)be.hasOwnProperty($t)&&Ae.set(Object(Yt.c)($t),be[$t]);a.forEach(function(Wt){return Ae.set(Wt.id,Wt.get(be))});var Kt=new Ua(Ae,!0);return Ae.set(Yt.a,Kt),[Ae,Kt]}s.init=v,s.instantiationService=h(Yt.a,function(){return new Ua(r,!0)});var V=new Mo;s.configurationService=h(Ai.a,function(){return V}),s.resourceConfigurationService=h(Zt,function(){return new zo(V)}),s.resourcePropertiesService=h(un,function(){return new gs(V)}),s.contextService=h(xs.a,function(){return new Rs}),s.labelService=h(zl.a,function(){return new ta}),s.telemetryService=h(ba.a,function(){return new jr}),s.dialogService=h(Bl,function(){return new fs}),s.notificationService=h(Sr.a,function(){return new ps}),s.markerService=h(fo.b,function(){return new Gl}),s.modeService=h(Es.a,function(be){return new y}),s.standaloneThemeService=h(uo,function(){return new pl}),s.logService=h(fn.a,function(){return new fn.c}),s.modelService=h(Ft.a,function(be){return new rt(s.configurationService.get(be),s.resourcePropertiesService.get(be),s.standaloneThemeService.get(be),s.logService.get(be))}),s.markerDecorationsService=h(Zl.a,function(be){return new Jl(s.modelService.get(be),s.markerService.get(be))}),s.codeEditorService=h(Ke.a,function(be){return new Qi(s.standaloneThemeService.get(be))}),s.editorProgressService=h(bo.a,function(){return new Vo}),s.storageService=h(Ha.a,function(){return new Ha.b}),s.editorWorkerService=h(Lt.a,function(be){return new ct(s.modelService.get(be),s.resourceConfigurationService.get(be),s.logService.get(be))})})(fi||(fi={}));var ru=function(s){iu(r,s);function r(t,a){var h=s.call(this)||this,v=fi.init(a),V=v[0],be=v[1];h._serviceCollection=V,h._instantiationService=be;var Ae=h.get(Ai.a),Ne=h.get(Sr.a),ot=h.get(ba.a),dt=h.get(Fi.c),bt=function(cn,wn){var En=null;return a&&(En=a[cn.toString()]),En||(En=wn()),h._serviceCollection.set(cn,En),En},mt=bt(Ei.c,function(){return h._register(new Cl(Ae))});bt(Zi.b,function(){return new nu(mt,Ae)}),bt(Va.a,function(){return new Va.b(dt)});var $t=bt(we.b,function(){return new Ho(h._instantiationService)}),Kt=bt(_i.a,function(){return h._register(new yo(mt,$t,ot,Ne,t))}),Wt=bt(Fa,function(){return new Is(t)}),Bt=bt(Er.b,function(){return h._register(new Wl(Wt))});return bt(Er.a,function(){var rn=new Al(ot,Ne,Bt,Kt,dt);return rn.configure({blockMouse:!1}),h._register(rn)}),bt(pr.a,function(){return new Xl($t)}),bt($o.a,function(){return new ri(fi.modelService.get(Ft.a))}),h}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 Ya(s,r,t){var a=new ru(s,r),h=null;a.has(Vt.a)||(h=new Yr(fi.modelService.get()),a.set(Vt.a,h)),a.has(F.a)||a.set(F.a,new Rt(a.get(Ke.a),a.get(we.b)));var v=t(a);return h&&h.setEditor(v),v}function ou(s,r,t){return Ya(s,t||{},function(a){return new co(s,r,a,a.get(Yt.a),a.get(Ke.a),a.get(we.b),a.get(Ei.c),a.get(_i.a),a.get(Er.b),a.get(uo),a.get(Sr.a),a.get(Ai.a),a.get(Zi.b))})}function su(s){return fi.codeEditorService.get().onCodeEditorAdd(function(r){s(r)})}function au(s,r,t){return Ya(s,t||{},function(a){return new Po(s,r,a,a.get(Yt.a),a.get(Ei.c),a.get(_i.a),a.get(Er.b),a.get(Lt.a),a.get(Ke.a),a.get(uo),a.get(Sr.a),a.get(Ai.a),a.get(Er.a),a.get(bo.a),null)})}function lu(s,r){return new yn(s,r)}function Za(s,r,t){return fi.modelService.get().createModel(s,r,t)}function uu(s,r,t){if(s=s||"",!r){var a=s.indexOf(`
`),h=s;return a!==-1&&(h=s.substring(0,a)),Za(s,fi.modeService.get().createByFilepathOrFirstLine(t||null,h),t)}return Za(s,fi.modeService.get().create(r),t)}function du(s,r){fi.modelService.get().setMode(s,fi.modeService.get().create(r))}function cu(s,r,t){s&&fi.markerService.get().changeOne(r,s.uri,t)}function hu(s){return fi.markerService.get().read(s)}function fu(s){return fi.modelService.get().getModel(s)}function pu(){return fi.modelService.get().getModels()}function gu(s){return fi.modelService.get().onModelAdded(s)}function mu(s){return fi.modelService.get().onModelRemoved(s)}function vu(s){return fi.modelService.get().onModelModeChanged(function(r){s({model:r.model,oldLanguage:r.oldModeId})})}function yu(s){return J(fi.modelService.get(),s)}function bu(s,r){return Hr.colorizeElement(fi.standaloneThemeService.get(),fi.modeService.get(),s,r)}function Cu(s,r,t){return Hr.colorize(fi.modeService.get(),s,r,t)}function Eu(s,r,t){return t===void 0&&(t=4),Hr.colorizeModelLine(s,r,t)}function _u(s){var r=gt.y.get(s);return r||{getInitialState:function(){return Dt.c},tokenize:function(a,h,v){return Object(Dt.d)(s,a,h,v)}}}function Su(s,r){var t=fi.modeService.get();t.triggerMode(r);for(var a=_u(r),h=s.split(/\r\n|\r|\n/),v=[],V=a.getInitialState(),be=0,Ae=h.length;be<Ae;be++){var Ne=h[be],ot=a.tokenize(Ne,V,0);v[be]=ot.tokens,V=ot.endState}return v}function wu(s,r){fi.standaloneThemeService.get().defineTheme(s,r)}function Lu(s){fi.standaloneThemeService.get().setTheme(s)}function Du(){Object(si.b)()}function Ou(){return{create:ou,onDidCreateEditor:su,createDiffEditor:au,createDiffNavigator:lu,createModel:uu,setModelLanguage:du,setModelMarkers:cu,getModelMarkers:hu,getModels:pu,getModel:fu,onDidCreateModel:gu,onWillDisposeModel:mu,onDidChangeModelLanguage:vu,createWebWorker:yu,colorizeElement:bu,colorize:Cu,colorizeModelLine:Eu,tokenize:Su,defineTheme:wu,setTheme:Lu,remeasureFonts:Du,AccessibilitySupport:x,ContentWidgetPositionPreference:H,CursorChangeReason:E,DefaultEndOfLine:f,EditorAutoIndentStrategy:g,EditorOption:m,EndOfLinePreference:w,EndOfLineSequence:B,MinimapPosition:Se,MouseTargetType:q,OverlayWidgetPositionPreference:Z,OverviewRulerLane:ce,RenderLineNumbersType:Te,RenderMinimap:Ve,ScrollbarVisibility:de,ScrollType:Ee,TextEditorCursorBlinkingStyle:me,TextEditorCursorStyle:ye,TrackedRangeStickiness:He,WrappingIndent:tt,ConfigurationChangedEvent:I.a,BareFontInfo:Mn.a,FontInfo:Mn.b,TextModelResolvedOptions:pt.e,FindMatch:pt.b,EditorType:kt.a,EditorOptions:I.e}}function Mu(s,r){if(!r)return!1;if(!Array.isArray(r))return!1;for(var t=0,a=r;t<a.length;t++){var h=a[t];if(!s(h))return!1}return!0}function $a(s,r){return typeof s=="boolean"?s:r}function Qa(s,r){return typeof s=="string"?s:r}function Tu(s){for(var r={},t=0,a=s;t<a.length;t++){var h=a[t];r[h]=!0}return r}function Ja(s,r){r===void 0&&(r=!1),r&&(s=s.map(function(a){return a.toLowerCase()}));var t=Tu(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 wa(s,r){for(var t=0;r.indexOf("@")>=0&&t<5;)t++,r=r.replace(/@(\w+)/g,function(a,h){var v="";if(typeof s[h]=="string")v=s[h];else if(s[h]&&s[h]instanceof RegExp)v=s[h].source;else throw s[h]===void 0?mn(s,"language definition does not contain attribute '"+h+"', used at: "+r):mn(s,"attribute reference '"+h+"' must be a string, used at: "+r);return At(v)?"":"(?:"+v+")"});return new RegExp(r,s.ignoreCase?"i":"")}function xu(s,r,t,a){if(a<0)return s;if(a<r.length)return r[a];if(a>=100){a=a-100;var h=t.split(".");if(h.unshift(t),a<h.length)return h[a]}return null}function Au(s,r,t,a){var h=-1,v=t,V=t.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);V&&(V[3]&&(h=parseInt(V[3]),V[2]&&(h=h+100)),v=V[4]);var be="~",Ae=v;!v||v.length===0?(be="!=",Ae=""):/^\w*$/.test(Ae)?be="==":(V=v.match(/^(@|!@|~|!~|==|!=)(.*)$/),V&&(be=V[1],Ae=V[2]));var Ne;if((be==="~"||be==="!~")&&/^(\w|\|)*$/.test(Ae)){var ot=Ja(Ae.split("|"),s.ignoreCase);Ne=function(Bt){return be==="~"?ot(Bt):!ot(Bt)}}else if(be==="@"||be==="!@"){var dt=s[Ae];if(!dt)throw mn(s,"the @ match target '"+Ae+"' is not defined, in rule: "+r);if(!Mu(function(Wt){return typeof Wt=="string"},dt))throw mn(s,"the @ match target '"+Ae+"' must be an array of strings, in rule: "+r);var bt=Ja(dt,s.ignoreCase);Ne=function(Bt){return be==="@"?bt(Bt):!bt(Bt)}}else if(be==="~"||be==="!~")if(Ae.indexOf("$")<0){var mt=wa(s,"^"+Ae+"$");Ne=function(Bt){return be==="~"?mt.test(Bt):!mt.test(Bt)}}else Ne=function(Bt,rn,cn,wn){var En=wa(s,"^"+Vn(s,Ae,rn,cn,wn)+"$");return En.test(Bt)};else if(Ae.indexOf("$")<0){var $t=jt(s,Ae);Ne=function(Bt){return be==="=="?Bt===$t:Bt!==$t}}else{var Kt=jt(s,Ae);Ne=function(Bt,rn,cn,wn,En){var Fn=Vn(s,Kt,rn,cn,wn);return be==="=="?Bt===Fn:Bt!==Fn}}return h===-1?{name:t,value:a,test:function(Bt,rn,cn,wn){return Ne(Bt,Bt,rn,cn,wn)}}:{name:t,value:a,test:function(Bt,rn,cn,wn){var En=xu(Bt,rn,cn,h);return Ne(En||"",Bt,rn,cn,wn)}}}function La(s,r,t){if(t){if(typeof t=="string")return t;if(t.token||t.token===""){if(typeof t.token!="string")throw mn(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 mn(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(t.next){if(typeof t.next!="string")throw mn(s,"the next state must be a string value in rule: "+r);var h=t.next;if(!/^(@pop|@push|@popall)$/.test(h)&&(h[0]==="@"&&(h=h.substr(1)),h.indexOf("$")<0&&!Yn(s,Vn(s,h,"",[],""))))throw mn(s,"the next state '"+t.next+"' is not defined in rule: "+r);a.next=h}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 v=[],V=0,be=t.length;V<be;V++)v[V]=La(s,r,t[V]);return{group:v}}else if(t.cases){var Ae=[];for(var Ne in t.cases)if(t.cases.hasOwnProperty(Ne)){var ot=La(s,r,t.cases[Ne]);Ne==="@default"||Ne==="@"||Ne===""?Ae.push({test:void 0,value:ot,name:Ne}):Ne==="@eos"?Ae.push({test:function(mt,$t,Kt,Wt){return Wt},value:ot,name:Ne}):Ae.push(Au(s,r,Ne,ot))}var dt=s.defaultToken;return{test:function(mt,$t,Kt,Wt){for(var Bt=0,rn=Ae;Bt<rn.length;Bt++){var cn=rn[Bt],wn=!cn.test||cn.test(mt,$t,Kt,Wt);if(wn)return cn.value}return dt}}}else throw mn(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 Nu=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 mn(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=wa(r,"^(?:"+(this.matchOnlyAtLineStart?a.substr(1):a)+")")},s.prototype.setAction=function(r,t){this.action=La(r,this.name,t)},s}();function Ru(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=$a(r.ignoreCase,!1),t.tokenPostfix=Qa(r.tokenPostfix,"."+t.languageId),t.defaultToken=Qa(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 h(bt,mt,$t){for(var Kt=0,Wt=$t;Kt<Wt.length;Kt++){var Bt=Wt[Kt],rn=Bt.include;if(rn){if(typeof rn!="string")throw mn(t,"an 'include' attribute must be a string at: "+bt);if(rn[0]==="@"&&(rn=rn.substr(1)),!r.tokenizer[rn])throw mn(t,"include target '"+rn+"' is not defined at: "+bt);h(bt+"."+rn,mt,r.tokenizer[rn])}else{var cn=new Nu(bt);if(Array.isArray(Bt)&&Bt.length>=1&&Bt.length<=3)if(cn.setRegex(a,Bt[0]),Bt.length>=3)if(typeof Bt[1]=="string")cn.setAction(a,{token:Bt[1],next:Bt[2]});else if(typeof Bt[1]=="object"){var wn=Bt[1];wn.next=Bt[2],cn.setAction(a,wn)}else throw mn(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: "+bt);else cn.setAction(a,Bt[1]);else{if(!Bt.regex)throw mn(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+bt);Bt.name&&(typeof Bt.name=="string"&&(cn.name=Bt.name)),Bt.matchOnlyAtStart&&(cn.matchOnlyAtLineStart=$a(Bt.matchOnlyAtLineStart,!1)),cn.setRegex(a,Bt.regex),cn.setAction(a,Bt.action)}mt.push(cn)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw mn(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(var v in r.tokenizer)if(r.tokenizer.hasOwnProperty(v)){t.start||(t.start=v);var V=r.tokenizer[v];t.tokenizer[v]=new Array,h("tokenizer."+v,t.tokenizer[v],V)}if(t.usesEmbedded=a.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw mn(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 be=[],Ae=0,Ne=r.brackets;Ae<Ne.length;Ae++){var ot=Ne[Ae],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 mn(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")be.push({token:dt.token+t.tokenPostfix,open:jt(t,dt.open),close:jt(t,dt.close)});else throw mn(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=be,t.noThrow=!0,t}function Iu(s){c.a.registerLanguage(s)}function Pu(){var s=[];return s=s.concat(c.a.getLanguages()),s}function ku(s){var r=fi.modeService.get().getLanguageIdentifier(s);return r?r.id:0}function Fu(s,r){var t=fi.modeService.get().onDidCreateMode(function(a){a.getId()===s&&(t.dispose(),r())});return t}function ju(s,r){var t=fi.modeService.get().getLanguageIdentifier(s);if(!t)throw new Error("Cannot set configuration for unknown language "+s);return Ht.a.register(t,r)}var Wu=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 _.c(a.tokens,a.endState)},s}(),Bu=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 h=[],v=0,V=0,be=r.length;V<be;V++){var Ae=r[V],Ne=Ae.startIndex;V===0?Ne=0:Ne<v&&(Ne=v),h[V]=new _.a(Ne+a,Ae.scopes,t),v=Ne}return h},s.prototype.tokenize=function(r,t,a){var h=this._actual.tokenize(r,t),v=this._toClassicTokens(h.tokens,this._languageIdentifier.language,a),V;return h.endState.equals(t)?V=t:V=h.endState,new _.b(v,V)},s.prototype._toBinaryTokens=function(r,t){for(var a=this._languageIdentifier.id,h=this._standaloneThemeService.getTheme().tokenTheme,v=[],V=0,be=0,Ae=0,Ne=r.length;Ae<Ne;Ae++){var ot=r[Ae],dt=h.match(a,ot.scopes);if(V>0&&v[V-1]===dt)continue;var bt=ot.startIndex;Ae===0?bt=0:bt<be&&(bt=be),v[V++]=bt+t,v[V++]=dt,be=bt}for(var mt=new Uint32Array(V),Ae=0;Ae<V;Ae++)mt[Ae]=v[Ae];return mt},s.prototype.tokenize2=function(r,t,a){var h=this._actual.tokenize(r,t),v=this._toBinaryTokens(h.tokens,a),V;return h.endState.equals(t)?V=t:V=h.endState,new _.c(v,V)},s}();function Uu(s){return"tokenizeEncoded"in s}function qa(s){return s&&typeof s.then=="function"}function Vu(s,r){var t=fi.modeService.get().getLanguageIdentifier(s);if(!t)throw new Error("Cannot set tokens provider for unknown language "+s);var a=function(v){return Uu(v)?new Wu(v):new Bu(fi.standaloneThemeService.get(),t,v)};return qa(r)?gt.y.registerPromise(s,r.then(function(h){return a(h)})):gt.y.register(s,a(r))}function Hu(s,r){var t=function(h){return Ir(fi.modeService.get(),fi.standaloneThemeService.get(),s,Ru(s,h))};return qa(r)?gt.y.registerPromise(s,r.then(function(a){return t(a)})):gt.y.register(s,t(r))}function zu(s,r){return gt.t.register(s,r)}function Ku(s,r){return gt.u.register(s,r)}function Gu(s,r){return gt.w.register(s,r)}function Xu(s,r){return gt.o.register(s,{provideHover:function(a,h,v){var V=a.getWordAtPosition(h);return Promise.resolve(r.provideHover(a,h,v)).then(function(be){return be?(!be.range&&V&&(be.range=new G.a(h.lineNumber,V.startColumn,h.lineNumber,V.endColumn)),be.range||(be.range=new G.a(h.lineNumber,h.column,h.lineNumber,h.column)),be):void 0})}})}function Yu(s,r){return gt.l.register(s,r)}function Zu(s,r){return gt.h.register(s,r)}function $u(s,r){return gt.f.register(s,r)}function Qu(s,r){return gt.p.register(s,r)}function Ju(s,r){return gt.z.register(s,r)}function qu(s,r){return gt.b.register(s,r)}function ed(s,r){return gt.a.register(s,{provideCodeActions:function(a,h,v,V){var be=fi.markerService.get().read({resource:a.uri}).filter(function(Ae){return G.a.areIntersectingOrTouching(Ae,h)});return r.provideCodeActions(a,h,{markers:be,only:v.only},V)}})}function td(s,r){return gt.g.register(s,r)}function nd(s,r){return gt.i.register(s,r)}function id(s,r){return gt.s.register(s,r)}function rd(s,r){return gt.r.register(s,r)}function od(s,r){return gt.d.register(s,r)}function sd(s,r){return gt.c.register(s,r)}function ad(s,r){return gt.n.register(s,r)}function ld(s,r){return gt.e.register(s,r)}function ud(s,r){return gt.v.register(s,r)}function dd(s,r){return gt.k.register(s,r)}function cd(s,r){return gt.j.register(s,r)}function hd(){return{register:Iu,getLanguages:Pu,onLanguage:Fu,getEncodedLanguageId:ku,setLanguageConfiguration:ju,setTokensProvider:Vu,setMonarchTokensProvider:Hu,registerReferenceProvider:zu,registerRenameProvider:Ku,registerCompletionItemProvider:od,registerSignatureHelpProvider:Gu,registerHoverProvider:Xu,registerDocumentSymbolProvider:Yu,registerDocumentHighlightProvider:Zu,registerDefinitionProvider:$u,registerImplementationProvider:Qu,registerTypeDefinitionProvider:Ju,registerCodeLensProvider:qu,registerCodeActionProvider:ed,registerDocumentFormattingEditProvider:td,registerDocumentRangeFormattingEditProvider:nd,registerOnTypeFormattingEditProvider:id,registerLinkProvider:rd,registerColorProvider:sd,registerFoldingRangeProvider:ad,registerDeclarationProvider:ld,registerSelectionRangeProvider:ud,registerDocumentSemanticTokensProvider:dd,registerDocumentRangeSemanticTokensProvider:cd,DocumentHighlightKind:p,CompletionItemKind:D,CompletionItemTag:A,CompletionItemInsertTextRule:K,SymbolKind:ie,SymbolTag:Q,IndentAction:z,CompletionTriggerKind:te,SignatureHelpTriggerKind:fe,FoldingRangeKind:gt.m}}var la=self;I.e.wrappingIndent.defaultValue=0,I.e.glyphMargin.defaultValue=!1,I.e.autoIndent.defaultValue=3,I.e.overviewRulerLanes.defaultValue=2;var mr=Pt();mr.editor=Ou(),mr.languages=hd();var fd=mr.CancellationTokenSource,pd=mr.Emitter,gd=mr.KeyCode,md=mr.KeyMod,vd=mr.Position,yd=mr.Range,bd=mr.Selection,Cd=mr.SelectionDirection,Ed=mr.MarkerSeverity,_d=mr.MarkerTag,Sd=mr.Uri,wd=mr.Token,Ld=mr.editor,Dd=mr.languages;la.monaco=mr,typeof la.require!="undefined"&&typeof la.require.config=="function"&&la.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(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return o.e(210).then(o.bind(null,"v7Iz"))}})},"9XAT":function(wt,P,o){"use strict";o.r(P),o.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=o("M/lh"),re=o.n(I);"use strict";var ne=monaco.Emitter,N=function(){function K(D,A,te){this._onDidChange=new ne,this._languageId=D,this.setDiagnosticsOptions(A),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}(),k={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"}},U={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},j=new N("css",k,U),G=new N("scss",k,U),R=new N("less",k,U);function _(){return{cssDefaults:j,lessDefaults:R,scssDefaults:G}}monaco.languages.css=_();function x(){return o.e(198).then(o.bind(null,"20/g"))}monaco.languages.onLanguage("less",function(){x().then(function(K){return K.setupMode(R)})}),monaco.languages.onLanguage("scss",function(){x().then(function(K){return K.setupMode(G)})}),monaco.languages.onLanguage("css",function(){x().then(function(K){return K.setupMode(j)})})},"9XeP":function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("clipboardService")},"9Y+e":function(wt,P,o){"use strict";o.d(P,"a",function(){return I});var I=function(){function re(ne,N,k,U,j,G){this.id=ne,this.label=N,this.alias=k,this._precondition=U,this._run=j,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(wt,P,o){"use strict";o.d(P,"b",function(){return ne}),o.d(P,"a",function(){return N});var I=o("r0BQ"),re=[];function ne(k,U,j){re.push([k,new I.a(U,[],j)])}function N(){return re}},"A+jI":function(wt,P,o){"use strict";o.d(P,"a",function(){return U}),o.d(P,"c",function(){return j}),o.d(P,"b",function(){return G});var I=o("Cg/j"),re=o("MI8n"),ne=o("pmY6"),N=o("746U"),k=function(){var R=function(x,K){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,A){D.__proto__=A}||function(D,A){for(var te in A)A.hasOwnProperty(te)&&(D[te]=A[te])},R(x,K)};return function(_,x){R(_,x);function K(){this.constructor=_}_.prototype=x===null?Object.create(x):(K.prototype=x.prototype,new K)}}(),U=Object(I.c)("storageService"),j;(function(R){R[R.NONE=0]="NONE",R[R.SHUTDOWN=1]="SHUTDOWN"})(j||(j={}));var G=function(R){k(_,R);function _(){var x=R!==null&&R.apply(this,arguments)||this;return x._onDidChangeStorage=x._register(new re.a),x.onDidChangeStorage=x._onDidChangeStorage.event,x._onWillSaveState=x._register(new re.a),x.onWillSaveState=x._onWillSaveState.event,x.globalCache=new Map,x.workspaceCache=new Map,x}return _.prototype.getCache=function(x){return x===0?this.globalCache:this.workspaceCache},_.prototype.get=function(x,K,D){var A=this.getCache(K).get(x);return Object(N.l)(A)?D:A},_.prototype.getBoolean=function(x,K,D){var A=this.getCache(K).get(x);return Object(N.l)(A)?D:A==="true"},_.prototype.store=function(x,K,D){if(Object(N.l)(K))return this.remove(x,D);var A=String(K),te=this.getCache(D).get(x);return te===A||(this.getCache(D).set(x,A),this._onDidChangeStorage.fire({scope:D,key:x})),Promise.resolve()},_.prototype.remove=function(x,K){var D=this.getCache(K).delete(x);return D&&this._onDidChangeStorage.fire({scope:K,key:x}),Promise.resolve()},_}(ne.a)},AKMP:function(wt,P,o){"use strict";o.d(P,"b",function(){return G}),o.d(P,"a",function(){return R});var I=o("EffR"),re=o("MNsG"),ne=o("D3Dy"),N=o("51f4"),k=o("XSiN"),U=o("pmY6"),j=o("CjF5");function G(_,x){var K=new k.a(x);return K.preventDefault(),{leftButton:K.leftButton,buttons:K.buttons,posx:K.posx,posy:K.posy}}var R=function(){function _(){this._hooks=new U.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return _.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},_.prototype.stopMonitoring=function(x){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var K=this._onStopCallback;this._onStopCallback=null,x&&K&&K()},_.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},_.prototype.startMonitoring=function(x,K,D,A,te){var H=this;if(this.isMonitoring())return;this._mouseMoveEventMerger=D,this._mouseMoveCallback=A,this._onStopCallback=te;var E=N.a.getSameOriginWindowChain(),f=re.c&&j.a.pointerEvents?"pointermove":"mousemove",p=re.c&&j.a.pointerEvents?"pointerup":"mouseup",g=E.map(function(he){return he.window.document}),m=I.D(x);m&&g.unshift(m);for(var w=0,B=g;w<B.length;w++){var z=B[w];this._hooks.add(I.l(z,f,function(he){if(!ne.i&&he.buttons!==K){H.stopMonitoring(!0);return}H._mouseMoveCallback(he)},function(he,_e){return H._mouseMoveEventMerger(he,_e)})),this._hooks.add(I.i(z,p,function(he){return H.stopMonitoring(!0)}))}if(N.a.hasDifferentOriginAncestor()){var oe=E[E.length-1];this._hooks.add(I.i(oe.window.document,"mouseout",function(he){var _e=new k.a(he);_e.target.tagName.toLowerCase()==="html"&&H.stopMonitoring(!0)})),this._hooks.add(I.i(oe.window.document,"mouseover",function(he){var _e=new k.a(he);_e.target.tagName.toLowerCase()==="html"&&H.stopMonitoring(!0)})),this._hooks.add(I.i(oe.window.document.body,"mouseleave",function(he){H.stopMonitoring(!0)}))}},_}()},AbCa:function(wt,P,o){},ApJL:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return o.e(206).then(o.bind(null,"AoeA"))}})},BEdG:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.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(257).then(o.bind(null,"aH2L"))}})},BFtn:function(wt,P,o){"use strict";o.d(P,"a",function(){return I}),o.d(P,"b",function(){return ne});function I(N,k){for(var U=N.getCount(),j=N.findTokenIndexAtOffset(k),G=N.getLanguageId(j),R=j;R+1<U&&N.getLanguageId(R+1)===G;)R++;for(var _=j;_>0&&N.getLanguageId(_-1)===G;)_--;return new re(N,G,_,R+1,N.getStartOffset(_),N.getEndOffset(R))}var re=function(){function N(k,U,j,G,R,_){this._actual=k,this.languageId=U,this._firstTokenIndex=j,this._lastTokenIndex=G,this.firstCharOffset=R,this._lastCharOffset=_}return N.prototype.getLineContent=function(){var k=this._actual.getLineContent();return k.substring(this.firstCharOffset,this._lastCharOffset)},N.prototype.getActualLineContentBefore=function(k){var U=this._actual.getLineContent();return U.substring(0,this.firstCharOffset+k)},N.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},N.prototype.findTokenIndexAtOffset=function(k){return this._actual.findTokenIndexAtOffset(k+this.firstCharOffset)-this._firstTokenIndex},N.prototype.getStandardTokenType=function(k){return this._actual.getStandardTokenType(k+this._firstTokenIndex)},N}();function ne(N){return(N&7)!==0}},BUKB:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return o.e(253).then(o.bind(null,"xT+r"))}})},"C/vA":function(wt,P,o){"use strict";o.d(P,"a",function(){return I});function I(re){var ne=this,N=!1,k;return function(){return N||(N=!0,k=re.apply(ne,arguments)),k}}},C6rC:function(wt,P,o){},CClx:function(wt,P,o){},CHaL:function(wt,P,o){},CRAX:function(wt,P,o){"use strict";o.d(P,"a",function(){return j}),o.d(P,"b",function(){return f});var I=o("3/fG"),re=o("MI8n"),ne=o("ic2d"),N=o("746U"),k=o("3Rsk"),U=o("QDVR"),j={Configuration:"base.contributions.configuration"},G={properties:{},patternProperties:{}},R={properties:{},patternProperties:{}},_={properties:{},patternProperties:{}},x={properties:{},patternProperties:{}},K={properties:{},patternProperties:{}},D={properties:{},patternProperties:{}},A="vscode://schemas/settings/resourceLanguage",te=ne.a.as(k.a.JSONContribution),H=function(){function w(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new re.a,this._onDidUpdateConfiguration=new re.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:I.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(A,this.resourceLanguageSettingsSchema)}return w.prototype.registerConfiguration=function(B,z){z===void 0&&(z=!0),this.registerConfigurations([B],z)},w.prototype.registerConfigurations=function(B,z){var oe=this;z===void 0&&(z=!0);var he=[];B.forEach(function(_e){he.push.apply(he,oe.validateAndRegisterProperties(_e,z)),oe.configurationContributors.push(_e),oe.registerJSONConfiguration(_e)}),te.registerSchema(A,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(he)},w.prototype.registerOverrideIdentifiers=function(B){for(var z=0,oe=B;z<oe.length;z++){var he=oe[z];this.overrideIdentifiers.add(he)}this.updateOverridePropertyPatternKey()},w.prototype.validateAndRegisterProperties=function(B,z,oe){z===void 0&&(z=!0),oe===void 0&&(oe=3),oe=N.l(B.scope)?oe:B.scope;var he=[],_e=B.properties;if(_e)for(var Se in _e){if(z&&m(Se)){delete _e[Se];continue}var q=_e[Se],Z=q.default;if(N.k(Z)&&(q.default=p(q.type)),f.test(Se)?q.scope=void 0:q.scope=N.l(q.scope)?oe:q.scope,_e[Se].hasOwnProperty("included")&&!_e[Se].included){this.excludedConfigurationProperties[Se]=_e[Se],delete _e[Se];continue}else this.configurationProperties[Se]=_e[Se];he.push(Se)}var ce=B.allOf;if(ce)for(var Te=0,Ve=ce;Te<Ve.length;Te++){var Ee=Ve[Te];he.push.apply(he,this.validateAndRegisterProperties(Ee,z,oe))}return he},w.prototype.getConfigurationProperties=function(){return this.configurationProperties},w.prototype.registerJSONConfiguration=function(B){var z=this,oe=function he(_e){var Se=_e.properties;if(Se)for(var q in Se){G.properties[q]=Se[q];switch(Se[q].scope){case 1:R.properties[q]=Se[q];break;case 2:_.properties[q]=Se[q];break;case 6:x.properties[q]=Se[q];break;case 3:K.properties[q]=Se[q];break;case 4:D.properties[q]=Se[q];break;case 5:D.properties[q]=Se[q],z.resourceLanguageSettingsSchema.properties[q]=Se[q];break}}var Z=_e.allOf;Z&&Z.forEach(he)};oe(B)},w.prototype.updateOverridePropertyPatternKey=function(){for(var B,z=0,oe=Object(U.e)(this.overrideIdentifiers);z<oe.length;z++){var he=oe[z],_e="["+he+"]",Se={type:"object",description:I.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:I.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:A,default:(B=this.defaultOverridesConfigurationNode.properties[_e])===null||B===void 0?void 0:B.default};G.properties[_e]=Se,R.properties[_e]=Se,_.properties[_e]=Se,x.properties[_e]=Se,K.properties[_e]=Se,D.properties[_e]=Se}this._onDidSchemaChange.fire()},w}(),E="\\[.*\\]$",f=new RegExp(E);function p(w){var B=Array.isArray(w)?w[0]:w;switch(B){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var g=new H;ne.a.add(j.Configuration,g);function m(w){return f.test(w)?I.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",w):g.getConfigurationProperties()[w]!==void 0?I.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",w):null}},CZ1j:function(wt,P,o){"use strict";o.d(P,"b",function(){return I}),o.d(P,"a",function(){return re});function I(ne){return ne<0?0:ne>255?255:ne|0}function re(ne){return ne<0?0:ne>4294967295?4294967295:ne|0}},CdFp:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return o.e(201).then(o.bind(null,"6Xso"))}})},"Cg/j":function(wt,P,o){"use strict";o.d(P,"b",function(){return I}),o.d(P,"a",function(){return re}),o.d(P,"c",function(){return N}),o.d(P,"d",function(){return k});var I;(function(U){U.serviceIds=new Map,U.DI_TARGET="$di$target",U.DI_DEPENDENCIES="$di$dependencies";function j(G){return G[U.DI_DEPENDENCIES]||[]}U.getServiceDependencies=j})(I||(I={}));var re=N("instantiationService");function ne(U,j,G,R){j[I.DI_TARGET]===j?j[I.DI_DEPENDENCIES].push({id:U,index:G,optional:R}):(j[I.DI_DEPENDENCIES]=[{id:U,index:G,optional:R}],j[I.DI_TARGET]=j)}function N(U){if(I.serviceIds.has(U))return I.serviceIds.get(U);var j=function G(R,_,x){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ne(G,R,x,!1)};return j.toString=function(){return U},I.serviceIds.set(U,j),j}function k(U){return function(j,G,R){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ne(U,j,R,!0)}}},CjF5:function(wt,P,o){"use strict";o.d(P,"a",function(){return ne});var I=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(I.i)return!1;if(I.e){var N=navigator.userAgent.indexOf("Edge/"),k=parseInt(navigator.userAgent.substring(N+5,navigator.userAgent.indexOf(".",N)),10);if(!k||k>=12&&k<=16)return!1}return!0}()},keyboard:function(){return re.f||I.l?0:navigator.keyboard||I.k?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},CjOT:function(wt,P,o){},Comh:function(wt,P,o){"use strict";o.d(P,"b",function(){return N}),o.d(P,"a",function(){return k});var I=o("N0LK"),re=o("cGHE"),ne=o("aokT"),N=function(){function U(j,G,R,_,x){this.value=j,this.selectionStart=G,this.selectionEnd=R,this.selectionStartPosition=_,this.selectionEndPosition=x}return U.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},U.readFromTextArea=function(j){return new U(j.getValue(),j.getSelectionStart(),j.getSelectionEnd(),null,null)},U.prototype.collapseSelection=function(){return new U(this.value,this.value.length,this.value.length,null,null)},U.prototype.writeToTextArea=function(j,G,R){G.setValue(j,this.value),R&&G.setSelectionRange(j,this.selectionStart,this.selectionEnd)},U.prototype.deduceEditorPosition=function(j){if(j<=this.selectionStart){var G=this.value.substring(j,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,G,-1)}if(j>=this.selectionEnd){var G=this.value.substring(this.selectionEnd,j);return this._finishDeduceEditorPosition(this.selectionEndPosition,G,1)}var R=this.value.substring(this.selectionStart,j);if(R.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,R,1);var _=this.value.substring(j,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,_,-1)},U.prototype._finishDeduceEditorPosition=function(j,G,R){for(var _=0,x=-1;(x=G.indexOf(`
`,x+1))!==-1;)_++;return[j,R*G.length,_]},U.selectedText=function(j){return new U(j,0,j.length,null,null)},U.deduceInput=function(j,G,R){if(!j)return{text:"",replaceCharCnt:0};var _=j.value,x=j.selectionStart,K=j.selectionEnd,D=G.value,A=G.selectionStart,te=G.selectionEnd,H=_.substring(K),E=D.substring(te),f=I.d(H,E);D=D.substring(0,D.length-f),_=_.substring(0,_.length-f);var p=_.substring(0,x),g=D.substring(0,A),m=I.c(p,g);if(D=D.substring(m),_=_.substring(m),A-=m,x-=m,te-=m,K-=m,R&&A===te&&_.length>0){var w=null;if(A===D.length?I.M(D,_)&&(w=D.substring(_.length)):I.m(D,_)&&(w=D.substring(0,D.length-_.length)),w!==null&&w.length>0&&(/\uFE0F/.test(w)||I.g(w)))return{text:w,replaceCharCnt:0}}if(A===te){if(_===D&&x===0&&K===_.length&&A===D.length&&D.indexOf(`
`)===-1&&I.h(D))return{text:"",replaceCharCnt:0};var B=p.length-m;return{text:D,replaceCharCnt:B}}var z=K-x;return{text:D,replaceCharCnt:z}},U.EMPTY=new U("",0,0,null,null),U}(),k=function(){function U(){}return U._getPageOfLine=function(j,G){return Math.floor((j-1)/G)},U._getRangeForPage=function(j,G){var R=j*G,_=R+1,x=R+G;return new ne.a(_,1,x+1,1)},U.fromEditorSelection=function(j,G,R,_,x){var K=U._getPageOfLine(R.startLineNumber,_),D=U._getRangeForPage(K,_),A=U._getPageOfLine(R.endLineNumber,_),te=U._getRangeForPage(A,_),H=D.intersectRanges(new ne.a(1,1,R.startLineNumber,R.startColumn)),E=G.getValueInRange(H,1),f=G.getLineCount(),p=G.getLineMaxColumn(f),g=te.intersectRanges(new ne.a(R.endLineNumber,R.endColumn,f,p)),m=G.getValueInRange(g,1),w;if(K===A||K+1===A)w=G.getValueInRange(R,1);else{var B=D.intersectRanges(R),z=te.intersectRanges(R);w=G.getValueInRange(B,1)+String.fromCharCode(8230)+G.getValueInRange(z,1)}if(x){var oe=500;E.length>oe&&(E=E.substring(E.length-oe,E.length)),m.length>oe&&(m=m.substring(0,oe)),w.length>2*oe&&(w=w.substring(0,oe)+String.fromCharCode(8230)+w.substring(w.length-oe,w.length))}return new N(E+w+m,E.length,E.length+w.length,new re.a(R.startLineNumber,R.startColumn),new re.a(R.endLineNumber,R.endColumn))},U}()},D3Dy:function(wt,P,o){"use strict";o.d(P,"c",function(){return ne}),o.d(P,"b",function(){return N}),o.d(P,"o",function(){return k}),o.d(P,"a",function(){return U}),o.d(P,"i",function(){return G}),o.d(P,"e",function(){return R}),o.d(P,"f",function(){return _}),o.d(P,"h",function(){return x}),o.d(P,"m",function(){return K}),o.d(P,"d",function(){return D}),o.d(P,"k",function(){return A}),o.d(P,"n",function(){return te}),o.d(P,"j",function(){return H}),o.d(P,"g",function(){return E}),o.d(P,"l",function(){return f});var I=o("MI8n"),re=function(){function p(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new I.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return p.prototype.getZoomLevel=function(){return this._zoomLevel},p.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},p.prototype.getPixelRatio=function(){var g=document.createElement("canvas").getContext("2d"),m=window.devicePixelRatio||1,w=g.webkitBackingStorePixelRatio||g.mozBackingStorePixelRatio||g.msBackingStorePixelRatio||g.oBackingStorePixelRatio||g.backingStorePixelRatio||1;return m/w},p.INSTANCE=new p,p}();function ne(){return re.INSTANCE.getZoomLevel()}function N(){return re.INSTANCE.getTimeSinceLastZoomLevelChanged()}function k(p){return re.INSTANCE.onDidChangeZoomLevel(p)}function U(){return re.INSTANCE.getPixelRatio()}var j=navigator.userAgent,G=j.indexOf("Trident")>=0,R=j.indexOf("Edge/")>=0,_=G||R,x=j.indexOf("Firefox")>=0,K=j.indexOf("AppleWebKit")>=0,D=j.indexOf("Chrome")>=0,A=!D&&j.indexOf("Safari")>=0,te=!D&&!A&&K,H=j.indexOf("iPad")>=0||A&&navigator.maxTouchPoints>0,E=R&&j.indexOf("WebView/")>=0,f=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(wt,P,o){},Dvnd:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return o.e(219).then(o.bind(null,"y0OK"))}})},"E+ie":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return o.e(209).then(o.bind(null,"p+q7"))}})},E4kL:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return o.e(258).then(o.bind(null,"EaLm"))}})},EIAu:function(wt,P,o){"use strict";o.d(P,"b",function(){return k}),o.d(P,"a",function(){return H});var I=o("N0LK"),re=o("aokT"),ne=function(){function E(f,p,g,m,w,B){this.languageIdentifier=f,this.index=p,this.open=g,this.close=m,this.forwardRegex=w,this.reversedRegex=B,this._openSet=E._toSet(this.open),this._closeSet=E._toSet(this.close)}return E.prototype.isOpen=function(f){return this._openSet.has(f)},E.prototype.isClose=function(f){return this._closeSet.has(f)},E._toSet=function(f){for(var p=new Set,g=0,m=f;g<m.length;g++){var w=m[g];p.add(w)}return p},E}();function N(E){var f=E.length;E=E.map(function(Ve){return[Ve[0].toLowerCase(),Ve[1].toLowerCase()]});for(var p=[],g=0;g<f;g++)p[g]=g;for(var m=function(Ee,de){var se=Ee[0],fe=Ee[1],ie=de[0],Q=de[1];return se===ie||se===Q||fe===ie||fe===Q},w=function(Ee,de){for(var se=Math.min(Ee,de),fe=Math.max(Ee,de),ie=0;ie<f;ie++)p[ie]===fe&&(p[ie]=se)},g=0;g<f;g++)for(var B=E[g],z=g+1;z<f;z++){var oe=E[z];m(B,oe)&&w(p[g],p[z])}for(var he=[],_e=0;_e<f;_e++){for(var Se=[],q=[],g=0;g<f;g++)if(p[g]===_e){var Z=E[g],ce=Z[0],Te=Z[1];Se.push(ce),q.push(Te)}Se.length>0&&he.push({open:Se,close:q})}return he}var k=function(){function E(f,p){var g=N(p);this.brackets=g.map(function(Z,ce){return new ne(f,ce,Z.open,Z.close,R(Z.open,Z.close,g,ce),_(Z.open,Z.close,g,ce))}),this.forwardRegex=x(this.brackets),this.reversedRegex=K(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var m=0,w=this.brackets;m<w.length;m++){for(var B=w[m],z=0,oe=B.open;z<oe.length;z++){var he=oe[z];this.textIsBracket[he]=B,this.textIsOpenBracket[he]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,he.length)}for(var _e=0,Se=B.close;_e<Se.length;_e++){var q=Se[_e];this.textIsBracket[q]=B,this.textIsOpenBracket[q]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,q.length)}}}return E}();function U(E,f,p,g){for(var m=0,w=f.length;m<w;m++){if(m===p)continue;for(var B=f[m],z=0,oe=B.open;z<oe.length;z++){var he=oe[z];he.indexOf(E)>=0&&g.push(he)}for(var _e=0,Se=B.close;_e<Se.length;_e++){var q=Se[_e];q.indexOf(E)>=0&&g.push(q)}}}function j(E,f){return E.length-f.length}function G(E){if(E.length<=1)return E;for(var f=[],p=new Set,g=0,m=E;g<m.length;g++){var w=m[g];if(p.has(w))continue;f.push(w),p.add(w)}return f}function R(E,f,p,g){var m=[];m=m.concat(E),m=m.concat(f);for(var w=0,B=m.length;w<B;w++)U(m[w],p,g,m);return m=G(m),m.sort(j),m.reverse(),A(m)}function _(E,f,p,g){var m=[];m=m.concat(E),m=m.concat(f);for(var w=0,B=m.length;w<B;w++)U(m[w],p,g,m);return m=G(m),m.sort(j),m.reverse(),A(m.map(te))}function x(E){for(var f=[],p=0,g=E;p<g.length;p++){for(var m=g[p],w=0,B=m.open;w<B.length;w++){var z=B[w];f.push(z)}for(var oe=0,he=m.close;oe<he.length;oe++){var _e=he[oe];f.push(_e)}}return f=G(f),A(f)}function K(E){for(var f=[],p=0,g=E;p<g.length;p++){for(var m=g[p],w=0,B=m.open;w<B.length;w++){var z=B[w];f.push(z)}for(var oe=0,he=m.close;oe<he.length;oe++){var _e=he[oe];f.push(_e)}}return f=G(f),A(f.map(te))}function D(E){var f=/^[\w ]+$/.test(E);return E=I.p(E),f?"\\b"+E+"\\b":E}function A(E){var f="("+E.map(D).join(")|(")+")";return I.l(f,!0)}var te=function(){function E(g){for(var m="",w=g.length-1;w>=0;w--)m+=g.charAt(w);return m}var f=null,p=null;return function(m){return f!==m&&(f=m,p=E(f)),p}}(),H=function(){function E(){}return E._findPrevBracketInText=function(f,p,g,m){var w=g.match(f);if(!w)return null;var B=g.length-(w.index||0),z=w[0].length,oe=m+B;return new re.a(p,oe-z+1,p,oe+1)},E.findPrevBracketInRange=function(f,p,g,m,w){var B=te(g),z=B.substring(g.length-w,g.length-m);return this._findPrevBracketInText(f,p,z,m)},E.findNextBracketInText=function(f,p,g,m){var w=g.match(f);if(!w)return null;var B=w.index||0,z=w[0].length;if(z===0)return null;var oe=m+B;return new re.a(p,oe+1,p,oe+1+z)},E.findNextBracketInRange=function(f,p,g,m,w){var B=g.substring(m,w);return this.findNextBracketInText(f,p,B,m)},E}()},EOst:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return o.e(255).then(o.bind(null,"87dK"))}})},"EPS+":function(wt,P,o){},EWX2:function(wt,P,o){"use strict";o.d(P,"a",function(){return k}),o.d(P,"b",function(){return R});var I=o("bY76"),re=o("gslv"),ne=o("Cg/j"),N=o("QDVR"),k=Object(ne.c)("contextService"),U;(function(_){function x(K){return K&&typeof K=="object"&&typeof K.id=="string"&&Array.isArray(K.folders)}_.isIWorkspace=x})(U||(U={}));var j;(function(_){function x(K){return K&&typeof K=="object"&&I.a.isUri(K.uri)&&typeof K.name=="string"&&typeof K.toResource=="function"}_.isIWorkspaceFolder=x})(j||(j={}));var G=function(){function _(x,K,D){K===void 0&&(K=[]),D===void 0&&(D=null),this._id=x,this._configuration=D,this._foldersMap=N.c.forPaths(),this.folders=K}return Object.defineProperty(_.prototype,"folders",{get:function(){return this._folders},set:function(K){this._folders=K,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"configuration",{get:function(){return this._configuration},set:function(K){this._configuration=K},enumerable:!0,configurable:!0}),_.prototype.getFolder=function(x){return x&&this._foldersMap.findSubstr(x.with({scheme:x.scheme,authority:x.authority,path:x.path}).toString())||null},_.prototype.updateFoldersMap=function(){this._foldersMap=N.c.forPaths();for(var x=0,K=this.folders;x<K.length;x++){var D=K[x];this._foldersMap.set(D.uri.toString(),D)}},_.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}},_}(),R=function(){function _(x,K){this.raw=K,this.uri=x.uri,this.index=x.index,this.name=x.name}return _.prototype.toResource=function(x){return re.f(this.uri,x)},_.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},_}()},EffR:function(wt,P,o){"use strict";o.d(P,"s",function(){return H}),o.d(P,"Q",function(){return E}),o.d(P,"L",function(){return f}),o.d(P,"H",function(){return w}),o.d(P,"e",function(){return B}),o.d(P,"f",function(){return z}),o.d(P,"O",function(){return oe}),o.d(P,"P",function(){return he}),o.d(P,"X",function(){return _e}),o.d(P,"i",function(){return q}),o.d(P,"n",function(){return Te}),o.d(P,"m",function(){return Ve}),o.d(P,"g",function(){return Ee}),o.d(P,"h",function(){return de}),o.d(P,"j",function(){return se}),o.d(P,"k",function(){return fe}),o.d(P,"T",function(){return me}),o.d(P,"V",function(){return ye}),o.d(P,"l",function(){return Xt}),o.d(P,"y",function(){return Ke}),o.d(P,"x",function(){return Xe}),o.d(P,"E",function(){return Fe}),o.d(P,"B",function(){return $e}),o.d(P,"d",function(){return we}),o.d(P,"G",function(){return F}),o.d(P,"A",function(){return ee}),o.d(P,"z",function(){return Pe}),o.d(P,"F",function(){return ve}),o.d(P,"J",function(){return Me}),o.d(P,"w",function(){return Ie}),o.d(P,"M",function(){return nt}),o.d(P,"D",function(){return _t}),o.d(P,"v",function(){return Rt}),o.d(P,"u",function(){return on}),o.d(P,"N",function(){return Ln}),o.d(P,"K",function(){return yn}),o.d(P,"c",function(){return Mn}),o.d(P,"b",function(){return kt}),o.d(P,"U",function(){return pt}),o.d(P,"S",function(){return gt}),o.d(P,"Y",function(){return Lt}),o.d(P,"p",function(){return Vt}),o.d(P,"a",function(){return ln}),o.d(P,"W",function(){return _n}),o.d(P,"I",function(){return On}),o.d(P,"R",function(){return Gn}),o.d(P,"C",function(){return Jn}),o.d(P,"t",function(){return Qn}),o.d(P,"Z",function(){return gi}),o.d(P,"o",function(){return Kn}),o.d(P,"r",function(){return yi}),o.d(P,"q",function(){return mi});var I=o("D3Dy"),re=o("4y0V"),ne=o("uDWl"),N=o("XSiN"),k=o("X+cX"),U=o("/cxE"),j=o("MI8n"),G=o("pmY6"),R=o("MNsG"),_=o("6OMU"),x=o("tYmi"),K=o("CjF5"),D=function(){var vt=function(Ht,tn){return vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ut,Sn){Ut.__proto__=Sn}||function(Ut,Sn){for(var Rn in Sn)Sn.hasOwnProperty(Rn)&&(Ut[Rn]=Sn[Rn])},vt(Ht,tn)};return function(Tt,Ht){vt(Tt,Ht);function tn(){this.constructor=Tt}Tt.prototype=Ht===null?Object.create(Ht):(tn.prototype=Ht.prototype,new tn)}}(),A=function(){return A=Object.assign||function(vt){for(var Tt,Ht=1,tn=arguments.length;Ht<tn;Ht++){Tt=arguments[Ht];for(var Ut in Tt)Object.prototype.hasOwnProperty.call(Tt,Ut)&&(vt[Ut]=Tt[Ut])}return vt},A.apply(this,arguments)},te=function(){for(var vt=0,Tt=0,Ht=arguments.length;Tt<Ht;Tt++)vt+=arguments[Tt].length;for(var tn=Array(vt),Ut=0,Tt=0;Tt<Ht;Tt++)for(var Sn=arguments[Tt],Rn=0,Bn=Sn.length;Rn<Bn;Rn++,Ut++)tn[Ut]=Sn[Rn];return tn};function H(vt){for(;vt.firstChild;)vt.removeChild(vt.firstChild)}function E(vt){vt.parentNode&&vt.parentNode.removeChild(vt)}function f(vt){for(;vt;){if(vt===document.body)return!0;vt=vt.parentNode||vt.host}return!1}var p=new(function(){function vt(){this._lastStart=-1,this._lastEnd=-1}return vt.prototype._findClassName=function(Tt,Ht){var tn=Tt.className;if(!tn){this._lastStart=-1;return}Ht=Ht.trim();var Ut=tn.length,Sn=Ht.length;if(Sn===0){this._lastStart=-1;return}if(Ut<Sn){this._lastStart=-1;return}if(tn===Ht){this._lastStart=0,this._lastEnd=Ut;return}for(var Rn=-1,Bn;(Rn=tn.indexOf(Ht,Rn+1))>=0;){if(Bn=Rn+Sn,(Rn===0||tn.charCodeAt(Rn-1)===32)&&tn.charCodeAt(Bn)===32){this._lastStart=Rn,this._lastEnd=Bn+1;return}if(Rn>0&&tn.charCodeAt(Rn-1)===32&&Bn===Ut){this._lastStart=Rn-1,this._lastEnd=Bn;return}if(Rn===0&&Bn===Ut){this._lastStart=0,this._lastEnd=Bn;return}}this._lastStart=-1},vt.prototype.hasClass=function(Tt,Ht){return this._findClassName(Tt,Ht),this._lastStart!==-1},vt.prototype.addClasses=function(Tt){for(var Ht=this,tn=[],Ut=1;Ut<arguments.length;Ut++)tn[Ut-1]=arguments[Ut];tn.forEach(function(Sn){return Sn.split(" ").forEach(function(Rn){return Ht.addClass(Tt,Rn)})})},vt.prototype.addClass=function(Tt,Ht){Tt.className?(this._findClassName(Tt,Ht),this._lastStart===-1&&(Tt.className=Tt.className+" "+Ht)):Tt.className=Ht},vt.prototype.removeClass=function(Tt,Ht){if(this._findClassName(Tt,Ht),this._lastStart===-1)return;Tt.className=Tt.className.substring(0,this._lastStart)+Tt.className.substring(this._lastEnd)},vt.prototype.removeClasses=function(Tt){for(var Ht=this,tn=[],Ut=1;Ut<arguments.length;Ut++)tn[Ut-1]=arguments[Ut];tn.forEach(function(Sn){return Sn.split(" ").forEach(function(Rn){return Ht.removeClass(Tt,Rn)})})},vt.prototype.toggleClass=function(Tt,Ht,tn){this._findClassName(Tt,Ht),this._lastStart!==-1&&(tn===void 0||!tn)&&this.removeClass(Tt,Ht),this._lastStart===-1&&(tn===void 0||tn)&&this.addClass(Tt,Ht)},vt}()),g=new(function(){function vt(){}return vt.prototype.hasClass=function(Tt,Ht){return Boolean(Ht)&&Tt.classList&&Tt.classList.contains(Ht)},vt.prototype.addClasses=function(Tt){for(var Ht=this,tn=[],Ut=1;Ut<arguments.length;Ut++)tn[Ut-1]=arguments[Ut];tn.forEach(function(Sn){return Sn.split(" ").forEach(function(Rn){return Ht.addClass(Tt,Rn)})})},vt.prototype.addClass=function(Tt,Ht){Ht&&Tt.classList&&Tt.classList.add(Ht)},vt.prototype.removeClass=function(Tt,Ht){Ht&&Tt.classList&&Tt.classList.remove(Ht)},vt.prototype.removeClasses=function(Tt){for(var Ht=this,tn=[],Ut=1;Ut<arguments.length;Ut++)tn[Ut-1]=arguments[Ut];tn.forEach(function(Sn){return Sn.split(" ").forEach(function(Rn){return Ht.removeClass(Tt,Rn)})})},vt.prototype.toggleClass=function(Tt,Ht,tn){Tt.classList&&Tt.classList.toggle(Ht,tn)},vt}()),m=I.i?p:g,w=m.hasClass.bind(m),B=m.addClass.bind(m),z=m.addClasses.bind(m),oe=m.removeClass.bind(m),he=m.removeClasses.bind(m),_e=m.toggleClass.bind(m),Se=function(){function vt(Tt,Ht,tn,Ut){this._node=Tt,this._type=Ht,this._handler=tn,this._options=Ut||!1,this._node.addEventListener(this._type,this._handler,this._options)}return vt.prototype.dispose=function(){if(!this._handler)return;this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null},vt}();function q(vt,Tt,Ht,tn){return new Se(vt,Tt,Ht,tn)}function Z(vt){return function(Tt){return vt(new N.a(Tt))}}function ce(vt){return function(Tt){return vt(new ne.a(Tt))}}var Te=function(Tt,Ht,tn,Ut){var Sn=tn;return Ht==="click"||Ht==="mousedown"?Sn=Z(tn):(Ht==="keydown"||Ht==="keypress"||Ht==="keyup")&&(Sn=ce(tn)),q(Tt,Ht,Sn,Ut)},Ve=function(Tt,Ht,tn){var Ut=Z(Ht);return Ee(Tt,Ut,tn)};function Ee(vt,Tt,Ht){return q(vt,R.c&&K.a.pointerEvents?Mn.POINTER_DOWN:Mn.MOUSE_DOWN,Tt,Ht)}function de(vt,Tt,Ht){return q(vt,R.c&&K.a.pointerEvents?Mn.POINTER_UP:Mn.MOUSE_UP,Tt,Ht)}function se(vt,Tt){return q(vt,"mouseout",function(Ht){for(var tn=Ht.relatedTarget;tn&&tn!==vt;)tn=tn.parentNode;if(tn===vt)return;Tt(Ht)})}function fe(vt,Tt){return q(vt,"pointerout",function(Ht){for(var tn=Ht.relatedTarget;tn&&tn!==vt;)tn=tn.parentNode;if(tn===vt)return;Tt(Ht)})}var ie=null;function Q(vt){if(!ie){var Tt=function(tn){return setTimeout(function(){return tn(new Date().getTime())},0)};ie=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||Tt}return ie.call(self,vt)}var me,ye,He=function(){function vt(Tt,Ht){Ht===void 0&&(Ht=0),this._runner=Tt,this.priority=Ht,this._canceled=!1}return vt.prototype.dispose=function(){this._canceled=!0},vt.prototype.execute=function(){if(this._canceled)return;try{this._runner()}catch(Tt){Object(U.e)(Tt)}},vt.sort=function(Tt,Ht){return Ht.priority-Tt.priority},vt}();(function(){var vt=[],Tt=null,Ht=!1,tn=!1,Ut=function(){for(Ht=!1,Tt=vt,vt=[],tn=!0;Tt.length>0;){Tt.sort(He.sort);var Rn=Tt.shift();Rn.execute()}tn=!1};ye=function(Rn,Bn){Bn===void 0&&(Bn=0);var kn=new He(Rn,Bn);return vt.push(kn),Ht||(Ht=!0,Q(Ut)),kn},me=function(Rn,Bn){if(tn){var kn=new He(Rn,Bn);return Tt.push(kn),kn}else return ye(Rn,Bn)}})();var tt=16,Et=function(Tt,Ht){return Ht},Pt=function(vt){D(Tt,vt);function Tt(Ht,tn,Ut,Sn,Rn){Sn===void 0&&(Sn=Et),Rn===void 0&&(Rn=tt);var Bn=vt.call(this)||this,kn=null,oi=0,ci=Bn._register(new k.e),Hi=function(){oi=new Date().getTime(),Ut(kn),kn=null};return Bn._register(q(Ht,tn,function(rr){kn=Sn(kn,rr);var Zn=new Date().getTime()-oi;Zn>=Rn?(ci.cancel(),Hi()):ci.setIfNotSet(Hi,Rn-Zn)})),Bn}return Tt}(G.a);function Xt(vt,Tt,Ht,tn,Ut){return new Pt(vt,Tt,Ht,tn,Ut)}function Ke(vt){return document.defaultView.getComputedStyle(vt,null)}function Xe(vt){if(vt!==document.body)return new Ye(vt.clientWidth,vt.clientHeight);if(R.c&&window.visualViewport){var Tt=window.visualViewport.width,Ht=window.visualViewport.height-(I.l?20+4:0);return new Ye(Tt,Ht)}if(window.innerWidth&&window.innerHeight)return new Ye(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Ye(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Ye(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Ze=function(){function vt(){}return vt.convertToPixels=function(Tt,Ht){return parseFloat(Ht)||0},vt.getDimension=function(Tt,Ht,tn){var Ut=Ke(Tt),Sn="0";return Ut&&(Ut.getPropertyValue?Sn=Ut.getPropertyValue(Ht):Sn=Ut.getAttribute(tn)),vt.convertToPixels(Tt,Sn)},vt.getBorderLeftWidth=function(Tt){return vt.getDimension(Tt,"border-left-width","borderLeftWidth")},vt.getBorderRightWidth=function(Tt){return vt.getDimension(Tt,"border-right-width","borderRightWidth")},vt.getBorderTopWidth=function(Tt){return vt.getDimension(Tt,"border-top-width","borderTopWidth")},vt.getBorderBottomWidth=function(Tt){return vt.getDimension(Tt,"border-bottom-width","borderBottomWidth")},vt.getPaddingLeft=function(Tt){return vt.getDimension(Tt,"padding-left","paddingLeft")},vt.getPaddingRight=function(Tt){return vt.getDimension(Tt,"padding-right","paddingRight")},vt.getPaddingTop=function(Tt){return vt.getDimension(Tt,"padding-top","paddingTop")},vt.getPaddingBottom=function(Tt){return vt.getDimension(Tt,"padding-bottom","paddingBottom")},vt.getMarginLeft=function(Tt){return vt.getDimension(Tt,"margin-left","marginLeft")},vt.getMarginTop=function(Tt){return vt.getDimension(Tt,"margin-top","marginTop")},vt.getMarginRight=function(Tt){return vt.getDimension(Tt,"margin-right","marginRight")},vt.getMarginBottom=function(Tt){return vt.getDimension(Tt,"margin-bottom","marginBottom")},vt}(),Ye=function(){function vt(Tt,Ht){this.width=Tt,this.height=Ht}return vt}();function Fe(vt){for(var Tt=vt.offsetParent,Ht=vt.offsetTop,tn=vt.offsetLeft;(vt=vt.parentNode)!==null&&vt!==document.body&&vt!==document.documentElement;){Ht-=vt.scrollTop;var Ut=pe(vt)?null:Ke(vt);Ut&&(tn-=Ut.direction!=="rtl"?vt.scrollLeft:-vt.scrollLeft),vt===Tt&&(tn+=Ze.getBorderLeftWidth(vt),Ht+=Ze.getBorderTopWidth(vt),Ht+=vt.offsetTop,tn+=vt.offsetLeft,Tt=vt.offsetParent)}return{left:tn,top:Ht}}function $e(vt){var Tt=vt.getBoundingClientRect();return{left:Tt.left+we.scrollX,top:Tt.top+we.scrollY,width:Tt.width,height:Tt.height}}var we=new(function(){function vt(){}return Object.defineProperty(vt.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),vt}());function F(vt){var Tt=Ze.getMarginLeft(vt)+Ze.getMarginRight(vt);return vt.offsetWidth+Tt}function ee(vt){var Tt=Ze.getBorderLeftWidth(vt)+Ze.getBorderRightWidth(vt),Ht=Ze.getPaddingLeft(vt)+Ze.getPaddingRight(vt);return vt.offsetWidth-Tt-Ht}function Pe(vt){var Tt=Ze.getBorderTopWidth(vt)+Ze.getBorderBottomWidth(vt),Ht=Ze.getPaddingTop(vt)+Ze.getPaddingBottom(vt);return vt.offsetHeight-Tt-Ht}function ve(vt){var Tt=Ze.getMarginTop(vt)+Ze.getMarginBottom(vt);return vt.offsetHeight+Tt}function Me(vt,Tt){for(;vt;){if(vt===Tt)return!0;vt=vt.parentNode}return!1}function Ie(vt,Tt,Ht){for(;vt&&vt.nodeType===vt.ELEMENT_NODE;){if(w(vt,Tt))return vt;if(Ht){if(typeof Ht=="string"){if(w(vt,Ht))return null}else if(vt===Ht)return null}vt=vt.parentNode}return null}function pe(vt){return vt&&!!vt.host&&!!vt.mode}function nt(vt){return!!_t(vt)}function _t(vt){for(;vt.parentNode;){if(vt===document.body)return null;vt=vt.parentNode}return pe(vt)?vt:null}function Rt(vt){vt===void 0&&(vt=document.getElementsByTagName("head")[0]);var Tt=document.createElement("style");return Tt.type="text/css",Tt.media="screen",vt.appendChild(Tt),Tt}var Mt=null;function zt(){return Mt||(Mt=Rt()),Mt}function Gt(vt){return vt&&vt.sheet&&vt.sheet.rules?vt.sheet.rules:vt&&vt.sheet&&vt.sheet.cssRules?vt.sheet.cssRules:[]}function on(vt,Tt,Ht){if(Ht===void 0&&(Ht=zt()),!Ht||!Tt)return;Ht.sheet.insertRule(vt+"{"+Tt+"}",0)}function Ln(vt,Tt){if(Tt===void 0&&(Tt=zt()),!Tt)return;for(var Ht=Gt(Tt),tn=[],Ut=0;Ut<Ht.length;Ut++){var Sn=Ht[Ut];Sn.selectorText.indexOf(vt)!==-1&&tn.push(Ut)}for(var Ut=tn.length-1;Ut>=0;Ut--)Tt.sheet.deleteRule(tn[Ut])}function yn(vt){return typeof HTMLElement=="object"?vt instanceof HTMLElement:vt&&typeof vt=="object"&&vt.nodeType===1&&typeof vt.nodeName=="string"}var 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:I.m?"webkitAnimationStart":"animationstart",ANIMATION_END:I.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:I.m?"webkitAnimationIteration":"animationiteration"},kt={stop:function(Tt,Ht){Tt.preventDefault?Tt.preventDefault():Tt.returnValue=!1,Ht&&(Tt.stopPropagation?Tt.stopPropagation():Tt.cancelBubble=!0)}};function pt(vt){for(var Tt=[],Ht=0;vt&&vt.nodeType===vt.ELEMENT_NODE;Ht++)Tt[Ht]=vt.scrollTop,vt=vt.parentNode;return Tt}function gt(vt,Tt){for(var Ht=0;vt&&vt.nodeType===vt.ELEMENT_NODE;Ht++)vt.scrollTop!==Tt[Ht]&&(vt.scrollTop=Tt[Ht]),vt=vt.parentNode}var Dt=function(vt){D(Tt,vt);function Tt(Ht){var tn=vt.call(this)||this;tn._onDidFocus=tn._register(new j.a),tn.onDidFocus=tn._onDidFocus.event,tn._onDidBlur=tn._register(new j.a),tn.onDidBlur=tn._onDidBlur.event;var Ut=Me(document.activeElement,Ht),Sn=!1,Rn=function(){Sn=!1,Ut||(Ut=!0,tn._onDidFocus.fire())},Bn=function(){Ut&&(Sn=!0,window.setTimeout(function(){Sn&&(Sn=!1,Ut=!1,tn._onDidBlur.fire())},0))};return tn._refreshStateHandler=function(){var kn=Me(document.activeElement,Ht);kn!==Ut&&(Ut?Bn():Rn())},tn._register(Object(re.a)(Ht,Mn.FOCUS,!0)(Rn)),tn._register(Object(re.a)(Ht,Mn.BLUR,!0)(Bn)),tn}return Tt}(G.a);function Lt(vt){return new Dt(vt)}function Vt(vt){for(var Tt=[],Ht=1;Ht<arguments.length;Ht++)Tt[Ht-1]=arguments[Ht];return Tt.forEach(function(tn){return vt.appendChild(tn)}),Tt[Tt.length-1]}var Jt=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/,nn;(function(vt){vt.HTML="http://www.w3.org/1999/xhtml",vt.SVG="http://www.w3.org/2000/svg"})(nn||(nn={}));function sn(vt,Tt,Ht){for(var tn=[],Ut=3;Ut<arguments.length;Ut++)tn[Ut-3]=arguments[Ut];var Sn=Jt.exec(Tt);if(!Sn)throw new Error("Bad use of emmet");Ht=A({},Ht||{});var Rn=Sn[1]||"div",Bn;return vt!==nn.HTML?Bn=document.createElementNS(vt,Rn):Bn=document.createElement(Rn),Sn[3]&&(Bn.id=Sn[3]),Sn[4]&&(Bn.className=Sn[4].replace(/\./g," ").trim()),Object.keys(Ht).forEach(function(kn){var oi=Ht[kn];if(typeof oi=="undefined")return;/^on\w+$/.test(kn)?Bn[kn]=oi:kn==="selected"?oi&&Bn.setAttribute(kn,"true"):Bn.setAttribute(kn,oi)}),Object(_.d)(tn).forEach(function(kn){kn instanceof Node?Bn.appendChild(kn):Bn.appendChild(document.createTextNode(kn))}),Bn}function ln(vt,Tt){for(var Ht=[],tn=2;tn<arguments.length;tn++)Ht[tn-2]=arguments[tn];return sn.apply(void 0,te([nn.HTML,vt,Tt],Ht))}ln.SVG=function(vt,Tt){for(var Ht=[],tn=2;tn<arguments.length;tn++)Ht[tn-2]=arguments[tn];return sn.apply(void 0,te([nn.SVG,vt,Tt],Ht))};function _n(){for(var vt=[],Tt=0;Tt<arguments.length;Tt++)vt[Tt]=arguments[Tt];for(var Ht=0,tn=vt;Ht<tn.length;Ht++){var Ut=tn[Ht];Ut.style.display="",Ut.removeAttribute("aria-hidden")}}function On(){for(var vt=[],Tt=0;Tt<arguments.length;Tt++)vt[Tt]=arguments[Tt];for(var Ht=0,tn=vt;Ht<tn.length;Ht++){var Ut=tn[Ht];Ut.style.display="none",Ut.setAttribute("aria-hidden","true")}}function Pn(vt,Tt){for(;vt&&vt.nodeType===vt.ELEMENT_NODE;){if(vt instanceof HTMLElement&&vt.hasAttribute(Tt))return vt;vt=vt.parentNode}return null}function Gn(vt){if(!vt||!vt.hasAttribute("tabIndex"))return;if(document.activeElement===vt){var Tt=Pn(vt.parentElement,"tabIndex");Tt&&Tt.focus()}vt.removeAttribute("tabindex")}function Jn(vt){return Array.prototype.slice.call(document.getElementsByTagName(vt),0)}function Qn(vt){var Tt=window.devicePixelRatio*vt;return Math.max(1,Math.floor(Tt))/window.devicePixelRatio}function gi(vt){if(R.f||I.g)window.open(vt);else{var Tt=window.open();Tt&&(Tt.opener=null,Tt.location.href=vt)}}function Kn(vt){var Tt=function tn(){vt(),Ht=ye(tn)},Ht=ye(Tt);return Object(G.h)(function(){return Ht.dispose()})}x.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function yi(vt){return vt&&(x.b.vscodeRemote===vt.scheme?x.a.rewrite(vt):vt)}function mi(vt){return vt?"url('"+yi(vt).toString(!0).replace(/'/g,"%27")+"')":"url('')"}},FWmy:function(wt,P,o){"use strict";o.d(P,"a",function(){return I});function I(re,ne){if(!re)throw new Error(ne?"Assertion failed ("+ne+")":"Assertion Failed")}},FvUK:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return o.e(220).then(o.bind(null,"OfHX"))}})},G2kB:function(wt,P,o){"use strict";o.d(P,"a",function(){return re}),o.d(P,"b",function(){return ne});var I=o("Cg/j"),re=Object(I.c)("modelService");function ne(N){return!N.isTooLargeForSyncing()&&!N.isForSimpleWidget}},G300:function(wt,P,o){"use strict";o.d(P,"a",function(){return j});var I=o("EffR"),re=o("uDWl"),ne=o("XSiN"),N=o("pmY6"),k=o("pg8w"),U=function(){var G=function(_,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(_,x)};return function(R,_){G(R,_);function x(){this.constructor=R}R.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}(),j=function(G){U(R,G);function R(){return G!==null&&G.apply(this,arguments)||this}return R.prototype.onclick=function(_,x){this._register(I.i(_,I.c.CLICK,function(K){return x(new ne.a(K))}))},R.prototype.onmousedown=function(_,x){this._register(I.i(_,I.c.MOUSE_DOWN,function(K){return x(new ne.a(K))}))},R.prototype.onmouseover=function(_,x){this._register(I.i(_,I.c.MOUSE_OVER,function(K){return x(new ne.a(K))}))},R.prototype.onnonbubblingmouseout=function(_,x){this._register(I.j(_,function(K){return x(new ne.a(K))}))},R.prototype.onkeydown=function(_,x){this._register(I.i(_,I.c.KEY_DOWN,function(K){return x(new re.a(K))}))},R.prototype.onkeyup=function(_,x){this._register(I.i(_,I.c.KEY_UP,function(K){return x(new re.a(K))}))},R.prototype.oninput=function(_,x){this._register(I.i(_,I.c.INPUT,x))},R.prototype.onblur=function(_,x){this._register(I.i(_,I.c.BLUR,x))},R.prototype.onfocus=function(_,x){this._register(I.i(_,I.c.FOCUS,x))},R.prototype.ignoreGesture=function(_){k.b.ignoreTarget(_)},R}(N.a)},GJhM:function(wt,P,o){"use strict";o.d(P,"b",function(){return Ee}),o.d(P,"c",function(){return de}),o.d(P,"a",function(){return se});var I=o("eq1K"),re=o("D3Dy"),ne=o("EffR"),N=o("ZlPH"),k=o("XSiN"),U=o("AKMP"),j=o("G300"),G=o("X+cX"),R=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,tt){He.__proto__=tt}||function(He,tt){for(var Et in tt)tt.hasOwnProperty(Et)&&(He[Et]=tt[Et])},ie(me,ye)};return function(Q,me){ie(Q,me);function ye(){this.constructor=Q}Q.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),_=11,x=function(ie){R(Q,ie);function Q(me){var ye=ie.call(this)||this;return ye._onActivate=me.onActivate,ye.bgDomNode=document.createElement("div"),ye.bgDomNode.className="arrow-background",ye.bgDomNode.style.position="absolute",ye.bgDomNode.style.width=me.bgWidth+"px",ye.bgDomNode.style.height=me.bgHeight+"px",typeof me.top!="undefined"&&(ye.bgDomNode.style.top="0px"),typeof me.left!="undefined"&&(ye.bgDomNode.style.left="0px"),typeof me.bottom!="undefined"&&(ye.bgDomNode.style.bottom="0px"),typeof me.right!="undefined"&&(ye.bgDomNode.style.right="0px"),ye.domNode=document.createElement("div"),ye.domNode.className=me.className,ye.domNode.style.position="absolute",ye.domNode.style.width=_+"px",ye.domNode.style.height=_+"px",typeof me.top!="undefined"&&(ye.domNode.style.top=me.top+"px"),typeof me.left!="undefined"&&(ye.domNode.style.left=me.left+"px"),typeof me.bottom!="undefined"&&(ye.domNode.style.bottom=me.bottom+"px"),typeof me.right!="undefined"&&(ye.domNode.style.right=me.right+"px"),ye._mouseMoveMonitor=ye._register(new U.a),ye.onmousedown(ye.bgDomNode,function(He){return ye._arrowMouseDown(He)}),ye.onmousedown(ye.domNode,function(He){return ye._arrowMouseDown(He)}),ye._mousedownRepeatTimer=ye._register(new G.c),ye._mousedownScheduleRepeatTimer=ye._register(new G.e),ye}return Q.prototype._arrowMouseDown=function(me){var ye=this,He=function(){ye._mousedownRepeatTimer.cancelAndSet(function(){return ye._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(He,200),this._mouseMoveMonitor.startMonitoring(me.target,me.buttons,U.b,function(tt){},function(){ye._mousedownRepeatTimer.cancel(),ye._mousedownScheduleRepeatTimer.cancel()}),me.preventDefault()},Q}(j.a),K=o("pmY6"),D=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,tt){He.__proto__=tt}||function(He,tt){for(var Et in tt)tt.hasOwnProperty(Et)&&(He[Et]=tt[Et])},ie(me,ye)};return function(Q,me){ie(Q,me);function ye(){this.constructor=Q}Q.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),A=function(ie){D(Q,ie);function Q(me,ye,He){var tt=ie.call(this)||this;return tt._visibility=me,tt._visibleClassName=ye,tt._invisibleClassName=He,tt._domNode=null,tt._isVisible=!1,tt._isNeeded=!1,tt._shouldBeVisible=!1,tt._revealTimer=tt._register(new G.e),tt}return Q.prototype.applyVisibilitySetting=function(me){return this._visibility===2?!1:this._visibility===3?!0:me},Q.prototype.setShouldBeVisible=function(me){var ye=this.applyVisibilitySetting(me);this._shouldBeVisible!==ye&&(this._shouldBeVisible=ye,this.ensureVisibility())},Q.prototype.setIsNeeded=function(me){this._isNeeded!==me&&(this._isNeeded=me,this.ensureVisibility())},Q.prototype.setDomNode=function(me){this._domNode=me,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},Q.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)},Q.prototype._reveal=function(){var me=this;if(this._isVisible)return;this._isVisible=!0,this._revealTimer.setIfNotSet(function(){me._domNode&&me._domNode.setClassName(me._visibleClassName)},0)},Q.prototype._hide=function(me){if(this._revealTimer.cancel(),!this._isVisible)return;this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(me?" fade":""))},Q}(K.a),te=o("MNsG"),H=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,tt){He.__proto__=tt}||function(He,tt){for(var Et in tt)tt.hasOwnProperty(Et)&&(He[Et]=tt[Et])},ie(me,ye)};return function(Q,me){ie(Q,me);function ye(){this.constructor=Q}Q.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),E=140,f=function(ie){H(Q,ie);function Q(me){var ye=ie.call(this)||this;return ye._lazyRender=me.lazyRender,ye._host=me.host,ye._scrollable=me.scrollable,ye._scrollbarState=me.scrollbarState,ye._visibilityController=ye._register(new A(me.visibility,"visible scrollbar "+me.extraScrollbarClassName,"invisible scrollbar "+me.extraScrollbarClassName)),ye._visibilityController.setIsNeeded(ye._scrollbarState.isNeeded()),ye._mouseMoveMonitor=ye._register(new U.a),ye._shouldRender=!0,ye.domNode=Object(N.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(He){return ye._domNodeMouseDown(He)}),ye}return Q.prototype._createArrow=function(me){var ye=this._register(new x(me));this.domNode.domNode.appendChild(ye.bgDomNode),this.domNode.domNode.appendChild(ye.domNode)},Q.prototype._createSlider=function(me,ye,He,tt){var Et=this;this.slider=Object(N.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(me),this.slider.setLeft(ye),typeof He=="number"&&this.slider.setWidth(He),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(Pt){Pt.leftButton&&(Pt.preventDefault(),Et._sliderMouseDown(Pt,function(){}))}),this.onclick(this.slider.domNode,function(Pt){Pt.leftButton&&Pt.stopPropagation()})},Q.prototype._onElementSize=function(me){return this._scrollbarState.setVisibleSize(me)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},Q.prototype._onElementScrollSize=function(me){return this._scrollbarState.setScrollSize(me)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},Q.prototype._onElementScrollPosition=function(me){return this._scrollbarState.setScrollPosition(me)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},Q.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},Q.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},Q.prototype.render=function(){if(!this._shouldRender)return;this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition())},Q.prototype._domNodeMouseDown=function(me){if(me.target!==this.domNode.domNode)return;this._onMouseDown(me)},Q.prototype.delegateMouseDown=function(me){var ye=this.domNode.domNode.getClientRects()[0].top,He=ye+this._scrollbarState.getSliderPosition(),tt=ye+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),Et=this._sliderMousePosition(me);He<=Et&&Et<=tt?me.leftButton&&(me.preventDefault(),this._sliderMouseDown(me,function(){})):this._onMouseDown(me)},Q.prototype._onMouseDown=function(me){var ye,He;if(me.target===this.domNode.domNode&&typeof me.browserEvent.offsetX=="number"&&typeof me.browserEvent.offsetY=="number")ye=me.browserEvent.offsetX,He=me.browserEvent.offsetY;else{var tt=ne.B(this.domNode.domNode);ye=me.posx-tt.left,He=me.posy-tt.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(ye,He))),me.leftButton&&(me.preventDefault(),this._sliderMouseDown(me,function(){}))},Q.prototype._sliderMouseDown=function(me,ye){var He=this,tt=this._sliderMousePosition(me),Et=this._sliderOrthogonalMousePosition(me),Pt=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(me.target,me.buttons,U.b,function(Xt){var Ke=He._sliderOrthogonalMousePosition(Xt),Xe=Math.abs(Ke-Et);if(te.h&&Xe>E){He._setDesiredScrollPositionNow(Pt.getScrollPosition());return}var Ze=He._sliderMousePosition(Xt),Ye=Ze-tt;He._setDesiredScrollPositionNow(Pt.getDesiredScrollPositionFromDelta(Ye))},function(){He.slider.toggleClassName("active",!1),He._host.onDragEnd(),ye()}),this._host.onDragStart()},Q.prototype._setDesiredScrollPositionNow=function(me){var ye={};this.writeScrollPosition(ye,me),this._scrollable.setScrollPositionNow(ye)},Q}(j.a),p=20,g=function(){function ie(Q,me,ye,He,tt,Et){this._scrollbarSize=Math.round(me),this._oppositeScrollbarSize=Math.round(ye),this._arrowSize=Math.round(Q),this._visibleSize=He,this._scrollSize=tt,this._scrollPosition=Et,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(Q){var me=Math.round(Q);return this._visibleSize!==me?(this._visibleSize=me,this._refreshComputedValues(),!0):!1},ie.prototype.setScrollSize=function(Q){var me=Math.round(Q);return this._scrollSize!==me?(this._scrollSize=me,this._refreshComputedValues(),!0):!1},ie.prototype.setScrollPosition=function(Q){var me=Math.round(Q);return this._scrollPosition!==me?(this._scrollPosition=me,this._refreshComputedValues(),!0):!1},ie._computeValues=function(Q,me,ye,He,tt){var Et=Math.max(0,ye-Q),Pt=Math.max(0,Et-2*me),Xt=He>0&&He>ye;if(!Xt)return{computedAvailableSize:Math.round(Et),computedIsNeeded:Xt,computedSliderSize:Math.round(Pt),computedSliderRatio:0,computedSliderPosition:0};var Ke=Math.round(Math.max(p,Math.floor(ye*Pt/He))),Xe=(Pt-Ke)/(He-ye),Ze=tt*Xe;return{computedAvailableSize:Math.round(Et),computedIsNeeded:Xt,computedSliderSize:Math.round(Ke),computedSliderRatio:Xe,computedSliderPosition:Math.round(Ze)}},ie.prototype._refreshComputedValues=function(){var Q=ie._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=Q.computedAvailableSize,this._computedIsNeeded=Q.computedIsNeeded,this._computedSliderSize=Q.computedSliderSize,this._computedSliderRatio=Q.computedSliderRatio,this._computedSliderPosition=Q.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(Q){if(!this._computedIsNeeded)return 0;var me=Q-this._arrowSize-this._computedSliderSize/2;return Math.round(me/this._computedSliderRatio)},ie.prototype.getDesiredScrollPositionFromDelta=function(Q){if(!this._computedIsNeeded)return 0;var me=this._computedSliderPosition+Q;return Math.round(me/this._computedSliderRatio)},ie}(),m=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,tt){He.__proto__=tt}||function(He,tt){for(var Et in tt)tt.hasOwnProperty(Et)&&(He[Et]=tt[Et])},ie(me,ye)};return function(Q,me){ie(Q,me);function ye(){this.constructor=Q}Q.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),w=function(ie){m(Q,ie);function Q(me,ye,He){var tt=this,Et=me.getScrollDimensions(),Pt=me.getCurrentScrollPosition();if(tt=ie.call(this,{lazyRender:ye.lazyRender,host:He,scrollbarState:new g(ye.horizontalHasArrows?ye.arrowSize:0,ye.horizontal===2?0:ye.horizontalScrollbarSize,ye.vertical===2?0:ye.verticalScrollbarSize,Et.width,Et.scrollWidth,Pt.scrollLeft),visibility:ye.horizontal,extraScrollbarClassName:"horizontal",scrollable:me})||this,ye.horizontalHasArrows){var Xt=(ye.arrowSize-_)/2,Ke=(ye.horizontalScrollbarSize-_)/2;tt._createArrow({className:"left-arrow",top:Ke,left:Xt,bottom:void 0,right:void 0,bgWidth:ye.arrowSize,bgHeight:ye.horizontalScrollbarSize,onActivate:function(){return tt._host.onMouseWheel(new k.b(null,1,0))}}),tt._createArrow({className:"right-arrow",top:Ke,left:void 0,bottom:void 0,right:Xt,bgWidth:ye.arrowSize,bgHeight:ye.horizontalScrollbarSize,onActivate:function(){return tt._host.onMouseWheel(new k.b(null,-1,0))}})}return tt._createSlider(Math.floor((ye.horizontalScrollbarSize-ye.horizontalSliderSize)/2),0,void 0,ye.horizontalSliderSize),tt}return Q.prototype._updateSlider=function(me,ye){this.slider.setWidth(me),this.slider.setLeft(ye)},Q.prototype._renderDomNode=function(me,ye){this.domNode.setWidth(me),this.domNode.setHeight(ye),this.domNode.setLeft(0),this.domNode.setBottom(0)},Q.prototype.onDidScroll=function(me){return this._shouldRender=this._onElementScrollSize(me.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(me.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(me.width)||this._shouldRender,this._shouldRender},Q.prototype._mouseDownRelativePosition=function(me,ye){return me},Q.prototype._sliderMousePosition=function(me){return me.posx},Q.prototype._sliderOrthogonalMousePosition=function(me){return me.posy},Q.prototype.writeScrollPosition=function(me,ye){me.scrollLeft=ye},Q}(f),B=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,tt){He.__proto__=tt}||function(He,tt){for(var Et in tt)tt.hasOwnProperty(Et)&&(He[Et]=tt[Et])},ie(me,ye)};return function(Q,me){ie(Q,me);function ye(){this.constructor=Q}Q.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),z=function(ie){B(Q,ie);function Q(me,ye,He){var tt=this,Et=me.getScrollDimensions(),Pt=me.getCurrentScrollPosition();if(tt=ie.call(this,{lazyRender:ye.lazyRender,host:He,scrollbarState:new g(ye.verticalHasArrows?ye.arrowSize:0,ye.vertical===2?0:ye.verticalScrollbarSize,0,Et.height,Et.scrollHeight,Pt.scrollTop),visibility:ye.vertical,extraScrollbarClassName:"vertical",scrollable:me})||this,ye.verticalHasArrows){var Xt=(ye.arrowSize-_)/2,Ke=(ye.verticalScrollbarSize-_)/2;tt._createArrow({className:"up-arrow",top:Xt,left:Ke,bottom:void 0,right:void 0,bgWidth:ye.verticalScrollbarSize,bgHeight:ye.arrowSize,onActivate:function(){return tt._host.onMouseWheel(new k.b(null,0,1))}}),tt._createArrow({className:"down-arrow",top:void 0,left:Ke,bottom:Xt,right:void 0,bgWidth:ye.verticalScrollbarSize,bgHeight:ye.arrowSize,onActivate:function(){return tt._host.onMouseWheel(new k.b(null,0,-1))}})}return tt._createSlider(0,Math.floor((ye.verticalScrollbarSize-ye.verticalSliderSize)/2),ye.verticalSliderSize,void 0),tt}return Q.prototype._updateSlider=function(me,ye){this.slider.setHeight(me),this.slider.setTop(ye)},Q.prototype._renderDomNode=function(me,ye){this.domNode.setWidth(ye),this.domNode.setHeight(me),this.domNode.setRight(0),this.domNode.setTop(0)},Q.prototype.onDidScroll=function(me){return this._shouldRender=this._onElementScrollSize(me.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(me.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(me.height)||this._shouldRender,this._shouldRender},Q.prototype._mouseDownRelativePosition=function(me,ye){return ye},Q.prototype._sliderMousePosition=function(me){return me.posy},Q.prototype._sliderOrthogonalMousePosition=function(me){return me.posx},Q.prototype.writeScrollPosition=function(me,ye){me.scrollTop=ye},Q}(f),oe=o("MI8n"),he=o("QuOb"),_e=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,tt){He.__proto__=tt}||function(He,tt){for(var Et in tt)tt.hasOwnProperty(Et)&&(He[Et]=tt[Et])},ie(me,ye)};return function(Q,me){ie(Q,me);function ye(){this.constructor=Q}Q.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),Se=500,q=50,Z=!0,ce=function(){function ie(Q,me,ye){this.timestamp=Q,this.deltaX=me,this.deltaY=ye,this.score=0}return ie}(),Te=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 Q=1,me=0,ye=1,He=this._rear;do{var tt=He===this._front?Q:Math.pow(2,-ye);if(Q-=tt,me+=this._memory[He].score*tt,He===this._front)break;He=(this._capacity+He-1)%this._capacity,ye++}while(!0);return me<=.5},ie.prototype.accept=function(Q,me,ye){var He=new ce(Q,me,ye);He.score=this._computeScore(He),this._front===-1&&this._rear===-1?(this._memory[0]=He,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]=He)},ie.prototype._computeScore=function(Q){if(Math.abs(Q.deltaX)>0&&Math.abs(Q.deltaY)>0)return 1;var me=.5,ye=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs(Q.deltaX-Math.round(Q.deltaX))>0||Math.abs(Q.deltaY-Math.round(Q.deltaY))>0)&&(me+=.25),Math.min(Math.max(me,0),1)},ie.INSTANCE=new ie,ie}(),Ve=function(ie){_e(Q,ie);function Q(me,ye,He){var tt=ie.call(this)||this;tt._onScroll=tt._register(new oe.a),tt.onScroll=tt._onScroll.event,me.style.overflow="hidden",tt._options=fe(ye),tt._scrollable=He,tt._register(tt._scrollable.onScroll(function(Pt){tt._onDidScroll(Pt),tt._onScroll.fire(Pt)}));var Et={onMouseWheel:function(Xt){return tt._onMouseWheel(Xt)},onDragStart:function(){return tt._onDragStart()},onDragEnd:function(){return tt._onDragEnd()}};return tt._verticalScrollbar=tt._register(new z(tt._scrollable,tt._options,Et)),tt._horizontalScrollbar=tt._register(new w(tt._scrollable,tt._options,Et)),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(me),tt._domNode.appendChild(tt._horizontalScrollbar.domNode.domNode),tt._domNode.appendChild(tt._verticalScrollbar.domNode.domNode),tt._options.useShadows?(tt._leftShadowDomNode=Object(N.b)(document.createElement("div")),tt._leftShadowDomNode.setClassName("shadow"),tt._domNode.appendChild(tt._leftShadowDomNode.domNode),tt._topShadowDomNode=Object(N.b)(document.createElement("div")),tt._topShadowDomNode.setClassName("shadow"),tt._domNode.appendChild(tt._topShadowDomNode.domNode),tt._topLeftShadowDomNode=Object(N.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(Pt){return tt._onMouseOver(Pt)}),tt.onnonbubblingmouseout(tt._listenOnDomNode,function(Pt){return tt._onMouseOut(Pt)}),tt._hideTimeout=tt._register(new G.e),tt._isDragging=!1,tt._mouseIsOver=!1,tt._shouldRender=!0,tt._revealOnScroll=!0,tt}return Q.prototype.dispose=function(){this._mouseWheelToDispose=Object(K.f)(this._mouseWheelToDispose),ie.prototype.dispose.call(this)},Q.prototype.getDomNode=function(){return this._domNode},Q.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},Q.prototype.delegateVerticalScrollbarMouseDown=function(me){this._verticalScrollbar.delegateMouseDown(me)},Q.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},Q.prototype.setScrollDimensions=function(me){this._scrollable.setScrollDimensions(me)},Q.prototype.updateClassName=function(me){this._options.className=me,te.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},Q.prototype.updateOptions=function(me){var ye=fe(me);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()},Q.prototype._setListeningToMouseWheel=function(me){var ye=this,He=this._mouseWheelToDispose.length>0;if(He===me)return;if(this._mouseWheelToDispose=Object(K.f)(this._mouseWheelToDispose),me){var tt=function(Pt){ye._onMouseWheel(new k.b(Pt))};this._mouseWheelToDispose.push(ne.i(this._listenOnDomNode,re.f?"mousewheel":"wheel",tt,{passive:!1}))}},Q.prototype._onMouseWheel=function(me){var ye,He=Te.INSTANCE;if(Z&&He.accept(Date.now(),me.deltaX,me.deltaY),me.deltaY||me.deltaX){var tt=me.deltaY*this._options.mouseWheelScrollSensitivity,Et=me.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(ye=[Et,tt],tt=ye[0],Et=ye[1]);var Pt=!te.e&&me.browserEvent&&me.browserEvent.shiftKey;(this._options.scrollYToX||Pt)&&!Et&&(Et=tt,tt=0),me.browserEvent&&me.browserEvent.altKey&&(Et=Et*this._options.fastScrollSensitivity,tt=tt*this._options.fastScrollSensitivity);var Xt=this._scrollable.getFutureScrollPosition(),Ke={};if(tt){var Xe=Xt.scrollTop-q*tt;this._verticalScrollbar.writeScrollPosition(Ke,Xe)}if(Et){var Ze=Xt.scrollLeft-q*Et;this._horizontalScrollbar.writeScrollPosition(Ke,Ze)}if(Ke=this._scrollable.validateScrollPosition(Ke),Xt.scrollLeft!==Ke.scrollLeft||Xt.scrollTop!==Ke.scrollTop){var Ye=Z&&this._options.mouseWheelSmoothScroll&&He.isPhysicalMouseWheel();Ye?this._scrollable.setScrollPositionSmooth(Ke):this._scrollable.setScrollPositionNow(Ke),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(me.preventDefault(),me.stopPropagation())},Q.prototype._onDidScroll=function(me){this._shouldRender=this._horizontalScrollbar.onDidScroll(me)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(me)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},Q.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},Q.prototype._render=function(){if(!this._shouldRender)return;if(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows){var me=this._scrollable.getCurrentScrollPosition(),ye=me.scrollTop>0,He=me.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(He?" left":"")),this._topShadowDomNode.setClassName("shadow"+(ye?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(ye?" top":"")+(He?" left":""))}},Q.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},Q.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},Q.prototype._onMouseOut=function(me){this._mouseIsOver=!1,this._hide()},Q.prototype._onMouseOver=function(me){this._mouseIsOver=!0,this._reveal()},Q.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},Q.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},Q.prototype._scheduleHide=function(){var me=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return me._hide()},Se)},Q}(j.a),Ee=function(ie){_e(Q,ie);function Q(me,ye){var He=this;ye=ye||{},ye.mouseWheelSmoothScroll=!1;var tt=new he.a(0,function(Et){return ne.V(Et)});return He=ie.call(this,me,ye,tt)||this,He._register(tt),He}return Q.prototype.setScrollPosition=function(me){this._scrollable.setScrollPositionNow(me)},Q.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},Q}(Ve),de=function(ie){_e(Q,ie);function Q(me,ye,He){return ie.call(this,me,ye,He)||this}return Q}(Ve),se=function(ie){_e(Q,ie);function Q(me,ye){var He=ie.call(this,me,ye)||this;return He._element=me,He.onScroll(function(tt){tt.scrollTopChanged&&(He._element.scrollTop=tt.scrollTop),tt.scrollLeftChanged&&(He._element.scrollLeft=tt.scrollLeft)}),He.scanDomNode(),He}return Q.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})},Q}(Ee);function fe(ie){var Q={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 Q.horizontalSliderSize=typeof ie.horizontalSliderSize!="undefined"?ie.horizontalSliderSize:Q.horizontalScrollbarSize,Q.verticalSliderSize=typeof ie.verticalSliderSize!="undefined"?ie.verticalSliderSize:Q.verticalScrollbarSize,te.e&&(Q.className+=" mac"),Q}},"GR/f":function(wt,P,o){"use strict";o.d(P,"a",function(){return te}),o.d(P,"b",function(){return H});var I=o("/cxE"),re=o("N0LK"),ne=o("LCkn"),N=o("Ll0s"),k=o("aokT"),U=o("gCVg"),j=o("cMvZ"),G=Object.create(null);function R(E,f){G[E]||(G[E]=["",E]);for(var p=G[E],g=p.length;g<=f;g++)p[g]=p[g-1]+E;return p[f]}var _=function(){function E(f,p){this._opts=p,this._selection=f,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return E.unshiftIndent=function(f,p,g,m,w){var B=N.a.visibleColumnFromColumn(f,p,g);if(w){var z=R(" ",m),oe=N.a.prevIndentTabStop(B,m),he=oe/m;return R(z,he)}else{var z=" ",oe=N.a.prevRenderTabStop(B,g),he=oe/g;return R(z,he)}},E.shiftIndent=function(f,p,g,m,w){var B=N.a.visibleColumnFromColumn(f,p,g);if(w){var z=R(" ",m),oe=N.a.nextIndentTabStop(B,m),he=oe/m;return R(z,he)}else{var z=" ",oe=N.a.nextRenderTabStop(B,g),he=oe/g;return R(z,he)}},E.prototype._addEditOperation=function(f,p,g){this._useLastEditRangeForCursorEndPosition?f.addTrackedEditOperation(p,g):f.addEditOperation(p,g)},E.prototype.getEditOperations=function(f,p){var g=this._selection.startLineNumber,m=this._selection.endLineNumber;this._selection.endColumn===1&&g!==m&&(m=m-1);var w=this._opts,B=w.tabSize,z=w.indentSize,oe=w.insertSpaces,he=g===m;if(this._selection.isEmpty()&&(/^\s*$/.test(f.getLineContent(g))&&(this._useLastEditRangeForCursorEndPosition=!0)),this._opts.useTabStops)for(var _e=0,Se=0,q=g;q<=m;q++,_e=Se){Se=0;var Z=f.getLineContent(q),ce=re.q(Z);if(this._opts.isUnshift&&(Z.length===0||ce===0))continue;if(!he&&!this._opts.isUnshift&&Z.length===0)continue;if(ce===-1&&(ce=Z.length),q>1){var Te=N.a.visibleColumnFromColumn(Z,ce+1,B);if(Te%z!==0&&f.isCheapToTokenize(q-1)){var Ve=j.a.getEnterAction(this._opts.autoIndent,f,new k.a(q-1,f.getLineMaxColumn(q-1),q-1,f.getLineMaxColumn(q-1)));if(Ve){if(Se=_e,Ve.appendText)for(var Ee=0,de=Ve.appendText.length;Ee<de&&Se<z&&Ve.appendText.charCodeAt(Ee)===32;Ee++)Se++;Ve.removeText&&(Se=Math.max(0,Se-Ve.removeText));for(var Ee=0;Ee<Se&&!(ce===0||Z.charCodeAt(ce-1)!==32);Ee++)ce--}}}if(this._opts.isUnshift&&ce===0)continue;var se=void 0;this._opts.isUnshift?se=E.unshiftIndent(Z,ce+1,B,z,oe):se=E.shiftIndent(Z,ce+1,B,z,oe),this._addEditOperation(p,new k.a(q,1,q,ce+1),se),q===g&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=ce+1)}else for(var fe=oe?R(" ",z):" ",q=g;q<=m;q++){var Z=f.getLineContent(q),ce=re.q(Z);if(this._opts.isUnshift&&(Z.length===0||ce===0))continue;if(!he&&!this._opts.isUnshift&&Z.length===0)continue;if(ce===-1&&(ce=Z.length),this._opts.isUnshift&&ce===0)continue;if(this._opts.isUnshift){ce=Math.min(ce,z);for(var ie=0;ie<ce;ie++){var Q=Z.charCodeAt(ie);if(Q===9){ce=ie+1;break}}this._addEditOperation(p,new k.a(q,1,q,ce+1),"")}else this._addEditOperation(p,new k.a(q,1,q,1),fe),q===g&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}this._selectionId=p.trackSelection(this._selection)},E.prototype.computeCursorState=function(f,p){if(this._useLastEditRangeForCursorEndPosition){var g=p.getInverseEditOperations()[0];return new U.a(g.range.endLineNumber,g.range.endColumn,g.range.endLineNumber,g.range.endColumn)}var m=p.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var w=this._selection.startColumn,B=m.startColumn;return B<=w?m:m.getDirection()===0?new U.a(m.startLineNumber,w,m.endLineNumber,m.endColumn):new U.a(m.endLineNumber,m.endColumn,m.startLineNumber,w)}return m},E}(),x=function(){function E(f,p,g){this._range=f,this._charBeforeSelection=p,this._charAfterSelection=g}return E.prototype.getEditOperations=function(f,p){p.addTrackedEditOperation(new k.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),p.addTrackedEditOperation(new k.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},E.prototype.computeCursorState=function(f,p){var g=p.getInverseEditOperations(),m=g[0].range,w=g[1].range;return new U.a(m.endLineNumber,m.endColumn,w.endLineNumber,w.endColumn-this._charAfterSelection.length)},E}(),K=o("5v8Y"),D=o("KDc4"),A=function(){var E=function(p,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},E(p,g)};return function(f,p){E(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),te=function(){function E(){}return E.indent=function(f,p,g){if(p===null||g===null)return[];for(var m=[],w=0,B=g.length;w<B;w++)m[w]=new _(g[w],{isUnshift:!1,tabSize:f.tabSize,indentSize:f.indentSize,insertSpaces:f.insertSpaces,useTabStops:f.useTabStops,autoIndent:f.autoIndent});return m},E.outdent=function(f,p,g){for(var m=[],w=0,B=g.length;w<B;w++)m[w]=new _(g[w],{isUnshift:!0,tabSize:f.tabSize,indentSize:f.indentSize,insertSpaces:f.insertSpaces,useTabStops:f.useTabStops,autoIndent:f.autoIndent});return m},E.shiftIndent=function(f,p,g){return g=g||1,_.shiftIndent(p,p.length+g,f.tabSize,f.indentSize,f.insertSpaces)},E.unshiftIndent=function(f,p,g){return g=g||1,_.unshiftIndent(p,p.length+g,f.tabSize,f.indentSize,f.insertSpaces)},E._distributedPaste=function(f,p,g,m){for(var w=[],B=0,z=g.length;B<z;B++)w[B]=new ne.a(g[B],m[B]);return new N.e(0,w,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},E._simplePaste=function(f,p,g,m,w){for(var B=[],z=0,oe=g.length;z<oe;z++){var he=g[z],_e=he.getPosition();if(w&&!he.isEmpty()&&(w=!1),w&&m.indexOf(`
`)!==m.length-1&&(w=!1),w){var Se=new k.a(_e.lineNumber,1,_e.lineNumber,1);B[z]=new ne.b(Se,m,he,!0)}else B[z]=new ne.a(he,m)}return new N.e(0,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},E._distributePasteToCursors=function(f,p,g,m,w){if(m)return null;if(p.length===1)return null;if(w&&w.length===p.length)return w;if(f.multiCursorPaste==="spread"){g.charCodeAt(g.length-1)===10&&(g=g.substr(0,g.length-1)),g.charCodeAt(g.length-1)===13&&(g=g.substr(0,g.length-1));var B=g.split(/\r\n|\r|\n/);if(B.length===p.length)return B}return null},E.paste=function(f,p,g,m,w,B){var z=this._distributePasteToCursors(f,g,m,w,B);return z?(g=g.sort(k.a.compareRangesUsingStarts),this._distributedPaste(f,p,g,z)):this._simplePaste(f,p,g,m,w)},E._goodIndentForLine=function(f,p,g){var m=null,w="",B=j.a.getInheritIndentForLine(f.autoIndent,p,g,!1);if(B)m=B.action,w=B.indentation;else if(g>1){var z=void 0;for(z=g-1;z>=1;z--){var oe=p.getLineContent(z),he=re.D(oe);if(he>=0)break}if(z<1)return null;var _e=p.getLineMaxColumn(z),Se=j.a.getEnterAction(f.autoIndent,p,new k.a(z,_e,z,_e));Se&&(w=Se.indentation+Se.appendText)}return m&&(m===D.a.Indent&&(w=E.shiftIndent(f,w)),m===D.a.Outdent&&(w=E.unshiftIndent(f,w)),w=f.normalizeIndentation(w)),w||null},E._replaceJumpToNextIndent=function(f,p,g,m){var w="",B=g.getStartPosition();if(f.insertSpaces)for(var z=N.a.visibleColumnFromColumn2(f,p,B),oe=f.indentSize,he=oe-z%oe,_e=0;_e<he;_e++)w+=" ";else w=" ";return new ne.a(g,w,m)},E.tab=function(f,p,g){for(var m=[],w=0,B=g.length;w<B;w++){var z=g[w];if(z.isEmpty()){var oe=p.getLineContent(z.startLineNumber);if(/^\s*$/.test(oe)&&p.isCheapToTokenize(z.startLineNumber)){var he=this._goodIndentForLine(f,p,z.startLineNumber);he=he||" ";var _e=f.normalizeIndentation(he);if(!re.M(oe,_e)){m[w]=new ne.a(new k.a(z.startLineNumber,1,z.startLineNumber,oe.length+1),_e,!0);continue}}m[w]=this._replaceJumpToNextIndent(f,p,z,!0)}else{if(z.startLineNumber===z.endLineNumber){var Se=p.getLineMaxColumn(z.startLineNumber);if(z.startColumn!==1||z.endColumn!==Se){m[w]=this._replaceJumpToNextIndent(f,p,z,!1);continue}}m[w]=new _(z,{isUnshift:!1,tabSize:f.tabSize,indentSize:f.indentSize,insertSpaces:f.insertSpaces,useTabStops:f.useTabStops,autoIndent:f.autoIndent})}}return m},E.replacePreviousChar=function(f,p,g,m,w,B){for(var z=[],oe=0,he=m.length;oe<he;oe++){var _e=m[oe];if(!_e.isEmpty()){z[oe]=null;continue}var Se=_e.getPosition(),q=Math.max(1,Se.column-B),Z=new k.a(Se.lineNumber,q,Se.lineNumber,Se.column);z[oe]=new ne.a(Z,w)}return new N.e(1,z,{shouldPushStackElementBefore:f!==1,shouldPushStackElementAfter:!1})},E._typeCommand=function(f,p,g){return g?new ne.d(f,p,!0):new ne.a(f,p,!0)},E._enter=function(f,p,g,m){if(f.autoIndent===0)return E._typeCommand(m,`
`,g);if(!p.isCheapToTokenize(m.getStartPosition().lineNumber)||f.autoIndent===1){var w=p.getLineContent(m.startLineNumber),B=re.t(w).substring(0,m.startColumn-1);return E._typeCommand(m,`
`+f.normalizeIndentation(B),g)}var z=j.a.getEnterAction(f.autoIndent,p,m);if(z){if(z.indentAction===D.a.None)return E._typeCommand(m,`
`+f.normalizeIndentation(z.indentation+z.appendText),g);if(z.indentAction===D.a.Indent)return E._typeCommand(m,`
`+f.normalizeIndentation(z.indentation+z.appendText),g);if(z.indentAction===D.a.IndentOutdent){var oe=f.normalizeIndentation(z.indentation),he=f.normalizeIndentation(z.indentation+z.appendText),_e=`
`+he+`
`+oe;return g?new ne.d(m,_e,!0):new ne.c(m,_e,-1,he.length-oe.length,!0)}else if(z.indentAction===D.a.Outdent){var Se=E.unshiftIndent(f,z.indentation);return E._typeCommand(m,`
`+f.normalizeIndentation(Se+z.appendText),g)}}var q=p.getLineContent(m.startLineNumber),Z=re.t(q).substring(0,m.startColumn-1);if(f.autoIndent>=4){var ce=j.a.getIndentForEnter(f.autoIndent,p,m,{unshiftIndent:function(Q){return E.unshiftIndent(f,Q)},shiftIndent:function(Q){return E.shiftIndent(f,Q)},normalizeIndentation:function(Q){return f.normalizeIndentation(Q)}});if(ce){var Te=N.a.visibleColumnFromColumn2(f,p,m.getEndPosition()),Ve=m.endColumn,Ee=`
`;Z!==f.normalizeIndentation(ce.beforeEnter)&&(Ee=f.normalizeIndentation(ce.beforeEnter)+q.substring(Z.length,m.startColumn-1)+`
`,m=new k.a(m.startLineNumber,1,m.endLineNumber,m.endColumn));var de=p.getLineContent(m.endLineNumber),se=re.q(de);if(se>=0?m=m.setEndPosition(m.endLineNumber,Math.max(m.endColumn,se+1)):m=m.setEndPosition(m.endLineNumber,p.getLineMaxColumn(m.endLineNumber)),g)return new ne.d(m,Ee+f.normalizeIndentation(ce.afterEnter),!0);var fe=0;return Ve<=se+1&&(f.insertSpaces||(Te=Math.ceil(Te/f.indentSize)),fe=Math.min(Te+1-f.normalizeIndentation(ce.afterEnter).length-1,0)),new ne.c(m,Ee+f.normalizeIndentation(ce.afterEnter),0,fe,!0)}}return E._typeCommand(m,`
`+f.normalizeIndentation(Z),g)},E._isAutoIndentType=function(f,p,g){if(f.autoIndent<4)return!1;for(var m=0,w=g.length;m<w;m++)if(!p.isCheapToTokenize(g[m].getEndPosition().lineNumber))return!1;return!0},E._runAutoIndentType=function(f,p,g,m){var w=j.a.getIndentationAtPosition(p,g.startLineNumber,g.startColumn),B=j.a.getIndentActionForType(f.autoIndent,p,g,m,{shiftIndent:function(he){return E.shiftIndent(f,he)},unshiftIndent:function(he){return E.unshiftIndent(f,he)}});if(B===null)return null;if(B!==f.normalizeIndentation(w)){var z=p.getLineFirstNonWhitespaceColumn(g.startLineNumber);return z===0?E._typeCommand(new k.a(g.startLineNumber,0,g.endLineNumber,g.endColumn),f.normalizeIndentation(B)+m,!1):E._typeCommand(new k.a(g.startLineNumber,0,g.endLineNumber,g.endColumn),f.normalizeIndentation(B)+p.getLineContent(g.startLineNumber).substring(z-1,g.startColumn-1)+m,!1)}return null},E._isAutoClosingOvertype=function(f,p,g,m,w){if(f.autoClosingOvertype==="never")return!1;if(!f.autoClosingPairsClose2.has(w))return!1;for(var B=0,z=g.length;B<z;B++){var oe=g[B];if(!oe.isEmpty())return!1;var he=oe.getPosition(),_e=p.getLineContent(he.lineNumber),Se=_e.charAt(he.column-1);if(Se!==w)return!1;var q=Object(N.g)(w),Z=he.column>2?_e.charCodeAt(he.column-2):0;if(Z===92&&q)return!1;if(f.autoClosingOvertype==="auto"){for(var ce=!1,Te=0,Ve=m.length;Te<Ve;Te++){var Ee=m[Te];if(he.lineNumber===Ee.startLineNumber&&he.column===Ee.startColumn){ce=!0;break}}if(!ce)return!1}}return!0},E._runAutoClosingOvertype=function(f,p,g,m,w){for(var B=[],z=0,oe=m.length;z<oe;z++){var he=m[z],_e=he.getPosition(),Se=new k.a(_e.lineNumber,_e.column,_e.lineNumber,_e.column+1);B[z]=new ne.a(Se,w)}return new N.e(1,B,{shouldPushStackElementBefore:f!==1,shouldPushStackElementAfter:!1})},E._autoClosingPairIsSymmetric=function(f){var p=f.open,g=f.close;return p.indexOf(g)>=0||g.indexOf(p)>=0},E._isBeforeClosingBrace=function(f,p,g){var m=f.autoClosingPairsClose2.get(g);if(!m)return!1;for(var w=E._autoClosingPairIsSymmetric(p),B=0,z=m;B<z.length;B++){var oe=z[B],he=E._autoClosingPairIsSymmetric(oe);if(!w&&he)continue;return!0}return!1},E._findAutoClosingPairOpen=function(f,p,g,m){var w=f.autoClosingPairsOpen2.get(m);if(!w)return null;for(var B=null,z=0,oe=w;z<oe.length;z++){var he=oe[z];if(B===null||he.open.length>B.open.length){for(var _e=!0,Se=0,q=g;Se<q.length;Se++){var Z=q[Se],ce=p.getValueInRange(new k.a(Z.lineNumber,Z.column-he.open.length+1,Z.lineNumber,Z.column));if(ce+m!==he.open){_e=!1;break}}_e&&(B=he)}}return B},E._isAutoClosingOpenCharType=function(f,p,g,m,w){var B=Object(N.g)(m),z=B?f.autoClosingQuotes:f.autoClosingBrackets;if(z==="never")return null;var oe=this._findAutoClosingPairOpen(f,p,g.map(function(fe){return fe.getPosition()}),m);if(!oe)return null;for(var he=B?f.shouldAutoCloseBefore.quote:f.shouldAutoCloseBefore.bracket,_e=0,Se=g.length;_e<Se;_e++){var q=g[_e];if(!q.isEmpty())return null;var Z=q.getPosition(),ce=p.getLineContent(Z.lineNumber);if(ce.length>Z.column-1){var Te=ce.charAt(Z.column-1),Ve=E._isBeforeClosingBrace(f,oe,Te);if(!Ve&&!he(Te))return null}if(!p.isCheapToTokenize(Z.lineNumber))return null;if(oe.open.length===1&&B&&z!=="always"){var Ee=Object(K.a)(f.wordSeparators);if(w&&Z.column>1&&Ee.get(ce.charCodeAt(Z.column-2))===0)return null;if(!w&&Z.column>2&&Ee.get(ce.charCodeAt(Z.column-3))===0)return null}p.forceTokenization(Z.lineNumber);var de=p.getLineTokens(Z.lineNumber),se=!1;try{se=j.a.shouldAutoClosePair(oe,de,w?Z.column:Z.column-1)}catch(fe){Object(I.e)(fe)}if(!se)return null}return oe},E._runAutoClosingOpenCharType=function(f,p,g,m,w,B,z){for(var oe=[],he=0,_e=m.length;he<_e;he++){var Se=m[he];oe[he]=new H(Se,w,B,z.close)}return new N.e(1,oe,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},E._shouldSurroundChar=function(f,p){return Object(N.g)(p)?f.autoSurround==="quotes"||f.autoSurround==="languageDefined":f.autoSurround==="brackets"||f.autoSurround==="languageDefined"},E._isSurroundSelectionType=function(f,p,g,m){if(!E._shouldSurroundChar(f,m)||!f.surroundingPairs.hasOwnProperty(m))return!1;for(var w=Object(N.g)(m),B=0,z=g.length;B<z;B++){var oe=g[B];if(oe.isEmpty())return!1;for(var he=!0,_e=oe.startLineNumber;_e<=oe.endLineNumber;_e++){var Se=p.getLineContent(_e),q=_e===oe.startLineNumber?oe.startColumn-1:0,Z=_e===oe.endLineNumber?oe.endColumn-1:Se.length,ce=Se.substring(q,Z);if(/[^ \t]/.test(ce)){he=!1;break}}if(he)return!1;if(w&&oe.startLineNumber===oe.endLineNumber&&oe.startColumn+1===oe.endColumn){var Te=p.getValueInRange(oe);if(Object(N.g)(Te))return!1}}return!0},E._runSurroundSelectionType=function(f,p,g,m,w){for(var B=[],z=0,oe=m.length;z<oe;z++){var he=m[z],_e=p.surroundingPairs[w];B[z]=new x(he,w,_e)}return new N.e(0,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},E._isTypeInterceptorElectricChar=function(f,p,g){return!!(g.length===1&&p.isCheapToTokenize(g[0].getEndPosition().lineNumber))},E._typeInterceptorElectricChar=function(f,p,g,m,w){if(!p.electricChars.hasOwnProperty(w)||!m.isEmpty())return null;var B=m.getPosition();g.forceTokenization(B.lineNumber);var z=g.getLineTokens(B.lineNumber),oe;try{oe=j.a.onElectricCharacter(w,z,B.column)}catch(fe){return Object(I.e)(fe),null}if(!oe)return null;if(oe.matchOpenBracket){var he=(z.getLineContent()+w).lastIndexOf(oe.matchOpenBracket)+1,_e=g.findMatchingBracketUp(oe.matchOpenBracket,{lineNumber:B.lineNumber,column:he});if(_e){if(_e.startLineNumber===B.lineNumber)return null;var Se=g.getLineContent(_e.startLineNumber),q=re.t(Se),Z=p.normalizeIndentation(q),ce=g.getLineContent(B.lineNumber),Te=g.getLineFirstNonWhitespaceColumn(B.lineNumber)||B.column,Ve=ce.substring(Te-1,B.column-1),Ee=Z+Ve+w,de=new k.a(B.lineNumber,1,B.lineNumber,B.column),se=new ne.a(de,Ee);return new N.e(1,[se],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},E.compositionEndWithInterceptors=function(f,p,g,m,w,B){if(!m||U.a.selectionsArrEqual(m,w))return null;for(var z=null,oe=0,he=w;oe<he.length;oe++){var _e=he[oe];if(!_e.isEmpty())return null;var Se=_e.getPosition(),q=g.getValueInRange(new k.a(Se.lineNumber,Se.column-1,Se.lineNumber,Se.column));if(z===null)z=q;else if(z!==q)return null}if(!z)return null;if(this._isAutoClosingOvertype(p,g,w,B,z)){var Z=w.map(function(Te){return new ne.a(new k.a(Te.positionLineNumber,Te.positionColumn,Te.positionLineNumber,Te.positionColumn+1),"",!1)});return new N.e(1,Z,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var ce=this._isAutoClosingOpenCharType(p,g,w,z,!1);return ce?this._runAutoClosingOpenCharType(f,p,g,w,z,!1,ce):null},E.typeWithInterceptors=function(f,p,g,m,w,B){if(B===`
`){for(var z=[],oe=0,he=m.length;oe<he;oe++)z[oe]=E._enter(p,g,!1,m[oe]);return new N.e(1,z,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(p,g,m)){for(var _e=[],Se=!1,oe=0,he=m.length;oe<he;oe++)if(_e[oe]=this._runAutoIndentType(p,g,m[oe],B),!_e[oe]){Se=!0;break}if(!Se)return new N.e(1,_e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(p,g,m,w,B))return this._runAutoClosingOvertype(f,p,g,m,B);var q=this._isAutoClosingOpenCharType(p,g,m,B,!0);if(q)return this._runAutoClosingOpenCharType(f,p,g,m,B,!0,q);if(this._isSurroundSelectionType(p,g,m,B))return this._runSurroundSelectionType(f,p,g,m,B);if(this._isTypeInterceptorElectricChar(p,g,m)){var Z=this._typeInterceptorElectricChar(f,p,g,m[0],B);if(Z)return Z}for(var ce=[],oe=0,he=m.length;oe<he;oe++)ce[oe]=new ne.a(m[oe],B);var Te=f!==1;return B===" "&&(Te=!0),new N.e(1,ce,{shouldPushStackElementBefore:Te,shouldPushStackElementAfter:!1})},E.typeWithoutInterceptors=function(f,p,g,m,w){for(var B=[],z=0,oe=m.length;z<oe;z++)B[z]=new ne.a(m[z],w);return new N.e(1,B,{shouldPushStackElementBefore:f!==1,shouldPushStackElementAfter:!1})},E.lineInsertBefore=function(f,p,g){if(p===null||g===null)return[];for(var m=[],w=0,B=g.length;w<B;w++){var z=g[w].positionLineNumber;if(z===1)m[w]=new ne.d(new k.a(1,1,1,1),`
`);else{z--;var oe=p.getLineMaxColumn(z);m[w]=this._enter(f,p,!1,new k.a(z,oe,z,oe))}}return m},E.lineInsertAfter=function(f,p,g){if(p===null||g===null)return[];for(var m=[],w=0,B=g.length;w<B;w++){var z=g[w].positionLineNumber,oe=p.getLineMaxColumn(z);m[w]=this._enter(f,p,!1,new k.a(z,oe,z,oe))}return m},E.lineBreakInsert=function(f,p,g){for(var m=[],w=0,B=g.length;w<B;w++)m[w]=this._enter(f,p,!0,g[w]);return m},E}(),H=function(E){A(f,E);function f(p,g,m,w){var B=E.call(this,p,(m?g:"")+w,0,-w.length)||this;return B._openCharacter=g,B._closeCharacter=w,B.closeCharacterRange=null,B.enclosingRange=null,B}return f.prototype.computeCursorState=function(p,g){var m=g.getInverseEditOperations(),w=m[0].range;return this.closeCharacterRange=new k.a(w.startLineNumber,w.endColumn-this._closeCharacter.length,w.endLineNumber,w.endColumn),this.enclosingRange=new k.a(w.startLineNumber,w.endColumn-this._openCharacter.length-this._closeCharacter.length,w.endLineNumber,w.endColumn),E.prototype.computeCursorState.call(this,p,g)},f}(ne.c)},GZrW:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return o.e(248).then(o.bind(null,"Csoz"))}})},Gb1F:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return o.e(244).then(o.bind(null,"ynbn"))}})},H6Gb:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return o.e(231).then(o.bind(null,"lXEz"))}})},HdwC:function(wt,P,o){"use strict";o.d(P,"b",function(){return A}),o.d(P,"a",function(){return H});var I=o("D3Dy"),re=o("MI8n"),ne=o("pmY6"),N=o("MNsG"),k=function(){function E(f,p){this.chr=f,this.type=p,this.width=0}return E.prototype.fulfill=function(f){this.width=f},E}(),U=function(){function E(f,p){this._bareFontInfo=f,this._requests=p,this._container=null,this._testElements=null}return E.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},E.prototype._createDomElements=function(){var f=document.createElement("div");f.style.position="absolute",f.style.top="-50000px",f.style.width="50000px";var p=document.createElement("div");p.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),p.style.fontWeight=this._bareFontInfo.fontWeight,p.style.fontSize=this._bareFontInfo.fontSize+"px",p.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,p.style.lineHeight=this._bareFontInfo.lineHeight+"px",p.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.appendChild(p);var g=document.createElement("div");g.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),g.style.fontWeight="bold",g.style.fontSize=this._bareFontInfo.fontSize+"px",g.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,g.style.lineHeight=this._bareFontInfo.lineHeight+"px",g.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.appendChild(g);var m=document.createElement("div");m.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),m.style.fontWeight=this._bareFontInfo.fontWeight,m.style.fontSize=this._bareFontInfo.fontSize+"px",m.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,m.style.lineHeight=this._bareFontInfo.lineHeight+"px",m.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",m.style.fontStyle="italic",f.appendChild(m);for(var w=[],B=0,z=this._requests;B<z.length;B++){var oe=z[B],he=void 0;oe.type===0&&(he=p),oe.type===2&&(he=g),oe.type===1&&(he=m),he.appendChild(document.createElement("br"));var _e=document.createElement("span");E._render(_e,oe),he.appendChild(_e),w.push(_e)}this._container=f,this._testElements=w},E._render=function(f,p){if(p.chr===" "){for(var g="&#160;",m=0;m<8;m++)g+=g;f.innerHTML=g}else{for(var w=p.chr,m=0;m<8;m++)w+=w;f.textContent=w}},E.prototype._readFromDomElements=function(){for(var f=0,p=this._requests.length;f<p;f++){var g=this._requests[f],m=this._testElements[f];g.fulfill(m.offsetWidth/256)}},E}();function j(E,f){var p=new U(E,f);p.read()}var G=o("o39E"),R=o("iDAx"),_=o("/UlZ"),x=o("+3Gp"),K=function(){var E=function(p,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},E(p,g)};return function(f,p){E(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),D=function(){function E(){this._keys=Object.create(null),this._values=Object.create(null)}return E.prototype.has=function(f){var p=f.getId();return!!this._values[p]},E.prototype.get=function(f){var p=f.getId();return this._values[p]},E.prototype.put=function(f,p){var g=f.getId();this._keys[g]=f,this._values[g]=p},E.prototype.remove=function(f){var p=f.getId();delete this._keys[p],delete this._values[p]},E.prototype.getValues=function(){var f=this;return Object.keys(this._keys).map(function(p){return f._values[p]})},E}();function A(){te.INSTANCE.clearCache()}var te=function(E){K(f,E);function f(){var p=E.call(this)||this;return p._onDidChange=p._register(new re.a),p.onDidChange=p._onDidChange.event,p._cache=new D,p._evictUntrustedReadingsTimeout=-1,p}return f.prototype.dispose=function(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),E.prototype.dispose.call(this)},f.prototype.clearCache=function(){this._cache=new D,this._onDidChange.fire()},f.prototype._writeToCache=function(p,g){var m=this;this._cache.put(p,g),!g.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(function(){m._evictUntrustedReadingsTimeout=-1,m._evictUntrustedReadings()},5e3))},f.prototype._evictUntrustedReadings=function(){for(var p=this._cache.getValues(),g=!1,m=0,w=p.length;m<w;m++){var B=p[m];B.isTrusted||(g=!0,this._cache.remove(B))}g&&this._onDidChange.fire()},f.prototype.readConfiguration=function(p){if(!this._cache.has(p)){var g=f._actualReadConfiguration(p);(g.typicalHalfwidthCharacterWidth<=2||g.typicalFullwidthCharacterWidth<=2||g.spaceWidth<=2||g.maxDigitWidth<=2)&&(g=new x.b({zoomLevel:I.c(),fontFamily:g.fontFamily,fontWeight:g.fontWeight,fontSize:g.fontSize,fontFeatureSettings:g.fontFeatureSettings,lineHeight:g.lineHeight,letterSpacing:g.letterSpacing,isMonospace:g.isMonospace,typicalHalfwidthCharacterWidth:Math.max(g.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(g.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:g.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(g.spaceWidth,5),middotWidth:Math.max(g.middotWidth,5),maxDigitWidth:Math.max(g.maxDigitWidth,5)},!1)),this._writeToCache(p,g)}return this._cache.get(p)},f.createRequest=function(p,g,m,w){var B=new k(p,g);return m.push(B),w&&w.push(B),B},f._actualReadConfiguration=function(p){var g=[],m=[],w=this.createRequest("n",0,g,m),B=this.createRequest("\uFF4D",0,g,null),z=this.createRequest(" ",0,g,m),oe=this.createRequest("0",0,g,m),he=this.createRequest("1",0,g,m),_e=this.createRequest("2",0,g,m),Se=this.createRequest("3",0,g,m),q=this.createRequest("4",0,g,m),Z=this.createRequest("5",0,g,m),ce=this.createRequest("6",0,g,m),Te=this.createRequest("7",0,g,m),Ve=this.createRequest("8",0,g,m),Ee=this.createRequest("9",0,g,m),de=this.createRequest("\u2192",0,g,m),se=this.createRequest("\uFFEB",0,g,null),fe=this.createRequest("\xB7",0,g,m);this.createRequest("|",0,g,m),this.createRequest("/",0,g,m),this.createRequest("-",0,g,m),this.createRequest("_",0,g,m),this.createRequest("i",0,g,m),this.createRequest("l",0,g,m),this.createRequest("m",0,g,m),this.createRequest("|",1,g,m),this.createRequest("_",1,g,m),this.createRequest("i",1,g,m),this.createRequest("l",1,g,m),this.createRequest("m",1,g,m),this.createRequest("n",1,g,m),this.createRequest("|",2,g,m),this.createRequest("_",2,g,m),this.createRequest("i",2,g,m),this.createRequest("l",2,g,m),this.createRequest("m",2,g,m),this.createRequest("n",2,g,m),j(p,g);for(var ie=Math.max(oe.width,he.width,_e.width,Se.width,q.width,Z.width,ce.width,Te.width,Ve.width,Ee.width),Q=p.fontFeatureSettings===_.d.OFF,me=m[0].width,ye=1,He=m.length;Q&&ye<He;ye++){var tt=me-m[ye].width;if(tt<-.001||tt>.001){Q=!1;break}}var Et=!0;Q&&se.width!==me&&(Et=!1),se.width>de.width&&(Et=!1);var Pt=I.b()>2e3;return new x.b({zoomLevel:I.c(),fontFamily:p.fontFamily,fontWeight:p.fontWeight,fontSize:p.fontSize,fontFeatureSettings:p.fontFeatureSettings,lineHeight:p.lineHeight,letterSpacing:p.letterSpacing,isMonospace:Q,typicalHalfwidthCharacterWidth:w.width,typicalFullwidthCharacterWidth:B.width,canUseHalfwidthRightwardsArrow:Et,spaceWidth:z.width,middotWidth:fe.width,maxDigitWidth:ie},Pt)},f.INSTANCE=new f,f}(ne.a),H=function(E){K(f,E);function f(p,g,m,w){m===void 0&&(m=null);var B=E.call(this,p,g)||this;return B.accessibilityService=w,B._elementSizeObserver=B._register(new G.a(m,g.dimension,function(){return B._onReferenceDomElementSizeChanged()})),B._register(te.INSTANCE.onDidChange(function(){return B._onCSSBasedConfigurationChanged()})),B._validatedOptions.get(9)&&B._elementSizeObserver.startObserving(),B._register(I.o(function(z){return B._recomputeOptions()})),B._register(B.accessibilityService.onDidChangeScreenReaderOptimized(function(){return B._recomputeOptions()})),B._recomputeOptions(),B}return f.applyFontInfoSlow=function(p,g){p.style.fontFamily=g.getMassagedFontFamily(),p.style.fontWeight=g.fontWeight,p.style.fontSize=g.fontSize+"px",p.style.fontFeatureSettings=g.fontFeatureSettings,p.style.lineHeight=g.lineHeight+"px",p.style.letterSpacing=g.letterSpacing+"px"},f.applyFontInfo=function(p,g){p.setFontFamily(g.getMassagedFontFamily()),p.setFontWeight(g.fontWeight),p.setFontSize(g.fontSize),p.setFontFeatureSettings(g.fontFeatureSettings),p.setLineHeight(g.lineHeight),p.setLetterSpacing(g.letterSpacing)},f.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},f.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},f.prototype.observeReferenceElement=function(p){this._elementSizeObserver.observe(p)},f.prototype.dispose=function(){E.prototype.dispose.call(this)},f.prototype._getExtraEditorClassName=function(){var p="";return!I.k&&!I.n&&(p+="no-user-select "),N.e&&(p+="mac "),p},f.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:I.m||I.h,pixelRatio:I.a(),zoomLevel:I.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},f.prototype.readConfiguration=function(p){return te.INSTANCE.readConfiguration(p)},f}(R.a)},"I/Lx":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return o.e(212).then(o.bind(null,"yswY"))}})},"J+ZK":function(wt,P,o){},"JQT/":function(wt,P,o){"use strict";o.d(P,"a",function(){return ne}),o.d(P,"b",function(){return k});var I=o("MI8n"),re=Object.freeze(function(U,j){var G=setTimeout(U.bind(j),0);return{dispose:function(){clearTimeout(G)}}}),ne;(function(U){function j(G){return G===U.None||G===U.Cancelled||G instanceof N?!0:!G||typeof G!="object"?!1:typeof G.isCancellationRequested=="boolean"&&typeof G.onCancellationRequested=="function"}U.isCancellationToken=j,U.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:I.b.None}),U.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:re})})(ne||(ne={}));var N=function(){function U(){this._isCancelled=!1,this._emitter=null}return U.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(U.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?re:(this._emitter||(this._emitter=new I.a),this._emitter.event)},enumerable:!0,configurable:!0}),U.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},U}(),k=function(){function U(j){this._token=void 0,this._parentListener=void 0,this._parentListener=j&&j.onCancellationRequested(this.cancel,this)}return Object.defineProperty(U.prototype,"token",{get:function(){return this._token||(this._token=new N),this._token},enumerable:!0,configurable:!0}),U.prototype.cancel=function(){this._token?this._token instanceof N&&this._token.cancel():this._token=ne.Cancelled},U.prototype.dispose=function(j){j===void 0&&(j=!1),j&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof N&&this._token.dispose():this._token=ne.None},U}()},JYp7:function(wt,P,o){"use strict";o.d(P,"b",function(){return re}),o.d(P,"c",function(){return ne}),o.d(P,"d",function(){return k}),o.d(P,"a",function(){return j});var I=function(){var R=function(x,K){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,A){D.__proto__=A}||function(D,A){for(var te in A)A.hasOwnProperty(te)&&(D[te]=A[te])},R(x,K)};return function(_,x){R(_,x);function K(){this.constructor=_}_.prototype=x===null?Object.create(x):(K.prototype=x.prototype,new K)}}(),re={done:!0,value:void 0},ne;(function(R){var _={next:function(){return re}};function x(){return _}R.empty=x;function K(w){var B=!1;return{next:function(){return B?re:(B=!0,{done:!1,value:w})}}}R.single=K;function D(w,B,z){return B===void 0&&(B=0),z===void 0&&(z=w.length),{next:function(){return B>=z?re:{done:!1,value:w[B++]}}}}R.fromArray=D;function A(w){return{next:function(){var z=w.next();return z.done?re:{done:!1,value:z.value}}}}R.fromNativeIterator=A;function te(w){return w?Array.isArray(w)?R.fromArray(w):w:R.empty()}R.from=te;function H(w,B){return{next:function(){var oe=w.next();return oe.done?re:{done:!1,value:B(oe.value)}}}}R.map=H;function E(w,B){return{next:function(){for(;;){var oe=w.next();if(oe.done)return re;if(B(oe.value))return{done:!1,value:oe.value}}}}}R.filter=E;function f(w,B){for(var z=w.next();!z.done;z=w.next())B(z.value)}R.forEach=f;function p(w,B){B===void 0&&(B=Number.POSITIVE_INFINITY);var z=[];if(B===0)return z;for(var oe=0,he=w.next();!he.done&&!(z.push(he.value),++oe>=B);he=w.next());return z}R.collect=p;function g(){for(var w=[],B=0;B<arguments.length;B++)w[B]=arguments[B];var z=0;return{next:function(){if(z>=w.length)return re;var he=w[z],_e=he.next();return _e.done?(z++,this.next()):_e}}}R.concat=g;function m(w){return new N(w)}R.chain=m})(ne||(ne={}));var N=function(){function R(_){this.it=_}return R.prototype.next=function(){return this.it.next()},R}();function k(R){return Array.isArray(R)?ne.fromArray(R):R||ne.empty()}var U=function(){function R(_,x,K,D){x===void 0&&(x=0),K===void 0&&(K=_.length),D===void 0&&(D=x-1),this.items=_,this.start=x,this.end=K,this.index=D}return R.prototype.first=function(){return this.index=this.start,this.current()},R.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},R.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},R}(),j=function(R){I(_,R);function _(x,K,D,A){return K===void 0&&(K=0),D===void 0&&(D=x.length),A===void 0&&(A=K-1),R.call(this,x,K,D,A)||this}return _.prototype.current=function(){return R.prototype.current.call(this)},_.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},_.prototype.first=function(){return this.index=this.start,this.current()},_.prototype.last=function(){return this.index=this.end-1,this.current()},_.prototype.parent=function(){return null},_}(U),G=function(){function R(_,x){this.iterator=_,this.fn=x}return R.prototype.next=function(){return this.fn(this.iterator.next())},R}()},JlLP:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return o.e(233).then(o.bind(null,"W1QP"))}})},KDc4:function(wt,P,o){"use strict";o.d(P,"a",function(){return I}),o.d(P,"b",function(){return re});var I;(function(ne){ne[ne.None=0]="None",ne[ne.Indent=1]="Indent",ne[ne.IndentOutdent=2]="IndentOutdent",ne[ne.Outdent=3]="Outdent"})(I||(I={}));var re=function(){function ne(N){if(this.open=N.open,this.close=N.close,this._standardTokenMask=0,Array.isArray(N.notIn))for(var k=0,U=N.notIn.length;k<U;k++){var j=N.notIn[k];switch(j){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return ne.prototype.isOK=function(N){return(this._standardTokenMask&N)===0},ne}()},KTWA:function(wt,P,o){"use strict";o.r(P);var I=o("3/fG"),re=o("sswD"),ne=o("wQH0"),N=o("aokT"),k=function(){function _(x,K){this._selection=x,this._isMovingLeft=K,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return _.prototype.getEditOperations=function(x,K){var D=this._selection;if(this._selectionId=K.trackSelection(D),D.startLineNumber!==D.endLineNumber)return;if(this._isMovingLeft&&D.startColumn===0)return;if(!this._isMovingLeft&&D.endColumn===x.getLineMaxColumn(D.startLineNumber))return;var A=D.selectionStartLineNumber,te=x.getLineContent(A),H,E,f;this._isMovingLeft?(H=te.substring(0,D.startColumn-2),E=te.substring(D.startColumn-1,D.endColumn-1),f=te.substring(D.startColumn-2,D.startColumn-1)+te.substring(D.endColumn-1)):(H=te.substring(0,D.startColumn-1)+te.substring(D.endColumn-1,D.endColumn),E=te.substring(D.startColumn-1,D.endColumn-1),f=te.substring(D.endColumn));var p=H+E+f;K.addEditOperation(new N.a(A,1,A,x.getLineMaxColumn(A)),null),K.addEditOperation(new N.a(A,1,A,1),p),this._cutStartIndex=D.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+D.endColumn-D.startColumn,this._moved=!0},_.prototype.computeCursorState=function(x,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},_}(),U=function(){var _=function(K,D){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,te){A.__proto__=te}||function(A,te){for(var H in te)te.hasOwnProperty(H)&&(A[H]=te[H])},_(K,D)};return function(x,K){_(x,K);function D(){this.constructor=x}x.prototype=K===null?Object.create(K):(D.prototype=K.prototype,new D)}}(),j=function(_){U(x,_);function x(K,D){var A=_.call(this,D)||this;return A.left=K,A}return x.prototype.run=function(K,D){if(!D.hasModel())return;for(var A=[],te=D.getSelections(),H=0,E=te;H<E.length;H++){var f=E[H];A.push(new k(f,this.left))}D.pushUndoStop(),D.executeCommands(this.id,A),D.pushUndoStop()},x}(re.b),G=function(_){U(x,_);function x(){return _.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:I.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:ne.a.writable})||this}return x}(j),R=function(_){U(x,_);function x(){return _.call(this,!1,{id:"editor.action.moveCarretRightAction",label:I.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:ne.a.writable})||this}return x}(j);Object(re.f)(G),Object(re.f)(R)},KaET:function(wt,P,o){},KgQ1:function(wt,P,o){},Krc3:function(wt,P,o){},LCkn:function(wt,P,o){"use strict";o.d(P,"a",function(){return re}),o.d(P,"d",function(){return N}),o.d(P,"c",function(){return k}),o.d(P,"b",function(){return U});var I=o("gCVg"),re=function(){function j(G,R,_){_===void 0&&(_=!1),this._range=G,this._text=R,this.insertsAutoWhitespace=_}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text)},j.prototype.computeCursorState=function(G,R){var _=R.getInverseEditOperations(),x=_[0].range;return new I.a(x.endLineNumber,x.endColumn,x.endLineNumber,x.endColumn)},j}(),ne=function(){function j(G,R){this._range=G,this._text=R}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text)},j.prototype.computeCursorState=function(G,R){var _=R.getInverseEditOperations(),x=_[0].range;return new I.a(x.startLineNumber,x.startColumn,x.endLineNumber,x.endColumn)},j}(),N=function(){function j(G,R,_){_===void 0&&(_=!1),this._range=G,this._text=R,this.insertsAutoWhitespace=_}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text)},j.prototype.computeCursorState=function(G,R){var _=R.getInverseEditOperations(),x=_[0].range;return new I.a(x.startLineNumber,x.startColumn,x.startLineNumber,x.startColumn)},j}(),k=function(){function j(G,R,_,x,K){K===void 0&&(K=!1),this._range=G,this._text=R,this._columnDeltaOffset=x,this._lineNumberDeltaOffset=_,this.insertsAutoWhitespace=K}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text)},j.prototype.computeCursorState=function(G,R){var _=R.getInverseEditOperations(),x=_[0].range;return new I.a(x.endLineNumber+this._lineNumberDeltaOffset,x.endColumn+this._columnDeltaOffset,x.endLineNumber+this._lineNumberDeltaOffset,x.endColumn+this._columnDeltaOffset)},j}(),U=function(){function j(G,R,_,x){x===void 0&&(x=!1),this._range=G,this._text=R,this._initialSelection=_,this._forceMoveMarkers=x,this._selectionId=null}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=R.trackSelection(this._initialSelection)},j.prototype.computeCursorState=function(G,R){return R.getTrackedSelection(this._selectionId)},j}()},LRks:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return o.e(252).then(o.bind(null,"05+/"))}})},"LeU+":function(wt,P,o){"use strict";o.d(P,"b",function(){return re}),o.d(P,"a",function(){return ne});var I=o("CZ1j"),re=function(){function N(k,U){this.index=k,this.remainder=U}return N}(),ne=function(){function N(k){this.values=k,this.prefixSum=new Uint32Array(k.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return N.prototype.insertValues=function(k,U){k=Object(I.a)(k);var j=this.values,G=this.prefixSum,R=U.length;return R===0?!1:(this.values=new Uint32Array(j.length+R),this.values.set(j.subarray(0,k),0),this.values.set(j.subarray(k),k+R),this.values.set(U,k),k-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=k-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(G.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},N.prototype.changeValue=function(k,U){return k=Object(I.a)(k),U=Object(I.a)(U),this.values[k]===U?!1:(this.values[k]=U,k-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=k-1),!0)},N.prototype.removeValues=function(k,U){k=Object(I.a)(k),U=Object(I.a)(U);var j=this.values,G=this.prefixSum;if(k>=j.length)return!1;var R=j.length-k;return U>=R&&(U=R),U===0?!1:(this.values=new Uint32Array(j.length-U),this.values.set(j.subarray(0,k),0),this.values.set(j.subarray(k+U),k),this.prefixSum=new Uint32Array(this.values.length),k-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=k-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(G.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},N.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},N.prototype.getAccumulatedValue=function(k){return k<0?0:(k=Object(I.a)(k),this._getAccumulatedValue(k))},N.prototype._getAccumulatedValue=function(k){if(k<=this.prefixSumValidIndex[0])return this.prefixSum[k];var U=this.prefixSumValidIndex[0]+1;U===0&&(this.prefixSum[0]=this.values[0],U++),k>=this.values.length&&(k=this.values.length-1);for(var j=U;j<=k;j++)this.prefixSum[j]=this.prefixSum[j-1]+this.values[j];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],k),this.prefixSum[k]},N.prototype.getIndexOf=function(k){k=Math.floor(k),this.getTotalValue();for(var U=0,j=this.values.length-1,G=0,R=0,_=0;U<=j;)if(G=U+(j-U)/2|0,R=this.prefixSum[G],_=R-this.values[G],k<_)j=G-1;else if(k>=R)U=G+1;else break;return new re(G,k-_)},N}()},LexI:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return o.e(213).then(o.bind(null,"lHAa"))}})},Ll0s:function(wt,P,o){"use strict";o.d(P,"b",function(){return K}),o.d(P,"f",function(){return D}),o.d(P,"c",function(){return A}),o.d(P,"d",function(){return E}),o.d(P,"e",function(){return f}),o.d(P,"a",function(){return p}),o.d(P,"g",function(){return g});var I=o("/cxE"),re=o("N0LK"),ne=o("cGHE"),N=o("aokT"),k=o("gCVg"),U=o("tX9W"),j=o("cMvZ"),G=function(){return!0},R=function(){return!1},_=function(w){return w===" "||w===" "};function x(m,w,B){m.has(w)?m.get(w).push(B):m.set(w,[B])}var K=function(){function m(w,B,z){this._languageIdentifier=w;var oe=z.options,he=oe.get(107);this.readOnly=oe.get(68),this.tabSize=B.tabSize,this.indentSize=B.indentSize,this.insertSpaces=B.insertSpaces,this.lineHeight=oe.get(49),this.pageSize=Math.max(1,Math.floor(he.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:m._getShouldAutoClose(w,this.autoClosingQuotes),bracket:m._getShouldAutoClose(w,this.autoClosingBrackets)};var _e=m._getAutoClosingPairs(w);if(_e)for(var Se=0,q=_e;Se<q.length;Se++){var Z=q[Se];x(this.autoClosingPairsOpen2,Z.open.charAt(Z.open.length-1),Z),Z.close.length===1&&x(this.autoClosingPairsClose2,Z.close,Z)}var ce=m._getSurroundingPairs(w);if(ce)for(var Te=0,Ve=ce;Te<Ve.length;Te++){var Z=Ve[Te];this.surroundingPairs[Z.open]=Z.close}}return m.shouldRecreate=function(w){return w.hasChanged(107)||w.hasChanged(96)||w.hasChanged(25)||w.hasChanged(58)||w.hasChanged(60)||w.hasChanged(5)||w.hasChanged(7)||w.hasChanged(6)||w.hasChanged(10)||w.hasChanged(95)||w.hasChanged(49)||w.hasChanged(68)},Object.defineProperty(m.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var B=m._getElectricCharacters(this._languageIdentifier);if(B)for(var z=0,oe=B;z<oe.length;z++){var he=oe[z];this._electricChars[he]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),m.prototype.normalizeIndentation=function(w){return U.b.normalizeIndentation(w,this.indentSize,this.insertSpaces)},m._getElectricCharacters=function(w){try{return j.a.getElectricCharacters(w.id)}catch(B){return Object(I.e)(B),null}},m._getAutoClosingPairs=function(w){try{return j.a.getAutoClosingPairs(w.id)}catch(B){return Object(I.e)(B),null}},m._getShouldAutoClose=function(w,B){switch(B){case"beforeWhitespace":return _;case"languageDefined":return m._getLanguageDefinedShouldAutoClose(w);case"always":return G;case"never":return R}},m._getLanguageDefinedShouldAutoClose=function(w){try{var B=j.a.getAutoCloseBeforeSet(w.id);return function(z){return B.indexOf(z)!==-1}}catch(z){return Object(I.e)(z),R}},m._getSurroundingPairs=function(w){try{return j.a.getSurroundingPairs(w.id)}catch(B){return Object(I.e)(B),null}},m}(),D=function(){function m(w,B,z,oe){this.selectionStart=w,this.selectionStartLeftoverVisibleColumns=B,this.position=z,this.leftoverVisibleColumns=oe,this.selection=m._computeSelection(this.selectionStart,this.position)}return m.prototype.equals=function(w){return this.selectionStartLeftoverVisibleColumns===w.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===w.leftoverVisibleColumns&&this.position.equals(w.position)&&this.selectionStart.equalsRange(w.selectionStart)},m.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},m.prototype.move=function(w,B,z,oe){return w?new m(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new ne.a(B,z),oe):new m(new N.a(B,z,B,z),oe,new ne.a(B,z),oe)},m._computeSelection=function(w,B){var z,oe,he,_e;return w.isEmpty()?(z=w.startLineNumber,oe=w.startColumn,he=B.lineNumber,_e=B.column):B.isBeforeOrEqual(w.getStartPosition())?(z=w.endLineNumber,oe=w.endColumn,he=B.lineNumber,_e=B.column):(z=w.startLineNumber,oe=w.startColumn,he=B.lineNumber,_e=B.column),new k.a(z,oe,he,_e)},m}(),A=function(){function m(w,B,z){this.model=B,this.viewModel=z,this.config=new K(this.model.getLanguageIdentifier(),this.model.getOptions(),w)}return m.prototype.validateViewPosition=function(w,B){return this.viewModel.coordinatesConverter.validateViewPosition(w,B)},m.prototype.validateViewRange=function(w,B){return this.viewModel.coordinatesConverter.validateViewRange(w,B)},m.prototype.convertViewRangeToModelRange=function(w){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(w)},m.prototype.convertViewPositionToModelPosition=function(w,B){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(w,B))},m.prototype.convertModelPositionToViewPosition=function(w){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(w)},m.prototype.convertModelRangeToViewRange=function(w){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(w)},m.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},m.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},m.prototype.getCompletelyVisibleModelRange=function(){var w=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(w)},m.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(w){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(w)},m.prototype.getVerticalOffsetForViewLine=function(w){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(w)},m}(),te=function(){function m(w){this.modelState=w,this.viewState=null}return m}(),H=function(){function m(w){this.modelState=null,this.viewState=w}return m}(),E=function(){function m(w,B){this.modelState=w,this.viewState=B}return m.fromModelState=function(w){return new te(w)},m.fromViewState=function(w){return new H(w)},m.fromModelSelection=function(w){var B=w.selectionStartLineNumber,z=w.selectionStartColumn,oe=w.positionLineNumber,he=w.positionColumn,_e=new D(new N.a(B,z,B,z),0,new ne.a(oe,he),0);return m.fromModelState(_e)},m.fromModelSelections=function(w){for(var B=[],z=0,oe=w.length;z<oe;z++)B[z]=this.fromModelSelection(w[z]);return B},m.prototype.equals=function(w){return this.viewState.equals(w.viewState)&&this.modelState.equals(w.modelState)},m}(),f=function(){function m(w,B,z){this.type=w,this.commands=B,this.shouldPushStackElementBefore=z.shouldPushStackElementBefore,this.shouldPushStackElementAfter=z.shouldPushStackElementAfter}return m}(),p=function(){function m(){}return m.visibleColumnFromColumn=function(w,B,z){for(var oe=w.length,he=B-1<oe?B-1:oe,_e=0,Se=0;Se<he;){var q=re.u(w,he,Se);if(Se+=q>=65536?2:1,q===9)_e=m.nextRenderTabStop(_e,z);else{for(var Z=re.s(q);Se<he;){var ce=re.u(w,he,Se),Te=re.s(ce);if(re.b(Z,Te))break;Se+=ce>=65536?2:1,Z=Te}re.y(q)||re.w(q)?_e=_e+2:_e=_e+1}}return _e},m.visibleColumnFromColumn2=function(w,B,z){return this.visibleColumnFromColumn(B.getLineContent(z.lineNumber),z.column,w.tabSize)},m.columnFromVisibleColumn=function(w,B,z){if(B<=0)return 1;for(var oe=w.length,he=0,_e=1,Se=0;Se<oe;){var q=re.u(w,oe,Se);Se+=q>=65536?2:1;var Z=void 0;if(q===9)Z=m.nextRenderTabStop(he,z);else{for(var ce=re.s(q);Se<oe;){var Te=re.u(w,oe,Se),Ve=re.s(Te);if(re.b(ce,Ve))break;Se+=Te>=65536?2:1,ce=Ve}re.y(q)||re.w(q)?Z=he+2:Z=he+1}var Ee=Se+1;if(Z>=B){var de=B-he,se=Z-B;return se<de?Ee:_e}he=Z,_e=Ee}return oe+1},m.columnFromVisibleColumn2=function(w,B,z,oe){var he=this.columnFromVisibleColumn(B.getLineContent(z),oe,w.tabSize),_e=B.getLineMinColumn(z);if(he<_e)return _e;var Se=B.getLineMaxColumn(z);return he>Se?Se:he},m.nextRenderTabStop=function(w,B){return w+B-w%B},m.nextIndentTabStop=function(w,B){return w+B-w%B},m.prevRenderTabStop=function(w,B){return w-1-(w-1)%B},m.prevIndentTabStop=function(w,B){return w-1-(w-1)%B},m}();function g(m){return m==="'"||m==='"'||m==="`"}},"M/lh":function(wt,P,o){self.MonacoEnvironment=function(I){function re(ne){return ne.replace(/\/$/,"")}return{getWorkerUrl:function(N,k){var U=o.p,j=(U?re(U)+"/":"")+I[k];if(/^(http:)|(https:)|(file:)/.test(j)){var G=String(window.location),R=G.substr(0,G.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(j.substring(0,R.length)!==R){var _="/*"+k+'*/importScripts("'+j+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(_)}}return j}}}({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"),wt.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(wt,P,o){"use strict";o.d(P,"d",function(){return I}),o.d(P,"c",function(){return re}),o.d(P,"e",function(){return ne}),o.d(P,"b",function(){return N}),o.d(P,"a",function(){return k});var I;(function(U){U[U.Left=1]="Left",U[U.Center=2]="Center",U[U.Right=4]="Right",U[U.Full=7]="Full"})(I||(I={}));var re;(function(U){U[U.Inline=1]="Inline",U[U.Gutter=2]="Gutter"})(re||(re={}));var ne=function(){function U(j){this.tabSize=Math.max(1,j.tabSize|0),this.indentSize=j.tabSize|0,this.insertSpaces=Boolean(j.insertSpaces),this.defaultEOL=j.defaultEOL|0,this.trimAutoWhitespace=Boolean(j.trimAutoWhitespace)}return U.prototype.equals=function(j){return this.tabSize===j.tabSize&&this.indentSize===j.indentSize&&this.insertSpaces===j.insertSpaces&&this.defaultEOL===j.defaultEOL&&this.trimAutoWhitespace===j.trimAutoWhitespace},U.prototype.createChangeEvent=function(j){return{tabSize:this.tabSize!==j.tabSize,indentSize:this.indentSize!==j.indentSize,insertSpaces:this.insertSpaces!==j.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==j.trimAutoWhitespace}},U}(),N=function(){function U(j,G){this.range=j,this.matches=G}return U}(),k=function(){function U(j,G,R){this.reverseEdits=j,this.changes=G,this.trimAutoWhitespaceLineNumbers=R}return U}()},MD5Z:function(wt,P,o){"use strict";o.d(P,"a",function(){return j}),o.d(P,"Rb",function(){return _}),o.d(P,"V",function(){return x}),o.d(P,"T",function(){return K}),o.d(P,"U",function(){return D}),o.d(P,"e",function(){return A}),o.d(P,"b",function(){return te}),o.d(P,"cc",function(){return H}),o.d(P,"bc",function(){return E}),o.d(P,"fc",function(){return f}),o.d(P,"Y",function(){return p}),o.d(P,"ab",function(){return g}),o.d(P,"Z",function(){return m}),o.d(P,"X",function(){return w}),o.d(P,"W",function(){return B}),o.d(P,"eb",function(){return z}),o.d(P,"gb",function(){return oe}),o.d(P,"fb",function(){return he}),o.d(P,"hb",function(){return _e}),o.d(P,"jb",function(){return Se}),o.d(P,"ib",function(){return q}),o.d(P,"bb",function(){return Z}),o.d(P,"db",function(){return ce}),o.d(P,"cb",function(){return Te}),o.d(P,"Mb",function(){return de}),o.d(P,"Lb",function(){return se}),o.d(P,"c",function(){return fe}),o.d(P,"d",function(){return ie}),o.d(P,"Tb",function(){return Q}),o.d(P,"Vb",function(){return me}),o.d(P,"Wb",function(){return ye}),o.d(P,"Ub",function(){return He}),o.d(P,"Qb",function(){return tt}),o.d(P,"q",function(){return Et}),o.d(P,"p",function(){return Pt}),o.d(P,"O",function(){return Xt}),o.d(P,"N",function(){return Ke}),o.d(P,"H",function(){return Xe}),o.d(P,"G",function(){return Ze}),o.d(P,"z",function(){return Ye}),o.d(P,"y",function(){return Fe}),o.d(P,"o",function(){return $e}),o.d(P,"x",function(){return we}),o.d(P,"P",function(){return F}),o.d(P,"R",function(){return ee}),o.d(P,"Q",function(){return Pe}),o.d(P,"S",function(){return ve}),o.d(P,"K",function(){return Me}),o.d(P,"L",function(){return Ie}),o.d(P,"F",function(){return pe}),o.d(P,"M",function(){return nt}),o.d(P,"r",function(){return Rt}),o.d(P,"t",function(){return Mt}),o.d(P,"v",function(){return zt}),o.d(P,"s",function(){return Gt}),o.d(P,"u",function(){return on}),o.d(P,"w",function(){return Ln}),o.d(P,"D",function(){return yn}),o.d(P,"A",function(){return Mn}),o.d(P,"C",function(){return kt}),o.d(P,"B",function(){return pt}),o.d(P,"E",function(){return gt}),o.d(P,"n",function(){return Dt}),o.d(P,"J",function(){return Lt}),o.d(P,"I",function(){return Vt}),o.d(P,"g",function(){return Jt}),o.d(P,"h",function(){return nn}),o.d(P,"j",function(){return sn}),o.d(P,"l",function(){return ln}),o.d(P,"k",function(){return _n}),o.d(P,"m",function(){return On}),o.d(P,"i",function(){return Pn}),o.d(P,"qb",function(){return Gn}),o.d(P,"rb",function(){return Jn}),o.d(P,"kb",function(){return Qn}),o.d(P,"lb",function(){return gi}),o.d(P,"wb",function(){return Kn}),o.d(P,"xb",function(){return yi}),o.d(P,"vb",function(){return mi}),o.d(P,"tb",function(){return vt}),o.d(P,"ub",function(){return Tt}),o.d(P,"mb",function(){return Ht}),o.d(P,"sb",function(){return tn}),o.d(P,"nb",function(){return Ut}),o.d(P,"pb",function(){return Sn}),o.d(P,"ob",function(){return Rn}),o.d(P,"ec",function(){return Bn}),o.d(P,"zb",function(){return kn}),o.d(P,"Ab",function(){return oi}),o.d(P,"yb",function(){return ci}),o.d(P,"Db",function(){return Hi}),o.d(P,"Bb",function(){return rr}),o.d(P,"Cb",function(){return Zn}),o.d(P,"Eb",function(){return Ii}),o.d(P,"Zb",function(){return Si}),o.d(P,"ac",function(){return ji}),o.d(P,"Xb",function(){return Un}),o.d(P,"Yb",function(){return Ci}),o.d(P,"Kb",function(){return Wi}),o.d(P,"Gb",function(){return Gi}),o.d(P,"Hb",function(){return Bi}),o.d(P,"Fb",function(){return vi}),o.d(P,"Ib",function(){return qi}),o.d(P,"Nb",function(){return or}),o.d(P,"Pb",function(){return bi}),o.d(P,"Ob",function(){return Di}),o.d(P,"f",function(){return Xi}),o.d(P,"dc",function(){return Ti}),o.d(P,"Jb",function(){return sr}),o.d(P,"Sb",function(){return O});var I=o("ic2d"),re=o("zrhQ"),ne=o("MI8n"),N=o("3/fG"),k=o("3Rsk"),U=o("X+cX"),j={ColorContribution:"base.contributions.colors"},G=function(){function Re(){this._onDidChangeSchema=new ne.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return Re.prototype.registerColor=function(We,ft,lt,yt,xt){yt===void 0&&(yt=!1);var It={id:We,description:lt,defaults:ft,needsTransparency:yt,deprecationMessage:xt};this.colorsById[We]=It;var Ft={type:"string",description:lt,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return xt&&(Ft.deprecationMessage=xt),this.colorSchema.properties[We]=Ft,this.colorReferenceSchema.enum.push(We),this.colorReferenceSchema.enumDescriptions.push(lt),this._onDidChangeSchema.fire(),We},Re.prototype.resolveDefaultColor=function(We,ft){var lt=this.colorsById[We];if(lt&&lt.defaults){var yt=lt.defaults[ft.type];return O(yt,ft)}return},Re.prototype.getColorSchema=function(){return this.colorSchema},Re.prototype.toString=function(){var We=this,ft=function(yt,xt){var It=yt.indexOf(".")===-1?0:1,Ft=xt.indexOf(".")===-1?0:1;return It!==Ft?It-Ft:yt.localeCompare(xt)};return Object.keys(this.colorsById).sort(ft).map(function(lt){return"- `"+lt+"`: "+We.colorsById[lt].description}).join(`
`)},Re}(),R=new G;I.a.add(j.ColorContribution,R);function _(Re,We,ft,lt,yt){return R.registerColor(Re,We,ft,lt,yt)}var x=_("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},N.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),K=_("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},N.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),D=_("focusBorder",{dark:re.a.fromHex("#0E639C").transparent(.8),light:re.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},N.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),A=_("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},N.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),te=_("contrastActiveBorder",{light:null,dark:null,hc:D},N.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),H=_("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},N.a("textLinkForeground","Foreground color for links in text.")),E=_("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:re.a.black},N.a("textCodeBlockBackground","Background color for code blocks in text.")),f=_("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},N.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),p=_("input.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},N.a("inputBoxBackground","Input box background.")),g=_("input.foreground",{dark:x,light:x,hc:x},N.a("inputBoxForeground","Input box foreground.")),m=_("input.border",{dark:null,light:null,hc:A},N.a("inputBoxBorder","Input box border.")),w=_("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:A},N.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),B=_("inputOption.activeBackground",{dark:Ti(D,.5),light:Ti(D,.3),hc:null},N.a("inputOption.activeBackground","Background color of activated options in input fields.")),z=_("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:re.a.black},N.a("inputValidationInfoBackground","Input validation background color for information severity.")),oe=_("inputValidation.infoForeground",{dark:null,light:null,hc:null},N.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),he=_("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:A},N.a("inputValidationInfoBorder","Input validation border color for information severity.")),_e=_("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:re.a.black},N.a("inputValidationWarningBackground","Input validation background color for warning severity.")),Se=_("inputValidation.warningForeground",{dark:null,light:null,hc:null},N.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),q=_("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:A},N.a("inputValidationWarningBorder","Input validation border color for warning severity.")),Z=_("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:re.a.black},N.a("inputValidationErrorBackground","Input validation background color for error severity.")),ce=_("inputValidation.errorForeground",{dark:null,light:null,hc:null},N.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),Te=_("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:A},N.a("inputValidationErrorBorder","Input validation border color for error severity.")),Ve=_("dropdown.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},N.a("dropdownBackground","Dropdown background.")),Ee=_("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:re.a.white},N.a("dropdownForeground","Dropdown foreground.")),de=_("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:re.a.white},N.a("pickerGroupForeground","Quick picker color for grouping labels.")),se=_("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:re.a.white},N.a("pickerGroupBorder","Quick picker color for grouping borders.")),fe=_("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:re.a.black},N.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ie=_("badge.foreground",{dark:re.a.white,light:"#333",hc:re.a.white},N.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),Q=_("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},N.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),me=_("scrollbarSlider.background",{dark:re.a.fromHex("#797979").transparent(.4),light:re.a.fromHex("#646464").transparent(.4),hc:Ti(A,.6)},N.a("scrollbarSliderBackground","Scrollbar slider background color.")),ye=_("scrollbarSlider.hoverBackground",{dark:re.a.fromHex("#646464").transparent(.7),light:re.a.fromHex("#646464").transparent(.7),hc:Ti(A,.8)},N.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),He=_("scrollbarSlider.activeBackground",{dark:re.a.fromHex("#BFBFBF").transparent(.4),light:re.a.fromHex("#000000").transparent(.6),hc:A},N.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),tt=_("progressBar.background",{dark:re.a.fromHex("#0E70C0"),light:re.a.fromHex("#0E70C0"),hc:A},N.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),Et=_("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},N.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Pt=_("editorError.border",{dark:null,light:null,hc:re.a.fromHex("#E47777").transparent(.8)},N.a("errorBorder","Border color of error boxes in the editor.")),Xt=_("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},N.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),Ke=_("editorWarning.border",{dark:null,light:null,hc:re.a.fromHex("#FFCC00").transparent(.8)},N.a("warningBorder","Border color of warning boxes in the editor.")),Xe=_("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},N.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Ze=_("editorInfo.border",{dark:null,light:null,hc:re.a.fromHex("#75BEFF").transparent(.8)},N.a("infoBorder","Border color of info boxes in the editor.")),Ye=_("editorHint.foreground",{dark:re.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},N.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Fe=_("editorHint.border",{dark:null,light:null,hc:re.a.fromHex("#eeeeee").transparent(.8)},N.a("hintBorder","Border color of hint boxes in the editor.")),$e=_("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:re.a.black},N.a("editorBackground","Editor background color.")),we=_("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:re.a.white},N.a("editorForeground","Editor default foreground color.")),F=_("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},N.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),ee=_("editorWidget.foreground",{dark:x,light:x,hc:x},N.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Pe=_("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:A},N.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ve=_("editorWidget.resizeBorder",{light:null,dark:null,hc:null},N.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Me=_("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},N.a("editorSelectionBackground","Color of the editor selection.")),Ie=_("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},N.a("editorSelectionForeground","Color of the selected text for high contrast.")),pe=_("editor.inactiveSelectionBackground",{light:Ti(Me,.5),dark:Ti(Me,.5),hc:Ti(Me,.5)},N.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),nt=_("editor.selectionHighlightBackground",{light:Qe(Me,$e,.3,.6),dark:Qe(Me,$e,.3,.6),hc:null},N.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),_t=_("editor.selectionHighlightBorder",{light:null,dark:null,hc:te},N.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Rt=_("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},N.a("editorFindMatch","Color of the current search match.")),Mt=_("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},N.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),zt=_("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},N.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Gt=_("editor.findMatchBorder",{light:null,dark:null,hc:te},N.a("editorFindMatchBorder","Border color of the current search match.")),on=_("editor.findMatchHighlightBorder",{light:null,dark:null,hc:te},N.a("findMatchHighlightBorder","Border color of the other search matches.")),Ln=_("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Ti(te,.4)},N.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),yn=_("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},N.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Mn=_("editorHoverWidget.background",{light:F,dark:F,hc:F},N.a("hoverBackground","Background color of the editor hover.")),kt=_("editorHoverWidget.foreground",{light:ee,dark:ee,hc:ee},N.a("hoverForeground","Foreground color of the editor hover.")),pt=_("editorHoverWidget.border",{light:Pe,dark:Pe,hc:Pe},N.a("hoverBorder","Border color of the editor hover.")),gt=_("editorHoverWidget.statusBarBackground",{dark:lr(Mn,.2),light:Xi(Mn,.05),hc:F},N.a("statusBarBackground","Background color of the editor hover status bar.")),Dt=_("editorLink.activeForeground",{dark:"#4E94CE",light:re.a.blue,hc:re.a.cyan},N.a("activeLinkForeground","Color of active links.")),Lt=_("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},N.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Vt=_("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},N.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=_("diffEditor.insertedTextBackground",{dark:Jt,light:Jt,hc:null},N.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ln=_("diffEditor.removedTextBackground",{dark:nn,light:nn,hc:null},N.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),_n=_("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},N.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),On=_("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},N.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Pn=_("diffEditor.border",{dark:null,light:null,hc:A},N.a("diffEditorBorder","Border color between the two text editors.")),Gn=_("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},N.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Jn=_("list.focusForeground",{dark:null,light:null,hc:null},N.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Qn=_("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},N.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),gi=_("list.activeSelectionForeground",{dark:re.a.white,light:re.a.white,hc:null},N.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Kn=_("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},N.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),yi=_("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},N.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),mi=_("list.inactiveFocusBackground",{dark:null,light:null,hc:null},N.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),vt=_("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},N.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Tt=_("list.hoverForeground",{dark:null,light:null,hc:null},N.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Ht=_("list.dropBackground",{dark:Gn,light:Gn,hc:null},N.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),tn=_("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:D},N.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Ut=_("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:re.a.black},N.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Sn=_("listFilterWidget.outline",{dark:re.a.transparent,light:re.a.transparent,hc:"#f38518"},N.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Rn=_("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:A},N.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Bn=_("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},N.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),kn=_("menu.border",{dark:null,light:null,hc:A},N.a("menuBorder","Border color of menus.")),oi=_("menu.foreground",{dark:Ee,light:x,hc:Ee},N.a("menuForeground","Foreground color of menu items.")),ci=_("menu.background",{dark:Ve,light:Ve,hc:Ve},N.a("menuBackground","Background color of menu items.")),Hi=_("menu.selectionForeground",{dark:gi,light:gi,hc:gi},N.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),rr=_("menu.selectionBackground",{dark:Qn,light:Qn,hc:Qn},N.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Zn=_("menu.selectionBorder",{dark:null,light:null,hc:te},N.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Ii=_("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:A},N.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Si=_("editor.snippetTabstopHighlightBackground",{dark:new re.a(new re.c(124,124,124,.3)),light:new re.a(new re.c(10,50,100,.2)),hc:new re.a(new re.c(124,124,124,.3))},N.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),ji=_("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},N.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Un=_("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},N.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Ci=_("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new re.a(new re.c(10,50,100,.5)),hc:"#525252"},N.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),Wi=_("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},N.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Mi=_("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},N.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Gi=_("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},N.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Bi=_("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},N.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),vi=_("minimap.errorHighlight",{dark:new re.a(new re.c(255,18,18,.7)),light:new re.a(new re.c(255,18,18,.7)),hc:new re.a(new re.c(255,50,50,1))},N.a("minimapError","Minimap marker color for errors.")),qi=_("minimap.warningHighlight",{dark:Xt,light:Xt,hc:Ke},N.a("overviewRuleWarning","Minimap marker color for warnings.")),or=_("problemsErrorIcon.foreground",{dark:Et,light:Et,hc:Et},N.a("problemsErrorIconForeground","The color used for the problems error icon.")),bi=_("problemsWarningIcon.foreground",{dark:Xt,light:Xt,hc:Xt},N.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Di=_("problemsInfoIcon.foreground",{dark:Xe,light:Xe,hc:Xe},N.a("problemsInfoIconForeground","The color used for the problems info icon."));function Xi(Re,We){return function(ft){var lt=O(Re,ft);return lt?lt.darken(We):void 0}}function lr(Re,We){return function(ft){var lt=O(Re,ft);return lt?lt.lighten(We):void 0}}function Ti(Re,We){return function(ft){var lt=O(Re,ft);return lt?lt.transparent(We):void 0}}function sr(){for(var Re=[],We=0;We<arguments.length;We++)Re[We]=arguments[We];return function(ft){for(var lt=0,yt=Re;lt<yt.length;lt++){var xt=yt[lt],It=O(xt,ft);if(It)return It}return}}function Qe(Re,We,ft,lt){return function(yt){var xt=O(Re,yt);if(xt){var It=O(We,yt);return It?xt.isDarkerThan(It)?re.a.getLighterColor(xt,It,ft).transparent(lt):re.a.getDarkerColor(xt,It,ft).transparent(lt):xt.transparent(ft*lt)}return}}function O(Re,We){return Re===null?void 0:typeof Re=="string"?Re[0]==="#"?re.a.fromHex(Re):We.getColor(Re):Re instanceof re.a?Re:typeof Re=="function"?Re(We):void 0}var M="vscode://schemas/workbench-colors",Y=I.a.as(k.a.JSONContribution);Y.registerSchema(M,R.getColorSchema());var De=new U.d(function(){return Y.notifySchemaChanged(M)},200);R.onDidChangeSchema(function(){De.isScheduled()||De.schedule()})},MI8n:function(wt,P,o){"use strict";o.d(P,"b",function(){return U}),o.d(P,"a",function(){return R}),o.d(P,"d",function(){return _}),o.d(P,"c",function(){return K}),o.d(P,"e",function(){return D});var I=o("/cxE"),re=o("C/vA"),ne=o("pmY6"),N=o("24hK"),k=function(){var A=function(H,E){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)p.hasOwnProperty(g)&&(f[g]=p[g])},A(H,E)};return function(te,H){A(te,H);function E(){this.constructor=te}te.prototype=H===null?Object.create(H):(E.prototype=H.prototype,new E)}}(),U;(function(A){A.None=function(){return ne.a.None};function te(Ve){return function(Ee,de,se){de===void 0&&(de=null);var fe=!1,ie;return ie=Ve(function(Q){return fe?void 0:(ie?ie.dispose():fe=!0,Ee.call(de,Q))},null,se),fe&&ie.dispose(),ie}}A.once=te;function H(Ve,Ee){return w(function(de,se,fe){return se===void 0&&(se=null),Ve(function(ie){return de.call(se,Ee(ie))},null,fe)})}A.map=H;function E(Ve,Ee){return w(function(de,se,fe){return se===void 0&&(se=null),Ve(function(ie){Ee(ie),de.call(se,ie)},null,fe)})}A.forEach=E;function f(Ve,Ee){return w(function(de,se,fe){return se===void 0&&(se=null),Ve(function(ie){return Ee(ie)&&de.call(se,ie)},null,fe)})}A.filter=f;function p(Ve){return Ve}A.signal=p;function g(){for(var Ve=[],Ee=0;Ee<arguments.length;Ee++)Ve[Ee]=arguments[Ee];return function(de,se,fe){return se===void 0&&(se=null),ne.e.apply(void 0,Ve.map(function(ie){return ie(function(Q){return de.call(se,Q)},null,fe)}))}}A.any=g;function m(Ve,Ee,de){var se=de;return H(Ve,function(fe){return se=Ee(se,fe),se})}A.reduce=m;function w(Ve){var Ee,de=new R({onFirstListenerAdd:function(){Ee=Ve(de.fire,de)},onLastListenerRemove:function(){Ee.dispose()}});return de.event}A.snapshot=w;function B(Ve,Ee,de,se,fe){de===void 0&&(de=100),se===void 0&&(se=!1);var ie,Q=void 0,me=void 0,ye=0,He=new R({leakWarningThreshold:fe,onFirstListenerAdd:function(){ie=Ve(function(Et){ye++,Q=Ee(Q,Et),se&&!me&&(He.fire(Q),Q=void 0),clearTimeout(me),me=setTimeout(function(){var Pt=Q;Q=void 0,me=void 0,(!se||ye>1)&&He.fire(Pt),ye=0},de)})},onLastListenerRemove:function(){ie.dispose()}});return He.event}A.debounce=B;function z(Ve){var Ee=new Date().getTime();return H(te(Ve),function(de){return new Date().getTime()-Ee})}A.stopwatch=z;function oe(Ve){var Ee=!0,de;return f(Ve,function(se){var fe=Ee||se!==de;return Ee=!1,de=se,fe})}A.latch=oe;function he(Ve,Ee,de){Ee===void 0&&(Ee=!1),de===void 0&&(de=[]);var se=de.slice(),fe=Ve(function(me){se?se.push(me):Q.fire(me)}),ie=function(){se&&se.forEach(function(ye){return Q.fire(ye)}),se=null},Q=new R({onFirstListenerAdd:function(){fe||(fe=Ve(function(ye){return Q.fire(ye)}))},onFirstListenerDidAdd:function(){se&&(Ee?setTimeout(ie):ie())},onLastListenerRemove:function(){fe&&fe.dispose(),fe=null}});return Q.event}A.buffer=he;var _e=function(){function Ve(Ee){this.event=Ee}return Ve.prototype.map=function(Ee){return new Ve(H(this.event,Ee))},Ve.prototype.forEach=function(Ee){return new Ve(E(this.event,Ee))},Ve.prototype.filter=function(Ee){return new Ve(f(this.event,Ee))},Ve.prototype.reduce=function(Ee,de){return new Ve(m(this.event,Ee,de))},Ve.prototype.latch=function(){return new Ve(oe(this.event))},Ve.prototype.debounce=function(Ee,de,se,fe){return de===void 0&&(de=100),se===void 0&&(se=!1),new Ve(B(this.event,Ee,de,se,fe))},Ve.prototype.on=function(Ee,de,se){return this.event(Ee,de,se)},Ve.prototype.once=function(Ee,de,se){return te(this.event)(Ee,de,se)},Ve}();function Se(Ve){return new _e(Ve)}A.chain=Se;function q(Ve,Ee,de){de===void 0&&(de=function(ye){return ye});var se=function(){for(var ye=[],He=0;He<arguments.length;He++)ye[He]=arguments[He];return Q.fire(de.apply(void 0,ye))},fe=function(){return Ve.on(Ee,se)},ie=function(){return Ve.removeListener(Ee,se)},Q=new R({onFirstListenerAdd:fe,onLastListenerRemove:ie});return Q.event}A.fromNodeEventEmitter=q;function Z(Ve,Ee,de){de===void 0&&(de=function(ye){return ye});var se=function(){for(var ye=[],He=0;He<arguments.length;He++)ye[He]=arguments[He];return Q.fire(de.apply(void 0,ye))},fe=function(){return Ve.addEventListener(Ee,se)},ie=function(){return Ve.removeEventListener(Ee,se)},Q=new R({onFirstListenerAdd:fe,onLastListenerRemove:ie});return Q.event}A.fromDOMEventEmitter=Z;function ce(Ve){var Ee=new R,de=!1;return Ve.then(void 0,function(){return null}).then(function(){de?Ee.fire(void 0):setTimeout(function(){return Ee.fire(void 0)},0)}),de=!0,Ee.event}A.fromPromise=ce;function Te(Ve){return new Promise(function(Ee){return te(Ve)(Ee)})}A.toPromise=Te})(U||(U={}));var j=-1,G=function(){function A(te,H){H===void 0&&(H=Math.random().toString(18).slice(2,5)),this.customThreshold=te,this.name=H,this._warnCountdown=0}return A.prototype.dispose=function(){this._stacks&&this._stacks.clear()},A.prototype.check=function(te){var H=this,E=j;if(typeof this.customThreshold=="number"&&(E=this.customThreshold),E<=0||te<E)return;this._stacks||(this._stacks=new Map);var f=new Error().stack.split(`
`).slice(3).join(`
`),p=this._stacks.get(f)||0;if(this._stacks.set(f,p+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=E*.5;var g,m=0;this._stacks.forEach(function(w,B){(!g||m<w)&&(g=B,m=w)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+te+" listeners already. MOST frequent listener ("+m+"):"),console.warn(g)}return function(){var w=H._stacks.get(f)||0;H._stacks.set(f,w-1)}},A}(),R=function(){function A(te){this._disposed=!1,this._options=te,this._leakageMon=j>0?new G(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(A.prototype,"event",{get:function(){var H=this;return this._event||(this._event=function(E,f,p){H._listeners||(H._listeners=new N.a);var g=H._listeners.isEmpty();g&&H._options&&H._options.onFirstListenerAdd&&H._options.onFirstListenerAdd(H);var m=H._listeners.push(f?[E,f]:E);g&&H._options&&H._options.onFirstListenerDidAdd&&H._options.onFirstListenerDidAdd(H),H._options&&H._options.onListenerDidAdd&&H._options.onListenerDidAdd(H,E,f);var w;H._leakageMon&&(w=H._leakageMon.check(H._listeners.size));var B;return B={dispose:function(){if(w&&w(),B.dispose=A._noop,!H._disposed&&(m(),H._options&&H._options.onLastListenerRemove)){var oe=H._listeners&&!H._listeners.isEmpty();oe||H._options.onLastListenerRemove(H)}}},p instanceof ne.b?p.add(B):Array.isArray(p)&&p.push(B),B}),this._event},enumerable:!0,configurable:!0}),A.prototype.fire=function(te){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new N.a);for(var H=this._listeners.iterator(),E=H.next();!E.done;E=H.next())this._deliveryQueue.push([E.value,te]);for(;this._deliveryQueue.size>0;){var f=this._deliveryQueue.shift(),p=f[0],g=f[1];try{typeof p=="function"?p.call(void 0,g):p[0].call(p[1],g)}catch(m){Object(I.e)(m)}}}},A.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},A._noop=function(){},A}(),_=function(A){k(te,A);function te(H){var E=A.call(this,H)||this;return E._isPaused=0,E._eventQueue=new N.a,E._mergeFn=H&&H.merge,E}return te.prototype.pause=function(){this._isPaused++},te.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var H=this._eventQueue.toArray();this._eventQueue.clear(),A.prototype.fire.call(this,this._mergeFn(H))}else for(;!this._isPaused&&this._eventQueue.size!==0;)A.prototype.fire.call(this,this._eventQueue.shift())},te.prototype.fire=function(H){this._listeners&&(this._isPaused!==0?this._eventQueue.push(H):A.prototype.fire.call(this,H))},te}(R),x=function(){function A(){var te=this;this.hasListeners=!1,this.events=[],this.emitter=new R({onFirstListenerAdd:function(){return te.onFirstListenerAdd()},onLastListenerRemove:function(){return te.onLastListenerRemove()}})}return Object.defineProperty(A.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),A.prototype.add=function(te){var H=this,E={event:te,listener:null};this.events.push(E),this.hasListeners&&this.hook(E);var f=function(){H.hasListeners&&H.unhook(E);var g=H.events.indexOf(E);H.events.splice(g,1)};return Object(ne.h)(Object(re.a)(f))},A.prototype.onFirstListenerAdd=function(){var te=this;this.hasListeners=!0,this.events.forEach(function(H){return te.hook(H)})},A.prototype.onLastListenerRemove=function(){var te=this;this.hasListeners=!1,this.events.forEach(function(H){return te.unhook(H)})},A.prototype.hook=function(te){var H=this;te.listener=te.event(function(E){return H.emitter.fire(E)})},A.prototype.unhook=function(te){te.listener&&te.listener.dispose(),te.listener=null},A.prototype.dispose=function(){this.emitter.dispose()},A}(),K=function(){function A(){this.buffers=[]}return A.prototype.wrapEvent=function(te){var H=this;return function(E,f,p){return te(function(g){var m=H.buffers[H.buffers.length-1];m?m.push(function(){return E.call(f,g)}):E.call(f,g)},void 0,p)}},A.prototype.bufferEvents=function(te){var H=[];this.buffers.push(H);var E=te();return this.buffers.pop(),H.forEach(function(f){return f()}),E},A}(),D=function(){function A(){var te=this;this.listening=!1,this.inputEvent=U.None,this.inputEventListener=ne.a.None,this.emitter=new R({onFirstListenerDidAdd:function(){te.listening=!0,te.inputEventListener=te.inputEvent(te.emitter.fire,te.emitter)},onLastListenerRemove:function(){te.listening=!1,te.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(A.prototype,"input",{set:function(H){this.inputEvent=H,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=H(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},A}()},MNXI:function(wt,P,o){},MNsG:function(wt,P,o){"use strict";(function(I,re){o.d(P,"h",function(){return p}),o.d(P,"e",function(){return g}),o.d(P,"d",function(){return m}),o.d(P,"f",function(){return w}),o.d(P,"g",function(){return B}),o.d(P,"c",function(){return z}),o.d(P,"b",function(){return he}),o.d(P,"i",function(){return _e}),o.d(P,"a",function(){return Se});var ne="en",N=!1,k=!1,U=!1,j=!1,G=!1,R=!1,_=void 0,x=ne,K=void 0,D=void 0,A=typeof I!="undefined"&&typeof I.versions!="undefined"&&typeof I.versions.electron!="undefined"&&I.type==="renderer";if(typeof navigator=="object"&&!A)D=navigator.userAgent,N=D.indexOf("Windows")>=0,k=D.indexOf("Macintosh")>=0,R=D.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U=D.indexOf("Linux")>=0,G=!0,_=navigator.language,x=_;else if(typeof I=="object"){N=I.platform==="win32",k=I.platform==="darwin",U=I.platform==="linux",_=ne,x=ne;var te=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(te)try{var H=JSON.parse(te),E=H.availableLanguages["*"];_=H.locale,x=E||ne,K=H._translationsConfigFile}catch(q){}j=!0}var f=0;k?f=1:N?f=3:U&&(f=2);var p=N,g=k,m=U,w=j,B=G,z=R,oe=typeof self=="object"?self:typeof re=="object"?re:{},he=oe,_e=function(){if(he.setImmediate)return he.setImmediate.bind(he);if(typeof he.postMessage=="function"&&!he.importScripts){var Z=[];he.addEventListener("message",function(Ve){if(Ve.data&&Ve.data.vscodeSetImmediateId)for(var Ee=0,de=Z.length;Ee<de;Ee++){var se=Z[Ee];if(se.id===Ve.data.vscodeSetImmediateId){Z.splice(Ee,1),se.callback();return}}});var ce=0;return function(Ve){var Ee=++ce;Z.push({id:Ee,callback:Ve}),he.postMessage({vscodeSetImmediateId:Ee},"*")}}if(typeof I!="undefined"&&typeof I.nextTick=="function")return I.nextTick.bind(I);var Te=Promise.resolve();return function(Ve){return Te.then(Ve)}}(),Se=k?2:N?1:3}).call(this,o("Q2Ig"),o("yLpj"))},MXAL:function(wt,P,o){"use strict";o.d(P,"a",function(){return re}),o.d(P,"b",function(){return ne});var I=o("CZ1j"),re=function(){function N(k){var U=Object(I.b)(k);this._defaultValue=U,this._asciiMap=N._createAsciiMap(U),this._map=new Map}return N._createAsciiMap=function(k){for(var U=new Uint8Array(256),j=0;j<256;j++)U[j]=k;return U},N.prototype.set=function(k,U){var j=Object(I.b)(U);k>=0&&k<256?this._asciiMap[k]=j:this._map.set(k,j)},N.prototype.get=function(k){return k>=0&&k<256?this._asciiMap[k]:this._map.get(k)||this._defaultValue},N}(),ne=function(){function N(){this._actual=new re(0)}return N.prototype.add=function(k){this._actual.set(k,1)},N.prototype.has=function(k){return this._actual.get(k)===1},N}()},Md8J:function(wt,P,o){"use strict";o.d(P,"c",function(){return re}),o.d(P,"b",function(){return ne}),o.d(P,"a",function(){return N});var I=o("EffR");function re(_,x){x===void 0&&(x={});var K=N(x);return K.textContent=_,K}function ne(_,x){x===void 0&&(x={});var K=N(x);return U(K,j(_),x.actionHandler),K}function N(_){var x=_.inline?"span":"div",K=document.createElement(x);return _.className&&(K.className=_.className),K}var k=function(){function _(x){this.source=x,this.index=0}return _.prototype.eos=function(){return this.index>=this.source.length},_.prototype.next=function(){var x=this.peek();return this.advance(),x},_.prototype.peek=function(){return this.source[this.index]},_.prototype.advance=function(){this.index++},_}();function U(_,x,K){var D;if(x.type===2)D=document.createTextNode(x.content||"");else if(x.type===3)D=document.createElement("b");else if(x.type===4)D=document.createElement("i");else if(x.type===5&&K){var A=document.createElement("a");A.href="#",K.disposeables.add(I.n(A,"click",function(te){K.callback(String(x.index),te)})),D=A}else x.type===7?D=document.createElement("br"):x.type===1&&(D=_);D&&_!==D&&_.appendChild(D),D&&Array.isArray(x.children)&&x.children.forEach(function(te){U(D,te,K)})}function j(_){for(var x={type:1,children:[]},K=0,D=x,A=[],te=new k(_);!te.eos();){var H=te.next(),E=H==="\\"&&R(te.peek())!==0;if(E&&(H=te.next()),!E&&G(H)&&H===te.peek()){te.advance(),D.type===2&&(D=A.pop());var f=R(H);if(D.type===f||D.type===5&&f===6)D=A.pop();else{var p={type:f,children:[]};f===5&&(p.index=K,K++),D.children.push(p),A.push(D),D=p}}else if(H===`
`)D.type===2&&(D=A.pop()),D.children.push({type:7});else if(D.type!==2){var g={type:2,content:H};D.children.push(g),A.push(D),D=g}else D.content+=H}return D.type===2&&(D=A.pop()),A.length,x}function G(_){return R(_)!==0}function R(_){switch(_){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(wt,P,o){"use strict";o.d(P,"a",function(){return G}),o.d(P,"c",function(){return R}),o.d(P,"b",function(){return _});var I=o("3/fG"),re=o("MI8n"),ne=o("twdY"),N=o("cMvZ"),k=o("ic2d"),U={ModesRegistry:"editor.modesRegistry"},j=function(){function x(){this._onDidChangeLanguages=new re.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return x.prototype.registerLanguage=function(K){this._languages.push(K),this._onDidChangeLanguages.fire(void 0)},x.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},x}(),G=new j;k.a.add(U.ModesRegistry,G);var R="plaintext",_=new ne.q(R,1);G.registerLanguage({id:R,extensions:[".txt",".gitignore"],aliases:[I.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),N.a.register(_,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(wt,P,o){"use strict";o.r(P),o.d(P,"win32",function(){return p}),o.d(P,"posix",function(){return g}),o.d(P,"normalize",function(){return m}),o.d(P,"join",function(){return w}),o.d(P,"relative",function(){return B}),o.d(P,"dirname",function(){return z}),o.d(P,"basename",function(){return oe}),o.d(P,"extname",function(){return he}),o.d(P,"sep",function(){return _e});var I=o("wxcJ"),re=function(){var Se=function(Z,ce){return Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Te,Ve){Te.__proto__=Ve}||function(Te,Ve){for(var Ee in Ve)Ve.hasOwnProperty(Ee)&&(Te[Ee]=Ve[Ee])},Se(Z,ce)};return function(q,Z){Se(q,Z);function ce(){this.constructor=q}q.prototype=Z===null?Object.create(Z):(ce.prototype=Z.prototype,new ce)}}(),ne=65,N=97,k=90,U=122,j=46,G=47,R=92,_=58,x=63,K=function(Se){re(q,Se);function q(Z,ce,Te){var Ve=this,Ee;typeof ce=="string"&&ce.indexOf("not ")===0?(Ee="must not be",ce=ce.replace(/^not /,"")):Ee="must be";var de=Z.indexOf(".")!==-1?"property":"argument",se='The "'+Z+'" '+de+" "+Ee+" of type "+ce;return se+=". Received type "+typeof Te,Ve=Se.call(this,se)||this,Ve.code="ERR_INVALID_ARG_TYPE",Ve}return q}(Error);function D(Se,q){if(typeof Se!="string")throw new K(q,"string",Se)}function A(Se){return Se===G||Se===R}function te(Se){return Se===G}function H(Se){return Se>=ne&&Se<=k||Se>=N&&Se<=U}function E(Se,q,Z,ce){for(var Te="",Ve=0,Ee=-1,de=0,se,fe=0;fe<=Se.length;++fe){if(fe<Se.length)se=Se.charCodeAt(fe);else{if(ce(se))break;se=G}if(ce(se)){if(!(Ee===fe-1||de===1))if(Ee!==fe-1&&de===2){if(Te.length<2||Ve!==2||Te.charCodeAt(Te.length-1)!==j||Te.charCodeAt(Te.length-2)!==j){if(Te.length>2){var ie=Te.lastIndexOf(Z);ie===-1?(Te="",Ve=0):(Te=Te.slice(0,ie),Ve=Te.length-1-Te.lastIndexOf(Z)),Ee=fe,de=0;continue}else if(Te.length===2||Te.length===1){Te="",Ve=0,Ee=fe,de=0;continue}}q&&(Te.length>0?Te+=Z+"..":Te="..",Ve=2)}else Te.length>0?Te+=Z+Se.slice(Ee+1,fe):Te=Se.slice(Ee+1,fe),Ve=fe-Ee-1;Ee=fe,de=0}else se===j&&de!==-1?++de:de=-1}return Te}function f(Se,q){var Z=q.dir||q.root,ce=q.base||(q.name||"")+(q.ext||"");return Z?Z===q.root?Z+ce:Z+Se+ce:ce}var p={resolve:function(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];for(var ce="",Te="",Ve=!1,Ee=q.length-1;Ee>=-1;Ee--){var de=void 0;if(Ee>=0?de=q[Ee]:ce?(de=I.b["="+ce]||I.a(),(de===void 0||de.slice(0,3).toLowerCase()!==ce.toLowerCase()+"\\")&&(de=ce+"\\")):de=I.a(),D(de,"path"),de.length===0)continue;var se=de.length,fe=0,ie="",Q=!1,me=de.charCodeAt(0);if(se>1)if(A(me))if(Q=!0,A(de.charCodeAt(1))){for(var ye=2,He=ye;ye<se&&!A(de.charCodeAt(ye));++ye);if(ye<se&&ye!==He){var tt=de.slice(He,ye);for(He=ye;ye<se&&A(de.charCodeAt(ye));++ye);if(ye<se&&ye!==He){for(He=ye;ye<se&&!A(de.charCodeAt(ye));++ye);ye===se?(ie="\\\\"+tt+"\\"+de.slice(He),fe=ye):ye!==He&&(ie="\\\\"+tt+"\\"+de.slice(He,ye),fe=ye)}}}else fe=1;else H(me)&&(de.charCodeAt(1)===_&&(ie=de.slice(0,2),fe=2,se>2&&(A(de.charCodeAt(2))&&(Q=!0,fe=3))));else A(me)&&(fe=1,Q=!0);if(ie.length>0&&ce.length>0&&ie.toLowerCase()!==ce.toLowerCase())continue;if(ce.length===0&&ie.length>0&&(ce=ie),Ve||(Te=de.slice(fe)+"\\"+Te,Ve=Q),ce.length>0&&Ve)break}return Te=E(Te,!Ve,"\\",A),ce+(Ve?"\\":"")+Te||"."},normalize:function(q){D(q,"path");var Z=q.length;if(Z===0)return".";var ce=0,Te,Ve=!1,Ee=q.charCodeAt(0);if(Z>1)if(A(Ee))if(Ve=!0,A(q.charCodeAt(1))){for(var de=2,se=de;de<Z&&!A(q.charCodeAt(de));++de);if(de<Z&&de!==se){var fe=q.slice(se,de);for(se=de;de<Z&&A(q.charCodeAt(de));++de);if(de<Z&&de!==se){for(se=de;de<Z&&!A(q.charCodeAt(de));++de);if(de===Z)return"\\\\"+fe+"\\"+q.slice(se)+"\\";de!==se&&(Te="\\\\"+fe+"\\"+q.slice(se,de),ce=de)}}}else ce=1;else H(Ee)&&(q.charCodeAt(1)===_&&(Te=q.slice(0,2),ce=2,Z>2&&(A(q.charCodeAt(2))&&(Ve=!0,ce=3))));else if(A(Ee))return"\\";var ie;return ce<Z?ie=E(q.slice(ce),!Ve,"\\",A):ie="",ie.length===0&&!Ve&&(ie="."),ie.length>0&&A(q.charCodeAt(Z-1))&&(ie+="\\"),Te===void 0?Ve?ie.length>0?"\\"+ie:"\\":ie.length>0?ie:"":Ve?ie.length>0?Te+"\\"+ie:Te+"\\":ie.length>0?Te+ie:Te},isAbsolute:function(q){D(q,"path");var Z=q.length;if(Z===0)return!1;var ce=q.charCodeAt(0);return A(ce)?!0:!!(H(ce)&&(Z>2&&q.charCodeAt(1)===_&&A(q.charCodeAt(2))))},join:function(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];if(q.length===0)return".";for(var ce,Te,Ve=0;Ve<q.length;++Ve){var Ee=q[Ve];D(Ee,"path"),Ee.length>0&&(ce===void 0?ce=Te=Ee:ce+="\\"+Ee)}if(ce===void 0)return".";var de=!0,se=0;if(typeof Te=="string"&&A(Te.charCodeAt(0))){++se;var fe=Te.length;fe>1&&(A(Te.charCodeAt(1))&&(++se,fe>2&&(A(Te.charCodeAt(2))?++se:de=!1)))}if(de){for(;se<ce.length&&A(ce.charCodeAt(se));++se);se>=2&&(ce="\\"+ce.slice(se))}return p.normalize(ce)},relative:function(q,Z){if(D(q,"from"),D(Z,"to"),q===Z)return"";var ce=p.resolve(q),Te=p.resolve(Z);if(ce===Te)return"";if(q=ce.toLowerCase(),Z=Te.toLowerCase(),q===Z)return"";for(var Ve=0;Ve<q.length&&!(q.charCodeAt(Ve)!==R);++Ve);for(var Ee=q.length;Ee-1>Ve&&!(q.charCodeAt(Ee-1)!==R);--Ee);for(var de=Ee-Ve,se=0;se<Z.length&&!(Z.charCodeAt(se)!==R);++se);for(var fe=Z.length;fe-1>se&&!(Z.charCodeAt(fe-1)!==R);--fe);for(var ie=fe-se,Q=de<ie?de:ie,me=-1,ye=0;ye<=Q;++ye){if(ye===Q){if(ie>Q){if(Z.charCodeAt(se+ye)===R)return Te.slice(se+ye+1);if(ye===2)return Te.slice(se+ye)}de>Q&&(q.charCodeAt(Ve+ye)===R?me=ye:ye===2&&(me=3));break}var He=q.charCodeAt(Ve+ye),tt=Z.charCodeAt(se+ye);if(He!==tt)break;He===R&&(me=ye)}if(ye!==Q&&me===-1)return Te;var Et="";for(me===-1&&(me=0),ye=Ve+me+1;ye<=Ee;++ye)(ye===Ee||q.charCodeAt(ye)===R)&&(Et.length===0?Et+="..":Et+="\\..");return Et.length>0?Et+Te.slice(se+me,fe):(se+=me,Te.charCodeAt(se)===R&&++se,Te.slice(se,fe))},toNamespacedPath:function(q){if(typeof q!="string")return q;if(q.length===0)return"";var Z=p.resolve(q);if(Z.length>=3){if(Z.charCodeAt(0)===R){if(Z.charCodeAt(1)===R){var ce=Z.charCodeAt(2);if(ce!==x&&ce!==j)return"\\\\?\\UNC\\"+Z.slice(2)}}else if(H(Z.charCodeAt(0))&&(Z.charCodeAt(1)===_&&Z.charCodeAt(2)===R))return"\\\\?\\"+Z}return q},dirname:function(q){D(q,"path");var Z=q.length;if(Z===0)return".";var ce=-1,Te=-1,Ve=!0,Ee=0,de=q.charCodeAt(0);if(Z>1)if(A(de)){if(ce=Ee=1,A(q.charCodeAt(1))){for(var se=2,fe=se;se<Z&&!A(q.charCodeAt(se));++se);if(se<Z&&se!==fe){for(fe=se;se<Z&&A(q.charCodeAt(se));++se);if(se<Z&&se!==fe){for(fe=se;se<Z&&!A(q.charCodeAt(se));++se);if(se===Z)return q;se!==fe&&(ce=Ee=se+1)}}}}else H(de)&&(q.charCodeAt(1)===_&&(ce=Ee=2,Z>2&&(A(q.charCodeAt(2))&&(ce=Ee=3))));else if(A(de))return q;for(var ie=Z-1;ie>=Ee;--ie)if(A(q.charCodeAt(ie))){if(!Ve){Te=ie;break}}else Ve=!1;if(Te===-1){if(ce===-1)return".";Te=ce}return q.slice(0,Te)},basename:function(q,Z){Z!==void 0&&D(Z,"ext"),D(q,"path");var ce=0,Te=-1,Ve=!0,Ee;if(q.length>=2){var de=q.charCodeAt(0);H(de)&&(q.charCodeAt(1)===_&&(ce=2))}if(Z!==void 0&&Z.length>0&&Z.length<=q.length){if(Z.length===q.length&&Z===q)return"";var se=Z.length-1,fe=-1;for(Ee=q.length-1;Ee>=ce;--Ee){var ie=q.charCodeAt(Ee);if(A(ie)){if(!Ve){ce=Ee+1;break}}else fe===-1&&(Ve=!1,fe=Ee+1),se>=0&&(ie===Z.charCodeAt(se)?--se===-1&&(Te=Ee):(se=-1,Te=fe))}return ce===Te?Te=fe:Te===-1&&(Te=q.length),q.slice(ce,Te)}else{for(Ee=q.length-1;Ee>=ce;--Ee)if(A(q.charCodeAt(Ee))){if(!Ve){ce=Ee+1;break}}else Te===-1&&(Ve=!1,Te=Ee+1);return Te===-1?"":q.slice(ce,Te)}},extname:function(q){D(q,"path");var Z=0,ce=-1,Te=0,Ve=-1,Ee=!0,de=0;q.length>=2&&q.charCodeAt(1)===_&&H(q.charCodeAt(0))&&(Z=Te=2);for(var se=q.length-1;se>=Z;--se){var fe=q.charCodeAt(se);if(A(fe)){if(!Ee){Te=se+1;break}continue}Ve===-1&&(Ee=!1,Ve=se+1),fe===j?ce===-1?ce=se:de!==1&&(de=1):ce!==-1&&(de=-1)}return ce===-1||Ve===-1||de===0||de===1&&ce===Ve-1&&ce===Te+1?"":q.slice(ce,Ve)},format:function(q){if(q===null||typeof q!="object")throw new K("pathObject","Object",q);return f("\\",q)},parse:function(q){D(q,"path");var Z={root:"",dir:"",base:"",ext:"",name:""};if(q.length===0)return Z;var ce=q.length,Te=0,Ve=q.charCodeAt(0);if(ce>1){if(A(Ve)){if(Te=1,A(q.charCodeAt(1))){for(var Ee=2,de=Ee;Ee<ce&&!A(q.charCodeAt(Ee));++Ee);if(Ee<ce&&Ee!==de){for(de=Ee;Ee<ce&&A(q.charCodeAt(Ee));++Ee);if(Ee<ce&&Ee!==de){for(de=Ee;Ee<ce&&!A(q.charCodeAt(Ee));++Ee);Ee===ce?Te=Ee:Ee!==de&&(Te=Ee+1)}}}}else if(H(Ve)&&q.charCodeAt(1)===_)if(Te=2,ce>2){if(A(q.charCodeAt(2))){if(ce===3)return Z.root=Z.dir=q,Z;Te=3}}else return Z.root=Z.dir=q,Z}else if(A(Ve))return Z.root=Z.dir=q,Z;Te>0&&(Z.root=q.slice(0,Te));for(var se=-1,fe=Te,ie=-1,Q=!0,me=q.length-1,ye=0;me>=Te;--me){if(Ve=q.charCodeAt(me),A(Ve)){if(!Q){fe=me+1;break}continue}ie===-1&&(Q=!1,ie=me+1),Ve===j?se===-1?se=me:ye!==1&&(ye=1):se!==-1&&(ye=-1)}return se===-1||ie===-1||ye===0||ye===1&&se===ie-1&&se===fe+1?ie!==-1&&(Z.base=Z.name=q.slice(fe,ie)):(Z.name=q.slice(fe,se),Z.base=q.slice(fe,ie),Z.ext=q.slice(se,ie)),fe>0&&fe!==Te?Z.dir=q.slice(0,fe-1):Z.dir=Z.root,Z},sep:"\\",delimiter:";",win32:null,posix:null},g={resolve:function(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];for(var ce="",Te=!1,Ve=q.length-1;Ve>=-1&&!Te;Ve--){var Ee=void 0;if(Ve>=0?Ee=q[Ve]:Ee=I.a(),D(Ee,"path"),Ee.length===0)continue;ce=Ee+"/"+ce,Te=Ee.charCodeAt(0)===G}return ce=E(ce,!Te,"/",te),Te?ce.length>0?"/"+ce:"/":ce.length>0?ce:"."},normalize:function(q){if(D(q,"path"),q.length===0)return".";var Z=q.charCodeAt(0)===G,ce=q.charCodeAt(q.length-1)===G;return q=E(q,!Z,"/",te),q.length===0&&!Z&&(q="."),q.length>0&&ce&&(q+="/"),Z?"/"+q:q},isAbsolute:function(q){return D(q,"path"),q.length>0&&q.charCodeAt(0)===G},join:function(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];if(q.length===0)return".";for(var ce,Te=0;Te<q.length;++Te){var Ve=arguments[Te];D(Ve,"path"),Ve.length>0&&(ce===void 0?ce=Ve:ce+="/"+Ve)}return ce===void 0?".":g.normalize(ce)},relative:function(q,Z){if(D(q,"from"),D(Z,"to"),q===Z)return"";if(q=g.resolve(q),Z=g.resolve(Z),q===Z)return"";for(var ce=1;ce<q.length&&!(q.charCodeAt(ce)!==G);++ce);for(var Te=q.length,Ve=Te-ce,Ee=1;Ee<Z.length&&!(Z.charCodeAt(Ee)!==G);++Ee);for(var de=Z.length,se=de-Ee,fe=Ve<se?Ve:se,ie=-1,Q=0;Q<=fe;++Q){if(Q===fe){if(se>fe){if(Z.charCodeAt(Ee+Q)===G)return Z.slice(Ee+Q+1);if(Q===0)return Z.slice(Ee+Q)}else Ve>fe&&(q.charCodeAt(ce+Q)===G?ie=Q:Q===0&&(ie=0));break}var me=q.charCodeAt(ce+Q),ye=Z.charCodeAt(Ee+Q);if(me!==ye)break;me===G&&(ie=Q)}var He="";for(Q=ce+ie+1;Q<=Te;++Q)(Q===Te||q.charCodeAt(Q)===G)&&(He.length===0?He+="..":He+="/..");return He.length>0?He+Z.slice(Ee+ie):(Ee+=ie,Z.charCodeAt(Ee)===G&&++Ee,Z.slice(Ee))},toNamespacedPath:function(q){return q},dirname:function(q){if(D(q,"path"),q.length===0)return".";for(var Z=q.charCodeAt(0)===G,ce=-1,Te=!0,Ve=q.length-1;Ve>=1;--Ve)if(q.charCodeAt(Ve)===G){if(!Te){ce=Ve;break}}else Te=!1;return ce===-1?Z?"/":".":Z&&ce===1?"//":q.slice(0,ce)},basename:function(q,Z){Z!==void 0&&D(Z,"ext"),D(q,"path");var ce=0,Te=-1,Ve=!0,Ee;if(Z!==void 0&&Z.length>0&&Z.length<=q.length){if(Z.length===q.length&&Z===q)return"";var de=Z.length-1,se=-1;for(Ee=q.length-1;Ee>=0;--Ee){var fe=q.charCodeAt(Ee);if(fe===G){if(!Ve){ce=Ee+1;break}}else se===-1&&(Ve=!1,se=Ee+1),de>=0&&(fe===Z.charCodeAt(de)?--de===-1&&(Te=Ee):(de=-1,Te=se))}return ce===Te?Te=se:Te===-1&&(Te=q.length),q.slice(ce,Te)}else{for(Ee=q.length-1;Ee>=0;--Ee)if(q.charCodeAt(Ee)===G){if(!Ve){ce=Ee+1;break}}else Te===-1&&(Ve=!1,Te=Ee+1);return Te===-1?"":q.slice(ce,Te)}},extname:function(q){D(q,"path");for(var Z=-1,ce=0,Te=-1,Ve=!0,Ee=0,de=q.length-1;de>=0;--de){var se=q.charCodeAt(de);if(se===G){if(!Ve){ce=de+1;break}continue}Te===-1&&(Ve=!1,Te=de+1),se===j?Z===-1?Z=de:Ee!==1&&(Ee=1):Z!==-1&&(Ee=-1)}return Z===-1||Te===-1||Ee===0||Ee===1&&Z===Te-1&&Z===ce+1?"":q.slice(Z,Te)},format:function(q){if(q===null||typeof q!="object")throw new K("pathObject","Object",q);return f("/",q)},parse:function(q){D(q,"path");var Z={root:"",dir:"",base:"",ext:"",name:""};if(q.length===0)return Z;var ce=q.charCodeAt(0)===G,Te;ce?(Z.root="/",Te=1):Te=0;for(var Ve=-1,Ee=0,de=-1,se=!0,fe=q.length-1,ie=0;fe>=Te;--fe){var Q=q.charCodeAt(fe);if(Q===G){if(!se){Ee=fe+1;break}continue}de===-1&&(se=!1,de=fe+1),Q===j?Ve===-1?Ve=fe:ie!==1&&(ie=1):Ve!==-1&&(ie=-1)}return Ve===-1||de===-1||ie===0||ie===1&&Ve===de-1&&Ve===Ee+1?de!==-1&&(Ee===0&&ce?Z.base=Z.name=q.slice(1,de):Z.base=Z.name=q.slice(Ee,de)):(Ee===0&&ce?(Z.name=q.slice(1,Ve),Z.base=q.slice(1,de)):(Z.name=q.slice(Ee,Ve),Z.base=q.slice(Ee,de)),Z.ext=q.slice(Ve,de)),Ee>0?Z.dir=q.slice(0,Ee-1):ce&&(Z.dir="/"),Z},sep:"/",delimiter:":",win32:null,posix:null};g.win32=p.win32=p,g.posix=p.posix=g;var m=I.c==="win32"?p.normalize:g.normalize,w=I.c==="win32"?p.join:g.join,B=I.c==="win32"?p.relative:g.relative,z=I.c==="win32"?p.dirname:g.dirname,oe=I.c==="win32"?p.basename:g.basename,he=I.c==="win32"?p.extname:g.extname,_e=I.c==="win32"?p.sep:g.sep},Msxo:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return o.e(237).then(o.bind(null,"Qx4d"))}})},MvK1:function(wt,P,o){"use strict";o.d(P,"a",function(){return re}),o.d(P,"b",function(){return ne});var I=function(){function N(k,U,j){this.from=k|0,this.to=U|0,this.colorId=j|0}return N.compare=function(k,U){return k.colorId===U.colorId?k.from===U.from?k.to-U.to:k.from-U.from:k.colorId-U.colorId},N}(),re=function(){function N(k,U,j){this.startLineNumber=k,this.endLineNumber=U,this.color=j,this._colorZone=null}return N.compare=function(k,U){return k.color===U.color?k.startLineNumber===U.startLineNumber?k.endLineNumber-U.endLineNumber:k.startLineNumber-U.startLineNumber:k.color<U.color?-1:1},N.prototype.setColorZone=function(k){this._colorZone=k},N.prototype.getColorZones=function(){return this._colorZone},N}(),ne=function(){function N(k){this._getVerticalOffsetForLine=k,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}return N.prototype.getId2Color=function(){return this._id2Color},N.prototype.setZones=function(k){this._zones=k,this._zones.sort(re.compare)},N.prototype.setLineHeight=function(k){return this._lineHeight===k?!1:(this._lineHeight=k,this._colorZonesInvalid=!0,!0)},N.prototype.setPixelRatio=function(k){this._pixelRatio=k,this._colorZonesInvalid=!0},N.prototype.getDOMWidth=function(){return this._domWidth},N.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},N.prototype.setDOMWidth=function(k){return this._domWidth===k?!1:(this._domWidth=k,this._colorZonesInvalid=!0,!0)},N.prototype.getDOMHeight=function(){return this._domHeight},N.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},N.prototype.setDOMHeight=function(k){return this._domHeight===k?!1:(this._domHeight=k,this._colorZonesInvalid=!0,!0)},N.prototype.getOuterHeight=function(){return this._outerHeight},N.prototype.setOuterHeight=function(k){return this._outerHeight===k?!1:(this._outerHeight=k,this._colorZonesInvalid=!0,!0)},N.prototype.resolveColorZones=function(){for(var k=this._colorZonesInvalid,U=Math.floor(this._lineHeight),j=Math.floor(this.getCanvasHeight()),G=Math.floor(this._outerHeight),R=j/G,_=Math.floor(4*this._pixelRatio/2),x=[],K=0,D=this._zones.length;K<D;K++){var A=this._zones[K];if(!k){var te=A.getColorZones();if(te){x.push(te);continue}}var H=Math.floor(R*this._getVerticalOffsetForLine(A.startLineNumber)),E=Math.floor(R*(this._getVerticalOffsetForLine(A.endLineNumber)+U)),f=Math.floor((H+E)/2),p=E-f;p<_&&(p=_),f-p<0&&(f=p),f+p>j&&(f=j-p);var g=A.color,m=this._color2Id[g];m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var w=new I(f-p,f+p,m);A.setColorZone(w),x.push(w)}return this._colorZonesInvalid=!1,x.sort(I.compare),x},N}()},Mzro:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return o.e(247).then(o.bind(null,"l/4i"))}})},N0LK:function(wt,P,o){"use strict";o.d(P,"x",function(){return I}),o.d(P,"F",function(){return re}),o.d(P,"r",function(){return N}),o.d(P,"o",function(){return k}),o.d(P,"p",function(){return U}),o.d(P,"K",function(){return R}),o.d(P,"k",function(){return _}),o.d(P,"M",function(){return x}),o.d(P,"m",function(){return K}),o.d(P,"l",function(){return D}),o.d(P,"I",function(){return A}),o.d(P,"H",function(){return te}),o.d(P,"q",function(){return H}),o.d(P,"t",function(){return E}),o.d(P,"D",function(){return f}),o.d(P,"e",function(){return p}),o.d(P,"f",function(){return g}),o.d(P,"B",function(){return m}),o.d(P,"C",function(){return w}),o.d(P,"n",function(){return z}),o.d(P,"N",function(){return he}),o.d(P,"c",function(){return _e}),o.d(P,"d",function(){return Se}),o.d(P,"z",function(){return q}),o.d(P,"A",function(){return Z}),o.d(P,"u",function(){return ce}),o.d(P,"E",function(){return Ve}),o.d(P,"G",function(){return Ee}),o.d(P,"i",function(){return se}),o.d(P,"g",function(){return ie}),o.d(P,"v",function(){return me}),o.d(P,"h",function(){return ye}),o.d(P,"y",function(){return He}),o.d(P,"w",function(){return tt}),o.d(P,"a",function(){return Et}),o.d(P,"O",function(){return Pt}),o.d(P,"J",function(){return Ke}),o.d(P,"j",function(){return Xe}),o.d(P,"L",function(){return Ze}),o.d(P,"s",function(){return Ye}),o.d(P,"b",function(){return Fe});function I(F){return!F||typeof F!="string"?!0:F.trim().length===0}function re(F,ee,Pe){Pe===void 0&&(Pe="0");for(var ve=""+F,Me=[ve],Ie=ve.length;Ie<ee;Ie++)Me.push(Pe);return Me.reverse().join("")}var ne=/{(\d+)}/g;function N(F){for(var ee=[],Pe=1;Pe<arguments.length;Pe++)ee[Pe-1]=arguments[Pe];return ee.length===0?F:F.replace(ne,function(ve,Me){var Ie=parseInt(Me,10);return isNaN(Ie)||Ie<0||Ie>=ee.length?ve:ee[Ie]})}function k(F){return F.replace(/[<>&]/g,function(ee){switch(ee){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ee}})}function U(F){return F.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function j(F,ee){ee===void 0&&(ee=" ");var Pe=G(F,ee);return R(Pe,ee)}function G(F,ee){if(!F||!ee)return F;var Pe=ee.length;if(Pe===0||F.length===0)return F;for(var ve=0;F.indexOf(ee,ve)===ve;)ve=ve+Pe;return F.substring(ve)}function R(F,ee){if(!F||!ee)return F;var Pe=ee.length,ve=F.length;if(Pe===0||ve===0)return F;for(var Me=ve,Ie=-1;!(Ie=F.lastIndexOf(ee,Me-1),Ie===-1||Ie+Pe!==Me);){if(Ie===0)return"";Me=Ie}return F.substring(0,Me)}function _(F){return F.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function x(F,ee){if(F.length<ee.length)return!1;if(F===ee)return!0;for(var Pe=0;Pe<ee.length;Pe++)if(F[Pe]!==ee[Pe])return!1;return!0}function K(F,ee){var Pe=F.length-ee.length;return Pe>0?F.indexOf(ee,Pe)===Pe:Pe===0?F===ee:!1}function D(F,ee,Pe){if(Pe===void 0&&(Pe={}),!F)throw new Error("Cannot create regex from empty string");ee||(F=U(F)),Pe.wholeWord&&(/\B/.test(F.charAt(0))||(F="\\b"+F),/\B/.test(F.charAt(F.length-1))||(F=F+"\\b"));var ve="";return Pe.global&&(ve+="g"),Pe.matchCase||(ve+="i"),Pe.multiline&&(ve+="m"),Pe.unicode&&(ve+="u"),new RegExp(F,ve)}function A(F){if(F.source==="^"||F.source==="^$"||F.source==="$"||F.source==="^\\s*$")return!1;var ee=F.exec("");return!!(ee&&F.lastIndex===0)}function te(F){return(F.global?"g":"")+(F.ignoreCase?"i":"")+(F.multiline?"m":"")+(F.unicode?"u":"")}function H(F){for(var ee=0,Pe=F.length;ee<Pe;ee++){var ve=F.charCodeAt(ee);if(ve!==32&&ve!==9)return ee}return-1}function E(F,ee,Pe){ee===void 0&&(ee=0),Pe===void 0&&(Pe=F.length);for(var ve=ee;ve<Pe;ve++){var Me=F.charCodeAt(ve);if(Me!==32&&Me!==9)return F.substring(ee,ve)}return F.substring(ee,Pe)}function f(F,ee){ee===void 0&&(ee=F.length-1);for(var Pe=ee;Pe>=0;Pe--){var ve=F.charCodeAt(Pe);if(ve!==32&&ve!==9)return Pe}return-1}function p(F,ee){return F<ee?-1:F>ee?1:0}function g(F,ee){for(var Pe=Math.min(F.length,ee.length),ve=0;ve<Pe;ve++){var Me=F.charCodeAt(ve),Ie=ee.charCodeAt(ve);if(Me===Ie)continue;w(Me)&&(Me+=32),w(Ie)&&(Ie+=32);var pe=Me-Ie;if(pe===0)continue;return m(Me)&&m(Ie)?pe:p(F.toLowerCase(),ee.toLowerCase())}return F.length<ee.length?-1:F.length>ee.length?1:0}function m(F){return F>=97&&F<=122}function w(F){return F>=65&&F<=90}function B(F){return m(F)||w(F)}function z(F,ee){return F.length===ee.length&&oe(F,ee)}function oe(F,ee,Pe){Pe===void 0&&(Pe=F.length);for(var ve=0;ve<Pe;ve++){var Me=F.charCodeAt(ve),Ie=ee.charCodeAt(ve);if(Me===Ie)continue;if(B(Me)&&B(Ie)){var pe=Math.abs(Me-Ie);if(pe!==0&&pe!==32)return!1}else if(String.fromCharCode(Me).toLowerCase()!==String.fromCharCode(Ie).toLowerCase())return!1}return!0}function he(F,ee){var Pe=ee.length;return ee.length>F.length?!1:oe(F,ee,Pe)}function _e(F,ee){var Pe,ve=Math.min(F.length,ee.length);for(Pe=0;Pe<ve;Pe++)if(F.charCodeAt(Pe)!==ee.charCodeAt(Pe))return Pe;return ve}function Se(F,ee){var Pe,ve=Math.min(F.length,ee.length),Me=F.length-1,Ie=ee.length-1;for(Pe=0;Pe<ve;Pe++)if(F.charCodeAt(Me-Pe)!==ee.charCodeAt(Ie-Pe))return Pe;return ve}function q(F){return 55296<=F&&F<=56319}function Z(F){return 56320<=F&&F<=57343}function ce(F,ee,Pe){var ve=F.charCodeAt(Pe);if(q(ve)&&Pe+1<ee){var Me=F.charCodeAt(Pe+1);if(Z(Me))return(ve-55296<<10)+(Me-56320)+65536}return ve}function Te(F,ee){var Pe=F.charCodeAt(ee-1);if(Z(Pe)&&ee>1){var ve=F.charCodeAt(ee-2);if(q(ve))return(ve-55296<<10)+(Pe-56320)+65536}return Pe}function Ve(F,ee){var Pe=$e.getInstance(),ve=ee,Me=F.length,Ie=ce(F,Me,ee);ee+=Ie>=65536?2:1;for(var pe=Pe.getGraphemeBreakType(Ie);ee<Me;){var nt=ce(F,Me,ee),_t=Pe.getGraphemeBreakType(nt);if(Fe(pe,_t))break;ee+=nt>=65536?2:1,pe=_t}return ee-ve}function Ee(F,ee){var Pe=$e.getInstance(),ve=ee,Me=Te(F,ee);ee-=Me>=65536?2:1;for(var Ie=Pe.getGraphemeBreakType(Me);ee>0;){var pe=Te(F,ee),nt=Pe.getGraphemeBreakType(pe);if(Fe(nt,Ie))break;ee-=pe>=65536?2:1,Ie=nt}return ve-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(F){return de.test(F)}var fe=/(?:[\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(F){return fe.test(F)}var Q=/^[\t\n\r\x20-\x7E]*$/;function me(F){return Q.test(F)}function ye(F){for(var ee=0,Pe=F.length;ee<Pe;ee++)if(He(F.charCodeAt(ee)))return!0;return!1}function He(F){return F=+F,F>=11904&&F<=55215||F>=63744&&F<=64255||F>=65281&&F<=65374}function tt(F){return F>=127462&&F<=127487||F>=9728&&F<=10175||F>=127744&&F<=128591||F>=128640&&F<=128764||F>=128992&&F<=129003||F>=129280&&F<=129535||F>=129648&&F<=129651||F>=129656&&F<=129666||F>=129680&&F<=129685}var Et=String.fromCharCode(65279);function Pt(F){return!!(F&&F.length>0&&F.charCodeAt(0)===65279)}function Xt(F){return btoa(encodeURIComponent(F))}function Ke(F,ee){for(var Pe="",ve=0;ve<ee;ve++)Pe+=F;return Pe}function Xe(F,ee){return ee===void 0&&(ee=!1),F?(ee&&(F=F.replace(/\\./g,"")),F.toLowerCase()!==F):!1}function Ze(F){var ee=90-65+1;return F=F%(2*ee),F<ee?String.fromCharCode(97+F):String.fromCharCode(65+F-ee)}function Ye(F){var ee=$e.getInstance();return ee.getGraphemeBreakType(F)}function Fe(F,ee){return F===0?ee!==5&&ee!==7:F===2&&ee===3?!1:F===4||F===2||F===3||(ee===4||ee===2||ee===3)?!0:F===8&&(ee===8||ee===9||ee===11||ee===12)||((F===11||F===9)&&(ee===9||ee===10)||((F===12||F===10)&&ee===10||(ee===5||ee===13||(ee===7||(F===1||F===13&&ee===14)))))?!1:!(F===6&&ee===6)}var $e=function(){function F(){this._data=we()}return F.getInstance=function(){return F._INSTANCE||(F._INSTANCE=new F),F._INSTANCE},F.prototype.getGraphemeBreakType=function(ee){if(ee<32)return ee===10?3:ee===13?2:4;if(ee<127)return 0;for(var Pe=this._data,ve=Pe.length/3,Me=1;Me<=ve;)if(ee<Pe[3*Me])Me=2*Me;else if(ee>Pe[3*Me+1])Me=2*Me+1;else return Pe[3*Me+2];return 0},F._INSTANCE=null,F}();function we(){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(wt,P,o){"use strict";o.d(P,"b",function(){return R}),o.d(P,"a",function(){return _}),o.d(P,"c",function(){return x});var I=o("UCkY"),re=o.n(I),ne=o("3/fG"),N=o("MNsG"),k=o("EffR"),U,j,G;function R(te){U=document.createElement("div"),U.className="monaco-aria-container",j=document.createElement("div"),j.className="monaco-alert",j.setAttribute("role","alert"),j.setAttribute("aria-atomic","true"),U.appendChild(j),G=document.createElement("div"),G.className="monaco-status",G.setAttribute("role","status"),G.setAttribute("aria-atomic","true"),U.appendChild(G),te.appendChild(U)}function _(te,H){A(j,te,H)}function x(te,H){N.e?_(te,H):A(G,te,H)}var K=0,D=void 0;function A(te,H,E){if(!U)return;if(!E){D===H?K++:(D=H,K=0);switch(K){case 0:break;case 1:H=ne.a("repeated","{0} (occurred again)",H);break;default:H=ne.a("repeatedNtimes","{0} (occurred {1} times)",H,K);break}}k.s(te),te.textContent=H,te.style.visibility="hidden",te.style.visibility="visible"}},OKK6:function(wt,P,o){},OOlL:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return o.e(203).then(o.bind(null,"NlLO"))}})},PTeM:function(wt,P,o){"use strict";o.d(P,"c",function(){return ne}),o.d(P,"a",function(){return N}),o.d(P,"b",function(){return k});var I=o("N0LK"),re=o("MrjW");function ne(U){return U.replace(/[\\/]/g,re.posix.sep)}function N(U,j,G,R){if(R===void 0&&(R=re.sep),U===j)return!0;if(!U||!j)return!1;if(j.length>U.length)return!1;if(G){var _=Object(I.N)(U,j);if(!_)return!1;if(j.length===U.length)return!0;var x=j.length;return j.charAt(j.length-1)===R&&x--,U.charAt(x)===R}return j.charAt(j.length-1)!==R&&(j+=R),U.indexOf(j)===0}function k(U){return U>=65&&U<=90||U>=97&&U<=122}},Q4rV:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("bY76");function re(N){var k=JSON.parse(N);return k=ne(k),k}function ne(N,k){if(k===void 0&&(k=0),!N||k>200)return N;if(typeof N=="object"){switch(N.$mid){case 1:return I.a.revive(N);case 2:return new RegExp(N.source,N.flags)}for(var U in N)Object.hasOwnProperty.call(N,U)&&(N[U]=ne(N[U],k+1))}return N}},QDVR:function(wt,P,o){"use strict";o.d(P,"e",function(){return re}),o.d(P,"d",function(){return ne}),o.d(P,"c",function(){return j}),o.d(P,"b",function(){return G}),o.d(P,"a",function(){return _});var I=function(){var x=function(D,A){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,H){te.__proto__=H}||function(te,H){for(var E in H)H.hasOwnProperty(E)&&(te[E]=H[E])},x(D,A)};return function(K,D){x(K,D);function A(){this.constructor=K}K.prototype=D===null?Object.create(D):(A.prototype=D.prototype,new A)}}();function re(x){var K=[];return x.forEach(function(D){return K.push(D)}),K}function ne(x){var K=[];return x.forEach(function(D,A){return K.push(A)}),K}var N=function(){function x(){this._value="",this._pos=0}return x.prototype.reset=function(K){return this._value=K,this._pos=0,this},x.prototype.next=function(){return this._pos+=1,this},x.prototype.hasNext=function(){return this._pos<this._value.length-1},x.prototype.cmp=function(K){var D=K.charCodeAt(0),A=this._value.charCodeAt(this._pos);return D-A},x.prototype.value=function(){return this._value[this._pos]},x}(),k=function(){function x(K){K===void 0&&(K=!0),this._splitOnBackslash=K}return x.prototype.reset=function(K){return this._value=K.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},x.prototype.hasNext=function(){return this._to<this._value.length},x.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},x.prototype.cmp=function(K){for(var D=0,A=K.length,te=this._from;D<A&&te<this._to;){var H=K.charCodeAt(D)-this._value.charCodeAt(te);if(H!==0)return H;D+=1,te+=1}return A===this._to-this._from?0:D<A?-1:1},x.prototype.value=function(){return this._value.substring(this._from,this._to)},x}(),U=function(){function x(){}return x}(),j=function(){function x(K){this._iter=K}return x.forPaths=function(){return new x(new k)},x.forStrings=function(){return new x(new N)},x.prototype.clear=function(){this._root=void 0},x.prototype.set=function(K,D){var A=this._iter.reset(K),te;for(this._root||(this._root=new U,this._root.segment=A.value()),te=this._root;;){var H=A.cmp(te.segment);if(H>0)te.left||(te.left=new U,te.left.segment=A.value()),te=te.left;else if(H<0)te.right||(te.right=new U,te.right.segment=A.value()),te=te.right;else if(A.hasNext())A.next(),te.mid||(te.mid=new U,te.mid.segment=A.value()),te=te.mid;else break}var E=te.value;return te.value=D,te.key=K,E},x.prototype.get=function(K){for(var D=this._iter.reset(K),A=this._root;A;){var te=D.cmp(A.segment);if(te>0)A=A.left;else if(te<0)A=A.right;else if(D.hasNext())D.next(),A=A.mid;else break}return A?A.value:void 0},x.prototype.findSubstr=function(K){for(var D=this._iter.reset(K),A=this._root,te=void 0;A;){var H=D.cmp(A.segment);if(H>0)A=A.left;else if(H<0)A=A.right;else if(D.hasNext())D.next(),te=A.value||te,A=A.mid;else break}return A&&A.value||te},x.prototype.forEach=function(K){this._forEach(this._root,K)},x.prototype._forEach=function(K,D){K&&(this._forEach(K.left,D),K.value&&D(K.value,K.key),this._forEach(K.mid,D),this._forEach(K.right,D))},x}(),G=function(){function x(){this.map=new Map,this.ignoreCase=!1}return x.prototype.set=function(K,D){this.map.set(this.toKey(K),D)},x.prototype.get=function(K){return this.map.get(this.toKey(K))},x.prototype.toKey=function(K){var D=K.toString();return this.ignoreCase&&(D=D.toLowerCase()),D},x}(),R=function(){function x(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return x.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(x.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),x.prototype.get=function(K,D){D===void 0&&(D=0);var A=this._map.get(K);return A?(D!==0&&this.touch(A,D),A.value):void 0},x.prototype.set=function(K,D,A){A===void 0&&(A=0);var te=this._map.get(K);if(te)te.value=D,A!==0&&this.touch(te,A);else{te={key:K,value:D,next:void 0,previous:void 0};switch(A){case 0:this.addItemLast(te);break;case 1:this.addItemFirst(te);break;case 2:this.addItemLast(te);break;default:this.addItemLast(te);break}this._map.set(K,te),this._size++}},x.prototype.delete=function(K){return!!this.remove(K)},x.prototype.remove=function(K){var D=this._map.get(K);return D?(this._map.delete(K),this.removeItem(D),this._size--,D.value):void 0},x.prototype.forEach=function(K,D){for(var A=this._head;A;)D?K.bind(D)(A.value,A.key,this):K(A.value,A.key,this),A=A.next},x.prototype.trimOld=function(K){if(K>=this.size)return;if(K===0){this.clear();return}for(var D=this._head,A=this.size;D&&A>K;)this._map.delete(D.key),D=D.next,A--;this._head=D,this._size=A,D&&(D.previous=void 0)},x.prototype.addItemFirst=function(K){if(!this._head&&!this._tail)this._tail=K;else if(this._head)K.next=this._head,this._head.previous=K;else throw new Error("Invalid list");this._head=K},x.prototype.addItemLast=function(K){if(!this._head&&!this._tail)this._head=K;else if(this._tail)K.previous=this._tail,this._tail.next=K;else throw new Error("Invalid list");this._tail=K},x.prototype.removeItem=function(K){if(K===this._head&&K===this._tail)this._head=void 0,this._tail=void 0;else if(K===this._head){if(!K.next)throw new Error("Invalid list");K.next.previous=void 0,this._head=K.next}else if(K===this._tail){if(!K.previous)throw new Error("Invalid list");K.previous.next=void 0,this._tail=K.previous}else{var D=K.next,A=K.previous;if(!D||!A)throw new Error("Invalid list");D.previous=A,A.next=D}K.next=void 0,K.previous=void 0},x.prototype.touch=function(K,D){if(!this._head||!this._tail)throw new Error("Invalid list");if(D!==1&&D!==2)return;if(D===1){if(K===this._head)return;var A=K.next,te=K.previous;K===this._tail?(te.next=void 0,this._tail=te):(A.previous=te,te.next=A),K.previous=void 0,K.next=this._head,this._head.previous=K,this._head=K}else if(D===2){if(K===this._tail)return;var A=K.next,te=K.previous;K===this._head?(A.previous=void 0,this._head=A):(A.previous=te,te.next=A),K.next=void 0,K.previous=this._tail,this._tail.next=K,this._tail=K}},x.prototype.toJSON=function(){var K=[];return this.forEach(function(D,A){K.push([A,D])}),K},x}(),_=function(x){I(K,x);function K(D,A){A===void 0&&(A=1);var te=x.call(this)||this;return te._limit=D,te._ratio=Math.min(Math.max(0,A),1),te}return K.prototype.get=function(D){return x.prototype.get.call(this,D,2)},K.prototype.peek=function(D){return x.prototype.get.call(this,D,0)},K.prototype.set=function(D,A){x.prototype.set.call(this,D,A,2),this.checkTrim()},K.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},K}(R)},QFiB:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return o.e(222).then(o.bind(null,"PhST"))}})},QRHv:function(wt,P,o){"use strict";o.d(P,"f",function(){return k}),o.d(P,"b",function(){return G}),o.d(P,"c",function(){return R}),o.d(P,"a",function(){return x}),o.d(P,"e",function(){return A}),o.d(P,"d",function(){return te});var I=o("6OMU"),re=o("4bUh"),ne=o("cGHE"),N=o("twdY");function k(H){for(var E=0,f=0,p=0,g=0,m=H.length;g<m;g++){var w=H.charCodeAt(g);w===13?(E===0&&(f=g),E++,g+1<m&&H.charCodeAt(g+1)===10&&g++,p=g+1):w===10&&(E===0&&(f=g),E++,p=g+1)}return E===0&&(f=H.length),[E,f,H.length-p]}function U(H){return(H<<0|0<<8|0<<11|1<<14|2<<23)>>>0}var j=new Uint32Array(0).buffer,G=function(){function H(){this.tokens=[]}return H.prototype.add=function(E,f){if(this.tokens.length>0){var p=this.tokens[this.tokens.length-1],g=p.startLineNumber+p.tokens.length-1;if(g+1===E){p.tokens.push(f);return}}this.tokens.push(new K(E,[f]))},H}(),R=function(){function H(E){this._tokens=E,this._tokenCount=E.length/4}return H.prototype.getMaxDeltaLine=function(){var E=this.getTokenCount();return E===0?-1:this.getDeltaLine(E-1)},H.prototype.getTokenCount=function(){return this._tokenCount},H.prototype.getDeltaLine=function(E){return this._tokens[4*E]},H.prototype.getStartCharacter=function(E){return this._tokens[4*E+1]},H.prototype.getEndCharacter=function(E){return this._tokens[4*E+2]},H.prototype.getMetadata=function(E){return this._tokens[4*E+3]},H.prototype.clear=function(){this._tokenCount=0},H.prototype.acceptDeleteRange=function(E,f,p,g,m){for(var w=this._tokens,B=this._tokenCount,z=g-f,oe=0,he=!1,_e=0;_e<B;_e++){var Se=4*_e,q=w[Se],Z=w[Se+1],ce=w[Se+2],Te=w[Se+3];if(q<f||q===f&&ce<=p){oe++;continue}else if(q===f&&Z<p)q===g&&ce>m?ce-=m-p:ce=p;else if(q===f&&Z===p)if(q===g&&ce>m)ce-=m-p;else{he=!0;continue}else if(q<g||q===g&&Z<m)if(q===g&&ce>m)q===f?(Z=p,ce=Z+(ce-m)):(Z=0,ce=Z+(ce-m));else{he=!0;continue}else if(q>g){if(z===0&&!he){oe=B;break}q-=z}else if(q===g&&Z>=m)E&&q===0&&(Z+=E,ce+=E),q-=z,Z-=m-p,ce-=m-p;else throw new Error("Not possible!");var Ve=4*oe;w[Ve]=q,w[Ve+1]=Z,w[Ve+2]=ce,w[Ve+3]=Te,oe++}this._tokenCount=oe},H.prototype.acceptInsertText=function(E,f,p,g,m,w){for(var B=p===0&&g===1&&(w>=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122),z=this._tokens,oe=this._tokenCount,he=0;he<oe;he++){var _e=4*he,Se=z[_e],q=z[_e+1],Z=z[_e+2];if(Se<E||Se===E&&Z<f)continue;if(Se===E&&Z===f)if(B)Z+=1;else continue;else if(Se===E&&q<f&&f<Z)p===0?Z+=g:Z=f;else{if(Se===E&&q===f&&B)continue;if(Se===E)if(Se+=p,p===0)q+=g,Z+=g;else{var ce=Z-q;q=m+(q-f),Z=q+ce}else Se+=p}z[_e]=Se,z[_e+1]=q,z[_e+2]=Z}},H}(),_=function(){function H(E,f,p){this._actual=E,this._startTokenIndex=f,this._endTokenIndex=p}return H.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},H.prototype.getStartCharacter=function(E){return this._actual.getStartCharacter(this._startTokenIndex+E)},H.prototype.getEndCharacter=function(E){return this._actual.getEndCharacter(this._startTokenIndex+E)},H.prototype.getMetadata=function(E){return this._actual.getMetadata(this._startTokenIndex+E)},H}(),x=function(){function H(E,f){this.startLineNumber=E,this.tokens=f,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return H.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},H.prototype.getLineTokens=function(E){if(this.startLineNumber<=E&&E<=this.endLineNumber){var f=H._findTokensWithLine(this.tokens,E-this.startLineNumber);if(f){var p=f[0],g=f[1];return new _(this.tokens,p,g)}}return null},H._findTokensWithLine=function(E,f){for(var p=0,g=E.getTokenCount()-1;p<g;){var m=p+Math.floor((g-p)/2),w=E.getDeltaLine(m);if(w<f)p=m+1;else if(w>f)g=m-1;else{for(var B=m;B>p&&E.getDeltaLine(B-1)===f;)B--;for(var z=m;z<g&&E.getDeltaLine(z+1)===f;)z++;return[B,z]}}return E.getDeltaLine(p)===f?[p,p]:null},H.prototype.applyEdit=function(E,f){var p=k(f),g=p[0],m=p[1],w=p[2];this.acceptEdit(E,g,m,w,f.length>0?f.charCodeAt(0):0)},H.prototype.acceptEdit=function(E,f,p,g,m){this._acceptDeleteRange(E),this._acceptInsertText(new ne.a(E.startLineNumber,E.startColumn),f,p,g,m),this._updateEndLineNumber()},H.prototype._acceptDeleteRange=function(E){if(E.startLineNumber===E.endLineNumber&&E.startColumn===E.endColumn)return;var f=E.startLineNumber-this.startLineNumber,p=E.endLineNumber-this.startLineNumber;if(p<0){var g=p-f;this.startLineNumber-=g;return}var m=this.tokens.getMaxDeltaLine();if(f>=m+1)return;if(f<0&&p>=m+1){this.startLineNumber=0,this.tokens.clear();return}if(f<0){var w=-f;this.startLineNumber-=w,this.tokens.acceptDeleteRange(E.startColumn-1,0,0,p,E.endColumn-1)}else this.tokens.acceptDeleteRange(0,f,E.startColumn-1,p,E.endColumn-1)},H.prototype._acceptInsertText=function(E,f,p,g,m){if(f===0&&p===0)return;var w=E.lineNumber-this.startLineNumber;if(w<0){this.startLineNumber+=f;return}var B=this.tokens.getMaxDeltaLine();if(w>=B+1)return;this.tokens.acceptInsertText(w,E.column-1,f,p,g,m)},H}(),K=function(){function H(E,f){this.startLineNumber=E,this.tokens=f}return H}();function D(H){return H instanceof Uint32Array?H:new Uint32Array(H)}var A=function(){function H(){this._pieces=[]}return H.prototype.flush=function(){this._pieces=[]},H.prototype.set=function(E){this._pieces=E||[]},H.prototype.addSemanticTokens=function(E,f){var p=this._pieces;if(p.length===0)return f;var g=H._findFirstPieceWithLine(p,E),m=this._pieces[g].getLineTokens(E);if(!m)return f;for(var w=f.getCount(),B=m.getCount(),z=0,oe=[],he=0,_e=0;_e<B;_e++){for(var Se=m.getStartCharacter(_e),q=m.getEndCharacter(_e),Z=m.getMetadata(_e),ce=((Z&1?2048:0)|(Z&2?4096:0)|(Z&4?8192:0)|(Z&8?8372224:0)|(Z&16?4286578688:0))>>>0,Te=~ce>>>0;z<w&&f.getEndOffset(z)<=Se;)oe[he++]=f.getEndOffset(z),oe[he++]=f.getMetadata(z),z++;for(z<w&&f.getStartOffset(z)<Se&&(oe[he++]=Se,oe[he++]=f.getMetadata(z));z<w&&f.getEndOffset(z)<q;)oe[he++]=f.getEndOffset(z),oe[he++]=f.getMetadata(z)&Te|Z&ce,z++;if(z<w&&f.getEndOffset(z)===q)oe[he++]=f.getEndOffset(z),oe[he++]=f.getMetadata(z)&Te|Z&ce,z++;else{var Ve=Math.min(Math.max(0,z-1),w-1);oe[he++]=q,oe[he++]=f.getMetadata(Ve)&Te|Z&ce}}for(;z<w;)oe[he++]=f.getEndOffset(z),oe[he++]=f.getMetadata(z),z++;return new re.a(new Uint32Array(oe),f.getLineContent())},H._findFirstPieceWithLine=function(E,f){for(var p=0,g=E.length-1;p<g;){var m=p+Math.floor((g-p)/2);if(E[m].endLineNumber<f)p=m+1;else if(E[m].startLineNumber>f)g=m-1;else{for(;m>p&&E[m-1].startLineNumber<=f&&f<=E[m-1].endLineNumber;)m--;return m}}return p},H.prototype.acceptEdit=function(E,f,p,g,m){for(var w=0,B=this._pieces;w<B.length;w++){var z=B[w];z.acceptEdit(E,f,p,g,m)}},H}(),te=function(){function H(){this._lineTokens=[],this._len=0}return H.prototype.flush=function(){this._lineTokens=[],this._len=0},H.prototype.getTokens=function(E,f,p){var g=null;if(f<this._len&&(g=this._lineTokens[f]),g!==null&&g!==j)return new re.a(D(g),p);var m=new Uint32Array(2);return m[0]=p.length,m[1]=U(E),new re.a(m,p)},H._massageTokens=function(E,f,p){var g=p?D(p):null;if(f===0){var m=!1;if(g&&g.length>1&&(m=N.x.getLanguageId(g[1])!==E),!m)return j}if(!g||g.length===0){var w=new Uint32Array(2);return w[0]=f,w[1]=U(E),w.buffer}return g[g.length-2]=f,g.byteOffset===0&&g.byteLength===g.buffer.byteLength?g.buffer:g},H.prototype._ensureLine=function(E){for(;E>=this._len;)this._lineTokens[this._len]=null,this._len++},H.prototype._deleteLines=function(E,f){if(f===0)return;E+f>this._len&&(f=this._len-E),this._lineTokens.splice(E,f),this._len-=f},H.prototype._insertLines=function(E,f){if(f===0)return;for(var p=[],g=0;g<f;g++)p[g]=null;this._lineTokens=I.a(this._lineTokens,E,p),this._len+=f},H.prototype.setTokens=function(E,f,p,g){var m=H._massageTokens(E,p,g);this._ensureLine(f),this._lineTokens[f]=m},H.prototype.acceptEdit=function(E,f,p){this._acceptDeleteRange(E),this._acceptInsertText(new ne.a(E.startLineNumber,E.startColumn),f,p)},H.prototype._acceptDeleteRange=function(E){var f=E.startLineNumber-1;if(f>=this._len)return;if(E.startLineNumber===E.endLineNumber){if(E.startColumn===E.endColumn)return;this._lineTokens[f]=H._delete(this._lineTokens[f],E.startColumn-1,E.endColumn-1);return}this._lineTokens[f]=H._deleteEnding(this._lineTokens[f],E.startColumn-1);var p=E.endLineNumber-1,g=null;p<this._len&&(g=H._deleteBeginning(this._lineTokens[p],E.endColumn-1)),this._lineTokens[f]=H._append(this._lineTokens[f],g),this._deleteLines(E.startLineNumber,E.endLineNumber-E.startLineNumber)},H.prototype._acceptInsertText=function(E,f,p){if(f===0&&p===0)return;var g=E.lineNumber-1;if(g>=this._len)return;if(f===0){this._lineTokens[g]=H._insert(this._lineTokens[g],E.column-1,p);return}this._lineTokens[g]=H._deleteEnding(this._lineTokens[g],E.column-1),this._lineTokens[g]=H._insert(this._lineTokens[g],E.column-1,p),this._insertLines(E.lineNumber,f)},H._deleteBeginning=function(E,f){return E===null||E===j?E:H._delete(E,0,f)},H._deleteEnding=function(E,f){if(E===null||E===j)return E;var p=D(E),g=p[p.length-2];return H._delete(E,f,g)},H._delete=function(E,f,p){if(E===null||E===j||f===p)return E;var g=D(E),m=g.length>>>1;if(f===0&&g[g.length-2]===p)return j;var w=re.a.findIndexInTokensArray(g,f),B=w>0?g[w-1<<1]:0,z=g[w<<1];if(p<z){for(var oe=p-f,he=w;he<m;he++)g[he<<1]-=oe;return E}var _e,Se;B!==f?(g[w<<1]=f,_e=w+1<<1,Se=f):(_e=w<<1,Se=B);for(var q=p-f,Z=w+1;Z<m;Z++){var ce=g[Z<<1]-q;ce>Se&&(g[_e++]=ce,g[_e++]=g[(Z<<1)+1],Se=ce)}if(_e===g.length)return E;var Te=new Uint32Array(_e);return Te.set(g.subarray(0,_e),0),Te.buffer},H._append=function(E,f){if(f===j)return E;if(E===j)return f;if(E===null)return E;if(f===null)return null;var p=D(E),g=D(f),m=g.length>>>1,w=new Uint32Array(p.length+g.length);w.set(p,0);for(var B=p.length,z=p[p.length-2],oe=0;oe<m;oe++)w[B++]=g[oe<<1]+z,w[B++]=g[(oe<<1)+1];return w.buffer},H._insert=function(E,f,p){if(E===null||E===j)return E;var g=D(E),m=g.length>>>1,w=re.a.findIndexInTokensArray(g,f);if(w>0){var B=g[w-1<<1];B===f&&w--}for(var z=w;z<m;z++)g[z<<1]+=p;return E},H}()},QVNv:function(wt,P,o){"use strict";o.d(P,"b",function(){return A}),o.d(P,"a",function(){return H}),o.d(P,"c",function(){return f}),o.d(P,"e",function(){return p}),o.d(P,"d",function(){return z}),o.d(P,"f",function(){return he});var I=o("X+cX"),re=o("qj0h"),ne=o("/cxE"),N=o("sswD"),k=o("twdY"),U=o("cGHE"),j=o("T8No"),G=o("JQT/"),R=o("aokT"),_=o("fpMC"),x=o("pmY6"),K=function(_e,Se,q,Z){function ce(Te){return Te instanceof q?Te:new q(function(Ve){Ve(Te)})}return new(q||(q=Promise))(function(Te,Ve){function Ee(fe){try{se(Z.next(fe))}catch(ie){Ve(ie)}}function de(fe){try{se(Z.throw(fe))}catch(ie){Ve(ie)}}function se(fe){fe.done?Te(fe.value):ce(fe.value).then(Ee,de)}se((Z=Z.apply(_e,Se||[])).next())})},D=function(_e,Se){var q={label:0,sent:function(){if(Te[0]&1)throw Te[1];return Te[1]},trys:[],ops:[]},Z,ce,Te,Ve;return Ve={next:Ee(0),throw:Ee(1),return:Ee(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function Ee(se){return function(fe){return de([se,fe])}}function de(se){if(Z)throw new TypeError("Generator is already executing.");for(;q;)try{if(Z=1,ce&&(Te=se[0]&2?ce.return:se[0]?ce.throw||((Te=ce.return)&&Te.call(ce),0):ce.next)&&!(Te=Te.call(ce,se[1])).done)return Te;(ce=0,Te)&&(se=[se[0]&2,Te.value]);switch(se[0]){case 0:case 1:Te=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(!(Te=q.trys,Te=Te.length>0&&Te[Te.length-1])&&(se[0]===6||se[0]===2)){q=0;continue}if(se[0]===3&&(!Te||se[1]>Te[0]&&se[1]<Te[3])){q.label=se[1];break}if(se[0]===6&&q.label<Te[1]){q.label=Te[1],Te=se;break}if(Te&&q.label<Te[2]){q.label=Te[2],q.ops.push(se);break}Te[2]&&q.ops.pop(),q.trys.pop();continue}se=Se.call(_e,q)}catch(fe){se=[6,fe],ce=0}finally{Z=Te=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}},A={Visible:new j.d("suggestWidgetVisible",!1),MultipleSuggestions:new j.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new j.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new j.d("acceptSuggestionOnEnter",!0)},te=function(){function _e(Se,q,Z,ce,Te){var Ve=this;this.position=Se,this.completion=q,this.container=Z,this.provider=ce,this.isResolved=!1,this.score=_.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(),R.a.isIRange(q.range)?(this.editStart=new U.a(q.range.startLineNumber,q.range.startColumn),this.editInsertEnd=new U.a(q.range.endLineNumber,q.range.endColumn),this.editReplaceEnd=new U.a(q.range.endLineNumber,q.range.endColumn)):(this.editStart=new U.a(q.range.insert.startLineNumber,q.range.insert.startColumn),this.editInsertEnd=new U.a(q.range.insert.endLineNumber,q.range.insert.endColumn),this.editReplaceEnd=new U.a(q.range.replace.endLineNumber,q.range.replace.endColumn));var Ee=ce.resolveCompletionItem;if(typeof Ee!="function")this.resolve=function(){return Promise.resolve()},this.isResolved=!0;else{var de;this.resolve=function(se){return de||(de=Promise.resolve(Ee.call(ce,Te,Se,q,se)).then(function(fe){Object(re.a)(q,fe),Ve.isResolved=!0},function(fe){Object(ne.d)(fe)&&(de=void 0)}),se.onCancellationRequested(function(){Ve.isResolved||(de=void 0)})),de}}}return _e}(),H=function(){function _e(Se,q,Z){Se===void 0&&(Se=2),q===void 0&&(q=new Set),Z===void 0&&(Z=new Set),this.snippetSortOrder=Se,this.kindFilter=q,this.providerFilter=Z}return _e.default=new _e,_e}(),E;function f(){return E}function p(_e,Se,q,Z,ce){q===void 0&&(q=H.default),Z===void 0&&(Z={triggerKind:0}),ce===void 0&&(ce=G.a.None);var Te=_e.getWordAtPosition(Se),Ve=Te?new R.a(Se.lineNumber,Te.startColumn,Se.lineNumber,Te.endColumn):R.a.fromPositions(Se),Ee=Ve.setEndPosition(Se.lineNumber,Se.column);Se=Se.clone();var de=k.d.orderedGroups(_e);!q.kindFilter.has(25)&&E&&de.unshift([E]);var se=[],fe=new x.b,ie=!1,Q=de.map(function(ye){return function(){return Promise.all(ye.map(function(He){return q.providerFilter.size>0&&!q.providerFilter.has(He)?void 0:Promise.resolve(He.provideCompletionItems(_e,Se,Z,ce)).then(function(tt){var Et=se.length;if(tt){for(var Pt=0,Xt=tt.suggestions||[];Pt<Xt.length;Pt++){var Ke=Xt[Pt];q.kindFilter.has(Ke.kind)||(Ke.range||(Ke.range={insert:Ee,replace:Ve}),Ke.sortText||(Ke.sortText=typeof Ke.label=="string"?Ke.label:Ke.label.name),se.push(new te(Se,Ke,tt,He,_e)))}Object(x.g)(tt)&&fe.add(tt)}Et!==se.length&&He!==E&&(ie=!0)},ne.f)}))}}),me=Object(I.h)(Q,function(){return ie||ce.isCancellationRequested}).then(function(){return ce.isCancellationRequested?(fe.dispose(),Promise.reject(Object(ne.a)())):se.sort(z(q.snippetSortOrder))});return me}function g(_e,Se){if(_e.sortTextLow&&Se.sortTextLow){if(_e.sortTextLow<Se.sortTextLow)return-1;if(_e.sortTextLow>Se.sortTextLow)return 1}return _e.completion.label<Se.completion.label?-1:_e.completion.label>Se.completion.label?1:_e.completion.kind-Se.completion.kind}function m(_e,Se){if(_e.completion.kind!==Se.completion.kind){if(_e.completion.kind===25)return-1;if(Se.completion.kind===25)return 1}return g(_e,Se)}function w(_e,Se){if(_e.completion.kind!==Se.completion.kind){if(_e.completion.kind===25)return 1;if(Se.completion.kind===25)return-1}return g(_e,Se)}var B=new Map;B.set(0,m),B.set(2,w),B.set(1,g);function z(_e){return B.get(_e)}Object(N.e)("_executeCompletionItemProvider",function(_e,Se,q){return K(void 0,void 0,void 0,function(){var Z,ce,Te,Ve,Ee,de,se,fe;return D(this,function(ie){switch(ie.label){case 0:return Z={incomplete:!1,suggestions:[]},ce=new x.b,Te=[],Ve=q.maxItemsToResolve||0,[4,p(_e,Se)];case 1:for(Ee=ie.sent(),de=0,se=Ee;de<se.length;de++)fe=se[de],Te.length<Ve&&Te.push(fe.resolve(G.a.None)),Z.incomplete=Z.incomplete||fe.container.incomplete,Z.suggestions.push(fe.completion),Object(x.g)(fe.container)&&ce.add(fe.container);ie.label=2;case 2:return ie.trys.push([2,,4,5]),[4,Promise.all(Te)];case 3:return ie.sent(),[2,Z];case 4:return setTimeout(function(){return ce.dispose()},100),[7];case 5:return[2]}})})});var oe=new(function(){function _e(){this.onlyOnceSuggestions=[]}return _e.prototype.provideCompletionItems=function(){var Se=this.onlyOnceSuggestions.slice(0),q={suggestions:Se};return this.onlyOnceSuggestions.length=0,q},_e}());k.d.register("*",oe);function he(_e,Se){setTimeout(function(){var q;(q=oe.onlyOnceSuggestions).push.apply(q,Se),_e.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(oe))},0)}},QiAa:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return o.e(239).then(o.bind(null,"j6Xs"))}})},QuOb:function(wt,P,o){"use strict";o.d(P,"a",function(){return k});var I=o("MI8n"),re=o("pmY6"),ne=function(){var K=function(A,te){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,E){H.__proto__=E}||function(H,E){for(var f in E)E.hasOwnProperty(f)&&(H[f]=E[f])},K(A,te)};return function(D,A){K(D,A);function te(){this.constructor=D}D.prototype=A===null?Object.create(A):(te.prototype=A.prototype,new te)}}(),N=function(){function K(D,A,te,H,E,f){D=D|0,A=A|0,te=te|0,H=H|0,E=E|0,f=f|0,D<0&&(D=0),te+D>A&&(te=A-D),te<0&&(te=0),H<0&&(H=0),f+H>E&&(f=E-H),f<0&&(f=0),this.width=D,this.scrollWidth=A,this.scrollLeft=te,this.height=H,this.scrollHeight=E,this.scrollTop=f}return K.prototype.equals=function(D){return this.width===D.width&&this.scrollWidth===D.scrollWidth&&this.scrollLeft===D.scrollLeft&&this.height===D.height&&this.scrollHeight===D.scrollHeight&&this.scrollTop===D.scrollTop},K.prototype.withScrollDimensions=function(D){return new K(typeof D.width!="undefined"?D.width:this.width,typeof D.scrollWidth!="undefined"?D.scrollWidth:this.scrollWidth,this.scrollLeft,typeof D.height!="undefined"?D.height:this.height,typeof D.scrollHeight!="undefined"?D.scrollHeight:this.scrollHeight,this.scrollTop)},K.prototype.withScrollPosition=function(D){return new K(this.width,this.scrollWidth,typeof D.scrollLeft!="undefined"?D.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof D.scrollTop!="undefined"?D.scrollTop:this.scrollTop)},K.prototype.createScrollEvent=function(D){var A=this.width!==D.width,te=this.scrollWidth!==D.scrollWidth,H=this.scrollLeft!==D.scrollLeft,E=this.height!==D.height,f=this.scrollHeight!==D.scrollHeight,p=this.scrollTop!==D.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:A,scrollWidthChanged:te,scrollLeftChanged:H,heightChanged:E,scrollHeightChanged:f,scrollTopChanged:p}},K}(),k=function(K){ne(D,K);function D(A,te){var H=K.call(this)||this;return H._onScroll=H._register(new I.a),H.onScroll=H._onScroll.event,H._smoothScrollDuration=A,H._scheduleAtNextAnimationFrame=te,H._state=new N(0,0,0,0,0,0),H._smoothScrolling=null,H}return D.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),K.prototype.dispose.call(this)},D.prototype.setSmoothScrollDuration=function(A){this._smoothScrollDuration=A},D.prototype.validateScrollPosition=function(A){return this._state.withScrollPosition(A)},D.prototype.getScrollDimensions=function(){return this._state},D.prototype.setScrollDimensions=function(A){var te=this._state.withScrollDimensions(A);this._setState(te),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},D.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},D.prototype.getCurrentScrollPosition=function(){return this._state},D.prototype.setScrollPositionNow=function(A){var te=this._state.withScrollPosition(A);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(te)},D.prototype.setScrollPositionSmooth=function(A){var te=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(A);if(this._smoothScrolling){A={scrollLeft:typeof A.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:A.scrollLeft,scrollTop:typeof A.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:A.scrollTop};var H=this._state.withScrollPosition(A);if(this._smoothScrolling.to.scrollLeft===H.scrollLeft&&this._smoothScrolling.to.scrollTop===H.scrollTop)return;var E=this._smoothScrolling.combine(this._state,H,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=E}else{var H=this._state.withScrollPosition(A);this._smoothScrolling=R.start(this._state,H,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!te._smoothScrolling)return;te._smoothScrolling.animationFrameDisposable=null,te._performSmoothScrolling()})},D.prototype._performSmoothScrolling=function(){var A=this;if(!this._smoothScrolling)return;var te=this._smoothScrolling.tick(),H=this._state.withScrollPosition(te);if(this._setState(H),te.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!A._smoothScrolling)return;A._smoothScrolling.animationFrameDisposable=null,A._performSmoothScrolling()})},D.prototype._setState=function(A){var te=this._state;if(te.equals(A))return;this._state=A,this._onScroll.fire(this._state.createScrollEvent(te))},D}(re.a),U=function(){function K(D,A,te){this.scrollLeft=D,this.scrollTop=A,this.isDone=te}return K}();function j(K,D){var A=D-K;return function(te){return K+A*x(te)}}function G(K,D,A){return function(te){return te<A?K(te/A):D((te-A)/(1-A))}}var R=function(){function K(D,A,te,H){this.from=D,this.to=A,this.duration=H,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,A,te){var H=Math.abs(D-A);if(H>2.5*te){var E=void 0,f=void 0;return D<A?(E=D+.75*te,f=A-.75*te):(E=D-.75*te,f=A+.75*te),G(j(D,E),j(f,A),.33)}return j(D,A)},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 A=(D-this._startTime)/this.duration;if(A<1){var te=this.scrollLeft(A),H=this.scrollTop(A);return new U(te,H,!1)}return new U(this.to.scrollLeft,this.to.scrollTop,!0)},K.prototype.combine=function(D,A,te){return K.start(D,A,te)},K.start=function(D,A,te){te=te+10;var H=Date.now()-10;return new K(D,A,H,te)},K}();function _(K){return Math.pow(K,3)}function x(K){return 1-_(1-K)}},R3nR:function(wt,P,o){"use strict";o.d(P,"b",function(){return ne}),o.d(P,"a",function(){return N});var I=o("Cg/j"),re=o("T8No"),ne=Object(I.c)("accessibilityService"),N=new re.d("accessibilityModeEnabled",!1)},R8sh:function(wt,P,o){"use strict";o.d(P,"a",function(){return ne});var I=o("Cg/j"),re="label",ne=Object(I.c)(re)},S3by:function(wt,P,o){"use strict";var I=o("3/fG"),re=o("N0LK"),ne;(function(N){N[N.Ignore=0]="Ignore",N[N.Info=1]="Info",N[N.Warning=2]="Warning",N[N.Error=3]="Error"})(ne||(ne={})),function(N){var k="error",U="warning",j="warn",G="info",R=Object.create(null);R[N.Error]=I.a("sev.error","Error"),R[N.Warning]=I.a("sev.warning","Warning"),R[N.Info]=I.a("sev.info","Info");function _(x){return x?re.n(k,x)?N.Error:re.n(U,x)||re.n(j,x)?N.Warning:re.n(G,x)?N.Info:N.Ignore:N.Ignore}N.fromValue=_}(ne||(ne={})),P.a=ne},Sdnv:function(wt,P,o){"use strict";o.d(P,"a",function(){return I});function I(re,ne,N){return Math.min(Math.max(re,ne),N)}},SvYn:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return o.e(211).then(o.bind(null,"Dsrv"))}})},T8No:function(wt,P,o){"use strict";o.d(P,"a",function(){return N}),o.d(P,"b",function(){return D}),o.d(P,"d",function(){return A}),o.d(P,"c",function(){return te}),o.d(P,"e",function(){return H});var I=o("N0LK"),re=o("Cg/j"),ne=function(){var E=function(p,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},E(p,g)};return function(f,p){E(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),N=function(){function E(){}return E.has=function(f){return U.create(f)},E.equals=function(f,p){return j.create(f,p)},E.regex=function(f,p){return _.create(f,p)},E.not=function(f){return R.create(f)},E.and=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return K.create(f)},E.or=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return D.create(f)},E.deserialize=function(f,p){return p===void 0&&(p=!1),f?this._deserializeOrExpression(f,p):void 0},E._deserializeOrExpression=function(f,p){var g=this,m=f.split("||");return D.create(m.map(function(w){return g._deserializeAndExpression(w,p)}))},E._deserializeAndExpression=function(f,p){var g=this,m=f.split("&&");return K.create(m.map(function(w){return g._deserializeOne(w,p)}))},E._deserializeOne=function(f,p){if(f=f.trim(),f.indexOf("!=")>=0){var g=f.split("!=");return G.create(g[0].trim(),this._deserializeValue(g[1],p))}if(f.indexOf("==")>=0){var g=f.split("==");return j.create(g[0].trim(),this._deserializeValue(g[1],p))}if(f.indexOf("=~")>=0){var g=f.split("=~");return _.create(g[0].trim(),this._deserializeRegexValue(g[1],p))}return/^\!\s*/.test(f)?R.create(f.substr(1).trim()):U.create(f)},E._deserializeValue=function(f,p){if(f=f.trim(),f==="true")return!0;if(f==="false")return!1;var g=/^'([^']*)'$/.exec(f);return g?g[1].trim():f},E._deserializeRegexValue=function(f,p){if(Object(I.x)(f)){if(p)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var g=f.indexOf("/"),m=f.lastIndexOf("/");if(g===m||g<0){if(p)throw new Error("bad regexp-value '"+f+"', missing /-enclosure");return console.warn("bad regexp-value '"+f+"', missing /-enclosure"),null}var w=f.slice(g+1,m),B=f[m+1]==="i"?"i":"";try{return new RegExp(w,B)}catch(z){if(p)throw new Error("bad regexp-value '"+f+"', parse error: "+z);return console.warn("bad regexp-value '"+f+"', parse error: "+z),null}},E}();function k(E,f){var p=E.getType(),g=f.getType();if(p!==g)return p-g;switch(p){case 1:return E.cmp(f);case 2:return E.cmp(f);case 3:return E.cmp(f);case 4:return E.cmp(f);case 6:return E.cmp(f);case 7:return E.cmp(f);case 5:return E.cmp(f);default:throw new Error("Unknown ContextKeyExpr!")}}var U=function(){function E(f){this.key=f}return E.create=function(f){return new E(f)},E.prototype.getType=function(){return 1},E.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:0},E.prototype.equals=function(f){return f instanceof E?this.key===f.key:!1},E.prototype.evaluate=function(f){return!!f.getValue(this.key)},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return R.create(this.key)},E}(),j=function(){function E(f,p){this.key=f,this.value=p}return E.create=function(f,p){return typeof p=="boolean"?p?U.create(f):R.create(f):new E(f,p)},E.prototype.getType=function(){return 3},E.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:this.value<f.value?-1:this.value>f.value?1:0},E.prototype.equals=function(f){return f instanceof E?this.key===f.key&&this.value===f.value:!1},E.prototype.evaluate=function(f){return f.getValue(this.key)==this.value},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return G.create(this.key,this.value)},E}(),G=function(){function E(f,p){this.key=f,this.value=p}return E.create=function(f,p){return typeof p=="boolean"?p?R.create(f):U.create(f):new E(f,p)},E.prototype.getType=function(){return 4},E.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:this.value<f.value?-1:this.value>f.value?1:0},E.prototype.equals=function(f){return f instanceof E?this.key===f.key&&this.value===f.value:!1},E.prototype.evaluate=function(f){return f.getValue(this.key)!=this.value},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return j.create(this.key,this.value)},E}(),R=function(){function E(f){this.key=f}return E.create=function(f){return new E(f)},E.prototype.getType=function(){return 2},E.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:0},E.prototype.equals=function(f){return f instanceof E?this.key===f.key:!1},E.prototype.evaluate=function(f){return!f.getValue(this.key)},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return U.create(this.key)},E}(),_=function(){function E(f,p){this.key=f,this.regexp=p}return E.create=function(f,p){return new E(f,p)},E.prototype.getType=function(){return 6},E.prototype.cmp=function(f){if(this.key<f.key)return-1;if(this.key>f.key)return 1;var p=this.regexp?this.regexp.source:"",g=f.regexp?f.regexp.source:"";return p<g?-1:p>g?1:0},E.prototype.equals=function(f){if(f instanceof E){var p=this.regexp?this.regexp.source:"",g=f.regexp?f.regexp.source:"";return this.key===f.key&&p===g}return!1},E.prototype.evaluate=function(f){var p=f.getValue(this.key);return this.regexp?this.regexp.test(p):!1},E.prototype.keys=function(){return[this.key]},E.prototype.negate=function(){return x.create(this)},E}(),x=function(){function E(f){this._actual=f}return E.create=function(f){return new E(f)},E.prototype.getType=function(){return 7},E.prototype.cmp=function(f){return this._actual.cmp(f._actual)},E.prototype.equals=function(f){return f instanceof E?this._actual.equals(f._actual):!1},E.prototype.evaluate=function(f){return!this._actual.evaluate(f)},E.prototype.keys=function(){return this._actual.keys()},E.prototype.negate=function(){return this._actual},E}(),K=function(){function E(f){this.expr=f}return E.create=function(f){var p=E._normalizeArr(f);return p.length===0?void 0:p.length===1?p[0]:new E(p)},E.prototype.getType=function(){return 5},E.prototype.cmp=function(f){if(this.expr.length<f.expr.length)return-1;if(this.expr.length>f.expr.length)return 1;for(var p=0,g=this.expr.length;p<g;p++){var m=k(this.expr[p],f.expr[p]);if(m!==0)return m}return 0},E.prototype.equals=function(f){if(f instanceof E){if(this.expr.length!==f.expr.length)return!1;for(var p=0,g=this.expr.length;p<g;p++)if(!this.expr[p].equals(f.expr[p]))return!1;return!0}return!1},E.prototype.evaluate=function(f){for(var p=0,g=this.expr.length;p<g;p++)if(!this.expr[p].evaluate(f))return!1;return!0},E._normalizeArr=function(f){var p=[];if(f){for(var g=0,m=f.length;g<m;g++){var w=f[g];if(!w)continue;if(w instanceof E){p=p.concat(w.expr);continue}if(w 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.');p.push(w)}p.sort(k)}return p},E.prototype.keys=function(){for(var f=[],p=0,g=this.expr;p<g.length;p++){var m=g[p];f.push.apply(f,m.keys())}return f},E.prototype.negate=function(){for(var f=[],p=0,g=this.expr;p<g.length;p++){var m=g[p];f.push(m.negate())}return D.create(f)},E}(),D=function(){function E(f){this.expr=f}return E.create=function(f){var p=E._normalizeArr(f);return p.length===0?void 0:p.length===1?p[0]:new E(p)},E.prototype.getType=function(){return 8},E.prototype.equals=function(f){if(f instanceof E){if(this.expr.length!==f.expr.length)return!1;for(var p=0,g=this.expr.length;p<g;p++)if(!this.expr[p].equals(f.expr[p]))return!1;return!0}return!1},E.prototype.evaluate=function(f){for(var p=0,g=this.expr.length;p<g;p++)if(this.expr[p].evaluate(f))return!0;return!1},E._normalizeArr=function(f){var p=[];if(f){for(var g=0,m=f.length;g<m;g++){var w=f[g];if(!w)continue;if(w instanceof E){p=p.concat(w.expr);continue}p.push(w)}p.sort(k)}return p},E.prototype.keys=function(){for(var f=[],p=0,g=this.expr;p<g.length;p++){var m=g[p];f.push.apply(f,m.keys())}return f},E.prototype.negate=function(){for(var f=[],p=0,g=this.expr;p<g.length;p++){var m=g[p];f.push(m.negate())}for(var w=function(Ve){return Ve instanceof E?Ve.expr:[Ve]};f.length>1;){for(var B=f.shift(),z=f.shift(),oe=[],he=0,_e=w(B);he<_e.length;he++)for(var Se=_e[he],q=0,Z=w(z);q<Z.length;q++){var ce=Z[q];oe.push(N.and(Se,ce))}f.unshift(N.or.apply(N,oe))}return f[0]},E}(),A=function(E){ne(f,E);function f(p,g){var m=E.call(this,p)||this;return m._defaultValue=g,m}return f.prototype.bindTo=function(p){return p.createKey(this.key,this._defaultValue)},f.prototype.getValue=function(p){return p.getContextKeyValue(this.key)},f.prototype.toNegated=function(){return N.not(this.key)},f}(U),te=Object(re.c)("contextKeyService"),H="setContext"},TQUy:function(wt,P,o){"use strict";o.d(P,"b",function(){return k}),o.d(P,"a",function(){return U});var I=o("N0LK"),re=o("4bUh"),ne=o("i/Ef"),N={getInitialState:function(){return ne.c},tokenize2:function(R,_,x){return Object(ne.e)(0,R,_,x)}};function k(G,R){return R===void 0&&(R=N),j(G,R||N)}function U(G,R,_,x,K,D,A){for(var te="<div>",H=x,E=0,f=0,p=R.getCount();f<p;f++){var g=R.getEndOffset(f);if(g<=x)continue;for(var m="";H<g&&H<K;H++){var w=G.charCodeAt(H);switch(w){case 9:var B=D-(H+E)%D;for(E+=B-1;B>0;)m+=A?"&#160;":" ",B--;break;case 60:m+="&lt;";break;case 62:m+="&gt;";break;case 38:m+="&amp;";break;case 0:m+="&#00;";break;case 65279:case 8232:m+="\uFFFD";break;case 13:m+="&#8203";break;case 32:m+=A?"&#160;":" ";break;default:m+=String.fromCharCode(w)}}if(te+='<span style="'+R.getInlineStyle(f,_)+'">'+m+"</span>",g>K||H>=K)break}return te+="</div>",te}function j(G,R){for(var _='<div class="monaco-tokenized-source">',x=G.split(/\r\n|\r|\n/),K=R.getInitialState(),D=0,A=x.length;D<A;D++){var te=x[D];D>0&&(_+="<br/>");var H=R.tokenize2(te,K,0);re.a.convertToEndOffset(H.tokens,te.length);for(var E=new re.a(H.tokens,te),f=E.inflate(),p=0,g=0,m=f.getCount();g<m;g++){var w=f.getClassName(g),B=f.getEndOffset(g);_+='<span class="'+w+'">'+I.o(te.substring(p,B))+"</span>",p=B}K=H.endState}return _+="</div>",_}},TT2d:function(wt,P,o){},Tcc1:function(wt,P,o){"use strict";o.d(P,"a",function(){return I}),o.d(P,"b",function(){return re}),o.d(P,"c",function(){return ne});var I=function(){function N(k,U,j){this.offset=k|0,this.type=U,this.language=j}return N.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},N}(),re=function(){function N(k,U){this.tokens=k,this.endState=U}return N}(),ne=function(){function N(k,U){this.tokens=k,this.endState=U}return N}()},UCkY:function(wt,P,o){},URDS:function(wt,P,o){(function(I){/*!
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
*/(function(re,ne){ne()})(this,function(){"use strict";function re(A){var te=this.constructor;return this.then(function(H){return te.resolve(A()).then(function(){return H})},function(H){return te.resolve(A()).then(function(){return te.reject(H)})})}var ne=setTimeout;function N(){}function k(A,te){return function(){A.apply(te,arguments)}}function U(A){if(!(this instanceof U))throw new TypeError("Promises must be constructed via new");if(typeof A!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],K(A,this)}function j(A,te){for(;A._state===3;)A=A._value;if(A._state===0){A._deferreds.push(te);return}A._handled=!0,U._immediateFn(function(){var H=A._state===1?te.onFulfilled:te.onRejected;if(H===null){(A._state===1?G:R)(te.promise,A._value);return}var E;try{E=H(A._value)}catch(f){R(te.promise,f);return}G(te.promise,E)})}function G(A,te){try{if(te===A)throw new TypeError("A promise cannot be resolved with itself.");if(te&&(typeof te=="object"||typeof te=="function")){var H=te.then;if(te instanceof U){A._state=3,A._value=te,_(A);return}else if(typeof H=="function"){K(k(H,te),A);return}}A._state=1,A._value=te,_(A)}catch(E){R(A,E)}}function R(A,te){A._state=2,A._value=te,_(A)}function _(A){A._state===2&&A._deferreds.length===0&&U._immediateFn(function(){A._handled||U._unhandledRejectionFn(A._value)});for(var te=0,H=A._deferreds.length;te<H;te++)j(A,A._deferreds[te]);A._deferreds=null}function x(A,te,H){this.onFulfilled=typeof A=="function"?A:null,this.onRejected=typeof te=="function"?te:null,this.promise=H}function K(A,te){var H=!1;try{A(function(E){if(H)return;H=!0,G(te,E)},function(E){if(H)return;H=!0,R(te,E)})}catch(E){if(H)return;H=!0,R(te,E)}}U.prototype.catch=function(A){return this.then(null,A)},U.prototype.then=function(A,te){var H=new this.constructor(N);return j(this,new x(A,te,H)),H},U.prototype.finally=re,U.all=function(A){return new U(function(te,H){if(!A||typeof A.length=="undefined")throw new TypeError("Promise.all accepts an array");var E=Array.prototype.slice.call(A);if(E.length===0)return te([]);var f=E.length;function p(m,w){try{if(w&&(typeof w=="object"||typeof w=="function")){var B=w.then;if(typeof B=="function"){B.call(w,function(z){p(m,z)},H);return}}E[m]=w,--f===0&&te(E)}catch(z){H(z)}}for(var g=0;g<E.length;g++)p(g,E[g])})},U.resolve=function(A){return A&&typeof A=="object"&&A.constructor===U?A:new U(function(te){te(A)})},U.reject=function(A){return new U(function(te,H){H(A)})},U.race=function(A){return new U(function(te,H){for(var E=0,f=A.length;E<f;E++)A[E].then(te,H)})},U._immediateFn=typeof setImmediate=="function"&&function(A){setImmediate(A)}||function(A){ne(A,0)},U._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 I!="undefined")return I;throw new Error("unable to locate global object")}();"Promise"in D?D.Promise.prototype.finally||(D.Promise.prototype.finally=re):D.Promise=U})}).call(this,o("yLpj"))},Uzvx:function(wt,P,o){"use strict";o.d(P,"b",function(){return re}),o.d(P,"a",function(){return ne});var I=o("Cg/j"),re=Object(I.c)("contextViewService"),ne=Object(I.c)("contextMenuService")},VPJY:function(wt,P,o){},Vhoy:function(wt,P,o){"use strict";o.d(P,"a",function(){return re}),o.d(P,"b",function(){return N}),o.d(P,"c",function(){return U});var I=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function re(j){return j.replace(I,function(G,R){return R?G:"\\"+G})}var ne=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function N(j){return j.replace(ne,function(G){return"\\"+G})}var k=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function U(j){return j.replace(k,function(G,R,_,x,K){return R?"$("+_+")":'<span class="codicon codicon-'+x+(K?" codicon-animation-"+K:"")+'"></span>'})}},Vtyv:function(wt,P,o){},VvMK:function(wt,P,o){},Vxe3:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("codeEditorService")},W9cx:function(wt,P,o){"use strict";o.d(P,"a",function(){return j}),o.d(P,"b",function(){return G}),o.d(P,"c",function(){return R});var I=o("bY76"),re=o("Cg/j"),ne=o("pmY6"),N=o("N0LK"),k=function(_,x,K,D){function A(te){return te instanceof K?te:new K(function(H){H(te)})}return new(K||(K=Promise))(function(te,H){function E(g){try{p(D.next(g))}catch(m){H(m)}}function f(g){try{p(D.throw(g))}catch(m){H(m)}}function p(g){g.done?te(g.value):A(g.value).then(E,f)}p((D=D.apply(_,x||[])).next())})},U=function(_,x){var K={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]},D,A,te,H;return H={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function E(p){return function(g){return f([p,g])}}function f(p){if(D)throw new TypeError("Generator is already executing.");for(;K;)try{if(D=1,A&&(te=p[0]&2?A.return:p[0]?A.throw||((te=A.return)&&te.call(A),0):A.next)&&!(te=te.call(A,p[1])).done)return te;(A=0,te)&&(p=[p[0]&2,te.value]);switch(p[0]){case 0:case 1:te=p;break;case 4:return K.label++,{value:p[1],done:!1};case 5:K.label++,A=p[1],p=[0];continue;case 7:p=K.ops.pop(),K.trys.pop();continue;default:if(!(te=K.trys,te=te.length>0&&te[te.length-1])&&(p[0]===6||p[0]===2)){K=0;continue}if(p[0]===3&&(!te||p[1]>te[0]&&p[1]<te[3])){K.label=p[1];break}if(p[0]===6&&K.label<te[1]){K.label=te[1],te=p;break}if(te&&K.label<te[2]){K.label=te[2],K.ops.push(p);break}te[2]&&K.ops.pop(),K.trys.pop();continue}p=x.call(_,K)}catch(g){p=[6,g],A=0}finally{D=te=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},j=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 k(this,void 0,void 0,function(){return U(this,function(x){return[2,!1]})})},resolveExternalUri:function(x){return k(this,void 0,void 0,function(){return U(this,function(K){return[2,{resolved:x,dispose:function(){}}]})})}});function R(_,x){return I.a.isUri(_)?Object(N.n)(_.scheme,x):Object(N.N)(_,x+":")}},WBhO:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("modeService")},WqXY:function(wt,P,o){"use strict";o.d(P,"c",function(){return te}),o.d(P,"d",function(){return H}),o.d(P,"b",function(){return E}),o.d(P,"a",function(){return p});var I=o("yEoX"),re=o.n(I),ne=o("MNsG"),N=o("3/fG"),k=o("pmY6"),U=o("8HAY"),j=o("EffR"),G=o("746U"),R=o("pg8w"),_=o("uDWl"),x=o("MI8n"),K=o("ZQ78"),D=o("D3Dy"),A=function(){var g=function(w,B){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var he in oe)oe.hasOwnProperty(he)&&(z[he]=oe[he])},g(w,B)};return function(m,w){g(m,w);function B(){this.constructor=m}m.prototype=w===null?Object.create(w):(B.prototype=w.prototype,new B)}}(),te=function(g){A(m,g);function m(w,B,z){var oe=g.call(this)||this;return oe.options=z,oe._context=w||oe,oe._action=B,B instanceof U.a&&oe._register(B.onDidChange(function(he){if(!oe.element)return;oe.handleActionChangeEvent(he)})),oe}return m.prototype.handleActionChangeEvent=function(w){w.enabled!==void 0&&this.updateEnabled(),w.checked!==void 0&&this.updateChecked(),w.class!==void 0&&this.updateClass(),w.label!==void 0&&(this.updateLabel(),this.updateTooltip()),w.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(m.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new U.b)),this._actionRunner},set:function(B){this._actionRunner=B},enumerable:!0,configurable:!0}),m.prototype.getAction=function(){return this._action},m.prototype.isEnabled=function(){return this._action.enabled},m.prototype.setActionContext=function(w){this._context=w},m.prototype.render=function(w){var B=this,z=this.element=w;this._register(R.b.addTarget(w));var oe=this.options&&this.options.draggable;oe&&(w.draggable=!0,D.h&&this._register(j.i(w,j.c.DRAG_START,function(he){var _e;return(_e=he.dataTransfer)===null||_e===void 0?void 0:_e.setData(K.a.TEXT,B._action.label)}))),this._register(j.i(z,R.a.Tap,function(he){return B.onClick(he)})),this._register(j.i(z,j.c.MOUSE_DOWN,function(he){oe||j.b.stop(he,!0),B._action.enabled&&he.button===0&&j.e(z,"active")})),this._register(j.i(z,j.c.CLICK,function(he){j.b.stop(he,!0),B.options&&B.options.isMenu?B.onClick(he):ne.i(function(){return B.onClick(he)})})),this._register(j.i(z,j.c.DBLCLICK,function(he){j.b.stop(he,!0)})),[j.c.MOUSE_UP,j.c.MOUSE_OUT].forEach(function(he){B._register(j.i(z,he,function(_e){j.b.stop(_e),j.O(z,"active")}))})},m.prototype.onClick=function(w){j.b.stop(w,!0);var B;G.l(this._context)?B=w:(B=this._context,G.i(B)&&(B.event=w)),this.actionRunner.run(this._action,B)},m.prototype.focus=function(){this.element&&(this.element.focus(),j.e(this.element,"focused"))},m.prototype.blur=function(){this.element&&(this.element.blur(),j.O(this.element,"focused"))},m.prototype.updateEnabled=function(){},m.prototype.updateLabel=function(){},m.prototype.updateTooltip=function(){},m.prototype.updateClass=function(){},m.prototype.updateChecked=function(){},m.prototype.dispose=function(){this.element&&(j.Q(this.element),this.element=void 0),g.prototype.dispose.call(this)},m}(k.a),H=function(g){A(m,g);function m(w){var B=g.call(this,m.ID,w,w?"separator text":"separator")||this;return B.checked=!1,B.enabled=!1,B}return m.ID="vs.actions.separator",m}(U.a),E=function(g){A(m,g);function m(w,B,z){z===void 0&&(z={});var oe=g.call(this,w,B,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 m.prototype.render=function(w){g.prototype.render.call(this,w),this.element&&(this.label=j.p(this.element,j.a("a.action-label"))),this.label&&(this._action.id===H.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&&(j.p(this.element,j.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},m.prototype.focus=function(){g.prototype.focus.call(this),this.label&&this.label.focus()},m.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},m.prototype.updateTooltip=function(){var w=null;this.getAction().tooltip?w=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(w=this.getAction().label,this.options.keybinding&&(w=N.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",w,this.options.keybinding))),w&&this.label&&(this.label.title=w)},m.prototype.updateClass=function(){this.cssClass&&this.label&&j.P(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(j.e(this.label,"codicon"),this.cssClass&&j.f(this.label,this.cssClass)),this.updateEnabled()):this.label&&j.O(this.label,"codicon")},m.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),j.O(this.label,"disabled"),this.label.tabIndex=0),this.element&&j.O(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),j.e(this.label,"disabled"),j.R(this.label)),this.element&&j.e(this.element,"disabled"))},m.prototype.updateChecked=function(){this.label&&(this.getAction().checked?j.e(this.label,"checked"):j.O(this.label,"checked"))},m}(te),f={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},p=function(g){A(m,g);function m(w,B){B===void 0&&(B=f);var z=g.call(this)||this;z._onDidBlur=z._register(new x.a),z.onDidBlur=z._onDidBlur.event,z._onDidCancel=z._register(new x.a),z.onDidCancel=z._onDidCancel.event,z._onDidRun=z._register(new x.a),z.onDidRun=z._onDidRun.event,z._onDidBeforeRun=z._register(new x.a),z.onDidBeforeRun=z._onDidBeforeRun.event,z.options=B,z._context=B.context,z.options.triggerKeys||(z.options.triggerKeys=f.triggerKeys),z.options.actionRunner?z._actionRunner=z.options.actionRunner:(z._actionRunner=new U.b,z._register(z._actionRunner)),z._register(z._actionRunner.onDidRun(function(_e){return z._onDidRun.fire(_e)})),z._register(z._actionRunner.onDidBeforeRun(function(_e){return z._onDidBeforeRun.fire(_e)})),z.viewItems=[],z.focusedItem=void 0,z.domNode=document.createElement("div"),z.domNode.className="monaco-action-bar",B.animated!==!1&&j.e(z.domNode,"animated");var oe,he;switch(z.options.orientation){case 0:oe=15,he=17;break;case 1:oe=17,he=15,z.domNode.className+=" reverse";break;case 2:oe=16,he=18,z.domNode.className+=" vertical";break;case 3:oe=18,he=16,z.domNode.className+=" vertical reverse";break}return z._register(j.i(z.domNode,j.c.KEY_DOWN,function(_e){var Se=new _.a(_e),q=!0;Se.equals(oe)?z.focusPrevious():Se.equals(he)?z.focusNext():Se.equals(9)?z.cancel():z.isTriggerKeyEvent(Se)?z.options.triggerKeys&&z.options.triggerKeys.keyDown&&z.doTrigger(Se):q=!1,q&&(Se.preventDefault(),Se.stopPropagation())})),z._register(j.i(z.domNode,j.c.KEY_UP,function(_e){var Se=new _.a(_e);z.isTriggerKeyEvent(Se)?(z.options.triggerKeys&&!z.options.triggerKeys.keyDown&&z.doTrigger(Se),Se.preventDefault(),Se.stopPropagation()):(Se.equals(2)||Se.equals(1024|2))&&z.updateFocusedItem()})),z.focusTracker=z._register(j.Y(z.domNode)),z._register(z.focusTracker.onDidBlur(function(){(document.activeElement===z.domNode||!j.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),w.appendChild(z.domNode),z}return m.prototype.isTriggerKeyEvent=function(w){var B=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(z){B=B||w.equals(z)}),B},m.prototype.updateFocusedItem=function(){for(var w=0;w<this.actionsList.children.length;w++){var B=this.actionsList.children[w];if(j.J(document.activeElement,B)){this.focusedItem=w;break}}},Object.defineProperty(m.prototype,"context",{get:function(){return this._context},set:function(B){this._context=B,this.viewItems.forEach(function(z){return z.setActionContext(B)})},enumerable:!0,configurable:!0}),m.prototype.getContainer=function(){return this.domNode},m.prototype.push=function(w,B){var z=this;B===void 0&&(B={});var oe=Array.isArray(w)?w:[w],he=G.h(B.index)?B.index:null;oe.forEach(function(_e){var Se=document.createElement("li");Se.className="action-item",Se.setAttribute("role","presentation"),z._register(j.i(Se,j.c.CONTEXT_MENU,function(Z){Z.preventDefault(),Z.stopPropagation()}));var q;z.options.actionViewItemProvider&&(q=z.options.actionViewItemProvider(_e)),q||(q=new E(z.context,_e,B)),q.actionRunner=z._actionRunner,q.setActionContext(z.context),q.render(Se),he===null||he<0||he>=z.actionsList.children.length?(z.actionsList.appendChild(Se),z.viewItems.push(q)):(z.actionsList.insertBefore(Se,z.actionsList.children[he]),z.viewItems.splice(he,0,q),he++)})},m.prototype.clear=function(){this.viewItems=Object(k.f)(this.viewItems),j.s(this.actionsList)},m.prototype.isEmpty=function(){return this.viewItems.length===0},m.prototype.focus=function(w){var B=!1,z=void 0;w===void 0?B=!0:typeof w=="number"?z=w:typeof w=="boolean"&&(B=w),B&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(z!==void 0&&(this.focusedItem=z),this.updateFocus())},m.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var w=this.focusedItem,B;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,B=this.viewItems[this.focusedItem];while(this.focusedItem!==w&&!B.isEnabled());this.focusedItem===w&&!B.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},m.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var w=this.focusedItem,B;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),B=this.viewItems[this.focusedItem];while(this.focusedItem!==w&&!B.isEnabled());this.focusedItem===w&&!B.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},m.prototype.updateFocus=function(w,B){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:B});for(var z=0;z<this.viewItems.length;z++){var oe=this.viewItems[z],he=oe;z===this.focusedItem?G.g(he.isEnabled)&&(he.isEnabled()&&G.g(he.focus)?he.focus(w):this.actionsList.focus({preventScroll:B})):G.g(he.blur)&&he.blur()}},m.prototype.doTrigger=function(w){if(typeof this.focusedItem=="undefined")return;var B=this.viewItems[this.focusedItem];if(B instanceof te){var z=B._context===null||B._context===void 0?w:B._context;this.run(B._action,z)}},m.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},m.prototype.run=function(w,B){return this._actionRunner.run(w,B)},m.prototype.dispose=function(){Object(k.f)(this.viewItems),this.viewItems=[],j.Q(this.getContainer()),g.prototype.dispose.call(this)},m}(k.a)},"X+cX":function(wt,P,o){"use strict";o.d(P,"i",function(){return N}),o.d(P,"f",function(){return k}),o.d(P,"j",function(){return U}),o.d(P,"a",function(){return j}),o.d(P,"k",function(){return G}),o.d(P,"g",function(){return R}),o.d(P,"h",function(){return _}),o.d(P,"e",function(){return x}),o.d(P,"c",function(){return K}),o.d(P,"d",function(){return D}),o.d(P,"b",function(){return te});var I=o("JQT/"),re=o("/cxE"),ne=o("pmY6");function N(H){return H&&typeof H.then=="function"}function k(H){var E=new I.b,f=H(E.token),p=new Promise(function(g,m){E.token.onCancellationRequested(function(){m(re.a())}),Promise.resolve(f).then(function(w){E.dispose(),g(w)},function(w){E.dispose(),m(w)})});return new(function(){function g(){}return g.prototype.cancel=function(){E.cancel()},g.prototype.then=function(m,w){return p.then(m,w)},g.prototype.catch=function(m){return this.then(void 0,m)},g.prototype.finally=function(m){return p.finally(m)},g}())}function U(H,E,f){return Promise.race([H,new Promise(function(p){return E.onCancellationRequested(function(){return p(f)})})])}var j=function(){function H(E){this.defaultDelay=E,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return H.prototype.trigger=function(E,f){var p=this;return f===void 0&&(f=this.defaultDelay),this.task=E,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(g,m){p.doResolve=g,p.doReject=m}).then(function(){if(p.completionPromise=null,p.doResolve=null,p.task){var g=p.task;return p.task=null,g()}return})),this.timeout=setTimeout(function(){p.timeout=null,p.doResolve&&p.doResolve(null)},f),this.completionPromise},H.prototype.isTriggered=function(){return this.timeout!==null},H.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(re.a()),this.completionPromise=null)},H.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},H.prototype.dispose=function(){this.cancelTimeout()},H}();function G(H,E){return E?new Promise(function(f,p){var g=setTimeout(f,H);E.onCancellationRequested(function(){clearTimeout(g),p(re.a())})}):k(function(f){return G(H,f)})}function R(H,E){E===void 0&&(E=0);var f=setTimeout(H,E);return Object(ne.h)(function(){return clearTimeout(f)})}function _(H,E,f){E===void 0&&(E=function(B){return!!B}),f===void 0&&(f=null);var p=0,g=H.length,m=function w(){if(p>=g)return Promise.resolve(f);var B=H[p++],z=Promise.resolve(B());return z.then(function(oe){return E(oe)?Promise.resolve(oe):w()})};return m()}var x=function(){function H(E,f){this._token=-1,typeof E=="function"&&typeof f=="number"&&this.setIfNotSet(E,f)}return H.prototype.dispose=function(){this.cancel()},H.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},H.prototype.cancelAndSet=function(E,f){var p=this;this.cancel(),this._token=setTimeout(function(){p._token=-1,E()},f)},H.prototype.setIfNotSet=function(E,f){var p=this;if(this._token!==-1)return;this._token=setTimeout(function(){p._token=-1,E()},f)},H}(),K=function(){function H(){this._token=-1}return H.prototype.dispose=function(){this.cancel()},H.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},H.prototype.cancelAndSet=function(E,f){this.cancel(),this._token=setInterval(function(){E()},f)},H}(),D=function(){function H(E,f){this.timeoutToken=-1,this.runner=E,this.timeout=f,this.timeoutHandler=this.onTimeout.bind(this)}return H.prototype.dispose=function(){this.cancel(),this.runner=null},H.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},H.prototype.schedule=function(E){E===void 0&&(E=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,E)},H.prototype.isScheduled=function(){return this.timeoutToken!==-1},H.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},H.prototype.doRun=function(){this.runner&&this.runner()},H}(),A;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var H=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});A=function(f){var p=setTimeout(function(){return f(H)}),g=!1;return{dispose:function(){if(g)return;g=!0,clearTimeout(p)}}}}else A=function(f,p){var g=requestIdleCallback(f,typeof p=="number"?{timeout:p}:void 0),m=!1;return{dispose:function(){if(m)return;m=!0,cancelIdleCallback(g)}}}})();var te=function(){function H(E){var f=this;this._didRun=!1,this._executor=function(){try{f._value=E()}catch(p){f._error=p}finally{f._didRun=!0}},this._handle=A(function(){return f._executor()})}return H.prototype.dispose=function(){this._handle.dispose()},H.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},H}()},XNtB:function(wt,P,o){},XQgg:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return o.e(243).then(o.bind(null,"/0xJ"))}})},XSiN:function(wt,P,o){"use strict";o.d(P,"a",function(){return k}),o.d(P,"b",function(){return j});var I=o("D3Dy"),re=o("51f4"),ne=o("MNsG"),N=function(){var G=function(_,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(_,x)};return function(R,_){G(R,_);function x(){this.constructor=R}R.prototype=_===null?Object.create(_):(x.prototype=_.prototype,new x)}}(),k=function(){function G(R){this.timestamp=Date.now(),this.browserEvent=R,this.leftButton=R.button===0,this.middleButton=R.button===1,this.rightButton=R.button===2,this.buttons=R.buttons,this.target=R.target,this.detail=R.detail||1,R.type==="dblclick"&&(this.detail=2),this.ctrlKey=R.ctrlKey,this.shiftKey=R.shiftKey,this.altKey=R.altKey,this.metaKey=R.metaKey,typeof R.pageX=="number"?(this.posx=R.pageX,this.posy=R.pageY):(this.posx=R.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=R.clientY+document.body.scrollTop+document.documentElement.scrollTop);var _=re.a.getPositionOfChildWindowRelativeToAncestorWindow(self,R.view);this.posx-=_.left,this.posy-=_.top}return G.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},G.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},G}(),U=function(G){N(R,G);function R(_){var x=G.call(this,_)||this;return x.dataTransfer=_.dataTransfer,x}return R}(k),j=function(){function G(R,_,x){if(_===void 0&&(_=0),x===void 0&&(x=0),this.browserEvent=R||null,this.target=R?R.target||R.targetNode||R.srcElement:null,this.deltaY=x,this.deltaX=_,R){var K=R,D=R;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(R.type==="wheel"){var A=R;A.deltaMode===A.DOM_DELTA_LINE?this.deltaY=-R.deltaY:this.deltaY=-R.deltaY/40}if(typeof K.wheelDeltaX!="undefined")I.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=-R.detail/3;else if(R.type==="wheel"){var A=R;A.deltaMode===A.DOM_DELTA_LINE?this.deltaX=-R.deltaX:this.deltaX=-R.deltaX/40}this.deltaY===0&&this.deltaX===0&&R.wheelDelta&&(this.deltaY=R.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(wt,P,o){},XXUj:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("telemetryService")},Yr1X:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("MI8n"),re=new(function(){function ne(){this._zoomLevel=0,this._onDidChangeZoomLevel=new I.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return ne.prototype.getZoomLevel=function(){return this._zoomLevel},ne.prototype.setZoomLevel=function(N){if(N=Math.min(Math.max(-5,N),20),this._zoomLevel===N)return;this._zoomLevel=N,this._onDidChangeZoomLevel.fire(this._zoomLevel)},ne}())},ZCR3:function(wt,P,o){"use strict";o.d(P,"a",function(){return ne});var I=0;function re(){var N="$memoize"+I++,k=void 0,U=function(G,R,_){var x=null,K=null;if(typeof _.value=="function"?(x="value",K=_.value,K.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof _.get=="function"&&(x="get",K=_.get),!K)throw new Error("not supported");var D=N+":"+R;_[x]=function(){for(var A=[],te=0;te<arguments.length;te++)A[te]=arguments[te];return k=this,this.hasOwnProperty(D)||Object.defineProperty(this,D,{configurable:!0,enumerable:!1,writable:!0,value:K.apply(this,A)}),this[D]}};return U.clear=function(){if(typeof k=="undefined")return;Object.getOwnPropertyNames(k).forEach(function(j){j.indexOf(N)===0&&delete k[j]})},U}function ne(N,k,U){return re()(N,k,U)}},ZQ78:function(wt,P,o){"use strict";o.d(P,"a",function(){return I}),o.d(P,"b",function(){return re}),o.d(P,"c",function(){return ne});var I={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},re=function(){function N(k){this.data=k}return N.prototype.update=function(){},N.prototype.getData=function(){return this.data},N}(),ne={CurrentDragAndDropData:void 0}},"ZkA/":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return o.e(223).then(o.bind(null,"DTUS"))}})},ZlPH:function(wt,P,o){"use strict";o.d(P,"a",function(){return re}),o.d(P,"b",function(){return ne});var I=o("EffR"),re=function(){function N(k){this.domNode=k,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none"}return N.prototype.setMaxWidth=function(k){if(this._maxWidth===k)return;this._maxWidth=k,this.domNode.style.maxWidth=this._maxWidth+"px"},N.prototype.setWidth=function(k){if(this._width===k)return;this._width=k,this.domNode.style.width=this._width+"px"},N.prototype.setHeight=function(k){if(this._height===k)return;this._height=k,this.domNode.style.height=this._height+"px"},N.prototype.setTop=function(k){if(this._top===k)return;this._top=k,this.domNode.style.top=this._top+"px"},N.prototype.unsetTop=function(){if(this._top===-1)return;this._top=-1,this.domNode.style.top=""},N.prototype.setLeft=function(k){if(this._left===k)return;this._left=k,this.domNode.style.left=this._left+"px"},N.prototype.setBottom=function(k){if(this._bottom===k)return;this._bottom=k,this.domNode.style.bottom=this._bottom+"px"},N.prototype.setRight=function(k){if(this._right===k)return;this._right=k,this.domNode.style.right=this._right+"px"},N.prototype.setFontFamily=function(k){if(this._fontFamily===k)return;this._fontFamily=k,this.domNode.style.fontFamily=this._fontFamily},N.prototype.setFontWeight=function(k){if(this._fontWeight===k)return;this._fontWeight=k,this.domNode.style.fontWeight=this._fontWeight},N.prototype.setFontSize=function(k){if(this._fontSize===k)return;this._fontSize=k,this.domNode.style.fontSize=this._fontSize+"px"},N.prototype.setFontFeatureSettings=function(k){if(this._fontFeatureSettings===k)return;this._fontFeatureSettings=k,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings},N.prototype.setLineHeight=function(k){if(this._lineHeight===k)return;this._lineHeight=k,this.domNode.style.lineHeight=this._lineHeight+"px"},N.prototype.setLetterSpacing=function(k){if(this._letterSpacing===k)return;this._letterSpacing=k,this.domNode.style.letterSpacing=this._letterSpacing+"px"},N.prototype.setClassName=function(k){if(this._className===k)return;this._className=k,this.domNode.className=this._className},N.prototype.toggleClassName=function(k,U){I.X(this.domNode,k,U),this._className=this.domNode.className},N.prototype.setDisplay=function(k){if(this._display===k)return;this._display=k,this.domNode.style.display=this._display},N.prototype.setPosition=function(k){if(this._position===k)return;this._position=k,this.domNode.style.position=this._position},N.prototype.setVisibility=function(k){if(this._visibility===k)return;this._visibility=k,this.domNode.style.visibility=this._visibility},N.prototype.setBackgroundColor=function(k){if(this._backgroundColor===k)return;this._backgroundColor=k,this.domNode.style.backgroundColor=this._backgroundColor},N.prototype.setLayerHinting=function(k){if(this._layerHint===k)return;this._layerHint=k,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":""},N.prototype.setContain=function(k){if(this._contain===k)return;this._contain=k,this.domNode.style.contain=this._contain},N.prototype.setAttribute=function(k,U){this.domNode.setAttribute(k,U)},N.prototype.removeAttribute=function(k){this.domNode.removeAttribute(k)},N.prototype.appendChild=function(k){this.domNode.appendChild(k.domNode)},N.prototype.removeChild=function(k){this.domNode.removeChild(k.domNode)},N}();function ne(N){return new re(N)}},ZvGG:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return o.e(221).then(o.bind(null,"yUwd"))}})},ajgA:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return o.e(238).then(o.bind(null,"Fzfo"))}})},aokT:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("cGHE"),re=function(){function ne(N,k,U,j){N>U||N===U&&k>j?(this.startLineNumber=U,this.startColumn=j,this.endLineNumber=N,this.endColumn=k):(this.startLineNumber=N,this.startColumn=k,this.endLineNumber=U,this.endColumn=j)}return ne.prototype.isEmpty=function(){return ne.isEmpty(this)},ne.isEmpty=function(N){return N.startLineNumber===N.endLineNumber&&N.startColumn===N.endColumn},ne.prototype.containsPosition=function(N){return ne.containsPosition(this,N)},ne.containsPosition=function(N,k){return k.lineNumber<N.startLineNumber||k.lineNumber>N.endLineNumber||k.lineNumber===N.startLineNumber&&k.column<N.startColumn?!1:!(k.lineNumber===N.endLineNumber&&k.column>N.endColumn)},ne.prototype.containsRange=function(N){return ne.containsRange(this,N)},ne.containsRange=function(N,k){return k.startLineNumber<N.startLineNumber||k.endLineNumber<N.startLineNumber||(k.startLineNumber>N.endLineNumber||k.endLineNumber>N.endLineNumber||k.startLineNumber===N.startLineNumber&&k.startColumn<N.startColumn)?!1:!(k.endLineNumber===N.endLineNumber&&k.endColumn>N.endColumn)},ne.prototype.strictContainsRange=function(N){return ne.strictContainsRange(this,N)},ne.strictContainsRange=function(N,k){return k.startLineNumber<N.startLineNumber||k.endLineNumber<N.startLineNumber||(k.startLineNumber>N.endLineNumber||k.endLineNumber>N.endLineNumber||k.startLineNumber===N.startLineNumber&&k.startColumn<=N.startColumn)?!1:!(k.endLineNumber===N.endLineNumber&&k.endColumn>=N.endColumn)},ne.prototype.plusRange=function(N){return ne.plusRange(this,N)},ne.plusRange=function(N,k){var U,j,G,R;return k.startLineNumber<N.startLineNumber?(U=k.startLineNumber,j=k.startColumn):k.startLineNumber===N.startLineNumber?(U=k.startLineNumber,j=Math.min(k.startColumn,N.startColumn)):(U=N.startLineNumber,j=N.startColumn),k.endLineNumber>N.endLineNumber?(G=k.endLineNumber,R=k.endColumn):k.endLineNumber===N.endLineNumber?(G=k.endLineNumber,R=Math.max(k.endColumn,N.endColumn)):(G=N.endLineNumber,R=N.endColumn),new ne(U,j,G,R)},ne.prototype.intersectRanges=function(N){return ne.intersectRanges(this,N)},ne.intersectRanges=function(N,k){var U=N.startLineNumber,j=N.startColumn,G=N.endLineNumber,R=N.endColumn,_=k.startLineNumber,x=k.startColumn,K=k.endLineNumber,D=k.endColumn;return U<_?(U=_,j=x):U===_&&(j=Math.max(j,x)),G>K?(G=K,R=D):G===K&&(R=Math.min(R,D)),U>G||U===G&&j>R?null:new ne(U,j,G,R)},ne.prototype.equalsRange=function(N){return ne.equalsRange(this,N)},ne.equalsRange=function(N,k){return!!N&&!!k&&N.startLineNumber===k.startLineNumber&&N.startColumn===k.startColumn&&N.endLineNumber===k.endLineNumber&&N.endColumn===k.endColumn},ne.prototype.getEndPosition=function(){return new I.a(this.endLineNumber,this.endColumn)},ne.prototype.getStartPosition=function(){return new I.a(this.startLineNumber,this.startColumn)},ne.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},ne.prototype.setEndPosition=function(N,k){return new ne(this.startLineNumber,this.startColumn,N,k)},ne.prototype.setStartPosition=function(N,k){return new ne(N,k,this.endLineNumber,this.endColumn)},ne.prototype.collapseToStart=function(){return ne.collapseToStart(this)},ne.collapseToStart=function(N){return new ne(N.startLineNumber,N.startColumn,N.startLineNumber,N.startColumn)},ne.fromPositions=function(N,k){return k===void 0&&(k=N),new ne(N.lineNumber,N.column,k.lineNumber,k.column)},ne.lift=function(N){return N?new ne(N.startLineNumber,N.startColumn,N.endLineNumber,N.endColumn):null},ne.isIRange=function(N){return N&&typeof N.startLineNumber=="number"&&typeof N.startColumn=="number"&&typeof N.endLineNumber=="number"&&typeof N.endColumn=="number"},ne.areIntersectingOrTouching=function(N,k){return N.endLineNumber<k.startLineNumber||N.endLineNumber===k.startLineNumber&&N.endColumn<k.startColumn?!1:!(k.endLineNumber<N.startLineNumber||k.endLineNumber===N.startLineNumber&&k.endColumn<N.startColumn)},ne.areIntersecting=function(N,k){return N.endLineNumber<k.startLineNumber||N.endLineNumber===k.startLineNumber&&N.endColumn<=k.startColumn?!1:!(k.endLineNumber<N.startLineNumber||k.endLineNumber===N.startLineNumber&&k.endColumn<=N.startColumn)},ne.compareRangesUsingStarts=function(N,k){if(N&&k){var U=N.startLineNumber|0,j=k.startLineNumber|0;if(U===j){var G=N.startColumn|0,R=k.startColumn|0;if(G===R){var _=N.endLineNumber|0,x=k.endLineNumber|0;if(_===x){var K=N.endColumn|0,D=k.endColumn|0;return K-D}return _-x}return G-R}return U-j}var A=N?1:0,te=k?1:0;return A-te},ne.compareRangesUsingEnds=function(N,k){return N.endLineNumber===k.endLineNumber?N.endColumn===k.endColumn?N.startLineNumber===k.startLineNumber?N.startColumn-k.startColumn:N.startLineNumber-k.startLineNumber:N.endColumn-k.endColumn:N.endLineNumber-k.endLineNumber},ne.spansMultipleLines=function(N){return N.endLineNumber>N.startLineNumber},ne}()},bY76:function(wt,P,o){"use strict";o.d(P,"a",function(){return D});var I=o("MNsG"),re=function(){var z=function(he,_e){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,q){Se.__proto__=q}||function(Se,q){for(var Z in q)q.hasOwnProperty(Z)&&(Se[Z]=q[Z])},z(he,_e)};return function(oe,he){z(oe,he);function _e(){this.constructor=oe}oe.prototype=he===null?Object.create(he):(_e.prototype=he.prototype,new _e)}}(),ne,N=/^\w[\w\d+.-]*$/,k=/^\//,U=/^\/\//;function j(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&&!N.test(z.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(z.path){if(z.authority){if(!k.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(U.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 R(z,oe){switch(z){case"https":case"http":case"file":oe?oe[0]!==x&&(oe=x+oe):oe=x;break}return oe}var _="",x="/",K=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,D=function(){function z(oe,he,_e,Se,q,Z){Z===void 0&&(Z=!1),typeof oe=="object"?(this.scheme=oe.scheme||_,this.authority=oe.authority||_,this.path=oe.path||_,this.query=oe.query||_,this.fragment=oe.fragment||_):(this.scheme=G(oe,Z),this.authority=he||_,this.path=R(this.scheme,_e||_),this.query=Se||_,this.fragment=q||_,j(this,Z))}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 p(this)},enumerable:!0,configurable:!0}),z.prototype.with=function(oe){if(!oe)return this;var he=oe.scheme,_e=oe.authority,Se=oe.path,q=oe.query,Z=oe.fragment;return he===void 0?he=this.scheme:he===null&&(he=_),_e===void 0?_e=this.authority:_e===null&&(_e=_),Se===void 0?Se=this.path:Se===null&&(Se=_),q===void 0?q=this.query:q===null&&(q=_),Z===void 0?Z=this.fragment:Z===null&&(Z=_),he===this.scheme&&_e===this.authority&&Se===this.path&&q===this.query&&Z===this.fragment?this:new te(he,_e,Se,q,Z)},z.parse=function(oe,he){he===void 0&&(he=!1);var _e=K.exec(oe);return _e?new te(_e[2]||_,B(_e[4]||_),B(_e[5]||_),B(_e[7]||_),B(_e[9]||_),he):new te(_,_,_,_,_)},z.file=function(oe){var he=_;if(I.h&&(oe=oe.replace(/\\/g,x)),oe[0]===x&&oe[1]===x){var _e=oe.indexOf(x,2);_e===-1?(he=oe.substring(2),oe=x):(he=oe.substring(2,_e),oe=oe.substring(_e)||x)}return new te("file",he,oe,_,_)},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),g(this,oe)},z.prototype.toJSON=function(){return this},z.revive=function(oe){if(oe){if(oe instanceof z)return oe;var he=new te(oe);return he._formatted=oe.external,he._fsPath=oe._sep===A?oe.fsPath:null,he}else return oe},z}(),A=I.h?1:void 0,te=function(z){re(oe,z);function oe(){var he=z!==null&&z.apply(this,arguments)||this;return he._formatted=null,he._fsPath=null,he}return Object.defineProperty(oe.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=p(this)),this._fsPath},enumerable:!0,configurable:!0}),oe.prototype.toString=function(he){return he===void 0&&(he=!1),he?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)},oe.prototype.toJSON=function(){var he={$mid:1};return this._fsPath&&(he.fsPath=this._fsPath,he._sep=A),this._formatted&&(he.external=this._formatted),this.path&&(he.path=this.path),this.scheme&&(he.scheme=this.scheme),this.authority&&(he.authority=this.authority),this.query&&(he.query=this.query),this.fragment&&(he.fragment=this.fragment),he},oe}(D),H=(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 E(z,oe){for(var he=void 0,_e=-1,Se=0;Se<z.length;Se++){var q=z.charCodeAt(Se);if(q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===45||q===46||q===95||q===126||oe&&q===47)_e!==-1&&(he+=encodeURIComponent(z.substring(_e,Se)),_e=-1),he!==void 0&&(he+=z.charAt(Se));else{he===void 0&&(he=z.substr(0,Se));var Z=H[q];Z!==void 0?(_e!==-1&&(he+=encodeURIComponent(z.substring(_e,Se)),_e=-1),he+=Z):_e===-1&&(_e=Se)}}return _e!==-1&&(he+=encodeURIComponent(z.substring(_e))),he!==void 0?he:z}function f(z){for(var oe=void 0,he=0;he<z.length;he++){var _e=z.charCodeAt(he);_e===35||_e===63?(oe===void 0&&(oe=z.substr(0,he)),oe+=H[_e]):oe!==void 0&&(oe+=z[he])}return oe!==void 0?oe:z}function p(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,I.h&&(oe=oe.replace(/\//g,"\\")),oe}function g(z,oe){var he=oe?f:E,_e="",Se=z.scheme,q=z.authority,Z=z.path,ce=z.query,Te=z.fragment;if(Se&&(_e+=Se,_e+=":"),(q||Se==="file")&&(_e+=x,_e+=x),q){var Ve=q.indexOf("@");if(Ve!==-1){var Ee=q.substr(0,Ve);q=q.substr(Ve+1),Ve=Ee.indexOf(":"),Ve===-1?_e+=he(Ee,!1):(_e+=he(Ee.substr(0,Ve),!1),_e+=":",_e+=he(Ee.substr(Ve+1),!1)),_e+="@"}q=q.toLowerCase(),Ve=q.indexOf(":"),Ve===-1?_e+=he(q,!1):(_e+=he(q.substr(0,Ve),!1),_e+=q.substr(Ve))}if(Z){if(Z.length>=3&&Z.charCodeAt(0)===47&&Z.charCodeAt(2)===58){var de=Z.charCodeAt(1);de>=65&&de<=90&&(Z="/"+String.fromCharCode(de+32)+":"+Z.substr(3))}else if(Z.length>=2&&Z.charCodeAt(1)===58){var de=Z.charCodeAt(0);de>=65&&de<=90&&(Z=String.fromCharCode(de+32)+":"+Z.substr(2))}_e+=he(Z,!0)}return ce&&(_e+="?",_e+=he(ce,!1)),Te&&(_e+="#",_e+=oe?Te:E(Te,!1)),_e}function m(z){try{return decodeURIComponent(z)}catch(oe){return z.length>3?z.substr(0,3)+m(z.substr(3)):z}}var w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function B(z){return z.match(w)?z.replace(w,function(oe){return m(oe)}):z}},baJR:function(wt,P,o){"use strict";o.d(P,"b",function(){return k}),o.d(P,"c",function(){return U}),o.d(P,"a",function(){return j}),o.d(P,"d",function(){return R}),o.d(P,"e",function(){return x});var I=o("N0LK"),re=o("erNZ"),ne=o("dBaI"),N=function(){function p(g,m){this.endIndex=g,this.type=m}return p}(),k=function(){function p(g,m){this.startOffset=g,this.endOffset=m}return p.prototype.equals=function(g){return this.startOffset===g.startOffset&&this.endOffset===g.endOffset},p}(),U=function(){function p(g,m,w,B,z,oe,he,_e,Se,q,Z,ce,Te,Ve,Ee,de,se,fe){this.useMonospaceOptimizations=g,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=w,this.continuesWithWrappedLine=B,this.isBasicASCII=z,this.containsRTL=oe,this.fauxIndentLength=he,this.lineTokens=_e,this.lineDecorations=Se,this.tabSize=q,this.startVisibleColumn=Z,this.spaceWidth=ce,this.middotWidth=Te,this.stopRenderingLineAfter=Ve,this.renderWhitespace=Ee==="all"?3:Ee==="boundary"?1:Ee==="selection"?2:0,this.renderControlCharacters=de,this.fontLigatures=se,this.selectionsOnLine=fe&&fe.sort(function(ie,Q){return ie.startOffset<Q.startOffset?-1:1})}return p.prototype.sameSelection=function(g){if(this.selectionsOnLine===null)return g===null;if(g===null)return!1;if(g.length!==this.selectionsOnLine.length)return!1;for(var m=0;m<this.selectionsOnLine.length;m++)if(!this.selectionsOnLine[m].equals(g[m]))return!1;return!0},p.prototype.equals=function(g){return this.useMonospaceOptimizations===g.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===g.canUseHalfwidthRightwardsArrow&&this.lineContent===g.lineContent&&this.continuesWithWrappedLine===g.continuesWithWrappedLine&&this.isBasicASCII===g.isBasicASCII&&this.containsRTL===g.containsRTL&&this.fauxIndentLength===g.fauxIndentLength&&this.tabSize===g.tabSize&&this.startVisibleColumn===g.startVisibleColumn&&this.spaceWidth===g.spaceWidth&&this.stopRenderingLineAfter===g.stopRenderingLineAfter&&this.renderWhitespace===g.renderWhitespace&&this.renderControlCharacters===g.renderControlCharacters&&this.fontLigatures===g.fontLigatures&&ne.a.equalsArr(this.lineDecorations,g.lineDecorations)&&this.lineTokens.equals(g.lineTokens)&&this.sameSelection(g.selectionsOnLine)},p}(),j=function(){function p(g,m){this.length=g,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return p.getPartIndex=function(g){return(g&4294901760)>>>16},p.getCharIndex=function(g){return(g&65535)>>>0},p.prototype.setPartData=function(g,m,w,B){var z=(m<<16|w<<0)>>>0;this._data[g]=z,this._absoluteOffsets[g]=B+w},p.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},p.prototype.charOffsetToPartData=function(g){return this.length===0?0:g<0?this._data[0]:g>=this.length?this._data[this.length-1]:this._data[g]},p.prototype.partDataToCharOffset=function(g,m,w){if(this.length===0)return 0;for(var B=(g<<16|w<<0)>>>0,z=0,oe=this.length-1;z+1<oe;){var he=z+oe>>>1,_e=this._data[he];if(_e===B)return he;_e>B?oe=he:z=he}if(z===oe)return z;var Se=this._data[z],q=this._data[oe];if(Se===B)return z;if(q===B)return oe;var Z=p.getPartIndex(Se),ce=p.getCharIndex(Se),Te=p.getPartIndex(q),Ve;Z!==Te?Ve=m:Ve=p.getCharIndex(q);var Ee=w-ce,de=Ve-w;return Ee<=de?z:oe},p}(),G=function(){function p(g,m,w){this.characterMapping=g,this.containsRTL=m,this.containsForeignElements=w}return p}();function R(p,g){if(p.lineContent.length===0){var m=0,w="<span><span>\xA0</span></span>";if(p.lineDecorations.length>0){for(var B=[],z=[],oe=0,he=p.lineDecorations.length;oe<he;oe++){var _e=p.lineDecorations[oe];_e.type===1&&(B.push(p.lineDecorations[oe].className),m|=1),_e.type===2&&(z.push(p.lineDecorations[oe].className),m|=2)}if(m!==0){var Se=B.length>0?'<span class="'+B.join(" ")+'"></span>':"",q=z.length>0?'<span class="'+z.join(" ")+'"></span>':"";w="<span>"+Se+q+"</span>"}}return g.appendASCIIString(w),new G(new j(0,0),!1,m)}return f(D(p),g)}var _=function(){function p(g,m,w,B){this.characterMapping=g,this.html=m,this.containsRTL=w,this.containsForeignElements=B}return p}();function x(p){var g=Object(re.a)(1e4),m=R(p,g);return new _(m.characterMapping,g.build(),m.containsRTL,m.containsForeignElements)}var K=function(){function p(g,m,w,B,z,oe,he,_e,Se,q,Z,ce,Te,Ve,Ee){this.fontIsMonospace=g,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=w,this.len=B,this.isOverflowing=z,this.parts=oe,this.containsForeignElements=he,this.fauxIndentLength=_e,this.tabSize=Se,this.startVisibleColumn=q,this.containsRTL=Z,this.spaceWidth=ce,this.middotWidth=Te,this.renderWhitespace=Ve,this.renderControlCharacters=Ee}return p}();function D(p){var g=p.useMonospaceOptimizations,m=p.lineContent,w,B;p.stopRenderingLineAfter!==-1&&p.stopRenderingLineAfter<m.length?(w=!0,B=p.stopRenderingLineAfter):(w=!1,B=m.length);var z=A(p.lineTokens,p.fauxIndentLength,B);(p.renderWhitespace===3||p.renderWhitespace===1||p.renderWhitespace===2&&!!p.selectionsOnLine)&&(z=H(m,B,p.continuesWithWrappedLine,z,p.fauxIndentLength,p.tabSize,p.startVisibleColumn,g,p.selectionsOnLine,p.renderWhitespace===1));var oe=0;if(p.lineDecorations.length>0){for(var he=0,_e=p.lineDecorations.length;he<_e;he++){var Se=p.lineDecorations[he];Se.type===3||Se.type===1?oe|=1:Se.type===2&&(oe|=2)}z=E(m,B,z,p.lineDecorations)}return p.containsRTL||(z=te(m,z,!p.isBasicASCII||p.fontLigatures)),new K(g,p.canUseHalfwidthRightwardsArrow,m,B,w,z,oe,p.fauxIndentLength,p.tabSize,p.startVisibleColumn,p.containsRTL,p.spaceWidth,p.middotWidth,p.renderWhitespace,p.renderControlCharacters)}function A(p,g,m){var w=[],B=0;g>0&&(w[B++]=new N(g,""));for(var z=0,oe=p.getCount();z<oe;z++){var he=p.getEndOffset(z);if(he<=g)continue;var _e=p.getClassName(z);if(he>=m){w[B++]=new N(m,_e);break}w[B++]=new N(he,_e)}return w}function te(p,g,m){var w=0,B=[],z=0;if(m)for(var oe=0,he=g.length;oe<he;oe++){var _e=g[oe],Se=_e.endIndex;if(w+50<Se){for(var q=_e.type,Z=-1,ce=w,Te=w;Te<Se;Te++)p.charCodeAt(Te)===32&&(Z=Te),Z!==-1&&Te-ce>=50&&(B[z++]=new N(Z+1,q),ce=Z+1,Z=-1);ce!==Se&&(B[z++]=new N(Se,q))}else B[z++]=_e;w=Se}else for(var oe=0,he=g.length;oe<he;oe++){var _e=g[oe],Se=_e.endIndex,Ve=Se-w;if(Ve>50){for(var q=_e.type,Ee=Math.ceil(Ve/50),Te=1;Te<Ee;Te++){var de=w+Te*50;B[z++]=new N(de,q)}B[z++]=new N(Se,q)}else B[z++]=_e;w=Se}return B}function H(p,g,m,w,B,z,oe,he,_e,Se){var q=[],Z=0,ce=0,Te=w[ce].type,Ve=w[ce].endIndex,Ee=w.length,de=I.q(p),se;de===-1?(de=g,se=g):se=I.D(p);for(var fe=!1,ie=0,Q=_e&&_e[ie],me=oe%z,ye=B;ye<g;ye++){var He=p.charCodeAt(ye);Q&&ye>=Q.endOffset&&(ie++,Q=_e&&_e[ie]);var tt=void 0;if(ye<de||ye>se)tt=!0;else if(He===9)tt=!0;else if(He===32)if(Se)if(fe)tt=!0;else{var Et=ye+1<g?p.charCodeAt(ye+1):0;tt=Et===32||Et===9}else tt=!0;else tt=!1;tt&&_e&&(tt=!!Q&&Q.startOffset<=ye&&Q.endOffset>ye),fe?(!tt||!he&&me>=z)&&(q[Z++]=new N(ye,"vs-whitespace"),me=me%z):(ye===Ve||tt&&ye>B)&&(q[Z++]=new N(ye,Te),me=me%z),He===9?me=z:I.y(He)?me+=2:me++,fe=tt,ye===Ve&&(ce++,ce<Ee&&(Te=w[ce].type,Ve=w[ce].endIndex))}var Pt=!1;if(fe)if(m&&Se){var Xt=g>0?p.charCodeAt(g-1):0,Ke=g>1?p.charCodeAt(g-2):0,Xe=Xt===32&&Ke!==32&&Ke!==9;Xe||(Pt=!0)}else Pt=!0;return q[Z++]=new N(g,Pt?"vs-whitespace":Te),q}function E(p,g,m,w){w.sort(ne.a.compare);for(var B=ne.b.normalize(p,w),z=B.length,oe=0,he=[],_e=0,Se=0,q=0,Z=m.length;q<Z;q++){for(var ce=m[q],Te=ce.endIndex,Ve=ce.type;oe<z&&B[oe].startOffset<Te;){var Ee=B[oe];if(Ee.startOffset>Se&&(Se=Ee.startOffset,he[_e++]=new N(Se,Ve)),Ee.endOffset+1<=Te)Se=Ee.endOffset+1,he[_e++]=new N(Se,Ve+" "+Ee.className),oe++;else{Se=Te,he[_e++]=new N(Se,Ve+" "+Ee.className);break}}Te>Se&&(Se=Te,he[_e++]=new N(Se,Ve))}var de=m[m.length-1].endIndex;if(oe<z&&B[oe].startOffset===de){for(var se=[];oe<z&&B[oe].startOffset===de;)se.push(B[oe].className),oe++;he[_e++]=new N(Se,se.join(" "))}return he}function f(p,g){var m=p.fontIsMonospace,w=p.canUseHalfwidthRightwardsArrow,B=p.containsForeignElements,z=p.lineContent,oe=p.len,he=p.isOverflowing,_e=p.parts,Se=p.fauxIndentLength,q=p.tabSize,Z=p.startVisibleColumn,ce=p.containsRTL,Te=p.spaceWidth,Ve=p.middotWidth,Ee=p.renderWhitespace,de=p.renderControlCharacters,se=Ve>Te?11825:183,fe=new j(oe+1,_e.length),ie=0,Q=Z,me=0,ye=0,He=0;g.appendASCIIString("<span>");for(var tt=0,Et=_e.length;tt<Et;tt++){He+=ye;var Pt=_e[tt],Xt=Pt.endIndex,Ke=Pt.type,Xe=Ee!==0&&Ke.indexOf("vs-whitespace")>=0;if(me=0,g.appendASCIIString('<span class="'),g.appendASCIIString(Ke),g.appendASCII(34),Xe){for(var Ze=0,Ye=ie,Fe=Q;Ye<Xt;Ye++){var $e=z.charCodeAt(Ye),we=($e===9?q-Fe%q:1)|0;Ze+=we,Ye>=Se&&(Fe+=we)}if(!m){var F=Ke==="vs-whitespace";(F||!B)&&(g.appendASCIIString(' style="display:inline-block;width:'),g.appendASCIIString(String(Te*Ze)),g.appendASCIIString('px"'))}for(g.appendASCII(62);ie<Xt;ie++){fe.setPartData(ie,tt,me,He);var $e=z.charCodeAt(ie),we=void 0;if($e===9){we=q-Q%q|0,!w||we>1?g.write1(8594):g.write1(65515);for(var ee=2;ee<=we;ee++)g.write1(160)}else we=1,g.write1(se);me+=we,ie>=Se&&(Q+=we)}ye=Ze}else{var Ze=0;for(ce&&g.appendASCIIString(' dir="ltr"'),g.appendASCII(62);ie<Xt;ie++){fe.setPartData(ie,tt,me,He);var $e=z.charCodeAt(ie),Pe=1,we=1;switch($e){case 9:Pe=q-Q%q,we=Pe;for(var ee=1;ee<=Pe;ee++)g.write1(160);break;case 32:g.write1(160);break;case 60:g.appendASCIIString("&lt;");break;case 62:g.appendASCIIString("&gt;");break;case 38:g.appendASCIIString("&amp;");break;case 0:g.appendASCIIString("&#00;");break;case 65279:case 8232:g.write1(65533);break;default:I.y($e)&&we++,de&&$e<32?g.write1(9216+$e):g.write1($e)}me+=Pe,Ze+=Pe,ie>=Se&&(Q+=we)}ye=Ze}g.appendASCIIString("</span>")}return fe.setPartData(oe,_e.length-1,me,He),he&&g.appendASCIIString("<span>&hellip;</span>"),g.appendASCIIString("</span>"),new G(fe,ce,B)}},bexQ:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("keybindingService")},bk7F:function(wt,P,o){"use strict";o.r(P),o.d(P,"BracketMatchingController",function(){return w});var I=o("8ATB"),re=o.n(I),ne=o("3/fG"),N=o("X+cX"),k=o("pmY6"),U=o("sswD"),j=o("cGHE"),G=o("aokT"),R=o("gCVg"),_=o("wQH0"),x=o("M1Kb"),K=o("tX9W"),D=o("kYye"),A=o("MD5Z"),te=o("t9D7"),H=o("fjLI"),E=function(){var B=function(oe,he){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Se){_e.__proto__=Se}||function(_e,Se){for(var q in Se)Se.hasOwnProperty(q)&&(_e[q]=Se[q])},B(oe,he)};return function(z,oe){B(z,oe);function he(){this.constructor=z}z.prototype=oe===null?Object.create(oe):(he.prototype=oe.prototype,new he)}}(),f=Object(A.Rb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},ne.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),p=function(B){E(z,B);function z(){return B.call(this,{id:"editor.action.jumpToBracket",label:ne.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:_.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return z.prototype.run=function(oe,he){var _e=w.get(he);if(!_e)return;_e.jumpToBracket()},z}(U.b),g=function(B){E(z,B);function z(){return B.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,he,_e){var Se=w.get(he);if(!Se)return;var q=!0;_e&&_e.selectBrackets===!1&&(q=!1),Se.selectToBracket(q)},z}(U.b),m=function(){function B(z,oe,he){this.position=z,this.brackets=oe,this.options=he}return B}(),w=function(B){E(z,B);function z(oe){var he=B.call(this)||this;return he._editor=oe,he._lastBracketsData=[],he._lastVersionId=0,he._decorations=[],he._updateBracketsSoon=he._register(new N.d(function(){return he._updateBrackets()},50)),he._matchBrackets=he._editor.getOption(53),he._updateBracketsSoon.schedule(),he._register(oe.onDidChangeCursorPosition(function(_e){if(he._matchBrackets==="never")return;he._updateBracketsSoon.schedule()})),he._register(oe.onDidChangeModelContent(function(_e){he._updateBracketsSoon.schedule()})),he._register(oe.onDidChangeModel(function(_e){he._lastBracketsData=[],he._decorations=[],he._updateBracketsSoon.schedule()})),he._register(oe.onDidChangeModelLanguageConfiguration(function(_e){he._lastBracketsData=[],he._updateBracketsSoon.schedule()})),he._register(oe.onDidChangeConfiguration(function(_e){_e.hasChanged(53)&&(he._matchBrackets=he._editor.getOption(53),he._decorations=he._editor.deltaDecorations(he._decorations,[]),he._lastBracketsData=[],he._lastVersionId=0,he._updateBracketsSoon.schedule())})),he}return z.get=function(oe){return oe.getContribution(z.ID)},z.prototype.jumpToBracket=function(){if(!this._editor.hasModel())return;var oe=this._editor.getModel(),he=this._editor.getSelections().map(function(_e){var Se=_e.getStartPosition(),q=oe.matchBracket(Se),Z=null;if(q)q[0].containsPosition(Se)?Z=q[1].getStartPosition():q[1].containsPosition(Se)&&(Z=q[0].getStartPosition());else{var ce=oe.findEnclosingBrackets(Se);if(ce)Z=ce[0].getStartPosition();else{var Te=oe.findNextBracket(Se);Te&&Te.range&&(Z=Te.range.getStartPosition())}}return Z?new R.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column):new R.a(Se.lineNumber,Se.column,Se.lineNumber,Se.column)});this._editor.setSelections(he),this._editor.revealRange(he[0])},z.prototype.selectToBracket=function(oe){if(!this._editor.hasModel())return;var he=this._editor.getModel(),_e=[];this._editor.getSelections().forEach(function(Se){var q=Se.getStartPosition(),Z=he.matchBracket(q);if(!Z&&(Z=he.findEnclosingBrackets(q),!Z)){var ce=he.findNextBracket(q);ce&&ce.range&&(Z=he.matchBracket(ce.range.getStartPosition()))}var Te=null,Ve=null;if(Z){Z.sort(G.a.compareRangesUsingStarts);var Ee=Z[0],de=Z[1];Te=oe?Ee.getStartPosition():Ee.getEndPosition(),Ve=oe?de.getEndPosition():de.getStartPosition()}Te&&Ve&&_e.push(new R.a(Te.lineNumber,Te.column,Ve.lineNumber,Ve.column))}),_e.length>0&&(this._editor.setSelections(_e),this._editor.revealRange(_e[0]))},z.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var oe=[],he=0,_e=0,Se=this._lastBracketsData;_e<Se.length;_e++){var q=Se[_e],Z=q.brackets;Z&&(oe[he++]={range:Z[0],options:q.options},oe[he++]={range:Z[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 he=this._editor.getModel(),_e=he.getVersionId(),Se=[];this._lastVersionId===_e&&(Se=this._lastBracketsData);for(var q=[],Z=0,ce=0,Te=oe.length;ce<Te;ce++){var Ve=oe[ce];Ve.isEmpty()&&(q[Z++]=Ve.getStartPosition())}q.length>1&&q.sort(j.a.compare);for(var Ee=[],de=0,se=0,fe=Se.length,ce=0,Te=q.length;ce<Te;ce++){for(var ie=q[ce];se<fe&&Se[se].position.isBefore(ie);)se++;if(se<fe&&Se[se].position.equals(ie))Ee[de++]=Se[se];else{var Q=he.matchBracket(ie),me=z._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!Q&&this._matchBrackets==="always"&&(Q=he.findEnclosingBrackets(ie,20),me=z._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),Ee[de++]=new m(ie,Q,me)}}this._lastBracketsData=Ee,this._lastVersionId=_e},z.ID="editor.contrib.bracketMatchingController",z._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=K.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(te.f)(f),position:x.d.Center}}),z._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=K.a.register({stickiness:1,className:"bracket-match"}),z}(k.a);Object(U.h)(w.ID,w),Object(U.f)(g),Object(U.f)(p),Object(te.e)(function(B,z){var oe=B.getColor(D.c);oe&&z.addRule(".monaco-editor .bracket-match { background-color: "+oe+"; }");var he=B.getColor(D.d);he&&z.addRule(".monaco-editor .bracket-match { border: 1px solid "+he+"; }")}),H.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(wt,P,o){"use strict";o.r(P),o.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=o("M/lh"),re=o.n(I);"use strict";var ne=monaco.Emitter,N=function(){function f(p,g,m){this._onDidChange=new ne,this._languageId=p,this.setOptions(g),this.setModeConfiguration(m)}return Object.defineProperty(f.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),f.prototype.setOptions=function(p){this._options=p||Object.create(null),this._onDidChange.fire(this)},f.prototype.setModeConfiguration=function(p){this._modeConfiguration=p||Object.create(null),this._onDidChange.fire(this)},f}(),k={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"},U={format:k,suggest:{html5:!0,angular1:!0,ionic:!0}},j={format:k,suggest:{html5:!0}},G={format:k,suggest:{html5:!0,razor:!0}};function R(f){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:f===_,documentFormattingEdits:f===_,documentRangeFormattingEdits:f===_}}var _="html",x="handlebars",K="razor",D=new N(_,U,R(_)),A=new N(x,j,R(x)),te=new N(K,G,R(K));function H(){return{htmlDefaults:D,razorDefaults:te,handlebarDefaults:A}}monaco.languages.html=H();function E(){return o.e(199).then(o.bind(null,"+lu7"))}monaco.languages.onLanguage(_,function(){E().then(function(f){return f.setupMode(D)})}),monaco.languages.onLanguage(x,function(){E().then(function(f){return f.setupMode(A)})}),monaco.languages.onLanguage(K,function(){E().then(function(f){return f.setupMode(te)})})},c9ML:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return o.e(246).then(o.bind(null,"QJnQ"))}})},cGHE:function(wt,P,o){"use strict";o.d(P,"a",function(){return I});var I=function(){function re(ne,N){this.lineNumber=ne,this.column=N}return re.prototype.with=function(ne,N){return ne===void 0&&(ne=this.lineNumber),N===void 0&&(N=this.column),ne===this.lineNumber&&N===this.column?this:new re(ne,N)},re.prototype.delta=function(ne,N){return ne===void 0&&(ne=0),N===void 0&&(N=0),this.with(this.lineNumber+ne,this.column+N)},re.prototype.equals=function(ne){return re.equals(this,ne)},re.equals=function(ne,N){return!ne&&!N?!0:!!ne&&!!N&&ne.lineNumber===N.lineNumber&&ne.column===N.column},re.prototype.isBefore=function(ne){return re.isBefore(this,ne)},re.isBefore=function(ne,N){return ne.lineNumber<N.lineNumber?!0:N.lineNumber<ne.lineNumber?!1:ne.column<N.column},re.prototype.isBeforeOrEqual=function(ne){return re.isBeforeOrEqual(this,ne)},re.isBeforeOrEqual=function(ne,N){return ne.lineNumber<N.lineNumber?!0:N.lineNumber<ne.lineNumber?!1:ne.column<=N.column},re.compare=function(ne,N){var k=ne.lineNumber|0,U=N.lineNumber|0;if(k===U){var j=ne.column|0,G=N.column|0;return j-G}return k-U},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(wt,P,o){"use strict";o.r(P);var I=o("6OMU"),re=o("JQT/"),ne=o("/kV6"),N=o("pmY6"),k=o("sswD"),U=o("Vxe3"),j=o("MXAL"),G=o("aokT"),R=o("wQH0"),_=o("twdY"),x=o("pAvP"),K=o("OBOq"),D=o("/cxE"),A=o("bY76"),te=o("vATl"),H=o("sFUC"),E=o("cGHE"),f=o("gCVg"),p=o("G2kB"),g=o("0/Sa"),m=function(){function Ye(){}return Ye._handleEolEdits=function(Fe,$e){for(var we=void 0,F=[],ee=0,Pe=$e;ee<Pe.length;ee++){var ve=Pe[ee];typeof ve.eol=="number"&&(we=ve.eol),ve.range&&typeof ve.text=="string"&&F.push(ve)}return typeof we=="number"&&(Fe.hasModel()&&Fe.getModel().pushEOL(we)),F},Ye._isFullModelReplaceEdit=function(Fe,$e){if(!Fe.hasModel())return!1;var we=Fe.getModel(),F=we.validateRange($e.range),ee=we.getFullModelRange();return ee.equalsRange(F)},Ye.execute=function(Fe,$e){Fe.pushUndoStop();var we=Ye._handleEolEdits(Fe,$e);we.length===1&&Ye._isFullModelReplaceEdit(Fe,we[0])?Fe.executeEdits("formatEditsCommand",we.map(function(F){return g.a.replace(G.a.lift(F.range),F.text)})):Fe.executeEdits("formatEditsCommand",we.map(function(F){return g.a.replaceMove(G.a.lift(F.range),F.text)})),Fe.pushUndoStop()},Ye}(),w=o("3/fG"),B=function(){function Ye(Fe){this.value=Fe,this._lower=Fe.toLowerCase()}return Ye.toKey=function(Fe){return typeof Fe=="string"?Fe.toLowerCase():Fe._lower},Ye}(),z=o("Cg/j"),oe=o("24hK"),he=o("nnTU"),_e=o("746U"),Se=function(Ye,Fe,$e,we){function F(ee){return ee instanceof $e?ee:new $e(function(Pe){Pe(ee)})}return new($e||($e=Promise))(function(ee,Pe){function ve(pe){try{Ie(we.next(pe))}catch(nt){Pe(nt)}}function Me(pe){try{Ie(we.throw(pe))}catch(nt){Pe(nt)}}function Ie(pe){pe.done?ee(pe.value):F(pe.value).then(ve,Me)}Ie((we=we.apply(Ye,Fe||[])).next())})},q=function(Ye,Fe){var $e={label:0,sent:function(){if(ee[0]&1)throw ee[1];return ee[1]},trys:[],ops:[]},we,F,ee,Pe;return Pe={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function ve(Ie){return function(pe){return Me([Ie,pe])}}function Me(Ie){if(we)throw new TypeError("Generator is already executing.");for(;$e;)try{if(we=1,F&&(ee=Ie[0]&2?F.return:Ie[0]?F.throw||((ee=F.return)&&ee.call(F),0):F.next)&&!(ee=ee.call(F,Ie[1])).done)return ee;(F=0,ee)&&(Ie=[Ie[0]&2,ee.value]);switch(Ie[0]){case 0:case 1:ee=Ie;break;case 4:return $e.label++,{value:Ie[1],done:!1};case 5:$e.label++,F=Ie[1],Ie=[0];continue;case 7:Ie=$e.ops.pop(),$e.trys.pop();continue;default:if(!(ee=$e.trys,ee=ee.length>0&&ee[ee.length-1])&&(Ie[0]===6||Ie[0]===2)){$e=0;continue}if(Ie[0]===3&&(!ee||Ie[1]>ee[0]&&Ie[1]<ee[3])){$e.label=Ie[1];break}if(Ie[0]===6&&$e.label<ee[1]){$e.label=ee[1],ee=Ie;break}if(ee&&$e.label<ee[2]){$e.label=ee[2],$e.ops.push(Ie);break}ee[2]&&$e.ops.pop(),$e.trys.pop();continue}Ie=Fe.call(Ye,$e)}catch(pe){Ie=[6,pe],F=0}finally{we=ee=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}};function Z(Ye){if(Ye=Ye.filter(function(ee){return ee.range}),!Ye.length)return;for(var Fe=Ye[0].range,$e=1;$e<Ye.length;$e++)Fe=G.a.plusRange(Fe,Ye[$e].range);var we=Fe.startLineNumber,F=Fe.endLineNumber;we===F?Ye.length===1?Object(K.a)(w.a("hint11","Made 1 formatting edit on line {0}",we)):Object(K.a)(w.a("hintn1","Made {0} formatting edits on line {1}",Ye.length,we)):Ye.length===1?Object(K.a)(w.a("hint1n","Made 1 formatting edit between lines {0} and {1}",we,F)):Object(K.a)(w.a("hintnn","Made {0} formatting edits between lines {1} and {2}",Ye.length,we,F))}function ce(Ye){for(var Fe=[],$e=new Set,we=_.g.ordered(Ye),F=0,ee=we;F<ee.length;F++){var Pe=ee[F];Fe.push(Pe),Pe.extensionId&&$e.add(B.toKey(Pe.extensionId))}for(var ve=_.i.ordered(Ye),Me=function(_t){if(_t.extensionId){if($e.has(B.toKey(_t.extensionId)))return"continue";$e.add(B.toKey(_t.extensionId))}Fe.push({displayName:_t.displayName,extensionId:_t.extensionId,provideDocumentFormattingEdits:function(Mt,zt,Gt){return _t.provideDocumentRangeFormattingEdits(Mt,Mt.getFullModelRange(),zt,Gt)}})},Ie=0,pe=ve;Ie<pe.length;Ie++){var Pe=pe[Ie];Me(Pe)}return Fe}var Te=function(){function Ye(){}return Ye.select=function(Fe,$e,we){return Se(this,void 0,void 0,function(){var F;return q(this,function(ee){switch(ee.label){case 0:return Fe.length===0?[2,void 0]:(F=Ye._selectors.iterator().next().value,F?[4,F(Fe,$e,we)]:[3,2]);case 1:return[2,ee.sent()];case 2:return[2,Fe[0]]}})})},Ye._selectors=new oe.a,Ye}();function Ve(Ye,Fe,$e,we,F){return Se(this,void 0,void 0,function(){var ee,Pe,ve,Me;return q(this,function(Ie){switch(Ie.label){case 0:return ee=Ye.get(z.a),Pe=Object(H.a)(Fe)?Fe.getModel():Fe,ve=_.i.ordered(Pe),[4,Te.select(ve,Pe,we)];case 1:return Me=Ie.sent(),Me?[4,ee.invokeFunction(Ee,Me,Fe,$e,F)]:[3,3];case 2:Ie.sent(),Ie.label=3;case 3:return[2]}})})}function Ee(Ye,Fe,$e,we,F){return Se(this,void 0,void 0,function(){var ee,Pe,ve,Me,Ie,pe,nt;return q(this,function(_t){switch(_t.label){case 0:ee=Ye.get(x.a),Object(H.a)($e)?(Pe=$e.getModel(),ve=new te.b($e,1|4,F)):(Pe=$e,ve=new te.d($e,F)),_t.label=1;case 1:return _t.trys.push([1,,4,5]),[4,Fe.provideDocumentRangeFormattingEdits(Pe,we,Pe.getFormattingOptions(),ve.token)];case 2:return Ie=_t.sent(),[4,ee.computeMoreMinimalEdits(Pe.uri,Ie)];case 3:return Me=_t.sent(),ve.token.isCancellationRequested?[2,!0]:[3,5];case 4:return ve.dispose(),[7];case 5:return!Me||Me.length===0?[2,!1]:(Object(H.a)($e)?(m.execute($e,Me),Z(Me),$e.pushUndoStop(),$e.revealPositionInCenterIfOutsideViewport($e.getPosition(),1)):(pe=Me[0].range,nt=new f.a(pe.startLineNumber,pe.startColumn,pe.endLineNumber,pe.endColumn),Pe.pushEditOperations([nt],Me.map(function(Rt){return{text:Rt.text,range:G.a.lift(Rt.range),forceMoveMarkers:!0}}),function(Rt){for(var Mt=0,zt=Rt;Mt<zt.length;Mt++){var Gt=zt[Mt].range;if(G.a.areIntersectingOrTouching(Gt,nt))return[new f.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)]}return null})),[2,!0])}})})}function de(Ye,Fe,$e,we){return Se(this,void 0,void 0,function(){var F,ee,Pe,ve;return q(this,function(Me){switch(Me.label){case 0:return F=Ye.get(z.a),ee=Object(H.a)(Fe)?Fe.getModel():Fe,Pe=ce(ee),[4,Te.select(Pe,ee,$e)];case 1:return ve=Me.sent(),ve?[4,F.invokeFunction(se,ve,Fe,$e,we)]:[3,3];case 2:Me.sent(),Me.label=3;case 3:return[2]}})})}function se(Ye,Fe,$e,we,F){return Se(this,void 0,void 0,function(){var ee,Pe,ve,Me,Ie,pe,nt;return q(this,function(_t){switch(_t.label){case 0:ee=Ye.get(x.a),Object(H.a)($e)?(Pe=$e.getModel(),ve=new te.b($e,1|4,F)):(Pe=$e,ve=new te.d($e,F)),_t.label=1;case 1:return _t.trys.push([1,,4,5]),[4,Fe.provideDocumentFormattingEdits(Pe,Pe.getFormattingOptions(),ve.token)];case 2:return Ie=_t.sent(),[4,ee.computeMoreMinimalEdits(Pe.uri,Ie)];case 3:return Me=_t.sent(),ve.token.isCancellationRequested?[2,!0]:[3,5];case 4:return ve.dispose(),[7];case 5:return!Me||Me.length===0?[2,!1]:(Object(H.a)($e)?(m.execute($e,Me),we!==2&&(Z(Me),$e.pushUndoStop(),$e.revealPositionInCenterIfOutsideViewport($e.getPosition(),1))):(pe=Me[0].range,nt=new f.a(pe.startLineNumber,pe.startColumn,pe.endLineNumber,pe.endColumn),Pe.pushEditOperations([nt],Me.map(function(Rt){return{text:Rt.text,range:G.a.lift(Rt.range),forceMoveMarkers:!0}}),function(Rt){for(var Mt=0,zt=Rt;Mt<zt.length;Mt++){var Gt=zt[Mt].range;if(G.a.areIntersectingOrTouching(Gt,nt))return[new f.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)]}return null})),[2,!0])}})})}function fe(Ye,Fe,$e,we,F){return Se(this,void 0,void 0,function(){var ee,Pe,ve,Me,Ie;return q(this,function(pe){switch(pe.label){case 0:ee=_.i.ordered(Fe),Pe=0,ve=ee,pe.label=1;case 1:return Pe<ve.length?(Me=ve[Pe],[4,Promise.resolve(Me.provideDocumentRangeFormattingEdits(Fe,$e,we,F)).catch(D.f)]):[3,5];case 2:return Ie=pe.sent(),Object(I.q)(Ie)?[4,Ye.computeMoreMinimalEdits(Fe.uri,Ie)]:[3,4];case 3:return[2,pe.sent()];case 4:return Pe++,[3,1];case 5:return[2,void 0]}})})}function ie(Ye,Fe,$e,we){return Se(this,void 0,void 0,function(){var F,ee,Pe,ve,Me;return q(this,function(Ie){switch(Ie.label){case 0:F=ce(Fe),ee=0,Pe=F,Ie.label=1;case 1:return ee<Pe.length?(ve=Pe[ee],[4,Promise.resolve(ve.provideDocumentFormattingEdits(Fe,$e,we)).catch(D.f)]):[3,5];case 2:return Me=Ie.sent(),Object(I.q)(Me)?[4,Ye.computeMoreMinimalEdits(Fe.uri,Me)]:[3,4];case 3:return[2,Ie.sent()];case 4:return ee++,[3,1];case 5:return[2,void 0]}})})}function Q(Ye,Fe,$e,we,F){var ee=_.s.ordered(Fe);return ee.length===0||ee[0].autoFormatTriggerCharacters.indexOf(we)<0?Promise.resolve(void 0):Promise.resolve(ee[0].provideOnTypeFormattingEdits(Fe,$e,we,F,re.a.None)).catch(D.f).then(function(Pe){return Ye.computeMoreMinimalEdits(Fe.uri,Pe)})}he.a.registerCommand("_executeFormatRangeProvider",function(Ye){for(var Fe=[],$e=1;$e<arguments.length;$e++)Fe[$e-1]=arguments[$e];var we=Fe[0],F=Fe[1],ee=Fe[2];Object(_e.a)(A.a.isUri(we)),Object(_e.a)(G.a.isIRange(F));var Pe=Ye.get(p.a).getModel(we);if(!Pe)throw Object(D.b)("resource");return fe(Ye.get(x.a),Pe,G.a.lift(F),ee,re.a.None)}),he.a.registerCommand("_executeFormatDocumentProvider",function(Ye){for(var Fe=[],$e=1;$e<arguments.length;$e++)Fe[$e-1]=arguments[$e];var we=Fe[0],F=Fe[1];Object(_e.a)(A.a.isUri(we));var ee=Ye.get(p.a).getModel(we);if(!ee)throw Object(D.b)("resource");return ie(Ye.get(x.a),ee,F,re.a.None)}),he.a.registerCommand("_executeFormatOnTypeProvider",function(Ye){for(var Fe=[],$e=1;$e<arguments.length;$e++)Fe[$e-1]=arguments[$e];var we=Fe[0],F=Fe[1],ee=Fe[2],Pe=Fe[3];Object(_e.a)(A.a.isUri(we)),Object(_e.a)(E.a.isIPosition(F)),Object(_e.a)(typeof ee=="string");var ve=Ye.get(p.a).getModel(we);if(!ve)throw Object(D.b)("resource");return Q(Ye.get(x.a),ve,E.a.lift(F),ee,Pe)});var me=o("T8No"),ye=function(){var Ye=function($e,we){return Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,ee){F.__proto__=ee}||function(F,ee){for(var Pe in ee)ee.hasOwnProperty(Pe)&&(F[Pe]=ee[Pe])},Ye($e,we)};return function(Fe,$e){Ye(Fe,$e);function we(){this.constructor=Fe}Fe.prototype=$e===null?Object.create($e):(we.prototype=$e.prototype,new we)}}(),He=function(Ye,Fe,$e,we){var F=arguments.length,ee=F<3?Fe:we===null?we=Object.getOwnPropertyDescriptor(Fe,$e):we,Pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(Ye,Fe,$e,we);else for(var ve=Ye.length-1;ve>=0;ve--)(Pe=Ye[ve])&&(ee=(F<3?Pe(ee):F>3?Pe(Fe,$e,ee):Pe(Fe,$e))||ee);return F>3&&ee&&Object.defineProperty(Fe,$e,ee),ee},tt=function(Ye,Fe){return function($e,we){Fe($e,we,Ye)}},Et=function(Ye,Fe,$e,we){function F(ee){return ee instanceof $e?ee:new $e(function(Pe){Pe(ee)})}return new($e||($e=Promise))(function(ee,Pe){function ve(pe){try{Ie(we.next(pe))}catch(nt){Pe(nt)}}function Me(pe){try{Ie(we.throw(pe))}catch(nt){Pe(nt)}}function Ie(pe){pe.done?ee(pe.value):F(pe.value).then(ve,Me)}Ie((we=we.apply(Ye,Fe||[])).next())})},Pt=function(Ye,Fe){var $e={label:0,sent:function(){if(ee[0]&1)throw ee[1];return ee[1]},trys:[],ops:[]},we,F,ee,Pe;return Pe={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function ve(Ie){return function(pe){return Me([Ie,pe])}}function Me(Ie){if(we)throw new TypeError("Generator is already executing.");for(;$e;)try{if(we=1,F&&(ee=Ie[0]&2?F.return:Ie[0]?F.throw||((ee=F.return)&&ee.call(F),0):F.next)&&!(ee=ee.call(F,Ie[1])).done)return ee;(F=0,ee)&&(Ie=[Ie[0]&2,ee.value]);switch(Ie[0]){case 0:case 1:ee=Ie;break;case 4:return $e.label++,{value:Ie[1],done:!1};case 5:$e.label++,F=Ie[1],Ie=[0];continue;case 7:Ie=$e.ops.pop(),$e.trys.pop();continue;default:if(!(ee=$e.trys,ee=ee.length>0&&ee[ee.length-1])&&(Ie[0]===6||Ie[0]===2)){$e=0;continue}if(Ie[0]===3&&(!ee||Ie[1]>ee[0]&&Ie[1]<ee[3])){$e.label=Ie[1];break}if(Ie[0]===6&&$e.label<ee[1]){$e.label=ee[1],ee=Ie;break}if(ee&&$e.label<ee[2]){$e.label=ee[2],$e.ops.push(Ie);break}ee[2]&&$e.ops.pop(),$e.trys.pop();continue}Ie=Fe.call(Ye,$e)}catch(pe){Ie=[6,pe],F=0}finally{we=ee=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},Xt=function(){function Ye(Fe,$e){var we=this;this._workerService=$e,this._callOnDispose=new N.b,this._callOnModel=new N.b,this._editor=Fe,this._callOnDispose.add(Fe.onDidChangeConfiguration(function(){return we._update()})),this._callOnDispose.add(Fe.onDidChangeModel(function(){return we._update()})),this._callOnDispose.add(Fe.onDidChangeModelLanguage(function(){return we._update()})),this._callOnDispose.add(_.s.onDidChange(this._update,this))}return Ye.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Ye.prototype._update=function(){var Fe=this;if(this._callOnModel.clear(),!this._editor.getOption(39))return;if(!this._editor.hasModel())return;var $e=this._editor.getModel(),we=_.s.ordered($e)[0];if(!we||!we.autoFormatTriggerCharacters)return;for(var F=new j.b,ee=0,Pe=we.autoFormatTriggerCharacters;ee<Pe.length;ee++){var ve=Pe[ee];F.add(ve.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType(function(Me){var Ie=Me.charCodeAt(Me.length-1);F.has(Ie)&&Fe._trigger(String.fromCharCode(Ie))}))},Ye.prototype._trigger=function(Fe){var $e=this;if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1)return;var we=this._editor.getModel(),F=this._editor.getPosition(),ee=!1,Pe=this._editor.onDidChangeModelContent(function(ve){if(ve.isFlush){ee=!0,Pe.dispose();return}for(var Me=0,Ie=ve.changes.length;Me<Ie;Me++){var pe=ve.changes[Me];if(pe.range.endLineNumber<=F.lineNumber){ee=!0,Pe.dispose();return}}});Q(this._workerService,we,F,Fe,we.getFormattingOptions()).then(function(ve){if(Pe.dispose(),ee)return;Object(I.q)(ve)&&(m.execute($e._editor,ve),Z(ve))},function(ve){throw Pe.dispose(),ve})},Ye.ID="editor.contrib.autoFormat",Ye=He([tt(1,x.a)],Ye),Ye}(),Ke=function(){function Ye(Fe,$e){var we=this;this.editor=Fe,this._instantiationService=$e,this._callOnDispose=new N.b,this._callOnModel=new N.b,this._callOnDispose.add(Fe.onDidChangeConfiguration(function(){return we._update()})),this._callOnDispose.add(Fe.onDidChangeModel(function(){return we._update()})),this._callOnDispose.add(Fe.onDidChangeModelLanguage(function(){return we._update()})),this._callOnDispose.add(_.i.onDidChange(this._update,this))}return Ye.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Ye.prototype._update=function(){var Fe=this;if(this._callOnModel.clear(),!this.editor.getOption(38))return;if(!this.editor.hasModel())return;if(!_.i.has(this.editor.getModel()))return;this._callOnModel.add(this.editor.onDidPaste(function($e){var we=$e.range;return Fe._trigger(we)}))},Ye.prototype._trigger=function(Fe){if(!this.editor.hasModel())return;if(this.editor.getSelections().length>1)return;this._instantiationService.invokeFunction(Ve,this.editor,Fe,2,re.a.None).catch(D.e)},Ye.ID="editor.contrib.formatOnPaste",Ye=He([tt(1,z.a)],Ye),Ye}(),Xe=function(Ye){ye(Fe,Ye);function Fe(){return Ye.call(this,{id:"editor.action.formatDocument",label:w.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:me.a.and(R.a.writable,R.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:me.a.and(R.a.editorTextFocus,R.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:R.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return Fe.prototype.run=function($e,we){return Et(this,void 0,void 0,function(){var F;return Pt(this,function(ee){switch(ee.label){case 0:return we.hasModel()?(F=$e.get(z.a),[4,F.invokeFunction(de,we,1,re.a.None)]):[3,2];case 1:ee.sent(),ee.label=2;case 2:return[2]}})})},Fe}(k.b),Ze=function(Ye){ye(Fe,Ye);function Fe(){return Ye.call(this,{id:"editor.action.formatSelection",label:w.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:me.a.and(R.a.writable,R.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:me.a.and(R.a.editorTextFocus,R.a.hasDocumentSelectionFormattingProvider),primary:Object(ne.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:me.a.and(R.a.hasDocumentSelectionFormattingProvider,R.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return Fe.prototype.run=function($e,we){return Et(this,void 0,void 0,function(){var F,ee,Pe;return Pt(this,function(ve){switch(ve.label){case 0:return we.hasModel()?(F=$e.get(z.a),ee=we.getModel(),Pe=we.getSelection(),Pe.isEmpty()&&(Pe=new G.a(Pe.startLineNumber,1,Pe.startLineNumber,ee.getLineMaxColumn(Pe.startLineNumber))),[4,F.invokeFunction(Ve,we,Pe,1,re.a.None)]):[2];case 1:return ve.sent(),[2]}})})},Fe}(k.b);Object(k.h)(Xt.ID,Xt),Object(k.h)(Ke.ID,Ke),Object(k.f)(Xe),Object(k.f)(Ze),he.a.registerCommand("editor.action.format",function(Ye){return Et(void 0,void 0,void 0,function(){var Fe,$e;return Pt(this,function(we){switch(we.label){case 0:return Fe=Ye.get(U.a).getFocusedCodeEditor(),!Fe||!Fe.hasModel()?[2]:($e=Ye.get(he.b),Fe.getSelection().isEmpty()?[4,$e.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return we.sent(),[3,4];case 2:return[4,$e.executeCommand("editor.action.formatSelection")];case 3:we.sent(),we.label=4;case 4:return[2]}})})})},cMOf:function(wt,P,o){"use strict";o.d(P,"a",function(){return te});var I=o("undH"),re=o.n(I),ne=o("pmY6"),N=o("D3Dy"),k=o("MNsG"),U=o("746U"),j=o("pg8w"),G=o("XSiN"),R=o("MI8n"),_=o("EffR"),x=o("4y0V"),K=function(){var H=function(f,p){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var w in m)m.hasOwnProperty(w)&&(g[w]=m[w])},H(f,p)};return function(E,f){H(E,f);function p(){this.constructor=E}E.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),D=function(){for(var H=0,E=0,f=arguments.length;E<f;E++)H+=arguments[E].length;for(var p=Array(H),g=0,E=0;E<f;E++)for(var m=arguments[E],w=0,B=m.length;w<B;w++,g++)p[g]=m[w];return p},A=!1,te=function(H){K(E,H);function E(f,p,g){g===void 0&&(g={});var m=H.call(this)||this;return m._state=3,m._onDidEnablementChange=m._register(new R.a),m.onDidEnablementChange=m._onDidEnablementChange.event,m._onDidStart=m._register(new R.a),m.onDidStart=m._onDidStart.event,m._onDidChange=m._register(new R.a),m.onDidChange=m._onDidChange.event,m._onDidReset=m._register(new R.a),m.onDidReset=m._onDidReset.event,m._onDidEnd=m._register(new R.a),m.onDidEnd=m._onDidEnd.event,m.linkedSash=void 0,m.orthogonalStartSashDisposables=m._register(new ne.b),m.orthogonalEndSashDisposables=m._register(new ne.b),m.el=Object(_.p)(f,Object(_.a)(".monaco-sash")),k.e&&Object(_.e)(m.el,"mac"),m._register(Object(x.a)(m.el,"mousedown")(m.onMouseDown,m)),m._register(Object(x.a)(m.el,"dblclick")(m.onMouseDoubleClick,m)),m._register(j.b.addTarget(m.el)),m._register(Object(x.a)(m.el,j.a.Start)(m.onTouchStart,m)),N.j&&Object(_.e)(m.el,"touch"),m.setOrientation(g.orientation||0),m.hidden=!1,m.layoutProvider=p,m.orthogonalStartSash=g.orthogonalStartSash,m.orthogonalEndSash=g.orthogonalEndSash,Object(_.X)(m.el,"debug",A),m}return Object.defineProperty(E.prototype,"state",{get:function(){return this._state},set:function(p){if(this._state===p)return;Object(_.X)(this.el,"disabled",p===0),Object(_.X)(this.el,"minimum",p===1),Object(_.X)(this.el,"maximum",p===2),this._state=p,this._onDidEnablementChange.fire(p)},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(p){this.orthogonalStartSashDisposables.clear(),p?(this.orthogonalStartSashDisposables.add(p.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(p.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=p},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(p){this.orthogonalEndSashDisposables.clear(),p?(this.orthogonalEndSashDisposables.add(p.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(p.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=p},enumerable:!0,configurable:!0}),E.prototype.setOrientation=function(f){this.orientation=f,this.orientation===1?(Object(_.e)(this.el,"horizontal"),Object(_.O)(this.el,"vertical")):(Object(_.O)(this.el,"horizontal"),Object(_.e)(this.el,"vertical")),this.layoutProvider&&this.layout()},E.prototype.onMouseDown=function(f){var p=this;_.b.stop(f,!1);var g=!1;if(!f.__orthogonalSashEvent){var m=this.getOrthogonalSash(f);m&&(g=!0,f.__orthogonalSashEvent=!0,m.onMouseDown(f))}if(this.linkedSash&&!f.__linkedSashEvent&&(f.__linkedSashEvent=!0,this.linkedSash.onMouseDown(f)),!this.state)return;for(var w=D(Object(_.C)("iframe"),Object(_.C)("webview")),B=0,z=w;B<z.length;B++){var oe=z[B];oe.style.pointerEvents="none"}var he=new G.a(f),_e=he.posx,Se=he.posy,q=he.altKey,Z={startX:_e,currentX:_e,startY:Se,currentY:Se,altKey:q};Object(_.e)(this.el,"active"),this._onDidStart.fire(Z);var ce=Object(_.v)(this.el),Te=function(){var fe="";g?fe="all-scroll":p.orientation===1?p.state===1?fe="s-resize":p.state===2?fe="n-resize":fe=k.e?"row-resize":"ns-resize":p.state===1?fe="e-resize":p.state===2?fe="w-resize":fe=k.e?"col-resize":"ew-resize",ce.innerHTML="* { cursor: "+fe+" !important; }"},Ve=new ne.b;Te(),g||this.onDidEnablementChange(Te,null,Ve);var Ee=function(fe){_.b.stop(fe,!1);var ie=new G.a(fe),Q={startX:_e,currentX:ie.posx,startY:Se,currentY:ie.posy,altKey:q};p._onDidChange.fire(Q)},de=function(fe){_.b.stop(fe,!1),p.el.removeChild(ce),Object(_.O)(p.el,"active"),p._onDidEnd.fire(),Ve.dispose();for(var ie=0,Q=w;ie<Q.length;ie++){var me=Q[ie];me.style.pointerEvents="auto"}};Object(x.a)(window,"mousemove")(Ee,null,Ve),Object(x.a)(window,"mouseup")(de,null,Ve)},E.prototype.onMouseDoubleClick=function(f){var p=this.getOrthogonalSash(f);p&&p._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},E.prototype.onTouchStart=function(f){var p=this;_.b.stop(f);var g=[],m=f.pageX,w=f.pageY,B=f.altKey;this._onDidStart.fire({startX:m,currentX:m,startY:w,currentY:w,altKey:B}),g.push(Object(_.i)(this.el,j.a.Change,function(z){U.h(z.pageX)&&U.h(z.pageY)&&p._onDidChange.fire({startX:m,currentX:z.pageX,startY:w,currentY:z.pageY,altKey:B})})),g.push(Object(_.i)(this.el,j.a.End,function(z){p._onDidEnd.fire(),Object(ne.f)(g)}))},E.prototype.layout=function(){var f=N.j?20:4;if(this.orientation===0){var p=this.layoutProvider;this.el.style.left=p.getVerticalSashLeft(this)-f/2+"px",p.getVerticalSashTop&&(this.el.style.top=p.getVerticalSashTop(this)+"px"),p.getVerticalSashHeight&&(this.el.style.height=p.getVerticalSashHeight(this)+"px")}else{var g=this.layoutProvider;this.el.style.top=g.getHorizontalSashTop(this)-f/2+"px",g.getHorizontalSashLeft&&(this.el.style.left=g.getHorizontalSashLeft(this)+"px"),g.getHorizontalSashWidth&&(this.el.style.width=g.getHorizontalSashWidth(this)+"px")}},E.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},E.prototype.onOrthogonalStartSashEnablementChange=function(f){Object(_.X)(this.el,"orthogonal-start",f!==0)},E.prototype.onOrthogonalEndSashEnablementChange=function(f){Object(_.X)(this.el,"orthogonal-end",f!==0)},E.prototype.getOrthogonalSash=function(f){if(this.orientation===0){if(f.offsetY<=4)return this.orthogonalStartSash;if(f.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(f.offsetX<=4)return this.orthogonalStartSash;if(f.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},E.prototype.dispose=function(){H.prototype.dispose.call(this),this.el.remove()},E}(ne.a)},cMvZ:function(wt,P,o){"use strict";o.d(P,"a",function(){return H});var I=o("MI8n"),re=o("pmY6"),ne=o("N0LK"),N=o("0JNc"),k=o("KDc4"),U=o("BFtn"),j=function(){function E(f){if(f.autoClosingPairs?this._autoClosingPairs=f.autoClosingPairs.map(function(g){return new k.b(g)}):f.brackets?this._autoClosingPairs=f.brackets.map(function(g){return new k.b({open:g[0],close:g[1]})}):this._autoClosingPairs=[],f.__electricCharacterSupport&&f.__electricCharacterSupport.docComment){var p=f.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new k.b({open:p.open,close:p.close||""}))}this._autoCloseBefore=typeof f.autoCloseBefore=="string"?f.autoCloseBefore:E.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=f.surroundingPairs||this._autoClosingPairs}return E.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},E.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},E.shouldAutoClosePair=function(f,p,g){if(p.getTokenCount()===0)return!0;var m=p.findTokenIndexAtOffset(g-2),w=p.getStandardTokenType(m);return f.isOK(w)},E.prototype.getSurroundingPairs=function(){return this._surroundingPairs},E.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
`,E}(),G=o("EIAu"),R=function(){function E(f){this._richEditBrackets=f}return E.prototype.getElectricCharacters=function(){var f=[];if(this._richEditBrackets)for(var p=0,g=this._richEditBrackets.brackets;p<g.length;p++)for(var m=g[p],w=0,B=m.close;w<B.length;w++){var z=B[w],oe=z.charAt(z.length-1);f.push(oe)}return f=f.filter(function(he,_e,Se){return Se.indexOf(he)===_e}),f},E.prototype.onElectricCharacter=function(f,p,g){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;var m=p.findTokenIndexAtOffset(g-1);if(Object(U.b)(p.getStandardTokenType(m)))return null;var w=this._richEditBrackets.reversedRegex,B=p.getLineContent().substring(0,g-1)+f,z=G.a.findPrevBracketInRange(w,1,B,0,B.length);if(!z)return null;var oe=B.substring(z.startColumn-1,z.endColumn-1).toLowerCase(),he=this._richEditBrackets.textIsOpenBracket[oe];if(he)return null;var _e=p.getActualLineContentBefore(z.startColumn-1);return/^\s*$/.test(_e)?{matchOpenBracket:oe}:null},E}(),_=function(){function E(f){this._indentationRules=f}return E.prototype.shouldIncrease=function(f){return!!(this._indentationRules&&(this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(f)))},E.prototype.shouldDecrease=function(f){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(f))},E.prototype.shouldIndentNextLine=function(f){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(f))},E.prototype.shouldIgnore=function(f){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(f))},E.prototype.getIndentMetadata=function(f){var p=0;return this.shouldIncrease(f)&&(p+=1),this.shouldDecrease(f)&&(p+=2),this.shouldIndentNextLine(f)&&(p+=4),this.shouldIgnore(f)&&(p+=8),p},E}(),x=o("/cxE"),K=function(){function E(f){var p=this;f=f||{},f.brackets=f.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],f.brackets.forEach(function(g){var m=E._createOpenBracketRegExp(g[0]),w=E._createCloseBracketRegExp(g[1]);m&&w&&p._brackets.push({open:g[0],openRegExp:m,close:g[1],closeRegExp:w})}),this._regExpRules=f.onEnterRules||[]}return E.prototype.onEnter=function(f,p,g,m){if(f>=3)for(var w=0,B=this._regExpRules.length;w<B;w++){var z=this._regExpRules[w],oe=[{reg:z.beforeText,text:g},{reg:z.afterText,text:m},{reg:z.oneLineAboveText,text:p}].every(function(_e){return _e.reg?_e.reg.test(_e.text):!0});if(oe)return z.action}if(f>=2&&(g.length>0&&m.length>0))for(var w=0,B=this._brackets.length;w<B;w++){var he=this._brackets[w];if(he.openRegExp.test(g)&&he.closeRegExp.test(m))return{indentAction:k.a.IndentOutdent}}if(f>=2&&g.length>0)for(var w=0,B=this._brackets.length;w<B;w++){var he=this._brackets[w];if(he.openRegExp.test(g))return{indentAction:k.a.Indent}}return null},E._createOpenBracketRegExp=function(f){var p=ne.p(f);return/\B/.test(p.charAt(0))||(p="\\b"+p),p+="\\s*$",E._safeRegExp(p)},E._createCloseBracketRegExp=function(f){var p=ne.p(f);return/\B/.test(p.charAt(p.length-1))||(p=p+"\\b"),p="^\\s*"+p,E._safeRegExp(p)},E._safeRegExp=function(f){try{return new RegExp(f)}catch(p){return Object(x.e)(p),null}},E}(),D=function(){function E(f,p,g){this._languageIdentifier=f,this._brackets=null,this._electricCharacter=null;var m=null;p&&(m=p._conf),this._conf=E._mergeConf(m,g),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new K(this._conf):null,this.comments=E._handleComments(this._conf),this.characterPair=new j(this._conf),this.wordDefinition=this._conf.wordPattern||N.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new _(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(E.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(E.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new R(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),E.prototype.onEnter=function(f,p,g,m){return this._onEnterSupport?this._onEnterSupport.onEnter(f,p,g,m):null},E._mergeConf=function(f,p){return{comments:f?p.comments||f.comments:p.comments,brackets:f?p.brackets||f.brackets:p.brackets,wordPattern:f?p.wordPattern||f.wordPattern:p.wordPattern,indentationRules:f?p.indentationRules||f.indentationRules:p.indentationRules,onEnterRules:f?p.onEnterRules||f.onEnterRules:p.onEnterRules,autoClosingPairs:f?p.autoClosingPairs||f.autoClosingPairs:p.autoClosingPairs,surroundingPairs:f?p.surroundingPairs||f.surroundingPairs:p.surroundingPairs,autoCloseBefore:f?p.autoCloseBefore||f.autoCloseBefore:p.autoCloseBefore,folding:f?p.folding||f.folding:p.folding,__electricCharacterSupport:f?p.__electricCharacterSupport||f.__electricCharacterSupport:p.__electricCharacterSupport}},E._handleComments=function(f){var p=f.comments;if(!p)return null;var g={};if(p.lineComment&&(g.lineCommentToken=p.lineComment),p.blockComment){var m=p.blockComment,w=m[0],B=m[1];g.blockCommentStartToken=w,g.blockCommentEndToken=B}return g},E}(),A=function(){function E(f){this.languageIdentifier=f}return E}(),te=function(){function E(){this._entries=new Map,this._onDidChange=new I.a,this.onDidChange=this._onDidChange.event}return E.prototype.register=function(f,p){var g=this,m=this._getRichEditSupport(f.id),w=new D(f,m,p);return this._entries.set(f.id,w),this._onDidChange.fire(new A(f)),Object(re.h)(function(){g._entries.get(f.id)===w&&(g._entries.set(f.id,m),g._onDidChange.fire(new A(f)))})},E.prototype._getRichEditSupport=function(f){return this._entries.get(f)},E.prototype._getElectricCharacterSupport=function(f){var p=this._getRichEditSupport(f);return p&&p.electricCharacter||null},E.prototype.getElectricCharacters=function(f){var p=this._getElectricCharacterSupport(f);return p?p.getElectricCharacters():[]},E.prototype.onElectricCharacter=function(f,p,g){var m=Object(U.a)(p,g-1),w=this._getElectricCharacterSupport(m.languageId);return w?w.onElectricCharacter(f,m,g-m.firstCharOffset):null},E.prototype.getComments=function(f){var p=this._getRichEditSupport(f);return p&&p.comments||null},E.prototype._getCharacterPairSupport=function(f){var p=this._getRichEditSupport(f);return p&&p.characterPair||null},E.prototype.getAutoClosingPairs=function(f){var p=this._getCharacterPairSupport(f);return p?p.getAutoClosingPairs():[]},E.prototype.getAutoCloseBeforeSet=function(f){var p=this._getCharacterPairSupport(f);return p?p.getAutoCloseBeforeSet():j.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},E.prototype.getSurroundingPairs=function(f){var p=this._getCharacterPairSupport(f);return p?p.getSurroundingPairs():[]},E.prototype.shouldAutoClosePair=function(f,p,g){var m=Object(U.a)(p,g-1);return j.shouldAutoClosePair(f,m,g-m.firstCharOffset)},E.prototype.getWordDefinition=function(f){var p=this._getRichEditSupport(f);return p?Object(N.c)(p.wordDefinition||null):Object(N.c)(null)},E.prototype.getFoldingRules=function(f){var p=this._getRichEditSupport(f);return p?p.foldingRules:{}},E.prototype.getIndentRulesSupport=function(f){var p=this._getRichEditSupport(f);return p&&p.indentRulesSupport||null},E.prototype.getPrecedingValidLine=function(f,p,g){var m=f.getLanguageIdAtPosition(p,0);if(p>1){var w=void 0,B=-1;for(w=p-1;w>=1;w--){if(f.getLanguageIdAtPosition(w,0)!==m)return B;var z=f.getLineContent(w);if(g.shouldIgnore(z)||/^\s+$/.test(z)||z===""){B=w;continue}return w}}return-1},E.prototype.getInheritIndentForLine=function(f,p,g,m){if(m===void 0&&(m=!0),f<4)return null;var w=this.getIndentRulesSupport(p.getLanguageIdentifier().id);if(!w)return null;if(g<=1)return{indentation:"",action:null};var B=this.getPrecedingValidLine(p,g,w);if(B<0)return null;if(B<1)return{indentation:"",action:null};var z=p.getLineContent(B);if(w.shouldIncrease(z)||w.shouldIndentNextLine(z))return{indentation:ne.t(z),action:k.a.Indent,line:B};if(w.shouldDecrease(z))return{indentation:ne.t(z),action:null,line:B};if(B===1)return{indentation:ne.t(p.getLineContent(B)),action:null,line:B};var oe=B-1,he=w.getIndentMetadata(p.getLineContent(oe));if(!(he&(1|2))&&he&4){for(var _e=0,Se=oe-1;Se>0;Se--){if(w.shouldIndentNextLine(p.getLineContent(Se)))continue;_e=Se;break}return{indentation:ne.t(p.getLineContent(_e+1)),action:null,line:_e+1}}if(m)return{indentation:ne.t(p.getLineContent(B)),action:null,line:B};for(var Se=B;Se>0;Se--){var q=p.getLineContent(Se);if(w.shouldIncrease(q))return{indentation:ne.t(q),action:k.a.Indent,line:Se};if(w.shouldIndentNextLine(q)){for(var _e=0,Z=Se-1;Z>0;Z--){if(w.shouldIndentNextLine(p.getLineContent(Se)))continue;_e=Z;break}return{indentation:ne.t(p.getLineContent(_e+1)),action:null,line:_e+1}}else if(w.shouldDecrease(q))return{indentation:ne.t(q),action:null,line:Se}}return{indentation:ne.t(p.getLineContent(1)),action:null,line:1}},E.prototype.getGoodIndentForLine=function(f,p,g,m,w){if(f<4)return null;var B=this._getRichEditSupport(g);if(!B)return null;var z=this.getIndentRulesSupport(g);if(!z)return null;var oe=this.getInheritIndentForLine(f,p,m),he=p.getLineContent(m);if(oe){var _e=oe.line;if(_e!==void 0){var Se=B.onEnter(f,"",p.getLineContent(_e),"");if(Se){var q=ne.t(p.getLineContent(_e));return Se.removeText&&(q=q.substring(0,q.length-Se.removeText)),Se.indentAction===k.a.Indent||Se.indentAction===k.a.IndentOutdent?q=w.shiftIndent(q):Se.indentAction===k.a.Outdent&&(q=w.unshiftIndent(q)),z.shouldDecrease(he)&&(q=w.unshiftIndent(q)),Se.appendText&&(q+=Se.appendText),ne.t(q)}}return z.shouldDecrease(he)?oe.action===k.a.Indent?oe.indentation:w.unshiftIndent(oe.indentation):oe.action===k.a.Indent?w.shiftIndent(oe.indentation):oe.indentation}return null},E.prototype.getIndentForEnter=function(f,p,g,m){if(f<4)return null;p.forceTokenization(g.startLineNumber);var w=p.getLineTokens(g.startLineNumber),B=Object(U.a)(w,g.startColumn-1),z=B.getLineContent(),oe=!1,he;B.firstCharOffset>0&&w.getLanguageId(0)!==B.languageId?(oe=!0,he=z.substr(0,g.startColumn-1-B.firstCharOffset)):he=w.getLineContent().substring(0,g.startColumn-1);var _e;if(g.isEmpty())_e=z.substr(g.startColumn-1-B.firstCharOffset);else{var Se=this.getScopedLineTokens(p,g.endLineNumber,g.endColumn);_e=Se.getLineContent().substr(g.endColumn-1-B.firstCharOffset)}var q=this.getIndentRulesSupport(B.languageId);if(!q)return null;var Z=he,ce=ne.t(he),Te={getLineTokens:function(ie){return p.getLineTokens(ie)},getLanguageIdentifier:function(){return p.getLanguageIdentifier()},getLanguageIdAtPosition:function(ie,Q){return p.getLanguageIdAtPosition(ie,Q)},getLineContent:function(ie){return ie===g.startLineNumber?Z:p.getLineContent(ie)}},Ve=ne.t(w.getLineContent()),Ee=this.getInheritIndentForLine(f,Te,g.startLineNumber+1);if(!Ee){var de=oe?Ve:ce;return{beforeEnter:de,afterEnter:de}}var se=oe?Ve:Ee.indentation;return Ee.action===k.a.Indent&&(se=m.shiftIndent(se)),q.shouldDecrease(_e)&&(se=m.unshiftIndent(se)),{beforeEnter:oe?Ve:ce,afterEnter:se}},E.prototype.getIndentActionForType=function(f,p,g,m,w){if(f<4)return null;var B=this.getScopedLineTokens(p,g.startLineNumber,g.startColumn),z=this.getIndentRulesSupport(B.languageId);if(!z)return null;var oe=B.getLineContent(),he=oe.substr(0,g.startColumn-1-B.firstCharOffset),_e;if(g.isEmpty())_e=oe.substr(g.startColumn-1-B.firstCharOffset);else{var Se=this.getScopedLineTokens(p,g.endLineNumber,g.endColumn);_e=Se.getLineContent().substr(g.endColumn-1-B.firstCharOffset)}if(!z.shouldDecrease(he+_e)&&z.shouldDecrease(he+m+_e)){var q=this.getInheritIndentForLine(f,p,g.startLineNumber,!1);if(!q)return null;var Z=q.indentation;return q.action!==k.a.Indent&&(Z=w.unshiftIndent(Z)),Z}return null},E.prototype.getIndentMetadata=function(f,p){var g=this.getIndentRulesSupport(f.getLanguageIdentifier().id);return g?p<1||p>f.getLineCount()?null:g.getIndentMetadata(f.getLineContent(p)):null},E.prototype.getEnterAction=function(f,p,g){var m=this.getScopedLineTokens(p,g.startLineNumber,g.startColumn),w=this._getRichEditSupport(m.languageId);if(!w)return null;var B=m.getLineContent(),z=B.substr(0,g.startColumn-1-m.firstCharOffset),oe;if(g.isEmpty())oe=B.substr(g.startColumn-1-m.firstCharOffset);else{var he=this.getScopedLineTokens(p,g.endLineNumber,g.endColumn);oe=he.getLineContent().substr(g.endColumn-1-m.firstCharOffset)}var _e="";if(g.startLineNumber>1&&m.firstCharOffset===0){var Se=this.getScopedLineTokens(p,g.startLineNumber-1);Se.languageId===m.languageId&&(_e=Se.getLineContent())}var q=w.onEnter(f,_e,z,oe);if(!q)return null;var Z=q.indentAction,ce=q.appendText,Te=q.removeText||0;ce||(Z===k.a.Indent||Z===k.a.IndentOutdent?ce=" ":ce="");var Ve=this.getIndentationAtPosition(p,g.startLineNumber,g.startColumn);return Te&&(Ve=Ve.substring(0,Ve.length-Te)),{indentAction:Z,appendText:ce,removeText:Te,indentation:Ve}},E.prototype.getIndentationAtPosition=function(f,p,g){var m=f.getLineContent(p),w=ne.t(m);return w.length>g-1&&(w=w.substring(0,g-1)),w},E.prototype.getScopedLineTokens=function(f,p,g){f.forceTokenization(p);var m=f.getLineTokens(p),w=typeof g=="undefined"?f.getLineMaxColumn(p)-1:g-1;return Object(U.a)(m,w)},E.prototype.getBracketsSupport=function(f){var p=this._getRichEditSupport(f);return p&&p.brackets||null},E}(),H=new te},"ci+S":function(wt,P,o){},cl4r:function(wt,P,o){},cldp:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return o.e(197).then(o.bind(null,"7Xl7"))}})},cqdO:function(wt,P,o){"use strict";o.d(P,"a",function(){return Ve}),o.d(P,"f",function(){return se}),o.d(P,"e",function(){return fe}),o.d(P,"d",function(){return ye}),o.d(P,"b",function(){return He}),o.d(P,"c",function(){return $e});var I=o("4rho"),re=o("3/fG"),ne=o("pmY6"),N=o("746U"),k=o("6OMU"),U=o("ZCR3"),j=o("EffR"),G=o("MNsG"),R=o("pg8w"),_=o("uDWl"),x=o("MI8n"),K=o("4y0V"),D=function(){var we=function(ee,Pe){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Me){ve.__proto__=Me}||function(ve,Me){for(var Ie in Me)Me.hasOwnProperty(Ie)&&(ve[Ie]=Me[Ie])},we(ee,Pe)};return function(F,ee){we(F,ee);function Pe(){this.constructor=F}F.prototype=ee===null?Object.create(ee):(Pe.prototype=ee.prototype,new Pe)}}(),A;(function(we){we.TREE="tree",we.FORM="form"})(A||(A={}));var te=function(we){D(F,we);function F(ee,Pe){return we.call(this,"ListError ["+ee+"] "+Pe)||this}return F}(Error),H=o("feEw"),E=o("zrhQ"),f=o("qj0h"),p=function(){function we(F){this.spliceables=F}return we.prototype.splice=function(F,ee,Pe){this.spliceables.forEach(function(ve){return ve.splice(F,ee,Pe)})},we}(),g=o("Sdnv"),m=o("fpMC"),w=function(){var we=function(ee,Pe){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Me){ve.__proto__=Me}||function(ve,Me){for(var Ie in Me)Me.hasOwnProperty(Ie)&&(ve[Ie]=Me[Ie])},we(ee,Pe)};return function(F,ee){we(F,ee);function Pe(){this.constructor=F}F.prototype=ee===null?Object.create(ee):(Pe.prototype=ee.prototype,new Pe)}}(),B=function(){return B=Object.assign||function(we){for(var F,ee=1,Pe=arguments.length;ee<Pe;ee++){F=arguments[ee];for(var ve in F)Object.prototype.hasOwnProperty.call(F,ve)&&(we[ve]=F[ve])}return we},B.apply(this,arguments)},z=function(we,F,ee,Pe){var ve=arguments.length,Me=ve<3?F:Pe===null?Pe=Object.getOwnPropertyDescriptor(F,ee):Pe,Ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Me=Reflect.decorate(we,F,ee,Pe);else for(var pe=we.length-1;pe>=0;pe--)(Ie=we[pe])&&(Me=(ve<3?Ie(Me):ve>3?Ie(F,ee,Me):Ie(F,ee))||Me);return ve>3&&Me&&Object.defineProperty(F,ee,Me),Me},oe=function(){for(var we=0,F=0,ee=arguments.length;F<ee;F++)we+=arguments[F].length;for(var Pe=Array(we),ve=0,F=0;F<ee;F++)for(var Me=arguments[F],Ie=0,pe=Me.length;Ie<pe;Ie++,ve++)Pe[ve]=Me[Ie];return Pe},he=function(){function we(F){this.trait=F,this.renderedElements=[]}return Object.defineProperty(we.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),we.prototype.renderTemplate=function(F){return F},we.prototype.renderElement=function(F,ee,Pe){var ve=Object(k.k)(this.renderedElements,function(Ie){return Ie.templateData===Pe});if(ve>=0){var Me=this.renderedElements[ve];this.trait.unrender(Pe),Me.index=ee}else{var Me={index:ee,templateData:Pe};this.renderedElements.push(Me)}this.trait.renderIndex(ee,Pe)},we.prototype.splice=function(F,ee,Pe){for(var ve=[],Me=0,Ie=this.renderedElements;Me<Ie.length;Me++){var pe=Ie[Me];pe.index<F?ve.push(pe):pe.index>=F+ee&&ve.push({index:pe.index+Pe-ee,templateData:pe.templateData})}this.renderedElements=ve},we.prototype.renderIndexes=function(F){for(var ee=0,Pe=this.renderedElements;ee<Pe.length;ee++){var ve=Pe[ee],Me=ve.index,Ie=ve.templateData;F.indexOf(Me)>-1&&this.trait.renderIndex(Me,Ie)}},we.prototype.disposeTemplate=function(F){var ee=Object(k.k)(this.renderedElements,function(Pe){return Pe.templateData===F});if(ee<0)return;this.renderedElements.splice(ee,1)},we}(),_e=function(){function we(F){this._trait=F,this.indexes=[],this.sortedIndexes=[],this._onChange=new x.a,this.onChange=this._onChange.event}return Object.defineProperty(we.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"renderer",{get:function(){return new he(this)},enumerable:!0,configurable:!0}),we.prototype.splice=function(F,ee,Pe){var ve=Pe.length-ee,Me=F+ee,Ie=oe(this.sortedIndexes.filter(function(pe){return pe<F}),Pe.map(function(pe,nt){return pe?nt+F:-1}).filter(function(pe){return pe!==-1}),this.sortedIndexes.filter(function(pe){return pe>=Me}).map(function(pe){return pe+ve}));this.renderer.splice(F,ee,Pe.length),this._set(Ie,Ie)},we.prototype.renderIndex=function(F,ee){j.X(ee,this._trait,this.contains(F))},we.prototype.unrender=function(F){j.O(F,this._trait)},we.prototype.set=function(F,ee){return this._set(F,oe(F).sort(Xe),ee)},we.prototype._set=function(F,ee,Pe){var ve=this.indexes,Me=this.sortedIndexes;this.indexes=F,this.sortedIndexes=ee;var Ie=Xt(Me,F);return this.renderer.renderIndexes(Ie),this._onChange.fire({indexes:F,browserEvent:Pe}),ve},we.prototype.get=function(){return this.indexes},we.prototype.contains=function(F){return Object(k.c)(this.sortedIndexes,F,Xe)>=0},we.prototype.dispose=function(){Object(ne.f)(this._onChange)},z([U.a],we.prototype,"renderer",null),we}(),Se=function(we){w(F,we);function F(){return we.call(this,"focused")||this}return F.prototype.renderIndex=function(ee,Pe){we.prototype.renderIndex.call(this,ee,Pe),this.contains(ee)?Pe.setAttribute("aria-selected","true"):Pe.removeAttribute("aria-selected")},F}(_e),q=function(){function we(F,ee,Pe){this.trait=F,this.view=ee,this.identityProvider=Pe}return we.prototype.splice=function(F,ee,Pe){var ve=this;if(!this.identityProvider)return this.trait.splice(F,ee,Pe.map(function(){return!1}));var Me=this.trait.get().map(function(pe){return ve.identityProvider.getId(ve.view.element(pe)).toString()}),Ie=Pe.map(function(pe){return Me.indexOf(ve.identityProvider.getId(pe).toString())>-1});this.trait.splice(F,ee,Ie)},we}();function Z(we){return we.tagName==="INPUT"||we.tagName==="TEXTAREA"}var ce=function(){function we(F,ee,Pe){this.list=F,this.view=ee,this.disposables=new ne.b;var ve=Pe.multipleSelectionSupport!==!1;this.openController=Pe.openController||me;var Me=x.b.chain(Object(K.a)(ee.domNode,"keydown")).filter(function(Ie){return!Z(Ie.target)}).map(function(Ie){return new _.a(Ie)});Me.filter(function(Ie){return Ie.keyCode===3}).on(this.onEnter,this,this.disposables),Me.filter(function(Ie){return Ie.keyCode===16}).on(this.onUpArrow,this,this.disposables),Me.filter(function(Ie){return Ie.keyCode===18}).on(this.onDownArrow,this,this.disposables),Me.filter(function(Ie){return Ie.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),Me.filter(function(Ie){return Ie.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),Me.filter(function(Ie){return Ie.keyCode===9}).on(this.onEscape,this,this.disposables),ve&&Me.filter(function(Ie){return(G.e?Ie.metaKey:Ie.ctrlKey)&&Ie.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return we.prototype.onEnter=function(F){F.preventDefault(),F.stopPropagation(),this.list.setSelection(this.list.getFocus(),F.browserEvent),this.openController.shouldOpen(F.browserEvent)&&this.list.open(this.list.getFocus(),F.browserEvent)},we.prototype.onUpArrow=function(F){F.preventDefault(),F.stopPropagation(),this.list.focusPrevious(1,!1,F.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onDownArrow=function(F){F.preventDefault(),F.stopPropagation(),this.list.focusNext(1,!1,F.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onPageUpArrow=function(F){F.preventDefault(),F.stopPropagation(),this.list.focusPreviousPage(F.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onPageDownArrow=function(F){F.preventDefault(),F.stopPropagation(),this.list.focusNextPage(F.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onCtrlA=function(F){F.preventDefault(),F.stopPropagation(),this.list.setSelection(Object(k.u)(this.list.length),F.browserEvent),this.view.domNode.focus()},we.prototype.onEscape=function(F){F.preventDefault(),F.stopPropagation(),this.list.setSelection([],F.browserEvent),this.view.domNode.focus()},we.prototype.dispose=function(){this.disposables.dispose()},we}(),Te;(function(we){we[we.Idle=0]="Idle",we[we.Typing=1]="Typing"})(Te||(Te={}));var Ve=new(function(){function we(){}return we.prototype.mightProducePrintableCharacter=function(F){return F.ctrlKey||F.metaKey||F.altKey?!1:F.keyCode>=31&&F.keyCode<=56||F.keyCode>=21&&F.keyCode<=30||F.keyCode>=93&&F.keyCode<=102||F.keyCode>=80&&F.keyCode<=90},we}()),Ee=function(){function we(F,ee,Pe,ve){this.list=F,this.view=ee,this.keyboardNavigationLabelProvider=Pe,this.delegate=ve,this.enabled=!1,this.state=Te.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new ne.b,this.disposables=new ne.b,this.updateOptions(F.options)}return we.prototype.updateOptions=function(F){var ee=typeof F.enableKeyboardNavigation=="undefined"?!0:!!F.enableKeyboardNavigation;ee?this.enable():this.disable(),typeof F.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=F.automaticKeyboardNavigation)},we.prototype.enable=function(){var F=this;if(this.enabled)return;var ee=x.b.chain(Object(K.a)(this.view.domNode,"keydown")).filter(function(Me){return!Z(Me.target)}).filter(function(){return F.automaticKeyboardNavigation||F.triggered}).map(function(Me){return new _.a(Me)}).filter(function(Me){return F.delegate.mightProducePrintableCharacter(Me)}).forEach(function(Me){Me.stopPropagation(),Me.preventDefault()}).map(function(Me){return Me.browserEvent.key}).event,Pe=x.b.debounce(ee,function(){return null},800),ve=x.b.reduce(x.b.any(ee,Pe),function(Me,Ie){return Ie===null?null:(Me||"")+Ie});ve(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},we.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},we.prototype.onInput=function(F){if(!F){this.state=Te.Idle,this.triggered=!1;return}var ee=this.list.getFocus(),Pe=ee.length>0?ee[0]:0,ve=this.state===Te.Idle?1:0;this.state=Te.Typing;for(var Me=0;Me<this.list.length;Me++){var Ie=(Pe+Me+ve)%this.list.length,pe=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(Ie)),nt=pe&&pe.toString();if(typeof nt=="undefined"||Object(m.f)(F,nt)){this.list.setFocus([Ie]),this.list.reveal(Ie);return}}},we.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},we}(),de=function(){function we(F,ee){this.list=F,this.view=ee,this.disposables=new ne.b;var Pe=x.b.chain(Object(K.a)(ee.domNode,"keydown")).filter(function(ve){return!Z(ve.target)}).map(function(ve){return new _.a(ve)});Pe.filter(function(ve){return ve.keyCode===2&&!ve.ctrlKey&&!ve.metaKey&&!ve.shiftKey&&!ve.altKey}).on(this.onTab,this,this.disposables)}return we.prototype.onTab=function(F){if(F.target!==this.view.domNode)return;var ee=this.list.getFocus();if(ee.length===0)return;var Pe=this.view.domElement(ee[0]);if(!Pe)return;var ve=Pe.querySelector("[tabIndex]");if(!ve||!(ve instanceof HTMLElement)||ve.tabIndex===-1)return;var Me=window.getComputedStyle(ve);if(Me.visibility==="hidden"||Me.display==="none")return;F.preventDefault(),F.stopPropagation(),ve.focus()},we.prototype.dispose=function(){this.disposables.dispose()},we}();function se(we){return G.e?we.browserEvent.metaKey:we.browserEvent.ctrlKey}function fe(we){return we.browserEvent.shiftKey}function ie(we){return we instanceof MouseEvent&&we.button===2}var Q={isSelectionSingleChangeEvent:se,isSelectionRangeChangeEvent:fe},me={shouldOpen:function(F){return F instanceof MouseEvent?!ie(F):!0}},ye=function(){function we(F){this.list=F,this.disposables=new ne.b,this.multipleSelectionSupport=!(F.options.multipleSelectionSupport===!1),this.multipleSelectionSupport&&(this.multipleSelectionController=F.options.multipleSelectionController||Q),this.openController=F.options.openController||me,this.mouseSupport=typeof F.options.mouseSupport=="undefined"||!!F.options.mouseSupport,this.mouseSupport&&(F.onMouseDown(this.onMouseDown,this,this.disposables),F.onContextMenu(this.onContextMenu,this,this.disposables),F.onMouseDblClick(this.onDoubleClick,this,this.disposables),F.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(R.b.addTarget(F.getHTMLElement()))),F.onMouseClick(this.onPointer,this,this.disposables),F.onMouseMiddleClick(this.onPointer,this,this.disposables),F.onTap(this.onPointer,this,this.disposables)}return we.prototype.isSelectionSingleChangeEvent=function(F){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(F):G.e?F.browserEvent.metaKey:F.browserEvent.ctrlKey},we.prototype.isSelectionRangeChangeEvent=function(F){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(F):F.browserEvent.shiftKey},we.prototype.isSelectionChangeEvent=function(F){return this.isSelectionSingleChangeEvent(F)||this.isSelectionRangeChangeEvent(F)},we.prototype.onMouseDown=function(F){document.activeElement!==F.browserEvent.target&&this.list.domFocus()},we.prototype.onContextMenu=function(F){var ee=typeof F.index=="undefined"?[]:[F.index];this.list.setFocus(ee,F.browserEvent)},we.prototype.onPointer=function(F){if(!this.mouseSupport)return;if(Z(F.browserEvent.target))return;var ee=this.list.getFocus()[0],Pe=this.list.getSelection();ee=ee===void 0?Pe[0]:ee;var ve=F.index;if(typeof ve=="undefined"){this.list.setFocus([],F.browserEvent),this.list.setSelection([],F.browserEvent);return}if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(F))return this.changeSelection(F,ee);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(F))return this.changeSelection(F,ee);this.list.setFocus([ve],F.browserEvent),ie(F.browserEvent)||(this.list.setSelection([ve],F.browserEvent),this.openController.shouldOpen(F.browserEvent)&&this.list.open([ve],F.browserEvent))},we.prototype.onDoubleClick=function(F){if(Z(F.browserEvent.target))return;if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(F))return;var ee=this.list.getFocus();this.list.setSelection(ee,F.browserEvent),this.list.pin(ee)},we.prototype.changeSelection=function(F,ee){var Pe=F.index;if(this.isSelectionRangeChangeEvent(F)&&ee!==void 0){var ve=Math.min(ee,Pe),Me=Math.max(ee,Pe),Ie=Object(k.u)(ve,Me+1),pe=this.list.getSelection(),nt=Pt(Xt(pe,[ee]),ee);if(nt.length===0)return;var _t=Xt(Ie,Ke(pe,nt));this.list.setSelection(_t,F.browserEvent)}else if(this.isSelectionSingleChangeEvent(F)){var pe=this.list.getSelection(),_t=pe.filter(function(zt){return zt!==Pe});this.list.setFocus([Pe]),pe.length===_t.length?this.list.setSelection(oe(_t,[Pe]),F.browserEvent):this.list.setSelection(_t,F.browserEvent)}},we.prototype.dispose=function(){this.disposables.dispose()},we}(),He=function(){function we(F,ee){this.styleElement=F,this.selectorSuffix=ee}return we.prototype.style=function(F){var ee=this.selectorSuffix&&"."+this.selectorSuffix,Pe=[];F.listBackground&&(F.listBackground.isOpaque()?Pe.push(".monaco-list"+ee+" .monaco-list-rows { background: "+F.listBackground+"; }"):G.e||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),F.listFocusBackground&&(Pe.push(".monaco-list"+ee+":focus .monaco-list-row.focused { background-color: "+F.listFocusBackground+"; }"),Pe.push(".monaco-list"+ee+":focus .monaco-list-row.focused:hover { background-color: "+F.listFocusBackground+"; }")),F.listFocusForeground&&Pe.push(".monaco-list"+ee+":focus .monaco-list-row.focused { color: "+F.listFocusForeground+"; }"),F.listActiveSelectionBackground&&(Pe.push(".monaco-list"+ee+":focus .monaco-list-row.selected { background-color: "+F.listActiveSelectionBackground+"; }"),Pe.push(".monaco-list"+ee+":focus .monaco-list-row.selected:hover { background-color: "+F.listActiveSelectionBackground+"; }")),F.listActiveSelectionForeground&&Pe.push(".monaco-list"+ee+":focus .monaco-list-row.selected { color: "+F.listActiveSelectionForeground+"; }"),F.listFocusAndSelectionBackground&&Pe.push(`
.monaco-drag-image,
.monaco-list`+ee+":focus .monaco-list-row.selected.focused { background-color: "+F.listFocusAndSelectionBackground+`; }
`),F.listFocusAndSelectionForeground&&Pe.push(`
.monaco-drag-image,
.monaco-list`+ee+":focus .monaco-list-row.selected.focused { color: "+F.listFocusAndSelectionForeground+`; }
`),F.listInactiveFocusBackground&&(Pe.push(".monaco-list"+ee+" .monaco-list-row.focused { background-color: "+F.listInactiveFocusBackground+"; }"),Pe.push(".monaco-list"+ee+" .monaco-list-row.focused:hover { background-color: "+F.listInactiveFocusBackground+"; }")),F.listInactiveSelectionBackground&&(Pe.push(".monaco-list"+ee+" .monaco-list-row.selected { background-color: "+F.listInactiveSelectionBackground+"; }"),Pe.push(".monaco-list"+ee+" .monaco-list-row.selected:hover { background-color: "+F.listInactiveSelectionBackground+"; }")),F.listInactiveSelectionForeground&&Pe.push(".monaco-list"+ee+" .monaco-list-row.selected { color: "+F.listInactiveSelectionForeground+"; }"),F.listHoverBackground&&Pe.push(".monaco-list"+ee+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+F.listHoverBackground+"; }"),F.listHoverForeground&&Pe.push(".monaco-list"+ee+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+F.listHoverForeground+"; }"),F.listSelectionOutline&&Pe.push(".monaco-list"+ee+" .monaco-list-row.selected { outline: 1px dotted "+F.listSelectionOutline+"; outline-offset: -1px; }"),F.listFocusOutline&&Pe.push(`
.monaco-drag-image,
.monaco-list`+ee+":focus .monaco-list-row.focused { outline: 1px solid "+F.listFocusOutline+`; outline-offset: -1px; }
`),F.listInactiveFocusOutline&&Pe.push(".monaco-list"+ee+" .monaco-list-row.focused { outline: 1px dotted "+F.listInactiveFocusOutline+"; outline-offset: -1px; }"),F.listHoverOutline&&Pe.push(".monaco-list"+ee+" .monaco-list-row:hover { outline: 1px dashed "+F.listHoverOutline+"; outline-offset: -1px; }"),F.listDropBackground&&Pe.push(`
.monaco-list`+ee+`.drop-target,
.monaco-list`+ee+` .monaco-list-rows.drop-target,
.monaco-list`+ee+" .monaco-list-row.drop-target { background-color: "+F.listDropBackground+` !important; color: inherit !important; }
`),F.listFilterWidgetBackground&&Pe.push(".monaco-list-type-filter { background-color: "+F.listFilterWidgetBackground+" }"),F.listFilterWidgetOutline&&Pe.push(".monaco-list-type-filter { border: 1px solid "+F.listFilterWidgetOutline+"; }"),F.listFilterWidgetNoMatchesOutline&&Pe.push(".monaco-list-type-filter.no-matches { border: 1px solid "+F.listFilterWidgetNoMatchesOutline+"; }"),F.listMatchesShadow&&Pe.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+F.listMatchesShadow+"; }");var ve=Pe.join(`
`);ve!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=ve)},we}(),tt={listFocusBackground:E.a.fromHex("#7FB0D0"),listActiveSelectionBackground:E.a.fromHex("#0E639C"),listActiveSelectionForeground:E.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:E.a.fromHex("#094771"),listFocusAndSelectionForeground:E.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:E.a.fromHex("#3F3F46"),listHoverBackground:E.a.fromHex("#2A2D2E"),listDropBackground:E.a.fromHex("#383B3D"),treeIndentGuidesStroke:E.a.fromHex("#a9a9a9")},Et={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:A.TREE};function Pt(we,F){var ee=we.indexOf(F);if(ee===-1)return[];for(var Pe=[],ve=ee-1;ve>=0&&we[ve]===F-(ee-ve);)Pe.push(we[ve--]);for(Pe.reverse(),ve=ee;ve<we.length&&we[ve]===F+(ve-ee);)Pe.push(we[ve++]);return Pe}function Xt(we,F){for(var ee=[],Pe=0,ve=0;Pe<we.length||ve<F.length;)if(Pe>=we.length)ee.push(F[ve++]);else if(ve>=F.length)ee.push(we[Pe++]);else if(we[Pe]===F[ve]){ee.push(we[Pe]),Pe++,ve++;continue}else we[Pe]<F[ve]?ee.push(we[Pe++]):ee.push(F[ve++]);return ee}function Ke(we,F){for(var ee=[],Pe=0,ve=0;Pe<we.length||ve<F.length;)if(Pe>=we.length)ee.push(F[ve++]);else if(ve>=F.length)ee.push(we[Pe++]);else if(we[Pe]===F[ve]){Pe++,ve++;continue}else we[Pe]<F[ve]?ee.push(we[Pe++]):ve++;return ee}var Xe=function(F,ee){return F-ee},Ze=function(){function we(F,ee){this._templateId=F,this.renderers=ee}return Object.defineProperty(we.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),we.prototype.renderTemplate=function(F){return this.renderers.map(function(ee){return ee.renderTemplate(F)})},we.prototype.renderElement=function(F,ee,Pe,ve){for(var Me=0,Ie=0,pe=this.renderers;Ie<pe.length;Ie++){var nt=pe[Ie];nt.renderElement(F,ee,Pe[Me++],ve)}},we.prototype.disposeElement=function(F,ee,Pe,ve){for(var Me=0,Ie=0,pe=this.renderers;Ie<pe.length;Ie++){var nt=pe[Ie];nt.disposeElement&&nt.disposeElement(F,ee,Pe[Me],ve),Me+=1}},we.prototype.disposeTemplate=function(F){for(var ee=0,Pe=0,ve=this.renderers;Pe<ve.length;Pe++){var Me=ve[Pe];Me.disposeTemplate(F[ee++])}},we}(),Ye=function(){function we(F){this.accessibilityProvider=F,this.templateId="a18n"}return we.prototype.renderTemplate=function(F){return F},we.prototype.renderElement=function(F,ee,Pe){var ve=this.accessibilityProvider.getAriaLabel(F);ve?Pe.setAttribute("aria-label",ve):Pe.removeAttribute("aria-label");var Me=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(F);typeof Me=="number"?Pe.setAttribute("aria-level",""+Me):Pe.removeAttribute("aria-level")},we.prototype.disposeTemplate=function(F){},we}(),Fe=function(){function we(F,ee){this.list=F,this.dnd=ee}return we.prototype.getDragElements=function(F){var ee=this.list.getSelectedElements(),Pe=ee.indexOf(F)>-1?ee:[F];return Pe},we.prototype.getDragURI=function(F){return this.dnd.getDragURI(F)},we.prototype.getDragLabel=function(F,ee){return this.dnd.getDragLabel?this.dnd.getDragLabel(F,ee):void 0},we.prototype.onDragStart=function(F,ee){this.dnd.onDragStart&&this.dnd.onDragStart(F,ee)},we.prototype.onDragOver=function(F,ee,Pe,ve){return this.dnd.onDragOver(F,ee,Pe,ve)},we.prototype.onDragEnd=function(F){this.dnd.onDragEnd&&this.dnd.onDragEnd(F)},we.prototype.drop=function(F,ee,Pe,ve){this.dnd.drop(F,ee,Pe,ve)},we}(),$e=function(){function we(F,ee,Pe,ve,Me){Me===void 0&&(Me=Et),this.user=F,this._options=Me,this.eventBufferer=new x.c,this.disposables=new ne.b,this._onDidOpen=new x.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new x.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new x.a,this.onDidDispose=this._onDidDispose.event,this.focus=new Se,this.selection=new _e("selected"),Object(f.g)(Me,tt,!1);var Ie=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=Me.accessibilityProvider,this.accessibilityProvider&&(Ie.push(new Ye(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),ve=ve.map(function(Mt){return new Ze(Mt.templateId,oe(Ie,[Mt]))});var pe=B(B({},Me),{dnd:Me.dnd&&new Fe(this,Me.dnd)});if(this.view=new H.b(ee,Pe,ve,pe),typeof Me.ariaRole!="string"?this.view.domNode.setAttribute("role",A.TREE):this.view.domNode.setAttribute("role",Me.ariaRole),Me.styleController)this.styleController=Me.styleController(this.view.domId);else{var nt=j.v(this.view.domNode);this.styleController=new He(nt,this.view.domId)}if(this.spliceable=new p([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=x.b.map(Object(K.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=x.b.map(Object(K.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new de(this,this.view)),typeof Me.keyboardSupport!="boolean"||Me.keyboardSupport){var _t=new ce(this,this.view,Me);this.disposables.add(_t)}if(Me.keyboardNavigationLabelProvider){var Rt=Me.keyboardNavigationDelegate||Ve;this.typeLabelController=new Ee(this,this.view,Me.keyboardNavigationLabelProvider,Rt),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(we.prototype,"onFocusChange",{get:function(){var ee=this;return x.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(Pe){return ee.toListEvent(Pe)})},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onSelectionChange",{get:function(){var ee=this;return x.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(Pe){return ee.toListEvent(Pe)})},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onContextMenu",{get:function(){var ee=this,Pe=x.b.chain(Object(K.a)(this.view.domNode,"keydown")).map(function(Ie){return new _.a(Ie)}).filter(function(Ie){return ee.didJustPressContextMenuKey=Ie.keyCode===58||Ie.shiftKey&&Ie.keyCode===68}).filter(function(Ie){return Ie.preventDefault(),Ie.stopPropagation(),!1}).event,ve=x.b.chain(Object(K.a)(this.view.domNode,"keyup")).filter(function(){var Ie=ee.didJustPressContextMenuKey;return ee.didJustPressContextMenuKey=!1,Ie}).filter(function(){return ee.getFocus().length>0&&!!ee.view.domElement(ee.getFocus()[0])}).map(function(Ie){var pe=ee.getFocus()[0],nt=ee.view.element(pe),_t=ee.view.domElement(pe);return{index:pe,element:nt,anchor:_t,browserEvent:Ie}}).event,Me=x.b.chain(this.view.onContextMenu).filter(function(){return!ee.didJustPressContextMenuKey}).map(function(Ie){var pe=Ie.element,nt=Ie.index,_t=Ie.browserEvent;return{element:pe,index:nt,anchor:{x:_t.clientX+1,y:_t.clientY},browserEvent:_t}}).event;return x.b.any(Pe,ve,Me)},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onKeyDown",{get:function(){return Object(K.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),we.prototype.createMouseController=function(F){return new ye(this)},we.prototype.updateOptions=function(F){F===void 0&&(F={}),this._options=B(B({},this._options),F),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(we.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),we.prototype.splice=function(F,ee,Pe){var ve=this;if(Pe===void 0&&(Pe=[]),F<0||F>this.view.length)throw new te(this.user,"Invalid start index: "+F);if(ee<0)throw new te(this.user,"Invalid delete count: "+ee);if(ee===0&&Pe.length===0)return;this.eventBufferer.bufferEvents(function(){return ve.spliceable.splice(F,ee,Pe)})},we.prototype.rerender=function(){this.view.rerender()},we.prototype.element=function(F){return this.view.element(F)},Object.defineProperty(we.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(ee){this.view.setScrollTop(ee)},enumerable:!0,configurable:!0}),we.prototype.domFocus=function(){this.view.domNode.focus()},we.prototype.layout=function(F,ee){this.view.layout(F,ee)},we.prototype.setSelection=function(F,ee){for(var Pe=0,ve=F;Pe<ve.length;Pe++){var Me=ve[Pe];if(Me<0||Me>=this.length)throw new te(this.user,"Invalid index "+Me)}this.selection.set(F,ee)},we.prototype.getSelection=function(){return this.selection.get()},we.prototype.getSelectedElements=function(){var F=this;return this.getSelection().map(function(ee){return F.view.element(ee)})},we.prototype.setFocus=function(F,ee){for(var Pe=0,ve=F;Pe<ve.length;Pe++){var Me=ve[Pe];if(Me<0||Me>=this.length)throw new te(this.user,"Invalid index "+Me)}this.focus.set(F,ee)},we.prototype.focusNext=function(F,ee,Pe,ve){if(F===void 0&&(F=1),ee===void 0&&(ee=!1),this.length===0)return;var Me=this.focus.get(),Ie=this.findNextIndex(Me.length>0?Me[0]+F:0,ee,ve);Ie>-1&&this.setFocus([Ie],Pe)},we.prototype.focusPrevious=function(F,ee,Pe,ve){if(F===void 0&&(F=1),ee===void 0&&(ee=!1),this.length===0)return;var Me=this.focus.get(),Ie=this.findPreviousIndex(Me.length>0?Me[0]-F:0,ee,ve);Ie>-1&&this.setFocus([Ie],Pe)},we.prototype.focusNextPage=function(F,ee){var Pe=this,ve=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ve=ve===0?0:ve-1;var Me=this.view.element(ve),Ie=this.getFocusedElements()[0];if(Ie!==Me){var pe=this.findPreviousIndex(ve,!1,ee);pe>-1&&Ie!==this.view.element(pe)?this.setFocus([pe],F):this.setFocus([ve],F)}else{var nt=this.view.getScrollTop();this.view.setScrollTop(nt+this.view.renderHeight-this.view.elementHeight(ve)),this.view.getScrollTop()!==nt&&setTimeout(function(){return Pe.focusNextPage(F,ee)},0)}},we.prototype.focusPreviousPage=function(F,ee){var Pe=this,ve,Me=this.view.getScrollTop();Me===0?ve=this.view.indexAt(Me):ve=this.view.indexAfter(Me-1);var Ie=this.view.element(ve),pe=this.getFocusedElements()[0];if(pe!==Ie){var nt=this.findNextIndex(ve,!1,ee);nt>-1&&pe!==this.view.element(nt)?this.setFocus([nt],F):this.setFocus([ve],F)}else{var _t=Me;this.view.setScrollTop(Me-this.view.renderHeight),this.view.getScrollTop()!==_t&&setTimeout(function(){return Pe.focusPreviousPage(F,ee)},0)}},we.prototype.focusLast=function(F,ee){if(this.length===0)return;var Pe=this.findPreviousIndex(this.length-1,!1,ee);Pe>-1&&this.setFocus([Pe],F)},we.prototype.focusFirst=function(F,ee){if(this.length===0)return;var Pe=this.findNextIndex(0,!1,ee);Pe>-1&&this.setFocus([Pe],F)},we.prototype.findNextIndex=function(F,ee,Pe){ee===void 0&&(ee=!1);for(var ve=0;ve<this.length;ve++){if(F>=this.length&&!ee)return-1;if(F=F%this.length,!Pe||Pe(this.element(F)))return F;F++}return-1},we.prototype.findPreviousIndex=function(F,ee,Pe){ee===void 0&&(ee=!1);for(var ve=0;ve<this.length;ve++){if(F<0&&!ee)return-1;if(F=(this.length+F%this.length)%this.length,!Pe||Pe(this.element(F)))return F;F--}return-1},we.prototype.getFocus=function(){return this.focus.get()},we.prototype.getFocusedElements=function(){var F=this;return this.getFocus().map(function(ee){return F.view.element(ee)})},we.prototype.reveal=function(F,ee){if(F<0||F>=this.length)throw new te(this.user,"Invalid index "+F);var Pe=this.view.getScrollTop(),ve=this.view.elementTop(F),Me=this.view.elementHeight(F);if(Object(N.h)(ee)){var Ie=Me-this.view.renderHeight;this.view.setScrollTop(Ie*Object(g.a)(ee,0,1)+ve)}else{var pe=ve+Me,nt=Pe+this.view.renderHeight;ve<Pe&&pe>=nt||(ve<Pe?this.view.setScrollTop(ve):pe>=nt&&this.view.setScrollTop(pe-this.view.renderHeight))}},we.prototype.getRelativeTop=function(F){if(F<0||F>=this.length)throw new te(this.user,"Invalid index "+F);var ee=this.view.getScrollTop(),Pe=this.view.elementTop(F),ve=this.view.elementHeight(F);if(Pe<ee||Pe+ve>ee+this.view.renderHeight)return null;var Me=ve-this.view.renderHeight;return Math.abs((ee-Pe)/Me)},we.prototype.getHTMLElement=function(){return this.view.domNode},we.prototype.open=function(F,ee){for(var Pe=this,ve=0,Me=F;ve<Me.length;ve++){var Ie=Me[ve];if(Ie<0||Ie>=this.length)throw new te(this.user,"Invalid index "+Ie)}this._onDidOpen.fire({indexes:F,elements:F.map(function(pe){return Pe.view.element(pe)}),browserEvent:ee})},we.prototype.pin=function(F,ee){for(var Pe=this,ve=0,Me=F;ve<Me.length;ve++){var Ie=Me[ve];if(Ie<0||Ie>=this.length)throw new te(this.user,"Invalid index "+Ie)}this._onDidPin.fire({indexes:F,elements:F.map(function(pe){return Pe.view.element(pe)}),browserEvent:ee})},we.prototype.style=function(F){this.styleController.style(F)},we.prototype.toListEvent=function(F){var ee=this,Pe=F.indexes,ve=F.browserEvent;return{indexes:Pe,elements:Pe.map(function(Me){return ee.view.element(Me)}),browserEvent:ve}},we.prototype._onFocusChange=function(){var F=this.focus.get();j.X(this.view.domNode,"element-focused",F.length>0),this.onDidChangeActiveDescendant()},we.prototype.onDidChangeActiveDescendant=function(){var F,ee=this.focus.get();if(ee.length>0){var Pe=void 0;((F=this.accessibilityProvider)===null||F===void 0?void 0:F.getActiveDescendantId)&&(Pe=this.accessibilityProvider.getActiveDescendantId(this.view.element(ee[0]))),this.view.domNode.setAttribute("aria-activedescendant",Pe||this.view.getElementDomId(ee[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},we.prototype._onSelectionChange=function(){var F=this.selection.get();j.X(this.view.domNode,"selection-none",F.length===0),j.X(this.view.domNode,"selection-single",F.length===1),j.X(this.view.domNode,"selection-multiple",F.length>1)},we.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},z([U.a],we.prototype,"onFocusChange",null),z([U.a],we.prototype,"onSelectionChange",null),z([U.a],we.prototype,"onContextMenu",null),we}()},dBaI:function(wt,P,o){"use strict";o.d(P,"a",function(){return re}),o.d(P,"b",function(){return k});var I=o("N0LK"),re=function(){function U(j,G,R,_){this.startColumn=j,this.endColumn=G,this.className=R,this.type=_}return U._equals=function(j,G){return j.startColumn===G.startColumn&&j.endColumn===G.endColumn&&j.className===G.className&&j.type===G.type},U.equalsArr=function(j,G){var R=j.length,_=G.length;if(R!==_)return!1;for(var x=0;x<R;x++)if(!U._equals(j[x],G[x]))return!1;return!0},U.filter=function(j,G,R,_){if(j.length===0)return[];for(var x=[],K=0,D=0,A=j.length;D<A;D++){var te=j[D],H=te.range;if(H.endLineNumber<G||H.startLineNumber>G)continue;if(H.isEmpty()&&(te.type===0||te.type===3))continue;var E=H.startLineNumber===G?H.startColumn:R,f=H.endLineNumber===G?H.endColumn:_;x[K++]=new U(E,f,te.inlineClassName,te.type)}return x},U.compare=function(j,G){return j.startColumn===G.startColumn?j.endColumn===G.endColumn?j.className<G.className?-1:j.className>G.className?1:0:j.endColumn-G.endColumn:j.startColumn-G.startColumn},U}(),ne=function(){function U(j,G,R){this.startOffset=j,this.endOffset=G,this.className=R}return U}(),N=function(){function U(){this.stopOffsets=[],this.classNames=[],this.count=0}return U.prototype.consumeLowerThan=function(j,G,R){for(;this.count>0&&this.stopOffsets[0]<j;){for(var _=0;_+1<this.count&&this.stopOffsets[_]===this.stopOffsets[_+1];)_++;R.push(new ne(G,this.stopOffsets[_],this.classNames.join(" "))),G=this.stopOffsets[_]+1,this.stopOffsets.splice(0,_+1),this.classNames.splice(0,_+1),this.count-=_+1}return this.count>0&&G<j&&(R.push(new ne(G,j-1,this.classNames.join(" "))),G=j),G},U.prototype.insert=function(j,G){if(this.count===0||this.stopOffsets[this.count-1]<=j)this.stopOffsets.push(j),this.classNames.push(G);else for(var R=0;R<this.count;R++)if(this.stopOffsets[R]>=j){this.stopOffsets.splice(R,0,j),this.classNames.splice(R,0,G);break}this.count++;return},U}(),k=function(){function U(){}return U.normalize=function(j,G){if(G.length===0)return[];for(var R=[],_=new N,x=0,K=0,D=G.length;K<D;K++){var A=G[K],te=A.startColumn,H=A.endColumn,E=A.className;if(te>1){var f=j.charCodeAt(te-2);I.z(f)&&te--}if(H>1){var f=j.charCodeAt(H-2);I.z(f)&&H--}var p=te-1,g=H-2;x=_.consumeLowerThan(p,x,R),_.count===0&&(x=p),_.insert(g,E)}return _.consumeLowerThan(1073741824,x,R),R},U}()},dFcq:function(wt,P,o){},dgXF:function(wt,P,o){"use strict";o.r(P),o.d(P,"FoldingController",function(){return ee}),o.d(P,"foldBackgroundBackground",function(){return Mn});var I=o("CjOT"),re=o("3/fG"),ne=o("746U"),N=o("N0LK"),k=o("X+cX"),U=o("/kV6"),j=o("pmY6"),G=o("sswD"),R=o("MI8n"),_=65535,x=16777215,K=4278190080,D=function(){function kt(pt,gt,Dt){if(pt.length!==gt.length||pt.length>_)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=pt,this._endIndexes=gt,this._collapseStates=new Uint32Array(Math.ceil(pt.length/32)),this._types=Dt,this._parentsComputed=!1}return kt.prototype.ensureParentIndices=function(){var pt=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var gt=[],Dt=function(_n,On){var Pn=gt[gt.length-1];return pt.getStartLineNumber(Pn)<=_n&&pt.getEndLineNumber(Pn)>=On},Lt=0,Vt=this._startIndexes.length;Lt<Vt;Lt++){var Jt=this._startIndexes[Lt],nn=this._endIndexes[Lt];if(Jt>x||nn>x)throw new Error("startLineNumber or endLineNumber must not exceed "+x);for(;gt.length>0&&!Dt(Jt,nn);)gt.pop();var sn=gt.length>0?gt[gt.length-1]:-1;gt.push(Lt),this._startIndexes[Lt]=Jt+((sn&255)<<24),this._endIndexes[Lt]=nn+((sn&65280)<<16)}}},Object.defineProperty(kt.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),kt.prototype.getStartLineNumber=function(pt){return this._startIndexes[pt]&x},kt.prototype.getEndLineNumber=function(pt){return this._endIndexes[pt]&x},kt.prototype.getType=function(pt){return this._types?this._types[pt]:void 0},kt.prototype.hasTypes=function(){return!!this._types},kt.prototype.isCollapsed=function(pt){var gt=pt/32|0,Dt=pt%32;return(this._collapseStates[gt]&1<<Dt)!==0},kt.prototype.setCollapsed=function(pt,gt){var Dt=pt/32|0,Lt=pt%32,Vt=this._collapseStates[Dt];gt?this._collapseStates[Dt]=Vt|1<<Lt:this._collapseStates[Dt]=Vt&~(1<<Lt)},kt.prototype.toRegion=function(pt){return new A(this,pt)},kt.prototype.getParentIndex=function(pt){this.ensureParentIndices();var gt=((this._startIndexes[pt]&K)>>>24)+((this._endIndexes[pt]&K)>>>16);return gt===_?-1:gt},kt.prototype.contains=function(pt,gt){return this.getStartLineNumber(pt)<=gt&&this.getEndLineNumber(pt)>=gt},kt.prototype.findIndex=function(pt){var gt=0,Dt=this._startIndexes.length;if(Dt===0)return-1;for(;gt<Dt;){var Lt=Math.floor((gt+Dt)/2);pt<this.getStartLineNumber(Lt)?Dt=Lt:gt=Lt+1}return gt-1},kt.prototype.findRange=function(pt){var gt=this.findIndex(pt);if(gt>=0){var Dt=this.getEndLineNumber(gt);if(Dt>=pt)return gt;for(gt=this.getParentIndex(gt);gt!==-1;){if(this.contains(gt,pt))return gt;gt=this.getParentIndex(gt)}}return-1},kt.prototype.toString=function(){for(var pt=[],gt=0;gt<this.length;gt++)pt[gt]="["+(this.isCollapsed(gt)?"+":"-")+"] "+this.getStartLineNumber(gt)+"/"+this.getEndLineNumber(gt);return pt.join(", ")},kt}(),A=function(){function kt(pt,gt){this.ranges=pt,this.index=gt}return Object.defineProperty(kt.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(kt.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(kt.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(kt.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(kt.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),kt.prototype.containedBy=function(pt){return pt.startLineNumber<=this.startLineNumber&&pt.endLineNumber>=this.endLineNumber},kt.prototype.containsLine=function(pt){return this.startLineNumber<=pt&&pt<=this.endLineNumber},kt}(),te=function(){function kt(pt,gt){this._updateEventEmitter=new R.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=pt,this._decorationProvider=gt,this._regions=new D(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(kt.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(kt.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(kt.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),kt.prototype.toggleCollapseState=function(pt){var gt=this;if(!pt.length)return;var Dt={};this._decorationProvider.changeDecorations(function(Lt){for(var Vt=0,Jt=pt;Vt<Jt.length;Vt++){var nn=Jt[Vt],sn=nn.regionIndex,ln=gt._editorDecorationIds[sn];if(ln&&!Dt[ln]){Dt[ln]=!0;var _n=!gt._regions.isCollapsed(sn);gt._regions.setCollapsed(sn,_n),Lt.changeDecorationOptions(ln,gt._decorationProvider.getDecorationOption(_n))}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:pt})},kt.prototype.update=function(pt,gt){var Dt=this;gt===void 0&&(gt=[]);for(var Lt=[],Vt=function(Qn,gi){for(var Kn=0,yi=gt;Kn<yi.length;Kn++){var mi=yi[Kn];if(Qn<mi&&mi<=gi)return!0}return!1},Jt=function(Qn,gi){var Kn=pt.getStartLineNumber(Qn);gi&&Vt(Kn,pt.getEndLineNumber(Qn))&&(gi=!1),pt.setCollapsed(Qn,gi);var yi=Dt._textModel.getLineMaxColumn(Kn),mi={startLineNumber:Kn,startColumn:yi,endLineNumber:Kn,endColumn:yi};Lt.push({range:mi,options:Dt._decorationProvider.getDecorationOption(gi)})},nn=0,sn=function(){for(;nn<Dt._regions.length;){var Qn=Dt._regions.isCollapsed(nn);if(nn++,Qn)return nn-1}return-1},ln=0,_n=sn();_n!==-1&&ln<pt.length;){var On=this._textModel.getDecorationRange(this._editorDecorationIds[_n]);if(On){var Pn=On.startLineNumber;if(this._textModel.getLineMaxColumn(Pn)===On.startColumn)for(;ln<pt.length;){var Gn=pt.getStartLineNumber(ln);if(Pn>=Gn)Jt(ln,Pn===Gn),ln++;else break}}_n=sn()}for(;ln<pt.length;)Jt(ln,!1),ln++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,Lt),this._regions=pt,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},kt.prototype.getMemento=function(){for(var pt=[],gt=0;gt<this._regions.length;gt++)if(this._regions.isCollapsed(gt)){var Dt=this._textModel.getDecorationRange(this._editorDecorationIds[gt]);if(Dt){var Lt=Dt.startLineNumber,Vt=Dt.endLineNumber+this._regions.getEndLineNumber(gt)-this._regions.getStartLineNumber(gt);pt.push({startLineNumber:Lt,endLineNumber:Vt})}}return pt.length>0?pt:void 0},kt.prototype.applyMemento=function(pt){if(!Array.isArray(pt))return;for(var gt=[],Dt=0,Lt=pt;Dt<Lt.length;Dt++){var Vt=Lt[Dt],Jt=this.getRegionAtLine(Vt.startLineNumber);Jt&&!Jt.isCollapsed&&gt.push(Jt)}this.toggleCollapseState(gt)},kt.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},kt.prototype.getAllRegionsAtLine=function(pt,gt){var Dt=[];if(this._regions)for(var Lt=this._regions.findRange(pt),Vt=1;Lt>=0;){var Jt=this._regions.toRegion(Lt);(!gt||gt(Jt,Vt))&&Dt.push(Jt),Vt++,Lt=Jt.parentIndex}return Dt},kt.prototype.getRegionAtLine=function(pt){if(this._regions){var gt=this._regions.findRange(pt);if(gt>=0)return this._regions.toRegion(gt)}return null},kt.prototype.getRegionsInside=function(pt,gt){var Dt=[],Lt=pt?pt.regionIndex+1:0,Vt=pt?pt.endLineNumber:Number.MAX_VALUE;if(gt&&gt.length===2)for(var Jt=[],nn=Lt,sn=this._regions.length;nn<sn;nn++){var ln=this._regions.toRegion(nn);if(this._regions.getStartLineNumber(nn)<Vt){for(;Jt.length>0&&!ln.containedBy(Jt[Jt.length-1]);)Jt.pop();Jt.push(ln),gt(ln,Jt.length)&&Dt.push(ln)}else break}else for(var nn=Lt,sn=this._regions.length;nn<sn;nn++){var ln=this._regions.toRegion(nn);if(this._regions.getStartLineNumber(nn)<Vt)(!gt||gt(ln))&&Dt.push(ln);else break}return Dt},kt}();function H(kt,pt,gt){for(var Dt=[],Lt=function(ln){var _n=kt.getRegionAtLine(ln);if(_n){var On=!_n.isCollapsed;if(Dt.push(_n),pt>1){var Pn=kt.getRegionsInside(_n,function(Gn,Jn){return Gn.isCollapsed!==On&&Jn<pt});Dt.push.apply(Dt,Pn)}}},Vt=0,Jt=gt;Vt<Jt.length;Vt++){var nn=Jt[Vt];Lt(nn)}kt.toggleCollapseState(Dt)}function E(kt,pt,gt,Dt){gt===void 0&&(gt=Number.MAX_VALUE);var Lt=[];if(Dt&&Dt.length>0)for(var Vt=0,Jt=Dt;Vt<Jt.length;Vt++){var nn=Jt[Vt],sn=kt.getRegionAtLine(nn);if(sn&&(sn.isCollapsed!==pt&&Lt.push(sn),gt>1)){var ln=kt.getRegionsInside(sn,function(_n,On){return _n.isCollapsed!==pt&&On<gt});Lt.push.apply(Lt,ln)}}else{var ln=kt.getRegionsInside(null,function(On,Pn){return On.isCollapsed!==pt&&Pn<gt});Lt.push.apply(Lt,ln)}kt.toggleCollapseState(Lt)}function f(kt,pt,gt,Dt){for(var Lt=[],Vt=0,Jt=Dt;Vt<Jt.length;Vt++){var nn=Jt[Vt],sn=kt.getAllRegionsAtLine(nn,function(ln,_n){return ln.isCollapsed!==pt&&_n<=gt});Lt.push.apply(Lt,sn)}kt.toggleCollapseState(Lt)}function p(kt,pt,gt){for(var Dt=[],Lt=0,Vt=gt;Lt<Vt.length;Lt++){var Jt=Vt[Lt],nn=kt.getAllRegionsAtLine(Jt,function(sn){return sn.isCollapsed!==pt});nn.length>0&&Dt.push(nn[0])}kt.toggleCollapseState(Dt)}function g(kt,pt,gt,Dt){var Lt=function(nn,sn){return sn===pt&&nn.isCollapsed!==gt&&!Dt.some(function(ln){return nn.containsLine(ln)})},Vt=kt.getRegionsInside(null,Lt);kt.toggleCollapseState(Vt)}function m(kt,pt,gt){for(var Dt=kt.textModel,Lt=kt.regions,Vt=[],Jt=Lt.length-1;Jt>=0;Jt--)if(gt!==Lt.isCollapsed(Jt)){var nn=Lt.getStartLineNumber(Jt);pt.test(Dt.getLineContent(nn))&&Vt.push(Lt.toRegion(Jt))}kt.toggleCollapseState(Vt)}function w(kt,pt,gt){for(var Dt=kt.regions,Lt=[],Vt=Dt.length-1;Vt>=0;Vt--)gt!==Dt.isCollapsed(Vt)&&pt===Dt.getType(Vt)&&Lt.push(Dt.toRegion(Vt));kt.toggleCollapseState(Lt)}var B=o("tX9W"),z=function(){function kt(pt){this.editor=pt,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return kt.prototype.getDecorationOption=function(pt){return pt?this.showFoldingHighlights?kt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:kt.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?kt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:kt.EXPANDED_VISUAL_DECORATION},kt.prototype.deltaDecorations=function(pt,gt){return this.editor.deltaDecorations(pt,gt)},kt.prototype.changeDecorations=function(pt){return this.editor.changeDecorations(pt)},kt.COLLAPSED_VISUAL_DECORATION=B.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),kt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=B.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),kt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=B.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),kt.EXPANDED_VISUAL_DECORATION=B.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),kt}(),oe=o("wQH0"),he=o("aokT"),_e=o("6OMU"),Se=function(){function kt(pt){var gt=this;this._updateEventEmitter=new R.a,this._foldingModel=pt,this._foldingModelListener=pt.onDidChange(function(Dt){return gt.updateHiddenRanges()}),this._hiddenRanges=[],pt.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(kt.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(kt.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),kt.prototype.updateHiddenRanges=function(){for(var pt=!1,gt=[],Dt=0,Lt=0,Vt=Number.MAX_VALUE,Jt=-1,nn=this._foldingModel.regions;Dt<nn.length;Dt++){if(!nn.isCollapsed(Dt))continue;var sn=nn.getStartLineNumber(Dt)+1,ln=nn.getEndLineNumber(Dt);if(Vt<=sn&&ln<=Jt)continue;!pt&&Lt<this._hiddenRanges.length&&this._hiddenRanges[Lt].startLineNumber===sn&&this._hiddenRanges[Lt].endLineNumber===ln?(gt.push(this._hiddenRanges[Lt]),Lt++):(pt=!0,gt.push(new he.a(sn,1,ln,1))),Vt=sn,Jt=ln}(pt||Lt<this._hiddenRanges.length)&&this.applyHiddenRanges(gt)},kt.prototype.applyMemento=function(pt){if(!Array.isArray(pt)||pt.length===0)return!1;for(var gt=[],Dt=0,Lt=pt;Dt<Lt.length;Dt++){var Vt=Lt[Dt];if(!Vt.startLineNumber||!Vt.endLineNumber)return!1;gt.push(new he.a(Vt.startLineNumber+1,1,Vt.endLineNumber,1))}return this.applyHiddenRanges(gt),!0},kt.prototype.getMemento=function(){return this._hiddenRanges.map(function(pt){return{startLineNumber:pt.startLineNumber-1,endLineNumber:pt.endLineNumber}})},kt.prototype.applyHiddenRanges=function(pt){this._hiddenRanges=pt,this._updateEventEmitter.fire(pt)},kt.prototype.hasRanges=function(){return this._hiddenRanges.length>0},kt.prototype.isHidden=function(pt){return Z(this._hiddenRanges,pt)!==null},kt.prototype.adjustSelections=function(pt){for(var gt=this,Dt=!1,Lt=this._foldingModel.textModel,Vt=null,Jt=function(Gn){return(!Vt||!q(Gn,Vt))&&(Vt=Z(gt._hiddenRanges,Gn)),Vt?Vt.startLineNumber-1:null},nn=0,sn=pt.length;nn<sn;nn++){var ln=pt[nn],_n=Jt(ln.startLineNumber);_n&&(ln=ln.setStartPosition(_n,Lt.getLineMaxColumn(_n)),Dt=!0);var On=Jt(ln.endLineNumber);On&&(ln=ln.setEndPosition(On,Lt.getLineMaxColumn(On)),Dt=!0),pt[nn]=ln}return Dt},kt.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},kt}();function q(kt,pt){return kt>=pt.startLineNumber&&kt<=pt.endLineNumber}function Z(kt,pt){var gt=Object(_e.i)(kt,function(Dt){return pt<Dt.startLineNumber})-1;return gt>=0&&kt[gt].endLineNumber>=pt?kt[gt]:null}var ce=o("cMvZ"),Te=5e3,Ve="indent",Ee=function(){function kt(pt){this.editorModel=pt,this.id=Ve}return kt.prototype.dispose=function(){},kt.prototype.compute=function(pt){var gt=ce.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),Dt=gt&&!!gt.offSide,Lt=gt&&gt.markers;return Promise.resolve(se(this.editorModel,Dt,Lt))},kt}(),de=function(){function kt(pt){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=pt}return kt.prototype.insertFirst=function(pt,gt,Dt){if(pt>x||gt>x)return;var Lt=this._length;this._startIndexes[Lt]=pt,this._endIndexes[Lt]=gt,this._length++,Dt<1e3&&(this._indentOccurrences[Dt]=(this._indentOccurrences[Dt]||0)+1)},kt.prototype.toIndentRanges=function(pt){if(this._length<=this._foldingRangesLimit){for(var gt=new Uint32Array(this._length),Dt=new Uint32Array(this._length),Lt=this._length-1,Vt=0;Lt>=0;Lt--,Vt++)gt[Vt]=this._startIndexes[Lt],Dt[Vt]=this._endIndexes[Lt];return new D(gt,Dt)}else{for(var Jt=0,nn=this._indentOccurrences.length,Lt=0;Lt<this._indentOccurrences.length;Lt++){var sn=this._indentOccurrences[Lt];if(sn){if(sn+Jt>this._foldingRangesLimit){nn=Lt;break}Jt+=sn}}for(var ln=pt.getOptions().tabSize,gt=new Uint32Array(this._foldingRangesLimit),Dt=new Uint32Array(this._foldingRangesLimit),Lt=this._length-1,Vt=0;Lt>=0;Lt--){var _n=this._startIndexes[Lt],On=pt.getLineContent(_n),Pn=B.b.computeIndentLevel(On,ln);(Pn<nn||Pn===nn&&Jt++<this._foldingRangesLimit)&&(gt[Vt]=_n,Dt[Vt]=this._endIndexes[Lt],Vt++)}return new D(gt,Dt)}},kt}();function se(kt,pt,gt,Dt){Dt===void 0&&(Dt=Te);var Lt=kt.getOptions().tabSize,Vt=new de(Dt),Jt=void 0;gt&&(Jt=new RegExp("("+gt.start.source+")|(?:"+gt.end.source+")"));var nn=[],sn=kt.getLineCount()+1;nn.push({indent:-1,endAbove:sn,line:sn});for(var ln=kt.getLineCount();ln>0;ln--){var _n=kt.getLineContent(ln),On=B.b.computeIndentLevel(_n,Lt),Pn=nn[nn.length-1];if(On===-1){pt&&(Pn.endAbove=ln);continue}var Gn=void 0;if(Jt&&(Gn=_n.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,Pn=nn[Jn],Vt.insertFirst(ln,Pn.line,On),Pn.line=ln,Pn.indent=On,Pn.endAbove=ln;continue}}else{nn.push({indent:-2,endAbove:ln,line:ln});continue}if(Pn.indent>On){do nn.pop(),Pn=nn[nn.length-1];while(Pn.indent>On);var Qn=Pn.endAbove-1;Qn-ln>=1&&Vt.insertFirst(ln,Qn,On)}Pn.indent===On?Pn.endAbove=ln:nn.push({indent:On,endAbove:ln,line:ln})}return Vt.toIndentRanges(kt)}var fe=o("twdY"),ie=o("/cxE"),Q=5e3,me={},ye="syntax",He=function(){function kt(pt,gt,Dt){Dt===void 0&&(Dt=Q),this.editorModel=pt,this.providers=gt,this.limit=Dt,this.id=ye}return kt.prototype.compute=function(pt){var gt=this;return tt(this.providers,this.editorModel,pt).then(function(Dt){if(Dt){var Lt=Pt(Dt,gt.limit);return Lt}return null})},kt.prototype.dispose=function(){},kt}();function tt(kt,pt,gt){var Dt=null,Lt=kt.map(function(Vt,Jt){return Promise.resolve(Vt.provideFoldingRanges(pt,me,gt)).then(function(nn){if(gt.isCancellationRequested)return;if(Array.isArray(nn)){Array.isArray(Dt)||(Dt=[]);for(var sn=pt.getLineCount(),ln=0,_n=nn;ln<_n.length;ln++){var On=_n[ln];On.start>0&&On.end>On.start&&On.end<=sn&&Dt.push({start:On.start,end:On.end,rank:Jt,kind:On.kind})}}},ie.f)});return Promise.all(Lt).then(function(Vt){return Dt})}var Et=function(){function kt(pt){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=pt}return kt.prototype.add=function(pt,gt,Dt,Lt){if(pt>x||gt>x)return;var Vt=this._length;this._startIndexes[Vt]=pt,this._endIndexes[Vt]=gt,this._nestingLevels[Vt]=Lt,this._types[Vt]=Dt,this._length++,Lt<30&&(this._nestingLevelCounts[Lt]=(this._nestingLevelCounts[Lt]||0)+1)},kt.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var pt=new Uint32Array(this._length),gt=new Uint32Array(this._length),Dt=0;Dt<this._length;Dt++)pt[Dt]=this._startIndexes[Dt],gt[Dt]=this._endIndexes[Dt];return new D(pt,gt,this._types)}else{for(var Lt=0,Vt=this._nestingLevelCounts.length,Dt=0;Dt<this._nestingLevelCounts.length;Dt++){var Jt=this._nestingLevelCounts[Dt];if(Jt){if(Jt+Lt>this._foldingRangesLimit){Vt=Dt;break}Lt+=Jt}}for(var pt=new Uint32Array(this._foldingRangesLimit),gt=new Uint32Array(this._foldingRangesLimit),nn=[],Dt=0,sn=0;Dt<this._length;Dt++){var ln=this._nestingLevels[Dt];(ln<Vt||ln===Vt&&Lt++<this._foldingRangesLimit)&&(pt[sn]=this._startIndexes[Dt],gt[sn]=this._endIndexes[Dt],nn[sn]=this._types[Dt],sn++)}return new D(pt,gt,nn)}},kt}();function Pt(kt,pt){for(var gt=kt.sort(function(ln,_n){var On=ln.start-_n.start;return On===0&&(On=ln.rank-_n.rank),On}),Dt=new Et(pt),Lt=void 0,Vt=[],Jt=0,nn=gt;Jt<nn.length;Jt++){var sn=nn[Jt];if(!Lt)Lt=sn,Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Vt.length);else if(sn.start>Lt.start)if(sn.end<=Lt.end)Vt.push(Lt),Lt=sn,Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Vt.length);else{if(sn.start>Lt.end){do Lt=Vt.pop();while(Lt&&sn.start>Lt.end);Lt&&Vt.push(Lt),Lt=sn}Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Vt.length)}}return Dt.toIndentRanges()}var Xt="init",Ke=function(){function kt(pt,gt,Dt,Lt){if(this.editorModel=pt,this.id=Xt,gt.length){var Vt=function(nn){return{range:{startLineNumber:nn.startLineNumber,startColumn:0,endLineNumber:nn.endLineNumber,endColumn:pt.getLineLength(nn.endLineNumber)},options:{stickiness:1}}};this.decorationIds=pt.deltaDecorations([],gt.map(Vt)),this.timeout=setTimeout(Dt,Lt)}}return kt.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)},kt.prototype.compute=function(pt){var gt=[];if(this.decorationIds)for(var Dt=0,Lt=this.decorationIds;Dt<Lt.length;Dt++){var Vt=Lt[Dt],Jt=this.editorModel.getDecorationRange(Vt);Jt&&gt.push({start:Jt.startLineNumber,end:Jt.endLineNumber,rank:1})}return Promise.resolve(Pt(gt,Number.MAX_VALUE))},kt}(),Xe=o("T8No"),Ze=o("t9D7"),Ye=o("MD5Z"),Fe=function(){var kt=function(gt,Dt){return kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,Vt){Lt.__proto__=Vt}||function(Lt,Vt){for(var Jt in Vt)Vt.hasOwnProperty(Jt)&&(Lt[Jt]=Vt[Jt])},kt(gt,Dt)};return function(pt,gt){kt(pt,gt);function Dt(){this.constructor=pt}pt.prototype=gt===null?Object.create(gt):(Dt.prototype=gt.prototype,new Dt)}}(),$e=function(kt,pt,gt,Dt){var Lt=arguments.length,Vt=Lt<3?pt:Dt===null?Dt=Object.getOwnPropertyDescriptor(pt,gt):Dt,Jt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Vt=Reflect.decorate(kt,pt,gt,Dt);else for(var nn=kt.length-1;nn>=0;nn--)(Jt=kt[nn])&&(Vt=(Lt<3?Jt(Vt):Lt>3?Jt(pt,gt,Vt):Jt(pt,gt))||Vt);return Lt>3&&Vt&&Object.defineProperty(pt,gt,Vt),Vt},we=function(kt,pt){return function(gt,Dt){pt(gt,Dt,kt)}},F=new Xe.d("foldingEnabled",!1),ee=function(kt){Fe(pt,kt);function pt(gt,Dt){var Lt=kt.call(this)||this;Lt.contextKeyService=Dt,Lt.localToDispose=Lt._register(new j.b),Lt.editor=gt;var Vt=Lt.editor.getOptions();return Lt._isEnabled=Vt.get(30),Lt._useFoldingProviders=Vt.get(31)!=="indentation",Lt.foldingModel=null,Lt.hiddenRangeModel=null,Lt.rangeProvider=null,Lt.foldingRegionPromise=null,Lt.foldingStateMemento=null,Lt.foldingModelPromise=null,Lt.updateScheduler=null,Lt.cursorChangedScheduler=null,Lt.mouseDownInfo=null,Lt.foldingDecorationProvider=new z(gt),Lt.foldingDecorationProvider.autoHideFoldingControls=Vt.get(84)==="mouseover",Lt.foldingDecorationProvider.showFoldingHighlights=Vt.get(32),Lt.foldingEnabled=F.bindTo(Lt.contextKeyService),Lt.foldingEnabled.set(Lt._isEnabled),Lt._register(Lt.editor.onDidChangeModel(function(){return Lt.onModelChanged()})),Lt._register(Lt.editor.onDidChangeConfiguration(function(Jt){if(Jt.hasChanged(30)){var nn=Lt.editor.getOptions();Lt._isEnabled=nn.get(30),Lt.foldingEnabled.set(Lt._isEnabled),Lt.onModelChanged()}if(Jt.hasChanged(84)||Jt.hasChanged(32)){var sn=Lt.editor.getOptions();Lt.foldingDecorationProvider.autoHideFoldingControls=sn.get(84)==="mouseover",Lt.foldingDecorationProvider.showFoldingHighlights=sn.get(32),Lt.onModelContentChanged()}if(Jt.hasChanged(31)){var ln=Lt.editor.getOptions();Lt._useFoldingProviders=ln.get(31)!=="indentation",Lt.onFoldingStrategyChanged()}})),Lt.onModelChanged(),Lt}return pt.get=function(gt){return gt.getContribution(pt.ID)},pt.prototype.saveViewState=function(){var gt=this.editor.getModel();if(!gt||!this._isEnabled||gt.isTooLargeForTokenization())return{};if(this.foldingModel){var Dt=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),Lt=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:Dt,lineCount:gt.getLineCount(),provider:Lt}}return},pt.prototype.restoreViewState=function(gt){var Dt=this.editor.getModel();if(!Dt||!this._isEnabled||Dt.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!gt||!gt.collapsedRegions||gt.lineCount!==Dt.getLineCount())return;(gt.provider===ye||gt.provider===Xt)&&(this.foldingStateMemento=gt);var Lt=gt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(Lt)){var Vt=this.getFoldingModel();Vt&&Vt.then(function(Jt){Jt&&Jt.applyMemento(Lt)}).then(void 0,ie.e)}},pt.prototype.onModelChanged=function(){var gt=this;this.localToDispose.clear();var Dt=this.editor.getModel();if(!this._isEnabled||!Dt||Dt.isTooLargeForTokenization())return;this.foldingModel=new te(Dt,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new Se(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(Lt){return gt.onHiddenRangesChanges(Lt)})),this.updateScheduler=new k.a(200),this.cursorChangedScheduler=new k.d(function(){return gt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(fe.n.onDidChange(function(){return gt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return gt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return gt.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return gt.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(Lt){return gt.onEditorMouseDown(Lt)})),this.localToDispose.add(this.editor.onMouseUp(function(Lt){return gt.onEditorMouseUp(Lt)})),this.localToDispose.add({dispose:function(){gt.foldingRegionPromise&&(gt.foldingRegionPromise.cancel(),gt.foldingRegionPromise=null),gt.updateScheduler&&gt.updateScheduler.cancel(),gt.updateScheduler=null,gt.foldingModel=null,gt.foldingModelPromise=null,gt.hiddenRangeModel=null,gt.cursorChangedScheduler=null,gt.foldingStateMemento=null,gt.rangeProvider&&gt.rangeProvider.dispose(),gt.rangeProvider=null}}),this.onModelContentChanged()},pt.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},pt.prototype.getRangeProvider=function(gt){var Dt=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new Ee(gt),this._useFoldingProviders&&this.foldingModel){var Lt=fe.n.ordered(this.foldingModel.textModel);if(Lt.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var Vt=this.rangeProvider=new Ke(gt,this.foldingStateMemento.collapsedRegions,function(){Dt.foldingStateMemento=null,Dt.onFoldingStrategyChanged()},3e4);return Vt}else Lt.length>0&&(this.rangeProvider=new He(gt,Lt))}return this.foldingStateMemento=null,this.rangeProvider},pt.prototype.getFoldingModel=function(){return this.foldingModelPromise},pt.prototype.onModelContentChanged=function(){var gt=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var Dt=gt.foldingModel;if(!Dt)return null;var Lt=gt.foldingRegionPromise=Object(k.f)(function(Vt){return gt.getRangeProvider(Dt.textModel).compute(Vt)});return Lt.then(function(Vt){if(Vt&&Lt===gt.foldingRegionPromise){var Jt=gt.editor.getSelections(),nn=Jt?Jt.map(function(sn){return sn.startLineNumber}):[];Dt.update(Vt,nn)}return Dt})}).then(void 0,function(Dt){return Object(ie.e)(Dt),null}))},pt.prototype.onHiddenRangesChanges=function(gt){if(this.hiddenRangeModel&&gt.length){var Dt=this.editor.getSelections();Dt&&(this.hiddenRangeModel.adjustSelections(Dt)&&this.editor.setSelections(Dt))}this.editor.setHiddenAreas(gt)},pt.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},pt.prototype.revealCursor=function(){var gt=this,Dt=this.getFoldingModel();if(!Dt)return;Dt.then(function(Lt){if(Lt){var Vt=gt.editor.getSelections();if(Vt&&Vt.length>0){for(var Jt=[],nn=function(Pn){var Gn=Pn.selectionStartLineNumber;gt.hiddenRangeModel&&gt.hiddenRangeModel.isHidden(Gn)&&Jt.push.apply(Jt,Lt.getAllRegionsAtLine(Gn,function(Jn){return Jn.isCollapsed&&Gn>Jn.startLineNumber}))},sn=0,ln=Vt;sn<ln.length;sn++){var _n=ln[sn];nn(_n)}Jt.length&&(Lt.toggleCollapseState(Jt),gt.reveal(Vt[0].getPosition()))}}}).then(void 0,ie.e)},pt.prototype.onEditorMouseDown=function(gt){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!gt.target||!gt.target.range)return;if(!gt.event.leftButton&&!gt.event.middleButton)return;var Dt=gt.target.range,Lt=!1;switch(gt.target.type){case 4:var Vt=gt.target.detail,Jt=gt.target.element.offsetLeft,nn=Vt.offsetX-Jt;if(nn<5)return;Lt=!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:Lt}},pt.prototype.onEditorMouseUp=function(gt){var Dt=this,Lt=this.getFoldingModel();if(!Lt||!this.mouseDownInfo||!gt.target)return;var Vt=this.mouseDownInfo.lineNumber,Jt=this.mouseDownInfo.iconClicked,nn=gt.target.range;if(!nn||nn.startLineNumber!==Vt)return;if(Jt){if(gt.target.type!==4)return}else{var sn=this.editor.getModel();if(!sn||nn.startColumn!==sn.getLineMaxColumn(Vt))return}Lt.then(function(ln){if(ln){var _n=ln.getRegionAtLine(Vt);if(_n&&_n.startLineNumber===Vt){var On=_n.isCollapsed;if(Jt||On){var Pn=[],Gn=gt.event.middleButton||gt.event.shiftKey;if(Gn)for(var Jn=0,Qn=ln.getRegionsInside(_n);Jn<Qn.length;Jn++){var gi=Qn[Jn];gi.isCollapsed===On&&Pn.push(gi)}(On||!Gn||Pn.length===0)&&Pn.push(_n),ln.toggleCollapseState(Pn),Dt.reveal({lineNumber:Vt,column:1})}}}}).then(void 0,ie.e)},pt.prototype.reveal=function(gt){this.editor.revealPositionInCenterIfOutsideViewport(gt,0)},pt.ID="editor.contrib.folding",pt=$e([we(1,Xe.c)],pt),pt}(j.a),Pe=function(kt){Fe(pt,kt);function pt(){return kt!==null&&kt.apply(this,arguments)||this}return pt.prototype.runEditorCommand=function(gt,Dt,Lt){var Vt=this,Jt=ee.get(Dt);if(!Jt)return;var nn=Jt.getFoldingModel();if(nn)return this.reportTelemetry(gt,Dt),nn.then(function(sn){if(sn){Vt.invoke(Jt,sn,Dt,Lt);var ln=Dt.getSelection();ln&&Jt.reveal(ln.getStartPosition())}})},pt.prototype.getSelectedLines=function(gt){var Dt=gt.getSelections();return Dt?Dt.map(function(Lt){return Lt.startLineNumber}):[]},pt.prototype.getLineNumbers=function(gt,Dt){return gt&&gt.selectionLines?gt.selectionLines.map(function(Lt){return Lt+1}):this.getSelectedLines(Dt)},pt.prototype.run=function(gt,Dt){},pt}(G.b);function ve(kt){if(!ne.k(kt)){if(!ne.i(kt))return!1;var pt=kt;if(!ne.k(pt.levels)&&!ne.h(pt.levels))return!1;if(!ne.k(pt.direction)&&!ne.j(pt.direction))return!1;if(!ne.k(pt.selectionLines)&&(!ne.d(pt.selectionLines)||!pt.selectionLines.every(ne.h)))return!1}return!0}var Me=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.unfold",label:re.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:F,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:ve,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 pt.prototype.invoke=function(gt,Dt,Lt,Vt){var Jt=Vt&&Vt.levels||1,nn=this.getLineNumbers(Vt,Lt);Vt&&Vt.direction==="up"?f(Dt,!1,Jt,nn):E(Dt,!1,Jt,nn)},pt}(Pe),Ie=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.unfoldRecursively",label:re.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|89),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt,Vt){E(Dt,!1,Number.MAX_VALUE,this.getSelectedLines(Lt))},pt}(Pe),pe=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.fold",label:re.a("foldAction.label","Fold"),alias:"Fold",precondition:F,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:ve,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return pt.prototype.invoke=function(gt,Dt,Lt,Vt){var Jt=this.getLineNumbers(Vt,Lt),nn=Vt&&Vt.levels,sn=Vt&&Vt.direction;typeof nn!="number"&&typeof sn!="string"?p(Dt,!0,Jt):sn==="up"?f(Dt,!0,nn||1,Jt):E(Dt,!0,nn||1,Jt)},pt}(Pe),nt=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.toggleFold",label:re.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|42),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){var Vt=this.getSelectedLines(Lt);H(Dt,1,Vt)},pt}(Pe),_t=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.foldRecursively",label:re.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|87),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){var Vt=this.getSelectedLines(Lt);E(Dt,!0,Number.MAX_VALUE,Vt)},pt}(Pe),Rt=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.foldAllBlockComments",label:re.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|85),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){if(Dt.regions.hasTypes())w(Dt,fe.m.Comment.value,!0);else{var Vt=Lt.getModel();if(!Vt)return;var Jt=ce.a.getComments(Vt.getLanguageIdentifier().id);if(Jt&&Jt.blockCommentStartToken){var nn=new RegExp("^\\s*"+Object(N.p)(Jt.blockCommentStartToken));m(Dt,nn,!0)}}},pt}(Pe),Mt=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.foldAllMarkerRegions",label:re.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|29),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){if(Dt.regions.hasTypes())w(Dt,fe.m.Region.value,!0);else{var Vt=Lt.getModel();if(!Vt)return;var Jt=ce.a.getFoldingRules(Vt.getLanguageIdentifier().id);if(Jt&&Jt.markers&&Jt.markers.start){var nn=new RegExp(Jt.markers.start);m(Dt,nn,!0)}}},pt}(Pe),zt=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.unfoldAllMarkerRegions",label:re.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|30),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){if(Dt.regions.hasTypes())w(Dt,fe.m.Region.value,!1);else{var Vt=Lt.getModel();if(!Vt)return;var Jt=ce.a.getFoldingRules(Vt.getLanguageIdentifier().id);if(Jt&&Jt.markers&&Jt.markers.start){var nn=new RegExp(Jt.markers.start);m(Dt,nn,!1)}}},pt}(Pe),Gt=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.foldAll",label:re.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|21),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){E(Dt,!0)},pt}(Pe),on=function(kt){Fe(pt,kt);function pt(){return kt.call(this,{id:"editor.unfoldAll",label:re.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|40),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){E(Dt,!1)},pt}(Pe),Ln=function(kt){Fe(pt,kt);function pt(){return kt!==null&&kt.apply(this,arguments)||this}return pt.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(pt.ID_PREFIX.length))},pt.prototype.invoke=function(gt,Dt,Lt){g(Dt,this.getFoldingLevel(),!0,this.getSelectedLines(Lt))},pt.ID_PREFIX="editor.foldLevel",pt.ID=function(gt){return pt.ID_PREFIX+gt},pt}(Pe);Object(G.h)(ee.ID,ee),Object(G.f)(Me),Object(G.f)(Ie),Object(G.f)(pe),Object(G.f)(_t),Object(G.f)(Gt),Object(G.f)(on),Object(G.f)(Rt),Object(G.f)(Mt),Object(G.f)(zt),Object(G.f)(nt);for(var yn=1;yn<=7;yn++)Object(G.i)(new Ln({id:Ln.ID(yn),label:re.a("foldLevelAction.label","Fold Level {0}",yn),alias:"Fold Level "+yn,precondition:F,kbOpts:{kbExpr:oe.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|21+yn),weight:100}}));var Mn=Object(Ye.Rb)("editor.foldBackground",{light:Object(Ye.dc)(Ye.K,.3),dark:Object(Ye.dc)(Ye.K,.3),hc:null},re.a("editorSelectionBackground","Color of the editor selection."));Object(Ze.e)(function(kt,pt){var gt=kt.getColor(Mn);gt&&pt.addRule(".monaco-editor .folded-background { background-color: "+gt+"; }")})},e1ni:function(wt,P,o){},eC1c:function(wt,P,o){},eLzo:function(wt,P,o){"use strict";o.d(P,"a",function(){return ne}),o.d(P,"b",function(){return N}),o.d(P,"c",function(){return U}),o.d(P,"e",function(){return G}),o.d(P,"d",function(){return R});var I=o("6OMU"),re=o("Vhoy"),ne=function(){function _(x,K){x===void 0&&(x=""),K===void 0&&(K=!1);var D,A;this._value=x,typeof K=="boolean"?(this._isTrusted=K,this._supportThemeIcons=!1):(this._isTrusted=(D=K.isTrusted)!==null&&D!==void 0?D:!1,this._supportThemeIcons=(A=K.supportThemeIcons)!==null&&A!==void 0?A:!1)}return Object.defineProperty(_.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),_.prototype.appendText=function(x){return this._value+=(this._supportThemeIcons?Object(re.a)(x):x).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(`
`,`
`),this},_.prototype.appendMarkdown=function(x){return this._value+=x,this},_.prototype.appendCodeblock=function(x,K){return this._value+="\n```",this._value+=x,this._value+=`
`,this._value+=K,this._value+="\n```\n",this},_}();function N(_){return k(_)?!_.value:Array.isArray(_)?_.every(N):!0}function k(_){return _ instanceof ne?!0:_&&typeof _=="object"?typeof _.value=="string"&&(typeof _.isTrusted=="boolean"||_.isTrusted===void 0)&&(typeof _.supportThemeIcons=="boolean"||_.supportThemeIcons===void 0):!1}function U(_,x){return!_&&!x?!0:!_||!x?!1:Array.isArray(_)&&Array.isArray(x)?Object(I.g)(_,x,j):k(_)&&k(x)?j(_,x):!1}function j(_,x){return _===x?!0:!_||!x?!1:_.value===x.value&&_.isTrusted===x.isTrusted&&_.supportThemeIcons===x.supportThemeIcons}function G(_){return _&&_.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function R(_){var x=[],K=_.split("|").map(function(g){return g.trim()});_=K[0];var D=K[1];if(D){var A=/height=(\d+)/.exec(D),te=/width=(\d+)/.exec(D),H=A?A[1]:"",E=te?te[1]:"",f=isFinite(parseInt(E)),p=isFinite(parseInt(H));f&&x.push('width="'+E+'"'),p&&x.push('height="'+H+'"')}return{href:_,dimensions:x}}},eizg:function(wt,P,o){},ep4t:function(wt,P,o){"use strict";o.r(P),o.d(P,"SuggestController",function(){return X}),o.d(P,"TriggerSuggestAction",function(){return Ue});var I=o("OBOq"),re=o("6OMU"),ne=o("/cxE"),N=o("/kV6"),k=o("pmY6"),U=o("sswD"),j=o("0/Sa"),G=o("aokT"),R=o("wQH0"),_=o("tXSY"),x=o("uACm"),K=o("QDVR"),D=o("A+jI"),A=o("twdY"),te=o("X+cX"),H=o("Cg/j"),E=o("+7oY"),f=o("9fML"),p=function(){var J=function(Oe,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,je){Je.__proto__=je}||function(Je,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Je[Ct]=je[Ct])},J(Oe,it)};return function(Ce,Oe){J(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),g=function(J,Ce,Oe,it){var Je=arguments.length,je=Je<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(J,Ce,Oe,it);else for(var Ot=J.length-1;Ot>=0;Ot--)(Ct=J[Ot])&&(je=(Je<3?Ct(je):Je>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Je>3&&je&&Object.defineProperty(Ce,Oe,je),je},m=function(J,Ce){return function(Oe,it){Ce(Oe,it,J)}},w=function(){function J(){}return J.prototype.select=function(Ce,Oe,it){if(it.length===0)return 0;for(var Je=it[0].score[0],je=1;je<it.length;je++){var Ct=it[je],Ot=Ct.score,Qt=Ct.completion;if(Ot[0]!==Je)break;if(Qt.preselect)return je}return 0},J}(),B=function(J){p(Ce,J);function Ce(){return J!==null&&J.apply(this,arguments)||this}return Ce.prototype.memorize=function(Oe,it,Je){},Ce.prototype.toJSON=function(){return},Ce.prototype.fromJSON=function(){},Ce}(w),z=function(J){p(Ce,J);function Ce(){var Oe=J!==null&&J.apply(this,arguments)||this;return Oe._cache=new K.a(300,.66),Oe._seq=0,Oe}return Ce.prototype.memorize=function(Oe,it,Je){var je=Je.completion.label,Ct=Oe.getLanguageIdentifier().language+"/"+je;this._cache.set(Ct,{touch:this._seq++,type:Je.completion.kind,insertText:Je.completion.insertText})},Ce.prototype.select=function(Oe,it,Je){if(Je.length===0)return 0;var je=Oe.getLineContent(it.lineNumber).substr(it.column-10,it.column-1);if(/\s$/.test(je))return J.prototype.select.call(this,Oe,it,Je);for(var Ct=Je[0].score[0],Ot=-1,Qt=-1,At=-1,jt=0;jt<Je.length&&!(Je[jt].score[0]!==Ct);jt++){var hn=Oe.getLanguageIdentifier().language+"/"+Je[jt].completion.label,bn=this._cache.peek(hn);if(bn&&bn.touch>At&&bn.type===Je[jt].completion.kind&&bn.insertText===Je[jt].completion.insertText&&(At=bn.touch,Qt=jt),Je[jt].completion.preselect&&Ot===-1)return Ot=jt}return Qt!==-1?Qt:Ot!==-1?Ot:0},Ce.prototype.toJSON=function(){var Oe=[];return this._cache.forEach(function(it,Je){Oe.push([Je,it])}),Oe},Ce.prototype.fromJSON=function(Oe){this._cache.clear();for(var it=0,Je=0,je=Oe;Je<je.length;Je++){var Ct=je[Je],Ot=Ct[0],Qt=Ct[1];Qt.touch=it,Qt.type=typeof Qt.type=="number"?Qt.type:Object(A.B)(Qt.type),this._cache.set(Ot,Qt)}this._seq=this._cache.size},Ce}(w),oe=function(J){p(Ce,J);function Ce(){var Oe=J!==null&&J.apply(this,arguments)||this;return Oe._trie=K.c.forStrings(),Oe._seq=0,Oe}return Ce.prototype.memorize=function(Oe,it,Je){var je=Oe.getWordUntilPosition(it).word,Ct=Oe.getLanguageIdentifier().language+"/"+je;this._trie.set(Ct,{type:Je.completion.kind,insertText:Je.completion.insertText,touch:this._seq++})},Ce.prototype.select=function(Oe,it,Je){var je=Oe.getWordUntilPosition(it).word;if(!je)return J.prototype.select.call(this,Oe,it,Je);var Ct=Oe.getLanguageIdentifier().language+"/"+je,Ot=this._trie.get(Ct);if(Ot||(Ot=this._trie.findSubstr(Ct)),Ot)for(var Qt=0;Qt<Je.length;Qt++){var At=Je[Qt].completion,jt=At.kind,hn=At.insertText;if(jt===Ot.type&&hn===Ot.insertText)return Qt}return J.prototype.select.call(this,Oe,it,Je)},Ce.prototype.toJSON=function(){var Oe=[];return this._trie.forEach(function(it,Je){return Oe.push([Je,it])}),Oe.sort(function(it,Je){return-(it[1].touch-Je[1].touch)}).forEach(function(it,Je){return it[1].touch=Je}),Oe.slice(0,200)},Ce.prototype.fromJSON=function(Oe){if(this._trie.clear(),Oe.length>0){this._seq=Oe[0][1].touch+1;for(var it=0,Je=Oe;it<Je.length;it++){var je=Je[it],Ct=je[0],Ot=je[1];Ot.type=typeof Ot.type=="number"?Ot.type:Object(A.B)(Ot.type),this._trie.set(Ct,Ot)}}},Ce}(w),he=function(J){p(Ce,J);function Ce(Oe,it){var Je=J.call(this)||this;Je._storageService=Oe,Je._configService=it,Je._storagePrefix="suggest/memories";var je=function(){var Ot=Je._configService.getValue("editor.suggestSelection"),Qt=Je._configService.getValue("editor.suggest.shareSuggestSelections");Je._update(Ot,Qt,!1)};return Je._persistSoon=Je._register(new te.d(function(){return Je._saveState()},500)),Je._register(Oe.onWillSaveState(function(Ct){Ct.reason===D.c.SHUTDOWN&&Je._saveState()})),Je._register(Je._configService.onDidChangeConfiguration(function(Ct){(Ct.affectsConfiguration("editor.suggestSelection")||Ct.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&je()})),Je._register(Je._storageService.onDidChangeStorage(function(Ct){Ct.scope===0&&Ct.key.indexOf(Je._storagePrefix)===0&&(document.hasFocus()||Je._update(Je._mode,Je._shareMem,!0))})),je(),Je}return Ce.prototype._update=function(Oe,it,Je){if(!Je&&this._mode===Oe&&this._shareMem===it)return;this._shareMem=it,this._mode=Oe,this._strategy=Oe==="recentlyUsedByPrefix"?new oe:Oe==="recentlyUsed"?new z:new B;try{var je=it?0:1,Ct=this._storageService.get(this._storagePrefix+"/"+this._mode,je);Ct&&this._strategy.fromJSON(JSON.parse(Ct))}catch(Ot){}},Ce.prototype.memorize=function(Oe,it,Je){this._strategy.memorize(Oe,it,Je),this._persistSoon.schedule()},Ce.prototype.select=function(Oe,it,Je){return this._strategy.select(Oe,it,Je)},Ce.prototype._saveState=function(){var Oe=JSON.stringify(this._strategy),it=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,Oe,it)},Ce=g([m(0,D.a),m(1,E.a)],Ce),Ce}(k.a),_e=Object(H.c)("ISuggestMemories");Object(f.b)(_e,he,!0);var Se=o("3/fG"),q=o("nnTU"),Z=o("T8No"),ce=o("nrhi"),Te=o("QVNv"),Ve=function(J,Ce,Oe,it){var Je=arguments.length,je=Je<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(J,Ce,Oe,it);else for(var Ot=J.length-1;Ot>=0;Ot--)(Ct=J[Ot])&&(je=(Je<3?Ct(je):Je>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Je>3&&je&&Object.defineProperty(Ce,Oe,je),je},Ee=function(J,Ce){return function(Oe,it){Ce(Oe,it,J)}},de=function(){function J(Ce,Oe){this._editor=Ce,this._index=0,this._ckOtherSuggestions=J.OtherSuggestions.bindTo(Oe)}return J.prototype.dispose=function(){this.reset()},J.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(k.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},J.prototype.set=function(Ce,Oe){var it=this,Je=Ce.model,je=Ce.index;if(Je.items.length===0){this.reset();return}var Ct=J._moveIndex(!0,Je,je);if(Ct===je){this.reset();return}this._acceptNext=Oe,this._model=Je,this._index=je,this._listener=this._editor.onDidChangeCursorPosition(function(){it._ignore||it.reset()}),this._ckOtherSuggestions.set(!0)},J._moveIndex=function(Ce,Oe,it){for(var Je=it;!(Je=(Je+Oe.items.length+(Ce?1:-1))%Oe.items.length,Je===it);)if(!Oe.items[Je].completion.additionalTextEdits)break;return Je},J.prototype.next=function(){this._move(!0)},J.prototype.prev=function(){this._move(!1)},J.prototype._move=function(Ce){if(!this._model)return;try{this._ignore=!0,this._index=J._moveIndex(Ce,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 Z.d("hasOtherSuggestions",!1),J=Ve([Ee(1,Z.c)],J),J}(),se=o("MI8n"),fe=o("gCVg"),ie=o("fpMC"),Q=o("N0LK"),me=function(){function J(Ce,Oe){this.leadingLineContent=Ce,this.characterCountDelta=Oe}return J}(),ye=function(){function J(Ce,Oe,it,Je,je,Ct){this._snippetCompareFn=J._compareCompletionItems,this._items=Ce,this._column=Oe,this._wordDistance=Je,this._options=je,this._refilterKind=1,this._lineContext=it,Ct==="top"?this._snippetCompareFn=J._compareCompletionItemsSnippetsUp:Ct==="bottom"&&(this._snippetCompareFn=J._compareCompletionItemsSnippetsDown)}return Object.defineProperty(J.prototype,"lineContext",{get:function(){return this._lineContext},set:function(Oe){(this._lineContext.leadingLineContent!==Oe.leadingLineContent||this._lineContext.characterCountDelta!==Oe.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<Oe.characterCountDelta&&this._filteredItems?2:1,this._lineContext=Oe)},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(Ce){for(var Oe=new Array,it=0;it<this._items.length;)Ce.has(this._items[it].provider)?it++:(Oe.push(this._items[it]),this._items[it]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,Oe},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 Ce=this._lineContext,Oe=Ce.leadingLineContent,it=Ce.characterCountDelta,Je="",je="",Ct=this._refilterKind===1?this._items:this._filteredItems,Ot=[],Qt=!this._options.filterGraceful||Ct.length>2e3?ie.d:ie.e,At=0;At<Ct.length;At++){var jt=Ct[At];jt.container.incomplete&&this._isIncomplete.add(jt.provider);var hn=jt.position.column-jt.editStart.column,bn=hn+it-(jt.position.column-this._column);if(Je.length!==bn&&(Je=bn===0?"":Oe.slice(-bn),je=Je.toLowerCase()),jt.word=Je,bn===0)jt.score=ie.a.Default;else{for(var mn=0;mn<hn;){var Vn=Je.charCodeAt(mn);if(Vn===32||Vn===9)mn+=1;else break}var Xn=typeof jt.completion.label=="string"?jt.completion.label:jt.completion.label.name;if(mn>=bn)jt.score=ie.a.Default;else if(typeof jt.completion.filterText=="string"){var Yn=Qt(Je,je,mn,jt.completion.filterText,jt.filterTextLow,0,!1);if(!Yn)continue;Object(Q.f)(jt.completion.filterText,Xn)===0?jt.score=Yn:(jt.score=Object(ie.b)(Je,je,mn,Xn,jt.labelLow,0),jt.score[0]=Yn[0])}else{var Yn=Qt(Je,je,mn,Xn,jt.labelLow,0,!1);if(!Yn)continue;jt.score=Yn}}jt.idx=At,jt.distance=this._wordDistance.distance(jt.position,jt.completion),Ot.push(jt),this._stats.suggestionCount++;switch(jt.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Ot.sort(this._snippetCompareFn),this._refilterKind=0},J._compareCompletionItems=function(Ce,Oe){return Ce.score[0]>Oe.score[0]?-1:Ce.score[0]<Oe.score[0]?1:Ce.distance<Oe.distance?-1:Ce.distance>Oe.distance?1:Ce.idx<Oe.idx?-1:Ce.idx>Oe.idx?1:0},J._compareCompletionItemsSnippetsDown=function(Ce,Oe){if(Ce.completion.kind!==Oe.completion.kind){if(Ce.completion.kind===25)return 1;if(Oe.completion.kind===25)return-1}return J._compareCompletionItems(Ce,Oe)},J._compareCompletionItemsSnippetsUp=function(Ce,Oe){if(Ce.completion.kind!==Oe.completion.kind){if(Ce.completion.kind===25)return-1;if(Oe.completion.kind===25)return 1}return J._compareCompletionItems(Ce,Oe)},J}(),He=o("JQT/"),tt=o("cGHE"),Et=o("24hK"),Pt=function(J,Ce,Oe,it){function Je(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Qt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Je(jt.value).then(Ot,Qt)}At((it=it.apply(J,Ce||[])).next())})},Xt=function(J,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Je,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Qt([At,jt])}}function Qt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Je&&(je=At[0]&2?Je.return:At[0]?Je.throw||((je=Je.return)&&je.call(Je),0):Je.next)&&!(je=je.call(Je,At[1])).done)return je;(Je=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Je=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]<je[3])){Oe.label=At[1];break}if(At[0]===6&&Oe.label<je[1]){Oe.label=je[1],je=At;break}if(je&&Oe.label<je[2]){Oe.label=je[2],Oe.ops.push(At);break}je[2]&&Oe.ops.pop(),Oe.trys.pop();continue}At=Ce.call(J,Oe)}catch(jt){At=[6,jt],Je=0}finally{it=je=0}if(At[0]&5)throw At[1];return{value:At[0]?At[1]:void 0,done:!0}}},Ke=function(){function J(){}return J.prototype.provideSelectionRanges=function(Ce,Oe){return Pt(this,void 0,void 0,function(){var it,Je,je,Ct,Ot;return Xt(this,function(Qt){switch(Qt.label){case 0:it=[],Je=function(jt){var hn,bn;return Xt(this,function(mn){switch(mn.label){case 0:return hn=[],it.push(hn),bn=new Map,[4,new Promise(function(Vn){return J._bracketsRightYield(Vn,0,Ce,jt,bn)})];case 1:return mn.sent(),[4,new Promise(function(Vn){return J._bracketsLeftYield(Vn,0,Ce,jt,bn,hn)})];case 2:return mn.sent(),[2]}})},je=0,Ct=Oe,Qt.label=1;case 1:return je<Ct.length?(Ot=Ct[je],[5,Je(Ot)]):[3,4];case 2:Qt.sent(),Qt.label=3;case 3:return je++,[3,1];case 4:return[2,it]}})})},J._bracketsRightYield=function(Ce,Oe,it,Je,je){for(var Ct=new Map,Ot=Date.now();;){if(Oe>=J._maxRounds){Ce();break}if(!Je){Ce();break}var Qt=it.findNextBracket(Je);if(!Qt){Ce();break}var At=Date.now()-Ot;if(At>J._maxDuration){setTimeout(function(){return J._bracketsRightYield(Ce,Oe+1,it,Je,je)});break}var jt=Qt.close[0];if(Qt.isOpen){var hn=Ct.has(jt)?Ct.get(jt):0;Ct.set(jt,hn+1)}else{var hn=Ct.has(jt)?Ct.get(jt):0;if(hn-=1,Ct.set(jt,Math.max(0,hn)),hn<0){var bn=je.get(jt);bn||(bn=new Et.a,je.set(jt,bn)),bn.push(Qt.range)}}Je=Qt.range.getEndPosition()}},J._bracketsLeftYield=function(Ce,Oe,it,Je,je,Ct){for(var Ot=new Map,Qt=Date.now();;){if(Oe>=J._maxRounds&&je.size===0){Ce();break}if(!Je){Ce();break}var At=it.findPrevBracket(Je);if(!At){Ce();break}var jt=Date.now()-Qt;if(jt>J._maxDuration){setTimeout(function(){return J._bracketsLeftYield(Ce,Oe+1,it,Je,je,Ct)});break}var hn=At.close[0];if(At.isOpen){var bn=Ot.has(hn)?Ot.get(hn):0;if(bn-=1,Ot.set(hn,Math.max(0,bn)),bn<0){var mn=je.get(hn);if(mn){var Vn=mn.shift();mn.size===0&&je.delete(hn);var Xn=G.a.fromPositions(At.range.getEndPosition(),Vn.getStartPosition()),Yn=G.a.fromPositions(At.range.getStartPosition(),Vn.getEndPosition());Ct.push({range:Xn}),Ct.push({range:Yn}),J._addBracketLeading(it,Yn,Ct)}}}else{var bn=Ot.has(hn)?Ot.get(hn):0;Ot.set(hn,bn+1)}Je=At.range.getStartPosition()}},J._addBracketLeading=function(Ce,Oe,it){if(Oe.startLineNumber===Oe.endLineNumber)return;var Je=Oe.startLineNumber,je=Ce.getLineFirstNonWhitespaceColumn(Je);je!==0&&je!==Oe.startColumn&&(it.push({range:G.a.fromPositions(new tt.a(Je,je),Oe.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Je,1),Oe.getEndPosition())}));var Ct=Je-1;if(Ct>0){var Ot=Ce.getLineFirstNonWhitespaceColumn(Ct);Ot===Oe.startColumn&&Ot!==Ce.getLineLastNonWhitespaceColumn(Ct)&&(it.push({range:G.a.fromPositions(new tt.a(Ct,Ot),Oe.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Ct,1),Oe.getEndPosition())}))}},J._maxDuration=30,J._maxRounds=2,J}(),Xe=function(){var J=function(Oe,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,je){Je.__proto__=je}||function(Je,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Je[Ct]=je[Ct])},J(Oe,it)};return function(Ce,Oe){J(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Ze=function(J,Ce,Oe,it){function Je(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Qt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Je(jt.value).then(Ot,Qt)}At((it=it.apply(J,Ce||[])).next())})},Ye=function(J,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Je,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Qt([At,jt])}}function Qt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Je&&(je=At[0]&2?Je.return:At[0]?Je.throw||((je=Je.return)&&je.call(Je),0):Je.next)&&!(je=je.call(Je,At[1])).done)return je;(Je=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Je=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]<je[3])){Oe.label=At[1];break}if(At[0]===6&&Oe.label<je[1]){Oe.label=je[1],je=At;break}if(je&&Oe.label<je[2]){Oe.label=je[2],Oe.ops.push(At);break}je[2]&&Oe.ops.pop(),Oe.trys.pop();continue}At=Ce.call(J,Oe)}catch(jt){At=[6,jt],Je=0}finally{it=je=0}if(At[0]&5)throw At[1];return{value:At[0]?At[1]:void 0,done:!0}}},Fe=function(){function J(){}return J.create=function(Ce,Oe){return Ze(this,void 0,void 0,function(){var it,Je,je,Ct;return Ye(this,function(Ot){switch(Ot.label){case 0:return Oe.getOption(89).localityBonus?Oe.hasModel()?(it=Oe.getModel(),Je=Oe.getPosition(),Ce.canComputeWordRanges(it.uri)?[4,new Ke().provideSelectionRanges(it,[Je])]:[2,J.None]):[2,J.None]:[2,J.None];case 1:return je=Ot.sent(),!je||je.length===0||je[0].length===0?[2,J.None]:[4,Ce.computeWordRanges(it.uri,je[0][0].range)];case 2:return Ct=Ot.sent(),[2,new(function(Qt){Xe(At,Qt);function At(){return Qt!==null&&Qt.apply(this,arguments)||this}return At.prototype.distance=function(jt,hn){if(!Ct||!Je.equals(Oe.getPosition()))return 0;if(hn.kind===17)return 2<<20;var bn=typeof hn.label=="string"?hn.label:hn.label.name,mn=Ct[bn];if(Object(re.p)(mn))return 2<<20;for(var Vn=Object(re.c)(mn,G.a.fromPositions(jt),G.a.compareRangesUsingStarts),Xn=Vn>=0?mn[Vn]:mn[Math.max(0,~Vn-1)],Yn=je.length,Ui=0,ii=je[0];Ui<ii.length;Ui++){var Pi=ii[Ui];if(!G.a.containsRange(Pi.range,Xn))break;Yn-=1}return Yn},At}(J))]}})})},J.None=new(function(Ce){Xe(Oe,Ce);function Oe(){return Ce!==null&&Ce.apply(this,arguments)||this}return Oe.prototype.distance=function(){return 0},Oe}(J)),J}(),$e=function(){function J(Ce,Oe,it,Je){this.leadingLineContent=Ce.getLineContent(Oe.lineNumber).substr(0,Oe.column-1),this.leadingWord=Ce.getWordUntilPosition(Oe),this.lineNumber=Oe.lineNumber,this.column=Oe.column,this.auto=it,this.shy=Je}return J.shouldAutoTrigger=function(Ce){if(!Ce.hasModel())return!1;var Oe=Ce.getModel(),it=Ce.getPosition();Oe.tokenizeIfCheap(it.lineNumber);var Je=Oe.getWordAtPosition(it);return Je?Je.endColumn!==it.column?!1:!!isNaN(Number(Je.word)):!1},J}(),we=function(){function J(Ce,Oe){var it=this;this._editor=Ce,this._editorWorker=Oe,this._toDispose=new k.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new k.b,this._triggerQuickSuggest=new te.e,this._state=0,this._completionDisposables=new k.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 fe.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(A.d.onDidChange(function(){it._updateTriggerCharacters(),it._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(function(je){it._onCursorChange(je)}));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(k.f)(this._triggerCharacterListener),Object(k.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 Ce=this;if(this._triggerCharacterListener.clear(),this._editor.getOption(68)||!this._editor.hasModel()||!this._editor.getOption(92))return;for(var Oe=new Map,it=0,Je=A.d.all(this._editor.getModel());it<Je.length;it++)for(var je=Je[it],Ct=0,Ot=je.triggerCharacters||[];Ct<Ot.length;Ct++){var Qt=Ot[Ct],At=Oe.get(Qt);At||(At=new Set,At.add(Object(Te.c)()),Oe.set(Qt,At)),At.add(je)}var jt=function(bn){if(!bn){var mn=Ce._editor.getPosition(),Vn=Ce._editor.getModel();bn=Vn.getLineContent(mn.lineNumber).substr(0,mn.column-1)}var Xn="";Object(Q.A)(bn.charCodeAt(bn.length-1))?Object(Q.z)(bn.charCodeAt(bn.length-2))&&(Xn=bn.substr(bn.length-2)):Xn=bn.charAt(bn.length-1);var Yn=Oe.get(Xn);if(Yn){var Ui=Ce._completionModel?Ce._completionModel.adopt(Yn):void 0;Ce.trigger({auto:!0,shy:!1,triggerCharacter:Xn},Boolean(Ce._completionModel),Yn,Ui)}};this._triggerCharacterListener.add(this._editor.onDidType(jt)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(jt))},Object.defineProperty(J.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),J.prototype.cancel=function(Ce){Ce===void 0&&(Ce=!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:Ce}))},J.prototype.clear=function(){this._completionDisposables.clear()},J.prototype._updateActiveSuggestSession=function(){this._state!==0&&(!this._editor.hasModel()||!A.d.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1},!0))},J.prototype._onCursorChange=function(Ce){var Oe=this;if(!this._editor.hasModel())return;var it=this._editor.getModel(),Je=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!Ce.selection.isEmpty()||Ce.reason!==0||Ce.source!=="keyboard"&&Ce.source!=="deleteLeft"){this.cancel();return}if(!A.d.has(it))return;if(this._state===0){if(this._editor.getOption(66)===!1)return;if(!Je.containsRange(this._currentSelection)&&!Je.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&_.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(Oe._state!==0)return;if(!$e.shouldAutoTrigger(Oe._editor))return;if(!Oe._editor.hasModel())return;var je=Oe._editor.getModel(),Ct=Oe._editor.getPosition(),Ot=Oe._editor.getOption(66);if(Ot===!1)return;if(!(Ot===!0)){je.tokenizeIfCheap(Ct.lineNumber);var Qt=je.getLineTokens(Ct.lineNumber),At=Qt.getStandardTokenType(Qt.findTokenIndexAtOffset(Math.max(Ct.column-1-1,0))),jt=Ot.other&&At===0||Ot.comments&&At===1||Ot.strings&&At===2;if(!jt)return}Oe.trigger({auto:!0,shy:!1})},this._quickSuggestDelay)}},J.prototype._refilterCompletionItems=function(){var Ce=this;Promise.resolve().then(function(){if(Ce._state===0)return;if(!Ce._editor.hasModel())return;var Oe=Ce._editor.getModel(),it=Ce._editor.getPosition(),Je=new $e(Oe,it,Ce._state===2,!1);Ce._onNewContext(Je)})},J.prototype.trigger=function(Ce,Oe,it,Je){var je=this;if(Oe===void 0&&(Oe=!1),!this._editor.hasModel())return;var Ct=this._editor.getModel(),Ot=Ce.auto,Qt=new $e(Ct,this._editor.getPosition(),Ot,Ce.shy);this.cancel(Oe),this._state=Ot?2:1,this._onDidTrigger.fire({auto:Ot,shy:Ce.shy,position:this._editor.getPosition()}),this._context=Qt;var At;Ce.triggerCharacter?At={triggerKind:1,triggerCharacter:Ce.triggerCharacter}:it&&it.size>0?At={triggerKind:2}:At={triggerKind:0},this._requestToken=new He.b;var jt=this._editor.getOption(86),hn=1;switch(jt){case"top":hn=0;break;case"bottom":hn=2;break}var bn=J._createItemKindFilter(this._editor),mn=Fe.create(this._editorWorker,this._editor),Vn=Object(Te.e)(Ct,this._editor.getPosition(),new Te.a(hn,bn,it),At,this._requestToken.token);Promise.all([Vn,mn]).then(function(Xn){var Yn=Xn[0],Ui=Xn[1];if(Object(k.f)(je._requestToken),je._state===0)return;if(!je._editor.hasModel())return;var ii=je._editor.getModel();if(Object(re.q)(Je)){var Pi=Object(Te.d)(hn);Yn=Yn.concat(Je).sort(Pi)}var ur=new $e(ii,je._editor.getPosition(),Ot,Ce.shy);je._completionModel=new ye(Yn,je._context.column,{leadingLineContent:ur.leadingLineContent,characterCountDelta:ur.column-je._context.column},Ui,je._editor.getOption(89),je._editor.getOption(86));for(var er=0,tr=Yn;er<tr.length;er++){var Hn=tr[er];Object(k.g)(Hn.container)&&je._completionDisposables.add(Hn.container)}je._onNewContext(ur)}).catch(ne.e)},J._createItemKindFilter=function(Ce){var Oe=new Set,it=Ce.getOption(86);it==="none"&&Oe.add(25);var Je=Ce.getOption(89);return Je.showMethods||Oe.add(0),Je.showFunctions||Oe.add(1),Je.showConstructors||Oe.add(2),Je.showFields||Oe.add(3),Je.showVariables||Oe.add(4),Je.showClasses||Oe.add(5),Je.showStructs||Oe.add(6),Je.showInterfaces||Oe.add(7),Je.showModules||Oe.add(8),Je.showProperties||Oe.add(9),Je.showEvents||Oe.add(10),Je.showOperators||Oe.add(11),Je.showUnits||Oe.add(12),Je.showValues||Oe.add(13),Je.showConstants||Oe.add(14),Je.showEnums||Oe.add(15),Je.showEnumMembers||Oe.add(16),Je.showKeywords||Oe.add(17),Je.showWords||Oe.add(18),Je.showColors||Oe.add(19),Je.showFiles||Oe.add(20),Je.showReferences||Oe.add(21),Je.showColors||Oe.add(22),Je.showFolders||Oe.add(23),Je.showTypeParameters||Oe.add(24),Je.showSnippets||Oe.add(25),Oe},J.prototype._onNewContext=function(Ce){if(!this._context)return;if(Ce.lineNumber!==this._context.lineNumber){this.cancel();return}if(Ce.leadingWord.startColumn<this._context.leadingWord.startColumn){this.cancel();return}if(Ce.column<this._context.column){Ce.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();return}if(!this._completionModel)return;if(Ce.column>this._context.column&&this._completionModel.incomplete.size>0&&Ce.leadingWord.word.length!==0){var Oe=this._completionModel.incomplete,it=this._completionModel.adopt(Oe);this.trigger({auto:this._state===2,shy:!1},!0,Oe,it)}else{var Je=this._completionModel.lineContext,je=!1;if(this._completionModel.lineContext={leadingLineContent:Ce.leadingLineContent,characterCountDelta:Ce.column-this._context.column},this._completionModel.items.length===0){if($e.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<Ce.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,je=this._completionModel.items.length>0,je&&Ce.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:je})}},J}(),F=o("CClx"),ee=o("nn6Y"),Pe=o("XNtB"),ve=o("epnl"),Me=o("yI7H"),Ie=o("ujyM"),pe=o("t9D7"),nt=o("MD5Z"),_t=Object(nt.Rb)("symbolIcon.arrayForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Rt=Object(nt.Rb)("symbolIcon.booleanForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mt=Object(nt.Rb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zt=Object(nt.Rb)("symbolIcon.colorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gt=Object(nt.Rb)("symbolIcon.constantForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),on=Object(nt.Rb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ln=Object(nt.Rb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yn=Object(nt.Rb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mn=Object(nt.Rb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),kt=Object(nt.Rb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pt=Object(nt.Rb)("symbolIcon.fileForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gt=Object(nt.Rb)("symbolIcon.folderForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Dt=Object(nt.Rb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Lt=Object(nt.Rb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Vt=Object(nt.Rb)("symbolIcon.keyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jt=Object(nt.Rb)("symbolIcon.keywordForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nn=Object(nt.Rb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sn=Object(nt.Rb)("symbolIcon.moduleForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ln=Object(nt.Rb)("symbolIcon.namespaceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_n=Object(nt.Rb)("symbolIcon.nullForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),On=Object(nt.Rb)("symbolIcon.numberForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pn=Object(nt.Rb)("symbolIcon.objectForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gn=Object(nt.Rb)("symbolIcon.operatorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jn=Object(nt.Rb)("symbolIcon.packageForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qn=Object(nt.Rb)("symbolIcon.propertyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gi=Object(nt.Rb)("symbolIcon.referenceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kn=Object(nt.Rb)("symbolIcon.snippetForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yi=Object(nt.Rb)("symbolIcon.stringForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mi=Object(nt.Rb)("symbolIcon.structForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vt=Object(nt.Rb)("symbolIcon.textForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tt=Object(nt.Rb)("symbolIcon.typeParameterForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ht=Object(nt.Rb)("symbolIcon.unitForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tn=Object(nt.Rb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(pe.e)(function(J,Ce){var Oe=J.getColor(_t);Oe&&Ce.addRule(".codicon-symbol-array { color: "+Oe+" !important; }");var it=J.getColor(Rt);it&&Ce.addRule(".codicon-symbol-boolean { color: "+it+" !important; }");var Je=J.getColor(Mt);Je&&Ce.addRule(".codicon-symbol-class { color: "+Je+" !important; }");var je=J.getColor(nn);je&&Ce.addRule(".codicon-symbol-method { color: "+je+" !important; }");var Ct=J.getColor(zt);Ct&&Ce.addRule(".codicon-symbol-color { color: "+Ct+" !important; }");var Ot=J.getColor(Gt);Ot&&Ce.addRule(".codicon-symbol-constant { color: "+Ot+" !important; }");var Qt=J.getColor(on);Qt&&Ce.addRule(".codicon-symbol-constructor { color: "+Qt+" !important; }");var At=J.getColor(Ln);At&&Ce.addRule(`
.codicon-symbol-value,.codicon-symbol-enum { color: `+At+" !important; }");var jt=J.getColor(yn);jt&&Ce.addRule(".codicon-symbol-enum-member { color: "+jt+" !important; }");var hn=J.getColor(Mn);hn&&Ce.addRule(".codicon-symbol-event { color: "+hn+" !important; }");var bn=J.getColor(kt);bn&&Ce.addRule(".codicon-symbol-field { color: "+bn+" !important; }");var mn=J.getColor(pt);mn&&Ce.addRule(".codicon-symbol-file { color: "+mn+" !important; }");var Vn=J.getColor(gt);Vn&&Ce.addRule(".codicon-symbol-folder { color: "+Vn+" !important; }");var Xn=J.getColor(Dt);Xn&&Ce.addRule(".codicon-symbol-function { color: "+Xn+" !important; }");var Yn=J.getColor(Lt);Yn&&Ce.addRule(".codicon-symbol-interface { color: "+Yn+" !important; }");var Ui=J.getColor(Vt);Ui&&Ce.addRule(".codicon-symbol-key { color: "+Ui+" !important; }");var ii=J.getColor(Jt);ii&&Ce.addRule(".codicon-symbol-keyword { color: "+ii+" !important; }");var Pi=J.getColor(sn);Pi&&Ce.addRule(".codicon-symbol-module { color: "+Pi+" !important; }");var ur=J.getColor(ln);ur&&Ce.addRule(".codicon-symbol-namespace { color: "+ur+" !important; }");var er=J.getColor(_n);er&&Ce.addRule(".codicon-symbol-null { color: "+er+" !important; }");var tr=J.getColor(On);tr&&Ce.addRule(".codicon-symbol-number { color: "+tr+" !important; }");var Hn=J.getColor(Pn);Hn&&Ce.addRule(".codicon-symbol-object { color: "+Hn+" !important; }");var Vr=J.getColor(Gn);Vr&&Ce.addRule(".codicon-symbol-operator { color: "+Vr+" !important; }");var Oi=J.getColor(Jn);Oi&&Ce.addRule(".codicon-symbol-package { color: "+Oi+" !important; }");var wo=J.getColor(Qn);wo&&Ce.addRule(".codicon-symbol-property { color: "+wo+" !important; }");var Ir=J.getColor(gi);Ir&&Ce.addRule(".codicon-symbol-reference { color: "+Ir+" !important; }");var Hr=J.getColor(Kn);Hr&&Ce.addRule(".codicon-symbol-snippet { color: "+Hr+" !important; }");var Pr=J.getColor(yi);Pr&&Ce.addRule(".codicon-symbol-string { color: "+Pr+" !important; }");var eo=J.getColor(mi);eo&&Ce.addRule(".codicon-symbol-struct { color: "+eo+" !important; }");var po=J.getColor(vt);po&&Ce.addRule(".codicon-symbol-text { color: "+po+" !important; }");var dr=J.getColor(Tt);dr&&Ce.addRule(".codicon-symbol-type-parameter { color: "+dr+" !important; }");var _r=J.getColor(Ht);_r&&Ce.addRule(".codicon-symbol-unit { color: "+_r+" !important; }");var go=J.getColor(tn);go&&Ce.addRule(".codicon-symbol-variable { color: "+go+" !important; }")});var Ut=o("EffR"),Sn=o("cqdO"),Rn=o("GJhM"),Bn=o("bexQ"),kn=o("XXUj"),oi=o("ptcw"),ci=o("3qCu"),Hi=o("WBhO"),rr=o("W9cx"),Zn=o("xONI"),Ii=o("tYmi"),Si=o("gslv"),ji=o("MqQJ"),Un;(function(J){J[J.FILE=0]="FILE",J[J.FOLDER=1]="FOLDER",J[J.ROOT_FOLDER=2]="ROOT_FOLDER"})(Un||(Un={}));function Ci(J,Ce,Oe,it){var Je=it===Un.ROOT_FOLDER?["rootfolder-icon"]:it===Un.FOLDER?["folder-icon"]:["file-icon"];if(Oe){var je;if(Oe.scheme===Ii.b.data){var Ct=Si.a.parseMetaData(Oe);je=Ct.get(Si.a.META_DATA_LABEL)}else je=Mi(Object(Si.c)(Oe).toLowerCase());if(it===Un.FOLDER)Je.push(je+"-name-folder-icon");else{if(je){Je.push(je+"-name-file-icon");for(var Ot=je.split("."),Qt=1;Qt<Ot.length;Qt++)Je.push(Ot.slice(Qt).join(".")+"-ext-file-icon");Je.push("ext-file-icon")}var At=Wi(J,Ce,Oe);At&&Je.push(Mi(At)+"-lang-file-icon")}}return Je}function Wi(J,Ce,Oe){if(!Oe)return null;var it=null;if(Oe.scheme===Ii.b.data){var Je=Si.a.parseMetaData(Oe),je=Je.get(Si.a.META_DATA_MIME);je&&(it=Ce.getModeId(je))}else{var Ct=J.getModel(Oe);Ct&&(it=Ct.getModeId())}return it&&it!==ji.c?it:Ce.getModeIdByFilepathOrFirstLine(Oe)}function Mi(J){return J.replace(/\s/g,"\\$&")}var Gi=o("G2kB"),Bi=o("bY76"),vi=o("eLzo"),qi=function(){return qi=Object.assign||function(J){for(var Ce,Oe=1,it=arguments.length;Oe<it;Oe++){Ce=arguments[Oe];for(var Je in Ce)Object.prototype.hasOwnProperty.call(Ce,Je)&&(J[Je]=Ce[Je])}return J},qi.apply(this,arguments)},or=function(J,Ce,Oe,it){var Je=arguments.length,je=Je<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(J,Ce,Oe,it);else for(var Ot=J.length-1;Ot>=0;Ot--)(Ct=J[Ot])&&(je=(Je<3?Ct(je):Je>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Je>3&&je&&Object.defineProperty(Ce,Oe,je),je},bi=function(J,Ce){return function(Oe,it){Ce(Oe,it,J)}},Di=function(J,Ce,Oe,it){function Je(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Qt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Je(jt.value).then(Ot,Qt)}At((it=it.apply(J,Ce||[])).next())})},Xi=function(J,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Je,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Qt([At,jt])}}function Qt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Je&&(je=At[0]&2?Je.return:At[0]?Je.throw||((je=Je.return)&&je.call(Je),0):Je.next)&&!(je=je.call(Je,At[1])).done)return je;(Je=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Je=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]<je[3])){Oe.label=At[1];break}if(At[0]===6&&Oe.label<je[1]){Oe.label=je[1],je=At;break}if(je&&Oe.label<je[2]){Oe.label=je[2],Oe.ops.push(At);break}je[2]&&Oe.ops.pop(),Oe.trys.pop();continue}At=Ce.call(J,Oe)}catch(jt){At=[6,jt],Je=0}finally{it=je=0}if(At[0]&5)throw At[1];return{value:At[0]?At[1]:void 0,done:!0}}},lr=!1,Ti=Object(nt.Rb)("editorSuggestWidget.background",{dark:nt.P,light:nt.P,hc:nt.P},Se.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),sr=Object(nt.Rb)("editorSuggestWidget.border",{dark:nt.Q,light:nt.Q,hc:nt.Q},Se.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),Qe=Object(nt.Rb)("editorSuggestWidget.foreground",{dark:nt.x,light:nt.x,hc:nt.x},Se.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),O=Object(nt.Rb)("editorSuggestWidget.selectedBackground",{dark:nt.qb,light:nt.qb,hc:nt.qb},Se.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},Se.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Y=/^(#([\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,Ce){var Oe=typeof J.completion.label=="string"?J.completion.label:J.completion.label.name;return Oe.match(Y)?(Ce[0]=Oe,!0):typeof J.completion.documentation=="string"&&J.completion.documentation.match(Y)?(Ce[0]=J.completion.documentation,!0):!1}function Re(J){if(!J)return!1;var Ce=J.completion;return Ce.documentation?!0:Ce.detail&&Ce.detail!==Ce.label}function We(J){return"suggest-aria-id:"+J}var ft=function(){function J(Ce,Oe,it,Je,je,Ct){this.widget=Ce,this.editor=Oe,this.triggerKeybindingLabel=it,this._modelService=Je,this._modeService=je,this._themeService=Ct}return Object.defineProperty(J.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),J.prototype.renderTemplate=function(Ce){var Oe=this,it=Object.create(null);it.disposables=new k.b,it.root=Ce,Object(Ut.e)(it.root,"show-file-icons"),it.icon=Object(Ut.p)(Ce,Object(Ut.a)(".icon")),it.colorspan=Object(Ut.p)(it.icon,Object(Ut.a)("span.colorspan"));var Je=Object(Ut.p)(Ce,Object(Ut.a)(".contents")),je=Object(Ut.p)(Je,Object(Ut.a)(".main"));it.left=Object(Ut.p)(je,Object(Ut.a)("span.left")),it.right=Object(Ut.p)(je,Object(Ut.a)("span.right")),it.iconContainer=Object(Ut.p)(it.left,Object(Ut.a)(".icon-label.codicon")),it.iconLabel=new Zn.a(it.left,{supportHighlights:!0,supportCodicons:!0}),it.disposables.add(it.iconLabel),it.signatureLabel=Object(Ut.p)(it.left,Object(Ut.a)("span.signature-label")),it.qualifierLabel=Object(Ut.p)(it.left,Object(Ut.a)("span.qualifier-label")),it.detailsLabel=Object(Ut.p)(it.right,Object(Ut.a)("span.details-label")),it.readMore=Object(Ut.p)(it.right,Object(Ut.a)("span.readMore.codicon.codicon-info")),it.readMore.title=Se.a("readMore","Read More...{0}",this.triggerKeybindingLabel);var Ct=function(){var Qt=Oe.editor.getOptions(),At=Qt.get(34),jt=At.fontFamily,hn=At.fontFeatureSettings,bn=Qt.get(90)||At.fontSize,mn=Qt.get(91)||At.lineHeight,Vn=At.fontWeight,Xn=bn+"px",Yn=mn+"px";it.root.style.fontSize=Xn,it.root.style.fontWeight=Vn,je.style.fontFamily=jt,je.style.fontFeatureSettings=hn,je.style.lineHeight=Yn,it.icon.style.height=Yn,it.icon.style.width=Yn,it.readMore.style.height=Yn,it.readMore.style.width=Yn};return Ct(),it.disposables.add(se.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Ot){return Ot.hasChanged(34)||Ot.hasChanged(90)||Ot.hasChanged(91)}).on(Ct,null)),it},J.prototype.renderElement=function(Ce,Oe,it){var Je=this,je=it,Ct=Ce.completion,Ot=typeof Ct.label=="string"?Ct.label:Ct.label.name;je.root.id=We(Oe),je.icon.className="icon "+Object(A.C)(Ct.kind),je.colorspan.style.backgroundColor="";var Qt={labelEscapeNewLines:!0,matches:Object(ie.c)(Ce.score)},At=[];if(Ct.kind===19&&De(Ce,At))je.icon.className="icon customcolor",je.iconContainer.className="icon hide",je.colorspan.style.backgroundColor=At[0];else if(Ct.kind===20&&this._themeService.getIconTheme().hasFileIcons){je.icon.className="icon hide",je.iconContainer.className="icon hide";var jt=Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ot}),Un.FILE),hn=Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ct.detail}),Un.FILE);Qt.extraClasses=jt.length>hn.length?jt:hn}else Ct.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(je.icon.className="icon hide",je.iconContainer.className="icon hide",Qt.extraClasses=Object(re.m)([Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ot}),Un.FOLDER),Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ct.detail}),Un.FOLDER)])):(je.icon.className="icon hide",je.iconContainer.className="",Object(Ut.f)(je.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(A.C)(Ct.kind)));Ct.tags&&Ct.tags.indexOf(1)>=0&&(Qt.extraClasses=(Qt.extraClasses||[]).concat(["deprecated"]),Qt.matches=[]),je.iconLabel.setLabel(Ot,void 0,Qt),typeof Ct.label=="string"?(je.signatureLabel.textContent="",je.qualifierLabel.textContent="",je.detailsLabel.textContent=(Ct.detail||"").replace(/\n.*$/m,""),Object(Ut.O)(je.right,"always-show-details")):(je.signatureLabel.textContent=(Ct.label.signature||"").replace(/\n.*$/m,""),je.qualifierLabel.textContent=(Ct.label.qualifier||"").replace(/\n.*$/m,""),je.detailsLabel.textContent=(Ct.label.type||"").replace(/\n.*$/m,""),Object(Ut.e)(je.right,"always-show-details")),Re(Ce)?(Object(Ut.e)(je.right,"can-expand-details"),Object(Ut.W)(je.readMore),je.readMore.onmousedown=function(bn){bn.stopPropagation(),bn.preventDefault()},je.readMore.onclick=function(bn){bn.stopPropagation(),bn.preventDefault(),Je.widget.toggleDetails()}):(Object(Ut.O)(je.right,"can-expand-details"),Object(Ut.I)(je.readMore),je.readMore.onmousedown=null,je.readMore.onclick=null)},J.prototype.disposeTemplate=function(Ce){Ce.disposables.dispose()},J=or([bi(3,Gi.a),bi(4,Hi.a),bi(5,pe.c)],J),J}(),lt=function(){function J(Ce,Oe,it,Je,je){var Ct=this;this.widget=Oe,this.editor=it,this.markdownRenderer=Je,this.kbToggleDetails=je,this.borderWidth=1,this.disposables=new k.b,this.el=Object(Ut.p)(Ce,Object(Ut.a)(".details")),this.disposables.add(Object(k.h)(function(){return Ce.removeChild(Ct.el)})),this.body=Object(Ut.a)(".body"),this.scrollbar=new Rn.a(this.body,{}),Object(Ut.p)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(Ut.p)(this.body,Object(Ut.a)(".header")),this.close=Object(Ut.p)(this.header,Object(Ut.a)("span.codicon.codicon-close")),this.close.title=Se.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(Ut.p)(this.header,Object(Ut.a)("p.type")),this.docs=Object(Ut.p)(this.body,Object(Ut.a)("p.docs")),this.configureFont(),se.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Ot){return Ot.hasChanged(34)}).on(this.configureFont,this,this.disposables),Je.onDidRenderCodeBlock(function(){return Ct.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=Se.a("loading","Loading..."),this.docs.textContent=""},J.prototype.renderItem=function(Ce,Oe){var it=this;this.renderDisposeable=Object(k.f)(this.renderDisposeable);var Je=Ce.completion,je=Je.documentation,Ct=Je.detail;if(Oe){var Ot="";Ot+="score: "+Ce.score[0]+(Ce.word?", compared '"+(Ce.completion.filterText&&Ce.completion.filterText+" (filterText)"||Ce.completion.label)+"' with '"+Ce.word+"'":" (no prefix)")+`
`,Ot+="distance: "+Ce.distance+`, see localityBonus-setting
`,Ot+="index: "+Ce.idx+", based on "+(Ce.completion.sortText&&'sortText: "'+Ce.completion.sortText+'"'||"label")+`
`,je=new vi.a().appendCodeblock("empty",Ot),Ct="Provider: "+Ce.provider._debugDisplayName}if(!Oe&&!Re(Ce)){this.type.textContent="",this.docs.textContent="",Object(Ut.e)(this.el,"no-docs");return}if(Object(Ut.O)(this.el,"no-docs"),typeof je=="string")Object(Ut.O)(this.docs,"markdown-docs"),this.docs.textContent=je;else{Object(Ut.e)(this.docs,"markdown-docs"),this.docs.innerHTML="";var Qt=this.markdownRenderer.render(je);this.renderDisposeable=Qt,this.docs.appendChild(Qt.element)}Ct?(this.type.innerText=Ct,Object(Ut.W)(this.type)):(this.type.innerText="",Object(Ut.I)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+this.borderWidth*2+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(At){At.preventDefault(),At.stopPropagation()},this.close.onclick=function(At){At.preventDefault(),At.stopPropagation(),it.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},J.prototype.scrollDown=function(Ce){Ce===void 0&&(Ce=8),this.body.scrollTop+=Ce},J.prototype.scrollUp=function(Ce){Ce===void 0&&(Ce=8),this.body.scrollTop-=Ce},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(Ce){this.borderWidth=Ce},J.prototype.configureFont=function(){var Ce=this.editor.getOptions(),Oe=Ce.get(34),it=Oe.fontFamily,Je=Ce.get(90)||Oe.fontSize,je=Ce.get(91)||Oe.lineHeight,Ct=Oe.fontWeight,Ot=Je+"px",Qt=je+"px";this.el.style.fontSize=Ot,this.el.style.fontWeight=Ct,this.el.style.fontFeatureSettings=Oe.fontFeatureSettings,this.type.style.fontFamily=it,this.close.style.height=Qt,this.close.style.width=Qt},J.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(k.f)(this.renderDisposeable)},J}(),yt=function(){function J(Ce,Oe,it,Je,je,Ct,Ot,Qt,At){var jt=this,hn,bn;this.editor=Ce,this.telemetryService=Oe,this.keybindingService=it,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=k.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new te.e,this.toDispose=new k.b,this.onDidSelectEmitter=new se.a,this.onDidFocusEmitter=new se.a,this.onDidHideEmitter=new se.a,this.onDidShowEmitter=new se.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new se.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var mn=this.toDispose.add(new ci.a(Ce,Ot,Qt)),Vn=(bn=(hn=it.lookupKeybinding("toggleSuggestionDetails"))===null||hn===void 0?void 0:hn.getLabel())!==null&&bn!==void 0?bn:"";this.msgDetailsLess=Se.a("detail.less","{0} for less...",Vn),this.msgDetailMore=Se.a("detail.more","{0} for more...",Vn),this.isAuto=!1,this.focusedItem=null,this.storageService=Ct,this.element=Object(Ut.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(Ut.i)(this.element,"click",function(ii){ii.target===jt.element&&jt.hideWidget()})),this.messageElement=Object(Ut.p)(this.element,Object(Ut.a)(".message")),this.listElement=Object(Ut.p)(this.element,Object(Ut.a)(".tree"));var Xn=function(){return Object(Ut.X)(jt.element,"with-status-bar",!jt.editor.getOption(89).hideStatusBar)};Xn(),this.statusBarElement=Object(Ut.p)(this.element,Object(Ut.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(Ut.p)(this.statusBarElement,Object(Ut.a)("span")),this.statusBarRightSpan=Object(Ut.p)(this.statusBarElement,Object(Ut.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=At.createInstance(lt,this.element,this,this.editor,mn,Vn);var Yn=function(){return Object(Ut.X)(jt.element,"no-icons",!jt.editor.getOption(89).showIcons)};Yn();var Ui=At.createInstance(ft,this,this.editor,Vn);this.list=new Sn.c("SuggestWidget",this.listElement,this,[Ui],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(Pi){var ur=typeof Pi.completion.label=="string"?Pi.completion.label:Pi.completion.label.name;if(Pi.isResolved&&jt.expandDocsSettingFromStorage()){var er=Pi.completion,tr=er.documentation,Hn=er.detail,Vr=Q.r("{0}{1}",Hn||"",tr?typeof tr=="string"?tr:tr.value:"");return Se.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",ur,Vr)}else return ur}}}),this.toDispose.add(Object(oi.b)(this.list,je,{listInactiveFocusBackground:O,listInactiveFocusOutline:nt.b})),this.toDispose.add(je.onThemeChange(function(ii){return jt.onThemeChange(ii)})),this.toDispose.add(Ce.onDidLayoutChange(function(){return jt.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(ii){return jt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onTap(function(ii){return jt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onSelectionChange(function(ii){return jt.onListSelection(ii)})),this.toDispose.add(this.list.onFocusChange(function(ii){return jt.onListFocus(ii)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return jt.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(ii){ii.hasChanged(89)&&(Xn(),Yn())})),this.suggestWidgetVisible=Te.b.Visible.bindTo(Je),this.suggestWidgetMultipleSuggestions=Te.b.MultipleSuggestions.bindTo(Je),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(je.getTheme()),this.toDispose.add(Object(Ut.n)(this.details.element,"keydown",function(ii){jt._onDetailsKeydown.fire(ii)})),this.toDispose.add(this.editor.onMouseDown(function(ii){return jt.onEditorMouseDown(ii)}))}return J.prototype.onEditorMouseDown=function(Ce){this.details.element.contains(Ce.target.element)?this.details.element.focus():this.element.contains(Ce.target.element)&&this.editor.focus()},J.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},J.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},J.prototype.onListMouseDownOrTap=function(Ce){if(typeof Ce.element=="undefined"||typeof Ce.index=="undefined")return;Ce.browserEvent.preventDefault(),Ce.browserEvent.stopPropagation(),this.select(Ce.element,Ce.index)},J.prototype.onListSelection=function(Ce){if(!Ce.elements.length)return;this.select(Ce.elements[0],Ce.indexes[0])},J.prototype.select=function(Ce,Oe){var it=this.completionModel;if(!it)return;this.onDidSelectEmitter.fire({item:Ce,index:Oe,model:it}),this.editor.focus()},J.prototype.onThemeChange=function(Ce){var Oe=Ce.getColor(Ti);Oe&&(this.listElement.style.backgroundColor=Oe.toString(),this.statusBarElement.style.backgroundColor=Oe.toString(),this.details.element.style.backgroundColor=Oe.toString(),this.messageElement.style.backgroundColor=Oe.toString());var it=Ce.getColor(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=Ce.getColor(nt.U);Je&&(this.detailsFocusBorderColor=Je.toString()),this.details.setBorderWidth(Ce.type==="hc"?2:1)},J.prototype.onListFocus=function(Ce){var Oe=this,it,Je;if(this.ignoreFocusEvents)return;if(!Ce.elements.length){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),this.editor.setAriaOptions({activeDescendant:void 0});return}if(!this.completionModel)return;var je=Ce.elements[0],Ct=Ce.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,je!==this.focusedItem){var Ot=this.editor.getOption(89).insertMode==="insert",Qt=(it=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||it===void 0?void 0:it.getLabel(),At=(Je=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||Je===void 0?void 0:Je.getLabel();tt.a.equals(je.editInsertEnd,je.editReplaceEnd)?this.setStatusBarLeftText(Se.a("accept","{0} to accept",Qt)):Ot?this.setStatusBarLeftText(Se.a("insert","{0} to insert, {1} to replace",Qt,At)):this.setStatusBarLeftText(Se.a("replace","{0} to replace, {1} to insert",Qt,At)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=je,this.list.reveal(Ct),this.currentSuggestionDetails=Object(te.f)(function(jt){return Di(Oe,void 0,void 0,function(){var hn,bn,mn=this;return Xi(this,function(Vn){switch(Vn.label){case 0:return hn=Object(te.g)(function(){return mn.showDetails(!0)},250),jt.onCancellationRequested(function(){return hn.dispose()}),[4,je.resolve(jt)];case 1:return bn=Vn.sent(),hn.dispose(),[2,bn]}})})}),this.currentSuggestionDetails.then(function(){if(Ct>=Oe.list.length||je!==Oe.list.element(Ct))return;Oe.ignoreFocusEvents=!0,Oe.list.splice(Ct,1,[je]),Oe.list.setFocus([Ct]),Oe.ignoreFocusEvents=!1,Oe.expandDocsSettingFromStorage()?Oe.showDetails(!1):Object(Ut.O)(Oe.element,"docs-side"),Re(Oe.focusedItem)?Oe.expandDocsSettingFromStorage()?Oe.setStatusBarRightText(Oe.msgDetailsLess):Oe.setStatusBarRightText(Oe.msgDetailMore):Oe.statusBarRightSpan.innerText="",Oe.editor.setAriaOptions({activeDescendant:We(Ct)})}).catch(ne.e)}this.onDidFocusEmitter.fire({item:je,index:Ct,model:this.completionModel})},J.prototype.setState=function(Ce){if(!this.element)return;var Oe=this.state!==Ce;this.state=Ce,Object(Ut.X)(this.element,"frozen",Ce===4);switch(Ce){case 0:Object(Ut.I)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,Oe&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=J.LOADING_MESSAGE,Object(Ut.I)(this.listElement,this.details.element,this.statusBarElement),Object(Ut.W)(this.messageElement),Object(Ut.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=J.NO_SUGGESTIONS_MESSAGE,Object(Ut.I)(this.listElement,this.details.element,this.statusBarElement),Object(Ut.W)(this.messageElement),Object(Ut.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.listElement),this.show();break;case 5:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},J.prototype.showTriggered=function(Ce,Oe){var it=this;if(this.state!==0)return;this.isAuto=!!Ce,this.isAuto||(this.loadingTimeout=Object(te.g)(function(){return it.setState(1)},Oe))},J.prototype.showSuggestions=function(Ce,Oe,it,Je){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==Ce&&(this.completionModel=Ce),it&&this.state!==2&&this.state!==0){this.setState(4);return}var je=this.completionModel.items.length,Ct=je===0;if(this.suggestWidgetMultipleSuggestions.set(je>1),Ct)Je?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Ot=this.completionModel.stats;Ot.wasAutomaticallyTriggered=!!Je,this.telemetryService.publicLog("suggestWidget",qi({},Ot))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),it?this.setState(4):this.setState(3),this.list.reveal(Oe,0),this.list.setFocus([Oe]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},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(){return this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel?{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}:void 0},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(!Re(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(Ut.I)(this.details.element),Object(Ut.O)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},J.prototype.showDetails=function(Ce){Ce||this.expandSideOrBelow(),Object(Ut.W)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",Ce?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},J.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},J.prototype.show=function(){var Ce=this,Oe=this.updateListHeight();Oe!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=Oe),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(Ut.e)(Ce.element,"visible"),Ce.onDidShowEmitter.fire(Ce)},100)},J.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(Ut.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 Ce=[2,1];return this.preferDocPositionTop&&(Ce=[1]),{position:this.editor.getPosition(),preference:Ce}},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 Ce=0;if(this.state===2||this.state===1)Ce=this.unfocusedHeight;else{var Oe=this.list.contentHeight/this.unfocusedHeight,it=this.editor.getOption(89).maxVisibleSuggestions;Ce=Math.min(Oe,it)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=Ce+"px",this.statusBarElement.style.top=Ce+"px",this.list.layout(Ce),Ce},J.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var Ce=this.editor.getOption(49),Oe=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),it=Object(Ut.B)(this.editor.getDomNode()),Je=it.left+Oe.left,je=it.top+Oe.top+Oe.height,Ct=Object(Ut.B)(this.element),Ot=Ct.left,Qt=Ct.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<Qt&&!this.preferDocPositionTop){this.preferDocPositionTop=!0,this.adjustDocsPosition();return}this.docsPositionPreviousWidgetY=Qt,Ot<Je-this.listWidth?Object(Ut.e)(this.element,"list-right"):Object(Ut.O)(this.element,"list-right"),Object(Ut.H)(this.element,"docs-side")&&je-Ce>Qt&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},J.prototype.expandSideOrBelow=function(){if(!Re(this.focusedItem)&&this.firstFocusInCurrentList){Object(Ut.O)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below");return}var Ce=this.element.style.maxWidth.match(/(\d+)px/);!Ce||Number(Ce[1])<this.maxWidgetWidth?(Object(Ut.e)(this.element,"docs-below"),Object(Ut.O)(this.element,"docs-side")):Re(this.focusedItem)&&(Object(Ut.e)(this.element,"docs-side"),Object(Ut.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 Oe=this.editor.getOptions();return Oe.get(91)||Oe.get(34).lineHeight},enumerable:!0,configurable:!0}),J.prototype.getHeight=function(Ce){return this.unfocusedHeight},J.prototype.getTemplateId=function(Ce){return"suggestion"},J.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,lr)},J.prototype.updateExpandDocsSetting=function(Ce){this.storageService.store("expandSuggestionDocs",Ce,0)},J.prototype.setStatusBarLeftText=function(Ce){this.statusBarLeftSpan.innerText=Ce},J.prototype.setStatusBarRightText=function(Ce){this.statusBarRightSpan.innerText=Ce},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=Se.a("suggestWidget.loading","Loading..."),J.NO_SUGGESTIONS_MESSAGE=Se.a("suggestWidget.noSuggestions","No suggestions."),J=or([bi(1,kn.a),bi(2,Bn.a),bi(3,Z.c),bi(4,pe.c),bi(5,D.a),bi(6,Hi.a),bi(7,rr.a),bi(8,H.a)],J),J}();Object(pe.e)(function(J,Ce){var Oe=J.getColor(M);Oe&&Ce.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+Oe+"; }");var it=J.getColor(Qe);it&&Ce.addRule(".monaco-editor .suggest-widget { color: "+it+"; }");var Je=J.getColor(nt.cc);Je&&Ce.addRule(".monaco-editor .suggest-widget a { color: "+Je+"; }");var je=J.getColor(nt.bc);je&&Ce.addRule(".monaco-editor .suggest-widget code { background-color: "+je+"; }")});var xt=function(){var J=function(Oe,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,je){Je.__proto__=je}||function(Je,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Je[Ct]=je[Ct])},J(Oe,it)};return function(Ce,Oe){J(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),It=function(J,Ce,Oe,it){var Je=arguments.length,je=Je<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(J,Ce,Oe,it);else for(var Ot=J.length-1;Ot>=0;Ot--)(Ct=J[Ot])&&(je=(Je<3?Ct(je):Je>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Je>3&&je&&Object.defineProperty(Ce,Oe,je),je},Ft=function(J,Ce){return function(Oe,it){Ce(Oe,it,J)}},Yt=function(J){xt(Ce,J);function Ce(Oe,it){var Je=J.call(this)||this;return Je._editor=Oe,Je._enabled=!1,Je._ckAtEnd=Ce.AtEnd.bindTo(it),Je._register(Je._editor.onDidChangeConfiguration(function(je){return je.hasChanged(94)&&Je._update()})),Je._update(),Je}return Ce.prototype.dispose=function(){J.prototype.dispose.call(this),Object(k.f)(this._selectionListener),this._ckAtEnd.reset()},Ce.prototype._update=function(){var Oe=this,it=this._editor.getOption(94)==="on";if(this._enabled===it)return;if(this._enabled=it,this._enabled){var Je=function(){if(!Oe._editor.hasModel()){Oe._ckAtEnd.set(!1);return}var Ct=Oe._editor.getModel(),Ot=Oe._editor.getSelection(),Qt=Ct.getWordAtPosition(Ot.getStartPosition());if(!Qt){Oe._ckAtEnd.set(!1);return}Oe._ckAtEnd.set(Qt.endColumn===Ot.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(Je),Je()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},Ce.AtEnd=new Z.d("atEndOfWord",!1),Ce=It([Ft(1,Z.c)],Ce),Ce}(k.a),Zt=o("pAvP"),un=o("746U"),fn=o("MXAL"),An=function(){function J(Ce,Oe,it){var Je=this;this._disposables=new k.b,this._disposables.add(Oe.onDidShow(function(){return Je._onItem(Oe.getFocusedItem())})),this._disposables.add(Oe.onDidFocus(this._onItem,this)),this._disposables.add(Oe.onDidHide(this.reset,this)),this._disposables.add(Ce.onWillType(function(je){if(Je._active&&!Oe.isFrozen()){var Ct=je.charCodeAt(je.length-1);Je._active.acceptCharacters.has(Ct)&&Ce.getOption(0)&&it(Je._active.item)}}))}return J.prototype._onItem=function(Ce){if(!Ce||!Object(re.q)(Ce.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===Ce.item)return;for(var Oe=new fn.b,it=0,Je=Ce.item.completion.commitCharacters;it<Je.length;it++){var je=Je[it];je.length>0&&Oe.add(je.charCodeAt(0))}this._active={acceptCharacters:Oe,item:Ce}},J.prototype.reset=function(){this._active=void 0},J.prototype.dispose=function(){this._disposables.dispose()},J}(),gn=o("MNsG"),Tn=o("4y0V"),xn=function(){var J=function(Oe,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,je){Je.__proto__=je}||function(Je,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Je[Ct]=je[Ct])},J(Oe,it)};return function(Ce,Oe){J(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Le=function(){function J(Ce){var Oe=this;this._controller=Ce,this._disposables=new k.b,this._decorations=[],this._disposables.add(Ce.model.onDidSuggest(function(it){if(!it.shy){var Je=Oe._controller.widget.getValue(),je=Je.getFocusedItem();je&&Oe._highlight(je.item),Oe._widgetListener||(Oe._widgetListener=Je.onDidFocus(function(Ct){return Oe._highlight(Ct.item)}))}})),this._disposables.add(Ce.model.onDidCancel(function(){Oe._reset()}))}return J.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(k.f)(this._widgetListener),Object(k.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(Ce){var Oe=this,it;this._currentItem=Ce;var Je=this._controller.editor.getOption(89),je=[];if(Je.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=W.event(function(){return Oe._highlight(Oe._currentItem)}));var Ct=this._controller.getOverwriteInfo(Ce,W.isPressed),Ot=this._controller.editor.getPosition();if(Je.insertMode==="insert"&&Ct.overwriteAfter>0)je=[{range:new G.a(Ot.lineNumber,Ot.column,Ot.lineNumber,Ot.column+Ct.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(Je.insertMode==="replace"&&Ct.overwriteAfter===0){var Qt=(it=this._controller.editor.getModel())===null||it===void 0?void 0:it.getWordAtPosition(Ot);Qt&&Qt.endColumn>Ot.column&&(je=[{range:new G.a(Ot.lineNumber,Ot.column,Ot.lineNumber,Qt.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,je)},J}(),W=new(function(J){xn(Ce,J);function Ce(){var Oe=J.call(this)||this;return Oe._subscriptions=new k.b,Oe._isPressed=!1,Oe._subscriptions.add(Object(Tn.a)(document.body,"keydown")(function(it){return Oe.isPressed=it.shiftKey})),Oe._subscriptions.add(Object(Tn.a)(document.body,"keyup")(function(){return Oe.isPressed=!1})),Oe._subscriptions.add(Object(Tn.a)(document.body,"mouseleave")(function(){return Oe.isPressed=!1})),Oe._subscriptions.add(Object(Tn.a)(document.body,"blur")(function(){return Oe.isPressed=!1})),Oe}return Object.defineProperty(Ce.prototype,"isPressed",{get:function(){return this._isPressed},set:function(it){this._isPressed!==it&&(this._isPressed=it,this.fire(it))},enumerable:!0,configurable:!0}),Ce.prototype.dispose=function(){this._subscriptions.dispose(),J.prototype.dispose.call(this)},Ce}(se.a)),ae=function(){var J=function(Oe,it){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Je,je){Je.__proto__=je}||function(Je,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Je[Ct]=je[Ct])},J(Oe,it)};return function(Ce,Oe){J(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),ke=function(){return ke=Object.assign||function(J){for(var Ce,Oe=1,it=arguments.length;Oe<it;Oe++){Ce=arguments[Oe];for(var Je in Ce)Object.prototype.hasOwnProperty.call(Ce,Je)&&(J[Je]=Ce[Je])}return J},ke.apply(this,arguments)},qe=function(J,Ce,Oe,it){var Je=arguments.length,je=Je<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(J,Ce,Oe,it);else for(var Ot=J.length-1;Ot>=0;Ot--)(Ct=J[Ot])&&(je=(Je<3?Ct(je):Je>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Je>3&&je&&Object.defineProperty(Ce,Oe,je),je},ct=function(J,Ce){return function(Oe,it){Ce(Oe,it,J)}},St=function(){for(var J=0,Ce=0,Oe=arguments.length;Ce<Oe;Ce++)J+=arguments[Ce].length;for(var it=Array(J),Je=0,Ce=0;Ce<Oe;Ce++)for(var je=arguments[Ce],Ct=0,Ot=je.length;Ct<Ot;Ct++,Je++)it[Je]=je[Ct];return it},Ge=!1,ue=function(){function J(Ce,Oe){this._model=Ce,this._position=Oe;var it=Ce.getLineMaxColumn(Oe.lineNumber);if(it!==Oe.column){var Je=Ce.getOffsetAt(Oe),je=Ce.getPositionAt(Je+1);this._marker=Ce.deltaDecorations([],[{range:G.a.fromPositions(Oe,je),options:{stickiness:1}}])}}return J.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},J.prototype.delta=function(Ce){if(this._model.isDisposed()||this._position.lineNumber!==Ce.lineNumber)return 0;if(this._marker){var Oe=this._model.getDecorationRange(this._marker[0]),it=this._model.getOffsetAt(Oe.getStartPosition());return it-this._model.getOffsetAt(Ce)}else return this._model.getLineMaxColumn(Ce.lineNumber)-Ce.column},J}(),X=function(){function J(Ce,Oe,it,Je,je,Ct){var Ot=this;this._memoryService=it,this._commandService=Je,this._contextKeyService=je,this._instantiationService=Ct,this._lineSuffix=new k.d,this._toDispose=new k.b,this.editor=Ce,this.model=new we(this.editor,Oe),this.widget=this._toDispose.add(new te.b(function(){var jt=Ot._instantiationService.createInstance(yt,Ot.editor);Ot._toDispose.add(jt),Ot._toDispose.add(jt.onDidSelect(function(mn){return Ot._insertSuggestion(mn,0)},Ot));var hn=new An(Ot.editor,jt,function(mn){return Ot._insertSuggestion(mn,2)});Ot._toDispose.add(hn),Ot._toDispose.add(Ot.model.onDidSuggest(function(mn){mn.completionModel.items.length===0&&hn.reset()}));var bn=Te.b.MakesTextEdit.bindTo(Ot._contextKeyService);return Ot._toDispose.add(jt.onDidFocus(function(mn){var Vn=mn.item,Xn=Ot.editor.getPosition(),Yn=Vn.editStart.column,Ui=Xn.column,ii=!0;if(Ot.editor.getOption(1)==="smart"&&Ot.model.state===2&&!Vn.completion.command&&!Vn.completion.additionalTextEdits&&!(Vn.completion.insertTextRules&4)&&Ui-Yn===Vn.completion.insertText.length){var Pi=Ot.editor.getModel().getValueInRange({startLineNumber:Xn.lineNumber,startColumn:Yn,endLineNumber:Xn.lineNumber,endColumn:Ui});ii=Pi!==Vn.completion.insertText}bn.set(ii)})),Ot._toDispose.add(Object(k.h)(function(){return bn.reset()})),Ot._toDispose.add(jt.onDetailsKeyDown(function(mn){if(mn.toKeybinding().equals(new N.e(!0,!1,!1,!1,33))||gn.e&&mn.toKeybinding().equals(new N.e(!1,!1,!1,!0,33))){mn.stopPropagation();return}mn.toKeybinding().isModifierKey()||Ot.editor.focus()})),jt})),this._alternatives=this._toDispose.add(new te.b(function(){return Ot._toDispose.add(new de(Ot.editor,Ot._contextKeyService))})),this._toDispose.add(Ct.createInstance(Yt,Ce)),this._toDispose.add(this.model.onDidTrigger(function(jt){Ot.widget.getValue().showTriggered(jt.auto,jt.shy?250:50),Ot._lineSuffix.value=new ue(Ot.editor.getModel(),jt.position)})),this._toDispose.add(this.model.onDidSuggest(function(jt){if(!jt.shy){var hn=Ot._memoryService.select(Ot.editor.getModel(),Ot.editor.getPosition(),jt.completionModel.items);Ot.widget.getValue().showSuggestions(jt.completionModel,hn,jt.isFrozen,jt.auto)}})),this._toDispose.add(this.model.onDidCancel(function(jt){jt.retrigger||Ot.widget.getValue().hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(function(){Ge||(Ot.model.cancel(),Ot.model.clear())}));var Qt=Te.b.AcceptSuggestionsOnEnter.bindTo(je),At=function(){var hn=Ot.editor.getOption(1);Qt.set(hn==="on"||hn==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(function(){return At()})),At(),this._toDispose.add(new Le(this))}return J.get=function(Ce){return Ce.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(Ce,Oe){var it,Je=this;if(!Ce||!Ce.item){this._alternatives.getValue().reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;var je=this.editor.getModel(),Ct=je.getAlternativeVersionId(),Ot=Ce.item,Qt=Ot.completion;Oe&1||this.editor.pushUndoStop();var At=this.getOverwriteInfo(Ot,Boolean(Oe&8));this._memoryService.memorize(je,this.editor.getPosition(),Ot),Array.isArray(Qt.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",Qt.additionalTextEdits.map(function(hn){return j.a.replace(G.a.lift(hn.range),hn.text)}));var jt=Qt.insertText;Qt.insertTextRules&4||(jt=x.c.escape(jt)),_.SnippetController2.get(this.editor).insert(jt,{overwriteBefore:At.overwriteBefore,overwriteAfter:At.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(Qt.insertTextRules&1)}),Oe&2||this.editor.pushUndoStop(),Qt.command?Qt.command.id===Ue.id?this.model.trigger({auto:!0,shy:!1},!0):((it=this._commandService).executeCommand.apply(it,St([Qt.command.id],Qt.command.arguments?St(Qt.command.arguments):[])).catch(ne.e).finally(function(){return Je.model.clear()}),this.model.cancel()):(this.model.cancel(),this.model.clear()),Oe&4&&this._alternatives.getValue().set(Ce,function(hn){for(;je.canUndo();){Ct!==je.getAlternativeVersionId()&&je.undo(),Je._insertSuggestion(hn,1|2|(Oe&8?8:0));break}}),this._alertCompletionItem(Ce.item)},J.prototype.getOverwriteInfo=function(Ce,Oe){Object(un.a)(this.editor.hasModel());var it=this.editor.getOption(89).insertMode==="replace";Oe&&(it=!it);var Je=Ce.position.column-Ce.editStart.column,je=(it?Ce.editReplaceEnd.column:Ce.editInsertEnd.column)-Ce.position.column,Ct=this.editor.getPosition().column-Ce.position.column,Ot=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:Je+Ct,overwriteAfter:je+Ot}},J.prototype._alertCompletionItem=function(Ce){var Oe=Ce.completion,it=typeof Oe.label=="string"?Oe.label:Oe.label.name;if(Object(re.q)(Oe.additionalTextEdits)){var Je=Se.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",it,Oe.additionalTextEdits.length);Object(I.a)(Je)}},J.prototype.triggerSuggest=function(Ce){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,Ce),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},J.prototype.triggerSuggestAndAcceptBest=function(Ce){var Oe=this;if(!this.editor.hasModel())return;var it=this.editor.getPosition(),Je=function(){it.equals(Oe.editor.getPosition())&&Oe._commandService.executeCommand(Ce.fallback)},je=function(Ot){if(Ot.completion.insertTextRules&4||Ot.completion.additionalTextEdits)return!0;var Qt=Oe.editor.getPosition(),At=Ot.editStart.column,jt=Qt.column;if(jt-At!==Ot.completion.insertText.length)return!0;var hn=Oe.editor.getModel().getValueInRange({startLineNumber:Qt.lineNumber,startColumn:At,endLineNumber:Qt.lineNumber,endColumn:jt});return hn!==Ot.completion.insertText};se.b.once(this.model.onDidTrigger)(function(Ct){var Ot=[];se.b.any(Oe.model.onDidTrigger,Oe.model.onDidCancel)(function(){Object(k.f)(Ot),Je()},void 0,Ot),Oe.model.onDidSuggest(function(Qt){var At=Qt.completionModel;if(Object(k.f)(Ot),At.items.length===0){Je();return}var jt=Oe._memoryService.select(Oe.editor.getModel(),Oe.editor.getPosition(),At.items),hn=At.items[jt];if(!je(hn)){Je();return}Oe.editor.pushUndoStop(),Oe._insertSuggestion({index:jt,item:hn,model:At},4|1|2)},void 0,Ot)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(it.lineNumber,0),this.editor.focus()},J.prototype.acceptSelectedSuggestion=function(Ce,Oe){var it=this.widget.getValue().getFocusedItem(),Je=0;Ce&&(Je|=4),Oe&&(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,Zt.a),ct(2,_e),ct(3,q.b),ct(4,Z.c),ct(5,H.a)],J),J}(),Ue=function(J){ae(Ce,J);function Ce(){return J.call(this,{id:Ce.id,label:Se.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:Z.a.and(R.a.writable,R.a.hasCompletionItemProvider),kbOpts:{kbExpr:R.a.textInputFocus,primary:2048|10,mac:{primary:256|10,secondary:[512|9]},weight:100}})||this}return Ce.prototype.run=function(Oe,it){var Je=X.get(it);if(!Je)return;Je.triggerSuggest()},Ce.id="editor.action.triggerSuggest",Ce}(U.b);Object(U.h)(X.ID,X),Object(U.f)(Ue);var at=100+90,et=U.c.bindToContribution(X.get);Object(U.g)(new et({id:"acceptSelectedSuggestion",precondition:Te.b.Visible,handler:function(Ce){Ce.acceptSelectedSuggestion(!0,!1)}})),ce.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:Z.a.and(Te.b.Visible,R.a.textInputFocus),primary:2,weight:at}),ce.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:Z.a.and(Te.b.Visible,R.a.textInputFocus,Te.b.AcceptSuggestionsOnEnter,Te.b.MakesTextEdit),primary:3,weight:at}),Object(U.g)(new et({id:"acceptAlternativeSelectedSuggestion",precondition:Z.a.and(Te.b.Visible,R.a.textInputFocus),kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:1024|3,secondary:[1024|2]},handler:function(Ce){Ce.acceptSelectedSuggestion(!1,!0)}})),q.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(U.g)(new et({id:"hideSuggestWidget",precondition:Te.b.Visible,handler:function(Ce){return Ce.cancelSuggestWidget()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:9,secondary:[1024|9]}})),Object(U.g)(new et({id:"selectNextSuggestion",precondition:Z.a.and(Te.b.Visible,Te.b.MultipleSuggestions),handler:function(Ce){return Ce.selectNextSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:18,secondary:[2048|18],mac:{primary:18,secondary:[2048|18,256|44]}}})),Object(U.g)(new et({id:"selectNextPageSuggestion",precondition:Z.a.and(Te.b.Visible,Te.b.MultipleSuggestions),handler:function(Ce){return Ce.selectNextPageSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:12,secondary:[2048|12]}})),Object(U.g)(new et({id:"selectLastSuggestion",precondition:Z.a.and(Te.b.Visible,Te.b.MultipleSuggestions),handler:function(Ce){return Ce.selectLastSuggestion()}})),Object(U.g)(new et({id:"selectPrevSuggestion",precondition:Z.a.and(Te.b.Visible,Te.b.MultipleSuggestions),handler:function(Ce){return Ce.selectPrevSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:16,secondary:[2048|16],mac:{primary:16,secondary:[2048|16,256|46]}}})),Object(U.g)(new et({id:"selectPrevPageSuggestion",precondition:Z.a.and(Te.b.Visible,Te.b.MultipleSuggestions),handler:function(Ce){return Ce.selectPrevPageSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:11,secondary:[2048|11]}})),Object(U.g)(new et({id:"selectFirstSuggestion",precondition:Z.a.and(Te.b.Visible,Te.b.MultipleSuggestions),handler:function(Ce){return Ce.selectFirstSuggestion()}})),Object(U.g)(new et({id:"toggleSuggestionDetails",precondition:Te.b.Visible,handler:function(Ce){return Ce.toggleSuggestionDetails()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:2048|10,mac:{primary:256|10}}})),Object(U.g)(new et({id:"toggleExplainMode",precondition:Te.b.Visible,handler:function(Ce){return Ce.toggleExplainMode()},kbOpts:{weight:100,primary:2048|85}})),Object(U.g)(new et({id:"toggleSuggestionFocus",precondition:Te.b.Visible,handler:function(Ce){return Ce.toggleSuggestionFocus()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:2048|512|10,mac:{primary:256|512|10}}})),Object(U.g)(new et({id:"insertBestCompletion",precondition:Z.a.and(Z.a.equals("config.editor.tabCompletion","on"),Yt.AtEnd,Te.b.Visible.toNegated(),de.OtherSuggestions.toNegated(),_.SnippetController2.InSnippetMode.toNegated()),handler:function(Ce,Oe){Ce.triggerSuggestAndAcceptBest(Object(un.i)(Oe)?ke({fallback:"tab"},Oe):{fallback:"tab"})},kbOpts:{weight:at,primary:2}})),Object(U.g)(new et({id:"insertNextSuggestion",precondition:Z.a.and(Z.a.equals("config.editor.tabCompletion","on"),de.OtherSuggestions,Te.b.Visible.toNegated(),_.SnippetController2.InSnippetMode.toNegated()),handler:function(Ce){return Ce.acceptNextSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:2}})),Object(U.g)(new et({id:"insertPrevSuggestion",precondition:Z.a.and(Z.a.equals("config.editor.tabCompletion","on"),de.OtherSuggestions,Te.b.Visible.toNegated(),_.SnippetController2.InSnippetMode.toNegated()),handler:function(Ce){return Ce.acceptPrevSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:1024|2}}))},epnl:function(wt,P,o){},eq1K:function(wt,P,o){},erNZ:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("N0LK"),re;typeof TextDecoder!="undefined"?re=function(U){return new ne(U)}:re=function(U){return new N};var ne=function(){function k(U){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=U|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return k.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},k.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},k.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var U=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(U)},k.prototype._flushBuffer=function(){var U=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[U]:this._completedStrings[this._completedStrings.length]=U},k.prototype.write1=function(U){var j=this._capacity-this._bufferLength;j<=1&&((j===0||I.z(U))&&this._flushBuffer()),this._buffer[this._bufferLength++]=U},k.prototype.appendASCII=function(U){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=U},k.prototype.appendASCIIString=function(U){var j=U.length;if(this._bufferLength+j>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=U;return}for(var G=0;G<j;G++)this._buffer[this._bufferLength++]=U.charCodeAt(G)},k}(),N=function(){function k(){this._pieces=[],this._piecesLen=0}return k.prototype.reset=function(){this._pieces=[],this._piecesLen=0},k.prototype.build=function(){return this._pieces.join("")},k.prototype.write1=function(U){this._pieces[this._piecesLen++]=String.fromCharCode(U)},k.prototype.appendASCII=function(U){this._pieces[this._piecesLen++]=String.fromCharCode(U)},k.prototype.appendASCIIString=function(U){this._pieces[this._piecesLen++]=U},k}()},feEw:function(wt,P,o){"use strict";o.d(P,"a",function(){return z}),o.d(P,"b",function(){return Se});var I=o("qj0h"),re=o("pmY6"),ne=o("pg8w"),N=o("EffR"),k=o("MI8n"),U=o("4y0V"),j=o("GJhM"),G=o("nuFA");function R(q,Z){for(var ce=[],Te=0,Ve=Z;Te<Ve.length;Te++){var Ee=Ve[Te];if(q.start>=Ee.range.end)continue;if(q.end<Ee.range.start)break;var de=G.a.intersect(q,Ee.range);if(G.a.isEmpty(de))continue;ce.push({range:de,size:Ee.size})}return ce}function _(q,Z){var ce=q.start,Te=q.end;return{start:ce+Z,end:Te+Z}}function x(q){for(var Z=[],ce=null,Te=0,Ve=q;Te<Ve.length;Te++){var Ee=Ve[Te],de=Ee.range.start,se=Ee.range.end,fe=Ee.size;if(ce&&fe===ce.size){ce.range.end=se;continue}ce={range:{start:de,end:se},size:fe},Z.push(ce)}return Z}function K(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];return x(q.reduce(function(ce,Te){return ce.concat(Te)},[]))}var D=function(){function q(){this.groups=[],this._size=0}return q.prototype.splice=function(Z,ce,Te){Te===void 0&&(Te=[]);var Ve=Te.length-ce,Ee=R({start:0,end:Z},this.groups),de=R({start:Z+ce,end:Number.POSITIVE_INFINITY},this.groups).map(function(fe){return{range:_(fe.range,Ve),size:fe.size}}),se=Te.map(function(fe,ie){return{range:{start:Z+ie,end:Z+ie+1},size:fe.size}});this.groups=K(Ee,se,de),this._size=this.groups.reduce(function(fe,ie){return fe+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(Z){if(Z<0)return-1;for(var ce=0,Te=0,Ve=0,Ee=this.groups;Ve<Ee.length;Ve++){var de=Ee[Ve],se=de.range.end-de.range.start,fe=Te+se*de.size;if(Z<fe)return ce+Math.floor((Z-Te)/de.size);ce+=se,Te=fe}return ce},q.prototype.indexAfter=function(Z){return Math.min(this.indexAt(Z)+1,this.count)},q.prototype.positionAt=function(Z){if(Z<0)return-1;for(var ce=0,Te=0,Ve=0,Ee=this.groups;Ve<Ee.length;Ve++){var de=Ee[Ve],se=de.range.end-de.range.start,fe=Te+se;if(Z<fe)return ce+(Z-Te)*de.size;ce+=se*de.size,Te=fe}return-1},q}();function A(q){try{q.parentElement&&q.parentElement.removeChild(q)}catch(Z){}}var te=function(){function q(Z){this.renderers=Z,this.cache=new Map}return q.prototype.alloc=function(Z){var ce=this.getTemplateCache(Z).pop();if(!ce){var Te=Object(N.a)(".monaco-list-row"),Ve=this.getRenderer(Z),Ee=Ve.renderTemplate(Te);ce={domNode:Te,templateId:Z,templateData:Ee}}return ce},q.prototype.release=function(Z){if(!Z)return;this.releaseRow(Z)},q.prototype.releaseRow=function(Z){var ce=Z.domNode,Te=Z.templateId;ce&&(Object(N.O)(ce,"scrolling"),A(ce));var Ve=this.getTemplateCache(Te);Ve.push(Z)},q.prototype.getTemplateCache=function(Z){var ce=this.cache.get(Z);return ce||(ce=[],this.cache.set(Z,ce)),ce},q.prototype.dispose=function(){var Z=this;this.cache.forEach(function(ce,Te){for(var Ve=0,Ee=ce;Ve<Ee.length;Ve++){var de=Ee[Ve],se=Z.getRenderer(Te);se.disposeTemplate(de.templateData),de.domNode=null,de.templateData=null}}),this.cache.clear()},q.prototype.getRenderer=function(Z){var ce=this.renderers.get(Z);if(!ce)throw new Error("No renderer found for "+Z);return ce},q}(),H=o("ZCR3"),E=o("6OMU"),f=o("ZQ78"),p=o("X+cX"),g=o("D3Dy"),m=function(q,Z,ce,Te){var Ve=arguments.length,Ee=Ve<3?Z:Te===null?Te=Object.getOwnPropertyDescriptor(Z,ce):Te,de;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ee=Reflect.decorate(q,Z,ce,Te);else for(var se=q.length-1;se>=0;se--)(de=q[se])&&(Ee=(Ve<3?de(Ee):Ve>3?de(Z,ce,Ee):de(Z,ce))||Ee);return Ve>3&&Ee&&Object.defineProperty(Z,ce,Ee),Ee},w=function(){for(var q=0,Z=0,ce=arguments.length;Z<ce;Z++)q+=arguments[Z].length;for(var Te=Array(q),Ve=0,Z=0;Z<ce;Z++)for(var Ee=arguments[Z],de=0,se=Ee.length;de<se;de++,Ve++)Te[Ve]=Ee[de];return Te},B={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(Z){return[Z]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},z=function(){function q(Z){this.elements=Z}return q.prototype.update=function(){},q.prototype.getData=function(){return this.elements},q}(),oe=function(){function q(Z){this.elements=Z}return q.prototype.update=function(){},q.prototype.getData=function(){return this.elements},q}(),he=function(){function q(){this.types=[],this.files=[]}return q.prototype.update=function(Z){var ce;if(Z.types&&(ce=this.types).splice.apply(ce,w([0,this.types.length],Z.types)),Z.files){this.files.splice(0,this.files.length);for(var Te=0;Te<Z.files.length;Te++){var Ve=Z.files.item(Te);Ve&&(Ve.size||Ve.type)&&this.files.push(Ve)}}},q.prototype.getData=function(){return{types:this.types,files:this.files}},q}();function _e(q,Z){return Array.isArray(q)&&Array.isArray(Z)?Object(E.g)(q,Z):q===Z}var Se=function(){function q(Z,ce,Te,Ve){var Ee=this;if(Ve===void 0&&(Ve=B),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 p.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 k.a,Ve.horizontalScrolling&&Ve.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=Te;de<se.length;de++){var fe=se[de];this.renderers.set(fe.templateId,fe)}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",N.e(this.domNode,this.domId),this.domNode.tabIndex=0,N.X(this.domNode,"mouse-support",typeof Ve.mouseSupport=="boolean"?Ve.mouseSupport:!0),this.horizontalScrolling=Object(I.f)(Ve,function(ie){return ie.horizontalScrolling},B.horizontalScrolling),N.X(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=typeof Ve.additionalScrollHeight=="undefined"?0:Ve.additionalScrollHeight,this.ariaProvider=Ve.ariaProvider||{getSetSize:function(Q,me,ye){return ye},getPosInSet:function(Q,me){return me+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 j.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(I.f)(Ve,function(ie){return ie.verticalScrollMode},B.verticalScrollMode),useShadows:Object(I.f)(Ve,function(ie){return ie.useShadows},B.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),Z.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(U.a)(this.rowsContainer,ne.a.Change)(this.onTouchChange,this,this.disposables),Object(U.a)(this.scrollableElement.getDomNode(),"scroll")(function(ie){return ie.target.scrollTop=0},null,this.disposables),k.b.map(Object(U.a)(this.domNode,"dragover"),function(ie){return Ee.toDragEvent(ie)})(this.onDragOver,this,this.disposables),k.b.map(Object(U.a)(this.domNode,"drop"),function(ie){return Ee.toDragEvent(ie)})(this.onDrop,this,this.disposables),Object(U.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(U.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(I.f)(Ve,function(ie){return ie.setRowLineHeight},B.setRowLineHeight),this.supportDynamicHeights=Object(I.f)(Ve,function(ie){return ie.supportDynamicHeights},B.supportDynamicHeights),this.dnd=Object(I.f)(Ve,function(ie){return ie.dnd},B.dnd),this.layout()}return Object.defineProperty(q.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),q.prototype.splice=function(Z,ce,Te){if(Te===void 0&&(Te=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(Z,ce,Te)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},q.prototype._splice=function(Z,ce,Te){var Ve,Ee=this;Te===void 0&&(Te=[]);for(var de=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),se={start:Z,end:Z+ce},fe=G.a.intersect(de,se),ie=fe.start;ie<fe.end;ie++)this.removeItemFromDOM(ie);var Q={start:Z+ce,end:this.items.length},me=G.a.intersect(Q,de),ye=G.a.relativeComplement(Q,de),He=Te.map(function(Me){return{id:String(Ee.itemId++),element:Me,templateId:Ee.virtualDelegate.getTemplateId(Me),size:Ee.virtualDelegate.getHeight(Me),width:void 0,hasDynamicHeight:!!Ee.virtualDelegate.hasDynamicHeight&&Ee.virtualDelegate.hasDynamicHeight(Me),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:re.a.None}}),tt;Z===0&&ce>=this.items.length?(this.rangeMap=new D,this.rangeMap.splice(0,0,He),this.items=He,tt=[]):(this.rangeMap.splice(Z,ce,He),tt=(Ve=this.items).splice.apply(Ve,w([Z,ce],He)));for(var Et=Te.length-ce,Pt=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Xt=_(me,Et),Ke=G.a.intersect(Pt,Xt),ie=Ke.start;ie<Ke.end;ie++)this.updateItemInDOM(this.items[ie],ie);for(var Xe=G.a.relativeComplement(Xt,Pt),Ze=0,Ye=Xe;Ze<Ye.length;Ze++)for(var Fe=Ye[Ze],ie=Fe.start;ie<Fe.end;ie++)this.removeItemFromDOM(ie);for(var $e=ye.map(function(Me){return _(Me,Et)}),we={start:Z,end:Z+Te.length},F=w([we],$e).map(function(Me){return G.a.intersect(Pt,Me)}),ee=this.getNextToLastElement(F),Pe=0,ve=F;Pe<ve.length;Pe++)for(var Fe=ve[Pe],ie=Fe.start;ie<Fe.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 Z=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=N.V(function(){Z.scrollableElement.setScrollDimensions({scrollHeight:Z.scrollHeight}),Z.updateScrollWidth(),Z.scrollableElementUpdateDisposable=null}))},q.prototype.eventuallyUpdateScrollWidth=function(){var Z=this;if(!this.horizontalScrolling)return;this.scrollableElementWidthDelayer.trigger(function(){return Z.updateScrollWidth()})},q.prototype.updateScrollWidth=function(){if(!this.horizontalScrolling)return;this.items.length===0&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var Z=0,ce=0,Te=this.items;ce<Te.length;ce++){var Ve=Te[ce];typeof Ve.width!="undefined"&&(Z=Math.max(Z,Ve.width))}this.scrollWidth=Z,this.scrollableElement.setScrollDimensions({scrollWidth:Z+10})},q.prototype.rerender=function(){if(!this.supportDynamicHeights)return;for(var Z=0,ce=this.items;Z<ce.length;Z++){var Te=ce[Z];Te.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(Z){return this.items[Z].element},q.prototype.domElement=function(Z){var ce=this.items[Z].row;return ce&&ce.domNode},q.prototype.elementHeight=function(Z){return this.items[Z].size},q.prototype.elementTop=function(Z){return this.rangeMap.positionAt(Z)},q.prototype.indexAt=function(Z){return this.rangeMap.indexAt(Z)},q.prototype.indexAfter=function(Z){return this.rangeMap.indexAfter(Z)},q.prototype.layout=function(Z,ce){var Te={height:typeof Z=="number"?Z:N.z(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,Te.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(Te),typeof ce!="undefined"&&(this.renderWidth=ce,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof ce=="number"?ce:N.A(this.domNode)}))},q.prototype.render=function(Z,ce,Te,Ve){for(var Ee=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),de=this.getRenderRange(Z,ce),se=G.a.relativeComplement(de,Ee),fe=G.a.relativeComplement(Ee,de),ie=this.getNextToLastElement(se),Q=0,me=se;Q<me.length;Q++)for(var ye=me[Q],He=ye.start;He<ye.end;He++)this.insertItemInDOM(He,ie);for(var tt=0,Et=fe;tt<Et.length;tt++)for(var ye=Et[tt],He=ye.start;He<ye.end;He++)this.removeItemFromDOM(He);this.rowsContainer.style.left="-"+Te+"px",this.rowsContainer.style.top="-"+Z+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(Ve,this.renderWidth)+"px"),this.lastRenderTop=Z,this.lastRenderHeight=ce},q.prototype.insertItemInDOM=function(Z,ce){var Te=this,Ve=this.items[Z];if(!Ve.row){Ve.row=this.cache.alloc(Ve.templateId);var Ee=this.ariaProvider.getRole?this.ariaProvider.getRole(Ve.element):"treeitem";Ve.row.domNode.setAttribute("role",Ee);var de=this.ariaProvider.isChecked?this.ariaProvider.isChecked(Ve.element):void 0;typeof de!="undefined"&&Ve.row.domNode.setAttribute("aria-checked",String(de))}Ve.row.domNode.parentElement||(ce?this.rowsContainer.insertBefore(Ve.row.domNode,ce):this.rowsContainer.appendChild(Ve.row.domNode)),this.updateItemInDOM(Ve,Z);var se=this.renderers.get(Ve.templateId);if(!se)throw new Error("No renderer found for template id "+Ve.templateId);se&&se.renderElement(Ve.element,Z,Ve.row.templateData,Ve.size);var fe=this.dnd.getDragURI(Ve.element);if(Ve.dragStartDisposable.dispose(),Ve.row.domNode.draggable=!!fe,fe){var ie=Object(U.a)(Ve.row.domNode,"dragstart");Ve.dragStartDisposable=ie(function(Q){return Te.onDragStart(Ve.element,fe,Q)})}this.horizontalScrolling&&(this.measureItemWidth(Ve),this.eventuallyUpdateScrollWidth())},q.prototype.measureItemWidth=function(Z){if(!Z.row||!Z.row.domNode)return;Z.row.domNode.style.width=g.h?"-moz-fit-content":"fit-content",Z.width=N.A(Z.row.domNode);var ce=window.getComputedStyle(Z.row.domNode);ce.paddingLeft&&(Z.width+=parseFloat(ce.paddingLeft)),ce.paddingRight&&(Z.width+=parseFloat(ce.paddingRight)),Z.row.domNode.style.width=""},q.prototype.updateItemInDOM=function(Z,ce){Z.row.domNode.style.top=this.elementTop(ce)+"px",Z.row.domNode.style.height=Z.size+"px",this.setRowLineHeight&&(Z.row.domNode.style.lineHeight=Z.size+"px"),Z.row.domNode.setAttribute("data-index",""+ce),Z.row.domNode.setAttribute("data-last-element",ce===this.length-1?"true":"false"),Z.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(Z.element,ce,this.length))),Z.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(Z.element,ce))),Z.row.domNode.setAttribute("id",this.getElementDomId(ce)),N.X(Z.row.domNode,"drop-target",Z.dropTarget)},q.prototype.removeItemFromDOM=function(Z){var ce=this.items[Z];ce.dragStartDisposable.dispose();var Te=this.renderers.get(ce.templateId);Te&&Te.disposeElement&&Te.disposeElement(ce.element,Z,ce.row.templateData,ce.size),this.cache.release(ce.row),ce.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},q.prototype.getScrollTop=function(){var Z=this.scrollableElement.getScrollPosition();return Z.scrollTop},q.prototype.setScrollTop=function(Z){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:Z})},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 k.b.map(Object(U.a)(this.domNode,"click"),function(Te){return ce.toMouseEvent(Te)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseDblClick",{get:function(){var ce=this;return k.b.map(Object(U.a)(this.domNode,"dblclick"),function(Te){return ce.toMouseEvent(Te)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseMiddleClick",{get:function(){var ce=this;return k.b.filter(k.b.map(Object(U.a)(this.domNode,"auxclick"),function(Te){return ce.toMouseEvent(Te)}),function(Te){return Te.browserEvent.button===1})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseDown",{get:function(){var ce=this;return k.b.map(Object(U.a)(this.domNode,"mousedown"),function(Te){return ce.toMouseEvent(Te)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onContextMenu",{get:function(){var ce=this;return k.b.map(Object(U.a)(this.domNode,"contextmenu"),function(Te){return ce.toMouseEvent(Te)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onTouchStart",{get:function(){var ce=this;return k.b.map(Object(U.a)(this.domNode,"touchstart"),function(Te){return ce.toTouchEvent(Te)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onTap",{get:function(){var ce=this;return k.b.map(Object(U.a)(this.rowsContainer,ne.a.Tap),function(Te){return ce.toGestureEvent(Te)})},enumerable:!0,configurable:!0}),q.prototype.toMouseEvent=function(Z){var ce=this.getItemIndexFromEventTarget(Z.target||null),Te=typeof ce=="undefined"?void 0:this.items[ce],Ve=Te&&Te.element;return{browserEvent:Z,index:ce,element:Ve}},q.prototype.toTouchEvent=function(Z){var ce=this.getItemIndexFromEventTarget(Z.target||null),Te=typeof ce=="undefined"?void 0:this.items[ce],Ve=Te&&Te.element;return{browserEvent:Z,index:ce,element:Ve}},q.prototype.toGestureEvent=function(Z){var ce=this.getItemIndexFromEventTarget(Z.initialTarget||null),Te=typeof ce=="undefined"?void 0:this.items[ce],Ve=Te&&Te.element;return{browserEvent:Z,index:ce,element:Ve}},q.prototype.toDragEvent=function(Z){var ce=this.getItemIndexFromEventTarget(Z.target||null),Te=typeof ce=="undefined"?void 0:this.items[ce],Ve=Te&&Te.element;return{browserEvent:Z,index:ce,element:Ve}},q.prototype.onScroll=function(Z){try{this.render(Z.scrollTop,Z.height,Z.scrollLeft,Z.scrollWidth),this.supportDynamicHeights&&this._rerender(Z.scrollTop,Z.height)}catch(ce){throw console.error("Got bad scroll event:",Z),ce}},q.prototype.onTouchChange=function(Z){Z.preventDefault(),Z.stopPropagation(),this.scrollTop-=Z.translationY},q.prototype.onDragStart=function(Z,ce,Te){if(!Te.dataTransfer)return;var Ve=this.dnd.getDragElements(Z);if(Te.dataTransfer.effectAllowed="copyMove",Te.dataTransfer.setData(f.a.RESOURCES,JSON.stringify([ce])),Te.dataTransfer.setDragImage){var Ee=void 0;this.dnd.getDragLabel&&(Ee=this.dnd.getDragLabel(Ve,Te)),typeof Ee=="undefined"&&(Ee=String(Ve.length));var de=N.a(".monaco-drag-image");de.textContent=Ee,document.body.appendChild(de),Te.dataTransfer.setDragImage(de,-10,-10),setTimeout(function(){return document.body.removeChild(de)},0)}this.currentDragData=new z(Ve),f.c.CurrentDragAndDropData=new oe(Ve),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,Te)},q.prototype.onDragOver=function(Z){var ce=this;if(Z.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),f.c.CurrentDragAndDropData&&f.c.CurrentDragAndDropData.getData()==="vscode-ui")return!1;if(this.setupDragAndDropScrollTopAnimation(Z.browserEvent),!Z.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(f.c.CurrentDragAndDropData)this.currentDragData=f.c.CurrentDragAndDropData;else{if(!Z.browserEvent.dataTransfer.types)return!1;this.currentDragData=new he}var Te=this.dnd.onDragOver(this.currentDragData,Z.element,Z.index,Z.browserEvent);if(this.canDrop=typeof Te=="boolean"?Te:Te.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;Z.browserEvent.dataTransfer.dropEffect=typeof Te!="boolean"&&Te.effect===0?"copy":"move";var Ve;if(typeof Te!="boolean"&&Te.feedback?Ve=Te.feedback:typeof Z.index=="undefined"?Ve=[-1]:Ve=[Z.index],Ve=Object(E.e)(Ve).filter(function(ie){return ie>=-1&&ie<ce.length}).sort(function(ie,Q){return ie-Q}),Ve=Ve[0]===-1?[-1]:Ve,_e(this.currentDragFeedback,Ve))return!0;if(this.currentDragFeedback=Ve,this.currentDragFeedbackDisposable.dispose(),Ve[0]===-1)N.e(this.domNode,"drop-target"),N.e(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(re.h)(function(){N.O(ce.domNode,"drop-target"),N.O(ce.rowsContainer,"drop-target")});else{for(var Ee=0,de=Ve;Ee<de.length;Ee++){var se=de[Ee],fe=this.items[se];fe.dropTarget=!0,fe.row&&fe.row.domNode&&N.e(fe.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(re.h)(function(){for(var ie=0,Q=Ve;ie<Q.length;ie++){var me=Q[ie],ye=ce.items[me];ye.dropTarget=!1,ye.row&&ye.row.domNode&&N.O(ye.row.domNode,"drop-target")}})}return!0},q.prototype.onDragLeave=function(){var Z=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(p.g)(function(){return Z.clearDragOverFeedback()},100)},q.prototype.onDrop=function(Z){if(!this.canDrop)return;var ce=this.currentDragData;if(this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,f.c.CurrentDragAndDropData=void 0,!ce||!Z.browserEvent.dataTransfer)return;Z.browserEvent.preventDefault(),ce.update(Z.browserEvent.dataTransfer),this.dnd.drop(ce,Z.element,Z.index,Z.browserEvent)},q.prototype.onDragEnd=function(Z){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,f.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(Z)},q.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=re.a.None},q.prototype.setupDragAndDropScrollTopAnimation=function(Z){var ce=this;if(!this.dragOverAnimationDisposable){var Te=N.E(this.domNode).top;this.dragOverAnimationDisposable=N.o(this.animateDragAndDropScrollTop.bind(this,Te))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(p.g)(function(){ce.dragOverAnimationDisposable&&(ce.dragOverAnimationDisposable.dispose(),ce.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=Z.pageY},q.prototype.animateDragAndDropScrollTop=function(Z){if(this.dragOverMouseY===void 0)return;var ce=this.dragOverMouseY-Z,Te=this.renderHeight-35;ce<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(ce-35))):ce>Te&&(this.scrollTop+=Math.min(14,Math.floor(.3*(ce-Te))))},q.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},q.prototype.getItemIndexFromEventTarget=function(Z){for(var ce=Z;ce instanceof HTMLElement&&ce!==this.rowsContainer;){var Te=ce.getAttribute("data-index");if(Te){var Ve=Number(Te);if(!isNaN(Ve))return Ve}ce=ce.parentElement}return},q.prototype.getRenderRange=function(Z,ce){return{start:this.rangeMap.indexAt(Z),end:this.rangeMap.indexAfter(Z+ce-1)}},q.prototype._rerender=function(Z,ce){var Te=this.getRenderRange(Z,ce),Ve,Ee;Z===this.elementTop(Te.start)?(Ve=Te.start,Ee=0):Te.end-Te.start>1&&(Ve=Te.start+1,Ee=this.elementTop(Ve)-Z);for(var de=0;;){for(var se=this.getRenderRange(Z,ce),fe=!1,ie=se.start;ie<se.end;ie++){var Q=this.probeDynamicHeight(ie);Q!==0&&this.rangeMap.splice(ie,1,[this.items[ie]]),de+=Q,fe=fe||Q!==0}if(!fe){de!==0&&this.eventuallyUpdateScrollDimensions();for(var me=G.a.relativeComplement(Te,se),ye=0,He=me;ye<He.length;ye++)for(var tt=He[ye],ie=tt.start;ie<tt.end;ie++)this.items[ie].row&&this.removeItemFromDOM(ie);for(var Et=G.a.relativeComplement(se,Te),Pt=0,Xt=Et;Pt<Xt.length;Pt++)for(var tt=Xt[Pt],ie=tt.start;ie<tt.end;ie++){var Ke=ie+1,Xe=Ke<this.items.length?this.items[Ke].row:null,Ze=Xe?Xe.domNode:null;this.insertItemInDOM(ie,Ze)}for(var ie=se.start;ie<se.end;ie++)this.items[ie].row&&this.updateItemInDOM(this.items[ie],ie);typeof Ve=="number"&&(this.scrollTop=this.elementTop(Ve)-Ee),this._onDidChangeContentHeight.fire(this.contentHeight);return}}},q.prototype.probeDynamicHeight=function(Z){var ce=this.items[Z];if(!ce.hasDynamicHeight||ce.lastDynamicHeightWidth===this.renderWidth)return 0;var Te=ce.size,Ve=this.cache.alloc(ce.templateId);Ve.domNode.style.height="",this.rowsContainer.appendChild(Ve.domNode);var Ee=this.renderers.get(ce.templateId);return Ee&&(Ee.renderElement(ce.element,Z,Ve.templateData,void 0),Ee.disposeElement&&Ee.disposeElement(ce.element,Z,Ve.templateData,void 0)),ce.size=Ve.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(ce.element,ce.size),ce.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(Ve.domNode),this.cache.release(Ve),ce.size-Te},q.prototype.getNextToLastElement=function(Z){var ce=Z[Z.length-1];if(!ce)return null;var Te=this.items[ce.end];return Te&&Te.row?Te.row.domNode:null},q.prototype.getElementDomId=function(Z){return this.domId+"_"+Z},q.prototype.dispose=function(){if(this.items){for(var Z=0,ce=this.items;Z<ce.length;Z++){var Te=ce[Z];if(Te.row){var Ve=this.renderers.get(Te.row.templateId);Ve&&Ve.disposeTemplate(Te.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(re.f)(this.disposables)},q.InstanceCount=0,m([H.a],q.prototype,"onMouseClick",null),m([H.a],q.prototype,"onMouseDblClick",null),m([H.a],q.prototype,"onMouseMiddleClick",null),m([H.a],q.prototype,"onMouseDown",null),m([H.a],q.prototype,"onContextMenu",null),m([H.a],q.prototype,"onTouchStart",null),m([H.a],q.prototype,"onTap",null),q}()},fjLI:function(wt,P,o){"use strict";o.d(P,"e",function(){return _}),o.d(P,"a",function(){return x}),o.d(P,"c",function(){return K}),o.d(P,"d",function(){return A}),o.d(P,"b",function(){return te});var I=o("8HAY"),re=o("Cg/j"),ne=o("T8No"),N=o("nnTU"),k=o("MI8n"),U=function(){var H=function(f,p){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var w in m)m.hasOwnProperty(w)&&(g[w]=m[w])},H(f,p)};return function(E,f){H(E,f);function p(){this.constructor=E}E.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),j=function(H,E,f,p){var g=arguments.length,m=g<3?E:p===null?p=Object.getOwnPropertyDescriptor(E,f):p,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(H,E,f,p);else for(var B=H.length-1;B>=0;B--)(w=H[B])&&(m=(g<3?w(m):g>3?w(E,f,m):w(E,f))||m);return g>3&&m&&Object.defineProperty(E,f,m),m},G=function(H,E){return function(f,p){E(f,p,H)}},R=function(){for(var H=0,E=0,f=arguments.length;E<f;E++)H+=arguments[E].length;for(var p=Array(H),g=0,E=0;E<f;E++)for(var m=arguments[E],w=0,B=m.length;w<B;w++,g++)p[g]=m[w];return p};function _(H){return H.command!==void 0}var x=Object(re.c)("menuService"),K=new(function(){function H(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new k.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return H.prototype.addCommand=function(E){var f=this;return this._commands.set(E.id,E),this._onDidChangeMenu.fire(0),{dispose:function(){f._commands.delete(E.id)&&f._onDidChangeMenu.fire(0)}}},H.prototype.getCommand=function(E){return this._commands.get(E)},H.prototype.getCommands=function(){var E=new Map;return this._commands.forEach(function(f,p){return E.set(p,f)}),E},H.prototype.appendMenuItem=function(E,f){var p=this,g=this._menuItems.get(E);return g?g.push(f):(g=[f],this._menuItems.set(E,g)),this._onDidChangeMenu.fire(E),{dispose:function(){var w=g.indexOf(f);w>=0&&(g.splice(w,1),p._onDidChangeMenu.fire(E))}}},H.prototype.getMenuItems=function(E){var f=(this._menuItems.get(E)||[]).slice(0);return E===0&&this._appendImplicitItems(f),f},H.prototype._appendImplicitItems=function(E){for(var f=new Set,p=E.filter(function(oe){return _(oe)}),g=0,m=p;g<m.length;g++){var w=m[g],B=w.command,z=w.alt;f.add(B.id),z&&f.add(z.id)}this._commands.forEach(function(oe,he){f.has(he)||E.push({command:oe})})},H}()),D=function(H){U(E,H);function E(f,p,g){var m=H.call(this,f,p)||this;return m._commandService=g,m}return E.prototype.run=function(){for(var f,p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];return(f=this._commandService).executeCommand.apply(f,R([this.id],p))},E=j([G(2,N.b)],E),E}(I.a),A=function(H){U(E,H);function E(f){var p=this;return typeof f.title=="string"?p=H.call(this,"",f.title,"submenu")||this:p=H.call(this,"",f.title.value,"submenu")||this,p.item=f,p}return E}(I.a),te=function(H){U(E,H);function E(f,p,g,m,w){var B=this;return typeof f.title=="string"?B=H.call(this,f.id,f.title,w)||this:B=H.call(this,f.id,f.title.value,w)||this,B._cssClass=void 0,B._enabled=!f.precondition||m.contextMatchesRules(f.precondition),B._checked=Boolean(f.toggled&&m.contextMatchesRules(f.toggled)),B._options=g||{},B.item=f,B.alt=p?new E(p,void 0,B._options,m,w):void 0,B}return E.prototype.dispose=function(){this.alt&&this.alt.dispose(),H.prototype.dispose.call(this)},E.prototype.run=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];var g=[];return this._options.arg&&(g=R(g,[this._options.arg])),this._options.shouldForwardArgs&&(g=R(g,f)),H.prototype.run.apply(this,g)},E=j([G(3,ne.c),G(4,N.b)],E),E}(D)},fpMC:function(wt,P,o){"use strict";o.d(P,"f",function(){return N}),o.d(P,"b",function(){return _e}),o.d(P,"c",function(){return Se}),o.d(P,"a",function(){return ye}),o.d(P,"d",function(){return He}),o.d(P,"e",function(){return Ye});var I=o("QDVR"),re=o("N0LK");function ne(){for(var we=[],F=0;F<arguments.length;F++)we[F]=arguments[F];return function(ee,Pe){for(var ve=0,Me=we.length;ve<Me;ve++){var Ie=we[ve](ee,Pe);if(Ie)return Ie}return null}}var N=k.bind(void 0,!0);function k(we,F,ee){if(!ee||ee.length<F.length)return null;var Pe;return we?Pe=re.N(ee,F):Pe=ee.indexOf(F)===0,Pe?F.length>0?[{start:0,end:F.length}]:[]:null}function U(we,F){var ee=F.toLowerCase().indexOf(we.toLowerCase());return ee===-1?null:[{start:ee,end:ee+we.length}]}function j(we,F){return G(we.toLowerCase(),F.toLowerCase(),0,0)}function G(we,F,ee,Pe){if(ee===we.length)return[];if(Pe===F.length)return null;if(we[ee]===F[Pe]){var ve=null;return(ve=G(we,F,ee+1,Pe+1))?te({start:Pe,end:Pe+1},ve):null}return G(we,F,ee,Pe+1)}function R(we){return 97<=we&&we<=122}function _(we){return 65<=we&&we<=90}function x(we){return 48<=we&&we<=57}function K(we){return we===32||we===9||we===10||we===13}var D=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(we){return D.add(we.charCodeAt(0))});function A(we){return R(we)||_(we)||x(we)}function te(we,F){return F.length===0?F=[we]:we.end===F[0].start?F[0].start=we.start:F.unshift(we),F}function H(we,F){for(var ee=F;ee<we.length;ee++){var Pe=we.charCodeAt(ee);if(_(Pe)||x(Pe)||ee>0&&!A(we.charCodeAt(ee-1)))return ee}return we.length}function E(we,F,ee,Pe){if(ee===we.length)return[];if(Pe===F.length)return null;if(we[ee]!==F[Pe].toLowerCase())return null;var ve=null,Me=Pe+1;for(ve=E(we,F,ee+1,Pe+1);!ve&&(Me=H(F,Me))<F.length;)ve=E(we,F,ee+1,Me),Me++;return ve===null?null:te({start:Pe,end:Pe+1},ve)}function f(we){for(var F=0,ee=0,Pe=0,ve=0,Me=0,Ie=0;Ie<we.length;Ie++)Me=we.charCodeAt(Ie),_(Me)&&F++,R(Me)&&ee++,A(Me)&&Pe++,x(Me)&&ve++;var pe=F/we.length,nt=ee/we.length,_t=Pe/we.length,Rt=ve/we.length;return{upperPercent:pe,lowerPercent:nt,alphaPercent:_t,numericPercent:Rt}}function p(we){var F=we.upperPercent,ee=we.lowerPercent;return ee===0&&F>.6}function g(we){var F=we.upperPercent,ee=we.lowerPercent,Pe=we.alphaPercent,ve=we.numericPercent;return ee>.2&&F<.8&&Pe>.6&&ve<.2}function m(we){for(var F=0,ee=0,Pe=0,ve=0,Me=0;Me<we.length;Me++)Pe=we.charCodeAt(Me),_(Pe)&&F++,R(Pe)&&ee++,K(Pe)&&ve++;return(F===0||ee===0)&&ve===0?we.length<=30:F<=5}function w(we,F){if(!F)return null;if(F=F.trim(),F.length===0)return null;if(!m(we))return null;if(F.length>60)return null;var ee=f(F);if(!g(ee)){if(!p(ee))return null;F=F.toLowerCase()}var Pe=null,ve=0;for(we=we.toLowerCase();ve<F.length&&(Pe=E(we,F,0,ve))===null;)ve=H(F,ve+1);return Pe}var B=ne(N,w,U),z=ne(N,w,j),oe=new I.a(1e4);function he(we,F,ee){if(ee===void 0&&(ee=!1),typeof we!="string"||typeof F!="string")return null;var Pe=oe.get(we);Pe||(Pe=new RegExp(re.k(we),"i"),oe.set(we,Pe));var ve=Pe.exec(F);return ve?[{start:ve.index,end:ve.index+ve[0].length}]:ee?z(we,F):B(we,F)}function _e(we,F,ee,Pe,ve,Me){var Ie=He(we,F,0,Pe,ve,0,!0);if(Ie)return Ie;for(var pe=0,nt=0,_t=Me,Rt=0;Rt<F.length&&Rt<q;++Rt){var Mt=ve.indexOf(F.charAt(Rt),_t);if(Mt>=0)nt+=1,pe+=Math.pow(2,Mt),_t=Mt+1;else if(pe!==0)break}return[nt,pe,Me]}function Se(we){if(typeof we=="undefined")return[];for(var F=we[1].toString(2),ee=we[2],Pe=[],ve=ee;ve<q;ve++)if(F[F.length-(ve+1)]==="1"){var Me=Pe[Pe.length-1];Me&&Me.end===ve?Me.end=ve+1:Pe.push({start:ve,end:ve+1})}return Pe}var q=128;function Z(){for(var we=[],F=[0],ee=1;ee<=q;ee++)F.push(-ee);for(var ee=0;ee<=q;ee++){var Pe=F.slice(0);Pe[0]=-ee,we.push(Pe)}return we}var ce=Z(),Te=Z(),Ve=Z(),Ee=!1;function de(we,F,ee,Pe,ve){function Me(nt,_t,Rt){for(Rt===void 0&&(Rt=" ");nt.length<_t;)nt=Rt+nt;return nt}for(var Ie=" | |"+Pe.split("").map(function(nt){return Me(nt,3)}).join("|")+`
`,pe=0;pe<=ee;pe++)pe===0?Ie+=" |":Ie+=F[pe-1]+"|",Ie+=we[pe].slice(0,ve+1).map(function(nt){return Me(nt.toString(),3)}).join("|")+`
`;return Ie}function se(we,F,ee,Pe){we=we.substr(F),ee=ee.substr(Pe),console.log(de(ce,we,we.length,ee,ee.length)),console.log(de(Ve,we,we.length,ee,ee.length)),console.log(de(Te,we,we.length,ee,ee.length))}function fe(we,F){if(F<0||F>=we.length)return!1;var ee=we.charCodeAt(F);switch(ee){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function ie(we,F){if(F<0||F>=we.length)return!1;var ee=we.charCodeAt(F);switch(ee){case 32:case 9:return!0;default:return!1}}function Q(we,F,ee){return F[we]!==ee[we]}function me(we,F,ee,Pe,ve,Me){for(;F<ee&&ve<Me;)we[F]===Pe[ve]&&(F+=1),ve+=1;return F===ee}var ye;(function(we){we.Default=Object.freeze([-100,0,0]);function F(ee){return!ee||ee[0]===-100&&ee[1]===0&&ee[2]===0}we.isDefault=F})(ye||(ye={}));function He(we,F,ee,Pe,ve,Me,Ie){var pe=we.length>q?q:we.length,nt=Pe.length>q?q:Pe.length;if(ee>=pe||Me>=nt||pe-ee>nt-Me)return;if(!me(F,ee,pe,ve,Me,nt))return;var _t=1,Rt=1,Mt=ee,zt=Me;for(_t=1,Mt=ee;Mt<pe;_t++,Mt++)for(Rt=1,zt=Me;zt<nt;Rt++,zt++){var Gt=tt(we,F,Mt,ee,Pe,ve,zt);Te[_t][Rt]=Gt;var on=ce[_t-1][Rt-1]+(Gt>1?1:Gt),Ln=ce[_t-1][Rt]+-1,yn=ce[_t][Rt-1]+-1;yn>=Ln?yn>on?(ce[_t][Rt]=yn,Ve[_t][Rt]=4):yn===on?(ce[_t][Rt]=yn,Ve[_t][Rt]=4|2):(ce[_t][Rt]=on,Ve[_t][Rt]=2):Ln>on?(ce[_t][Rt]=Ln,Ve[_t][Rt]=1):Ln===on?(ce[_t][Rt]=Ln,Ve[_t][Rt]=1|2):(ce[_t][Rt]=on,Ve[_t][Rt]=2)}return Ee&&se(we,ee,Pe,Me),Et=0,Xt=-100,Ke=Me,Xe=Ie,Ze(_t-1,Rt-1,pe===nt?1:0,0,!1),Et===0?void 0:[Xt,Pt,Me]}function tt(we,F,ee,Pe,ve,Me,Ie){return F[ee]!==Me[Ie]?-1:Ie===ee-Pe||Q(Ie,ve,Me)&&(Ie===0||!Q(Ie-1,ve,Me))?we[ee]===ve[Ie]?7:5:fe(Me,Ie)&&(Ie===0||!fe(Me,Ie-1))||(fe(Me,Ie-1)||ie(Me,Ie-1))?5:1}var Et=0,Pt=0,Xt=0,Ke=0,Xe=!1;function Ze(we,F,ee,Pe,ve){if(Et>=10||ee<-25)return;for(var Me=0;we>0&&F>0;){var Ie=Te[we][F],pe=Ve[we][F];if(pe===4)F-=1,ve?ee-=5:Pe!==0&&(ee-=1),ve=!1,Me=0;else if(pe&2)if(pe&4&&Ze(we,F-1,Pe!==0?ee-1:ee,Pe,ve),ee+=Ie,we-=1,F-=1,ve=!0,Pe+=Math.pow(2,F+Ke),Ie===1){if(Me+=1,we===0&&!Xe)return}else ee+=1+Me*(Ie-1),Me=0;else return}ee-=F>=3?9:F*3,Et+=1,ee>Xt&&(Xt=ee,Pt=Pe)}function Ye(we,F,ee,Pe,ve,Me,Ie){return Fe(we,F,ee,Pe,ve,Me,!0,Ie)}function Fe(we,F,ee,Pe,ve,Me,Ie,pe){var nt=He(we,F,ee,Pe,ve,Me,pe);if(nt&&!Ie)return nt;if(we.length>=3)for(var _t=Math.min(7,we.length-1),Rt=ee+1;Rt<_t;Rt++){var Mt=$e(we,Rt);if(Mt){var zt=He(Mt,Mt.toLowerCase(),ee,Pe,ve,Me,pe);zt&&(zt[0]-=3,(!nt||zt[0]>nt[0])&&(nt=zt))}}return nt}function $e(we,F){if(F+1>=we.length)return;var ee=we[F],Pe=we[F+1];return ee===Pe?void 0:we.slice(0,F)+Pe+ee+we.slice(F+2)}},gCVg:function(wt,P,o){"use strict";o.d(P,"a",function(){return N});var I=o("cGHE"),re=o("aokT"),ne=function(){var k=function(j,G){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,_){R.__proto__=_}||function(R,_){for(var x in _)_.hasOwnProperty(x)&&(R[x]=_[x])},k(j,G)};return function(U,j){k(U,j);function G(){this.constructor=U}U.prototype=j===null?Object.create(j):(G.prototype=j.prototype,new G)}}(),N=function(k){ne(U,k);function U(j,G,R,_){var x=k.call(this,j,G,R,_)||this;return x.selectionStartLineNumber=j,x.selectionStartColumn=G,x.positionLineNumber=R,x.positionColumn=_,x}return U.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},U.prototype.equalsSelection=function(j){return U.selectionsEqual(this,j)},U.selectionsEqual=function(j,G){return j.selectionStartLineNumber===G.selectionStartLineNumber&&j.selectionStartColumn===G.selectionStartColumn&&j.positionLineNumber===G.positionLineNumber&&j.positionColumn===G.positionColumn},U.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},U.prototype.setEndPosition=function(j,G){return this.getDirection()===0?new U(this.startLineNumber,this.startColumn,j,G):new U(j,G,this.startLineNumber,this.startColumn)},U.prototype.getPosition=function(){return new I.a(this.positionLineNumber,this.positionColumn)},U.prototype.setStartPosition=function(j,G){return this.getDirection()===0?new U(j,G,this.endLineNumber,this.endColumn):new U(this.endLineNumber,this.endColumn,j,G)},U.fromPositions=function(j,G){return G===void 0&&(G=j),new U(j.lineNumber,j.column,G.lineNumber,G.column)},U.liftSelection=function(j){return new U(j.selectionStartLineNumber,j.selectionStartColumn,j.positionLineNumber,j.positionColumn)},U.selectionsArrEqual=function(j,G){if(j&&!G||!j&&G)return!1;if(!j&&!G)return!0;if(j.length!==G.length)return!1;for(var R=0,_=j.length;R<_;R++)if(!this.selectionsEqual(j[R],G[R]))return!1;return!0},U.isISelection=function(j){return j&&typeof j.selectionStartLineNumber=="number"&&typeof j.selectionStartColumn=="number"&&typeof j.positionLineNumber=="number"&&typeof j.positionColumn=="number"},U.createWithDirection=function(j,G,R,_,x){return x===0?new U(j,G,R,_):new U(R,_,j,G)},U}(re.a)},gqHg:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return o.e(19).then(o.bind(null,"fhwZ"))}}),Object(I.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return o.e(19).then(o.bind(null,"fhwZ"))}})},gslv:function(wt,P,o){"use strict";o.d(P,"c",function(){return R}),o.d(P,"e",function(){return x}),o.d(P,"b",function(){return K}),o.d(P,"d",function(){return D}),o.d(P,"f",function(){return A}),o.d(P,"g",function(){return te}),o.d(P,"h",function(){return E}),o.d(P,"a",function(){return f});var I=o("PTeM"),re=o("MrjW"),ne=o("bY76"),N=o("N0LK"),k=o("tYmi"),U=o("MNsG"),j=function(){for(var p=0,g=0,m=arguments.length;g<m;g++)p+=arguments[g].length;for(var w=Array(p),B=0,g=0;g<m;g++)for(var z=arguments[g],oe=0,he=z.length;oe<he;oe++,B++)w[B]=z[oe];return w};function G(p){return p&&p.scheme===k.b.file?!U.d:!0}function R(p){return K(p)||p.authority}function _(p,g){return p===g||Object(N.n)(p,g)}function x(p,g,m){if(m===void 0&&(m=G(p)),p===g)return!0;if(!p||!g)return!1;if(p.scheme!==g.scheme||!_(p.authority,g.authority))return!1;var w=p.path||"/",B=g.path||"/";return w===B||m&&Object(N.n)(w||"/",B||"/")}function K(p){return re.posix.basename(p.path)}function D(p){if(p.path.length===0)return p;if(p.scheme===k.b.file)return ne.a.file(re.dirname(H(p)));var g=re.posix.dirname(p.path);return p.authority&&g.length&&g.charCodeAt(0)!==47&&(console.error('dirname("'+p.toString+")) resulted in a relative path"),g="/"),p.with({path:g})}function A(p){for(var g,m=[],w=1;w<arguments.length;w++)m[w-1]=arguments[w];var B;return p.scheme===k.b.file?B=ne.a.file(re.join.apply(re,j([H(p)],m))).path:B=(g=re.posix).join.apply(g,j([p.path||"/"],m)),p.with({path:B})}function te(p){if(!p.path.length)return p;var g;return p.scheme===k.b.file?g=ne.a.file(re.normalize(H(p))).path:g=re.posix.normalize(p.path),p.with({path:g})}function H(p){var g,m=p.path;return p.authority&&m.length>1&&p.scheme===k.b.file?g="//"+p.authority+m:U.h&&m.charCodeAt(0)===47&&I.b(m.charCodeAt(1))&&m.charCodeAt(2)===58?g=m.substr(1):g=m,U.h&&(g=g.replace(/\//g,"\\")),g}function E(p,g,m){if(m===void 0&&(m=G(p)),p.scheme!==g.scheme||!_(p.authority,g.authority))return;if(p.scheme===k.b.file){var w=re.relative(p.path,g.path);return U.h?I.c(w):w}var B=p.path||"/",z=g.path||"/";if(m){for(var oe=0,he=Math.min(B.length,z.length);oe<he&&!(B.charCodeAt(oe)!==z.charCodeAt(oe)&&B.charAt(oe).toLowerCase()!==z.charAt(oe).toLowerCase());oe++);B=z.substr(0,oe)+B.substr(oe)}return re.posix.relative(B,z)}var f;(function(p){p.META_DATA_LABEL="label",p.META_DATA_DESCRIPTION="description",p.META_DATA_SIZE="size",p.META_DATA_MIME="mime";function g(m){var w=new Map,B=m.path.substring(m.path.indexOf(";")+1,m.path.lastIndexOf(";"));B.split(";").forEach(function(oe){var he=oe.split(":"),_e=he[0],Se=he[1];_e&&Se&&w.set(_e,Se)});var z=m.path.substring(0,m.path.indexOf(";"));return z&&w.set(p.META_DATA_MIME,z),w}p.parseMetaData=g})(f||(f={}))},hFdI:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.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(216).then(o.bind(null,"tpLM"))}})},hHjc:function(wt,P,o){},"i/Ef":function(wt,P,o){"use strict";o.d(P,"c",function(){return N}),o.d(P,"b",function(){return k}),o.d(P,"a",function(){return U}),o.d(P,"d",function(){return j}),o.d(P,"e",function(){return G});var I=o("Tcc1"),re=o("twdY"),ne=function(){function R(){}return R.prototype.clone=function(){return this},R.prototype.equals=function(_){return this===_},R}(),N=new ne,k="vs.editor.nullMode",U=new re.q(k,0);function j(R,_,x,K){return new I.b([new I.a(K,"",R)],x)}function G(R,_,x,K){var D=new Uint32Array(2);return D[0]=K,D[1]=(R<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new I.c(D,x===null?N:x)}},"i/Rh":function(wt,P,o){},iDAx:function(wt,P,o){"use strict";o.d(P,"a",function(){return m}),o.d(P,"c",function(){return Ve}),o.d(P,"b",function(){return Ee});var I=o("3/fG"),re=o("MI8n"),ne=o("pmY6"),N=o("qj0h"),k=o("6OMU"),U=o("/UlZ"),j=o("Yr1X"),G=o("+3Gp"),R=o("CRAX"),_=o("ic2d"),x=o("vl9R"),K=function(){var de=function(fe,ie){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,me){Q.__proto__=me}||function(Q,me){for(var ye in me)me.hasOwnProperty(ye)&&(Q[ye]=me[ye])},de(fe,ie)};return function(se,fe){de(se,fe);function ie(){this.constructor=se}se.prototype=fe===null?Object.create(fe):(ie.prototype=fe.prototype,new ie)}}(),D=function(){return D=Object.assign||function(de){for(var se,fe=1,ie=arguments.length;fe<ie;fe++){se=arguments[fe];for(var Q in se)Object.prototype.hasOwnProperty.call(se,Q)&&(de[Q]=se[Q])}return de},D.apply(this,arguments)},A=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){if(this._tabFocus===se)return;this._tabFocus=se,this._onDidChangeTabFocus.fire(this._tabFocus)},de}()),te=Object.hasOwnProperty,H=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,fe){this._values[se]=fe},de}(),E=function(){function de(){this._values=[]}return de.prototype._read=function(se){return this._values[se]},de.prototype._write=function(se,fe){this._values[se]=fe},de}(),f=function(){function de(){}return de.readOptions=function(se){for(var fe=se,ie=new E,Q=0,me=U.i;Q<me.length;Q++){var ye=me[Q],He=ye.name==="_never_"?void 0:fe[ye.name];ie._write(ye.id,He)}return ie},de.validateOptions=function(se){for(var fe=new U.h,ie=0,Q=U.i;ie<Q.length;ie++){var me=Q[ie];fe._write(me.id,me.validate(se._read(me.id)))}return fe},de.computeOptions=function(se,fe){for(var ie=new H,Q=0,me=U.i;Q<me.length;Q++){var ye=me[Q];ie._write(ye.id,ye.compute(fe,ie,se._read(ye.id)))}return ie},de._deepEquals=function(se,fe){if(typeof se!="object"||typeof fe!="object")return se===fe;if(Array.isArray(se)||Array.isArray(fe))return Array.isArray(se)&&Array.isArray(fe)?k.g(se,fe):!1;for(var ie in se)if(!de._deepEquals(se[ie],fe[ie]))return!1;return!0},de.checkEquals=function(se,fe){for(var ie=[],Q=!1,me=0,ye=U.i;me<ye.length;me++){var He=ye[me],tt=!de._deepEquals(se._read(He.id),fe._read(He.id));ie[He.id]=tt,tt&&(Q=!0)}return Q?new U.a(ie):null},de}();function p(de){var se=de.wordWrap;se===!0?de.wordWrap="on":se===!1&&(de.wordWrap="off");var fe=de.lineNumbers;fe===!0?de.lineNumbers="on":fe===!1&&(de.lineNumbers="off");var ie=de.autoClosingBrackets;ie===!1&&(de.autoClosingBrackets="never",de.autoClosingQuotes="never",de.autoSurround="never");var Q=de.cursorBlinking;Q==="visible"&&(de.cursorBlinking="solid");var me=de.renderWhitespace;me===!0?de.renderWhitespace="boundary":me===!1&&(de.renderWhitespace="none");var ye=de.renderLineHighlight;ye===!0?de.renderLineHighlight="line":ye===!1&&(de.renderLineHighlight="none");var He=de.acceptSuggestionOnEnter;He===!0?de.acceptSuggestionOnEnter="on":He===!1&&(de.acceptSuggestionOnEnter="off");var tt=de.tabCompletion;tt===!1?de.tabCompletion="off":tt===!0&&(de.tabCompletion="onlySnippets");var Et=de.suggest;if(Et&&typeof Et.filteredTypes=="object"&&Et.filteredTypes){var Pt={};Pt.method="showMethods",Pt.function="showFunctions",Pt.constructor="showConstructors",Pt.field="showFields",Pt.variable="showVariables",Pt.class="showClasses",Pt.struct="showStructs",Pt.interface="showInterfaces",Pt.module="showModules",Pt.property="showProperties",Pt.event="showEvents",Pt.operator="showOperators",Pt.unit="showUnits",Pt.value="showValues",Pt.constant="showConstants",Pt.enum="showEnums",Pt.enumMember="showEnumMembers",Pt.keyword="showKeywords",Pt.text="showWords",Pt.color="showColors",Pt.file="showFiles",Pt.reference="showReferences",Pt.folder="showFolders",Pt.typeParameter="showTypeParameters",Pt.snippet="showSnippets",Object(x.b)(Pt,function(Ye){var Fe=Et.filteredTypes[Ye.key];Fe===!1&&(Et[Ye.value]=Fe)})}var Xt=de.hover;Xt===!0?de.hover={enabled:!0}:Xt===!1&&(de.hover={enabled:!1});var Ke=de.parameterHints;Ke===!0?de.parameterHints={enabled:!0}:Ke===!1&&(de.parameterHints={enabled:!1});var Xe=de.autoIndent;Xe===!0?de.autoIndent="full":Xe===!1&&(de.autoIndent="advanced");var Ze=de.matchBrackets;Ze===!0?de.matchBrackets="always":Ze===!1&&(de.matchBrackets="never")}function g(de){var se=N.c(de);return p(se),se}var m=function(de){K(se,de);function se(fe,ie){var Q=de.call(this)||this;return Q._onDidChange=Q._register(new re.a),Q.onDidChange=Q._onDidChange.event,Q.isSimpleWidget=fe,Q._isDominatedByLongLines=!1,Q._lineNumbersDigitCount=1,Q._rawOptions=g(ie),Q._readOptions=f.readOptions(Q._rawOptions),Q._validatedOptions=f.validateOptions(Q._readOptions),Q._register(j.a.onDidChangeZoomLevel(function(me){return Q._recomputeOptions()})),Q._register(A.onDidChangeTabFocus(function(me){return Q._recomputeOptions()})),Q}return se.prototype.observeReferenceElement=function(fe){},se.prototype.dispose=function(){de.prototype.dispose.call(this)},se.prototype._recomputeOptions=function(){var fe=this.options,ie=this._computeInternalOptions();if(!fe)this.options=ie;else{var Q=f.checkEquals(fe,ie);if(Q===null)return;this.options=ie,this._onDidChange.fire(Q)}},se.prototype.getRawOptions=function(){return this._rawOptions},se.prototype._computeInternalOptions=function(){var fe=this._getEnvConfiguration(),ie=G.a.createFromValidatedSettings(this._validatedOptions,fe.zoomLevel,this.isSimpleWidget),Q={outerWidth:fe.outerWidth,outerHeight:fe.outerHeight,fontInfo:this.readConfiguration(ie),extraEditorClassName:fe.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:fe.emptySelectionClipboard,pixelRatio:fe.pixelRatio,tabFocusMode:A.getTabFocusMode(),accessibilitySupport:fe.accessibilitySupport};return f.computeOptions(this._validatedOptions,Q)},se._subsetEquals=function(fe,ie){for(var Q in ie)if(te.call(ie,Q)){var me=ie[Q],ye=fe[Q];if(ye===me)continue;if(Array.isArray(ye)&&Array.isArray(me)){if(!k.g(ye,me))return!1;continue}if(typeof ye=="object"&&typeof me=="object"){if(!this._subsetEquals(ye,me))return!1;continue}return!1}return!0},se.prototype.updateOptions=function(fe){if(typeof fe=="undefined")return;var ie=g(fe);if(se._subsetEquals(this._rawOptions,ie))return;this._rawOptions=N.g(this._rawOptions,ie||{}),this._readOptions=f.readOptions(this._rawOptions),this._validatedOptions=f.validateOptions(this._readOptions),this._recomputeOptions()},se.prototype.setIsDominatedByLongLines=function(fe){this._isDominatedByLongLines=fe,this._recomputeOptions()},se.prototype.setMaxLineNumber=function(fe){var ie=se._digitCount(fe);if(this._lineNumbersDigitCount===ie)return;this._lineNumbersDigitCount=ie,this._recomputeOptions()},se._digitCount=function(fe){for(var ie=0;fe;)fe=Math.floor(fe/10),ie++;return ie||1},se}(ne.a),w=Object.freeze({id:"editor",order:5,type:"object",title:I.a("editorConfigurationTitle","Editor"),scope:5}),B=_.a.as(R.a.Configuration),z=D(D({},w),{properties:{"editor.tabSize":{type:"number",default:U.c.tabSize,minimum:1,markdownDescription:I.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:U.c.insertSpaces,markdownDescription:I.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:U.c.detectIndentation,markdownDescription:I.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:U.c.trimAutoWhitespace,description:I.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:U.c.largeFileOptimizations,description:I.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:I.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:I.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:I.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:I.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:I.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:I.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:I.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:I.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 he=0,_e=U.i;he<_e.length;he++){var Se=_e[he],q=Se.schema;if(typeof q!="undefined")if(oe(q))z.properties["editor."+Se.name]=q;else for(var Z in q)te.call(q,Z)&&(z.properties[Z]=q[Z])}var ce=null;function Te(){return ce===null&&(ce=Object.create(null),Object.keys(z.properties).forEach(function(de){ce[de]=!0})),ce}function Ve(de){var se=Te();return se["editor."+de]||!1}function Ee(de){var se=Te();return se["diffEditor."+de]||!1}B.registerConfiguration(z)},iJk1:function(wt,P,o){},iLY9:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return o.e(236).then(o.bind(null,"8ahN"))}})},ic2d:function(wt,P,o){"use strict";o.d(P,"a",function(){return N});var I=o("746U"),re=o("FWmy"),ne=function(){function k(){this.data=new Map}return k.prototype.add=function(U,j){re.a(I.j(U)),re.a(I.i(j)),re.a(!this.data.has(U),"There is already an extension with this id"),this.data.set(U,j)},k.prototype.as=function(U){return this.data.get(U)||null},k}(),N=new ne},"ij/i":function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return o.e(242).then(o.bind(null,"3MdH"))}})},iuje:function(wt,P,o){"use strict";o.d(P,"c",function(){return I}),o.d(P,"a",function(){return re}),o.d(P,"b",function(){return ne});function I(N){return N&&typeof N.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(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return o.e(234).then(o.bind(null,"ppMK"))}})},"jAJ/":function(wt,P,o){"use strict";o.d(P,"a",function(){return j}),o.d(P,"d",function(){return _}),o.d(P,"c",function(){return K}),o.d(P,"e",function(){return te}),o.d(P,"b",function(){return H});var I=o("N0LK"),re=o("5v8Y"),ne=o("cGHE"),N=o("aokT"),k=o("M1Kb"),U=999,j=function(){function E(f,p,g,m){this.searchString=f,this.isRegex=p,this.matchCase=g,this.wordSeparators=m}return E.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var f;this.isRegex?f=G(this.searchString):f=this.searchString.indexOf(`
`)>=0;var p=null;try{p=I.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:f,global:!0,unicode:!0})}catch(m){return null}if(!p)return null;var g=!this.isRegex&&!f;return g&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(g=this.matchCase),new R(p,this.wordSeparators?Object(re.a)(this.wordSeparators):null,g?this.searchString:null)},E}();function G(E){if(!E||E.length===0)return!1;for(var f=0,p=E.length;f<p;f++){var g=E.charCodeAt(f);if(g===92){if(f++,f>=p)break;var m=E.charCodeAt(f);if(m===110||m===114||m===87||m===119)return!0}}return!1}var R=function(){function E(f,p,g){this.regex=f,this.wordSeparators=p,this.simpleSearch=g}return E}();function _(E,f,p){if(!p)return new k.b(E,null);for(var g=[],m=0,w=f.length;m<w;m++)g[m]=f[m];return new k.b(E,g)}var x=function(){function E(f){for(var p=[],g=0,m=0,w=f.length;m<w;m++)f.charCodeAt(m)===10&&(p[g++]=m);this._lineFeedsOffsets=p}return E.prototype.findLineFeedCountBeforeOffset=function(f){var p=this._lineFeedsOffsets,g=0,m=p.length-1;if(m===-1)return 0;if(f<=p[0])return 0;for(;g<m;){var w=g+((m-g)/2>>0);p[w]>=f?m=w-1:p[w+1]>=f?(g=w,m=w):g=w+1}return g+1},E}(),K=function(){function E(){}return E.findMatches=function(f,p,g,m,w){var B=p.parseSearchRequest();return B?B.regex.multiline?this._doFindMatchesMultiline(f,g,new H(B.wordSeparators,B.regex),m,w):this._doFindMatchesLineByLine(f,g,B,m,w):[]},E._getMultilineMatchRange=function(f,p,g,m,w,B){var z,oe=0;m?(oe=m.findLineFeedCountBeforeOffset(w),z=p+w+oe):z=p+w;var he;if(m){var _e=m.findLineFeedCountBeforeOffset(w+B.length),Se=_e-oe;he=z+B.length+Se}else he=z+B.length;var q=f.getPositionAt(z),Z=f.getPositionAt(he);return new N.a(q.lineNumber,q.column,Z.lineNumber,Z.column)},E._doFindMatchesMultiline=function(f,p,g,m,w){var B=f.getOffsetAt(p.getStartPosition()),z=f.getValueInRange(p,1),oe=f.getEOL()===`\r
`?new x(z):null,he=[],_e=0,Se;for(g.reset(0);Se=g.next(z);)if(he[_e++]=_(this._getMultilineMatchRange(f,B,z,oe,Se.index,Se[0]),Se,m),_e>=w)return he;return he},E._doFindMatchesLineByLine=function(f,p,g,m,w){var B=[],z=0;if(p.startLineNumber===p.endLineNumber){var oe=f.getLineContent(p.startLineNumber).substring(p.startColumn-1,p.endColumn-1);return z=this._findMatchesInLine(g,oe,p.startLineNumber,p.startColumn-1,z,B,m,w),B}var he=f.getLineContent(p.startLineNumber).substring(p.startColumn-1);z=this._findMatchesInLine(g,he,p.startLineNumber,p.startColumn-1,z,B,m,w);for(var _e=p.startLineNumber+1;_e<p.endLineNumber&&z<w;_e++)z=this._findMatchesInLine(g,f.getLineContent(_e),_e,0,z,B,m,w);if(z<w){var Se=f.getLineContent(p.endLineNumber).substring(0,p.endColumn-1);z=this._findMatchesInLine(g,Se,p.endLineNumber,0,z,B,m,w)}return B},E._findMatchesInLine=function(f,p,g,m,w,B,z,oe){var he=f.wordSeparators;if(!z&&f.simpleSearch){for(var _e=f.simpleSearch,Se=_e.length,q=p.length,Z=-Se;(Z=p.indexOf(_e,Z+Se))!==-1;)if((!he||te(he,p,q,Z,Se))&&(B[w++]=new k.b(new N.a(g,Z+1+m,g,Z+1+Se+m),null),w>=oe))return w;return w}var ce=new H(f.wordSeparators,f.regex),Te;ce.reset(0);do if(Te=ce.next(p),Te&&(B[w++]=_(new N.a(g,Te.index+1+m,g,Te.index+1+Te[0].length+m),Te,z),w>=oe))return w;while(Te);return w},E.findNextMatch=function(f,p,g,m){var w=p.parseSearchRequest();if(!w)return null;var B=new H(w.wordSeparators,w.regex);return w.regex.multiline?this._doFindNextMatchMultiline(f,g,B,m):this._doFindNextMatchLineByLine(f,g,B,m)},E._doFindNextMatchMultiline=function(f,p,g,m){var w=new ne.a(p.lineNumber,1),B=f.getOffsetAt(w),z=f.getLineCount(),oe=f.getValueInRange(new N.a(w.lineNumber,w.column,z,f.getLineMaxColumn(z)),1),he=f.getEOL()===`\r
`?new x(oe):null;g.reset(p.column-1);var _e=g.next(oe);return _e?_(this._getMultilineMatchRange(f,B,oe,he,_e.index,_e[0]),_e,m):p.lineNumber!==1||p.column!==1?this._doFindNextMatchMultiline(f,new ne.a(1,1),g,m):null},E._doFindNextMatchLineByLine=function(f,p,g,m){var w=f.getLineCount(),B=p.lineNumber,z=f.getLineContent(B),oe=this._findFirstMatchInLine(g,z,B,p.column,m);if(oe)return oe;for(var he=1;he<=w;he++){var _e=(B+he-1)%w,Se=f.getLineContent(_e+1),q=this._findFirstMatchInLine(g,Se,_e+1,1,m);if(q)return q}return null},E._findFirstMatchInLine=function(f,p,g,m,w){f.reset(m-1);var B=f.next(p);return B?_(new N.a(g,B.index+1,g,B.index+1+B[0].length),B,w):null},E.findPreviousMatch=function(f,p,g,m){var w=p.parseSearchRequest();if(!w)return null;var B=new H(w.wordSeparators,w.regex);return w.regex.multiline?this._doFindPreviousMatchMultiline(f,g,B,m):this._doFindPreviousMatchLineByLine(f,g,B,m)},E._doFindPreviousMatchMultiline=function(f,p,g,m){var w=this._doFindMatchesMultiline(f,new N.a(1,1,p.lineNumber,p.column),g,m,10*U);if(w.length>0)return w[w.length-1];var B=f.getLineCount();return p.lineNumber!==B||p.column!==f.getLineMaxColumn(B)?this._doFindPreviousMatchMultiline(f,new ne.a(B,f.getLineMaxColumn(B)),g,m):null},E._doFindPreviousMatchLineByLine=function(f,p,g,m){var w=f.getLineCount(),B=p.lineNumber,z=f.getLineContent(B).substring(0,p.column-1),oe=this._findLastMatchInLine(g,z,B,m);if(oe)return oe;for(var he=1;he<=w;he++){var _e=(w+B-he-1)%w,Se=f.getLineContent(_e+1),q=this._findLastMatchInLine(g,Se,_e+1,m);if(q)return q}return null},E._findLastMatchInLine=function(f,p,g,m){var w=null,B;for(f.reset(0);B=f.next(p);)w=_(new N.a(g,B.index+1,g,B.index+1+B[0].length),B,m);return w},E}();function D(E,f,p,g,m){if(g===0)return!0;var w=f.charCodeAt(g-1);if(E.get(w)!==0)return!0;if(w===13||w===10)return!0;if(m>0){var B=f.charCodeAt(g);if(E.get(B)!==0)return!0}return!1}function A(E,f,p,g,m){if(g+m===p)return!0;var w=f.charCodeAt(g+m);if(E.get(w)!==0)return!0;if(w===13||w===10)return!0;if(m>0){var B=f.charCodeAt(g+m-1);if(E.get(B)!==0)return!0}return!1}function te(E,f,p,g,m){return D(E,f,p,g,m)&&A(E,f,p,g,m)}var H=function(){function E(f,p){this._wordSeparators=f,this._searchRegex=p,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return E.prototype.reset=function(f){this._searchRegex.lastIndex=f,this._prevMatchStartIndex=-1,this._prevMatchLength=0},E.prototype.next=function(f){var p=f.length,g;do{if(this._prevMatchStartIndex+this._prevMatchLength===p)return null;if(g=this._searchRegex.exec(f),!g)return null;var m=g.index,w=g[0].length;if(m===this._prevMatchStartIndex&&w===this._prevMatchLength){if(w===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=m,this._prevMatchLength=w,!this._wordSeparators||te(this._wordSeparators,f,p,m,w))return g}while(g);return null},E}()},jVwG:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return o.e(226).then(o.bind(null,"fYNN"))}})},jrbv:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return o.e(207).then(o.bind(null,"2ZXa"))}})},k7mE:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return o.e(218).then(o.bind(null,"BjZ/"))}})},k9mg:function(wt,P,o){"use strict";o.d(P,"a",function(){return Wi}),o.d(P,"b",function(){return Mi}),o.d(P,"d",function(){return vi}),o.d(P,"c",function(){return fn});var I=o("EffR"),re=o("cqdO"),ne=o("pmY6"),N=o("3/fG"),k=o("+7oY"),U=o("CRAX"),j=o("T8No"),G=o("Cg/j"),R=o("bexQ"),_=o("ic2d"),x=o("ptcw"),K=o("t9D7"),D="inputFocus",A=o("2V9f"),te=o("MI8n"),H=o("uDWl"),E=o("ZQ78"),f=o("6OMU"),p=o("feEw"),g=o("4y0V"),m=o("fpMC"),w=function(){var Le=function(ae,ke){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,ke)};return function(W,ae){Le(W,ae);function ke(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(ke.prototype=ae.prototype,new ke)}}(),B=function(Le){w(W,Le);function W(ae,ke){return Le.call(this,"TreeError ["+ae+"] "+ke)||this}return W}(Error),z=function(){function Le(W){this.fn=W,this._map=new WeakMap}return Le.prototype.map=function(W){var ae=this._map.get(W);return ae||(ae=this.fn(W),this._map.set(W,ae)),ae},Le}(),oe=o("JYp7"),he=function(){for(var Le=0,W=0,ae=arguments.length;W<ae;W++)Le+=arguments[W].length;for(var ke=Array(Le),qe=0,W=0;W<ae;W++)for(var ct=arguments[W],St=0,Ge=ct.length;St<Ge;St++,qe++)ke[qe]=ct[St];return ke};function _e(Le){return typeof Le=="object"&&"visibility"in Le&&"data"in Le}function Se(Le){switch(Le){case!0:return 1;case!1:return 0;default:return Le}}function q(Le){return typeof Le.collapsible=="boolean"}var Z=function(){function Le(W,ae,ke,qe){qe===void 0&&(qe={}),this.user=W,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:ke,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return Le.prototype.splice=function(W,ae,ke,qe,ct){var St,Ge=this;if(W.length===0)throw new B(this.user,"Invalid tree location");for(var ue=this.getParentNodeWithListIndex(W),X=ue.parentNode,Ue=ue.listIndex,at=ue.revealed,et=ue.visible,J=[],Ce=oe.c.map(oe.c.from(ke),function(Xn){return Ge.createTreeNode(Xn,X,X.visible?1:0,at,J,qe)}),Oe=W[W.length-1],it=0,Je=Oe;Je>=0&&Je<X.children.length;Je--){var je=X.children[Je];if(je.visible){it=je.visibleChildIndex;break}}var Ct=[],Ot=0,Qt=0;oe.c.forEach(Ce,function(Xn){Ct.push(Xn),Qt+=Xn.renderNodeCount,Xn.visible&&(Xn.visibleChildIndex=it+Ot++)});for(var At=(St=X.children).splice.apply(St,he([Oe,ae],Ct)),jt=0,hn=0,bn=At;hn<bn.length;hn++){var je=bn[hn];je.visible&&jt++}if(jt!==0)for(var Je=Oe+Ct.length;Je<X.children.length;Je++){var je=X.children[Je];je.visible&&(je.visibleChildIndex-=jt)}if(X.visibleChildrenCount+=Ot-jt,at&&et){var mn=At.reduce(function(Xn,Yn){return Xn+(Yn.visible?Yn.renderNodeCount:0)},0);this._updateAncestorsRenderNodeCount(X,Qt-mn),this.list.splice(Ue,mn,J)}if(At.length>0&&ct){var Vn=function Xn(Yn){ct(Yn),Yn.children.forEach(Xn)};At.forEach(Vn)}this._onDidSplice.fire({insertedNodes:Ct,deletedNodes:At})},Le.prototype.rerender=function(W){if(W.length===0)throw new B(this.user,"Invalid tree location");var ae=this.getTreeNodeWithListIndex(W),ke=ae.node,qe=ae.listIndex,ct=ae.revealed;ct&&this.list.splice(qe,1,[ke])},Le.prototype.has=function(W){return this.hasTreeNode(W)},Le.prototype.getListIndex=function(W){var ae=this.getTreeNodeWithListIndex(W),ke=ae.listIndex,qe=ae.visible,ct=ae.revealed;return qe&&ct?ke:-1},Le.prototype.getListRenderCount=function(W){return this.getTreeNode(W).renderNodeCount},Le.prototype.isCollapsible=function(W){return this.getTreeNode(W).collapsible},Le.prototype.setCollapsible=function(W,ae){var ke=this,qe=this.getTreeNode(W);typeof ae=="undefined"&&(ae=!qe.collapsible);var ct={collapsible:ae};return this.eventBufferer.bufferEvents(function(){return ke._setCollapseState(W,ct)})},Le.prototype.isCollapsed=function(W){return this.getTreeNode(W).collapsed},Le.prototype.setCollapsed=function(W,ae,ke){var qe=this,ct=this.getTreeNode(W);typeof ae=="undefined"&&(ae=!ct.collapsed);var St={collapsed:ae,recursive:ke||!1};return this.eventBufferer.bufferEvents(function(){return qe._setCollapseState(W,St)})},Le.prototype._setCollapseState=function(W,ae){var ke=this.getTreeNodeWithListIndex(W),qe=ke.node,ct=ke.listIndex,St=ke.revealed,Ge=this._setListNodeCollapseState(qe,ct,St,ae);if(qe!==this.root&&this.autoExpandSingleChildren&&Ge&&!q(ae)&&qe.collapsible&&!qe.collapsed&&!ae.recursive){for(var ue=-1,X=0;X<qe.children.length;X++){var Ue=qe.children[X];if(Ue.visible)if(ue>-1){ue=-1;break}else ue=X}ue>-1&&this._setCollapseState(he(W,[ue]),ae)}return Ge},Le.prototype._setListNodeCollapseState=function(W,ae,ke,qe){var ct=this._setNodeCollapseState(W,qe,!1);if(!ke||!W.visible||!ct)return ct;var St=W.renderNodeCount,Ge=this.updateNodeAfterCollapseChange(W),ue=St-(ae===-1?0:1);return this.list.splice(ae+1,ue,Ge.slice(1)),ct},Le.prototype._setNodeCollapseState=function(W,ae,ke){var qe;if(W===this.root?qe=!1:(q(ae)?(qe=W.collapsible!==ae.collapsible,W.collapsible=ae.collapsible):W.collapsible?(qe=W.collapsed!==ae.collapsed,W.collapsed=ae.collapsed):qe=!1,qe&&this._onDidChangeCollapseState.fire({node:W,deep:ke})),!q(ae)&&ae.recursive)for(var ct=0,St=W.children;ct<St.length;ct++){var Ge=St[ct];qe=this._setNodeCollapseState(Ge,ae,!0)||qe}return qe},Le.prototype.expandTo=function(W){var ae=this;this.eventBufferer.bufferEvents(function(){for(var ke=ae.getTreeNode(W);ke.parent;)ke=ke.parent,W=W.slice(0,W.length-1),ke.collapsed&&ae._setCollapseState(W,{collapsed:!1,recursive:!1})})},Le.prototype.refilter=function(){var W=this.root.renderNodeCount,ae=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,W,ae)},Le.prototype.createTreeNode=function(W,ae,ke,qe,ct,St){var Ge=this,ue={parent:ae,element:W.element,children:[],depth:ae.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof W.collapsible=="boolean"?W.collapsible:typeof W.collapsed!="undefined",collapsed:typeof W.collapsed=="undefined"?this.collapseByDefault:W.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},X=this._filterNode(ue,ke);qe&&ct.push(ue);var Ue=oe.c.from(W.children),at=qe&&X!==0&&!ue.collapsed,et=oe.c.map(Ue,function(Oe){return Ge.createTreeNode(Oe,ue,X,at,ct,St)}),J=0,Ce=1;return oe.c.forEach(et,function(Oe){ue.children.push(Oe),Ce+=Oe.renderNodeCount,Oe.visible&&(Oe.visibleChildIndex=J++)}),ue.collapsible=ue.collapsible||ue.children.length>0,ue.visibleChildrenCount=J,ue.visible=X===2?J>0:X===1,ue.visible?ue.collapsed||(ue.renderNodeCount=Ce):(ue.renderNodeCount=0,qe&&ct.pop()),St&&St(ue),ue},Le.prototype.updateNodeAfterCollapseChange=function(W){var ae=W.renderNodeCount,ke=[];return this._updateNodeAfterCollapseChange(W,ke),this._updateAncestorsRenderNodeCount(W.parent,ke.length-ae),ke},Le.prototype._updateNodeAfterCollapseChange=function(W,ae){if(W.visible===!1)return 0;if(ae.push(W),W.renderNodeCount=1,!W.collapsed)for(var ke=0,qe=W.children;ke<qe.length;ke++){var ct=qe[ke];W.renderNodeCount+=this._updateNodeAfterCollapseChange(ct,ae)}return this._onDidChangeRenderNodeCount.fire(W),W.renderNodeCount},Le.prototype.updateNodeAfterFilterChange=function(W){var ae=W.renderNodeCount,ke=[];return this._updateNodeAfterFilterChange(W,W.visible?1:0,ke),this._updateAncestorsRenderNodeCount(W.parent,ke.length-ae),ke},Le.prototype._updateNodeAfterFilterChange=function(W,ae,ke,qe){qe===void 0&&(qe=!0);var ct;if(W!==this.root){if(ct=this._filterNode(W,ae),ct===0)return W.visible=!1,W.renderNodeCount=0,!1;qe&&ke.push(W)}var St=ke.length;W.renderNodeCount=W===this.root?0:1;var Ge=!1;if(!W.collapsed||ct!==0){for(var ue=0,X=0,Ue=W.children;X<Ue.length;X++){var at=Ue[X];Ge=this._updateNodeAfterFilterChange(at,ct,ke,qe&&!W.collapsed)||Ge,at.visible&&(at.visibleChildIndex=ue++)}W.visibleChildrenCount=ue}else W.visibleChildrenCount=0;return W!==this.root&&(W.visible=ct===2?Ge:ct===1),W.visible?W.collapsed||(W.renderNodeCount+=ke.length-St):(W.renderNodeCount=0,qe&&ke.pop()),this._onDidChangeRenderNodeCount.fire(W),W.visible},Le.prototype._updateAncestorsRenderNodeCount=function(W,ae){if(ae===0)return;for(;W;)W.renderNodeCount+=ae,this._onDidChangeRenderNodeCount.fire(W),W=W.parent},Le.prototype._filterNode=function(W,ae){var ke=this.filter?this.filter.filter(W.element,ae):1;return typeof ke=="boolean"?(W.filterData=void 0,ke?1:0):_e(ke)?(W.filterData=ke.data,Se(ke.visibility)):(W.filterData=void 0,Se(ke))},Le.prototype.hasTreeNode=function(W,ae){if(ae===void 0&&(ae=this.root),!W||W.length===0)return!0;var ke=W[0],qe=W.slice(1);return ke<0||ke>ae.children.length?!1:this.hasTreeNode(qe,ae.children[ke])},Le.prototype.getTreeNode=function(W,ae){if(ae===void 0&&(ae=this.root),!W||W.length===0)return ae;var ke=W[0],qe=W.slice(1);if(ke<0||ke>ae.children.length)throw new B(this.user,"Invalid tree location");return this.getTreeNode(qe,ae.children[ke])},Le.prototype.getTreeNodeWithListIndex=function(W){if(W.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var ae=this.getParentNodeWithListIndex(W),ke=ae.parentNode,qe=ae.listIndex,ct=ae.revealed,St=ae.visible,Ge=W[W.length-1];if(Ge<0||Ge>ke.children.length)throw new B(this.user,"Invalid tree location");var ue=ke.children[Ge];return{node:ue,listIndex:qe,revealed:ct,visible:St&&ue.visible}},Le.prototype.getParentNodeWithListIndex=function(W,ae,ke,qe,ct){ae===void 0&&(ae=this.root),ke===void 0&&(ke=0),qe===void 0&&(qe=!0),ct===void 0&&(ct=!0);var St=W[0],Ge=W.slice(1);if(St<0||St>ae.children.length)throw new B(this.user,"Invalid tree location");for(var ue=0;ue<St;ue++)ke+=ae.children[ue].renderNodeCount;return qe=qe&&!ae.collapsed,ct=ct&&ae.visible,Ge.length===0?{parentNode:ae,listIndex:ke,revealed:qe,visible:ct}:this.getParentNodeWithListIndex(Ge,ae.children[St],ke+1,qe,ct)},Le.prototype.getNode=function(W){return W===void 0&&(W=[]),this.getTreeNode(W)},Le.prototype.getNodeLocation=function(W){for(var ae=[],ke=W;ke.parent;)ae.push(ke.parent.children.indexOf(ke)),ke=ke.parent;return ae.reverse()},Le.prototype.getParentNodeLocation=function(W){return W.length===0?void 0:W.length===1?[]:Object(f.w)(W)[0]},Le}(),ce=o("X+cX"),Te=o("MNsG"),Ve=o("QDVR"),Ee=o("Sdnv"),de=o("vl9R"),se=function(){var Le=function(ae,ke){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,ke)};return function(W,ae){Le(W,ae);function ke(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(ke.prototype=ae.prototype,new ke)}}(),fe=function(){return fe=Object.assign||function(Le){for(var W,ae=1,ke=arguments.length;ae<ke;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},fe.apply(this,arguments)},ie=function(){for(var Le=0,W=0,ae=arguments.length;W<ae;W++)Le+=arguments[W].length;for(var ke=Array(Le),qe=0,W=0;W<ae;W++)for(var ct=arguments[W],St=0,Ge=ct.length;St<Ge;St++,qe++)ke[qe]=ct[St];return ke},Q=function(Le){se(W,Le);function W(ae){var ke=Le.call(this,ae.elements.map(function(qe){return qe.element}))||this;return ke.data=ae,ke}return W}(p.a);function me(Le){return Le instanceof p.a?new Q(Le):Le}var ye=function(){function Le(W,ae){this.modelProvider=W,this.dnd=ae,this.autoExpandDisposable=ne.a.None}return Le.prototype.getDragURI=function(W){return this.dnd.getDragURI(W.element)},Le.prototype.getDragLabel=function(W,ae){return this.dnd.getDragLabel?this.dnd.getDragLabel(W.map(function(ke){return ke.element}),ae):void 0},Le.prototype.onDragStart=function(W,ae){this.dnd.onDragStart&&this.dnd.onDragStart(me(W),ae)},Le.prototype.onDragOver=function(W,ae,ke,qe,ct){var St=this;ct===void 0&&(ct=!0);var Ge=this.dnd.onDragOver(me(W),ae&&ae.element,ke,qe),ue=this.autoExpandNode!==ae;if(ue&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=ae),typeof ae=="undefined")return Ge;if(ue&&typeof Ge!="boolean"&&Ge.autoExpand&&(this.autoExpandDisposable=Object(ce.g)(function(){var Ot=St.modelProvider(),Qt=Ot.getNodeLocation(ae);Ot.isCollapsed(Qt)&&Ot.setCollapsed(Qt,!1),St.autoExpandNode=void 0},500)),typeof Ge=="boolean"||!Ge.accept||typeof Ge.bubble=="undefined"||Ge.feedback){if(!ct){var X=typeof Ge=="boolean"?Ge:Ge.accept,Ue=typeof Ge=="boolean"?void 0:Ge.effect;return{accept:X,effect:Ue,feedback:[ke]}}return Ge}if(Ge.bubble===1){var at=this.modelProvider(),et=at.getNodeLocation(ae),J=at.getParentNodeLocation(et),Ce=at.getNode(J),Oe=J&&at.getListIndex(J);return this.onDragOver(W,Ce,Oe,qe,!1)}var it=this.modelProvider(),Je=it.getNodeLocation(ae),je=it.getListIndex(Je),Ct=it.getListRenderCount(Je);return fe(fe({},Ge),{feedback:Object(f.u)(je,je+Ct)})},Le.prototype.drop=function(W,ae,ke,qe){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(me(W),ae&&ae.element,ke,qe)},Le.prototype.onDragEnd=function(W){this.dnd.onDragEnd&&this.dnd.onDragEnd(W)},Le}();function He(Le,W){return W&&fe(fe({},W),{identityProvider:W.identityProvider&&{getId:function(ke){return W.identityProvider.getId(ke.element)}},dnd:W.dnd&&new ye(Le,W.dnd),multipleSelectionController:W.multipleSelectionController&&{isSelectionSingleChangeEvent:function(ke){return W.multipleSelectionController.isSelectionSingleChangeEvent(fe(fe({},ke),{element:ke.element}))},isSelectionRangeChangeEvent:function(ke){return W.multipleSelectionController.isSelectionRangeChangeEvent(fe(fe({},ke),{element:ke.element}))}},accessibilityProvider:W.accessibilityProvider&&fe(fe({},W.accessibilityProvider),{getAriaLabel:function(ke){return W.accessibilityProvider.getAriaLabel(ke.element)},getAriaLevel:function(ke){return ke.depth},getActiveDescendantId:W.accessibilityProvider.getActiveDescendantId&&function(ae){return W.accessibilityProvider.getActiveDescendantId(ae.element)}}),keyboardNavigationLabelProvider:W.keyboardNavigationLabelProvider&&fe(fe({},W.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(ke){return W.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ke.element)}}),enableKeyboardNavigation:W.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(ke){var qe=Le(),ct=qe.getNodeLocation(ke),St=qe.getParentNodeLocation(ct),Ge=qe.getNode(St);return Ge.visibleChildrenCount},getPosInSet:function(ke){return ke.visibleChildIndex+1},isChecked:W.ariaProvider&&W.ariaProvider.isChecked?function(ae){return W.ariaProvider.isChecked(ae.element)}:void 0,getRole:W.ariaProvider&&W.ariaProvider.getRole?function(ae){return W.ariaProvider.getRole(ae.element)}:void 0}})}var tt=function(){function Le(W){this.delegate=W}return Le.prototype.getHeight=function(W){return this.delegate.getHeight(W.element)},Le.prototype.getTemplateId=function(W){return this.delegate.getTemplateId(W.element)},Le.prototype.hasDynamicHeight=function(W){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(W.element)},Le.prototype.setDynamicHeight=function(W,ae){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(W.element,ae)},Le}(),Et;(function(Le){Le.None="none",Le.OnHover="onHover",Le.Always="always"})(Et||(Et={}));var Pt=function(){function Le(W,ae){var ke=this;ae===void 0&&(ae=[]),this._elements=ae,this.onDidChange=te.b.forEach(W,function(qe){return ke._elements=qe})}return Object.defineProperty(Le.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Le}(),Xt=function(){function Le(W,ae,ke,qe,ct){ct===void 0&&(ct={}),this.renderer=W,this.modelProvider=ae,this.activeNodes=qe,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=Le.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=W.templateId,this.updateOptions(ct),te.b.map(ke,function(St){return St.node})(this.onDidChangeNodeTwistieState,this,this.disposables),W.onDidChangeTwistieState&&W.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return Le.prototype.updateOptions=function(W){if(W===void 0&&(W={}),typeof W.indent!="undefined"&&(this.indent=Object(Ee.a)(W.indent,0,40)),typeof W.renderIndentGuides!="undefined"){var ae=W.renderIndentGuides!==Et.None;if(ae!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=ae,this.indentGuidesDisposable.dispose(),ae)){var ke=new ne.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,ke),this.indentGuidesDisposable=ke,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof W.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=W.hideTwistiesOfChildlessElements)},Le.prototype.renderTemplate=function(W){var ae=Object(I.p)(W,Object(I.a)(".monaco-tl-row")),ke=Object(I.p)(ae,Object(I.a)(".monaco-tl-indent")),qe=Object(I.p)(ae,Object(I.a)(".monaco-tl-twistie")),ct=Object(I.p)(ae,Object(I.a)(".monaco-tl-contents")),St=this.renderer.renderTemplate(ct);return{container:W,indent:ke,twistie:qe,indentGuidesDisposable:ne.a.None,templateData:St}},Le.prototype.renderElement=function(W,ae,ke,qe){typeof qe=="number"&&(this.renderedNodes.set(W,{templateData:ke,height:qe}),this.renderedElements.set(W.element,W));var ct=Le.DefaultIndent+(W.depth-1)*this.indent;ke.twistie.style.paddingLeft=ct+"px",ke.indent.style.width=ct+this.indent-16+"px",this.renderTwistie(W,ke),typeof qe=="number"&&this.renderIndentGuides(W,ke),this.renderer.renderElement(W,ae,ke.templateData,qe)},Le.prototype.disposeElement=function(W,ae,ke,qe){ke.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(W,ae,ke.templateData,qe),typeof qe=="number"&&(this.renderedNodes.delete(W),this.renderedElements.delete(W.element))},Le.prototype.disposeTemplate=function(W){this.renderer.disposeTemplate(W.templateData)},Le.prototype.onDidChangeTwistieState=function(W){var ae=this.renderedElements.get(W);if(!ae)return;this.onDidChangeNodeTwistieState(ae)},Le.prototype.onDidChangeNodeTwistieState=function(W){var ae=this.renderedNodes.get(W);if(!ae)return;this.renderTwistie(W,ae.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(W,ae.templateData)},Le.prototype.renderTwistie=function(W,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(W.element,ae.twistie),W.collapsible&&(!this.hideTwistiesOfChildlessElements||W.visibleChildrenCount>0)?(Object(I.f)(ae.twistie,"codicon","codicon-chevron-down","collapsible"),Object(I.X)(ae.twistie,"collapsed",W.collapsed)):Object(I.P)(ae.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),W.collapsible?ae.container.setAttribute("aria-expanded",String(!W.collapsed)):ae.container.removeAttribute("aria-expanded")},Le.prototype.renderIndentGuides=function(W,ae){var ke=this;if(Object(I.s)(ae.indent),ae.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;for(var qe=new ne.b,ct=this.modelProvider(),St=W,Ge=function(){var at=ct.getNodeLocation(St),et=ct.getParentNodeLocation(at);if(!et)return"break";var J=ct.getNode(et),Ce=Object(I.a)(".indent-guide",{style:"width: "+ue.indent+"px"});ue.activeIndentNodes.has(J)&&Object(I.e)(Ce,"active"),ae.indent.childElementCount===0?ae.indent.appendChild(Ce):ae.indent.insertBefore(Ce,ae.indent.firstElementChild),ue.renderedIndentGuides.add(J,Ce),qe.add(Object(ne.h)(function(){return ke.renderedIndentGuides.delete(J,Ce)})),St=J},ue=this;;){var X=Ge();if(X==="break")break}ae.indentGuidesDisposable=qe},Le.prototype._onDidChangeActiveNodes=function(W){var ae=this;if(!this.shouldRenderIndentGuides)return;var ke=new Set,qe=this.modelProvider();W.forEach(function(ct){var St=qe.getNodeLocation(ct);try{var Ge=qe.getParentNodeLocation(St);ct.collapsible&&ct.children.length>0&&!ct.collapsed?ke.add(ct):Ge&&ke.add(qe.getNode(Ge))}catch(ue){}}),this.activeIndentNodes.forEach(function(ct){ke.has(ct)||ae.renderedIndentGuides.forEach(ct,function(St){return Object(I.O)(St,"active")})}),ke.forEach(function(ct){ae.activeIndentNodes.has(ct)||ae.renderedIndentGuides.forEach(ct,function(St){return Object(I.e)(St,"active")})}),this.activeIndentNodes=ke},Le.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(ne.f)(this.disposables)},Le.DefaultIndent=8,Le}(),Ke=function(){function Le(W,ae,ke){this.tree=W,this.keyboardNavigationLabelProvider=ae,this._filter=ke,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new ne.b,W.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(Le.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"pattern",{set:function(ae){this._pattern=ae,this._lowercasePattern=ae.toLowerCase()},enumerable:!0,configurable:!0}),Le.prototype.filter=function(W,ae){if(this._filter){var ke=this._filter.filter(W,ae);if(this.tree.options.simpleKeyboardNavigation)return ke;var qe=void 0;if(typeof ke=="boolean"?qe=ke?1:0:_e(ke)?qe=Se(ke.visibility):qe=ke,qe===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:m.a.Default,visibility:!0};var ct=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(W),St=ct&&ct.toString();if(typeof St=="undefined")return{data:m.a.Default,visibility:!0};var Ge=Object(m.d)(this._pattern,this._lowercasePattern,0,St,St.toLowerCase(),0,!0);return Ge?(this._matchCount++,{data:Ge,visibility:!0}):this.tree.options.filterOnType?2:{data:m.a.Default,visibility:!0}},Le.prototype.reset=function(){this._totalCount=0,this._matchCount=0},Le.prototype.dispose=function(){Object(ne.f)(this.disposables)},Le}(),Xe=function(){function Le(W,ae,ke,qe,ct){this.tree=W,this.view=ke,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(I.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(g.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(I.p)(ke.getHTMLElement(),Object(I.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(I.p)(this.domNode,Object(I.a)("span.label"));var St=Object(I.p)(this.domNode,Object(I.a)(".controls"));this._filterOnType=!!W.options.filterOnType,this.filterOnTypeDomNode=Object(I.p)(St,Object(I.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(g.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(I.p)(St,Object(I.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(N.a)("clear","Clear"),this.keyboardNavigationEventFilter=W.options.keyboardNavigationEventFilter,ae.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(W.options)}return Object.defineProperty(Le.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),Le.prototype.updateOptions=function(W){W.simpleKeyboardNavigation?this.disable():this.enable(),typeof W.filterOnType!="undefined"&&(this._filterOnType=!!W.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof W.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=W.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},Le.prototype.enable=function(){var W=this;if(this._enabled)return;var ae=te.b.chain(Object(g.a)(this.view.getHTMLElement(),"keydown")).filter(function(qe){return!Ze(qe.target)||qe.target===W.filterOnTypeDomNode}).filter(function(qe){return qe.key!=="Dead"&&!/^Media/.test(qe.key)}).map(function(qe){return new H.a(qe)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return W.automaticKeyboardNavigation||W.triggered}).filter(function(qe){return W.keyboardNavigationDelegate.mightProducePrintableCharacter(qe)||(W.pattern.length>0||W.triggered)&&(qe.keyCode===9||qe.keyCode===1)&&!qe.altKey&&!qe.ctrlKey&&!qe.metaKey||qe.keyCode===1&&(Te.e?qe.altKey&&!qe.metaKey:qe.ctrlKey)&&!qe.shiftKey}).forEach(function(qe){qe.stopPropagation(),qe.preventDefault()}).event,ke=Object(g.a)(this.clearDomNode,"click");te.b.chain(te.b.any(ae,ke)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1},Le.prototype.disable=function(){if(!this._enabled)return;this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1},Le.prototype.onEventOrInput=function(W){typeof W=="string"?this.onInput(W):W instanceof MouseEvent||W.keyCode===9||W.keyCode===1&&(Te.e?W.altKey:W.ctrlKey)?this.onInput(""):W.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+W.browserEvent.key)},Le.prototype.onInput=function(W){var ae=this.view.getHTMLElement();W&&!this.domNode.parentElement?ae.append(this.domNode):!W&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=W,this._onDidChangePattern.fire(W),this.filter.pattern=W,this.tree.refilter(),W&&this.tree.focusNext(0,!0,void 0,function(ct){return!m.a.isDefault(ct.filterData)});var ke=this.tree.getFocus();if(ke.length>0){var qe=ke[0];this.tree.getRelativeTop(qe)===null&&this.tree.reveal(qe,.5)}this.render(),W||(this.triggered=!1)},Le.prototype.onDragStart=function(){var W=this,ae=this.view.getHTMLElement(),ke=Object(I.B)(ae).left,qe=ae.clientWidth,ct=qe/2,St=this.domNode.clientWidth,Ge=new ne.b,ue=this.positionClassName,X=function(){switch(ue){case"nw":W.domNode.style.top="4px",W.domNode.style.left="4px";break;case"ne":W.domNode.style.top="4px",W.domNode.style.left=qe-St-6+"px";break}},Ue=function(J){J.preventDefault();var Ce=J.screenX-ke;J.dataTransfer&&(J.dataTransfer.dropEffect="none"),Ce<ct?ue="nw":ue="ne",X()},at=function(){W.positionClassName=ue,W.domNode.className="monaco-list-type-filter "+W.positionClassName,W.domNode.style.top="",W.domNode.style.left="",Object(ne.f)(Ge)};X(),Object(I.O)(this.domNode,ue),Object(I.e)(this.domNode,"dragging"),Ge.add(Object(ne.h)(function(){return Object(I.O)(W.domNode,"dragging")})),Object(g.a)(document,"dragover")(Ue,null,Ge),Object(g.a)(this.domNode,"dragend")(at,null,Ge),E.c.CurrentDragAndDropData=new E.b("vscode-ui"),Ge.add(Object(ne.h)(function(){return E.c.CurrentDragAndDropData=void 0}))},Le.prototype.onDidSpliceModel=function(){if(!this._enabled||this.pattern.length===0)return;this.tree.refilter(),this.render()},Le.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},Le.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(N.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(N.a)("enable filter on type","Enable Filter on Type")},Le.prototype.render=function(){var W=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&W?(this.messageDomNode.textContent=Object(N.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(I.X)(this.domNode,"no-matches",W),this.domNode.title=Object(N.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},Le.prototype.shouldAllowFocus=function(W){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!m.a.isDefault(W.filterData)},Le.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)},Le}();function Ze(Le){return Le.tagName==="INPUT"||Le.tagName==="TEXTAREA"}function Ye(Le){return{elements:Le.elements.map(function(W){return W.element}),browserEvent:Le.browserEvent}}function Fe(Le,W){W(Le),Le.children.forEach(function(ae){return Fe(ae,W)})}var $e=function(){function Le(W){this.identityProvider=W,this.nodes=[],this._onDidChange=new te.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(Le.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),Le.prototype.set=function(W,ae){if(Object(f.g)(this.nodes,W))return;this._set(W,!1,ae)},Le.prototype._set=function(W,ae,ke){if(this.nodes=ie(W),this.elements=void 0,this._nodeSet=void 0,!ae){var qe=this;this._onDidChange.fire({get elements(){return qe.get()},browserEvent:ke})}},Le.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(W){return W.element})),ie(this.elements)},Le.prototype.getNodes=function(){return this.nodes},Le.prototype.has=function(W){return this.nodeSet.has(W)},Le.prototype.onDidModelSplice=function(W){var ae=this,ke=W.insertedNodes,qe=W.deletedNodes;if(!this.identityProvider){var ct=this.createNodeSet(),St=function(Ct){return ct.delete(Ct)};qe.forEach(function(je){return Fe(je,St)}),this.set(Object(Ve.e)(ct));return}var Ge=new Set,ue=function(Ct){return Ge.add(ae.identityProvider.getId(Ct.element).toString())};qe.forEach(function(je){return Fe(je,ue)});var X=new Map,Ue=function(Ct){return X.set(ae.identityProvider.getId(Ct.element).toString(),Ct)};ke.forEach(function(je){return Fe(je,Ue)});for(var at=[],et=0,J=this.nodes;et<J.length;et++){var Ce=J[et],Oe=this.identityProvider.getId(Ce.element).toString(),it=Ge.has(Oe);if(!it)at.push(Ce);else{var Je=X.get(Oe);Je&&at.push(Je)}}this._set(at,!0)},Le.prototype.createNodeSet=function(){for(var W=new Set,ae=0,ke=this.nodes;ae<ke.length;ae++){var qe=ke[ae];W.add(qe)}return W},Le}(),we=function(Le){se(W,Le);function W(ae,ke){var qe=Le.call(this,ae)||this;return qe.tree=ke,qe}return W.prototype.onPointer=function(ae){if(Ze(ae.browserEvent.target))return;var ke=ae.element;if(!ke)return Le.prototype.onPointer.call(this,ae);if(this.isSelectionRangeChangeEvent(ae)||this.isSelectionSingleChangeEvent(ae))return Le.prototype.onPointer.call(this,ae);var qe=Object(I.H)(ae.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&ae.browserEvent.detail!==2&&!qe)return Le.prototype.onPointer.call(this,ae);var ct=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?ct=this.tree.expandOnlyOnTwistieClick(ke.element):ct=!!this.tree.expandOnlyOnTwistieClick,ct&&!qe)return Le.prototype.onPointer.call(this,ae);if(ke.collapsible){var St=this.tree.model,Ge=St.getNodeLocation(ke),ue=ae.browserEvent.altKey;if(St.setCollapsed(Ge,void 0,ue),ct&&qe)return}Le.prototype.onPointer.call(this,ae)},W.prototype.onDoubleClick=function(ae){var ke=Object(I.H)(ae.browserEvent.target,"monaco-tl-twistie");if(ke)return;Le.prototype.onDoubleClick.call(this,ae)},W}(re.d),F=function(Le){se(W,Le);function W(ae,ke,qe,ct,St,Ge,ue){var X=Le.call(this,ae,ke,qe,ct,ue)||this;return X.focusTrait=St,X.selectionTrait=Ge,X}return W.prototype.createMouseController=function(ae){return new we(this,ae.tree)},W.prototype.splice=function(ae,ke,qe){var ct=this;if(qe===void 0&&(qe=[]),Le.prototype.splice.call(this,ae,ke,qe),qe.length===0)return;var St=[],Ge=[];qe.forEach(function(ue,X){ct.focusTrait.has(ue)&&St.push(ae+X),ct.selectionTrait.has(ue)&&Ge.push(ae+X)}),St.length>0&&Le.prototype.setFocus.call(this,Object(f.f)(ie(Le.prototype.getFocus.call(this),St))),Ge.length>0&&Le.prototype.setSelection.call(this,Object(f.f)(ie(Le.prototype.getSelection.call(this),Ge)))},W.prototype.setFocus=function(ae,ke,qe){var ct=this;qe===void 0&&(qe=!1),Le.prototype.setFocus.call(this,ae,ke),qe||this.focusTrait.set(ae.map(function(St){return ct.element(St)}),ke)},W.prototype.setSelection=function(ae,ke,qe){var ct=this;qe===void 0&&(qe=!1),Le.prototype.setSelection.call(this,ae,ke),qe||this.selectionTrait.set(ae.map(function(St){return ct.element(St)}),ke)},W}(re.c),ee=function(){function Le(W,ae,ke,qe,ct){var St=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(ke),ue=new te.e,X=new te.e,Ue=new Pt(X.event);this.renderers=qe.map(function(je){return new Xt(je,function(){return St.model},ue.event,Ue,ct)});for(var at=0,et=this.renderers;at<et.length;at++){var J=et[at];this.disposables.add(J)}var Ce;ct.keyboardNavigationLabelProvider&&(Ce=new Ke(this,ct.keyboardNavigationLabelProvider,ct.filter),ct=fe(fe({},ct),{filter:Ce}),this.disposables.add(Ce)),this.focus=new $e(ct.identityProvider),this.selection=new $e(ct.identityProvider),this.view=new F(W,ae,Ge,this.renderers,this.focus,this.selection,fe(fe({},He(function(){return St.model},ct)),{tree:this})),this.model=this.createModel(W,this.view,ct),ue.input=this.model.onDidChangeCollapseState;var Oe=te.b.forEach(this.model.onDidSplice,function(je){St.eventBufferer.bufferEvents(function(){St.focus.onDidModelSplice(je),St.selection.onDidModelSplice(je)})});if(Oe(function(){return null},null,this.disposables),X.input=te.b.chain(te.b.any(Oe,this.focus.onDidChange,this.selection.onDidChange)).debounce(function(){return null},0).map(function(){for(var je=new Set,Ct=0,Ot=St.focus.getNodes();Ct<Ot.length;Ct++){var Qt=Ot[Ct];je.add(Qt)}for(var At=0,jt=St.selection.getNodes();At<jt.length;At++){var Qt=jt[At];je.add(Qt)}return Object(f.n)(je)}).event,ct.keyboardSupport!==!1){var it=te.b.chain(this.view.onKeyDown).filter(function(je){return!Ze(je.target)}).map(function(je){return new H.a(je)});it.filter(function(je){return je.keyCode===15}).on(this.onLeftArrow,this,this.disposables),it.filter(function(je){return je.keyCode===17}).on(this.onRightArrow,this,this.disposables),it.filter(function(je){return je.keyCode===10}).on(this.onSpace,this,this.disposables)}if(ct.keyboardNavigationLabelProvider){var Je=ct.keyboardNavigationDelegate||re.a;this.typeFilterController=new Xe(this,this.model,this.view,Ce,Je),this.focusNavigationFilter=function(je){return St.typeFilterController.shouldAllowFocus(je)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(I.v)(this.view.getHTMLElement()),Object(I.X)(this.getHTMLElement(),"always",this._options.renderIndentGuides===Et.Always)}return Object.defineProperty(Le.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidOpen",{get:function(){return te.b.map(this.view.onDidOpen,Ye)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"openOnSingleClick",{get:function(){return typeof this._options.openOnSingleClick=="undefined"?!0:this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"expandOnlyOnTwistieClick",{get:function(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!1:this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),Le.prototype.updateOptions=function(W){W===void 0&&(W={}),this._options=fe(fe({},this._options),W);for(var ae=0,ke=this.renderers;ae<ke.length;ae++){var qe=ke[ae];qe.updateOptions(W)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(I.X)(this.getHTMLElement(),"always",this._options.renderIndentGuides===Et.Always)},Object.defineProperty(Le.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Le.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(Le.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(ae){this.view.scrollTop=ae},enumerable:!0,configurable:!0}),Le.prototype.domFocus=function(){this.view.domFocus()},Le.prototype.layout=function(W,ae){this.view.layout(W,ae)},Le.prototype.style=function(W){var ae="."+this.view.domId,ke=[];W.treeIndentGuidesStroke&&(ke.push(".monaco-list"+ae+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+ae+".always .monaco-tl-indent > .indent-guide { border-color: "+W.treeIndentGuidesStroke.transparent(.4)+"; }"),ke.push(".monaco-list"+ae+" .monaco-tl-indent > .indent-guide.active { border-color: "+W.treeIndentGuidesStroke+"; }"));var qe=ke.join(`
`);qe!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=qe),this.view.style(W)},Le.prototype.collapse=function(W,ae){return ae===void 0&&(ae=!1),this.model.setCollapsed(W,!0,ae)},Le.prototype.expand=function(W,ae){return ae===void 0&&(ae=!1),this.model.setCollapsed(W,!1,ae)},Le.prototype.isCollapsible=function(W){return this.model.isCollapsible(W)},Le.prototype.setCollapsible=function(W,ae){return this.model.setCollapsible(W,ae)},Le.prototype.isCollapsed=function(W){return this.model.isCollapsed(W)},Le.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},Le.prototype.setSelection=function(W,ae){var ke=this,qe=W.map(function(St){return ke.model.getNode(St)});this.selection.set(qe,ae);var ct=W.map(function(St){return ke.model.getListIndex(St)}).filter(function(St){return St>-1});this.view.setSelection(ct,ae,!0)},Le.prototype.getSelection=function(){return this.selection.get()},Le.prototype.setFocus=function(W,ae){var ke=this,qe=W.map(function(St){return ke.model.getNode(St)});this.focus.set(qe,ae);var ct=W.map(function(St){return ke.model.getListIndex(St)}).filter(function(St){return St>-1});this.view.setFocus(ct,ae,!0)},Le.prototype.focusNext=function(W,ae,ke,qe){W===void 0&&(W=1),ae===void 0&&(ae=!1),qe===void 0&&(qe=this.focusNavigationFilter),this.view.focusNext(W,ae,ke,qe)},Le.prototype.getFocus=function(){return this.focus.get()},Le.prototype.reveal=function(W,ae){this.model.expandTo(W);var ke=this.model.getListIndex(W);if(ke===-1)return;this.view.reveal(ke,ae)},Le.prototype.getRelativeTop=function(W){var ae=this.model.getListIndex(W);return ae===-1?null:this.view.getRelativeTop(ae)},Le.prototype.onLeftArrow=function(W){W.preventDefault(),W.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length===0)return;var ke=ae[0],qe=this.model.getNodeLocation(ke),ct=this.model.setCollapsed(qe,!0);if(!ct){var St=this.model.getParentNodeLocation(qe);if(!St)return;var Ge=this.model.getListIndex(St);this.view.reveal(Ge),this.view.setFocus([Ge])}},Le.prototype.onRightArrow=function(W){W.preventDefault(),W.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length===0)return;var ke=ae[0],qe=this.model.getNodeLocation(ke),ct=this.model.setCollapsed(qe,!1);if(!ct){if(!ke.children.some(function(ue){return ue.visible}))return;var St=this.view.getFocus()[0],Ge=St+1;this.view.reveal(Ge),this.view.setFocus([Ge])}},Le.prototype.onSpace=function(W){W.preventDefault(),W.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length===0)return;var ke=ae[0],qe=this.model.getNodeLocation(ke),ct=W.browserEvent.altKey;this.model.setCollapsed(qe,void 0,ct)},Le.prototype.dispose=function(){Object(ne.f)(this.disposables),this.view.dispose()},Le}(),Pe=function(){return Pe=Object.assign||function(Le){for(var W,ae=1,ke=arguments.length;ae<ke;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},Pe.apply(this,arguments)},ve=function(){for(var Le=0,W=0,ae=arguments.length;W<ae;W++)Le+=arguments[W].length;for(var ke=Array(Le),qe=0,W=0;W<ae;W++)for(var ct=arguments[W],St=0,Ge=ct.length;St<Ge;St++,qe++)ke[qe]=ct[St];return ke},Me=function(){function Le(W,ae,ke){ke===void 0&&(ke={}),this.user=W,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new Z(W,ae,null,ke),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,ke.sorter&&(this.sorter={compare:function(ct,St){return ke.sorter.compare(ct.element,St.element)}}),this.identityProvider=ke.identityProvider}return Le.prototype.setChildren=function(W,ae,ke,qe){var ct=this.getElementLocation(W);this._setChildren(ct,this.preserveCollapseState(ae),ke,qe)},Le.prototype._setChildren=function(W,ae,ke,qe){var ct=this,St=new Set,Ge=new Set,ue=function(at){if(St.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)}ke&&ke(at)},X=function(at){if(St.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(ve(W,[0]),Number.MAX_VALUE,ae,ue,X)},Le.prototype.preserveCollapseState=function(W){var ae=this,ke=W?Object(oe.d)(W):oe.c.empty();return this.sorter&&(ke=oe.c.fromArray(Object(f.r)(oe.c.collect(ke),this.sorter.compare.bind(this.sorter)))),oe.c.map(ke,function(qe){var ct=ae.nodes.get(qe.element);if(!ct&&ae.identityProvider){var St=ae.identityProvider.getId(qe.element).toString();ct=ae.nodesByIdentity.get(St)}if(!ct)return Pe(Pe({},qe),{children:ae.preserveCollapseState(qe.children)});var Ge=typeof qe.collapsible=="boolean"?qe.collapsible:ct.collapsible,ue=typeof qe.collapsed!="undefined"?qe.collapsed:ct.collapsed;return Pe(Pe({},qe),{collapsible:Ge,collapsed:ue,children:ae.preserveCollapseState(qe.children)})})},Le.prototype.rerender=function(W){var ae=this.getElementLocation(W);this.model.rerender(ae)},Le.prototype.has=function(W){return this.nodes.has(W)},Le.prototype.getListIndex=function(W){var ae=this.getElementLocation(W);return this.model.getListIndex(ae)},Le.prototype.getListRenderCount=function(W){var ae=this.getElementLocation(W);return this.model.getListRenderCount(ae)},Le.prototype.isCollapsible=function(W){var ae=this.getElementLocation(W);return this.model.isCollapsible(ae)},Le.prototype.setCollapsible=function(W,ae){var ke=this.getElementLocation(W);return this.model.setCollapsible(ke,ae)},Le.prototype.isCollapsed=function(W){var ae=this.getElementLocation(W);return this.model.isCollapsed(ae)},Le.prototype.setCollapsed=function(W,ae,ke){var qe=this.getElementLocation(W);return this.model.setCollapsed(qe,ae,ke)},Le.prototype.expandTo=function(W){var ae=this.getElementLocation(W);this.model.expandTo(ae)},Le.prototype.refilter=function(){this.model.refilter()},Le.prototype.getNode=function(W){if(W===void 0&&(W=null),W===null)return this.model.getNode(this.model.rootRef);var ae=this.nodes.get(W);if(!ae)throw new B(this.user,"Tree element not found: "+W);return ae},Le.prototype.getNodeLocation=function(W){return W.element},Le.prototype.getParentNodeLocation=function(W){if(W===null)throw new B(this.user,"Invalid getParentNodeLocation call");var ae=this.nodes.get(W);if(!ae)throw new B(this.user,"Tree element not found: "+W);var ke=this.model.getNodeLocation(ae),qe=this.model.getParentNodeLocation(ke),ct=this.model.getNode(qe);return ct.element},Le.prototype.getElementLocation=function(W){if(W===null)return[];var ae=this.nodes.get(W);if(!ae)throw new B(this.user,"Tree element not found: "+W);return this.model.getNodeLocation(ae)},Le}(),Ie=function(){return Ie=Object.assign||function(Le){for(var W,ae=1,ke=arguments.length;ae<ke;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},Ie.apply(this,arguments)};function pe(Le){var W=[Le.element],ae=Le.incompressible||!1;return{element:{elements:W,incompressible:ae},children:oe.c.map(oe.c.from(Le.children),pe),collapsible:Le.collapsible,collapsed:Le.collapsed}}function nt(Le){for(var W=[Le.element],ae=Le.incompressible||!1,ke,qe;!(ke=oe.c.from(Le.children),qe=oe.c.collect(ke,2),qe.length!==1);){if(Le=qe[0],Le.incompressible)break;W.push(Le.element)}return{element:{elements:W,incompressible:ae},children:oe.c.map(oe.c.concat(oe.c.fromArray(qe),ke),nt),collapsible:Le.collapsible,collapsed:Le.collapsed}}function _t(Le,W){W===void 0&&(W=0);var ae;return W<Le.element.elements.length-1?ae=oe.c.single(_t(Le,W+1)):ae=oe.c.map(oe.c.from(Le.children),function(ke){return _t(ke,0)}),W===0&&Le.element.incompressible?{element:Le.element.elements[W],children:ae,incompressible:!0,collapsible:Le.collapsible,collapsed:Le.collapsed}:{element:Le.element.elements[W],children:ae,collapsible:Le.collapsible,collapsed:Le.collapsed}}function Rt(Le){return _t(Le,0)}function Mt(Le,W,ae){return Le.element===W?Ie(Ie({},Le),{children:ae}):Ie(Ie({},Le),{children:oe.c.map(oe.c.from(Le.children),function(ke){return Mt(ke,W,ae)})})}var zt=function(){function Le(W,ae,ke){ke===void 0&&(ke={}),this.user=W,this.nodes=new Map,this.model=new Me(W,ae,ke),this.enabled=typeof ke.compressionEnabled=="undefined"?!0:ke.compressionEnabled}return Object.defineProperty(Le.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Le.prototype.setChildren=function(W,ae){if(W===null){var ke=oe.c.map(oe.c.from(ae),this.enabled?nt:pe);this._setChildren(null,ke);return}var qe=this.nodes.get(W);if(!qe)throw new Error("Unknown compressed tree node");var ct=this.model.getNode(qe),St=this.model.getParentNodeLocation(qe),Ge=this.model.getNode(St),ue=Rt(ct),X=Mt(ue,W,oe.c.from(ae)),Ue=(this.enabled?nt:pe)(X),at=Ge.children.map(function(et){return et===ct?Ue:et});this._setChildren(Ge.element,at)},Le.prototype.setCompressionEnabled=function(W){if(W===this.enabled)return;this.enabled=W;var ae=this.model.getNode(),ke=oe.c.from(ae.children),qe=oe.c.map(ke,Rt),ct=oe.c.map(qe,W?nt:pe);this._setChildren(null,ct)},Le.prototype._setChildren=function(W,ae){var ke=this,qe=new Set,ct=function(ue){for(var X=0,Ue=ue.element.elements;X<Ue.length;X++){var at=Ue[X];qe.add(at),ke.nodes.set(at,ue.element)}},St=function(ue){for(var X=0,Ue=ue.element.elements;X<Ue.length;X++){var at=Ue[X];qe.has(at)||ke.nodes.delete(at)}};this.model.setChildren(W,ae,ct,St)},Le.prototype.has=function(W){return this.nodes.has(W)},Le.prototype.getListIndex=function(W){var ae=this.getCompressedNode(W);return this.model.getListIndex(ae)},Le.prototype.getListRenderCount=function(W){var ae=this.getCompressedNode(W);return this.model.getListRenderCount(ae)},Le.prototype.getNode=function(W){if(typeof W=="undefined")return this.model.getNode();var ae=this.getCompressedNode(W);return this.model.getNode(ae)},Le.prototype.getNodeLocation=function(W){var ae=this.model.getNodeLocation(W);return ae===null?null:ae.elements[ae.elements.length-1]},Le.prototype.getParentNodeLocation=function(W){var ae=this.getCompressedNode(W),ke=this.model.getParentNodeLocation(ae);return ke===null?null:ke.elements[ke.elements.length-1]},Le.prototype.isCollapsible=function(W){var ae=this.getCompressedNode(W);return this.model.isCollapsible(ae)},Le.prototype.setCollapsible=function(W,ae){var ke=this.getCompressedNode(W);return this.model.setCollapsible(ke,ae)},Le.prototype.isCollapsed=function(W){var ae=this.getCompressedNode(W);return this.model.isCollapsed(ae)},Le.prototype.setCollapsed=function(W,ae,ke){var qe=this.getCompressedNode(W);return this.model.setCollapsed(qe,ae,ke)},Le.prototype.expandTo=function(W){var ae=this.getCompressedNode(W);this.model.expandTo(ae)},Le.prototype.rerender=function(W){var ae=this.getCompressedNode(W);this.model.rerender(ae)},Le.prototype.refilter=function(){this.model.refilter()},Le.prototype.getCompressedNode=function(W){if(W===null)return null;var ae=this.nodes.get(W);if(!ae)throw new B(this.user,"Tree element not found: "+W);return ae},Le}(),Gt=function(W){return W[W.length-1]},on=function(){function Le(W,ae){this.unwrapper=W,this.node=ae}return Object.defineProperty(Le.prototype,"element",{get:function(){return this.node.element===null?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"children",{get:function(){var ae=this;return this.node.children.map(function(ke){return new Le(ae.unwrapper,ke)})},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Le}();function Ln(Le,W){return{splice:function(ke,qe,ct){W.splice(ke,qe,ct.map(function(St){return Le.map(St)}))}}}function yn(Le,W){return Ie(Ie({},W),{sorter:W.sorter&&{compare:function(ke,qe){return W.sorter.compare(ke.elements[0],qe.elements[0])}},identityProvider:W.identityProvider&&{getId:function(ke){return W.identityProvider.getId(Le(ke))}},filter:W.filter&&{filter:function(ke,qe){return W.filter.filter(Le(ke),qe)}}})}var Mn=function(){function Le(W,ae,ke){var qe=this;ke===void 0&&(ke={}),this.elementMapper=ke.elementMapper||Gt;var ct=function(Ge){return qe.elementMapper(Ge.elements)};this.nodeMapper=new z(function(St){return new on(ct,St)}),this.model=new zt(W,Ln(this.nodeMapper,ae),yn(ct,ke))}return Object.defineProperty(Le.prototype,"onDidSplice",{get:function(){var ae=this;return te.b.map(this.model.onDidSplice,function(ke){var qe=ke.insertedNodes,ct=ke.deletedNodes;return{insertedNodes:qe.map(function(St){return ae.nodeMapper.map(St)}),deletedNodes:ct.map(function(St){return ae.nodeMapper.map(St)})}})},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeCollapseState",{get:function(){var ae=this;return te.b.map(this.model.onDidChangeCollapseState,function(ke){var qe=ke.node,ct=ke.deep;return{node:ae.nodeMapper.map(qe),deep:ct}})},enumerable:!0,configurable:!0}),Le.prototype.setChildren=function(W,ae){this.model.setChildren(W,ae)},Le.prototype.setCompressionEnabled=function(W){this.model.setCompressionEnabled(W)},Le.prototype.has=function(W){return this.model.has(W)},Le.prototype.getListIndex=function(W){return this.model.getListIndex(W)},Le.prototype.getListRenderCount=function(W){return this.model.getListRenderCount(W)},Le.prototype.getNode=function(W){return this.nodeMapper.map(this.model.getNode(W))},Le.prototype.getNodeLocation=function(W){return W.element},Le.prototype.getParentNodeLocation=function(W){return this.model.getParentNodeLocation(W)},Le.prototype.isCollapsible=function(W){return this.model.isCollapsible(W)},Le.prototype.setCollapsible=function(W,ae){return this.model.setCollapsible(W,ae)},Le.prototype.isCollapsed=function(W){return this.model.isCollapsed(W)},Le.prototype.setCollapsed=function(W,ae,ke){return this.model.setCollapsed(W,ae,ke)},Le.prototype.expandTo=function(W){return this.model.expandTo(W)},Le.prototype.rerender=function(W){return this.model.rerender(W)},Le.prototype.refilter=function(){return this.model.refilter()},Le.prototype.getCompressedTreeNode=function(W){return W===void 0&&(W=null),this.model.getNode(W)},Le}(),kt=o("ZCR3"),pt=function(){var Le=function(ae,ke){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,ke)};return function(W,ae){Le(W,ae);function ke(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(ke.prototype=ae.prototype,new ke)}}(),gt=function(){return gt=Object.assign||function(Le){for(var W,ae=1,ke=arguments.length;ae<ke;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},gt.apply(this,arguments)},Dt=function(Le,W,ae,ke){var qe=arguments.length,ct=qe<3?W:ke===null?ke=Object.getOwnPropertyDescriptor(W,ae):ke,St;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(Le,W,ae,ke);else for(var Ge=Le.length-1;Ge>=0;Ge--)(St=Le[Ge])&&(ct=(qe<3?St(ct):qe>3?St(W,ae,ct):St(W,ae))||ct);return qe>3&&ct&&Object.defineProperty(W,ae,ct),ct},Lt=function(Le){pt(W,Le);function W(ae,ke,qe,ct,St){return St===void 0&&(St={}),Le.call(this,ae,ke,qe,ct,St)||this}return Object.defineProperty(W.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),W.prototype.setChildren=function(ae,ke){this.model.setChildren(ae,ke)},W.prototype.rerender=function(ae){if(ae===void 0){this.view.rerender();return}this.model.rerender(ae)},W.prototype.hasElement=function(ae){return this.model.has(ae)},W.prototype.createModel=function(ae,ke,qe){return new Me(ae,ke,qe)},W}(ee),Vt=function(){function Le(W,ae){this._compressedTreeNodeProvider=W,this.renderer=ae,this.templateId=ae.templateId,ae.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ae.onDidChangeTwistieState)}return Object.defineProperty(Le.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),Le.prototype.renderTemplate=function(W){var ae=this.renderer.renderTemplate(W);return{compressedTreeNode:void 0,data:ae}},Le.prototype.renderElement=function(W,ae,ke,qe){var ct=this.compressedTreeNodeProvider.getCompressedTreeNode(W.element);ct.element.elements.length===1?(ke.compressedTreeNode=void 0,this.renderer.renderElement(W,ae,ke.data,qe)):(ke.compressedTreeNode=ct,this.renderer.renderCompressedElements(ct,ae,ke.data,qe))},Le.prototype.disposeElement=function(W,ae,ke,qe){ke.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(ke.compressedTreeNode,ae,ke.data,qe):this.renderer.disposeElement&&this.renderer.disposeElement(W,ae,ke.data,qe)},Le.prototype.disposeTemplate=function(W){this.renderer.disposeTemplate(W.data)},Le.prototype.renderTwistie=function(W,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(W,ae)},Dt([kt.a],Le.prototype,"compressedTreeNodeProvider",null),Le}();function Jt(Le,W){return W&&gt(gt({},W),{keyboardNavigationLabelProvider:W.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(ke){var qe;try{qe=Le().getCompressedTreeNode(ke)}catch(ct){return W.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ke)}return qe.element.elements.length===1?W.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ke):W.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(qe.element.elements)}}})}var nn=function(Le){pt(W,Le);function W(ae,ke,qe,ct,St){St===void 0&&(St={});var Ge=this,ue=function(){return Ge},X=ct.map(function(Ue){return new Vt(ue,Ue)});return Ge=Le.call(this,ae,ke,qe,X,Jt(ue,St))||this,Ge}return W.prototype.setChildren=function(ae,ke){this.model.setChildren(ae,ke)},W.prototype.createModel=function(ae,ke,qe){return new Mn(ae,ke,qe)},W.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Le.prototype.updateOptions.call(this,ae),typeof ae.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(ae.compressionEnabled)},W.prototype.getCompressedTreeNode=function(ae){return ae===void 0&&(ae=null),this.model.getCompressedTreeNode(ae)},W}(Lt),sn=o("/cxE"),ln=function(){var Le=function(ae,ke){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,ke)};return function(W,ae){Le(W,ae);function ke(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(ke.prototype=ae.prototype,new ke)}}(),_n=function(){return _n=Object.assign||function(Le){for(var W,ae=1,ke=arguments.length;ae<ke;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},_n.apply(this,arguments)},On=function(Le,W,ae,ke){function qe(ct){return ct instanceof ae?ct:new ae(function(St){St(ct)})}return new(ae||(ae=Promise))(function(ct,St){function Ge(Ue){try{X(ke.next(Ue))}catch(at){St(at)}}function ue(Ue){try{X(ke.throw(Ue))}catch(at){St(at)}}function X(Ue){Ue.done?ct(Ue.value):qe(Ue.value).then(Ge,ue)}X((ke=ke.apply(Le,W||[])).next())})},Pn=function(Le,W){var ae={label:0,sent:function(){if(ct[0]&1)throw ct[1];return ct[1]},trys:[],ops:[]},ke,qe,ct,St;return St={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(St[Symbol.iterator]=function(){return this}),St;function Ge(X){return function(Ue){return ue([X,Ue])}}function ue(X){if(ke)throw new TypeError("Generator is already executing.");for(;ae;)try{if(ke=1,qe&&(ct=X[0]&2?qe.return:X[0]?qe.throw||((ct=qe.return)&&ct.call(qe),0):qe.next)&&!(ct=ct.call(qe,X[1])).done)return ct;(qe=0,ct)&&(X=[X[0]&2,ct.value]);switch(X[0]){case 0:case 1:ct=X;break;case 4:return ae.label++,{value:X[1],done:!1};case 5:ae.label++,qe=X[1],X=[0];continue;case 7:X=ae.ops.pop(),ae.trys.pop();continue;default:if(!(ct=ae.trys,ct=ct.length>0&&ct[ct.length-1])&&(X[0]===6||X[0]===2)){ae=0;continue}if(X[0]===3&&(!ct||X[1]>ct[0]&&X[1]<ct[3])){ae.label=X[1];break}if(X[0]===6&&ae.label<ct[1]){ae.label=ct[1],ct=X;break}if(ct&&ae.label<ct[2]){ae.label=ct[2],ae.ops.push(X);break}ct[2]&&ae.ops.pop(),ae.trys.pop();continue}X=W.call(Le,ae)}catch(Ue){X=[6,Ue],qe=0}finally{ke=ct=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},Gn=function(){for(var Le=0,W=0,ae=arguments.length;W<ae;W++)Le+=arguments[W].length;for(var ke=Array(Le),qe=0,W=0;W<ae;W++)for(var ct=arguments[W],St=0,Ge=ct.length;St<Ge;St++,qe++)ke[qe]=ct[St];return ke};function Jn(Le){return _n(_n({},Le),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function Qn(Le,W){return W.parent?W.parent===Le?!0:Qn(Le,W.parent):!1}function gi(Le,W){return Le===W||Qn(Le,W)||Qn(W,Le)}var Kn=function(){function Le(W){this.node=W}return Object.defineProperty(Le.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"children",{get:function(){return this.node.children.map(function(ae){return new Le(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Le}(),yi=function(){function Le(W,ae,ke){this.renderer=W,this.nodeMapper=ae,this.onDidChangeTwistieState=ke,this.renderedNodes=new Map,this.templateId=W.templateId}return Le.prototype.renderTemplate=function(W){var ae=this.renderer.renderTemplate(W);return{templateData:ae}},Le.prototype.renderElement=function(W,ae,ke,qe){this.renderer.renderElement(this.nodeMapper.map(W),ae,ke.templateData,qe)},Le.prototype.renderTwistie=function(W,ae){return Object(I.X)(ae,"codicon-loading",W.slow),!1},Le.prototype.disposeElement=function(W,ae,ke,qe){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(W),ae,ke.templateData,qe)},Le.prototype.disposeTemplate=function(W){this.renderer.disposeTemplate(W.templateData)},Le.prototype.dispose=function(){this.renderedNodes.clear()},Le}();function mi(Le){return{browserEvent:Le.browserEvent,elements:Le.elements.map(function(W){return W.element})}}var vt=function(Le){ln(W,Le);function W(ae){var ke=Le.call(this,ae.elements.map(function(qe){return qe.element}))||this;return ke.data=ae,ke}return W}(p.a);function Tt(Le){return Le instanceof p.a?new vt(Le):Le}var Ht=function(){function Le(W){this.dnd=W}return Le.prototype.getDragURI=function(W){return this.dnd.getDragURI(W.element)},Le.prototype.getDragLabel=function(W,ae){return this.dnd.getDragLabel?this.dnd.getDragLabel(W.map(function(ke){return ke.element}),ae):void 0},Le.prototype.onDragStart=function(W,ae){this.dnd.onDragStart&&this.dnd.onDragStart(Tt(W),ae)},Le.prototype.onDragOver=function(W,ae,ke,qe,ct){return ct===void 0&&(ct=!0),this.dnd.onDragOver(Tt(W),ae&&ae.element,ke,qe)},Le.prototype.drop=function(W,ae,ke,qe){this.dnd.drop(Tt(W),ae&&ae.element,ke,qe)},Le.prototype.onDragEnd=function(W){this.dnd.onDragEnd&&this.dnd.onDragEnd(W)},Le}();function tn(Le){return Le&&_n(_n({},Le),{collapseByDefault:!0,identityProvider:Le.identityProvider&&{getId:function(ae){return Le.identityProvider.getId(ae.element)}},dnd:Le.dnd&&new Ht(Le.dnd),multipleSelectionController:Le.multipleSelectionController&&{isSelectionSingleChangeEvent:function(ae){return Le.multipleSelectionController.isSelectionSingleChangeEvent(_n(_n({},ae),{element:ae.element}))},isSelectionRangeChangeEvent:function(ae){return Le.multipleSelectionController.isSelectionRangeChangeEvent(_n(_n({},ae),{element:ae.element}))}},accessibilityProvider:Le.accessibilityProvider&&_n(_n({},Le.accessibilityProvider),{getAriaLabel:function(ae){return Le.accessibilityProvider.getAriaLabel(ae.element)},getAriaLevel:Le.accessibilityProvider.getAriaLevel&&function(W){return Le.accessibilityProvider.getAriaLevel(W.element)},getActiveDescendantId:Le.accessibilityProvider.getActiveDescendantId&&function(W){return Le.accessibilityProvider.getActiveDescendantId(W.element)}}),filter:Le.filter&&{filter:function(ae,ke){return Le.filter.filter(ae.element,ke)}},keyboardNavigationLabelProvider:Le.keyboardNavigationLabelProvider&&_n(_n({},Le.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(ae){return Le.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ae.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof Le.expandOnlyOnTwistieClick=="undefined"?void 0:typeof Le.expandOnlyOnTwistieClick!="function"?Le.expandOnlyOnTwistieClick:function(W){return Le.expandOnlyOnTwistieClick(W.element)},ariaProvider:Le.ariaProvider&&{getPosInSet:function(ae,ke){return Le.ariaProvider.getPosInSet(ae.element,ke)},getSetSize:function(ae,ke,qe){return Le.ariaProvider.getSetSize(ae.element,ke,qe)},getRole:Le.ariaProvider.getRole?function(W){return Le.ariaProvider.getRole(W.element)}:void 0,isChecked:Le.ariaProvider.isChecked?function(W){var ae;return((ae=Le.ariaProvider)===null||ae===void 0?void 0:ae.isChecked)(W.element)}:void 0},additionalScrollHeight:Le.additionalScrollHeight})}function Ut(Le,W){W(Le),Le.children.forEach(function(ae){return Ut(ae,W)})}var Sn=function(){function Le(W,ae,ke,qe,ct,St){St===void 0&&(St={}),this.user=W,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=St.identityProvider,this.autoExpandSingleChildren=typeof St.autoExpandSingleChildren=="undefined"?!1:St.autoExpandSingleChildren,this.sorter=St.sorter,this.collapseByDefault=St.collapseByDefault,this.tree=this.createTree(W,ae,ke,qe,St),this.root=Jn({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=_n(_n({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(Le.prototype,"onDidChangeFocus",{get:function(){return te.b.map(this.tree.onDidChangeFocus,mi)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeSelection",{get:function(){return te.b.map(this.tree.onDidChangeSelection,mi)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidOpen",{get:function(){return te.b.map(this.tree.onDidOpen,mi)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),Le.prototype.createTree=function(W,ae,ke,qe,ct){var St=this,Ge=new tt(ke),ue=qe.map(function(Ue){return new yi(Ue,St.nodeMapper,St._onDidChangeNodeSlowState.event)}),X=tn(ct)||{};return new Lt(W,ae,Ge,ue,X)},Le.prototype.updateOptions=function(W){W===void 0&&(W={}),this.tree.updateOptions(W)},Le.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(Le.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(ae){this.tree.scrollTop=ae},enumerable:!0,configurable:!0}),Le.prototype.domFocus=function(){this.tree.domFocus()},Le.prototype.layout=function(W,ae){this.tree.layout(W,ae)},Le.prototype.style=function(W){this.tree.style(W)},Le.prototype.getInput=function(){return this.root.element},Le.prototype.setInput=function(W,ae){return On(this,void 0,void 0,function(){var ke;return Pn(this,function(qe){switch(qe.label){case 0:return this.refreshPromises.forEach(function(ct){return ct.cancel()}),this.refreshPromises.clear(),this.root.element=W,ke=ae&&{viewState:ae,focus:[],selection:[]},[4,this._updateChildren(W,!0,!1,ke)];case 1:return qe.sent(),ke&&(this.tree.setFocus(ke.focus),this.tree.setSelection(ke.selection)),ae&&typeof ae.scrollTop=="number"&&(this.scrollTop=ae.scrollTop),[2]}})})},Le.prototype._updateChildren=function(W,ae,ke,qe){return W===void 0&&(W=this.root.element),ae===void 0&&(ae=!0),ke===void 0&&(ke=!1),On(this,void 0,void 0,function(){var ct;return Pn(this,function(St){switch(St.label){case 0:if(typeof this.root.element=="undefined")throw new B(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return St.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 2:St.sent(),St.label=3;case 3:return ct=this.getDataNode(W),[4,this.refreshAndRenderNode(ct,ae,qe)];case 4:if(St.sent(),ke)try{this.tree.rerender(ct)}catch(Ge){}return[2]}})})},Le.prototype.rerender=function(W){if(W===void 0||W===this.root.element){this.tree.rerender();return}var ae=this.getDataNode(W);this.tree.rerender(ae)},Le.prototype.collapse=function(W,ae){ae===void 0&&(ae=!1);var ke=this.getDataNode(W);return this.tree.collapse(ke===this.root?null:ke,ae)},Le.prototype.expand=function(W,ae){return ae===void 0&&(ae=!1),On(this,void 0,void 0,function(){var ke,qe;return Pn(this,function(ct){switch(ct.label){case 0:if(typeof this.root.element=="undefined")throw new B(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 ke=this.getDataNode(W),this.tree.hasElement(ke)&&!this.tree.isCollapsible(ke)?[2,!1]:ke.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 ke!==this.root&&!ke.refreshPromise&&!this.tree.isCollapsed(ke)?[2,!1]:(qe=this.tree.expand(ke===this.root?null:ke,ae),ke.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]}})})},Le.prototype.setSelection=function(W,ae){var ke=this,qe=W.map(function(ct){return ke.getDataNode(ct)});this.tree.setSelection(qe,ae)},Le.prototype.getSelection=function(){var W=this.tree.getSelection();return W.map(function(ae){return ae.element})},Le.prototype.setFocus=function(W,ae){var ke=this,qe=W.map(function(ct){return ke.getDataNode(ct)});this.tree.setFocus(qe,ae)},Le.prototype.getFocus=function(){var W=this.tree.getFocus();return W.map(function(ae){return ae.element})},Le.prototype.reveal=function(W,ae){this.tree.reveal(this.getDataNode(W),ae)},Le.prototype.getDataNode=function(W){var ae=this.nodes.get(W===this.root.element?null:W);if(!ae)throw new B(this.user,"Data tree node not found: "+W);return ae},Le.prototype.refreshAndRenderNode=function(W,ae,ke){return On(this,void 0,void 0,function(){return Pn(this,function(qe){switch(qe.label){case 0:return[4,this.refreshNode(W,ae,ke)];case 1:return qe.sent(),this.render(W,ke),[2]}})})},Le.prototype.refreshNode=function(W,ae,ke){return On(this,void 0,void 0,function(){var qe,ct=this;return Pn(this,function(St){return this.subTreeRefreshPromises.forEach(function(Ge,ue){!qe&&gi(ue,W)&&(qe=Ge.then(function(){return ct.refreshNode(W,ae,ke)}))}),qe?[2,qe]:[2,this.doRefreshSubTree(W,ae,ke)]})})},Le.prototype.doRefreshSubTree=function(W,ae,ke){return On(this,void 0,void 0,function(){var qe,ct,St=this;return Pn(this,function(Ge){switch(Ge.label){case 0:W.refreshPromise=new Promise(function(ue){return qe=ue}),this.subTreeRefreshPromises.set(W,W.refreshPromise),W.refreshPromise.finally(function(){W.refreshPromise=void 0,St.subTreeRefreshPromises.delete(W)}),Ge.label=1;case 1:return Ge.trys.push([1,,4,5]),[4,this.doRefreshNode(W,ae,ke)];case 2:return ct=Ge.sent(),W.stale=!1,[4,Promise.all(ct.map(function(ue){return St.doRefreshSubTree(ue,ae,ke)}))];case 3:return Ge.sent(),[3,5];case 4:return qe(),[7];case 5:return[2]}})})},Le.prototype.doRefreshNode=function(W,ae,ke){return On(this,void 0,void 0,function(){var qe,ct,St,Ge,ue=this;return Pn(this,function(X){switch(X.label){case 0:W.hasChildren=!!this.dataSource.hasChildren(W.element),W.hasChildren?(ct=Object(ce.k)(800),ct.then(function(){W.slow=!0,ue._onDidChangeNodeSlowState.fire(W)},function(Ue){return null}),qe=this.doGetChildren(W).finally(function(){return ct.cancel()})):qe=Promise.resolve([]),X.label=1;case 1:return X.trys.push([1,3,4,5]),[4,qe];case 2:return St=X.sent(),[2,this.setChildren(W,St,ae,ke)];case 3:if(Ge=X.sent(),W!==this.root&&this.tree.collapse(W===this.root?null:W),Object(sn.d)(Ge))return[2,[]];throw Ge;case 4:return W.slow&&(W.slow=!1,this._onDidChangeNodeSlowState.fire(W)),[7];case 5:return[2]}})})},Le.prototype.doGetChildren=function(W){var ae=this,ke=this.refreshPromises.get(W);return ke||(ke=Object(ce.f)(function(){return On(ae,void 0,void 0,function(){var qe;return Pn(this,function(ct){switch(ct.label){case 0:return[4,this.dataSource.getChildren(W.element)];case 1:return qe=ct.sent(),[2,this.processChildren(qe)]}})})}),this.refreshPromises.set(W,ke),ke.finally(function(){return ae.refreshPromises.delete(W)}))},Le.prototype._onDidChangeCollapseState=function(W){var ae=W.node,ke=W.deep;!ae.collapsed&&ae.element.stale&&(ke?this.collapse(ae.element.element):this.refreshAndRenderNode(ae.element,!1).catch(sn.e))},Le.prototype.setChildren=function(W,ae,ke,qe){var ct,St=this;if(W.children.length===0&&ae.length===0)return[];for(var Ge=new Map,ue=new Map,X=0,Ue=W.children;X<Ue.length;X++){var at=Ue[X];if(Ge.set(at.element,at),this.identityProvider){var et=this.tree.isCollapsed(at);ue.set(at.id,{node:at,collapsed:et})}}for(var J=[],Ce=ae.map(function(Ot){var Qt=!!St.dataSource.hasChildren(Ot);if(!St.identityProvider){var At=Jn({element:Ot,parent:W,hasChildren:Qt});return Qt&&St.collapseByDefault&&!St.collapseByDefault(Ot)&&(At.collapsedByDefault=!1,J.push(At)),At}var jt=St.identityProvider.getId(Ot).toString(),hn=ue.get(jt);if(hn){var At=hn.node;return Ge.delete(At.element),St.nodes.delete(At.element),St.nodes.set(Ot,At),At.element=Ot,At.hasChildren=Qt,ke?hn.collapsed?(At.children.forEach(function(Vn){return Ut(Vn,function(Xn){return St.nodes.delete(Xn.element)})}),At.children.splice(0,At.children.length),At.stale=!0):J.push(At):Qt&&St.collapseByDefault&&!St.collapseByDefault(Ot)&&(At.collapsedByDefault=!1,J.push(At)),At}var bn=Jn({element:Ot,parent:W,id:jt,hasChildren:Qt});return qe&&qe.viewState.focus&&qe.viewState.focus.indexOf(jt)>-1&&qe.focus.push(bn),qe&&qe.viewState.selection&&qe.viewState.selection.indexOf(jt)>-1&&qe.selection.push(bn),qe&&qe.viewState.expanded&&qe.viewState.expanded.indexOf(jt)>-1?J.push(bn):Qt&&St.collapseByDefault&&!St.collapseByDefault(Ot)&&(bn.collapsedByDefault=!1,J.push(bn)),bn}),Oe=0,it=Object(Ve.e)(Ge);Oe<it.length;Oe++){var Je=it[Oe];Ut(Je,function(Ot){return St.nodes.delete(Ot.element)})}for(var je=0,Ct=Ce;je<Ct.length;je++){var at=Ct[je];this.nodes.set(at.element,at)}return(ct=W.children).splice.apply(ct,Gn([0,W.children.length],Ce)),W!==this.root&&this.autoExpandSingleChildren&&Ce.length===1&&J.length===0&&(Ce[0].collapsedByDefault=!1,J.push(Ce[0])),J},Le.prototype.render=function(W,ae){var ke=this,qe=W.children.map(function(ct){return ke.asTreeElement(ct,ae)});this.tree.setChildren(W===this.root?null:W,qe),W!==this.root&&this.tree.setCollapsible(W,W.hasChildren),this._onDidRender.fire()},Le.prototype.asTreeElement=function(W,ae){var ke=this;if(W.stale)return{element:W,collapsible:W.hasChildren,collapsed:!0};var qe;return ae&&ae.viewState.expanded&&W.id&&ae.viewState.expanded.indexOf(W.id)>-1?qe=!1:qe=W.collapsedByDefault,W.collapsedByDefault=void 0,{element:W,children:W.hasChildren?oe.c.map(oe.c.fromArray(W.children),function(ct){return ke.asTreeElement(ct,ae)}):[],collapsible:W.hasChildren,collapsed:qe}},Le.prototype.processChildren=function(W){return this.sorter&&W.sort(this.sorter.compare.bind(this.sorter)),W},Le.prototype.dispose=function(){this.disposables.dispose()},Le}(),Rn=function(){function Le(W){this.node=W}return Object.defineProperty(Le.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(Le.prototype,"children",{get:function(){return this.node.children.map(function(ae){return new Le(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Le}(),Bn=function(){function Le(W,ae,ke,qe){this.renderer=W,this.nodeMapper=ae,this.compressibleNodeMapperProvider=ke,this.onDidChangeTwistieState=qe,this.renderedNodes=new Map,this.disposables=[],this.templateId=W.templateId}return Le.prototype.renderTemplate=function(W){var ae=this.renderer.renderTemplate(W);return{templateData:ae}},Le.prototype.renderElement=function(W,ae,ke,qe){this.renderer.renderElement(this.nodeMapper.map(W),ae,ke.templateData,qe)},Le.prototype.renderCompressedElements=function(W,ae,ke,qe){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(W),ae,ke.templateData,qe)},Le.prototype.renderTwistie=function(W,ae){return Object(I.X)(ae,"codicon-loading",W.slow),!1},Le.prototype.disposeElement=function(W,ae,ke,qe){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(W),ae,ke.templateData,qe)},Le.prototype.disposeCompressedElements=function(W,ae,ke,qe){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(W),ae,ke.templateData,qe)},Le.prototype.disposeTemplate=function(W){this.renderer.disposeTemplate(W.templateData)},Le.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(ne.f)(this.disposables)},Le}();function kn(Le){var W=Le&&tn(Le);return W&&_n(_n({},W),{keyboardNavigationLabelProvider:W.keyboardNavigationLabelProvider&&_n(_n({},W.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(ke){return Le.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(ke.map(function(qe){return qe.element}))}})})}var oi=function(Le){ln(W,Le);function W(ae,ke,qe,ct,St,Ge,ue){ue===void 0&&(ue={});var X=Le.call(this,ae,ke,qe,St,Ge,ue)||this;return X.compressionDelegate=ct,X.compressibleNodeMapper=new z(function(Ue){return new Rn(Ue)}),X.filter=ue.filter,X}return W.prototype.createTree=function(ae,ke,qe,ct,St){var Ge=this,ue=new tt(qe),X=ct.map(function(at){return new Bn(at,Ge.nodeMapper,function(){return Ge.compressibleNodeMapper},Ge._onDidChangeNodeSlowState.event)}),Ue=kn(St)||{};return new nn(ae,ke,ue,X,Ue)},W.prototype.asTreeElement=function(ae,ke){return _n({incompressible:this.compressionDelegate.isIncompressible(ae.element)},Le.prototype.asTreeElement.call(this,ae,ke))},W.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),this.tree.updateOptions(ae)},W.prototype.render=function(ae,ke){var qe=this;if(!this.identityProvider)return Le.prototype.render.call(this,ae,ke);var ct=function(Oe){return qe.identityProvider.getId(Oe).toString()},St=function(Oe){for(var it=new Set,Je=0,je=Oe;Je<je.length;Je++){var Ct=je[Je],Ot=qe.tree.getCompressedTreeNode(Ct===qe.root?null:Ct);if(!Ot.element)continue;for(var Qt=0,At=Ot.element.elements;Qt<At.length;Qt++){var jt=At[Qt];it.add(ct(jt.element))}}return it},Ge=St(this.tree.getSelection()),ue=St(this.tree.getFocus());Le.prototype.render.call(this,ae,ke);var X=this.getSelection(),Ue=!1,at=this.getFocus(),et=!1,J=function Ce(Oe){var it=Oe.element;if(it)for(var Je=0;Je<it.elements.length;Je++){var je=ct(it.elements[Je].element),Ct=it.elements[it.elements.length-1].element;Ge.has(je)&&X.indexOf(Ct)===-1&&(X.push(Ct),Ue=!0),ue.has(je)&&at.indexOf(Ct)===-1&&(at.push(Ct),et=!0)}Oe.children.forEach(Ce)};J(this.tree.getCompressedTreeNode(ae===this.root?null:ae)),Ue&&this.setSelection(X),et&&this.setFocus(at)},W.prototype.processChildren=function(ae){var ke=this;return this.filter&&(ae=ae.filter(function(qe){var ct=ke.filter.filter(qe,1),St=ci(ct);if(St===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return St===1})),Le.prototype.processChildren.call(this,ae)},W}(Sn);function ci(Le){return typeof Le=="boolean"?Le?1:0:_e(Le)?Se(Le.visibility):Se(Le)}var Hi=function(){var Le=function(ae,ke){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,ke)};return function(W,ae){Le(W,ae);function ke(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(ke.prototype=ae.prototype,new ke)}}(),rr=function(Le){Hi(W,Le);function W(ae,ke,qe,ct,St,Ge){Ge===void 0&&(Ge={});var ue=Le.call(this,ae,ke,qe,ct,Ge)||this;return ue.user=ae,ue.dataSource=St,ue.identityProvider=Ge.identityProvider,ue}return W.prototype.createModel=function(ae,ke,qe){return new Me(ae,ke,qe)},W}(ee),Zn=o("R3nR"),Ii=function(){var Le=function(ae,ke){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,ke)};return function(W,ae){Le(W,ae);function ke(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(ke.prototype=ae.prototype,new ke)}}(),Si=function(){return Si=Object.assign||function(Le){for(var W,ae=1,ke=arguments.length;ae<ke;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},Si.apply(this,arguments)},ji=function(Le,W,ae,ke){var qe=arguments.length,ct=qe<3?W:ke===null?ke=Object.getOwnPropertyDescriptor(W,ae):ke,St;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(Le,W,ae,ke);else for(var Ge=Le.length-1;Ge>=0;Ge--)(St=Le[Ge])&&(ct=(qe<3?St(ct):qe>3?St(W,ae,ct):St(W,ae))||ct);return qe>3&&ct&&Object.defineProperty(W,ae,ct),ct},Un=function(Le,W){return function(ae,ke){W(ae,ke,Le)}},Ci,Wi=Object(G.c)("listService"),Mi=function(){function Le(W){this._themeService=W,this.disposables=new ne.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(Le.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),Le.prototype.register=function(W,ae){var ke=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var qe=new re.b(Object(I.v)(),"");this.disposables.add(Object(x.b)(qe,this._themeService))}if(this.lists.some(function(St){return St.widget===W}))throw new Error("Cannot register the same widget multiple times");var ct={widget:W,extraContextKeys:ae};return this.lists.push(ct),W.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=W),Object(ne.e)(W.onDidFocus(function(){return ke._lastFocusedWidget=W}),Object(ne.h)(function(){return ke.lists.splice(ke.lists.indexOf(ct),1)}),W.onDidDispose(function(){ke.lists=ke.lists.filter(function(St){return St!==ct}),ke._lastFocusedWidget===W&&(ke._lastFocusedWidget=void 0)}))},Le.prototype.dispose=function(){this.disposables.dispose()},Le=ji([Un(0,K.c)],Le),Le}(),Gi=new j.d("listFocus",!0),Bi=new j.d("listSupportsMultiselect",!0),vi=j.a.and(Gi,j.a.not(D)),qi=new j.d("listHasSelectionOrFocus",!1),or=new j.d("listDoubleSelection",!1),bi=new j.d("listMultiSelection",!1),Di=new j.d("listSupportsKeyboardNavigation",!0),Xi="listAutomaticKeyboardNavigation",lr=new j.d(Xi,!0),Ti=!1;function sr(Le,W){var ae=Le.createScoped(W.getHTMLElement());return Gi.bindTo(ae),ae}var Qe="workbench.list.multiSelectModifier",O="workbench.list.openMode",M="workbench.list.horizontalScrolling",Y="workbench.list.keyboardNavigation",De="workbench.list.automaticKeyboardNavigation",Re="workbench.tree.indent",We="workbench.tree.renderIndentGuides";function ft(Le){return Object(k.f)(Le,M,"workbench.tree.horizontalScrolling")}function lt(Le){return Le.getValue(Qe)==="alt"}function yt(Le){return Le.getValue(O)!=="doubleClick"}var xt=function(Le){Ii(W,Le);function W(ae){var ke=Le.call(this)||this;return ke.configurationService=ae,ke.useAltAsMultipleSelectionModifier=lt(ae),ke.registerListeners(),ke}return W.prototype.registerListeners=function(){var ae=this;this._register(this.configurationService.onDidChangeConfiguration(function(ke){ke.affectsConfiguration(Qe)&&(ae.useAltAsMultipleSelectionModifier=lt(ae.configurationService))}))},W.prototype.isSelectionSingleChangeEvent=function(ae){return this.useAltAsMultipleSelectionModifier?ae.browserEvent.altKey:Object(re.f)(ae)},W.prototype.isSelectionRangeChangeEvent=function(ae){return Object(re.e)(ae)},W}(ne.a),It=function(Le){Ii(W,Le);function W(ae,ke){var qe=Le.call(this)||this;return qe.configurationService=ae,qe.existingOpenController=ke,qe.openOnSingleClick=yt(ae),qe.registerListeners(),qe}return W.prototype.registerListeners=function(){var ae=this;this._register(this.configurationService.onDidChangeConfiguration(function(ke){ke.affectsConfiguration(O)&&(ae.openOnSingleClick=yt(ae.configurationService))}))},W.prototype.shouldOpen=function(ae){if(ae instanceof MouseEvent){var ke=ae.button===0,qe=ae.detail===2;return ke&&!this.openOnSingleClick&&!qe?!1:ke||ae.button===1?this.existingOpenController?this.existingOpenController.shouldOpen(ae):!0:!1}return this.existingOpenController?this.existingOpenController.shouldOpen(ae):!0},W}(ne.a);function Ft(Le,W,ae){var ke=new ne.b,qe=Si({},Le);if(Le.multipleSelectionSupport!==!1&&!Le.multipleSelectionController){var ct=new xt(W);qe.multipleSelectionController=ct,ke.add(ct)}var St=new It(W,Le.openController);return qe.openController=St,ke.add(St),qe.keyboardNavigationDelegate={mightProducePrintableCharacter:function(ue){return ae.mightProducePrintableCharacter(ue)}},[qe,ke]}function Yt(Le,W){var ae=!1;return function(ke){if(ae)return ae=!1,!1;var qe=W.softDispatch(ke,Le);return qe&&qe.enterChord?(ae=!0,!1):(ae=!1,!0)}}var Zt=function(Le){Ii(W,Le);function W(ae,ke,qe,ct,St,Ge,ue,X,Ue,at,et){var J=this,Ce=gn(ke,St,Ge,Ue,at,et),Oe=Ce.options,it=Ce.getAutomaticKeyboardNavigation,Je=Ce.disposable;return J=Le.call(this,ae,ke,qe,ct,Oe)||this,J.disposables.add(Je),J.internals=new Tn(J,Oe,it,St.overrideStyles,Ge,ue,X,Ue,et),J.disposables.add(J.internals),J}return W=ji([Un(5,j.c),Un(6,Wi),Un(7,K.c),Un(8,k.a),Un(9,R.a),Un(10,Zn.b)],W),W}(Lt),un=function(Le){Ii(W,Le);function W(ae,ke,qe,ct,St,Ge,ue,X,Ue,at,et,J){var Ce=this,Oe=gn(ke,Ge,ue,at,et,J),it=Oe.options,Je=Oe.getAutomaticKeyboardNavigation,je=Oe.disposable;return Ce=Le.call(this,ae,ke,qe,ct,St,it)||this,Ce.disposables.add(je),Ce.internals=new Tn(Ce,it,Je,Ge.overrideStyles,ue,X,Ue,at,J),Ce.disposables.add(Ce.internals),Ce}return W.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Le.prototype.updateOptions.call(this,ae),ae.overrideStyles&&this.internals.updateStyleOverrides(ae.overrideStyles)},W=ji([Un(6,j.c),Un(7,Wi),Un(8,K.c),Un(9,k.a),Un(10,R.a),Un(11,Zn.b)],W),W}(rr),fn=function(Le){Ii(W,Le);function W(ae,ke,qe,ct,St,Ge,ue,X,Ue,at,et,J){var Ce=this,Oe=gn(ke,Ge,ue,at,et,J),it=Oe.options,Je=Oe.getAutomaticKeyboardNavigation,je=Oe.disposable;return Ce=Le.call(this,ae,ke,qe,ct,St,it)||this,Ce.disposables.add(je),Ce.internals=new Tn(Ce,it,Je,Ge.overrideStyles,ue,X,Ue,at,J),Ce.disposables.add(Ce.internals),Ce}return W.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Le.prototype.updateOptions.call(this,ae),ae.overrideStyles&&this.internals.updateStyleOverrides(ae.overrideStyles)},W=ji([Un(6,j.c),Un(7,Wi),Un(8,K.c),Un(9,k.a),Un(10,R.a),Un(11,Zn.b)],W),W}(Sn),An=function(Le){Ii(W,Le);function W(ae,ke,qe,ct,St,Ge,ue,X,Ue,at,et,J,Ce){var Oe=this,it=gn(ke,ue,X,et,J,Ce),Je=it.options,je=it.getAutomaticKeyboardNavigation,Ct=it.disposable;return Oe=Le.call(this,ae,ke,qe,ct,St,Ge,Je)||this,Oe.disposables.add(Ct),Oe.internals=new Tn(Oe,Je,je,ue.overrideStyles,X,Ue,at,et,Ce),Oe.disposables.add(Oe.internals),Oe}return W=ji([Un(7,j.c),Un(8,Wi),Un(9,K.c),Un(10,k.a),Un(11,R.a),Un(12,Zn.b)],W),W}(oi);function gn(Le,W,ae,ke,qe,ct){Di.bindTo(ae),Ti||(lr.bindTo(ae),Ti=!0);var St=function(){var it=ae.getContextKeyValue(Xi);return it&&(it=ke.getValue(De)),it},Ge=ct.isScreenReaderOptimized(),ue=Ge?"simple":ke.getValue(Y),X=typeof W.horizontalScrolling!="undefined"?W.horizontalScrolling:ft(ke),Ue=yt(ke),at=Ft(W,ke,qe),et=at[0],J=at[1],Ce=W.additionalScrollHeight;return{getAutomaticKeyboardNavigation:St,disposable:J,options:Si(Si({keyboardSupport:!1},et),{indent:ke.getValue(Re),renderIndentGuides:ke.getValue(We),automaticKeyboardNavigation:St(),simpleKeyboardNavigation:ue==="simple",filterOnType:ue==="filter",horizontalScrolling:X,openOnSingleClick:Ue,keyboardNavigationEventFilter:Yt(Le,qe),additionalScrollHeight:Ce,hideTwistiesOfChildlessElements:W.hideTwistiesOfChildlessElements})}}var Tn=function(){function Le(W,ae,ke,qe,ct,St,Ge,ue,X){var Ue=this;this.tree=W,this.themeService=Ge,this.disposables=[],this.contextKeyService=sr(ct,W);var at=Bi.bindTo(this.contextKeyService);at.set(!(ae.multipleSelectionSupport===!1)),this.hasSelectionOrFocus=qi.bindTo(this.contextKeyService),this.hasDoubleSelection=or.bindTo(this.contextKeyService),this.hasMultiSelection=bi.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=lt(ue);var et=new Set;et.add(Xi);var J=function(){var Oe=X.isScreenReaderOptimized(),it=Oe?"simple":ue.getValue(Y);W.updateOptions({simpleKeyboardNavigation:it==="simple",filterOnType:it==="filter"})};this.updateStyleOverrides(qe),this.disposables.push(this.contextKeyService,St.register(W),W.onDidChangeSelection(function(){var Ce=W.getSelection(),Oe=W.getFocus();Ue.hasSelectionOrFocus.set(Ce.length>0||Oe.length>0),Ue.hasMultiSelection.set(Ce.length>1),Ue.hasDoubleSelection.set(Ce.length===2)}),W.onDidChangeFocus(function(){var Ce=W.getSelection(),Oe=W.getFocus();Ue.hasSelectionOrFocus.set(Ce.length>0||Oe.length>0)}),ue.onDidChangeConfiguration(function(Ce){if(Ce.affectsConfiguration(O)&&W.updateOptions({openOnSingleClick:yt(ue)}),Ce.affectsConfiguration(Qe)&&(Ue._useAltAsMultipleSelectionModifier=lt(ue)),Ce.affectsConfiguration(Re)){var Oe=ue.getValue(Re);W.updateOptions({indent:Oe})}if(Ce.affectsConfiguration(We)){var it=ue.getValue(We);W.updateOptions({renderIndentGuides:it})}Ce.affectsConfiguration(Y)&&J(),Ce.affectsConfiguration(De)&&W.updateOptions({automaticKeyboardNavigation:ke()})}),this.contextKeyService.onDidChangeContext(function(Ce){Ce.affectsSome(et)&&W.updateOptions({automaticKeyboardNavigation:ke()})}),X.onDidChangeScreenReaderOptimized(function(){return J()}))}return Le.prototype.updateStyleOverrides=function(W){Object(ne.f)(this.styler),this.styler=W?Object(x.b)(this.tree,this.themeService,W):ne.a.None},Le.prototype.dispose=function(){this.disposables=Object(ne.f)(this.disposables),this.styler=Object(ne.f)(this.styler)},Le=ji([Un(4,j.c),Un(5,Wi),Un(6,K.c),Un(7,k.a),Un(8,Zn.b)],Le),Le}(),xn=_.a.as(U.a.Configuration);xn.registerConfiguration({id:"workbench",order:7,title:Object(N.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Ci={},Ci[Qe]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(N.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(N.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(N.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},Ci[O]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(N.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},Ci[M]={type:"boolean",default:!1,description:Object(N.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Ci["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(N.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(N.a)("deprecated","This setting is deprecated, please use '{0}' instead.",M)},Ci[Re]={type:"number",default:8,minimum:0,maximum:40,description:Object(N.a)("tree indent setting","Controls tree indentation in pixels.")},Ci[We]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(N.a)("render tree indent guides","Controls whether the tree should render indent guides.")},Ci[Y]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(N.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(N.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(N.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(N.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Ci[De]={type:"boolean",default:!0,markdownDescription:Object(N.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},Ci)})},kYye:function(wt,P,o){"use strict";o.d(P,"h",function(){return k}),o.d(P,"i",function(){return U}),o.d(P,"f",function(){return x}),o.d(P,"e",function(){return K}),o.d(P,"g",function(){return A}),o.d(P,"a",function(){return te}),o.d(P,"j",function(){return H}),o.d(P,"b",function(){return f}),o.d(P,"l",function(){return p}),o.d(P,"c",function(){return m}),o.d(P,"d",function(){return w}),o.d(P,"k",function(){return B}),o.d(P,"m",function(){return oe}),o.d(P,"n",function(){return he}),o.d(P,"o",function(){return _e}),o.d(P,"q",function(){return Se}),o.d(P,"p",function(){return q});var I=o("3/fG"),re=o("zrhQ"),ne=o("MD5Z"),N=o("t9D7"),k=Object(ne.Rb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},I.a("lineHighlight","Background color for the highlight of line at the cursor position.")),U=Object(ne.Rb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},I.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),j=Object(ne.Rb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},I.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},I.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),R=Object(ne.Rb)("editor.symbolHighlightBackground",{dark:ne.t,light:ne.t,hc:null},I.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),_=Object(ne.Rb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:ne.b},I.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),x=Object(ne.Rb)("editorCursor.foreground",{dark:"#AEAFAD",light:re.a.black,hc:re.a.white},I.a("caret","Color of the editor cursor.")),K=Object(ne.Rb)("editorCursor.background",null,I.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"},I.a("editorWhitespaces","Color of whitespace characters in the editor.")),A=Object(ne.Rb)("editorIndentGuide.background",{dark:D,light:D,hc:D},I.a("editorIndentGuides","Color of the editor indentation guides.")),te=Object(ne.Rb)("editorIndentGuide.activeBackground",{dark:D,light:D,hc:D},I.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),H=Object(ne.Rb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:re.a.white},I.a("editorLineNumbers","Color of editor line numbers.")),E=Object(ne.Rb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:ne.b},I.a("editorActiveLineNumber","Color of editor active line number"),!1,I.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),f=Object(ne.Rb)("editorLineNumber.activeForeground",{dark:E,light:E,hc:E},I.a("editorActiveLineNumber","Color of editor active line number")),p=Object(ne.Rb)("editorRuler.foreground",{dark:"#5A5A5A",light:re.a.lightgrey,hc:re.a.white},I.a("editorRuler","Color of the editor rulers.")),g=Object(ne.Rb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},I.a("editorCodeLensForeground","Foreground color of editor code lenses")),m=Object(ne.Rb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},I.a("editorBracketMatchBackground","Background color behind matching brackets")),w=Object(ne.Rb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:ne.e},I.a("editorBracketMatchBorder","Color for matching brackets boxes")),B=Object(ne.Rb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},I.a("editorOverviewRulerBorder","Color of the overview ruler border.")),z=Object(ne.Rb)("editorGutter.background",{dark:ne.o,light:ne.o,hc:ne.o},I.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)},I.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),he=Object(ne.Rb)("editorUnnecessaryCode.opacity",{dark:re.a.fromHex("#000a"),light:re.a.fromHex("#0007"),hc:null},I.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.`)),_e=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))},I.a("overviewRuleError","Overview ruler marker color for errors.")),Se=Object(ne.Rb)("editorOverviewRuler.warningForeground",{dark:ne.O,light:ne.O,hc:ne.N},I.a("overviewRuleWarning","Overview ruler marker color for warnings.")),q=Object(ne.Rb)("editorOverviewRuler.infoForeground",{dark:ne.H,light:ne.H,hc:ne.G},I.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(N.e)(function(Z,ce){var Te=Z.getColor(ne.o);Te&&ce.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+Te+"; }");var Ve=Z.getColor(ne.x);Ve&&ce.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+Ve+"; }");var Ee=Z.getColor(z);Ee&&ce.addRule(".monaco-editor .margin { background-color: "+Ee+"; }");var de=Z.getColor(j);de&&ce.addRule(".monaco-editor .rangeHighlight { background-color: "+de+"; }");var se=Z.getColor(G);se&&ce.addRule(".monaco-editor .rangeHighlight { border: 1px "+(Z.type==="hc"?"dotted":"solid")+" "+se+"; }");var fe=Z.getColor(R);fe&&ce.addRule(".monaco-editor .symbolHighlight { background-color: "+fe+"; }");var ie=Z.getColor(_);ie&&ce.addRule(".monaco-editor .symbolHighlight { border: 1px "+(Z.type==="hc"?"dotted":"solid")+" "+ie+"; }");var Q=Z.getColor(D);Q&&ce.addRule(".vs-whitespace { color: "+Q+" !important; }")})},kdPm:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return o.e(205).then(o.bind(null,"3VBA"))}})},"kw+w":function(wt,P,o){},l2gE:function(wt,P,o){"use strict";o.d(P,"a",function(){return ce});var I=o("6OMU"),re=o("N0LK"),ne=o("PTeM"),N=o("MrjW"),k=o("QDVR"),U=o("X+cX"),j="**",G="/",R="[/\\\\]",_="[^/\\\\]",x=/\//g;function K(fe){switch(fe){case 0:return"";case 1:return _+"*?";default:return"(?:"+R+"|"+_+"+"+R+"|"+R+_+"+)*?"}}function D(fe,ie){if(!fe)return[];for(var Q=[],me=!1,ye=!1,He="",tt=0,Et=fe;tt<Et.length;tt++){var Pt=Et[tt];switch(Pt){case ie:if(!me&&!ye){Q.push(He),He="";continue}break;case"{":me=!0;break;case"}":me=!1;break;case"[":ye=!0;break;case"]":ye=!1;break}He+=Pt}return He&&Q.push(He),Q}function A(fe){if(!fe)return"";var ie="",Q=D(fe,G);if(Q.every(function(ye){return ye===j}))ie=".*";else{var me=!1;Q.forEach(function(ye,He){if(ye===j){me||(ie+=K(2),me=!0);return}for(var tt=!1,Et="",Pt=!1,Xt="",Ke=0,Xe=ye;Ke<Xe.length;Ke++){var Ze=Xe[Ke];if(Ze!=="}"&&tt){Et+=Ze;continue}if(Pt&&(Ze!=="]"||!Xt)){var Ye=void 0;Ze==="-"?Ye=Ze:(Ze==="^"||Ze==="!")&&!Xt?Ye="^":Ze===G?Ye="":Ye=re.p(Ze),Xt+=Ye;continue}switch(Ze){case"{":tt=!0;continue;case"[":Pt=!0;continue;case"}":var Fe=D(Et,","),$e="(?:"+Fe.map(function(we){return A(we)}).join("|")+")";ie+=$e,tt=!1,Et="";break;case"]":ie+="["+Xt+"]",Pt=!1,Xt="";break;case"?":ie+=_;continue;case"*":ie+=K(1);continue;default:ie+=re.p(Ze)}}He<Q.length-1&&(Q[He+1]!==j||He+2<Q.length)&&(ie+=R),me=!1})}return ie}var te=/^\*\*\/\*\.[\w\.-]+$/,H=/^\*\*\/([\w\.-]+)\/?$/,E=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,f=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,p=/^\*\*((\/[\w\.-]+)+)\/?$/,g=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,m=new k.a(1e4),w=function(){return!1},B=function(){return null};function z(fe,ie){if(!fe)return B;var Q;typeof fe!="string"?Q=fe.pattern:Q=fe,Q=Q.trim();var me=Q+"_"+!!ie.trimForExclusions,ye=m.get(me);if(ye)return oe(ye,fe);var He;if(te.test(Q)){var tt=Q.substr(4);ye=function(Pt,Xt){return typeof Pt=="string"&&re.m(Pt,tt)?Q:null}}else(He=H.exec(he(Q,ie)))?ye=_e(He[1],Q):(ie.trimForExclusions?f:E).test(Q)?ye=Se(Q,ie):(He=p.exec(he(Q,ie)))?ye=q(He[1].substr(1),Q,!0):(He=g.exec(he(Q,ie)))?ye=q(He[1],Q,!1):ye=Z(Q);return m.set(me,ye),oe(ye,fe)}function oe(fe,ie){return typeof ie=="string"?fe:function(Q,me){return ne.a(Q,ie.base)?fe(N.relative(ie.base,Q),me):null}}function he(fe,ie){return ie.trimForExclusions&&re.m(fe,"/**")?fe.substr(0,fe.length-2):fe}function _e(fe,ie){var Q="/"+fe,me="\\"+fe,ye=function(Et,Pt){return typeof Et!="string"?null:Pt?Pt===fe?ie:null:Et===fe||re.m(Et,Q)||re.m(Et,me)?ie:null},He=[fe];return ye.basenames=He,ye.patterns=[ie],ye.allBasenames=He,ye}function Se(fe,ie){var Q=se(fe.slice(1,-1).split(",").map(function(Et){return z(Et,ie)}).filter(function(Et){return Et!==B}),fe),me=Q.length;if(!me)return B;if(me===1)return Q[0];var ye=function(Pt,Xt){for(var Ke=0,Xe=Q.length;Ke<Xe;Ke++)if(Q[Ke](Pt,Xt))return fe;return null},He=I.j(Q,function(Et){return!!Et.allBasenames});He&&(ye.allBasenames=He.allBasenames);var tt=Q.reduce(function(Et,Pt){return Pt.allPaths?Et.concat(Pt.allPaths):Et},[]);return tt.length&&(ye.allPaths=tt),ye}function q(fe,ie,Q){var me=N.sep!==N.posix.sep?fe.replace(x,N.sep):fe,ye=N.sep+me,He=Q?function(tt,Et){return typeof tt=="string"&&(tt===me||re.m(tt,ye))?ie:null}:function(tt,Et){return typeof tt=="string"&&tt===me?ie:null};return He.allPaths=[(Q?"*/":"./")+fe],He}function Z(fe){try{var ie=new RegExp("^"+A(fe)+"$");return function(Q,me){return ie.lastIndex=0,typeof Q=="string"&&ie.test(Q)?fe:null}}catch(Q){return B}}function ce(fe,ie,Q){return!fe||typeof ie!="string"?!1:Te(fe)(ie,void 0,Q)}function Te(fe,ie){if(ie===void 0&&(ie={}),!fe)return w;if(typeof fe=="string"||Ve(fe)){var Q=z(fe,ie);if(Q===B)return w;var me=function(He,tt){return!!Q(He,tt)};return Q.allBasenames&&(me.allBasenames=Q.allBasenames),Q.allPaths&&(me.allPaths=Q.allPaths),me}return Ee(fe,ie)}function Ve(fe){var ie=fe;return ie&&typeof ie.base=="string"&&typeof ie.pattern=="string"}function Ee(fe,ie){var Q=se(Object.getOwnPropertyNames(fe).map(function(Ke){return de(Ke,fe[Ke],ie)}).filter(function(Ke){return Ke!==B})),me=Q.length;if(!me)return B;if(!Q.some(function(Ke){return!!Ke.requiresSiblings})){if(me===1)return Q[0];var ye=function(Xe,Ze){for(var Ye=0,Fe=Q.length;Ye<Fe;Ye++){var $e=Q[Ye](Xe,Ze);if($e)return $e}return null},He=I.j(Q,function(Ke){return!!Ke.allBasenames});He&&(ye.allBasenames=He.allBasenames);var tt=Q.reduce(function(Ke,Xe){return Xe.allPaths?Ke.concat(Xe.allPaths):Ke},[]);return tt.length&&(ye.allPaths=tt),ye}var Et=function(Xe,Ze,Ye){for(var Fe=void 0,$e=0,we=Q.length;$e<we;$e++){var F=Q[$e];F.requiresSiblings&&Ye&&(Ze||(Ze=N.basename(Xe)),Fe||(Fe=Ze.substr(0,Ze.length-N.extname(Xe).length)));var ee=F(Xe,Ze,Fe,Ye);if(ee)return ee}return null},Pt=I.j(Q,function(Ke){return!!Ke.allBasenames});Pt&&(Et.allBasenames=Pt.allBasenames);var Xt=Q.reduce(function(Ke,Xe){return Xe.allPaths?Ke.concat(Xe.allPaths):Ke},[]);return Xt.length&&(Et.allPaths=Xt),Et}function de(fe,ie,Q){if(ie===!1)return B;var me=z(fe,Q);if(me===B)return B;if(typeof ie=="boolean")return me;if(ie){var ye=ie.when;if(typeof ye=="string"){var He=function(Et,Pt,Xt,Ke){if(!Ke||!me(Et,Pt))return null;var Xe=ye.replace("$(basename)",Xt),Ze=Ke(Xe);return Object(U.i)(Ze)?Ze.then(function(Ye){return Ye?fe:null}):Ze?fe:null};return He.requiresSiblings=!0,He}}return me}function se(fe,ie){var Q=fe.filter(function(Xt){return!!Xt.basenames});if(Q.length<2)return fe;var me=Q.reduce(function(Xt,Ke){var Xe=Ke.basenames;return Xe?Xt.concat(Xe):Xt},[]),ye;if(ie){ye=[];for(var He=0,tt=me.length;He<tt;He++)ye.push(ie)}else ye=Q.reduce(function(Xt,Ke){var Xe=Ke.patterns;return Xe?Xt.concat(Xe):Xt},[]);var Et=function(Ke,Xe){if(typeof Ke!="string")return null;if(!Xe){var Ze=void 0;for(Ze=Ke.length;Ze>0;Ze--){var Ye=Ke.charCodeAt(Ze-1);if(Ye===47||Ye===92)break}Xe=Ke.substr(Ze)}var Fe=me.indexOf(Xe);return Fe!==-1?ye[Fe]:null};Et.basenames=me,Et.patterns=ye,Et.allBasenames=me;var Pt=fe.filter(function(Xt){return!Xt.basenames});return Pt.push(Et),Pt}},lKfe:function(wt,P,o){},li8W:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return o.e(204).then(o.bind(null,"7s2V"))}})},lrmC:function(wt,P,o){},n01l:function(wt,P,o){"use strict";o.r(P);var I=o("3/fG"),re=o("/kV6"),ne=o("sswD"),N=o("wQH0"),k=o("0/Sa"),U=o("cGHE"),j=o("aokT"),G=o("gCVg"),R=o("cMvZ"),_=function(){function p(g,m){this._selection=g,this._insertSpace=m,this._usedEndToken=null}return p._haystackHasNeedleAtOffset=function(g,m,w){if(w<0)return!1;var B=m.length,z=g.length;if(w+B>z)return!1;for(var oe=0;oe<B;oe++){var he=g.charCodeAt(w+oe),_e=m.charCodeAt(oe);if(he===_e)continue;if(he>=65&&he<=90&&he+32===_e)continue;if(_e>=65&&_e<=90&&_e+32===he)continue;return!1}return!0},p.prototype._createOperationsForBlockComment=function(g,m,w,B,z,oe){var he=g.startLineNumber,_e=g.startColumn,Se=g.endLineNumber,q=g.endColumn,Z=z.getLineContent(he),ce=z.getLineContent(Se),Te=Z.lastIndexOf(m,_e-1+m.length),Ve=ce.indexOf(w,q-1-w.length);if(Te!==-1&&Ve!==-1)if(he===Se){var Ee=Z.substring(Te+m.length,Ve);Ee.indexOf(w)>=0&&(Te=-1,Ve=-1)}else{var de=Z.substring(Te+m.length),se=ce.substring(0,Ve);(de.indexOf(w)>=0||se.indexOf(w)>=0)&&(Te=-1,Ve=-1)}var fe;Te!==-1&&Ve!==-1?(B&&Te+m.length<Z.length&&Z.charCodeAt(Te+m.length)===32&&(m=m+" "),B&&Ve>0&&ce.charCodeAt(Ve-1)===32&&(w=" "+w,Ve-=1),fe=p._createRemoveBlockCommentOperations(new j.a(he,Te+m.length+1,Se,Ve+1),m,w)):(fe=p._createAddBlockCommentOperations(g,m,w,this._insertSpace),this._usedEndToken=fe.length===1?w:null);for(var ie=0,Q=fe;ie<Q.length;ie++){var me=Q[ie];oe.addTrackedEditOperation(me.range,me.text)}},p._createRemoveBlockCommentOperations=function(g,m,w){var B=[];return j.a.isEmpty(g)?B.push(k.a.delete(new j.a(g.startLineNumber,g.startColumn-m.length,g.endLineNumber,g.endColumn+w.length))):(B.push(k.a.delete(new j.a(g.startLineNumber,g.startColumn-m.length,g.startLineNumber,g.startColumn))),B.push(k.a.delete(new j.a(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn+w.length)))),B},p._createAddBlockCommentOperations=function(g,m,w,B){var z=[];return j.a.isEmpty(g)?z.push(k.a.replace(new j.a(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn),m+" "+w)):(z.push(k.a.insert(new U.a(g.startLineNumber,g.startColumn),m+(B?" ":""))),z.push(k.a.insert(new U.a(g.endLineNumber,g.endColumn),(B?" ":"")+w))),z},p.prototype.getEditOperations=function(g,m){var w=this._selection.startLineNumber,B=this._selection.startColumn;g.tokenizeIfCheap(w);var z=g.getLanguageIdAtPosition(w,B),oe=R.a.getComments(z);if(!oe||!oe.blockCommentStartToken||!oe.blockCommentEndToken)return;this._createOperationsForBlockComment(this._selection,oe.blockCommentStartToken,oe.blockCommentEndToken,this._insertSpace,g,m)},p.prototype.computeCursorState=function(g,m){var w=m.getInverseEditOperations();if(w.length===2){var B=w[0],z=w[1];return new G.a(B.range.endLineNumber,B.range.endColumn,z.range.startLineNumber,z.range.startColumn)}else{var oe=w[0].range,he=this._usedEndToken?-this._usedEndToken.length-1:0;return new G.a(oe.endLineNumber,oe.endColumn+he,oe.endLineNumber,oe.endColumn+he)}},p}(),x=o("N0LK"),K=function(){function p(g,m,w,B){this._selection=g,this._tabSize=m,this._type=w,this._insertSpace=B,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}return p._gatherPreflightCommentStrings=function(g,m,w){g.tokenizeIfCheap(m);var B=g.getLanguageIdAtPosition(m,1),z=R.a.getComments(B),oe=z?z.lineCommentToken:null;if(!oe)return null;for(var he=[],_e=0,Se=w-m+1;_e<Se;_e++)he[_e]={ignore:!1,commentStr:oe,commentStrOffset:0,commentStrLength:oe.length};return he},p._analyzeLines=function(g,m,w,B,z){var oe=!0,he;g===0?he=!0:g===1?he=!1:he=!0;for(var _e=0,Se=B.length;_e<Se;_e++){var q=B[_e],Z=z+_e,ce=w.getLineContent(Z),Te=x.q(ce);if(Te===-1){g===0||g===1,q.ignore=!0,q.commentStrOffset=ce.length;continue}if(oe=!1,q.ignore=!1,q.commentStrOffset=Te,he&&!_._haystackHasNeedleAtOffset(ce,q.commentStr,Te)&&(g===0?he=!1:g===1||(q.ignore=!0)),he&&m){var Ve=Te+q.commentStrLength;Ve<ce.length&&ce.charCodeAt(Ve)===32&&(q.commentStrLength+=1)}}if(g===0&&oe){he=!1;for(var _e=0,Se=B.length;_e<Se;_e++)B[_e].ignore=!1}return{supported:!0,shouldRemoveComments:he,lines:B}},p._gatherPreflightData=function(g,m,w,B,z){var oe=p._gatherPreflightCommentStrings(w,B,z);return oe===null?{supported:!1}:p._analyzeLines(g,m,w,oe,B)},p.prototype._executeLineComments=function(g,m,w,B){var z;w.shouldRemoveComments?z=p._createRemoveLineCommentsOperations(w.lines,B.startLineNumber):(p._normalizeInsertionPoint(g,w.lines,B.startLineNumber,this._tabSize),z=this._createAddLineCommentsOperations(w.lines,B.startLineNumber));for(var oe=new U.a(B.positionLineNumber,B.positionColumn),he=0,_e=z.length;he<_e;he++)if(m.addEditOperation(z[he].range,z[he].text),z[he].range.isEmpty()&&z[he].range.getStartPosition().equals(oe)){var Se=g.getLineContent(oe.lineNumber);Se.length+1===oe.column&&(this._deltaColumn=(z[he].text||"").length)}this._selectionId=m.trackSelection(B)},p.prototype._attemptRemoveBlockComment=function(g,m,w,B){var z=m.startLineNumber,oe=m.endLineNumber,he=B.length+Math.max(g.getLineFirstNonWhitespaceColumn(m.startLineNumber),m.startColumn),_e=g.getLineContent(z).lastIndexOf(w,he-1),Se=g.getLineContent(oe).indexOf(B,m.endColumn-1-w.length);return _e!==-1&&Se===-1&&(Se=g.getLineContent(z).indexOf(B,_e+w.length),oe=z),_e===-1&&Se!==-1&&(_e=g.getLineContent(oe).lastIndexOf(w,Se),z=oe),m.isEmpty()&&(_e===-1||Se===-1)&&(_e=g.getLineContent(z).indexOf(w),_e!==-1&&(Se=g.getLineContent(z).indexOf(B,_e+w.length))),_e!==-1&&g.getLineContent(z).charCodeAt(_e+w.length)===32&&(w+=" "),Se!==-1&&g.getLineContent(oe).charCodeAt(Se-1)===32&&(B=" "+B,Se-=1),_e!==-1&&Se!==-1?_._createRemoveBlockCommentOperations(new j.a(z,_e+w.length+1,oe,Se+1),w,B):null},p.prototype._executeBlockComment=function(g,m,w){g.tokenizeIfCheap(w.startLineNumber);var B=g.getLanguageIdAtPosition(w.startLineNumber,1),z=R.a.getComments(B);if(!z||!z.blockCommentStartToken||!z.blockCommentEndToken)return;var oe=z.blockCommentStartToken,he=z.blockCommentEndToken,_e=this._attemptRemoveBlockComment(g,w,oe,he);if(!_e){if(w.isEmpty()){var Se=g.getLineContent(w.startLineNumber),q=x.q(Se);q===-1&&(q=Se.length),_e=_._createAddBlockCommentOperations(new j.a(w.startLineNumber,q+1,w.startLineNumber,Se.length+1),oe,he,this._insertSpace)}else _e=_._createAddBlockCommentOperations(new j.a(w.startLineNumber,g.getLineFirstNonWhitespaceColumn(w.startLineNumber),w.endLineNumber,g.getLineMaxColumn(w.endLineNumber)),oe,he,this._insertSpace);_e.length===1&&(this._deltaColumn=oe.length+1)}this._selectionId=m.trackSelection(w);for(var Z=0,ce=_e;Z<ce.length;Z++){var Te=ce[Z];m.addEditOperation(Te.range,Te.text)}},p.prototype.getEditOperations=function(g,m){var w=this._selection;this._moveEndPositionDown=!1,w.startLineNumber<w.endLineNumber&&w.endColumn===1&&(this._moveEndPositionDown=!0,w=w.setEndPosition(w.endLineNumber-1,g.getLineMaxColumn(w.endLineNumber-1)));var B=p._gatherPreflightData(this._type,this._insertSpace,g,w.startLineNumber,w.endLineNumber);return B.supported?this._executeLineComments(g,m,B,w):this._executeBlockComment(g,m,w)},p.prototype.computeCursorState=function(g,m){var w=m.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(w=w.setEndPosition(w.endLineNumber+1,1)),new G.a(w.selectionStartLineNumber,w.selectionStartColumn+this._deltaColumn,w.positionLineNumber,w.positionColumn+this._deltaColumn)},p._createRemoveLineCommentsOperations=function(g,m){for(var w=[],B=0,z=g.length;B<z;B++){var oe=g[B];if(oe.ignore)continue;w.push(k.a.delete(new j.a(m+B,oe.commentStrOffset+1,m+B,oe.commentStrOffset+oe.commentStrLength+1)))}return w},p.prototype._createAddLineCommentsOperations=function(g,m){for(var w=[],B=this._insertSpace?" ":"",z=0,oe=g.length;z<oe;z++){var he=g[z];if(he.ignore)continue;w.push(k.a.insert(new U.a(m+z,he.commentStrOffset+1),he.commentStr+B))}return w},p.nextVisibleColumn=function(g,m,w,B){return w?g+(m-g%m):g+B},p._normalizeInsertionPoint=function(g,m,w,B){for(var z=1073741824,oe,he,_e=0,Se=m.length;_e<Se;_e++){if(m[_e].ignore)continue;for(var q=g.getLineContent(w+_e),Z=0,ce=0,Te=m[_e].commentStrOffset;Z<z&&ce<Te;ce++)Z=p.nextVisibleColumn(Z,B,q.charCodeAt(ce)===9,1);Z<z&&(z=Z)}z=Math.floor(z/B)*B;for(var _e=0,Se=m.length;_e<Se;_e++){if(m[_e].ignore)continue;var q=g.getLineContent(w+_e),Z=0;for(oe=0,he=m[_e].commentStrOffset;Z<z&&oe<he;oe++)Z=p.nextVisibleColumn(Z,B,q.charCodeAt(oe)===9,1);Z>z?m[_e].commentStrOffset=oe-1:m[_e].commentStrOffset=oe}},p}(),D=function(){var p=function(m,w){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,z){B.__proto__=z}||function(B,z){for(var oe in z)z.hasOwnProperty(oe)&&(B[oe]=z[oe])},p(m,w)};return function(g,m){p(g,m);function w(){this.constructor=g}g.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}}(),A=function(p){D(g,p);function g(m,w){var B=p.call(this,w)||this;return B._type=m,B}return g.prototype.run=function(m,w){if(!w.hasModel())return;for(var B=w.getModel(),z=[],oe=w.getSelections(),he=B.getOptions(),_e=w.getOption(13),Se=0,q=oe;Se<q.length;Se++){var Z=q[Se];z.push(new K(Z,he.tabSize,this._type,_e.insertSpace))}w.pushUndoStop(),w.executeCommands(this.id,z),w.pushUndoStop()},g}(ne.b),te=function(p){D(g,p);function g(){return p.call(this,0,{id:"editor.action.commentLine",label:I.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:2048|85,weight:100},menuOpts:{menuId:17,group:"5_insert",title:I.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return g}(A),H=function(p){D(g,p);function g(){return p.call(this,1,{id:"editor.action.addCommentLine",label:I.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:Object(re.a)(2048|41,2048|33),weight:100}})||this}return g}(A),E=function(p){D(g,p);function g(){return p.call(this,2,{id:"editor.action.removeCommentLine",label:I.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:Object(re.a)(2048|41,2048|51),weight:100}})||this}return g}(A),f=function(p){D(g,p);function g(){return p.call(this,{id:"editor.action.blockComment",label:I.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:1024|512|31,linux:{primary:2048|1024|31},weight:100},menuOpts:{menuId:17,group:"5_insert",title:I.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return g.prototype.run=function(m,w){if(!w.hasModel())return;for(var B=w.getOption(13),z=[],oe=w.getSelections(),he=0,_e=oe;he<_e.length;he++){var Se=_e[he];z.push(new _(Se,B.insertSpace))}w.pushUndoStop(),w.executeCommands(this.id,z),w.pushUndoStop()},g}(ne.b);Object(ne.f)(te),Object(ne.f)(H),Object(ne.f)(E),Object(ne.f)(f)},n18v:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return o.e(254).then(o.bind(null,"nNVF"))}})},nB0o:function(wt,P,o){"use strict";o.d(P,"a",function(){return Po});var I=o("lrmC"),re=o("3/fG"),ne=o("EffR"),N=o("/cxE"),k=o("MI8n"),U=o("pmY6"),j=o("tYmi"),G=o("HdwC"),R=o("sswD"),_=o("Vxe3"),x=o("ZlPH"),K=o("MNsG"),D=o("pg8w"),A=o("D3Dy"),te=o("XSiN"),H=o("X+cX"),E=o("AKMP"),f=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),p=function(){function L(n,e){this.x=n,this.y=e}return L.prototype.toClientCoordinates=function(){return new g(this.x-ne.d.scrollX,this.y-ne.d.scrollY)},L}(),g=function(){function L(n,e){this.clientX=n,this.clientY=e}return L.prototype.toPageCoordinates=function(){return new p(this.clientX+ne.d.scrollX,this.clientY+ne.d.scrollY)},L}(),m=function(){function L(n,e,i,u){this.x=n,this.y=e,this.width=i,this.height=u}return L}();function w(L){var n=ne.B(L);return new m(n.left,n.top,n.width,n.height)}var B=function(L){f(n,L);function n(e,i){var u=L.call(this,e)||this;return u.pos=new p(u.posx,u.posy),u.editorPos=w(i),u}return n}(te.a),z=function(){function L(n){this._editorViewDomNode=n}return L.prototype._create=function(n){return new B(n,this._editorViewDomNode)},L.prototype.onContextMenu=function(n,e){var i=this;return ne.i(n,"contextmenu",function(u){e(i._create(u))})},L.prototype.onMouseUp=function(n,e){var i=this;return ne.i(n,"mouseup",function(u){e(i._create(u))})},L.prototype.onMouseDown=function(n,e){var i=this;return ne.i(n,"mousedown",function(u){e(i._create(u))})},L.prototype.onMouseLeave=function(n,e){var i=this;return ne.j(n,function(u){e(i._create(u))})},L.prototype.onMouseMoveThrottled=function(n,e,i,u){var c=this,T=function(le,ze){return i(le,c._create(ze))};return ne.l(n,"mousemove",e,T,u)},L}(),oe=function(){function L(n){this._editorViewDomNode=n}return L.prototype._create=function(n){return new B(n,this._editorViewDomNode)},L.prototype.onPointerUp=function(n,e){var i=this;return ne.i(n,"pointerup",function(u){e(i._create(u))})},L.prototype.onPointerDown=function(n,e){var i=this;return ne.i(n,"pointerdown",function(u){e(i._create(u))})},L.prototype.onPointerLeave=function(n,e){var i=this;return ne.k(n,function(u){e(i._create(u))})},L.prototype.onPointerMoveThrottled=function(n,e,i,u){var c=this,T=function(le,ze){return i(le,c._create(ze))};return ne.l(n,"pointermove",e,T,u)},L}(),he=function(L){f(n,L);function n(e){var i=L.call(this)||this;return i._editorViewDomNode=e,i._globalMouseMoveMonitor=i._register(new E.a),i._keydownListener=null,i}return n.prototype.startMonitoring=function(e,i,u,c,T){var ge=this;this._keydownListener=ne.n(document,"keydown",function(ze){var st=ze.toKeybinding();if(st.isModifierKey())return;ge._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var le=function(st,ht){return u(st,new B(ht,ge._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(e,i,le,c,function(){ge._keydownListener.dispose(),T()})},n}(U.a),_e=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Se=function(L){_e(n,L);function n(){var e=L.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,u=0,c=e.length;u<c;u++){var T=e[u];switch(T.type){case 1:this.onConfigurationChanged(T)&&(i=!0);break;case 2:this.onContentSizeChanged(T)&&(i=!0);break;case 3:this.onCursorStateChanged(T)&&(i=!0);break;case 4:this.onDecorationsChanged(T)&&(i=!0);break;case 5:this.onFlushed(T)&&(i=!0);break;case 6:this.onFocusChanged(T)&&(i=!0);break;case 7:this.onLanguageConfigurationChanged(T)&&(i=!0);break;case 8:this.onLineMappingChanged(T)&&(i=!0);break;case 9:this.onLinesChanged(T)&&(i=!0);break;case 10:this.onLinesDeleted(T)&&(i=!0);break;case 11:this.onLinesInserted(T)&&(i=!0);break;case 12:this.onRevealRangeRequest(T)&&(i=!0);break;case 13:this.onScrollChanged(T)&&(i=!0);break;case 15:this.onTokensChanged(T)&&(i=!0);break;case 14:this.onThemeChanged(T)&&(i=!0);break;case 16:this.onTokensColorsChanged(T)&&(i=!0);break;case 17:this.onZonesChanged(T)&&(i=!0);break;default:console.info("View received unknown event: "),console.info(T)}}i&&(this._shouldRender=!0)},n}(U.a),q=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Z=function(L){q(n,L);function n(e){var i=L.call(this)||this;return i._context=e,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.prototype.dispose.call(this)},n}(Se),ce=function(){function L(){}return L.write=function(n,e){n instanceof x.a,n.setAttribute("data-mprt",String(e))},L.read=function(n){var e=n.getAttribute("data-mprt");return e===null?0:parseInt(e,10)},L.collect=function(n,e){for(var i=[],u=0;n&&n!==document.body&&!(n===e);)n.nodeType===n.ELEMENT_NODE&&(i[u++]=this.read(n)),n=n.parentElement;for(var c=new Uint8Array(u),T=0;T<u;T++)c[T]=i[u-T-1];return c},L}(),Te=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ve=function(){function L(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 L.prototype.getScrolledTopFromAbsoluteTop=function(n){return n-this.scrollTop},L.prototype.getVerticalOffsetForLineNumber=function(n){return this._viewLayout.getVerticalOffsetForLineNumber(n)},L.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},L}(),Ee=function(L){Te(n,L);function n(e,i,u){var c=L.call(this,e,i)||this;return c._viewLines=u,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}(Ve),de=function(){function L(n,e,i){this.outsideRenderedLine=n,this.lineNumber=e,this.ranges=i}return L}(),se=function(){function L(n,e){this.left=Math.round(n),this.width=Math.round(e)}return L.prototype.toString=function(){return"["+this.left+","+this.width+"]"},L}(),fe=function(){function L(n,e){this.outsideRenderedLine=n,this.left=Math.round(e)}return L}(),ie=function(){function L(n,e){this.outsideRenderedLine=n,this.ranges=e}return L}(),Q=function(){function L(n,e){this.left=n,this.width=e}return L.prototype.toString=function(){return"["+this.left+","+this.width+"]"},L.compare=function(n,e){return n.left-e.left},L}(),me=function(){function L(){}return L._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},L._detachRange=function(n,e){n.selectNodeContents(e)},L._readClientRects=function(n,e,i,u,c){var T=this._createRange();try{return T.setStart(n,e),T.setEnd(i,u),T.getClientRects()}catch(ge){return null}finally{this._detachRange(T,c)}},L._mergeAdjacentRanges=function(n){if(n.length===1)return[new se(n[0].left,n[0].width)];n.sort(Q.compare);for(var e=[],i=0,u=n[0].left,c=n[0].width,T=1,ge=n.length;T<ge;T++){var le=n[T],ze=le.left,st=le.width;u+c+.9>=ze?c=Math.max(c,ze+st-u):(e[i++]=new se(u,c),u=ze,c=st)}return e[i++]=new se(u,c),e},L._createHorizontalRangesFromClientRects=function(n,e){if(!n||n.length===0)return null;for(var i=[],u=0,c=n.length;u<c;u++){var T=n[u];i[u]=new Q(Math.max(0,T.left-e),T.width)}return this._mergeAdjacentRanges(i)},L.readHorizontalRanges=function(n,e,i,u,c,T,ge){var le=0,ze=n.children.length-1;if(le>ze)return null;e=Math.min(ze,Math.max(le,e)),u=Math.min(ze,Math.max(le,u)),e!==u&&(u>0&&c===0&&(u--,c=1073741824));var st=n.children[e].firstChild,ht=n.children[u].firstChild;if((!st||!ht)&&(!st&&i===0&&e>0&&(st=n.children[e-1].firstChild,i=1073741824),!ht&&c===0&&u>0&&(ht=n.children[u-1].firstChild,c=1073741824)),!st||!ht)return null;i=Math.min(st.textContent.length,Math.max(0,i)),c=Math.min(ht.textContent.length,Math.max(0,c));var y=this._readClientRects(st,i,ht,c,ge);return this._createHorizontalRangesFromClientRects(y,T)},L}(),ye=o("dBaI"),He=o("baJR"),tt=o("t9D7"),Et=o("/UlZ"),Pt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xt=function(){return K.f?!0:!(K.d||A.h||A.k)}(),Ke=A.f,Xe=function(){function L(n,e){this._domNode=n,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=e}return Object.defineProperty(L.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),L}(),Ze=function(){function L(n,e){this.themeType=e;var i=n.options,u=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=u.spaceWidth,this.middotWidth=u.middotWidth,this.useMonospaceOptimizations=u.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=u.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return L.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},L}(),Ye=function(){function L(n){this._options=n,this._isMaybeInvalid=!0,this._renderedViewLine=null}return L.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},L.prototype.setDomNode=function(n){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(x.b)(n);else throw new Error("I have no rendered view line to set the dom node to...")},L.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},L.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},L.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},L.prototype.onOptionsChanged=function(n){this._isMaybeInvalid=!0,this._options=n},L.prototype.onSelectionChanged=function(){return Ke||this._options.themeType===tt.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},L.prototype.renderLine=function(n,e,i,u){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var c=i.getViewLineRenderingData(n),T=this._options,ge=ye.a.filter(c.inlineDecorations,n,c.minColumn,c.maxColumn),le=null;if(Ke||T.themeType===tt.b||this._options.renderWhitespace==="selection")for(var ze=i.selections,st=0,ht=ze;st<ht.length;st++){var y=ht[st];if(y.endLineNumber<n||y.startLineNumber>n)continue;var d=y.startLineNumber===n?y.startColumn:c.minColumn,l=y.endLineNumber===n?y.endColumn:c.maxColumn;d<l&&(this._options.renderWhitespace!=="selection"?ge.push(new ye.a(d,l,"inline-selected-text",0)):(le||(le=[]),le.push(new He.b(d-1,l-1))))}var b=new He.c(T.useMonospaceOptimizations,T.canUseHalfwidthRightwardsArrow,c.content,c.continuesWithWrappedLine,c.isBasicASCII,c.containsRTL,c.minColumn-1,c.tokens,ge,c.tabSize,c.startVisibleColumn,T.spaceWidth,T.middotWidth,T.stopRenderingLineAfter,T.renderWhitespace,T.renderControlCharacters,T.fontLigatures!==Et.d.OFF,le);if(this._renderedViewLine&&this._renderedViewLine.input.equals(b))return!1;u.appendASCIIString('<div style="top:'),u.appendASCIIString(String(e)),u.appendASCIIString("px;height:"),u.appendASCIIString(String(this._options.lineHeight)),u.appendASCIIString('px;" class="'),u.appendASCIIString(L.CLASS_NAME),u.appendASCIIString('">');var S=Object(He.d)(b,u);u.appendASCIIString("</div>");var C=null;return Xt&&c.isBasicASCII&&T.useMonospaceOptimizations&&S.containsForeignElements===0&&(c.content.length<300&&b.lineTokens.getCount()<100&&(C=new Fe(this._renderedViewLine?this._renderedViewLine.domNode:null,b,S.characterMapping))),C||(C=F(this._renderedViewLine?this._renderedViewLine.domNode:null,b,S.characterMapping,S.containsRTL,S.containsForeignElements)),this._renderedViewLine=C,!0},L.prototype.layoutLine=function(n,e){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(e),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},L.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},L.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},L.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 u=this._renderedViewLine.input.stopRenderingLineAfter|0,c=!1;u!==-1&&n>u+1&&e>u+1&&(c=!0),u!==-1&&n>u+1&&(n=u+1),u!==-1&&e>u+1&&(e=u+1);var T=this._renderedViewLine.getVisibleRangesForRange(n,e,i);return T&&T.length>0?new ie(c,T):null},L.prototype.getColumnOfNodeOffset=function(n,e,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(n,e,i):1},L.CLASS_NAME="view-line",L}(),Fe=function(){function L(n,e,i){this.domNode=n,this.input=e,this._characterMapping=i,this._charWidth=e.spaceWidth}return L.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},L.prototype.getWidthIsFast=function(){return!0},L.prototype.getVisibleRangesForRange=function(n,e,i){var u=this._getCharPosition(n),c=this._getCharPosition(e);return[new se(u,c-u)]},L.prototype._getCharPosition=function(n){var e=this._characterMapping.getAbsoluteOffsets();return e.length===0?0:Math.round(this._charWidth*e[n-1])},L.prototype.getColumnOfNodeOffset=function(n,e,i){for(var u=e.textContent.length,c=-1;e;)e=e.previousSibling,c++;var T=this._characterMapping.partDataToCharOffset(c,u,i);return T+1},L}(),$e=function(){function L(n,e,i,u,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,!u||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var T=0,ge=this._characterMapping.length;T<=ge;T++)this._pixelOffsetCache[T]=-1}}return L.prototype._getReadingTarget=function(n){return n.domNode.firstChild},L.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},L.prototype.getWidthIsFast=function(){return!(this._cachedWidth===-1)},L.prototype.getVisibleRangesForRange=function(n,e,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var u=this._readPixelOffset(this.domNode,n,i);if(u===-1)return null;var c=this._readPixelOffset(this.domNode,e,i);return c===-1?null:[new se(u,c-u)]}return this._readVisibleRangesForRange(this.domNode,n,e,i)},L.prototype._readVisibleRangesForRange=function(n,e,i,u){if(e===i){var c=this._readPixelOffset(n,e,u);return c===-1?null:[new se(c,0)]}else return this._readRawVisibleRangesForRange(n,e,i,u)},L.prototype._readPixelOffset=function(n,e,i){if(this._characterMapping.length===0){if(this._containsForeignElements===0)return 0;if(this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();var u=this._getReadingTarget(n);return u.firstChild?u.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var c=this._pixelOffsetCache[e];if(c!==-1)return c;var T=this._actualReadPixelOffset(n,e,i);return this._pixelOffsetCache[e]=T,T}return this._actualReadPixelOffset(n,e,i)},L.prototype._actualReadPixelOffset=function(n,e,i){if(this._characterMapping.length===0){var u=me.readHorizontalRanges(this._getReadingTarget(n),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!u||u.length===0?-1:u[0].left}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var c=this._characterMapping.charOffsetToPartData(e-1),T=He.a.getPartIndex(c),ge=He.a.getCharIndex(c),le=me.readHorizontalRanges(this._getReadingTarget(n),T,ge,T,ge,i.clientRectDeltaLeft,i.endNode);return!le||le.length===0?-1:le[0].left},L.prototype._readRawVisibleRangesForRange=function(n,e,i,u){if(e===1&&i===this._characterMapping.length)return[new se(0,this.getWidth())];var c=this._characterMapping.charOffsetToPartData(e-1),T=He.a.getPartIndex(c),ge=He.a.getCharIndex(c),le=this._characterMapping.charOffsetToPartData(i-1),ze=He.a.getPartIndex(le),st=He.a.getCharIndex(le);return me.readHorizontalRanges(this._getReadingTarget(n),T,ge,ze,st,u.clientRectDeltaLeft,u.endNode)},L.prototype.getColumnOfNodeOffset=function(n,e,i){for(var u=e.textContent.length,c=-1;e;)e=e.previousSibling,c++;var T=this._characterMapping.partDataToCharOffset(c,u,i);return T+1},L}(),we=function(L){Pt(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._readVisibleRangesForRange=function(e,i,u,c){var T=L.prototype._readVisibleRangesForRange.call(this,e,i,u,c);if(!T||T.length===0||i===u||i===1&&u===this._characterMapping.length)return T;if(!this.input.containsRTL){var ge=this._readPixelOffset(e,u,c);if(ge!==-1){var le=T[T.length-1];le.left<ge&&(le.width=ge-le.left)}}return T},n}($e),F=function(){return A.m?ee:Pe}();function ee(L,n,e,i,u){return new we(L,n,e,i,u)}function Pe(L,n,e,i,u){return new $e(L,n,e,i,u)}var ve=o("cGHE"),Me=o("aokT"),Ie=o("Ll0s"),pe=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),nt=function(){function L(n,e){this.lastViewCursorsRenderData=n,this.lastTextareaPosition=e}return L}(),_t=function(){function L(n,e,i,u,c,T){i===void 0&&(i=0),u===void 0&&(u=null),c===void 0&&(c=null),T===void 0&&(T=null),this.element=n,this.type=e,this.mouseColumn=i,this.position=u,!c&&u&&(c=new Me.a(u.lineNumber,u.column,u.lineNumber,u.column)),this.range=c,this.detail=T}return L._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"},L.toString=function(n){return this._typeToString(n.type)+": "+n.position+" - "+n.range+" - "+n.detail},L.prototype.toString=function(){return L.toString(this)},L}(),Rt=function(){function L(){}return L.isTextArea=function(n){return n.length===2&&n[0]===3&&n[1]===6},L.isChildOfViewLines=function(n){return n.length>=4&&n[0]===3&&n[3]===7},L.isStrictChildOfViewLines=function(n){return n.length>4&&n[0]===3&&n[3]===7},L.isChildOfScrollableElement=function(n){return n.length>=2&&n[0]===3&&n[1]===5},L.isChildOfMinimap=function(n){return n.length>=2&&n[0]===3&&n[1]===8},L.isChildOfContentWidgets=function(n){return n.length>=4&&n[0]===3&&n[3]===1},L.isChildOfOverflowingContentWidgets=function(n){return n.length>=1&&n[0]===2},L.isChildOfOverlayWidgets=function(n){return n.length>=2&&n[0]===3&&n[1]===4},L}(),Mt=function(){function L(n,e,i){this.model=n.model;var u=n.configuration.options;this.layoutInfo=u.get(107),this.viewDomNode=e.viewDomNode,this.lineHeight=u.get(49),this.typicalHalfwidthCharacterWidth=u.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=n,this._viewHelper=e}return L.prototype.getZoneAtCoord=function(n){return L.getZoneAtCoord(this._context,n)},L.getZoneAtCoord=function(n,e){var i=n.viewLayout.getWhitespaceAtVerticalOffset(e);if(i){var u=i.verticalOffset+i.height/2,c=n.model.getLineCount(),T=null,ge=void 0,le=null;return i.afterLineNumber!==c&&(le=new ve.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(T=new ve.a(i.afterLineNumber,n.model.getLineMaxColumn(i.afterLineNumber))),le===null?ge=T:T===null?ge=le:e<u?ge=T:ge=le,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:T,positionAfter:le,position:ge}}return null},L.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 u=this._context.viewLayout.getLineNumberAtVerticalOffset(n),c=this._context.model.getLineMaxColumn(u);return{range:new Me.a(u,1,u,c),isAfterLines:!1}},L.prototype.getLineNumberAtVerticalOffset=function(n){return this._context.viewLayout.getLineNumberAtVerticalOffset(n)},L.prototype.isAfterLines=function(n){return this._context.viewLayout.isAfterLines(n)},L.prototype.getVerticalOffsetForLineNumber=function(n){return this._context.viewLayout.getVerticalOffsetForLineNumber(n)},L.prototype.findAttribute=function(n,e){return L._findAttribute(n,e,this._viewHelper.viewDomNode)},L._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},L.prototype.getLineWidth=function(n){return this._viewHelper.getLineWidth(n)},L.prototype.visibleRangeForPosition=function(n,e){return this._viewHelper.visibleRangeForPosition(n,e)},L.prototype.getPositionFromDOMInfo=function(n,e){return this._viewHelper.getPositionFromDOMInfo(n,e)},L.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},L.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},L}(),zt=function(){function L(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 L}(),Gt=function(L){pe(n,L);function n(e,i,u,c){var T=L.call(this,e,i,u)||this;return T._ctx=e,c?(T.target=c,T.targetPath=ce.collect(c,e.viewDomNode)):(T.target=null,T.targetPath=new Uint8Array(0)),T}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,u,c){i===void 0&&(i=null),u===void 0&&(u=null),c===void 0&&(c=null);var T=this.mouseColumn;return i&&i.column<this._ctx.model.getLineMaxColumn(i.lineNumber)&&(T=Ie.a.visibleColumnFromColumn(this._ctx.model.getLineContent(i.lineNumber),i.column,this._ctx.model.getOptions().tabSize)+1),new _t(this.target,e,T,i,u,c)},n.prototype.withTarget=function(e){return new n(this._ctx,this.editorPos,this.pos,e)},n}(zt),on={isAfterLines:!0};function Ln(L){return{isAfterLines:!1,horizontalDistanceToText:L}}var yn=function(){function L(n,e){this._context=n,this._viewHelper=e}return L.prototype.mouseTargetIsWidget=function(n){var e=n.target,i=ce.collect(e,this._viewHelper.viewDomNode);return Rt.isChildOfContentWidgets(i)||Rt.isChildOfOverflowingContentWidgets(i)?!0:!!Rt.isChildOfOverlayWidgets(i)},L.prototype.createMouseTarget=function(n,e,i,u){var c=new Mt(this._context,this._viewHelper,n),T=new Gt(c,e,i,u);try{var ge=L._createMouseTarget(c,T,!1);return ge}catch(le){return T.fulfill(0)}},L._createMouseTarget=function(n,e,i){if(e.target===null){if(i)return e.fulfill(0);var u=L._doHitTest(n,e);return u.position?L.createMouseTargetFromHitTestPosition(n,e,u.position.lineNumber,u.position.column):this._createMouseTarget(n,e.withTarget(u.hitTarget),!0)}var c=e,T=null;return T=T||L._hitTestContentWidget(n,c),T=T||L._hitTestOverlayWidget(n,c),T=T||L._hitTestMinimap(n,c),T=T||L._hitTestScrollbarSlider(n,c),T=T||L._hitTestViewZone(n,c),T=T||L._hitTestMargin(n,c),T=T||L._hitTestViewCursor(n,c),T=T||L._hitTestTextArea(n,c),T=T||L._hitTestViewLines(n,c,i),T=T||L._hitTestScrollbar(n,c),T||e.fulfill(0)},L._hitTestContentWidget=function(n,e){if(Rt.isChildOfContentWidgets(e.targetPath)||Rt.isChildOfOverflowingContentWidgets(e.targetPath)){var i=n.findAttribute(e.target,"widgetId");return i?e.fulfill(9,null,null,i):e.fulfill(0)}return null},L._hitTestOverlayWidget=function(n,e){if(Rt.isChildOfOverlayWidgets(e.targetPath)){var i=n.findAttribute(e.target,"widgetId");return i?e.fulfill(12,null,null,i):e.fulfill(0)}return null},L._hitTestViewCursor=function(n,e){if(e.target)for(var i=n.lastRenderData.lastViewCursorsRenderData,u=0,c=i;u<c.length;u++){var T=c[u];if(e.target===T.domNode)return e.fulfill(6,T.position)}if(e.isInContentArea)for(var i=n.lastRenderData.lastViewCursorsRenderData,ge=e.mouseContentHorizontalOffset,le=e.mouseVerticalOffset,ze=0,st=i;ze<st.length;ze++){var T=st[ze];if(ge<T.contentLeft)continue;if(ge>T.contentLeft+T.width)continue;var ht=n.getVerticalOffsetForLineNumber(T.position.lineNumber);if(ht<=le&&le<=ht+T.height)return e.fulfill(6,T.position)}return null},L._hitTestViewZone=function(n,e){var i=n.getZoneAtCoord(e.mouseVerticalOffset);if(i){var u=e.isInContentArea?8:5;return e.fulfill(u,i.position,null,i)}return null},L._hitTestTextArea=function(n,e){return Rt.isTextArea(e.targetPath)?n.lastRenderData.lastTextareaPosition?e.fulfill(6,n.lastRenderData.lastTextareaPosition):e.fulfill(1,n.lastRenderData.lastTextareaPosition):null},L._hitTestMargin=function(n,e){if(e.isInMarginArea){var i=n.getFullLineRangeAtCoord(e.mouseVerticalOffset),u=i.range.getStartPosition(),c=Math.abs(e.pos.x-e.editorPos.x),T={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,u,i.range,T):(c-=n.layoutInfo.glyphMarginWidth,c<=n.layoutInfo.lineNumbersWidth?e.fulfill(3,u,i.range,T):(c-=n.layoutInfo.lineNumbersWidth,e.fulfill(4,u,i.range,T)))}return null},L._hitTestViewLines=function(n,e,i){if(!Rt.isChildOfViewLines(e.targetPath))return null;if(n.isAfterLines(e.mouseVerticalOffset)){var u=n.model.getLineCount(),c=n.model.getLineMaxColumn(u);return e.fulfill(7,new ve.a(u,c),void 0,on)}if(i){if(Rt.isStrictChildOfViewLines(e.targetPath)){var T=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset);if(n.model.getLineLength(T)===0){var ge=n.getLineWidth(T),le=Ln(e.mouseContentHorizontalOffset-ge);return e.fulfill(7,new ve.a(T,1),void 0,le)}var ze=n.getLineWidth(T);if(e.mouseContentHorizontalOffset>=ze){var le=Ln(e.mouseContentHorizontalOffset-ze),st=new ve.a(T,n.model.getLineMaxColumn(T));return e.fulfill(7,st,void 0,le)}}return e.fulfill(0)}var ht=L._doHitTest(n,e);return ht.position?L.createMouseTargetFromHitTestPosition(n,e,ht.position.lineNumber,ht.position.column):this._createMouseTarget(n,e.withTarget(ht.hitTarget),!0)},L._hitTestMinimap=function(n,e){if(Rt.isChildOfMinimap(e.targetPath)){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),u=n.model.getLineMaxColumn(i);return e.fulfill(11,new ve.a(i,u))}return null},L._hitTestScrollbarSlider=function(n,e){if(Rt.isChildOfScrollableElement(e.targetPath)&&(e.target&&e.target.nodeType===1)){var i=e.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var u=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),c=n.model.getLineMaxColumn(u);return e.fulfill(11,new ve.a(u,c))}}return null},L._hitTestScrollbar=function(n,e){if(Rt.isChildOfScrollableElement(e.targetPath)){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),u=n.model.getLineMaxColumn(i);return e.fulfill(11,new ve.a(i,u))}return null},L.prototype.getMouseColumn=function(n,e){var i=this._context.configuration.options,u=i.get(107),c=this._context.viewLayout.getCurrentScrollLeft()+e.x-n.x-u.contentLeft;return L._getMouseColumn(c,i.get(34).typicalHalfwidthCharacterWidth)},L._getMouseColumn=function(n,e){if(n<0)return 1;var i=Math.round(n/e);return i+1},L.createMouseTargetFromHitTestPosition=function(n,e,i,u){var c=new ve.a(i,u),T=n.getLineWidth(i);if(e.mouseContentHorizontalOffset>T){if(A.e&&c.column===1){var ge=Ln(e.mouseContentHorizontalOffset-T);return e.fulfill(7,new ve.a(i,n.model.getLineMaxColumn(i)),void 0,ge)}var le=Ln(e.mouseContentHorizontalOffset-T);return e.fulfill(7,c,void 0,le)}var ze=n.visibleRangeForPosition(i,u);if(!ze)return e.fulfill(0,c);var st=ze.left;if(e.mouseContentHorizontalOffset===st)return e.fulfill(6,c);var ht=[];if(ht.push({offset:ze.left,column:u}),u>1){var y=n.visibleRangeForPosition(i,u-1);y&&ht.push({offset:y.left,column:u-1})}var d=n.model.getLineMaxColumn(i);if(u<d){var l=n.visibleRangeForPosition(i,u+1);l&&ht.push({offset:l.left,column:u+1})}ht.sort(function(Be,rt){return Be.offset-rt.offset});for(var b=1;b<ht.length;b++){var S=ht[b-1],C=ht[b];if(S.offset<=e.mouseContentHorizontalOffset&&e.mouseContentHorizontalOffset<=C.offset){var $=new Me.a(i,S.column,i,C.column);return e.fulfill(6,c,$)}}return e.fulfill(6,c)},L._doHitTestWithCaretRangeFromPoint=function(n,e){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),u=n.getVerticalOffsetForLineNumber(i),c=u+Math.floor(n.lineHeight/2),T=e.pos.y+(c-e.mouseVerticalOffset);T<=e.editorPos.y&&(T=e.editorPos.y+1),T>=e.editorPos.y+n.layoutInfo.height&&(T=e.editorPos.y+n.layoutInfo.height-1);var ge=new p(e.pos.x,T),le=this._actualDoHitTestWithCaretRangeFromPoint(n,ge.toClientCoordinates());return le.position?le:this._actualDoHitTestWithCaretRangeFromPoint(n,e.pos.toClientCoordinates())},L._actualDoHitTestWithCaretRangeFromPoint=function(n,e){var i=ne.D(n.viewDomNode),u;if(i?typeof i.caretRangeFromPoint=="undefined"?u=Mn(i,e.clientX,e.clientY):u=i.caretRangeFromPoint(e.clientX,e.clientY):u=document.caretRangeFromPoint(e.clientX,e.clientY),!u||!u.startContainer)return{position:null,hitTarget:null};var c=u.startContainer,T=null;if(c.nodeType===c.TEXT_NODE){var ge=c.parentNode,le=ge?ge.parentNode:null,ze=le?le.parentNode:null,st=ze&&ze.nodeType===ze.ELEMENT_NODE?ze.className:null;if(st===Ye.CLASS_NAME){var ht=n.getPositionFromDOMInfo(ge,u.startOffset);return{position:ht,hitTarget:null}}else T=c.parentNode}else if(c.nodeType===c.ELEMENT_NODE){var ge=c.parentNode,le=ge?ge.parentNode:null,y=le&&le.nodeType===le.ELEMENT_NODE?le.className:null;if(y===Ye.CLASS_NAME){var ht=n.getPositionFromDOMInfo(c,c.textContent.length);return{position:ht,hitTarget:null}}else T=c}return{position:null,hitTarget:T}},L._doHitTestWithCaretPositionFromPoint=function(n,e){var i=document.caretPositionFromPoint(e.clientX,e.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var u=i.offsetNode.parentNode,c=u?u.parentNode:null,T=c?c.parentNode:null,ge=T&&T.nodeType===T.ELEMENT_NODE?T.className:null;if(ge===Ye.CLASS_NAME){var le=n.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:le,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},L._doHitTestWithMoveToPoint=function(n,e){var i=null,u=null,c=document.body.createTextRange();try{c.moveToPoint(e.clientX,e.clientY)}catch(ht){return{position:null,hitTarget:null}}c.collapse(!0);var T=c?c.parentElement():null,ge=T?T.parentNode:null,le=ge?ge.parentNode:null,ze=le&&le.nodeType===le.ELEMENT_NODE?le.className:"";if(ze===Ye.CLASS_NAME){var st=c.duplicate();st.moveToElementText(T),st.setEndPoint("EndToStart",c),i=n.getPositionFromDOMInfo(T,st.text.length),st.moveToElementText(n.viewDomNode)}else u=T;return c.moveToElementText(n.viewDomNode),{position:i,hitTarget:u}},L._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}},L}();function Mn(L,n,e){var i=document.createRange(),u=L.elementFromPoint(n,e);if(u!==null){for(;u&&u.firstChild&&u.firstChild.nodeType!==u.firstChild.TEXT_NODE;)u=u.lastChild;var c=u.getBoundingClientRect(),T=window.getComputedStyle(u,null).getPropertyValue("font"),ge=u.innerText,le=c.left,ze=0,st=void 0;if(n>c.left+c.width)ze=ge.length;else for(var ht=kt.getInstance(),y=0;y<ge.length+1;y++){if(st=ht.getCharWidth(ge.charAt(y),T)/2,le+=st,n<le){ze=y;break}le+=st}i.setStart(u.firstChild,ze),i.setEnd(u.firstChild,ze)}return i}var kt=function(){function L(){this._cache={},this._canvas=document.createElement("canvas")}return L.getInstance=function(){return L._INSTANCE||(L._INSTANCE=new L),L._INSTANCE},L.prototype.getCharWidth=function(n,e){var i=n+e;if(this._cache[i])return this._cache[i];var u=this._canvas.getContext("2d");u.font=e;var c=u.measureText(n),T=c.width;return this._cache[i]=T,T},L._INSTANCE=null,L}(),pt=o("Yr1X"),gt=o("gCVg"),Dt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Lt(L){return function(n,e){var i=!1;return L&&(i=L.mouseTargetIsWidget(e)),i||e.preventDefault(),e}}var Vt=function(L){Dt(n,L);function n(e,i,u){var c=L.call(this)||this;c._isFocused=!1,c._context=e,c.viewController=i,c.viewHelper=u,c.mouseTargetFactory=new yn(c._context,u),c._mouseDownOperation=c._register(new Jt(c._context,c.viewController,c.viewHelper,function(le,ze){return c._createMouseTarget(le,ze)},function(le){return c._getMouseColumn(le)})),c._asyncFocus=c._register(new H.d(function(){return c.viewHelper.focusTextArea()},0)),c.lastMouseLeaveTime=-1;var T=new z(c.viewHelper.viewDomNode);c._register(T.onContextMenu(c.viewHelper.viewDomNode,function(le){return c._onContextMenu(le,!0)})),c._register(T.onMouseMoveThrottled(c.viewHelper.viewDomNode,function(le){return c._onMouseMove(le)},Lt(c.mouseTargetFactory),n.MOUSE_MOVE_MINIMUM_TIME)),c._register(T.onMouseUp(c.viewHelper.viewDomNode,function(le){return c._onMouseUp(le)})),c._register(T.onMouseLeave(c.viewHelper.viewDomNode,function(le){return c._onMouseLeave(le)})),c._register(T.onMouseDown(c.viewHelper.viewDomNode,function(le){return c._onMouseDown(le)}));var ge=function(ze){if(c.viewController.emitMouseWheel(ze),!c._context.configuration.options.get(57))return;var st=new te.b(ze);if(st.browserEvent.ctrlKey||st.browserEvent.metaKey){var ht=pt.a.getZoomLevel(),y=st.deltaY>0?1:-1;pt.a.setZoomLevel(ht+y),st.preventDefault(),st.stopPropagation()}};return c._register(ne.i(c.viewHelper.viewDomNode,A.f?"mousewheel":"wheel",ge,{capture:!0,passive:!1})),c._context.addEventHandler(c),c}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.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 u=new g(e,i),c=u.toPageCoordinates(),T=w(this.viewHelper.viewDomNode);return c.y<T.y||c.y>T.y+T.height||c.x<T.x||c.x>T.x+T.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),T,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())return;var i=e.timestamp;if(i<this.lastMouseLeaveTime)return;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,u=this._createMouseTarget(e,!0),c=u.type===6||u.type===7,T=u.type===2||u.type===3||u.type===4,ge=u.type===3,le=this._context.configuration.options.get(83),ze=u.type===8||u.type===5,st=u.type===9,ht=e.leftButton||e.middleButton;K.e&&e.leftButton&&e.ctrlKey&&(ht=!1);var y=function(){A.i&&!i._isFocused?i._asyncFocus.schedule():(e.preventDefault(),i.viewHelper.focusTextArea())};if(ht&&(c||ge&&le))y(),this._mouseDownOperation.start(u.type,e);else if(T)e.preventDefault();else if(ze){var d=u.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(y(),this._mouseDownOperation.start(u.type,e),e.preventDefault())}else st&&this.viewHelper.shouldSuppressMouseDownOnWidget(u.detail)&&(y(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:u})},n.MOUSE_MOVE_MINIMUM_TIME=100,n}(Se),Jt=function(L){Dt(n,L);function n(e,i,u,c,T){var ge=L.call(this)||this;return ge._context=e,ge._viewController=i,ge._viewHelper=u,ge._createMouseTarget=c,ge._getMouseColumn=T,ge._mouseMoveMonitor=ge._register(new he(ge._viewHelper.viewDomNode)),ge._onScrollTimeout=ge._register(new H.e),ge._mouseState=new nn,ge._currentSelection=new gt.a(1,1,1,1),ge._isActive=!1,ge._lastMouseEvent=null,ge}return n.prototype.dispose=function(){L.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);if(!i)return;this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:i}):this._dispatchMouse(i,!0)},n.prototype.start=function(e,i){var u=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)return;this._mouseState.trySetCount(i.detail,c.position),i.detail=this._mouseState.count;var T=this._context.configuration.options;if(!T.get(68)&&T.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,Lt(null),function(ge){return u._onMouseDownThenMove(ge)},function(){var ge=u._findMousePosition(u._lastMouseEvent,!0);u._viewController.emitMouseDrop({event:u._lastMouseEvent,target:ge?u._createMouseTarget(u._lastMouseEvent,!0):null}),u._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(c,i.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,Lt(null),function(ge){return u._onMouseDownThenMove(ge)},function(){return u._stop()}))},n.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},n.prototype.onScrollChanged=function(){var e=this;if(!this._isActive)return;this._onScrollTimeout.setIfNotSet(function(){if(!e._lastMouseEvent)return;var i=e._findMousePosition(e._lastMouseEvent,!1);if(!i)return;if(e._mouseState.isDragAndDrop)return;e._dispatchMouse(i,!0)},10)},n.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},n.prototype._getPositionOutsideEditor=function(e){var i=e.editorPos,u=this._context.model,c=this._context.viewLayout,T=this._getMouseColumn(e);if(e.posy<i.y){var ge=Math.max(c.getCurrentScrollTop()-(i.y-e.posy),0),le=Mt.getZoneAtCoord(this._context,ge);if(le){var ze=this._helpPositionJumpOverViewZone(le);if(ze)return new _t(null,13,T,ze)}var st=c.getLineNumberAtVerticalOffset(ge);return new _t(null,13,T,new ve.a(st,1))}if(e.posy>i.y+i.height){var ge=c.getCurrentScrollTop()+(e.posy-i.y),le=Mt.getZoneAtCoord(this._context,ge);if(le){var ze=this._helpPositionJumpOverViewZone(le);if(ze)return new _t(null,13,T,ze)}var ht=c.getLineNumberAtVerticalOffset(ge);return new _t(null,13,T,new ve.a(ht,u.getLineMaxColumn(ht)))}var y=c.getLineNumberAtVerticalOffset(c.getCurrentScrollTop()+(e.posy-i.y));return e.posx<i.x?new _t(null,13,T,new ve.a(y,1)):e.posx>i.x+i.width?new _t(null,13,T,new ve.a(y,u.getLineMaxColumn(y))):null},n.prototype._findMousePosition=function(e,i){var u=this._getPositionOutsideEditor(e);if(u)return u;var c=this._createMouseTarget(e,i),T=c.position;if(!T)return null;if(c.type===8||c.type===5){var ge=this._helpPositionJumpOverViewZone(c.detail);if(ge)return new _t(c.element,c.type,c.mouseColumn,ge,null,c.detail)}return c},n.prototype._helpPositionJumpOverViewZone=function(e){var i=new ve.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),u=e.positionBefore,c=e.positionAfter;return u&&c?u.isBefore(i)?u:c:null},n.prototype._dispatchMouse=function(e,i){if(!e.position)return;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}(U.a),nn=function(){function L(){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(L.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),L.prototype.setModifiers=function(n){this._altKey=n.altKey,this._ctrlKey=n.ctrlKey,this._metaKey=n.metaKey,this._shiftKey=n.shiftKey},L.prototype.setStartButtons=function(n){this._leftButton=n.leftButton,this._middleButton=n.middleButton},L.prototype.setStartedOnLineNumbers=function(n){this._startedOnLineNumbers=n},L.prototype.trySetCount=function(n,e){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>L.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)},L.CLEAR_MOUSE_DOWN_COUNT_TIME=400,L}(),sn=o("CjF5"),ln=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function _n(L,n){var e={translationY:n.translationY,translationX:n.translationX};return L&&(e.translationY+=L.translationY,e.translationX+=L.translationX),e}var On=function(L){ln(n,L);function n(e,i,u){var c=L.call(this,e,i,u)||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 T=new MSGesture,ge=new MSGesture;T.target=c.viewHelper.linesContentDomNode,ge.target=c.viewHelper.linesContentDomNode,c.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(le){var ze=le.pointerType;if(ze===(le.MSPOINTER_TYPE_MOUSE||"mouse")){c._lastPointerType="mouse";return}else ze===(le.MSPOINTER_TYPE_TOUCH||"touch")?(c._lastPointerType="touch",T.addPointer(le.pointerId)):(c._lastPointerType="pen",ge.addPointer(le.pointerId))}),c._register(ne.l(c.viewHelper.linesContentDomNode,"MSGestureChange",function(le){return c._onGestureChange(le)},_n)),c._register(ne.i(c.viewHelper.linesContentDomNode,"MSGestureTap",function(le){return c._onCaptureGestureTap(le)},!0))}},100),c._lastPointerType="mouse",c}return n.prototype._onMouseDown=function(e){this._lastPointerType==="mouse"&&L.prototype._onMouseDown.call(this,e)},n.prototype._onCaptureGestureTap=function(e){var i=this,u=new B(e,this.viewHelper.viewDomNode),c=this._createMouseTarget(u,!1);c.position&&this.viewController.moveTo(c.position),u.browserEvent.fromElement?(u.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),L.prototype.dispose.call(this)},n}(Vt),Pn=function(L){ln(n,L);function n(e,i,u){var c=L.call(this,e,i,u)||this;return c.viewHelper.linesContentDomNode.style.touchAction="none",c._installGestureHandlerTimeout=window.setTimeout(function(){if(c._installGestureHandlerTimeout=-1,window.MSGesture){var T=new MSGesture,ge=new MSGesture;T.target=c.viewHelper.linesContentDomNode,ge.target=c.viewHelper.linesContentDomNode,c.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(le){var ze=le.pointerType;if(ze==="mouse"){c._lastPointerType="mouse";return}else ze==="touch"?(c._lastPointerType="touch",T.addPointer(le.pointerId)):(c._lastPointerType="pen",ge.addPointer(le.pointerId))}),c._register(ne.l(c.viewHelper.linesContentDomNode,"MSGestureChange",function(le){return c._onGestureChange(le)},_n)),c._register(ne.i(c.viewHelper.linesContentDomNode,"MSGestureTap",function(le){return c._onCaptureGestureTap(le)},!0))}},100),c._lastPointerType="mouse",c}return n.prototype._onMouseDown=function(e){this._lastPointerType==="mouse"&&L.prototype._onMouseDown.call(this,e)},n.prototype._onCaptureGestureTap=function(e){var i=this,u=new B(e,this.viewHelper.viewDomNode),c=this._createMouseTarget(u,!1);c.position&&this.viewController.moveTo(c.position),u.browserEvent.fromElement?(u.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),L.prototype.dispose.call(this)},n}(Vt),Gn=function(L){ln(n,L);function n(e,i,u){var c=L.call(this,e,i,u)||this;c._register(D.b.addTarget(c.viewHelper.linesContentDomNode)),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Tap,function(ge){return c.onTap(ge)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Change,function(ge){return c.onChange(ge)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Contextmenu,function(ge){return c._onContextMenu(new B(ge,c.viewHelper.viewDomNode),!1)})),c._lastPointerType="mouse",c._register(ne.i(c.viewHelper.linesContentDomNode,"pointerdown",function(ge){var le=ge.pointerType;if(le==="mouse"){c._lastPointerType="mouse";return}else le==="touch"?c._lastPointerType="touch":c._lastPointerType="pen"}));var T=new oe(c.viewHelper.viewDomNode);return c._register(T.onPointerMoveThrottled(c.viewHelper.viewDomNode,function(ge){return c._onMouseMove(ge)},Lt(c.mouseTargetFactory),Vt.MOUSE_MOVE_MINIMUM_TIME)),c._register(T.onPointerUp(c.viewHelper.viewDomNode,function(ge){return c._onMouseUp(ge)})),c._register(T.onPointerLeave(c.viewHelper.viewDomNode,function(ge){return c._onMouseLeave(ge)})),c._register(T.onPointerDown(c.viewHelper.viewDomNode,function(ge){return c._onMouseDown(ge)})),c}return n.prototype.onTap=function(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new B(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){if(e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&this._lastPointerType==="touch")return;L.prototype._onMouseDown.call(this,e)},n}(Vt),Jn=function(L){ln(n,L);function n(e,i,u){var c=L.call(this,e,i,u)||this;return c._register(D.b.addTarget(c.viewHelper.linesContentDomNode)),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Tap,function(T){return c.onTap(T)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Change,function(T){return c.onChange(T)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Contextmenu,function(T){return c._onContextMenu(new B(T,c.viewHelper.viewDomNode),!1)})),c}return n.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new B(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}(Vt),Qn=function(L){ln(n,L);function n(e,i,u){var c=L.call(this)||this;return window.navigator.msPointerEnabled?c.handler=c._register(new On(e,i,u)):K.c&&sn.a.pointerEvents?c.handler=c._register(new Gn(e,i,u)):window.TouchEvent?c.handler=c._register(new Jn(e,i,u)):window.navigator.pointerEnabled||window.PointerEvent?c.handler=c._register(new Pn(e,i,u)):c.handler=c._register(new Vt(e,i,u)),c}return n.prototype.getTargetAtClientPoint=function(e,i){return this.handler.getTargetAtClientPoint(e,i)},n}(U.a),gi=o("VvMK"),Kn=o("N0LK"),yi=o("5TxY"),mi=o("Comh"),vt=o("Krc3"),Tt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ht=function(L){Tt(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n}(Se),tn=o("kYye"),Ut=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sn=function(L){Ut(n,L);function n(e){var i=L.call(this)||this;return i._context=e,i._readConfig(),i._lastCursorModelPosition=new ve.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 u=e.get(107);this._lineNumbersLeft=u.lineNumbersLeft,this._lineNumbersWidth=u.lineNumbersWidth},n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.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 ve.a(e,1));if(i.column!==1)return"";var u=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(u);if(this._renderLineNumbers===2){var c=Math.abs(this._lastCursorModelPosition.lineNumber-u);return c===0?'<span class="relative-current-line-number">'+u+"</span>":String(c)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===u||u%10===0?String(u):"":String(u)},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":"",u=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,T='<div class="'+n.CLASS_NAME+i+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',ge=this._context.model.getLineCount(),le=[],ze=u;ze<=c;ze++){var st=ze-u;if(!this._renderFinalNewline&&(ze===ge&&this._context.model.getLineLength(ze)===0)){le[st]="";continue}var ht=this._getLineRenderLineNumber(ze);ht?le[st]=T+ht+"</div>":le[st]=""}this._renderResult=le},n.prototype.render=function(e,i){if(!this._renderResult)return"";var u=i-e;return u<0||u>=this._renderResult.length?"":this._renderResult[u]},n.CLASS_NAME="line-numbers",n}(Ht);Object(tt.e)(function(L,n){var e=L.getColor(tn.j);e&&n.addRule(".monaco-editor .line-numbers { color: "+e+"; }");var i=L.getColor(tn.b);i&&n.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var Rn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Bn=function(L){Rn(n,L);function n(e){var i=L.call(this,e)||this,u=i._context.configuration.options,c=u.get(107);return i._canUseLayerHinting=!u.get(22),i._contentLeft=c.contentLeft,i._glyphMarginLeft=c.glyphMarginLeft,i._glyphMarginWidth=c.glyphMarginWidth,i._domNode=Object(x.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(x.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(n.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,u=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=u.contentLeft,this._glyphMarginLeft=u.glyphMarginLeft,this._glyphMarginWidth=u.glyphMarginWidth,!0},n.prototype.onScrollChanged=function(e){return L.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 u=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(u),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(u)},n.CLASS_NAME="glyph-margin",n.OUTER_CLASS_NAME="margin",n}(Z),kn=o("5v8Y"),oi=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ci=function(){function L(n){this.type=1,this._source=n}return L.prototype.hasChanged=function(n){return this._source.hasChanged(n)},L}(),Hi=function(){function L(n){this.type=2,this.contentWidth=n.contentWidth,this.contentHeight=n.contentHeight,this.contentWidthChanged=n.contentWidthChanged,this.contentHeightChanged=n.contentHeightChanged}return L}(),rr=function(){function L(n,e){this.type=3,this.selections=n,this.modelSelections=e}return L}(),Zn=function(){function L(){this.type=4}return L}(),Ii=function(){function L(){this.type=5}return L}(),Si=function(){function L(n){this.type=6,this.isFocused=n}return L}(),ji=function(){function L(){this.type=7}return L}(),Un=function(){function L(){this.type=8}return L}(),Ci=function(){function L(n,e){this.type=9,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Wi=function(){function L(n,e){this.type=10,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Mi=function(){function L(n,e){this.type=11,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Gi=function(){function L(n,e,i,u,c){this.type=12,this.source=n,this.range=e,this.verticalType=i,this.revealHorizontal=u,this.scrollType=c}return L}(),Bi=function(){function L(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 L}(),vi=function(){function L(){this.type=14}return L}(),qi=function(){function L(n){this.type=15,this.ranges=n}return L}(),or=function(){function L(){this.type=16}return L}(),bi=function(){function L(){this.type=17}return L}(),Di=function(L){oi(n,L);function n(){var e=L.call(this)||this;return e._listeners=[],e._collector=null,e._collectorCnt=0,e}return n.prototype.dispose=function(){this._listeners=[],L.prototype.dispose.call(this)},n.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new Xi),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),u=0,c=i.length;u<c;u++)lr(i[u],e)},n.prototype.addEventListener=function(e){var i=this;return this._listeners.push(e),Object(U.h)(function(){for(var u=i._listeners,c=0,T=u.length;c<T;c++)if(u[c]===e){u.splice(c,1);break}})},n}(U.a),Xi=function(){function L(){this._eventsLen=0,this._events=[],this._eventsLen=0}return L.prototype.emit=function(n){this._events[this._eventsLen++]=n},L.prototype.finalize=function(){var n=this._events;return this._events=[],n},L}();function lr(L,n){try{L(n)}catch(e){N.e(e)}}var Ti=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),sr=function(){function L(n,e,i){this.top=n,this.left=e,this.width=i}return L.prototype.setWidth=function(n){return new L(this.top,this.left,n)},L}(),Qe=A.f||A.h,O=function(L){Ti(n,L);function n(e,i,u){var c=L.call(this,e)||this;c._primaryCursorPosition=new ve.a(1,1),c._primaryCursorVisibleRange=null,c._viewController=i,c._viewHelper=u,c._scrollLeft=0,c._scrollTop=0;var T=c._context.configuration.options,ge=T.get(107);c._setAccessibilityOptions(T),c._contentLeft=ge.contentLeft,c._contentWidth=ge.contentWidth,c._contentHeight=ge.height,c._fontInfo=T.get(34),c._lineHeight=T.get(49),c._emptySelectionClipboard=T.get(25),c._copyWithSyntaxHighlighting=T.get(15),c._visibleTextArea=null,c._selections=[new gt.a(1,1,1,1)],c._modelSelections=[new gt.a(1,1,1,1)],c._lastRenderPosition=null,c.textArea=Object(x.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(T)),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&&T.get(68)&&c.textArea.setAttribute("readonly","true"),c.textAreaCover=Object(x.b)(document.createElement("div")),c.textAreaCover.setPosition("absolute");var le={getLineCount:function(){return c._context.model.getLineCount()},getLineMaxColumn:function(ht){return c._context.model.getLineMaxColumn(ht)},getValueInRange:function(ht,y){return c._context.model.getValueInRange(ht,y)}},ze={getDataToCopy:function(ht){var y=c._context.model.getPlainTextToCopy(c._modelSelections,c._emptySelectionClipboard,K.h),d=c._context.model.getEOL(),l=c._emptySelectionClipboard&&c._modelSelections.length===1&&c._modelSelections[0].isEmpty(),b=Array.isArray(y)?y:null,S=Array.isArray(y)?y.join(d):y,C=void 0,$=null;if(ht&&(yi.a.forceCopyWithSyntaxHighlighting||c._copyWithSyntaxHighlighting&&S.length<65536)){var Be=c._context.model.getRichTextToCopy(c._modelSelections,c._emptySelectionClipboard);Be&&(C=Be.html,$=Be.mode)}return{isFromEmptySelection:l,multicursorText:b,text:S,html:C,mode:$}},getScreenReaderContent:function(ht){if(A.j)return mi.b.EMPTY;if(c._accessibilitySupport===1){if(K.e){var y=c._selections[0];if(y.isEmpty()){var d=y.getStartPosition(),l=c._getWordBeforePosition(d);if(l.length===0&&(l=c._getCharacterBeforePosition(d)),l.length>0)return new mi.b(l,l.length,l.length,d,d)}}return mi.b.EMPTY}return mi.a.fromEditorSelection(ht,le,c._selections[0],c._accessibilityPageSize,c._accessibilitySupport===0)},deduceModelPosition:function(ht,y,d){return c._context.model.deduceModelPositionRelativeToViewPosition(ht,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 ht=!1,y=null,d=null;st.metadata&&(ht=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,ht,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,ht=c._selections[0].startColumn;c._context.privateViewEventBus.emit(new Gi("keyboard",new Me.a(st,ht,st,ht),0,!0,1));var y=c._viewHelper.visibleRangeForPositionRelativeToEditor(st,ht);y&&(c._visibleTextArea=new sr(c._context.viewLayout.getVerticalOffsetForLineNumber(st),y.left,Qe?0:1),c._render()),c.textArea.setClassName("inputarea ime-input"),c._viewController.compositionStart("keyboard")})),c._register(c._textAreaInput.onCompositionUpdate(function(st){A.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 Si(!0))})),c._register(c._textAreaInput.onBlur(function(){c._context.privateViewEventBus.emit(new Si(!1))})),c}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype._getWordBeforePosition=function(e){for(var i=this._context.model.getLineContent(e.lineNumber),u=Object(kn.a)(this._context.configuration.options.get(96)),c=e.column,T=0;c>1;){var ge=i.charCodeAt(c-2),le=u.get(ge);if(le!==0||T>50)return i.substring(c-1,e.column-1);T++,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),u=i.charAt(e.column-2);if(!Kn.z(u.charCodeAt(0)))return u}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===Et.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,u=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=u.contentLeft,this._contentWidth=u.contentWidth,this._contentHeight=u.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 ve.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,Qe?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,e,Qe?0:1,Qe?0:1)},n.prototype._renderInsideEditor=function(e,i,u,c,T){this._lastRenderPosition=e;var ge=this.textArea,le=this.textAreaCover;G.a.applyFontInfo(ge,this._fontInfo),ge.setTop(i),ge.setLeft(u),ge.setWidth(c),ge.setHeight(T),le.setTop(0),le.setLeft(0),le.setWidth(0),le.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),Qe){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 u=this._context.configuration.options;u.get(40)?i.setClassName("monaco-editor-background textAreaCover "+Bn.OUTER_CLASS_NAME):u.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Sn.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},n}(Z);function M(L,n){var e=document.createElement("canvas"),i=e.getContext("2d");i.font=Y(n);var u=i.measureText(L);return A.h?u.width+2:u.width}function Y(L){return De("normal",L.fontWeight,L.fontSize,L.lineHeight,L.fontFamily)}function De(L,n,e,i,u){return L+" normal "+n+" "+e+"px / "+i+"px "+u}var Re=o("1YUG"),We=function(){function L(n,e,i,u){this.configuration=n,this.viewModel=e,this.outgoingEvents=i,this.commandDelegate=u}return L.prototype._execMouseCommand=function(n,e){e.source="mouse",this.commandDelegate.executeEditorCommand(n,e)},L.prototype.paste=function(n,e,i,u,c){this.commandDelegate.paste(n,e,i,u,c)},L.prototype.type=function(n,e){this.commandDelegate.type(n,e)},L.prototype.replacePreviousChar=function(n,e,i){this.commandDelegate.replacePreviousChar(n,e,i)},L.prototype.compositionStart=function(n){this.commandDelegate.compositionStart(n)},L.prototype.compositionEnd=function(n){this.commandDelegate.compositionEnd(n)},L.prototype.cut=function(n){this.commandDelegate.cut(n)},L.prototype.setSelection=function(n,e){this.commandDelegate.executeEditorCommand(Re.CoreNavigationCommands.SetSelection,{source:n,selection:e})},L.prototype._validateViewColumn=function(n){var e=this.viewModel.getLineMinColumn(n.lineNumber);return n.column<e?new ve.a(n.lineNumber,e):n},L.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},L.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},L.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)},L.prototype._usualArgs=function(n){return n=this._validateViewColumn(n),{position:this._convertViewToModelPosition(n),viewPosition:n}},L.prototype.moveTo=function(n){this._execMouseCommand(Re.CoreNavigationCommands.MoveTo,this._usualArgs(n))},L.prototype._moveToSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.MoveToSelect,this._usualArgs(n))},L.prototype._columnSelect=function(n,e,i){n=this._validateViewColumn(n),this._execMouseCommand(Re.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(n),viewPosition:n,mouseColumn:e,doColumnSelect:i})},L.prototype._createCursor=function(n,e){n=this._validateViewColumn(n),this._execMouseCommand(Re.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(n),viewPosition:n,wholeLine:e})},L.prototype._lastCursorMoveToSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(n))},L.prototype._wordSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.WordSelect,this._usualArgs(n))},L.prototype._wordSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.WordSelectDrag,this._usualArgs(n))},L.prototype._lastCursorWordSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(n))},L.prototype._lineSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LineSelect,this._usualArgs(n))},L.prototype._lineSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LineSelectDrag,this._usualArgs(n))},L.prototype._lastCursorLineSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(n))},L.prototype._lastCursorLineSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(n))},L.prototype._selectAll=function(){this._execMouseCommand(Re.CoreNavigationCommands.SelectAll,{})},L.prototype._convertViewToModelPosition=function(n){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(n)},L.prototype.emitKeyDown=function(n){this.outgoingEvents.emitKeyDown(n)},L.prototype.emitKeyUp=function(n){this.outgoingEvents.emitKeyUp(n)},L.prototype.emitContextMenu=function(n){this.outgoingEvents.emitContextMenu(n)},L.prototype.emitMouseMove=function(n){this.outgoingEvents.emitMouseMove(n)},L.prototype.emitMouseLeave=function(n){this.outgoingEvents.emitMouseLeave(n)},L.prototype.emitMouseUp=function(n){this.outgoingEvents.emitMouseUp(n)},L.prototype.emitMouseDown=function(n){this.outgoingEvents.emitMouseDown(n)},L.prototype.emitMouseDrag=function(n){this.outgoingEvents.emitMouseDrag(n)},L.prototype.emitMouseDrop=function(n){this.outgoingEvents.emitMouseDrop(n)},L.prototype.emitMouseWheel=function(n){this.outgoingEvents.emitMouseWheel(n)},L}(),ft=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),lt=function(L){ft(n,L);function n(e){var i=L.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}(U.a),yt=function(){function L(n,e,i,u,c,T){this.element=n,this.type=e,this.mouseColumn=i,this.position=u,this.range=c,this.detail=T}return L.prototype.toString=function(){return _t.toString(this)},L}(),xt=o("erNZ"),It=function(){function L(n){this._createLine=n,this._set(1,[])}return L.prototype.flush=function(){this._set(1,[])},L.prototype._set=function(n,e){this._lines=e,this._rendLineNumberStart=n},L.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},L.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},L.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},L.prototype.getCount=function(){return this._lines.length},L.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]},L.prototype.onLinesDeleted=function(n,e){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),u=this.getEndLineNumber();if(e<i){var c=e-n+1;return this._rendLineNumberStart-=c,null}if(n>u)return null;for(var T=0,ge=0,le=i;le<=u;le++){var ze=le-this._rendLineNumberStart;n<=le&&le<=e&&(ge===0?(T=ze,ge=1):ge++)}if(n<i){var st=0;e<i?st=e-n+1:st=i-n,this._rendLineNumberStart-=st}var ht=this._lines.splice(T,ge);return ht},L.prototype.onLinesChanged=function(n,e){if(this.getCount()===0)return!1;for(var i=this.getStartLineNumber(),u=this.getEndLineNumber(),c=!1,T=n;T<=e;T++)T>=i&&T<=u&&(this._lines[T-this._rendLineNumberStart].onContentChanged(),c=!0);return c},L.prototype.onLinesInserted=function(n,e){if(this.getCount()===0)return null;var i=e-n+1,u=this.getStartLineNumber(),c=this.getEndLineNumber();if(n<=u)return this._rendLineNumberStart+=i,null;if(n>c)return null;if(i+n>c){var T=this._lines.splice(n-this._rendLineNumberStart,c-n+1);return T}for(var ge=[],le=0;le<i;le++)ge[le]=this._createLine();var ze=n-this._rendLineNumberStart,st=this._lines.slice(0,ze),ht=this._lines.slice(ze,this._lines.length-i),y=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=st.concat(ge).concat(ht),y},L.prototype.onTokensChanged=function(n){if(this.getCount()===0)return!1;for(var e=this.getStartLineNumber(),i=this.getEndLineNumber(),u=!1,c=0,T=n.length;c<T;c++){var ge=n[c];if(ge.toLineNumber<e||ge.fromLineNumber>i)continue;for(var le=Math.max(e,ge.fromLineNumber),ze=Math.min(i,ge.toLineNumber),st=le;st<=ze;st++){var ht=st-this._rendLineNumberStart;this._lines[ht].onTokensChanged(),u=!0}}return u},L}(),Ft=function(){function L(n){var e=this;this._host=n,this.domNode=this._createDomNode(),this._linesCollection=new It(function(){return e._host.createVisibleLine()})}return L.prototype._createDomNode=function(){var n=Object(x.b)(document.createElement("div"));return n.setClassName("view-layer"),n.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n},L.prototype.onConfigurationChanged=function(n){return!!n.hasChanged(107)},L.prototype.onFlushed=function(n){return this._linesCollection.flush(),!0},L.prototype.onLinesChanged=function(n){return this._linesCollection.onLinesChanged(n.fromLineNumber,n.toLineNumber)},L.prototype.onLinesDeleted=function(n){var e=this._linesCollection.onLinesDeleted(n.fromLineNumber,n.toLineNumber);if(e)for(var i=0,u=e.length;i<u;i++){var c=e[i].getDomNode();c&&this.domNode.domNode.removeChild(c)}return!0},L.prototype.onLinesInserted=function(n){var e=this._linesCollection.onLinesInserted(n.fromLineNumber,n.toLineNumber);if(e)for(var i=0,u=e.length;i<u;i++){var c=e[i].getDomNode();c&&this.domNode.domNode.removeChild(c)}return!0},L.prototype.onScrollChanged=function(n){return n.scrollTopChanged},L.prototype.onTokensChanged=function(n){return this._linesCollection.onTokensChanged(n.ranges)},L.prototype.onZonesChanged=function(n){return!0},L.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},L.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},L.prototype.getVisibleLine=function(n){return this._linesCollection.getLine(n)},L.prototype.renderLines=function(n){var e=this._linesCollection._get(),i=new Yt(this.domNode.domNode,this._host,n),u={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines,linesLength:e.lines.length},c=i.render(u,n.startLineNumber,n.endLineNumber,n.relativeVerticalOffset);this._linesCollection._set(c.rendLineNumberStart,c.lines)},L}(),Yt=function(){function L(n,e,i){this.domNode=n,this.host=e,this.viewportData=i}return L.prototype.render=function(n,e,i,u){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 T=e;T<=i;T++)c.lines[T-e]=this.host.createVisibleLine();return this._finishRendering(c,!0,u),c}if(this._renderUntouchedLines(c,Math.max(e-c.rendLineNumberStart,0),Math.min(i-c.rendLineNumberStart,c.linesLength-1),u,e),c.rendLineNumberStart>e){var ge=e,le=Math.min(i,c.rendLineNumberStart-1);ge<=le&&(this._insertLinesBefore(c,ge,le,u,e),c.linesLength+=le-ge+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 ge=c.rendLineNumberStart+c.linesLength,le=i;ge<=le&&(this._insertLinesAfter(c,ge,le,u,e),c.linesLength+=le-ge+1)}else if(c.rendLineNumberStart+c.linesLength-1>i){var ge=Math.max(0,i-c.rendLineNumberStart+1),le=c.linesLength-1,ze=le-ge+1;ze>0&&(this._removeLinesAfter(c,ze),c.linesLength-=ze)}return this._finishRendering(c,!1,u),c},L.prototype._renderUntouchedLines=function(n,e,i,u,c){for(var T=n.rendLineNumberStart,ge=n.lines,le=e;le<=i;le++){var ze=T+le;ge[le].layoutLine(ze,u[ze-c])}},L.prototype._insertLinesBefore=function(n,e,i,u,c){for(var T=[],ge=0,le=e;le<=i;le++)T[ge++]=this.host.createVisibleLine();n.lines=T.concat(n.lines)},L.prototype._removeLinesBefore=function(n,e){for(var i=0;i<e;i++){var u=n.lines[i].getDomNode();u&&this.domNode.removeChild(u)}n.lines.splice(0,e)},L.prototype._insertLinesAfter=function(n,e,i,u,c){for(var T=[],ge=0,le=e;le<=i;le++)T[ge++]=this.host.createVisibleLine();n.lines=n.lines.concat(T)},L.prototype._removeLinesAfter=function(n,e){for(var i=n.linesLength-e,u=0;u<e;u++){var c=n.lines[i+u].getDomNode();c&&this.domNode.removeChild(c)}n.lines.splice(i,e)},L.prototype._finishRenderingNewLines=function(n,e,i,u){var c=this.domNode.lastChild;e||!c?this.domNode.innerHTML=i:c.insertAdjacentHTML("afterend",i);for(var T=this.domNode.lastChild,ge=n.linesLength-1;ge>=0;ge--){var le=n.lines[ge];u[ge]&&(le.setDomNode(T),T=T.previousSibling)}},L.prototype._finishRenderingInvalidLines=function(n,e,i){var u=document.createElement("div");u.innerHTML=e;for(var c=0;c<n.linesLength;c++){var T=n.lines[c];if(i[c]){var ge=u.firstChild,le=T.getDomNode();le.parentNode.replaceChild(ge,le),T.setDomNode(ge)}}},L.prototype._finishRendering=function(n,e,i){var u=L._sb,c=n.linesLength,T=n.lines,ge=n.rendLineNumberStart,le=[];{u.reset();for(var ze=!1,st=0;st<c;st++){var ht=T[st];le[st]=!1;var y=ht.getDomNode();if(y)continue;var d=ht.renderLine(st+ge,i[st],this.viewportData,u);if(!d)continue;le[st]=!0,ze=!0}ze&&this._finishRenderingNewLines(n,e,u.build(),le)}{u.reset();for(var l=!1,b=[],st=0;st<c;st++){var ht=T[st];if(b[st]=!1,le[st])continue;var d=ht.renderLine(st+ge,i[st],this.viewportData,u);if(!d)continue;b[st]=!0,l=!0}l&&this._finishRenderingInvalidLines(n,u.build(),b)}},L._sb=Object(xt.a)(1e5),L}(),Zt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),un=function(L){Zt(n,L);function n(e){var i=L.call(this,e)||this;return i._visibleLines=new Ft(i),i.domNode=i._visibleLines.domNode,i._dynamicOverlays=[],i._isFocused=!1,i.domNode.setClassName("view-overlays"),i}return n.prototype.shouldRender=function(){if(L.prototype.shouldRender.call(this))return!0;for(var e=0,i=this._dynamicOverlays.length;e<i;e++){var u=this._dynamicOverlays[e];if(u.shouldRender())return!0}return!1},n.prototype.dispose=function(){L.prototype.dispose.call(this);for(var e=0,i=this._dynamicOverlays.length;e<i;e++){var u=this._dynamicOverlays[e];u.dispose()}this._dynamicOverlays=[]},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new fn(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(),u=this._visibleLines.getEndLineNumber(),c=i;c<=u;c++){var T=this._visibleLines.getVisibleLine(c);T.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(ge){return ge.shouldRender()}),u=0,c=i.length;u<c;u++){var T=i[u];T.prepareRender(e),T.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}(Z),fn=function(){function L(n,e){this._configuration=n,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}return L.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},L.prototype.setDomNode=function(n){this._domNode=Object(x.b)(n)},L.prototype.onContentChanged=function(){},L.prototype.onTokensChanged=function(){},L.prototype.onConfigurationChanged=function(n){this._lineHeight=this._configuration.options.get(49)},L.prototype.renderLine=function(n,e,i,u){for(var c="",T=0,ge=this._dynamicOverlays.length;T<ge;T++){var le=this._dynamicOverlays[T];c+=le.render(i.startLineNumber,n)}return this._renderedContent===c?!1:(this._renderedContent=c,u.appendASCIIString('<div style="position:absolute;top:'),u.appendASCIIString(String(e)),u.appendASCIIString("px;width:100%;height:"),u.appendASCIIString(String(this._lineHeight)),u.appendASCIIString('px;">'),u.appendASCIIString(c),u.appendASCIIString("</div>"),!0)},L.prototype.layoutLine=function(n,e){this._domNode&&(this._domNode.setTop(e),this._domNode.setHeight(this._lineHeight))},L}(),An=function(L){Zt(n,L);function n(e){var i=L.call(this,e)||this,u=i._context.configuration.options,c=u.get(107);return i._contentWidth=c.contentWidth,i.domNode.setHeight(0),i}return n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,u=i.get(107);return this._contentWidth=u.contentWidth,L.prototype.onConfigurationChanged.call(this,e)||!0},n.prototype.onScrollChanged=function(e){return L.prototype.onScrollChanged.call(this,e)||e.scrollWidthChanged},n.prototype._viewOverlaysRender=function(e){L.prototype._viewOverlaysRender.call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))},n}(un),gn=function(L){Zt(n,L);function n(e){var i=L.call(this,e)||this,u=i._context.configuration.options,c=u.get(107);return i._contentLeft=c.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),G.a.applyFontInfo(i.domNode,u.get(34)),i}return n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;G.a.applyFontInfo(this.domNode,i.get(34));var u=i.get(107);return this._contentLeft=u.contentLeft,L.prototype.onConfigurationChanged.call(this,e)||!0},n.prototype.onScrollChanged=function(e){return L.prototype.onScrollChanged.call(this,e)||e.scrollHeightChanged},n.prototype._viewOverlaysRender=function(e){L.prototype._viewOverlaysRender.call(this,e);var i=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},n}(un),Tn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),xn=function(){function L(n,e){this.top=n,this.left=e}return L}(),Le=function(L){Tn(n,L);function n(e,i){var u=L.call(this,e)||this;return u._viewDomNode=i,u._widgets={},u.domNode=Object(x.b)(document.createElement("div")),ce.write(u.domNode,1),u.domNode.setClassName("contentWidgets"),u.domNode.setPosition("absolute"),u.domNode.setTop(0),u.overflowingContentWidgetsDomNode=Object(x.b)(document.createElement("div")),ce.write(u.overflowingContentWidgetsDomNode,2),u.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),u}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._widgets={}},n.prototype.onConfigurationChanged=function(e){for(var i=Object.keys(this._widgets),u=0,c=i;u<c.length;u++){var T=c[u];this._widgets[T].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),u=0,c=i;u<c.length;u++){var T=c[u];this._widgets[T].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 W(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,u){var c=this._widgets[e.getId()];c.setPosition(i,u),this.setShouldRender()},n.prototype.removeWidget=function(e){var i=e.getId();if(this._widgets.hasOwnProperty(i)){var u=this._widgets[i];delete this._widgets[i];var c=u.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),u=0,c=i;u<c.length;u++){var T=c[u];this._widgets[T].onBeforeRender(e)}},n.prototype.prepareRender=function(e){for(var i=Object.keys(this._widgets),u=0,c=i;u<c.length;u++){var T=c[u];this._widgets[T].prepareRender(e)}},n.prototype.render=function(e){for(var i=Object.keys(this._widgets),u=0,c=i;u<c.length;u++){var T=c[u];this._widgets[T].render(e)}},n}(Z),W=function(){function L(n,e,i){this._context=n,this._viewDomNode=e,this._actual=i,this.domNode=Object(x.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var u=this._context.configuration.options,c=u.get(107);this._fixedOverflowWidgets=u.get(29),this._contentWidth=c.contentWidth,this._contentLeft=c.contentLeft,this._lineHeight=u.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 L.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()}},L.prototype.onLineMappingChanged=function(n){this._setPosition(this._range)},L.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))}},L.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},L.prototype.setPosition=function(n,e){this._setPosition(n),this._preference=e,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},L.prototype._layoutBoxInViewport=function(n,e,i,u,c){var T=n.top,ge=T,le=e.top+this._lineHeight,ze=c.viewportHeight-le,st=T-u,ht=ge>=u,y=le,d=ze>=u,l=n.left,b=e.left;return l+i>c.scrollLeft+c.viewportWidth&&(l=c.scrollLeft+c.viewportWidth-i),b+i>c.scrollLeft+c.viewportWidth&&(b=c.scrollLeft+c.viewportWidth-i),l<c.scrollLeft&&(l=c.scrollLeft),b<c.scrollLeft&&(b=c.scrollLeft),{fitsAbove:ht,aboveTop:st,aboveLeft:l,fitsBelow:d,belowTop:y,belowLeft:b}},L.prototype._layoutHorizontalSegmentInPage=function(n,e,i,u){var c=Math.max(0,e.left-u),T=Math.min(e.left+e.width+u,n.width),ge=e.left+i-ne.d.scrollX;if(ge+u>T){var le=ge-(T-u);ge-=le,i-=le}if(ge<c){var le=ge-c;ge-=le,i-=le}return[i,ge]},L.prototype._layoutBoxInPage=function(n,e,i,u,c){var T=n.top-u,ge=e.top+this._lineHeight,le=ne.B(this._viewDomNode.domNode),ze=le.top+T-ne.d.scrollY,st=le.top+ge-ne.d.scrollY,ht=ne.x(document.body),y=this._layoutHorizontalSegmentInPage(ht,le,n.left-c.scrollLeft+this._contentLeft,i),d=y[0],l=y[1],b=this._layoutHorizontalSegmentInPage(ht,le,e.left-c.scrollLeft+this._contentLeft,i),S=b[0],C=b[1],$=22,Be=22,rt=ze>=$,xe=st+u<=ht.height-Be;return this._fixedOverflowWidgets?{fitsAbove:rt,aboveTop:Math.max(ze,$),aboveLeft:l,fitsBelow:xe,belowTop:st,belowLeft:C}:{fitsAbove:rt,aboveTop:Math.max(T,$),aboveLeft:d,fitsBelow:xe,belowTop:ge,belowLeft:S}},L.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(n){return new xn(n.top,n.left+this._contentLeft)},L.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],u=e[0],c=0,T=e;c<T.length;c++){var ge=T[c];ge.lineNumber<i.lineNumber&&(i=ge),ge.lineNumber>u.lineNumber&&(u=ge)}for(var le=1073741824,ze=0,st=i.ranges;ze<st.length;ze++){var ht=st[ze];ht.left<le&&(le=ht.left)}for(var y=1073741824,d=0,l=u.ranges;d<l.length;d++){var ht=l[d];ht.left<y&&(y=ht.left)}var b=n.getVerticalOffsetForLineNumber(i.lineNumber)-n.scrollTop,S=new xn(b,le),C=n.getVerticalOffsetForLineNumber(u.lineNumber)-n.scrollTop,$=new xn(C,y);return[S,$]},L.prototype._prepareRenderWidget=function(n){var e=this._getTopAndBottomLeft(n),i=e[0],u=e[1];if(!i||!u)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){var c=this.domNode.domNode;this._cachedDomNodeClientWidth=c.clientWidth,this._cachedDomNodeClientHeight=c.clientHeight}var T;if(this.allowEditorOverflow?T=this._layoutBoxInPage(i,u,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,n):T=this._layoutBoxInViewport(i,u,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,n),this._preference)for(var ge=1;ge<=2;ge++)for(var le=0,ze=this._preference;le<ze.length;le++){var st=ze[le];if(st===1){if(!T)return null;if(ge===2||T.fitsAbove)return new xn(T.aboveTop,T.aboveLeft)}else if(st===2){if(!T)return null;if(ge===2||T.fitsBelow)return new xn(T.belowTop,T.belowLeft)}else return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i}return null},L.prototype.onBeforeRender=function(n){if(!this._viewRange||!this._preference)return;if(this._viewRange.endLineNumber<n.startLineNumber||this._viewRange.startLineNumber>n.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},L.prototype.prepareRender=function(n){this._renderData=this._prepareRenderWidget(n)},L.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)},L}(),ae=o("kw+w"),ke=o("6OMU"),qe=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ct=!0,St=function(L){qe(n,L);function n(e){var i=L.call(this)||this;i._context=e;var u=i._context.configuration.options,c=u.get(107);return i._lineHeight=u.get(49),i._renderLineHighlight=u.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),L.prototype.dispose.call(this)},n.prototype._readFromSelections=function(){var e=!1,i=ct?this._selections.slice(0,1):this._selections,u=i.map(function(T){return T.positionLineNumber});u.sort(function(T,ge){return T-ge}),ke.g(this._cursorLineNumbers,u)||(this._cursorLineNumbers=u,e=!0);var c=i.every(function(T){return T.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,u=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=u.contentLeft,this._contentWidth=u.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),u=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,T=this._cursorLineNumbers.length,ge=0,le=[],ze=u;ze<=c;ze++){for(var st=ze-u;ge<T&&this._cursorLineNumbers[ge]<ze;)ge++;ge<T&&this._cursorLineNumbers[ge]===ze?le[st]=i:le[st]=""}this._renderData=le},n.prototype.render=function(e,i){if(!this._renderData)return"";var u=i-e;return u>=this._renderData.length?"":this._renderData[u]},n}(Ht),Ge=function(L){qe(n,L);function n(){return L!==null&&L.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}(St),ue=function(L){qe(n,L);function n(){return L!==null&&L.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}(St);Object(tt.e)(function(L,n){ct=!1;var e=L.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()||L.defines(tn.i)){var i=L.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+"; }"),L.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 X=o("Vtyv"),Ue=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),at=function(L){Ue(n,L);function n(e){var i=L.call(this)||this;i._context=e;var u=i._context.configuration.options;return i._lineHeight=u.get(49),i._typicalHalfwidthCharacterWidth=u.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.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(),u=[],c=0,T=0,ge=i.length;T<ge;T++){var le=i[T];le.options.className&&(u[c++]=le)}u=u.sort(function(l,b){if(l.options.zIndex<b.options.zIndex)return-1;if(l.options.zIndex>b.options.zIndex)return 1;var S=l.options.className,C=b.options.className;return S<C?-1:S>C?1:Me.a.compareRangesUsingStarts(l.range,b.range)});for(var ze=e.visibleRange.startLineNumber,st=e.visibleRange.endLineNumber,ht=[],y=ze;y<=st;y++){var d=y-ze;ht[d]=""}this._renderWholeLineDecorations(e,u,ht),this._renderNormalDecorations(e,u,ht),this._renderResult=ht},n.prototype._renderWholeLineDecorations=function(e,i,u){for(var c=String(this._lineHeight),T=e.visibleRange.startLineNumber,ge=e.visibleRange.endLineNumber,le=0,ze=i.length;le<ze;le++){var st=i[le];if(!st.options.isWholeLine)continue;for(var ht='<div class="cdr '+st.options.className+'" style="left:0;width:100%;height:'+c+'px;"></div>',y=Math.max(st.range.startLineNumber,T),d=Math.min(st.range.endLineNumber,ge),l=y;l<=d;l++){var b=l-T;u[b]+=ht}}},n.prototype._renderNormalDecorations=function(e,i,u){for(var c=String(this._lineHeight),T=e.visibleRange.startLineNumber,ge=null,le=!1,ze=null,st=0,ht=i.length;st<ht;st++){var y=i[st];if(y.options.isWholeLine)continue;var d=y.options.className,l=Boolean(y.options.showIfCollapsed),b=y.range;if(l&&b.endColumn===1&&b.endLineNumber!==b.startLineNumber&&(b=new Me.a(b.startLineNumber,b.startColumn,b.endLineNumber-1,this._context.model.getLineMaxColumn(b.endLineNumber-1))),ge===d&&le===l&&Me.a.areIntersectingOrTouching(ze,b)){ze=Me.a.plusRange(ze,b);continue}ge!==null&&this._renderNormalDecoration(e,ze,ge,le,c,T,u),ge=d,le=l,ze=b}ge!==null&&this._renderNormalDecoration(e,ze,ge,le,c,T,u)},n.prototype._renderNormalDecoration=function(e,i,u,c,T,ge,le){var ze=e.linesVisibleRangesForRange(i,u==="findMatch");if(!ze)return;for(var st=0,ht=ze.length;st<ht;st++){var y=ze[st];if(y.outsideRenderedLine)continue;var d=y.lineNumber-ge;if(c&&y.ranges.length===1){var l=y.ranges[0];l.width===0&&(y.ranges[0]=new se(l.left,this._typicalHalfwidthCharacterWidth))}for(var b=0,S=y.ranges.length;b<S;b++){var C=y.ranges[b],$='<div class="cdr '+u+'" style="left:'+String(C.left)+"px;width:"+String(C.width)+"px;height:"+T+'px;"></div>';le[d]+=$}}},n.prototype.render=function(e,i){if(!this._renderResult)return"";var u=i-e;return u<0||u>=this._renderResult.length?"":this._renderResult[u]},n}(Ht),et=o("GJhM"),J=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ce=function(L){J(n,L);function n(e,i,u,c){var T=L.call(this,e)||this,ge=T._context.configuration.options,le=ge.get(78),ze=ge.get(56),st=ge.get(27),ht={listenOnDomNode:u.domNode,className:"editor-scrollable "+Object(tt.d)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:le.vertical,horizontal:le.horizontal,verticalHasArrows:le.verticalHasArrows,horizontalHasArrows:le.horizontalHasArrows,verticalScrollbarSize:le.verticalScrollbarSize,verticalSliderSize:le.verticalSliderSize,horizontalScrollbarSize:le.horizontalScrollbarSize,horizontalSliderSize:le.horizontalSliderSize,handleMouseWheel:le.handleMouseWheel,alwaysConsumeMouseWheel:le.alwaysConsumeMouseWheel,arrowSize:le.arrowSize,mouseWheelScrollSensitivity:ze,fastScrollSensitivity:st};T.scrollbar=T._register(new et.c(i.domNode,ht,T._context.viewLayout.getScrollable())),ce.write(T.scrollbar.getDomNode(),5),T.scrollbarDomNode=Object(x.b)(T.scrollbar.getDomNode()),T.scrollbarDomNode.setPosition("absolute"),T._setLayout();var y=function(l,b,S){var C={};if(b){var $=l.scrollTop;$&&(C.scrollTop=T._context.viewLayout.getCurrentScrollTop()+$,l.scrollTop=0)}if(S){var Be=l.scrollLeft;Be&&(C.scrollLeft=T._context.viewLayout.getCurrentScrollLeft()+Be,l.scrollLeft=0)}T._context.viewLayout.setScrollPositionNow(C)};return T._register(ne.i(u.domNode,"scroll",function(d){return y(u.domNode,!0,!0)})),T._register(ne.i(i.domNode,"scroll",function(d){return y(i.domNode,!0,!1)})),T._register(ne.i(c.domNode,"scroll",function(d){return y(c.domNode,!0,!1)})),T._register(ne.i(T.scrollbarDomNode.domNode,"scroll",function(d){return y(T.scrollbarDomNode.domNode,!0,!1)})),T}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype._setLayout=function(){var e=this._context.configuration.options,i=e.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var u=e.get(54),c=u.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,u=i.get(78),c=i.get(56),T=i.get(27),ge={handleMouseWheel:u.handleMouseWheel,mouseWheelScrollSensitivity:c,fastScrollSensitivity:T};this.scrollbar.updateOptions(ge)}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}(Z),Oe=o("hHjc"),it=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Je=function(){function L(n,e,i){this.startLineNumber=+n,this.endLineNumber=+e,this.className=String(i)}return L}(),je=function(L){it(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._render=function(e,i,u){for(var c=[],T=e;T<=i;T++){var ge=T-e;c[ge]=[]}if(u.length===0)return c;u.sort(function(C,$){return C.className===$.className?C.startLineNumber===$.startLineNumber?C.endLineNumber-$.endLineNumber:C.startLineNumber-$.startLineNumber:C.className<$.className?-1:1});for(var le=null,ze=0,st=0,ht=u.length;st<ht;st++){var y=u[st],d=y.className,l=Math.max(y.startLineNumber,e)-e,b=Math.min(y.endLineNumber,i)-e;le===d?(l=Math.max(ze+1,l),ze=Math.max(ze,b)):(le=d,ze=b);for(var S=l;S<=ze;S++)c[S].push(le)}return c},n}(Ht),Ct=function(L){it(n,L);function n(e){var i=L.call(this)||this;i._context=e;var u=i._context.configuration.options,c=u.get(107);return i._lineHeight=u.get(49),i._glyphMargin=u.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,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,u=i.get(107);return this._lineHeight=i.get(49),this._glyphMargin=i.get(40),this._glyphMarginLeft=u.glyphMarginLeft,this._glyphMarginWidth=u.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(),u=[],c=0,T=0,ge=i.length;T<ge;T++){var le=i[T],ze=le.options.glyphMarginClassName;ze&&(u[c++]=new Je(le.range.startLineNumber,le.range.endLineNumber,ze))}return u},n.prototype.prepareRender=function(e){if(!this._glyphMargin){this._renderResult=null;return}for(var i=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,c=this._render(i,u,this._getDecorations(e)),T=this._lineHeight.toString(),ge=this._glyphMarginLeft.toString(),le=this._glyphMarginWidth.toString(),ze='" style="left:'+ge+"px;width:"+le+"px;height:"+T+'px;"></div>',st=[],ht=i;ht<=u;ht++){var y=ht-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 u=i-e;return u<0||u>=this._renderResult.length?"":this._renderResult[u]},n}(je),Ot=o("C6rC"),Qt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),At=function(L){Qt(n,L);function n(e){var i=L.call(this)||this;i._context=e,i._primaryLineNumber=0;var u=i._context.configuration.options,c=u.get(108),T=u.get(34);return i._lineHeight=u.get(49),i._spaceWidth=T.spaceWidth,i._enabled=u.get(70),i._activeIndentEnabled=u.get(43),i._maxIndentLeft=c.wrappingColumn===-1?-1:c.wrappingColumn*T.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,u=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=u.wrappingColumn===-1?-1:u.wrappingColumn*c.typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(e){var i=e.selections[0],u=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==u?(this._primaryLineNumber=u,!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,u=e.visibleRange.endLineNumber,c=this._context.model.getOptions().indentSize,T=c*this._spaceWidth,ge=e.scrollWidth,le=this._lineHeight,ze=this._context.model.getLinesIndentGuides(i,u),st=0,ht=0,y=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var d=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,u);st=d.startLineNumber,ht=d.endLineNumber,y=d.indent}for(var l=[],b=i;b<=u;b++){var S=st<=b&&b<=ht,C=b-i,$=ze[C],Be="";if($>=1)for(var rt=e.visibleRangeForPosition(new ve.a(b,1)),xe=rt?rt.left:0,ut=1;ut<=$;ut++){var Nt=S&&ut===y?"cigra":"cigr";if(Be+='<div class="'+Nt+'" style="left:'+xe+"px;height:"+le+"px;width:"+T+'px"></div>',xe+=T,xe>ge||this._maxIndentLeft>0&&xe>this._maxIndentLeft)break}l[C]=Be}this._renderResult=l},n.prototype.render=function(e,i){if(!this._renderResult)return"";var u=i-e;return u<0||u>=this._renderResult.length?"":this._renderResult[u]},n}(Ht);Object(tt.e)(function(L,n){var e=L.getColor(tn.g);e&&n.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+e+" inset; }");var i=L.getColor(tn.a)||e;i&&n.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var jt=o("OKK6"),hn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),bn=function(){function L(){this._currentVisibleRange=new Me.a(1,1,1,1)}return L.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},L.prototype.setCurrentVisibleRange=function(n){this._currentVisibleRange=n},L}(),mn=function(){function L(n,e,i,u,c,T){this.lineNumber=n,this.startColumn=e,this.endColumn=i,this.startScrollTop=u,this.stopScrollTop=c,this.scrollType=T}return L}(),Vn=function(L){hn(n,L);function n(e,i){var u=L.call(this,e)||this;u._linesContent=i,u._textRangeRestingSpot=document.createElement("div"),u._visibleLines=new Ft(u),u.domNode=u._visibleLines.domNode;var c=u._context.configuration,T=u._context.configuration.options,ge=T.get(34),le=T.get(108);return u._lineHeight=T.get(49),u._typicalHalfwidthCharacterWidth=ge.typicalHalfwidthCharacterWidth,u._isViewportWrapping=le.isViewportWrapping,u._revealHorizontalRightPadding=T.get(75),u._cursorSurroundingLines=T.get(19),u._cursorSurroundingLinesStyle=T.get(20),u._canUseLayerHinting=!T.get(22),u._viewLineOptions=new Ze(c,u._context.theme.type),ce.write(u.domNode,7),u.domNode.setClassName("view-lines"),G.a.applyFontInfo(u.domNode,ge),u._maxLineWidth=0,u._asyncUpdateLineWidths=new H.d(function(){u._updateLineWidthsSlow()},200),u._lastRenderedData=new bn,u._horizontalRevealRequest=null,u}return n.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),L.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new Ye(this._viewLineOptions)},n.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,u=i.get(34),c=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=u.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,u),this._onOptionsMaybeChanged(),e.hasChanged(107)&&(this._maxLineWidth=0),!0},n.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,i=new Ze(e,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var u=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber(),T=u;T<=c;T++){var ge=this._visibleLines.getVisibleLine(T);ge.onOptionsChanged(this._viewLineOptions)}return!0}return!1},n.prototype.onCursorStateChanged=function(e){for(var i=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber(),c=!1,T=i;T<=u;T++)c=this._visibleLines.getVisibleLine(T).onSelectionChanged()||c;return c},n.prototype.onDecorationsChanged=function(e){for(var i=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber(),c=i;c<=u;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),u=this._context.viewLayout.validateScrollPosition({scrollTop:i});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?u={scrollTop:u.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new mn(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),u.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var c=Math.abs(this._context.viewLayout.getCurrentScrollTop()-u.scrollTop);return e.scrollType===0&&c>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(u):this._context.viewLayout.setScrollPositionNow(u),!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),u=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<i||e.scrollTop>u)&&(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 u=this._getViewLineDomNode(e);if(u===null)return null;var c=this._getLineNumberFor(u);if(c===-1)return null;if(c<1||c>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(c)===1)return new ve.a(c,1);var T=this._visibleLines.getStartLineNumber(),ge=this._visibleLines.getEndLineNumber();if(c<T||c>ge)return null;var le=this._visibleLines.getVisibleLine(c).getColumnOfNodeOffset(c,e,i),ze=this._context.model.getLineMinColumn(c);return le<ze&&(le=ze),new ve.a(c,le)},n.prototype._getViewLineDomNode=function(e){for(;e&&e.nodeType===1;){if(e.className===Ye.CLASS_NAME)return e;e=e.parentElement}return null},n.prototype._getLineNumberFor=function(e){for(var i=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber(),c=i;c<=u;c++){var T=this._visibleLines.getVisibleLine(c);if(e===T.getDomNode())return c}return-1},n.prototype.getLineWidth=function(e){var i=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber();return e<i||e>u?-1:this._visibleLines.getVisibleLine(e).getWidth()},n.prototype.linesVisibleRangesForRange=function(e,i){if(this.shouldRender())return null;var u=e.endLineNumber,c=Me.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!c)return null;var T=[],ge=0,le=new Xe(this.domNode.domNode,this._textRangeRestingSpot),ze=0;i&&(ze=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(c.startLineNumber,1)).lineNumber);for(var st=this._visibleLines.getStartLineNumber(),ht=this._visibleLines.getEndLineNumber(),y=c.startLineNumber;y<=c.endLineNumber;y++){if(y<st||y>ht)continue;var d=y===c.startLineNumber?c.startColumn:1,l=y===c.endLineNumber?c.endColumn:this._context.model.getLineMaxColumn(y),b=this._visibleLines.getVisibleLine(y).getVisibleRangesForRange(d,l,le);if(!b)continue;if(i&&y<u){var S=ze;ze=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(y+1,1)).lineNumber,S!==ze&&(b.ranges[b.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}T[ge++]=new de(b.outsideRenderedLine,y,b.ranges)}return ge===0?null:T},n.prototype._visibleRangesForLineRange=function(e,i,u){return this.shouldRender()||(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(i,u,new Xe(this.domNode.domNode,this._textRangeRestingSpot))},n.prototype.visibleRangeForPosition=function(e){var i=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return i?new fe(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(),u=this._visibleLines.getEndLineNumber(),c=1,T=!0,ge=i;ge<=u;ge++){var le=this._visibleLines.getVisibleLine(ge);if(e&&!le.getWidthIsFast()){T=!1;continue}c=Math.max(c,le.getWidth())}return T&&i===1&&u===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(c),T},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,u=this._horizontalRevealRequest.startColumn,c=this._horizontalRevealRequest.endColumn,T=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=i&&i<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var ge=this._computeScrollLeftToRevealRange(i,u,c),le=this._isViewportWrapping;le||this._ensureMaxLineWidth(ge.maxHorizontalOffset),T===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:ge.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:ge.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,u,c){var T=e.top,ge=e.height,le=T+ge,ze,st;ze=this._context.viewLayout.getVerticalOffsetForLineNumber(u.startLineNumber),st=this._context.viewLayout.getVerticalOffsetForLineNumber(u.endLineNumber)+this._lineHeight;var ht=i==="mouse"&&this._cursorSurroundingLinesStyle==="default";if(!ht){var y=Math.min(ge/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>ge)d=ze;else if(c===1||c===2)if(c===2&&T<=ze&&st<=le)d=T;else{var l=(ze+st)/2;d=Math.max(0,l-ge/2)}else d=this._computeMinimumScrolling(T,le,ze,st,c===3,c===4);return d},n.prototype._computeScrollLeftToRevealRange=function(e,i,u){var c=0,T=this._context.viewLayout.getCurrentViewport(),ge=T.left,le=ge+T.width,ze=this._visibleRangesForLineRange(e,i,u),st=1073741824,ht=0;if(!ze)return{scrollLeft:ge,maxHorizontalOffset:c};for(var y=0,d=ze.ranges;y<d.length;y++){var l=d[y];l.left<st&&(st=l.left),l.left+l.width>ht&&(ht=l.left+l.width)}c=ht,st=Math.max(0,st-n.HORIZONTAL_EXTRA_PX),ht+=this._revealHorizontalRightPadding;var b=this._computeMinimumScrolling(ge,le,st,ht);return{scrollLeft:b,maxHorizontalOffset:c}},n.prototype._computeMinimumScrolling=function(e,i,u,c,T,ge){e=e|0,i=i|0,u=u|0,c=c|0,T=!!T,ge=!!ge;var le=i-e,ze=c-u;if(ze<le){if(T)return u;if(ge)return Math.max(0,c-le);if(u<e)return u;if(c>i)return Math.max(0,c-le)}else return u;return e},n.HORIZONTAL_EXTRA_PX=30,n}(Z),Xn=o("J+ZK"),Yn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ui=function(L){Yn(n,L);function n(e){var i=L.call(this)||this;i._context=e;var u=i._context.configuration.options,c=u.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,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,u=i.get(107);return this._decorationsLeft=u.decorationsLeft,this._decorationsWidth=u.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(),u=[],c=0,T=0,ge=i.length;T<ge;T++){var le=i[T],ze=le.options.linesDecorationsClassName;ze&&(u[c++]=new Je(le.range.startLineNumber,le.range.endLineNumber,ze))}return u},n.prototype.prepareRender=function(e){for(var i=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,c=this._render(i,u,this._getDecorations(e)),T=this._decorationsLeft.toString(),ge=this._decorationsWidth.toString(),le='" style="left:'+T+"px;width:"+ge+'px;"></div>',ze=[],st=i;st<=u;st++){for(var ht=st-i,y=c[ht],d="",l=0,b=y.length;l<b;l++)d+='<div class="cldr '+y[l]+le;ze[ht]=d}this._renderResult=ze},n.prototype.render=function(e,i){return this._renderResult?this._renderResult[i-e]:""},n}(je),ii=o("XXBq"),Pi=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ur=function(L){Pi(n,L);function n(e){var i=L.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,L.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(),u=[],c=0,T=0,ge=i.length;T<ge;T++){var le=i[T],ze=le.options.marginClassName;ze&&(u[c++]=new Je(le.range.startLineNumber,le.range.endLineNumber,ze))}return u},n.prototype.prepareRender=function(e){for(var i=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,c=this._render(i,u,this._getDecorations(e)),T=[],ge=i;ge<=u;ge++){for(var le=ge-i,ze=c[le],st="",ht=0,y=ze.length;ht<y;ht++)st+='<div class="cmdr '+ze[ht]+'" style=""></div>';T[le]=st}this._renderResult=T},n.prototype.render=function(e,i){return this._renderResult?this._renderResult[i-e]:""},n}(je),er=o("8gvo"),tr=function(){function L(n,e,i,u){this.r=L._clamp(n),this.g=L._clamp(e),this.b=L._clamp(i),this.a=L._clamp(u)}return L._clamp=function(n){return n<0?0:n>255?255:n|0},L.Empty=new L(0,0,0,0),L}(),Hn=o("twdY"),Vr=function(){function L(){var n=this;this._onDidChange=new k.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Hn.y.onDidChange(function(e){e.changedColorMap&&n._updateColorMap()})}return L.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new L),this._INSTANCE},L.prototype._updateColorMap=function(){var n=Hn.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 u=n[2].getRelativeLuminance();this._backgroundIsLight=u>=.5,this._onDidChange.fire(void 0)},L.prototype.getColor=function(n){return(n<1||n>=this._colors.length)&&(n=2),this._colors[n]},L.prototype.backgroundIsLight=function(){return this._backgroundIsLight},L._INSTANCE=null,L}(),Oi=o("MD5Z"),wo=function(){for(var L=[],n=32;n<=126;n++)L.push(n);return L.push(65533),L}(),Ir=function(n,e){return n-=32,n<0||n>96?e<=2?(n+96)%96:96-1:n},Hr=function(){function L(n,e){this.scale=e,this.charDataNormal=L.soften(n,12/15),this.charDataLight=L.soften(n,50/60)}return L.soften=function(n,e){for(var i=new Uint8ClampedArray(n.length),u=0,c=n.length;u<c;u++)i[u]=n[u]*e;return i},L.prototype.renderChar=function(n,e,i,u,c,T,ge,le){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 ht=le?this.charDataLight:this.charDataNormal,y=Ir(u,ge),d=n.width*4,l=T.r,b=T.g,S=T.b,C=c.r-l,$=c.g-b,Be=c.b-S,rt=n.data,xe=y*ze*st,ut=i*d+e*4,Nt=0;Nt<st;Nt++){for(var qt=ut,en=0;en<ze;en++){var dn=ht[xe++]/255;rt[qt++]=l+C*dn,rt[qt++]=b+$*dn,rt[qt++]=S+Be*dn,qt++}ut+=d}},L.prototype.blockRenderChar=function(n,e,i,u,c,T){var ge=1*this.scale,le=2*this.scale;if(e+ge>n.width||i+le>n.height){console.warn("bad render request outside image data");return}for(var ze=n.width*4,st=.5,ht=c.r,y=c.g,d=c.b,l=u.r-ht,b=u.g-y,S=u.b-d,C=ht+l*st,$=y+b*st,Be=d+S*st,rt=n.data,xe=i*ze+e*4,ut=0;ut<le;ut++){for(var Nt=xe,qt=0;qt<ge;qt++)rt[Nt++]=C,rt[Nt++]=$,rt[Nt++]=Be,Nt++;xe+=ze}},L}(),Pr=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},po=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(Pr.a)(function(){return po("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object(Pr.a)(function(){return po("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},_r=function(){function L(){}return L.create=function(n,e){if(this.lastCreated&&n===this.lastCreated.scale&&e===this.lastFontFamily)return this.lastCreated;var i;return dr[n]?i=new Hr(dr[n](),n):i=L.createFromSampleData(L.createSampleData(e).data,n),this.lastFontFamily=e,this.lastCreated=i,i},L.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 u=0,c=0,T=wo;c<T.length;c++){var ge=T[c];i.fillText(String.fromCharCode(ge),u,16/2),u+=10}return i.getImageData(0,0,96*10,16)},L.createFromSampleData=function(n,e){var i=16*10*4*96;if(n.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var u=L._downsample(n,e);return new Hr(u,e)},L._downsampleChar=function(n,e,i,u,c){for(var T=1*c,ge=2*c,le=u,ze=0,st=0;st<ge;st++)for(var ht=st/ge*16,y=(st+1)/ge*16,d=0;d<T;d++){for(var l=d/T*10,b=(d+1)/T*10,S=0,C=0,$=ht;$<y;$++)for(var Be=e+Math.floor($)*3840,rt=1-($-Math.floor($)),xe=l;xe<b;xe++){var ut=1-(xe-Math.floor(xe)),Nt=Be+Math.floor(xe)*4,qt=ut*rt;C+=qt,S+=n[Nt]*n[Nt+3]/255*qt}var en=S/C;ze=Math.max(ze,en),i[le++]=en}return ze},L._downsample=function(n,e){for(var i=2*e*1*e,u=i*96,c=new Uint8ClampedArray(u),T=0,ge=0,le=0,ze=0;ze<96;ze++)le=Math.max(le,this._downsampleChar(n,ge,c,T,e)),T+=i,ge+=10*4;if(le>0)for(var st=255/le,ht=0;ht<u;ht++)c[ht]*=st;return c},L}(),go=o("M1Kb"),Bo=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Lo(L,n){return L===1?2*n:(2+1)*n}function Ai(L,n){return L===1,1*n}var zr=140,is=2,kr=function(){function L(n){var e=this,i=n.options,u=i.get(105),c=i.get(107),T=i.get(34);this.renderMinimap=c.renderMinimap|0,this.scrollBeyondLastLine=i.get(80);var ge=i.get(54);this.showSlider=ge.showSlider,this.fontScale=Math.round(ge.scale*u),this.charRenderer=Object(Pr.a)(function(){return _r.create(e.fontScale,T.fontFamily)}),this.pixelRatio=u,this.typicalHalfwidthCharacterWidth=T.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(49),this.minimapLeft=c.minimapLeft,this.minimapWidth=c.minimapWidth,this.minimapHeight=c.height,this.canvasInnerWidth=Math.floor(u*this.minimapWidth),this.canvasInnerHeight=Math.floor(u*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/u,this.canvasOuterHeight=this.canvasInnerHeight/u}return L.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},L}(),rs=function(){function L(n,e,i,u,c,T,ge){this.scrollTop=n,this.scrollHeight=e,this._computedSliderRatio=i,this.sliderTop=u,this.sliderHeight=c,this.startLineNumber=T,this.endLineNumber=ge}return L.prototype.getDesiredScrollTopFromDelta=function(n){var e=this.sliderTop+n;return Math.round(e/this._computedSliderRatio)},L.prototype.getDesiredScrollTopFromTouchLocation=function(n){return Math.round((n-this.sliderHeight/2)/this._computedSliderRatio)},L.create=function(n,e,i,u,c,T,ge,le,ze){var st=n.pixelRatio,ht=Lo(n.renderMinimap,n.fontScale),y=Math.floor(n.canvasInnerHeight/ht),d=n.lineHeight,l;if(c&&i!==T){var b=i-e+1;l=Math.floor(b*ht/st)}else{var S=u/d;l=Math.floor(S*ht/st)}var C;n.scrollBeyondLastLine?C=(T-1)*ht/st:C=Math.max(0,T*ht/st-l),C=Math.min(n.minimapHeight-l,C);var $=C/(le-u),Be=ge*$,rt=0;if(n.scrollBeyondLastLine){var S=u/d;rt=S}if(y>=T+rt){var xe=1,ut=T;return new L(ge,le,$,Be,l,xe,ut)}else{var xe=Math.max(1,Math.floor(e-Be*st/ht));ze&&ze.scrollHeight===le&&(ze.scrollTop>ge&&(xe=Math.min(xe,ze.startLineNumber)),ze.scrollTop<ge&&(xe=Math.max(xe,ze.startLineNumber)));var ut=Math.min(T,xe+y-1);return new L(ge,le,$,Be,l,xe,ut)}},L}(),ar=function(){function L(n){this.dy=n}return L.prototype.onContentChanged=function(){this.dy=-1},L.prototype.onTokensChanged=function(){this.dy=-1},L.INVALID=new L(-1),L}(),os=function(){function L(n,e,i){this.renderedLayout=n,this._imageData=e,this._renderedLines=new It(function(){return ar.INVALID}),this._renderedLines._set(n.startLineNumber,i)}return L.prototype.linesEquals=function(n){if(!this.scrollEquals(n))return!1;for(var e=this._renderedLines._get(),i=e.lines,u=0,c=i.length;u<c;u++)if(i[u].dy===-1)return!1;return!0},L.prototype.scrollEquals=function(n){return this.renderedLayout.startLineNumber===n.startLineNumber&&this.renderedLayout.endLineNumber===n.endLineNumber},L.prototype._get=function(){var n=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:n.rendLineNumberStart,lines:n.lines}},L.prototype.onLinesChanged=function(n){return this._renderedLines.onLinesChanged(n.fromLineNumber,n.toLineNumber)},L.prototype.onLinesDeleted=function(n){this._renderedLines.onLinesDeleted(n.fromLineNumber,n.toLineNumber)},L.prototype.onLinesInserted=function(n){this._renderedLines.onLinesInserted(n.fromLineNumber,n.toLineNumber)},L.prototype.onTokensChanged=function(n){return this._renderedLines.onTokensChanged(n.ranges)},L}(),Do=function(){function L(n,e,i,u){this._backgroundFillData=L._createBackgroundFillData(e,i,u),this._buffers=[n.createImageData(e,i),n.createImageData(e,i)],this._lastUsedBuffer=0}return L.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var n=this._buffers[this._lastUsedBuffer];return n.data.set(this._backgroundFillData),n},L._createBackgroundFillData=function(n,e,i){for(var u=i.r,c=i.g,T=i.b,ge=new Uint8ClampedArray(n*e*4),le=0,ze=0;ze<e;ze++)for(var st=0;st<n;st++)ge[le]=u,ge[le+1]=c,ge[le+2]=T,ge[le+3]=255,le+=4;return ge},L}(),pn=function(L){Bo(n,L);function n(e){var i=L.call(this,e)||this;return i._selections=[],i._renderDecorations=!1,i._gestureInProgress=!1,i._options=new kr(i._context.configuration),i._lastRenderData=null,i._buffers=null,i._selectionColor=i._context.theme.getColor(Oi.Hb),i._domNode=Object(x.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(x.b)(document.createElement("div")),i._shadow.setClassName("minimap-shadow-hidden"),i._domNode.appendChild(i._shadow),i._canvas=Object(x.b)(document.createElement("canvas")),i._canvas.setPosition("absolute"),i._canvas.setLeft(0),i._domNode.appendChild(i._canvas),i._decorationsCanvas=Object(x.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(x.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(x.b)(document.createElement("div")),i._sliderHorizontal.setPosition("absolute"),i._sliderHorizontal.setClassName("minimap-slider-horizontal"),i._slider.appendChild(i._sliderHorizontal),i._tokensColorTracker=Vr.getInstance(),i._applyLayout(),i._mouseDownListener=ne.n(i._domNode.domNode,"mousedown",function(u){u.preventDefault();var c=i._options.renderMinimap;if(c===0)return;if(!i._lastRenderData)return;var T=Lo(c,i._options.fontScale),ge=i._options.pixelRatio*u.browserEvent.offsetY,le=Math.floor(ge/T),ze=le+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 E.a,i._sliderMouseDownListener=ne.n(i._slider.domNode,"mousedown",function(u){if(u.preventDefault(),u.stopPropagation(),u.leftButton&&i._lastRenderData){var c=u.posy,T=u.posx,ge=i._lastRenderData.renderedLayout;i._slider.toggleClassName("active",!0),i._sliderMouseMoveMonitor.startMonitoring(u.target,u.buttons,E.b,function(le){var ze=Math.abs(le.posx-T);if(K.h&&ze>zr){i._context.viewLayout.setScrollPositionNow({scrollTop:ge.scrollTop});return}var st=le.posy-c;i._context.viewLayout.setScrollPositionNow({scrollTop:ge.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(u){u.preventDefault(),u.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(u))}),i._sliderTouchMoveListener=ne.n(i._domNode.domNode,D.a.Change,function(u){u.preventDefault(),u.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(u)}),i._sliderTouchEndListener=ne.n(i._domNode.domNode,D.a.End,function(u){u.preventDefault(),u.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return n.prototype.scrollDueToTouchEvent=function(e){var i=this._domNode.domNode.getBoundingClientRect().top,u=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:u})},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(),L.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 kr(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(Oi.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 u=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(u.sliderTop),this._slider.setHeight(u.sliderHeight);var c=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,T=Math.min(this._options.minimapWidth,Math.round(c*Ai(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(T),this._sliderHorizontal.setWidth(this._options.minimapWidth-T),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(u.sliderHeight),this.renderDecorations(u),this._lastRenderData=this.renderLines(u)},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))),u=this._options,c=u.renderMinimap,T=u.canvasInnerWidth,ge=u.canvasInnerHeight,le=Lo(c,this._options.fontScale),ze=Ai(c,this._options.fontScale),st=this._context.model.getOptions().tabSize,ht=this._decorationsCanvas.domNode.getContext("2d");ht.clearRect(0,0,T,ge);for(var y=new Map,d=0;d<this._selections.length;d++)for(var l=this._selections[d],b=l.startLineNumber;b<=l.endLineNumber;b++)this.renderDecorationOnLine(ht,y,l,this._selectionColor,e,b,le,le,st,ze);for(var d=0;d<i.length;d++){var S=i[d];if(!S.options.minimap)continue;for(var C=S.options.minimap.getColor(this._context.theme),b=S.range.startLineNumber;b<=S.range.endLineNumber;b++)switch(S.options.minimap.position){case go.c.Inline:this.renderDecorationOnLine(ht,y,S.range,C,e,b,le,le,st,ze);continue;case go.c.Gutter:var $=(b-e.startLineNumber)*le,Be=2;this.renderDecoration(ht,C,Be,$,is,le);continue}}}},n.prototype.renderDecorationOnLine=function(e,i,u,c,T,ge,le,ze,st,ht){var y=(ge-T.startLineNumber)*ze;if(y+le<0||y>this._options.canvasInnerHeight)return;var d=i.get(ge),l=!d;if(!d){var b=this._context.model.getLineContent(ge);d=[Et.f];for(var S=1;S<b.length+1;S++){var C=b.charCodeAt(S-1),$=C===9?st*ht:Kn.y(C)?2*ht:ht;d[S]=d[S-1]+$}i.set(ge,d)}var Be=u.startColumn,rt=u.endColumn,xe=u.startLineNumber,ut=u.endLineNumber,Nt=xe===ge?d[Be-1]:Et.f,qt=ut>ge?d.length-1:rt-1;if(qt>0){var en=d[qt]-Nt||2;this.renderDecoration(e,c,Nt,y,en,le)}l&&this.renderLineHighlight(e,c,y,le)},n.prototype.renderLineHighlight=function(e,i,u,c){e.fillStyle=i&&i.transparent(.5).toString()||"",e.fillRect(Et.f,u,e.canvas.width,c)},n.prototype.renderDecoration=function(e,i,u,c,T,ge){e.fillStyle=i&&i.toString()||"",e.fillRect(u,c,T,ge)},n.prototype.renderLines=function(e){var i=this._options.renderMinimap,u=this._options.charRenderer(),c=e.startLineNumber,T=e.endLineNumber,ge=Lo(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var le=this._lastRenderData._get();return new os(e,le.imageData,le.lines)}var ze=this._getBuffer();if(!ze)return null;for(var st=n._renderUntouchedLines(ze,c,T,ge,this._lastRenderData),ht=st[0],y=st[1],d=st[2],l=this._context.model.getMinimapLinesRenderingData(c,T,d),b=l.tabSize,S=this._tokensColorTracker.getColor(2),C=this._tokensColorTracker.backgroundIsLight(),$=0,Be=[],rt=0,xe=T-c+1;rt<xe;rt++)d[rt]&&n._renderLine(ze,S,C,i,this._tokensColorTracker,u,$,b,l.data[rt],this._options.fontScale),Be[rt]=new ar($),$+=ge;var ut=ht===-1?0:ht,Nt=y===-1?ze.height:y,qt=Nt-ut,en=this._canvas.domNode.getContext("2d");return en.putImageData(ze,0,0,0,ut,ze.width,qt),new os(e,ze,Be)},n._renderUntouchedLines=function(e,i,u,c,T){var ge=[];if(!T){for(var le=0,ze=u-i+1;le<ze;le++)ge[le]=!0;return[-1,-1,ge]}for(var st=T._get(),ht=st.imageData.data,y=st.rendLineNumberStart,d=st.lines,l=d.length,b=e.width,S=e.data,C=(u-i+1)*c*b*4,$=-1,Be=-1,rt=-1,xe=-1,ut=-1,Nt=-1,qt=0,en=i;en<=u;en++){var dn=en-i,an=en-y,Cn=an>=0&&an<l?d[an].dy:-1;if(Cn===-1){ge[dn]=!0,qt+=c;continue}var In=Cn*b*4,Nn=(Cn+c)*b*4,ti=qt*b*4,Dn=(qt+c)*b*4;xe===In&&Nt===ti?(xe=Nn,Nt=Dn):(rt!==-1&&(S.set(ht.subarray(rt,xe),ut),$===-1&&rt===0&&rt===ut&&($=xe),Be===-1&&xe===C&&rt===ut&&(Be=rt)),rt=In,xe=Nn,ut=ti,Nt=Dn),ge[dn]=!1,qt+=c}rt!==-1&&(S.set(ht.subarray(rt,xe),ut),$===-1&&rt===0&&rt===ut&&($=xe),Be===-1&&xe===C&&rt===ut&&(Be=rt));var ui=$===-1?-1:$/(b*4),qn=Be===-1?-1:Be/(b*4);return[ui,qn,ge]},n._renderLine=function(e,i,u,c,T,ge,le,ze,st,ht){for(var y=st.content,d=st.tokens,l=Ai(c,ht),b=e.width-l,S=Et.f,C=0,$=0,Be=0,rt=d.getCount();Be<rt;Be++)for(var xe=d.getEndOffset(Be),ut=d.getForeground(Be),Nt=T.getColor(ut);C<xe;C++){if(S>b)return;var qt=y.charCodeAt(C);if(qt===9){var en=ze-(C+$)%ze;$+=en-1,S+=en*l}else if(qt===32)S+=l;else for(var dn=Kn.y(qt)?2:1,an=0;an<dn;an++)if(c===2?ge.blockRenderChar(e,S,le,Nt,i,u):ge.renderChar(e,S,le,qt,Nt,i,ht,u),S+=l,S>b)return}},n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(Oi.Vb);if(e){var i=e.transparent(.5);n.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var u=L.getColor(Oi.Wb);if(u){var c=u.transparent(.5);n.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+c+"; }")}var T=L.getColor(Oi.Ub);if(T){var ge=T.transparent(.5);n.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+ge+"; }")}var le=L.getColor(Oi.Tb);le&&n.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+le+" -6px 0 6px -6px inset; }")});var Os=o("cl4r"),Ms=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ei=function(L){Ms(n,L);function n(e){var i=L.call(this,e)||this,u=i._context.configuration.options,c=u.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(x.b)(document.createElement("div")),ce.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._widgets={}},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,u=i.get(107);return this._verticalScrollbarWidth=u.verticalScrollbarWidth,this._minimapWidth=u.minimapWidth,this._horizontalScrollbarHeight=u.horizontalScrollbarHeight,this._editorHeight=u.height,this._editorWidth=u.width,!0},n.prototype.addWidget=function(e){var i=Object(x.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 u=this._widgets[e.getId()];return u.preference===i?!1:(u.preference=i,this.setShouldRender(),!0)},n.prototype.removeWidget=function(e){var i=e.getId();if(this._widgets.hasOwnProperty(i)){var u=this._widgets[i],c=u.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 u=i.domNode.clientHeight;i.setTop(this._editorHeight-u-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),u=0,c=i.length;u<c;u++){var T=i[u];this._renderWidget(this._widgets[T])}},n}(Z),mo=o("zrhQ"),ss=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),as=function(){function L(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 u=e.getColor(tn.k);this.borderColor=u?u.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 T=i.get(54),ge=T.enabled,le=T.side,ze=ge?Hn.y.getDefaultBackground():null;ze===null||le==="left"?this.backgroundColor=null:this.backgroundColor=mo.a.Format.CSS.formatHex(ze);var st=i.get(107),ht=st.overviewRuler;this.top=ht.top,this.right=ht.right,this.domWidth=ht.width,this.domHeight=ht.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],l=y[1];this.x=d,this.w=l}return L.prototype._initLanes=function(n,e,i){var u=e-n;if(i>=3){var c=Math.floor(u/3),T=Math.floor(u/3),ge=u-c-T,le=n,ze=le+c,st=le+c+ge;return[[0,le,ze,le,st,le,ze,le],[0,c,ge,c+ge,T,c+ge+T,ge+T,c+ge+T]]}else if(i===2){var c=Math.floor(u/2),T=u-c,le=n,st=le+c;return[[0,le,le,le,st,le,le,le],[0,c,c,c,T,c+T,c+T,c+T]]}else{var ht=n,y=u;return[[0,ht,ht,ht,ht,ht,ht,ht],[0,y,y,y,y,y,y,y]]}},L.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},L}(),Ts=function(L){ss(n,L);function n(e){var i=L.call(this,e)||this;return i._domNode=Object(x.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=Hn.y.onDidChange(function(u){u.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return n.prototype.dispose=function(){L.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,u=e.selections.length;i<u;i++)this._cursorPositions[i]=e.selections[i].getPosition();return this._cursorPositions.sort(ve.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,u=this._settings.lineHeight,c=this._context.viewLayout,T=this._context.viewLayout.getScrollHeight(),ge=i/T,le=this._context.model.getAllOverviewRulerDecorations(this._context.theme),ze=6*this._settings.pixelRatio|0,st=ze/2|0,ht=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?ht.clearRect(0,0,e,i):(ht.fillStyle=this._settings.backgroundColor,ht.fillRect(0,0,e,i));var y=this._settings.x,d=this._settings.w,l=Object.keys(le);l.sort();for(var b=0,S=l.length;b<S;b++){var C=l[b],$=le[C];ht.fillStyle=C;for(var Be=0,rt=0,xe=0,ut=0,Nt=$.length;ut<Nt;ut++){var qt=$[3*ut],en=$[3*ut+1],dn=$[3*ut+2],an=c.getVerticalOffsetForLineNumber(en)*ge|0,Cn=(c.getVerticalOffsetForLineNumber(dn)+u)*ge|0,In=Cn-an;if(In<ze){var Nn=(an+Cn)/2|0;Nn<st?Nn=st:Nn+st>i&&(Nn=i-st),an=Nn-st,Cn=Nn+st}an>xe+1||qt!==Be?(ut!==0&&ht.fillRect(y[Be],rt,d[Be],xe-rt),Be=qt,rt=an,xe=Cn):Cn>xe&&(xe=Cn)}ht.fillRect(y[Be],rt,d[Be],xe-rt)}if(!this._settings.hideCursor&&this._settings.cursorColor){var ti=2*this._settings.pixelRatio|0,Dn=ti/2|0,ui=this._settings.x[7],qn=this._settings.w[7];ht.fillStyle=this._settings.cursorColor;for(var rt=-100,xe=-100,ut=0,Nt=this._cursorPositions.length;ut<Nt;ut++){var Ri=this._cursorPositions[ut],Nn=c.getVerticalOffsetForLineNumber(Ri.lineNumber)*ge|0;Nn<Dn?Nn=Dn:Nn+Dn>i&&(Nn=i-Dn);var an=Nn-Dn,Cn=an+ti;an>xe+1?(ut!==0&&ht.fillRect(ui,rt,qn,xe-rt),rt=an,xe=Cn):Cn>xe&&(xe=Cn)}ht.fillRect(ui,rt,qn,xe-rt)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(ht.beginPath(),ht.lineWidth=1,ht.strokeStyle=this._settings.borderColor,ht.moveTo(0,0),ht.lineTo(0,i),ht.stroke(),ht.moveTo(0,0),ht.lineTo(e,0),ht.stroke())},n}(Z),Fr=o("MvK1"),ls=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),$s=function(L){ls(n,L);function n(e,i){var u=L.call(this)||this;u._context=e;var c=u._context.configuration.options;return u._domNode=Object(x.b)(document.createElement("canvas")),u._domNode.setClassName(i),u._domNode.setPosition("absolute"),u._domNode.setLayerHinting(!0),u._domNode.setContain("strict"),u._zoneManager=new Fr.b(function(T){return u._context.viewLayout.getVerticalOffsetForLineNumber(T)}),u._zoneManager.setDOMWidth(0),u._zoneManager.setDOMHeight(0),u._zoneManager.setOuterHeight(u._context.viewLayout.getScrollHeight()),u._zoneManager.setLineHeight(c.get(49)),u._zoneManager.setPixelRatio(c.get(105)),u._context.addEventHandler(u),u}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.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(),u=this._zoneManager.resolveColorZones(),c=this._zoneManager.getId2Color(),T=this._domNode.domNode.getContext("2d");return T.clearRect(0,0,e,i),u.length>0&&this._renderOneLane(T,u,c,e),!0},n.prototype._renderOneLane=function(e,i,u,c){for(var T=0,ge=0,le=0,ze=0,st=i;ze<st.length;ze++){var ht=st[ze],y=ht.colorId,d=ht.from,l=ht.to;y!==T?(e.fillRect(0,ge,c,le-ge),T=y,e.fillStyle=u[T],ge=d,le=l):le>=d?le=Math.max(le,l):(e.fillRect(0,ge,c,le-ge),ge=d,le=l)}e.fillRect(0,ge,c,le-ge)},n}(Se),ua=o("7zd4"),Qs=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Js=function(L){Qs(n,L);function n(e){var i=L.call(this,e)||this;i.domNode=Object(x.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var u=i._context.configuration.options;return i._rulers=u.get(77),i._typicalHalfwidthCharacterWidth=u.get(34).typicalHalfwidthCharacterWidth,i}return n.prototype.dispose=function(){L.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)return;if(e<i){for(var u=this._context.model.getOptions().tabSize,c=u,T=i-e;T>0;){var ge=Object(x.b)(document.createElement("div"));ge.setClassName("view-ruler"),ge.setWidth(c),this.domNode.appendChild(ge),this._renderedRulers.push(ge),T--}return}for(var le=e-i;le>0;){var ge=this._renderedRulers.pop();this.domNode.removeChild(ge),le--}},n.prototype.render=function(e){this._ensureRulersCount();for(var i=0,u=this._rulers.length;i<u;i++){var c=this._renderedRulers[i];c.setHeight(Math.min(e.scrollHeight,1e6)),c.setLeft(this._rulers[i]*this._typicalHalfwidthCharacterWidth)}},n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(tn.l);e&&n.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+e+" inset; }")});var da=o("2MPD"),us=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sr=function(L){us(n,L);function n(e){var i=L.call(this,e)||this;i._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1;var u=i._context.configuration.options,c=u.get(78);return i._useShadows=c.useShadows,i._domNode=Object(x.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return n.prototype.dispose=function(){L.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,u=i.get(78);return this._useShadows=u.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}(Z);Object(tt.e)(function(L,n){var e=L.getColor(Oi.Tb);e&&n.addRule(".monaco-editor .scroll-decoration { box-shadow: "+e+" 0 6px 6px -6px inset; }")});var xs=o("eC1c"),Ni=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Kr=function(){function L(n){this.left=n.left,this.width=n.width,this.startStyle=null,this.endStyle=null}return L}(),Gr=function(){function L(n,e){this.lineNumber=n,this.ranges=e}return L}();function ds(L){return new Kr(L)}function Uo(L){return new Gr(L.lineNumber,L.ranges.map(ds))}var Xr=A.f,cs=function(L){Ni(n,L);function n(e){var i=L.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=e;var u=i._context.configuration.options;return i._lineHeight=u.get(49),i._roundedSelection=u.get(76),i._typicalHalfwidthCharacterWidth=u.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,L.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,u=e.length;i<u;i++){var c=e[i];if(c.ranges.length>1)return!0}return!1},n.prototype._enrichVisibleRangesWithStyle=function(e,i,u){var c=this._typicalHalfwidthCharacterWidth/4,T=null,ge=null;if(u&&u.length>0&&i.length>0){var le=i[0].lineNumber;if(le===e.startLineNumber)for(var ze=0;!T&&ze<u.length;ze++)u[ze].lineNumber===le&&(T=u[ze].ranges[0]);var st=i[i.length-1].lineNumber;if(st===e.endLineNumber)for(var ze=u.length-1;!ge&&ze>=0;ze--)u[ze].lineNumber===st&&(ge=u[ze].ranges[0]);T&&!T.startStyle&&(T=null),ge&&!ge.startStyle&&(ge=null)}for(var ze=0,ht=i.length;ze<ht;ze++){var y=i[ze].ranges[0],d=y.left,l=y.left+y.width,b={top:0,bottom:0},S={top:0,bottom:0};if(ze>0){var C=i[ze-1].ranges[0].left,$=i[ze-1].ranges[0].left+i[ze-1].ranges[0].width;to(d-C)<c?b.top=2:d>C&&(b.top=1),to(l-$)<c?S.top=2:C<l&&l<$&&(S.top=1)}else T&&(b.top=T.startStyle.top,S.top=T.endStyle.top);if(ze+1<ht){var Be=i[ze+1].ranges[0].left,rt=i[ze+1].ranges[0].left+i[ze+1].ranges[0].width;to(d-Be)<c?b.bottom=2:Be<d&&d<rt&&(b.bottom=1),to(l-rt)<c?S.bottom=2:l<rt&&(S.bottom=1)}else ge&&(b.bottom=ge.startStyle.bottom,S.bottom=ge.endStyle.bottom);y.startStyle=b,y.endStyle=S}},n.prototype._getVisibleRangesWithStyle=function(e,i,u){var c=i.linesVisibleRangesForRange(e,!0)||[],T=c.map(Uo),ge=this._visibleRangesHaveGaps(T);return!Xr&&!ge&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(i.visibleRange,T,u),T},n.prototype._createSelectionPiece=function(e,i,u,c,T){return'<div class="cslr '+u+'" style="top:'+e.toString()+"px;left:"+c.toString()+"px;width:"+T.toString()+"px;height:"+i+'px;"></div>'},n.prototype._actualRenderOneSelection=function(e,i,u,c){if(c.length===0)return;for(var T=!!c[0].ranges[0].startStyle,ge=this._lineHeight.toString(),le=(this._lineHeight-1).toString(),ze=c[0].lineNumber,st=c[c.length-1].lineNumber,ht=0,y=c.length;ht<y;ht++){for(var d=c[ht],l=d.lineNumber,b=l-i,S=u&&(l===st||l===ze)?le:ge,C=u&&l===ze?1:0,$="",Be="",rt=0,xe=d.ranges.length;rt<xe;rt++){var ut=d.ranges[rt];if(T){var Nt=ut.startStyle,qt=ut.endStyle;if(Nt.top===1||Nt.bottom===1){$+=this._createSelectionPiece(C,S,n.SELECTION_CLASS_NAME,ut.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH);var en=n.EDITOR_BACKGROUND_CLASS_NAME;Nt.top===1&&(en+=" "+n.SELECTION_TOP_RIGHT),Nt.bottom===1&&(en+=" "+n.SELECTION_BOTTOM_RIGHT),$+=this._createSelectionPiece(C,S,en,ut.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH)}if(qt.top===1||qt.bottom===1){$+=this._createSelectionPiece(C,S,n.SELECTION_CLASS_NAME,ut.left+ut.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),$+=this._createSelectionPiece(C,S,dn,ut.left+ut.width,n.ROUNDED_PIECE_WIDTH)}}var an=n.SELECTION_CLASS_NAME;if(T){var Nt=ut.startStyle,qt=ut.endStyle;Nt.top===0&&(an+=" "+n.SELECTION_TOP_LEFT),Nt.bottom===0&&(an+=" "+n.SELECTION_BOTTOM_LEFT),qt.top===0&&(an+=" "+n.SELECTION_TOP_RIGHT),qt.bottom===0&&(an+=" "+n.SELECTION_BOTTOM_RIGHT)}Be+=this._createSelectionPiece(C,S,an,ut.left,ut.width)}e[b][0]+=$,e[b][1]+=Be}},n.prototype.prepareRender=function(e){for(var i=[],u=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,T=u;T<=c;T++){var ge=T-u;i[ge]=["",""]}for(var le=[],ze=0,st=this._selections.length;ze<st;ze++){var ht=this._selections[ze];if(ht.isEmpty()){le[ze]=null;continue}var y=this._getVisibleRangesWithStyle(ht,e,this._previousFrameVisibleRangesWithStyle[ze]);le[ze]=y,this._actualRenderOneSelection(i,u,this._selections.length>1,y)}this._previousFrameVisibleRangesWithStyle=le,this._renderResult=i.map(function(d){var l=d[0],b=d[1];return l+b})},n.prototype.render=function(e,i){if(!this._renderResult)return"";var u=i-e;return u<0||u>=this._renderResult.length?"":this._renderResult[u]},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}(Ht);Object(tt.e)(function(L,n){var e=L.getColor(Oi.K);e&&n.addRule(".monaco-editor .focused .selected-text { background-color: "+e+"; }");var i=L.getColor(Oi.F);i&&n.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var u=L.getColor(Oi.L);u&&n.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+u+"; }")});function to(L){return L<0?-L:L}var qs=o("2Tsy"),vo=function(){function L(n,e,i,u,c,T){this.top=n,this.left=e,this.width=i,this.height=u,this.textContent=c,this.textContentClassName=T}return L}(),hs=function(){function L(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(x.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 ve.a(1,1),this._lastRenderedContent="",this._renderData=null}return L.prototype.getDomNode=function(){return this._domNode},L.prototype.getPosition=function(){return this._position},L.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},L.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},L.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},L.prototype.onCursorPositionChanged=function(n){return this._position=n,!0},L.prototype._prepareRender=function(n){var e="";if(this._cursorStyle===Et.g.Line||this._cursorStyle===Et.g.LineThin){var i=n.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var u;if(this._cursorStyle===Et.g.Line){if(u=ne.t(this._lineCursorWidth>0?this._lineCursorWidth:2),u>2){var c=this._context.model.getLineContent(this._position.lineNumber),T=Kn.E(c,this._position.column-1);e=c.substr(this._position.column-1,T)}}else u=ne.t(1);var ge=i.left;u>=2&&ge>=1&&(ge-=1);var le=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta;return new vo(le,ge,u,this._lineHeight,e,"")}var ze=this._context.model.getLineContent(this._position.lineNumber),st=Kn.E(ze,this._position.column-1),ht=n.linesVisibleRangesForRange(new Me.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+st),!1);if(!ht||ht.length===0)return null;var y=ht[0];if(y.outsideRenderedLine||y.ranges.length===0)return null;var d=y.ranges[0],l=d.width<1?this._typicalHalfwidthCharacterWidth:d.width,b="";if(this._cursorStyle===Et.g.Block){var S=this._context.model.getViewLineData(this._position.lineNumber);e=ze.substr(this._position.column-1,st);var C=S.tokens.findTokenIndexAtOffset(this._position.column-1);b=S.tokens.getClassName(C)}var $=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta,Be=this._lineHeight;return(this._cursorStyle===Et.g.Underline||this._cursorStyle===Et.g.UnderlineThin)&&($+=this._lineHeight-2,Be=2),new vo($,d.left,l,Be,e,b)},L.prototype.prepareRender=function(n){this._renderData=this._prepareRender(n)},L.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)},L}(),ea=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),As=function(L){ea(n,L);function n(e){var i=L.call(this,e)||this,u=i._context.configuration.options;return i._readOnly=u.get(68),i._cursorBlinking=u.get(16),i._cursorStyle=u.get(18),i._cursorSmoothCaretAnimation=u.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new hs(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(x.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 H.e,i._cursorFlatBlinkInterval=new H.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return n.prototype.dispose=function(){L.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 u=0,c=this._secondaryCursors.length;u<c;u++)this._secondaryCursors[u].onConfigurationChanged(e);return!0},n.prototype._onCursorPositionChanged=function(e,i){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<i.length)for(var u=i.length-this._secondaryCursors.length,c=0;c<u;c++){var T=new hs(this._context);this._domNode.domNode.insertBefore(T.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(T)}else if(this._secondaryCursors.length>i.length)for(var ge=this._secondaryCursors.length-i.length,c=0;c<ge;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=[],u=0,c=e.selections.length;u<c;u++)i[u]=e.selections[u].getPosition();this._onCursorPositionChanged(i[0],i.slice(1));var T=e.selections[0].isEmpty();return this._selectionIsEmpty!==T&&(this._selectionIsEmpty=T,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(le){for(var ze=0,st=e.ranges.length;ze<st;ze++)if(e.ranges[ze].fromLineNumber<=le.lineNumber&&le.lineNumber<=e.ranges[ze].toLineNumber)return!0;return!1};if(i(this._primaryCursor.getPosition()))return!0;for(var u=0,c=this._secondaryCursors;u<c.length;u++){var T=c[u];if(i(T.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(),u=i===0,c=i===5;u?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!u&&!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";this._selectionIsEmpty||(e+=" has-selection");switch(this._cursorStyle){case Et.g.Line:e+=" cursor-line-style";break;case Et.g.Block:e+=" cursor-block-style";break;case Et.g.Underline:e+=" cursor-underline-style";break;case Et.g.LineThin:e+=" cursor-line-thin-style";break;case Et.g.BlockOutline:e+=" cursor-block-outline-style";break;case Et.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,u=this._secondaryCursors.length;i<u;i++)this._secondaryCursors[i].prepareRender(e)},n.prototype.render=function(e){var i=[],u=0,c=this._primaryCursor.render(e);c&&(i[u++]=c);for(var T=0,ge=this._secondaryCursors.length;T<ge;T++){var le=this._secondaryCursors[T].render(e);le&&(i[u++]=le)}this._renderData=i},n.prototype.getLastRenderData=function(){return this._renderData},n.BLINK_INTERVAL=500,n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(tn.f);if(e){var i=L.getColor(tn.e);i||(i=e.opposite()),n.addRule(".monaco-editor .cursor { background-color: "+e+"; border-color: "+e+"; color: "+i+"; }"),L.type==="hc"&&n.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}});var Ns=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Yr=function(){throw new Error("Invalid change accessor")},Vo=function(L){Ns(n,L);function n(e){var i=L.call(this,e)||this,u=i._context.configuration.options,c=u.get(107);return i._lineHeight=u.get(49),i._contentWidth=c.contentWidth,i._contentLeft=c.contentLeft,i.domNode=Object(x.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(x.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(){L.prototype.dispose.call(this),this._zones={}},n.prototype._recomputeWhitespacesProps=function(){for(var e=this,i=this._context.viewLayout.getWhitespaces(),u=new Map,c=0,T=i;c<T.length;c++){var ge=T[c];u.set(ge.id,ge)}return this._context.viewLayout.changeWhitespace(function(le){for(var ze=!1,st=Object.keys(e._zones),ht=0,y=st.length;ht<y;ht++){var d=st[ht],l=e._zones[d],b=e._computeWhitespaceProps(l.delegate),S=u.get(d);S&&(S.afterLineNumber!==b.afterViewLineNumber||S.height!==b.heightInPx)&&(le.changeOneWhitespace(d,b.afterViewLineNumber,b.heightInPx),e._safeCallOnComputedHeight(l.delegate,b.heightInPx),ze=!0)}return ze})},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,u=i.get(107);return this._lineHeight=i.get(49),this._contentWidth=u.contentWidth,this._contentLeft=u.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 u=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;i=new ve.a(u,this._context.model.getModelLineMaxColumn(u))}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 T=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i),ge=this._context.model.coordinatesConverter.modelPositionIsVisible(c);return{afterViewLineNumber:T.lineNumber,heightInPx:ge?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},n.prototype.changeViewZones=function(e){var i=this;return this._context.viewLayout.changeWhitespace(function(u){var c=!1,T={addZone:function(le){return c=!0,i._addZone(u,le)},removeZone:function(le){if(!le)return;c=i._removeZone(u,le)||c},layoutZone:function(le){if(!le)return;c=i._layoutZone(u,le)||c}};return fs(e,T),T.addZone=Yr,T.removeZone=Yr,T.layoutZone=Yr,c})},n.prototype._addZone=function(e,i){var u=this._computeWhitespaceProps(i),c=e.insertWhitespace(u.afterViewLineNumber,this._getZoneOrdinal(i),u.heightInPx,u.minWidthInPx),T={whitespaceId:c,delegate:i,isVisible:!1,domNode:Object(x.b)(i.domNode),marginDomNode:i.marginDomNode?Object(x.b)(i.marginDomNode):null};return this._safeCallOnComputedHeight(T.delegate,u.heightInPx),T.domNode.setPosition("absolute"),T.domNode.domNode.style.width="100%",T.domNode.setDisplay("none"),T.domNode.setAttribute("monaco-view-zone",T.whitespaceId),this.domNode.appendChild(T.domNode),T.marginDomNode&&(T.marginDomNode.setPosition("absolute"),T.marginDomNode.domNode.style.width="100%",T.marginDomNode.setDisplay("none"),T.marginDomNode.setAttribute("monaco-view-zone",T.whitespaceId),this.marginDomNode.appendChild(T.marginDomNode)),this._zones[T.whitespaceId]=T,this.setShouldRender(),T.whitespaceId},n.prototype._removeZone=function(e,i){if(this._zones.hasOwnProperty(i)){var u=this._zones[i];return delete this._zones[i],e.removeWhitespace(u.whitespaceId),u.domNode.removeAttribute("monaco-visible-view-zone"),u.domNode.removeAttribute("monaco-view-zone"),u.domNode.domNode.parentNode.removeChild(u.domNode.domNode),u.marginDomNode&&(u.marginDomNode.removeAttribute("monaco-visible-view-zone"),u.marginDomNode.removeAttribute("monaco-view-zone"),u.marginDomNode.domNode.parentNode.removeChild(u.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},n.prototype._layoutZone=function(e,i){if(this._zones.hasOwnProperty(i)){var u=this._zones[i],c=this._computeWhitespaceProps(u.delegate);return e.changeOneWhitespace(u.whitespaceId,c.afterViewLineNumber,c.heightInPx),this._safeCallOnComputedHeight(u.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(u){Object(N.e)(u)}},n.prototype._safeCallOnDomNodeTop=function(e,i){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(i)}catch(u){Object(N.e)(u)}},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){for(var i=e.viewportData.whitespaceViewportData,u={},c=!1,T=0,ge=i.length;T<ge;T++)u[i[T].id]=i[T],c=!0;for(var le=Object.keys(this._zones),T=0,ge=le.length;T<ge;T++){var ze=le[T],st=this._zones[ze],ht=0,y=0,d="none";u.hasOwnProperty(ze)?(ht=u[ze].verticalOffset-e.bigNumbersDelta,y=u[ze].height,d="block",st.isVisible||(st.domNode.setAttribute("monaco-visible-view-zone","true"),st.isVisible=!0),this._safeCallOnDomNodeTop(st.delegate,e.getScrolledTopFromAbsoluteTop(u[ze].verticalOffset))):(st.isVisible&&(st.domNode.removeAttribute("monaco-visible-view-zone"),st.isVisible=!1),this._safeCallOnDomNodeTop(st.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),st.domNode.setTop(ht),st.domNode.setHeight(y),st.domNode.setDisplay(d),st.marginDomNode&&(st.marginDomNode.setTop(ht),st.marginDomNode.setHeight(y),st.marginDomNode.setDisplay(d))}c&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},n}(Z);function fs(L,n){try{return L(n)}catch(e){Object(N.e)(e)}}var ps=function(){function L(n,e,i,u){this.configuration=n,this.theme=e,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=u}return L.prototype.addEventHandler=function(n){this.privateViewEventBus.addEventHandler(n)},L.prototype.removeEventHandler=function(n){this.privateViewEventBus.removeEventHandler(n)},L}(),Ho=function(){function L(n){this._eventHandlerGateKeeper=n,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return L.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)},L.prototype.removeEventHandler=function(n){for(var e=0;e<this._eventHandlers.length;e++)if(this._eventHandlers[e]===n){this._eventHandlers.splice(e,1);break}},L.prototype.emit=function(n){this._eventQueue?this._eventQueue.push(n):this._eventQueue=[n],this._isConsumingQueue||this.consumeQueue()},L.prototype.emitMany=function(n){this._eventQueue?this._eventQueue=this._eventQueue.concat(n):this._eventQueue=n,this._isConsumingQueue||this.consumeQueue()},L.prototype.consumeQueue=function(){var n=this;this._eventHandlerGateKeeper(function(){try{n._isConsumingQueue=!0,n._doConsumeQueue()}finally{n._isConsumingQueue=!1}})},L.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var n=this._eventQueue;this._eventQueue=null;for(var e=this._eventHandlers.slice(0),i=0,u=e.length;i<u;i++)e[i].handleEvents(n)}},L}(),yo=function(){function L(n,e,i,u){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=u,this.visibleRange=new Me.a(e.startLineNumber,this._model.getLineMinColumn(e.startLineNumber),e.endLineNumber,this._model.getLineMaxColumn(e.endLineNumber))}return L.prototype.getViewLineRenderingData=function(n){return this._model.getViewLineRenderingData(this.visibleRange,n)},L.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},L}(),Oo=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Mo=function(L){Oo(n,L);function n(e,i,u,c,T,ge){var le=L.call(this)||this;le._cursor=T,le._renderAnimationFrame=null,le.outgoingEvents=ge;var ze=new We(i,c,le.outgoingEvents,e);le.eventDispatcher=new Ho(function($){return le._renderOnce($)}),le.eventDispatcher.addEventHandler(le),le._context=new ps(i,u.getTheme(),c,le.eventDispatcher),le._register(u.onThemeChange(function($){le._context.theme=$,le.eventDispatcher.emit(new vi),le.render(!0,!1)})),le.viewParts=[],le._textAreaHandler=new O(le._context,ze,le.createTextAreaHandlerHelper()),le.viewParts.push(le._textAreaHandler),le.linesContent=Object(x.b)(document.createElement("div")),le.linesContent.setClassName("lines-content monaco-editor-background"),le.linesContent.setPosition("absolute"),le.domNode=Object(x.b)(document.createElement("div")),le.domNode.setClassName(le.getEditorClassName()),le.overflowGuardContainer=Object(x.b)(document.createElement("div")),ce.write(le.overflowGuardContainer,3),le.overflowGuardContainer.setClassName("overflow-guard"),le._scrollbar=new Ce(le._context,le.linesContent,le.domNode,le.overflowGuardContainer),le.viewParts.push(le._scrollbar),le.viewLines=new Vn(le._context,le.linesContent),le.viewZones=new Vo(le._context),le.viewParts.push(le.viewZones);var st=new Ts(le._context);le.viewParts.push(st);var ht=new Sr(le._context);le.viewParts.push(ht);var y=new An(le._context);le.viewParts.push(y),y.addDynamicOverlay(new Ge(le._context)),y.addDynamicOverlay(new cs(le._context)),y.addDynamicOverlay(new At(le._context)),y.addDynamicOverlay(new at(le._context));var d=new gn(le._context);le.viewParts.push(d),d.addDynamicOverlay(new ue(le._context)),d.addDynamicOverlay(new Ct(le._context)),d.addDynamicOverlay(new ur(le._context)),d.addDynamicOverlay(new Ui(le._context)),d.addDynamicOverlay(new Sn(le._context));var l=new Bn(le._context);l.getDomNode().appendChild(le.viewZones.marginDomNode),l.getDomNode().appendChild(d.getDomNode()),le.viewParts.push(l),le.contentWidgets=new Le(le._context,le.domNode),le.viewParts.push(le.contentWidgets),le.viewCursors=new As(le._context),le.viewParts.push(le.viewCursors),le.overlayWidgets=new Ei(le._context),le.viewParts.push(le.overlayWidgets);var b=new Js(le._context);le.viewParts.push(b);var S=new pn(le._context);if(le.viewParts.push(S),st){var C=le._scrollbar.getOverviewRulerLayoutInfo();C.parent.insertBefore(st.getDomNode(),C.insertBefore)}return le.linesContent.appendChild(y.getDomNode()),le.linesContent.appendChild(b.domNode),le.linesContent.appendChild(le.viewZones.domNode),le.linesContent.appendChild(le.viewLines.getDomNode()),le.linesContent.appendChild(le.contentWidgets.domNode),le.linesContent.appendChild(le.viewCursors.getDomNode()),le.overflowGuardContainer.appendChild(l.getDomNode()),le.overflowGuardContainer.appendChild(le._scrollbar.getDomNode()),le.overflowGuardContainer.appendChild(ht.getDomNode()),le.overflowGuardContainer.appendChild(le._textAreaHandler.textArea),le.overflowGuardContainer.appendChild(le._textAreaHandler.textAreaCover),le.overflowGuardContainer.appendChild(le.overlayWidgets.getDomNode()),le.overflowGuardContainer.appendChild(S.getDomNode()),le.domNode.appendChild(le.overflowGuardContainer),le.domNode.appendChild(le.contentWidgets.overflowingContentWidgetsDomNode),le._applyLayout(),le.pointerHandler=le._register(new Qn(le._context,ze,le.createPointerHandlerHelper())),le._register(c.addEventListener(function($){le.eventDispatcher.emitMany($)})),le._register(le._cursor.addEventListener(function($){le.eventDispatcher.emitMany($)})),le}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 u=e.viewCursors.getLastRenderData()||[],c=e._textAreaHandler.getLastRenderData();return new nt(u,c)},shouldSuppressMouseDownOnViewZone:function(u){return e.viewZones.shouldSuppressMouseDownOnViewZone(u)},shouldSuppressMouseDownOnWidget:function(u){return e.contentWidgets.shouldSuppressMouseDownOnWidget(u)},getPositionFromDOMInfo:function(u,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(u,c)},visibleRangeForPosition:function(u,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new ve.a(u,c))},getLineWidth:function(u){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(u)}}},n.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(u,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new ve.a(u,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=[],L.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,u=0,c=this.viewParts.length;u<c;u++){var T=this.viewParts[u];T.shouldRender()&&(e[i++]=T)}return e},n.prototype._actualRender=function(){if(!ne.L(this.domNode.domNode))return;var e=this._getViewPartsToRender();if(!this.viewLines.shouldRender()&&e.length===0)return;var i=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(i.startLineNumber,i.endLineNumber,i.centeredLineNumber);var u=new yo(this._cursor.getViewSelections(),i,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(u),this.viewLines.shouldRender()&&(this.viewLines.renderText(u),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var c=new Ee(this._context.viewLayout,u,this.viewLines),T=0,ge=e.length;T<ge;T++){var le=e[T];le.prepareRender(c)}for(var T=0,ge=e.length;T<ge;T++){var le=e[T];le.render(c),le.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 u=this._context.model.validateModelPosition({lineNumber:e,column:i}),c=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(u);this._flushAccumulatedAndRenderNow();var T=this.viewLines.visibleRangeForPosition(new ve.a(c.lineNumber,c.column));return T?T.left:-1},n.prototype.getTargetAtClientPoint=function(e,i){var u=this.pointerHandler.getTargetAtClientPoint(e,i);return u?lt.convertViewToModelMouseTarget(u,this._context.model.coordinatesConverter):null},n.prototype.createOverviewRuler=function(e){return new $s(this._context,e)},n.prototype.change=function(e){var i=this;return this._renderOnce(function(){var u=i.viewZones.changeViewZones(e);return u&&(i._context.viewLayout.onHeightMaybeChanged(),i._context.privateViewEventBus.emit(new bi)),u})},n.prototype.render=function(e,i){if(i){this.viewLines.forceShouldRender();for(var u=0,c=this.viewParts.length;u<c;u++){var T=this.viewParts[u];T.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 u=e.position?e.position.position:null;u!==null&&(i=new Me.a(u.lineNumber,u.column,u.lineNumber,u.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,u=this.overlayWidgets.setWidgetPosition(e.widget,i);u&&this._scheduleRender()},n.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},n}(Se);function zo(L){try{return L()}catch(n){Object(N.e)(n)}}var gs=function(){function L(n){this._selTrackedRange=null,this._trackSelection=!0,this._setState(n,new Ie.f(new Me.a(1,1,1,1),0,new ve.a(1,1),0),new Ie.f(new Me.a(1,1,1,1),0,new ve.a(1,1),0))}return L.prototype.dispose=function(n){this._removeTrackedRange(n)},L.prototype.startTrackingSelection=function(n){this._trackSelection=!0,this._updateTrackedRange(n)},L.prototype.stopTrackingSelection=function(n){this._trackSelection=!1,this._removeTrackedRange(n)},L.prototype._updateTrackedRange=function(n){if(!this._trackSelection)return;this._selTrackedRange=n.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0)},L.prototype._removeTrackedRange=function(n){this._selTrackedRange=n.model._setTrackedRange(this._selTrackedRange,null,0)},L.prototype.asCursorState=function(){return new Ie.d(this.modelState,this.viewState)},L.prototype.readSelectionFromMarkers=function(n){var e=n.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===0?new gt.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new gt.a(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)},L.prototype.ensureValidState=function(n){this._setState(n,this.modelState,this.viewState)},L.prototype.setState=function(n,e,i){this._setState(n,e,i)},L.prototype._setState=function(n,e,i){if(e){var u=n.model.validateRange(e.selectionStart),T=e.selectionStart.equalsRange(u)?e.selectionStartLeftoverVisibleColumns:0,c=n.model.validatePosition(e.position),ge=e.position.equals(c)?e.leftoverVisibleColumns:0;e=new Ie.f(u,T,c,ge)}else{if(!i)return;var u=n.model.validateRange(n.convertViewRangeToModelRange(i.selectionStart)),c=n.model.validatePosition(n.convertViewPositionToModelPosition(i.position.lineNumber,i.position.column));e=new Ie.f(u,i.selectionStartLeftoverVisibleColumns,c,i.leftoverVisibleColumns)}if(i){var st=n.validateViewRange(i.selectionStart,e.selectionStart),ht=n.validateViewPosition(i.position,e.position);i=new Ie.f(st,e.selectionStartLeftoverVisibleColumns,ht,e.leftoverVisibleColumns)}else{var le=n.convertModelPositionToViewPosition(new ve.a(e.selectionStart.startLineNumber,e.selectionStart.startColumn)),ze=n.convertModelPositionToViewPosition(new ve.a(e.selectionStart.endLineNumber,e.selectionStart.endColumn)),st=new Me.a(le.lineNumber,le.column,ze.lineNumber,ze.column),ht=n.convertModelPositionToViewPosition(e.position);i=new Ie.f(st,e.selectionStartLeftoverVisibleColumns,ht,e.leftoverVisibleColumns)}this.modelState=e,this.viewState=i,this._updateTrackedRange(n)},L}(),jr=function(){function L(n){this.context=n,this.primaryCursor=new gs(n),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return L.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},L.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)},L.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)},L.prototype.updateContext=function(n){this.context=n},L.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)},L.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},L.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},L.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},L.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},L.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},L.prototype.setSelections=function(n){this.setStates(Ie.d.fromModelSelections(n))},L.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},L.prototype.setStates=function(n){if(n===null)return;this.primaryCursor.setState(this.context,n[0].modelState,n[0].viewState),this._setSecondaryStates(n.slice(1))},L.prototype._setSecondaryStates=function(n){var e=this.secondaryCursors.length,i=n.length;if(e<i)for(var u=i-e,c=0;c<u;c++)this._addSecondaryCursor();else if(e>i)for(var T=e-i,c=0;c<T;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)},L.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},L.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new gs(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},L.prototype.getLastAddedCursorIndex=function(){return this.secondaryCursors.length===0||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex},L.prototype._removeSecondaryCursor=function(n){this.lastAddedCursorIndex>=n+1&&this.lastAddedCursorIndex--,this.secondaryCursors[n].dispose(this.context),this.secondaryCursors.splice(n,1)},L.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},L.prototype.normalize=function(){if(this.secondaryCursors.length===0)return;for(var n=this._getAll(),e=[],i=0,u=n.length;i<u;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 T=e[c],ge=e[c+1],le=T.selection,ze=ge.selection;if(!this.context.config.multiCursorMergeOverlapping)continue;var st=void 0;if(ze.isEmpty()||le.isEmpty()?st=ze.getStartPosition().isBeforeOrEqual(le.getEndPosition()):st=ze.getStartPosition().isBefore(le.getEndPosition()),st){var ht=T.index<ge.index?c:c+1,y=T.index<ge.index?c+1:c,d=e[y].index,l=e[ht].index,b=e[y].selection,S=e[ht].selection;if(!b.equalsSelection(S)){var C=b.plusRange(S),$=b.selectionStartLineNumber===b.startLineNumber&&b.selectionStartColumn===b.startColumn,Be=S.selectionStartLineNumber===S.startLineNumber&&S.selectionStartColumn===S.startColumn,rt=void 0;d===this.lastAddedCursorIndex?(rt=$,this.lastAddedCursorIndex=l):rt=Be;var xe=void 0;rt?xe=new gt.a(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn):xe=new gt.a(C.endLineNumber,C.endColumn,C.startLineNumber,C.startColumn),e[ht].selection=xe;var ut=Ie.d.fromModelSelection(xe);n[l].setState(this.context,ut.modelState,ut.viewState)}for(var Nt=0,qt=e;Nt<qt.length;Nt++){var en=qt[Nt];en.index>d&&en.index--}n.splice(d,1),e.splice(y,1),this._removeSecondaryCursor(d-1),c--}}},L}(),Rs=o("snIX"),cr=o("GR/f"),ri=o("iuje"),ta=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Is(L){for(var n=0,e=L.length;n<e;n++)if(L[n].type===8)return!0;return!1}var Ps=function(){function L(n,e,i,u,c,T){this.selections=n,this.modelVersionId=e,this.oldSelections=i,this.oldModelVersionId=u,this.source=c,this.reason=T}return L}(),ms=function(){function L(n,e){this.modelVersionId=n.getVersionId(),this.cursorState=e.getAll()}return L.prototype.equals=function(n){if(!n)return!1;if(this.modelVersionId!==n.modelVersionId)return!1;if(this.cursorState.length!==n.cursorState.length)return!1;for(var e=0,i=this.cursorState.length;e<i;e++)if(!this.cursorState[e].equals(n.cursorState[e]))return!1;return!0},L}(),To=function(){function L(n,e,i){this._model=n,this._autoClosedCharactersDecorations=e,this._autoClosedEnclosingDecorations=i}return L.getAllAutoClosedCharacters=function(n){for(var e=[],i=0,u=n;i<u.length;i++){var c=u[i];e=e.concat(c.getAutoClosedCharactersRanges())}return e},L.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},L.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},L.prototype.isValid=function(n){for(var e=[],i=0;i<this._autoClosedEnclosingDecorations.length;i++){var u=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(u&&(e.push(u),u.startLineNumber!==u.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)return!1;if(!e[i].strictContainsRange(n[i]))return!1}return!0},L}(),ks=function(L){ta(n,L);function n(e,i,u){var c=L.call(this)||this;c._onDidReachMaxCursorCount=c._register(new k.a),c.onDidReachMaxCursorCount=c._onDidReachMaxCursorCount.event,c._onDidAttemptReadOnlyEdit=c._register(new k.a),c.onDidAttemptReadOnlyEdit=c._onDidAttemptReadOnlyEdit.event,c._onDidChange=c._register(new k.a),c.onDidChange=c._onDidChange.event,c._configuration=e,c._model=i,c._knownModelVersionId=c._model.getVersionId(),c._viewModel=u,c.context=new Ie.c(c._configuration,c._model,c._viewModel),c._cursors=new jr(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(ge){if(c._knownModelVersionId=ge.versionId,c._isHandling)return;var le=ge.containsEvent(1);c._onModelContentChanged(le)})),c._register(u.addEventListener(function(ge){if(!Is(ge))return;if(c._knownModelVersionId!==c._model.getVersionId())return;c.setStates("viewModel",0,c.getAll())}));var T=function(){c.context=new Ie.c(c._configuration,c._model,c._viewModel),c._cursors.updateContext(c.context)};return c._register(c._model.onDidChangeLanguage(function(ge){T()})),c._register(c._model.onDidChangeLanguageConfiguration(function(){T()})),c._register(c._model.onDidChangeOptions(function(){T()})),c._register(c._configuration.onDidChange(function(ge){Ie.b.shouldRecreate(ge)&&T()})),c}return n.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(U.f)(this._autoClosedActions),L.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 u=this._autoClosedActions[i];u.isValid(e)||(u.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,u){u!==null&&u.length>n.MAX_CURSOR_COUNT&&(u=u.slice(0,n.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var c=new ms(this._model,this);this._cursors.setStates(u),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,u,c){this._revealRange(e,u,0,i,c)},n.prototype.revealRange=function(e,i,u,c,T){this.emitCursorRevealRange(e,u,c,i,T)},n.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},n.prototype.saveState=function(){for(var e=[],i=this._cursors.getSelections(),u=0,c=i.length;u<c;u++){var T=i[u];e.push({inSelectionMode:!T.isEmpty(),selectionStart:{lineNumber:T.selectionStartLineNumber,column:T.selectionStartColumn},position:{lineNumber:T.positionLineNumber,column:T.positionColumn}})}return e},n.prototype.restoreState=function(e){for(var i=[],u=0,c=e.length;u<c;u++){var T=e[u],ge=1,le=1;T.position&&T.position.lineNumber&&(ge=T.position.lineNumber),T.position&&T.position.column&&(le=T.position.column);var ze=ge,st=le;T.selectionStart&&T.selectionStart.lineNumber&&(ze=T.selectionStart.lineNumber),T.selectionStart&&T.selectionStart.column&&(st=T.selectionStart.column),i.push({selectionStartLineNumber:ze,selectionStartColumn:st,positionLineNumber:ge,positionColumn:le})}this.setStates("restoreState",0,Ie.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 jr(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var i=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Ie.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(),u=i.lineNumber,c=Ie.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,i);return{isReal:!1,fromViewLineNumber:u,fromViewVisualColumn:c,toViewLineNumber:u,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,Ie.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 u=[],c=[],T=0,ge=e.length;T<ge;T++)u.push({range:e[T],options:{inlineClassName:"auto-closed-character",stickiness:1}}),c.push({range:i[T],options:{stickiness:1}});var le=this._model.deltaDecorations([],u),ze=this._model.deltaDecorations([],c);this._autoClosedActions.push(new To(this._model,le,ze))},n.prototype._executeEditOperation=function(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();var i=no.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(i){this._interpretCommandResult(i);for(var u=[],c=[],T=0;T<e.commands.length;T++){var ge=e.commands[T];ge instanceof cr.b&&ge.enclosingRange&&ge.closeCharacterRange&&(u.push(ge.closeCharacterRange),c.push(ge.enclosingRange))}u.length>0&&this._pushAutoClosedAction(u,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,u){var c=new ms(this._model,this);if(c.equals(u))return!1;var T=this._cursors.getSelections(),ge=this._cursors.getViewSelections();try{var le=this._beginEmit();le.emit(new rr(ge,T))}finally{this._endEmit()}if(!u||u.cursorState.length!==c.cursorState.length||c.cursorState.some(function(ht,y){return!ht.modelState.equals(u.cursorState[y].modelState)})){var ze=u?u.cursorState.map(function(ht){return ht.modelState.selection}):null,st=u?u.modelVersionId:0;this._onDidChange.fire(new Ps(T,c.modelVersionId,ze,st,e||"keyboard",i))}return!0},n.prototype._revealRange=function(e,i,u,c,T){var ge=this._cursors.getViewPositions(),le=ge[0];if(i===1)for(var ze=1;ze<ge.length;ze++)ge[ze].isBefore(le)&&(le=ge[ze]);else if(i===2)for(var ze=1;ze<ge.length;ze++)le.isBeforeOrEqual(ge[ze])&&(le=ge[ze]);else if(ge.length>1)return;var st=new Me.a(le.lineNumber,le.column,le.lineNumber,le.column);this.emitCursorRevealRange(e,st,u,c,T)},n.prototype.emitCursorRevealRange=function(e,i,u,c,T){try{var ge=this._beginEmit();ge.emit(new Gi(e,i,u,c,T))}finally{this._endEmit()}},n.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var i=[],u=0,c=e.length;u<c;u++){var T=e[u];if(!T.text||T.text.indexOf(`
`)>=0)return null;var ge=T.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!ge)return null;var le=ge[1],ze=this.context.config.autoClosingPairsClose2.get(le);if(!ze||ze.length!==1)return null;var st=ze[0].open,ht=T.text.length-ge[2].length-1,y=T.text.lastIndexOf(st,ht-1);if(y===-1)return null;i.push([y,ht])}return i},n.prototype.executeEdits=function(e,i,u){var c=this,T=null;e==="snippet"&&(T=this._findAutoClosingPairs(i)),T&&(i[0]._isTracked=!0);var ge=[],le=[],ze=this._model.pushEditOperations(this.getSelections(),i,function(st){if(T)for(var ht=0,y=T.length;ht<y;ht++){var d=T[ht],l=d[0],b=d[1],S=st[ht],C=S.range.startLineNumber,$=S.range.startColumn-1+l,Be=S.range.startColumn-1+b;ge.push(new Me.a(C,Be+1,C,Be+2)),le.push(new Me.a(C,$+1,C,Be+2))}var rt=u(st);return rt&&(c._isHandling=!0),rt});ze&&(this._isHandling=!1,this.setSelections(e,ze)),ge.length>0&&this._pushAutoClosedAction(ge,le)},n.prototype.trigger=function(e,i,u){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 T=new ms(this._model,this),ge=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,u.text);break;case c.ReplacePreviousChar:this._replacePreviousChar(u.text,u.replaceCharCnt);break;case c.Paste:ge=4,this._paste(u.text,u.pasteOnNewLine,u.multicursorText||[]);break;case c.Cut:this._cut();break;case c.Undo:ge=5,this._interpretCommandResult(this._model.undo());break;case c.Redo:ge=6,this._interpretCommandResult(this._model.redo());break;case c.ExecuteCommand:this._externalExecuteCommand(u);break;case c.ExecuteCommands:this._externalExecuteCommands(u);break;case c.CompositionEnd:this._interpretCompositionEnd(e);break}}catch(le){Object(N.e)(le)}this._isHandling=!1,i!==c.Undo&&i!==c.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,ge,T)&&this._revealRange(e,0,0,!0,0)},n.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&e==="keyboard"){var i=To.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 u=i.length,c=0;c<u;){var T=Kn.E(i,c),ge=i.substr(c,T),le=To.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(cr.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),le,ge)),c+=T}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,u){this._executeEditOperation(cr.a.paste(this.context.config,this.context.model,this.getSelections(),e,i,u))},n.prototype._cut=function(){this._executeEditOperation(Rs.a.cut(this.context.config,this.context.model,this.getSelections()))},n.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Ie.e(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},n.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new Ie.e(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},n.MAX_CURSOR_COUNT=1e4,n}(Di),no=function(){function L(){}return L.executeCommands=function(n,e,i){for(var u={model:n,selectionsBefore:e,trackedRanges:[],trackedRangesDirection:[]},c=this._innerExecuteCommands(u,i),T=0,ge=u.trackedRanges.length;T<ge;T++)u.model._setTrackedRange(u.trackedRanges[T],null,0);return c},L._innerExecuteCommands=function(n,e){if(this._arrayIsEmpty(e))return null;var i=this._getEditOperations(n,e);if(i.operations.length===0)return null;var u=i.operations,c=this._getLoserCursorMap(u);if(c.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var T=[],ge=0,le=u.length;ge<le;ge++)c.hasOwnProperty(u[ge].identifier.major.toString())||T.push(u[ge]);i.hadTrackedEditOperation&&T.length>0&&(T[0]._isTracked=!0);var ze=n.model.pushEditOperations(n.selectionsBefore,T,function(b){for(var S=[],C=0;C<n.selectionsBefore.length;C++)S[C]=[];for(var $=0,Be=b;$<Be.length;$++){var rt=Be[$];if(!rt.identifier)continue;S[rt.identifier.major].push(rt)}for(var xe=function(en,dn){return en.identifier.minor-dn.identifier.minor},ut=[],Nt=function(en){S[en].length>0?(S[en].sort(xe),ut[en]=e[en].computeCursorState(n.model,{getInverseEditOperations:function(){return S[en]},getTrackedSelection:function(an){var Cn=parseInt(an,10),In=n.model._getTrackedRange(n.trackedRanges[Cn]);return n.trackedRangesDirection[Cn]===0?new gt.a(In.startLineNumber,In.startColumn,In.endLineNumber,In.endColumn):new gt.a(In.endLineNumber,In.endColumn,In.startLineNumber,In.startColumn)}})):ut[en]=n.selectionsBefore[en]},C=0;C<n.selectionsBefore.length;C++)Nt(C);return ut});ze||(ze=n.selectionsBefore);var st=[];for(var ht in c)c.hasOwnProperty(ht)&&st.push(parseInt(ht,10));st.sort(function(b,S){return S-b});for(var y=0,d=st;y<d.length;y++){var l=d[y];ze.splice(l,1)}return ze},L._arrayIsEmpty=function(n){for(var e=0,i=n.length;e<i;e++)if(n[e])return!1;return!0},L._getEditOperations=function(n,e){for(var i=[],u=!1,c=0,T=e.length;c<T;c++){var ge=e[c];if(ge){var le=this._getEditOperationsFromCommand(n,c,ge);i=i.concat(le.operations),u=u||le.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:u}},L._getEditOperationsFromCommand=function(n,e,i){var u=[],c=0,T=function(y,d,l){if(l===void 0&&(l=!1),y.isEmpty()&&d==="")return;u.push({identifier:{major:e,minor:c++},range:y,text:d,forceMoveMarkers:l,isAutoWhitespaceEdit:i.insertsAutoWhitespace})},ge=!1,le=function(y,d,l){ge=!0,T(y,d,l)},ze=function(y,d){var l;if(y.isEmpty())if(typeof d=="boolean")d?l=2:l=3;else{var b=n.model.getLineMaxColumn(y.startLineNumber);y.startColumn===b?l=2:l=3}else l=1;var S=n.trackedRanges.length,C=n.model._setTrackedRange(null,y,l);return n.trackedRanges[S]=C,n.trackedRangesDirection[S]=y.getDirection(),S.toString()},st={addEditOperation:T,addTrackedEditOperation:le,trackSelection:ze};try{i.getEditOperations(n.model,st)}catch(ht){return Object(N.e)(ht),{operations:[],hadTrackedEditOperation:!1}}return{operations:u,hadTrackedEditOperation:ge}},L._getLoserCursorMap=function(n){n=n.slice(0),n.sort(function(le,ze){return-Me.a.compareRangesUsingEnds(le.range,ze.range)});for(var e={},i=1;i<n.length;i++){var u=n[i-1],c=n[i];if(u.range.getStartPosition().isBefore(c.range.getEndPosition())){var T=void 0;u.identifier.major>c.identifier.major?T=u.identifier.major:T=c.identifier.major,e[T.toString()]=!0;for(var ge=0;ge<n.length;ge++)n[ge].identifier.major===T&&(n.splice(ge,1),ge<i&&i--,ge--);i>0&&i--}}return e},L}(),Fs=o("9Y+e"),si=o("wQH0"),js=o("TQUy"),na=o("QuOb"),Mr=function(){function L(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return L.prototype.insert=function(n){this._hasPending=!0,this._inserts.push(n)},L.prototype.change=function(n){this._hasPending=!0,this._changes.push(n)},L.prototype.remove=function(n){this._hasPending=!0,this._removes.push(n)},L.prototype.mustCommit=function(){return this._hasPending},L.prototype.commit=function(n){if(!this._hasPending)return;var e=this._inserts,i=this._changes,u=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],n._commitPendingChanges(e,i,u)},L}(),io=function(){function L(n,e,i,u,c){this.id=n,this.afterLineNumber=e,this.ordinal=i,this.height=u,this.minWidth=c,this.prefixSum=0}return L}(),ro=function(){function L(n,e){this._instanceId=Kn.L(++L.INSTANCE_COUNT),this._pendingChanges=new Mr,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=n,this._lineHeight=e}return L.findInsertionIndex=function(n,e,i){for(var u=0,c=n.length;u<c;){var T=u+c>>>1;e===n[T].afterLineNumber?i<n[T].ordinal?c=T:u=T+1:e<n[T].afterLineNumber?c=T:u=T+1}return u},L.prototype.setLineHeight=function(n){this._checkPendingChanges(),this._lineHeight=n},L.prototype.onFlushed=function(n){this._checkPendingChanges(),this._lineCount=n},L.prototype.changeWhitespace=function(n){var e=this;try{var i={insertWhitespace:function(c,T,ge,le){c=c|0,T=T|0,ge=ge|0,le=le|0;var ze=e._instanceId+ ++e._lastWhitespaceId;return e._pendingChanges.insert(new io(ze,c,T,ge,le)),ze},changeOneWhitespace:function(c,T,ge){T=T|0,ge=ge|0,e._pendingChanges.change({id:c,newAfterLineNumber:T,newHeight:ge})},removeWhitespace:function(c){e._pendingChanges.remove({id:c})}};return n(i)}finally{this._pendingChanges.commit(this)}},L.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 u=0,c=n;u<c.length;u++){var T=c[u];this._insertWhitespace(T)}for(var ge=0,le=e;ge<le.length;ge++){var ze=le[ge];this._changeOneWhitespace(ze.id,ze.newAfterLineNumber,ze.newHeight)}for(var st=0,ht=i;st<ht.length;st++){var y=ht[st],d=this._findWhitespaceIndex(y.id);if(d===-1)continue;this._removeWhitespace(d)}return}for(var l=new Set,b=0,S=i;b<S.length;b++){var y=S[b];l.add(y.id)}for(var C=new Map,$=0,Be=e;$<Be.length;$++){var ze=Be[$];C.set(ze.id,ze)}var rt=function(Nt){for(var qt=[],en=0,dn=Nt;en<dn.length;en++){var an=dn[en];if(l.has(an.id))continue;if(C.has(an.id)){var Cn=C.get(an.id);an.afterLineNumber=Cn.newAfterLineNumber,an.height=Cn.newHeight}qt.push(an)}return qt},xe=rt(this._arr).concat(rt(n));xe.sort(function(ut,Nt){return ut.afterLineNumber===Nt.afterLineNumber?ut.ordinal-Nt.ordinal:ut.afterLineNumber-Nt.afterLineNumber}),this._arr=xe,this._prefixSumValidIndex=-1},L.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},L.prototype._insertWhitespace=function(n){var e=L.findInsertionIndex(this._arr,n.afterLineNumber,n.ordinal);this._arr.splice(e,0,n),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)},L.prototype._findWhitespaceIndex=function(n){for(var e=this._arr,i=0,u=e.length;i<u;i++)if(e[i].id===n)return i;return-1},L.prototype._changeOneWhitespace=function(n,e,i){var u=this._findWhitespaceIndex(n);if(u===-1)return;if(this._arr[u].height!==i&&(this._arr[u].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,u-1)),this._arr[u].afterLineNumber!==e){var c=this._arr[u];this._removeWhitespace(u),c.afterLineNumber=e,this._insertWhitespace(c)}},L.prototype._removeWhitespace=function(n){this._arr.splice(n,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)},L.prototype.onLinesDeleted=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0,this._lineCount-=e-n+1;for(var i=0,u=this._arr.length;i<u;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)}},L.prototype.onLinesInserted=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0,this._lineCount+=e-n+1;for(var i=0,u=this._arr.length;i<u;i++){var c=this._arr[i].afterLineNumber;n<=c&&(this._arr[i].afterLineNumber+=e-n+1)}},L.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},L.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},L.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var n=this._lineHeight*this._lineCount,e=this.getWhitespacesTotalHeight();return n+e},L.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(n){this._checkPendingChanges(),n=n|0;var e=this._findLastWhitespaceBeforeLineNumber(n);return e===-1?0:this.getWhitespacesAccumulatedHeight(e)},L.prototype._findLastWhitespaceBeforeLineNumber=function(n){n=n|0;for(var e=this._arr,i=0,u=e.length-1;i<=u;){var c=u-i|0,T=c/2|0,ge=i+T|0;if(e[ge].afterLineNumber<n){if(ge+1>=e.length||e[ge+1].afterLineNumber>=n)return ge;i=ge+1|0}else u=ge-1|0}return-1},L.prototype._findFirstWhitespaceAfterLineNumber=function(n){n=n|0;var e=this._findLastWhitespaceBeforeLineNumber(n),i=e+1;return i<this._arr.length?i:-1},L.prototype.getFirstWhitespaceIndexAfterLineNumber=function(n){return this._checkPendingChanges(),n=n|0,this._findFirstWhitespaceAfterLineNumber(n)},L.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},L.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},L.prototype.isAfterLines=function(n){this._checkPendingChanges();var e=this.getLinesTotalHeight();return n>e},L.prototype.getLineNumberAtOrAfterVerticalOffset=function(n){if(this._checkPendingChanges(),n=n|0,n<0)return 1;for(var e=this._lineCount|0,i=this._lineHeight,u=1,c=e;u<c;){var T=(u+c)/2|0,ge=this.getVerticalOffsetForLineNumber(T)|0;if(n>=ge+i)u=T+1;else{if(n>=ge)return T;c=T}}return u>e?e:u},L.prototype.getLinesViewportData=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0;var i=this._lineHeight,u=this.getLineNumberAtOrAfterVerticalOffset(n)|0,c=this.getVerticalOffsetForLineNumber(u)|0,T=this._lineCount|0,ge=this.getFirstWhitespaceIndexAfterLineNumber(u)|0,le=this.getWhitespacesCount()|0,ze,st;ge===-1?(ge=le,st=T+1,ze=0):(st=this.getAfterLineNumberForWhitespaceIndex(ge)|0,ze=this.getHeightForWhitespaceIndex(ge)|0);var ht=c,y=ht,d=5e5,l=0;c>=d&&(l=Math.floor(c/d)*d,l=Math.floor(l/i)*i,y-=l);for(var b=[],S=n+(e-n)/2,C=-1,$=u;$<=T;$++){if(C===-1){var Be=ht,rt=ht+i;(Be<=S&&S<rt||Be>S)&&(C=$)}for(ht+=i,b[$-u]=y,y+=i;st===$;)y+=ze,ht+=ze,ge++,ge>=le?st=T+1:(st=this.getAfterLineNumberForWhitespaceIndex(ge)|0,ze=this.getHeightForWhitespaceIndex(ge)|0);if(ht>=e){T=$;break}}C===-1&&(C=T);var xe=this.getVerticalOffsetForLineNumber(T)|0,ut=u,Nt=T;return ut<Nt&&(c<n&&ut++),ut<Nt&&(xe+i>e&&Nt--),{bigNumbersDelta:l,startLineNumber:u,endLineNumber:T,relativeVerticalOffset:b,centeredLineNumber:C,completelyVisibleStartLineNumber:ut,completelyVisibleEndLineNumber:Nt}},L.prototype.getVerticalOffsetForWhitespaceIndex=function(n){this._checkPendingChanges(),n=n|0;var e=this.getAfterLineNumberForWhitespaceIndex(n),i;e>=1?i=this._lineHeight*e:i=0;var u;return n>0?u=this.getWhitespacesAccumulatedHeight(n-1):u=0,i+u},L.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(n){this._checkPendingChanges(),n=n|0;var e=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var u=this.getVerticalOffsetForWhitespaceIndex(i),c=this.getHeightForWhitespaceIndex(i);if(n>=u+c)return-1;for(;e<i;){var T=Math.floor((e+i)/2),ge=this.getVerticalOffsetForWhitespaceIndex(T),le=this.getHeightForWhitespaceIndex(T);if(n>=ge+le)e=T+1;else{if(n>=ge)return T;i=T}}return e},L.prototype.getWhitespaceAtVerticalOffset=function(n){this._checkPendingChanges(),n=n|0;var e=this.getWhitespaceIndexAtOrAfterVerticallOffset(n);if(e<0)return null;if(e>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(e);if(i>n)return null;var u=this.getHeightForWhitespaceIndex(e),c=this.getIdForWhitespaceIndex(e),T=this.getAfterLineNumberForWhitespaceIndex(e);return{id:c,afterLineNumber:T,verticalOffset:i,height:u}},L.prototype.getWhitespaceViewportData=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(n),u=this.getWhitespacesCount()-1;if(i<0)return[];for(var c=[],T=i;T<=u;T++){var ge=this.getVerticalOffsetForWhitespaceIndex(T),le=this.getHeightForWhitespaceIndex(T);if(ge>=e)break;c.push({id:this.getIdForWhitespaceIndex(T),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(T),verticalOffset:ge,height:le})}return c},L.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},L.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},L.prototype.getIdForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].id},L.prototype.getAfterLineNumberForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].afterLineNumber},L.prototype.getHeightForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].height},L.INSTANCE_COUNT=0,L}(),nr=o("qNAo"),br=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wi=125,Fi=function(){function L(n,e,i,u){n=n|0,e=e|0,i=i|0,u=u|0,n<0&&(n=0),e<0&&(e=0),i<0&&(i=0),u<0&&(u=0),this.width=n,this.contentWidth=e,this.scrollWidth=Math.max(n,e),this.height=i,this.contentHeight=u,this.scrollHeight=Math.max(i,u)}return L.prototype.equals=function(n){return this.width===n.width&&this.contentWidth===n.contentWidth&&this.height===n.height&&this.contentHeight===n.contentHeight},L}(),xo=function(L){br(n,L);function n(e,i){var u=L.call(this)||this;return u._onDidContentSizeChange=u._register(new k.a),u.onDidContentSizeChange=u._onDidContentSizeChange.event,u._dimensions=new Fi(0,0,0,0),u._scrollable=u._register(new na.a(e,i)),u.onDidScroll=u._scrollable.onScroll,u}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))return;var i=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight});var u=i.contentWidth!==e.contentWidth,c=i.contentHeight!==e.contentHeight;(u||c)&&this._onDidContentSizeChange.fire({contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentWidthChanged:u,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}(U.a),Ao=function(L){br(n,L);function n(e,i,u){var c=L.call(this)||this;c._configuration=e;var T=c._configuration.options,ge=T.get(107);return c._linesLayout=new ro(i,T.get(49)),c._scrollable=c._register(new xo(0,u)),c._configureSmoothScrollDuration(),c._scrollable.setScrollDimensions(new Fi(ge.contentWidth,0,ge.height,0)),c.onDidScroll=c._scrollable.onDidScroll,c.onDidContentSizeChange=c._scrollable.onDidContentSizeChange,c._updateHeight(),c}return n.prototype.dispose=function(){L.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)?wi: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 u=i.get(107),c=u.contentWidth,T=u.height,ge=this._scrollable.getScrollDimensions(),le=ge.scrollWidth;this._scrollable.setScrollDimensions(new Fi(c,ge.contentWidth,T,this._getContentHeight(c,T,le)))}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 u=this._configuration.options,c=u.get(78);return c.horizontal===2||e>=i?0:c.horizontalScrollbarSize},n.prototype._getContentHeight=function(e,i,u){var c=this._configuration.options,T=this._linesLayout.getLinesTotalHeight();return c.get(80)?T+=i-c.get(49):T+=this._getHorizontalScrollbarHeight(e,u),T},n.prototype._updateHeight=function(){var e=this._scrollable.getScrollDimensions(),i=e.width,u=e.height,c=e.scrollWidth;this._scrollable.setScrollDimensions(new Fi(i,e.contentWidth,u,this._getContentHeight(i,u,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,u=i.get(108),c=i.get(34);if(u.isViewportWrapping){var T=i.get(107),ge=i.get(54);return e>T.contentWidth+c.typicalHalfwidthCharacterWidth&&(ge.enabled&&ge.side==="right")?e+T.verticalScrollbarWidth:e}else{var le=i.get(79)*c.typicalHalfwidthCharacterWidth,ze=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+le,ze)}},n.prototype.onMaxLineWidthChanged=function(e){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Fi(i.width,this._computeContentWidth(e),i.height,i.contentHeight)),this._updateHeight()},n.prototype.saveState=function(){var e=this._scrollable.getFutureScrollPosition(),i=e.scrollTop,u=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),c=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(u);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 u=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:u.scrollLeft+e,scrollTop:u.scrollTop+i})},n}(U.a),oo=o("tX9W"),Ko=o("LeU+"),No=function(){function L(n,e){this.outputLineIndex=n,this.outputOffset=e}return L}(),so=function(){function L(n,e,i){this.breakOffsets=n,this.breakOffsetsVisibleColumn=e,this.wrappedTextIndentLength=i}return L.getInputOffsetOfOutputPosition=function(n,e,i){return e===0?i:n[e-1]+i},L.getOutputPositionOfInputOffset=function(n,e){for(var i=0,u=n.length-1,c=0,T=0;i<=u;){c=i+(u-i)/2|0;var ge=n[c];if(T=c>0?n[c-1]:0,e<T)u=c-1;else if(e>=ge)i=c+1;else break}return new No(c,e-T)},L}(),Cr=function(){function L(n){this._lines=n}return L.prototype.convertViewPositionToModelPosition=function(n){return this._lines.convertViewPositionToModelPosition(n.lineNumber,n.column)},L.prototype.convertViewRangeToModelRange=function(n){return this._lines.convertViewRangeToModelRange(n)},L.prototype.validateViewPosition=function(n,e){return this._lines.validateViewPosition(n.lineNumber,n.column,e)},L.prototype.validateViewRange=function(n,e){return this._lines.validateViewRange(n,e)},L.prototype.convertModelPositionToViewPosition=function(n){return this._lines.convertModelPositionToViewPosition(n.lineNumber,n.column)},L.prototype.convertModelRangeToViewRange=function(n){return this._lines.convertModelRangeToViewRange(n)},L.prototype.modelPositionIsVisible=function(n){return this._lines.modelPositionIsVisible(n.lineNumber,n.column)},L}(),wr=function(){function L(n){this._counts=n,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return L.prototype._invalidate=function(n){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,n-1)},L.prototype._ensureValid=function(){if(this._isValid)return;for(var n=this._validEndIndex+1,e=this._counts.length;n<e;n++){var i=this._counts[n],u=n>0?this._modelToView[n-1]:0;this._modelToView[n]=u+i;for(var c=0;c<i;c++)this._viewToModel[u+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},L.prototype.changeValue=function(n,e){if(this._counts[n]===e)return;this._counts[n]=e,this._invalidate(n)},L.prototype.removeValues=function(n,e){this._counts.splice(n,e),this._invalidate(n)},L.prototype.insertValues=function(n,e){this._counts=ke.a(this._counts,n,e),this._invalidate(n)},L.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},L.prototype.getAccumulatedValue=function(n){return this._ensureValid(),this._modelToView[n]},L.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)},L}(),vs=function(){function L(n,e,i,u,c,T,ge,le){this.model=n,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=e,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=u,this.tabSize=c,this.wrappingStrategy=T,this.wrappingColumn=ge,this.wrappingIndent=le,this._constructLines(!0,null)}return L.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},L.prototype.createCoordinatesConverter=function(){return new Cr(this)},L.prototype._constructLines=function(n,e){var i=this;this.lines=[],n&&(this.hiddenAreasIds=[]);for(var u=this.model.getLinesContent(),c=u.length,T=this.createLineBreaksComputer(),ge=0;ge<c;ge++)T.addRequest(u[ge],e?e[ge]:null);for(var le=T.finalize(),ze=[],st=this.hiddenAreasIds.map(function($){return i.model.getDecorationRange($)}).sort(Me.a.compareRangesUsingStarts),ht=1,y=0,d=-1,l=d+1<st.length?y+1:c+2,ge=0;ge<c;ge++){var b=ge+1;b===l&&(d++,ht=st[d].startLineNumber,y=st[d].endLineNumber,l=d+1<st.length?y+1:c+2);var S=b>=ht&&b<=y,C=fr(le[ge],!S);ze[ge]=C.getViewLineCount(),this.lines[ge]=C}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new wr(ze)},L.prototype.getHiddenAreas=function(){var n=this;return this.hiddenAreasIds.map(function(e){return n.model.getDecorationRange(e)})},L.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),u=[],c=i[0].startLineNumber,T=i[0].endLineNumber,ge=1,le=i.length;ge<le;ge++){var ze=i[ge];ze.startLineNumber>T+1?(u.push(new Me.a(c,1,T,1)),c=ze.startLineNumber,T=ze.endLineNumber):ze.endLineNumber>T&&(T=ze.endLineNumber)}return u.push(new Me.a(c,1,T,1)),u},L.prototype.setHiddenAreas=function(n){var e=this,i=this._reduceRanges(n),u=this.hiddenAreasIds.map(function(rt){return e.model.getDecorationRange(rt)}).sort(Me.a.compareRangesUsingStarts);if(i.length===u.length){for(var c=!1,T=0;T<i.length;T++)if(!i[T].equalsRange(u[T])){c=!0;break}if(!c)return!1}for(var ge=[],le=0,ze=i;le<ze.length;le++){var st=ze[le];ge.push({range:st,options:oo.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,ge);for(var ht=i,y=1,d=0,l=-1,b=l+1<ht.length?d+1:this.lines.length+2,S=!1,T=0;T<this.lines.length;T++){var C=T+1;C===b&&(l++,y=ht[l].startLineNumber,d=ht[l].endLineNumber,b=l+1<ht.length?d+1:this.lines.length+2);var $=!1;if(C>=y&&C<=d?this.lines[T].isVisible()&&(this.lines[T]=this.lines[T].setVisible(!1),$=!0):(S=!0,this.lines[T].isVisible()||(this.lines[T]=this.lines[T].setVisible(!0),$=!0)),$){var Be=this.lines[T].getViewLineCount();this.prefixSumComputer.changeValue(T,Be)}}return S||this.setHiddenAreas([]),!0},L.prototype.modelPositionIsVisible=function(n,e){return n<1||n>this.lines.length?!1:this.lines[n-1].isVisible()},L.prototype.setTabSize=function(n){return this.tabSize===n?!1:(this.tabSize=n,this._constructLines(!1,null),!0)},L.prototype.setWrappingSettings=function(n,e,i,u){var c=this.fontInfo.equals(n),T=this.wrappingStrategy===e,ge=this.wrappingColumn===i,le=this.wrappingIndent===u;if(c&&T&&ge&&le)return!1;var ze=c&&T&&!ge&&le;this.fontInfo=n,this.wrappingStrategy=e,this.wrappingColumn=i,this.wrappingIndent=u;var st=null;if(ze){st=[];for(var ht=0,y=this.lines.length;ht<y;ht++)st[ht]=this.lines[ht].getLineBreakData()}return this._constructLines(!1,st),!0},L.prototype.createLineBreaksComputer=function(){var n=this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return n.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},L.prototype.onModelFlushed=function(){this._constructLines(!0,null)},L.prototype.onModelLinesDeleted=function(n,e,i){if(n<=this._validModelVersionId)return null;var u=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 Wi(u,c)},L.prototype.onModelLinesInserted=function(n,e,i,u){if(n<=this._validModelVersionId)return null;for(var c=this.getHiddenAreas(),T=!1,ge=new ve.a(e,1),le=0,ze=c;le<ze.length;le++){var st=ze[le];if(st.containsPosition(ge)){T=!0;break}}for(var ht=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,y=0,d=[],l=[],b=0,S=u.length;b<S;b++){var C=fr(u[b],!T);d.push(C);var $=C.getViewLineCount();y+=$,l[b]=$}return this.lines=this.lines.slice(0,e-1).concat(d).concat(this.lines.slice(e-1)),this.prefixSumComputer.insertValues(e-1,l),new Mi(ht,ht+y-1)},L.prototype.onModelLineChanged=function(n,e,i){if(n<=this._validModelVersionId)return[!1,null,null,null];var u=e-1,c=this.lines[u].getViewLineCount(),T=this.lines[u].isVisible(),ge=fr(i,T);this.lines[u]=ge;var le=this.lines[u].getViewLineCount(),ze=!1,st=0,ht=-1,y=0,d=-1,l=0,b=-1;c>le?(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ht=st+le-1,l=ht+1,b=l+(c-le)-1,ze=!0):c<le?(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ht=st+c-1,y=ht+1,d=y+(le-c)-1,ze=!0):(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ht=st+le-1),this.prefixSumComputer.changeValue(u,le);var S=st<=ht?new Ci(st,ht):null,C=y<=d?new Mi(y,d):null,$=l<=b?new Wi(l,b):null;return[ze,S,C,$]},L.prototype.acceptVersionId=function(n){this._validModelVersionId=n,this.lines.length===1&&!this.lines[0].isVisible()&&this.setHiddenAreas([])},L.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},L.prototype._toValidViewLineNumber=function(n){if(n<1)return 1;var e=this.getViewLineCount();return n>e?e:n|0},L.prototype.getActiveIndentGuide=function(n,e,i){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e),i=this._toValidViewLineNumber(i);var u=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),c=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),T=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),ge=this.model.getActiveIndentGuide(u.lineNumber,c.lineNumber,T.lineNumber),le=this.convertModelPositionToViewPosition(ge.startLineNumber,1),ze=this.convertModelPositionToViewPosition(ge.endLineNumber,this.model.getLineMaxColumn(ge.endLineNumber));return{startLineNumber:le.lineNumber,endLineNumber:ze.lineNumber,indent:ge.indent}},L.prototype.getViewLinesIndentGuides=function(n,e){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e);for(var i=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),u=this.convertViewPositionToModelPosition(e,this.getViewLineMaxColumn(e)),c=[],T=[],ge=[],le=i.lineNumber-1,ze=u.lineNumber-1,st=null,ht=le;ht<=ze;ht++){var y=this.lines[ht];if(y.isVisible()){var d=y.getViewLineNumberOfModelPosition(0,ht===le?i.column:1),l=y.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(ht+1)),b=l-d+1,S=0;b>1&&y.getViewLineMinColumn(this.model,ht+1,l)===1&&(S=d===0?1:2),T.push(b),ge.push(S),st===null&&(st=new ve.a(ht+1,0))}else st!==null&&(c=c.concat(this.model.getLinesIndentGuides(st.lineNumber,ht)),st=null)}st!==null&&(c=c.concat(this.model.getLinesIndentGuides(st.lineNumber,u.lineNumber)),st=null);for(var C=e-n+1,$=new Array(C),Be=0,rt=0,xe=c.length;rt<xe;rt++){var ut=c[rt],b=Math.min(C-Be,T[rt]),S=ge[rt],Nt=void 0;S===2?Nt=0:S===1?Nt=1:Nt=b;for(var qt=0;qt<b;qt++)qt===Nt&&(ut=0),$[Be++]=ut}return $},L.prototype.getViewLineContent=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,u=e.remainder;return this.lines[i].getViewLineContent(this.model,i+1,u)},L.prototype.getViewLineLength=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,u=e.remainder;return this.lines[i].getViewLineLength(this.model,i+1,u)},L.prototype.getViewLineMinColumn=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,u=e.remainder;return this.lines[i].getViewLineMinColumn(this.model,i+1,u)},L.prototype.getViewLineMaxColumn=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,u=e.remainder;return this.lines[i].getViewLineMaxColumn(this.model,i+1,u)},L.prototype.getViewLineData=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,u=e.remainder;return this.lines[i].getViewLineData(this.model,i+1,u)},L.prototype.getViewLinesData=function(n,e,i){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e);for(var u=this.prefixSumComputer.getIndexOf(n-1),c=n,T=u.index,ge=u.remainder,le=[],ze=T,st=this.model.getLineCount();ze<st;ze++){var ht=this.lines[ze];if(!ht.isVisible())continue;var y=ze===T?ge:0,d=ht.getViewLineCount()-y,l=!1;c+d>e&&(l=!0,d=e-c+1);var b=y+d;if(ht.getViewLinesData(this.model,ze+1,y,b,c-n,i,le),c+=d,l)break}return le},L.prototype.validateViewPosition=function(n,e,i){n=this._toValidViewLineNumber(n);var u=this.prefixSumComputer.getIndexOf(n-1),c=u.index,T=u.remainder,ge=this.lines[c],le=ge.getViewLineMinColumn(this.model,c+1,T),ze=ge.getViewLineMaxColumn(this.model,c+1,T);e<le&&(e=le),e>ze&&(e=ze);var st=ge.getModelColumnOfViewPosition(T,e),ht=this.model.validatePosition(new ve.a(c+1,st));return ht.equals(i)?new ve.a(n,e):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},L.prototype.validateViewRange=function(n,e){var i=this.validateViewPosition(n.startLineNumber,n.startColumn,e.getStartPosition()),u=this.validateViewPosition(n.endLineNumber,n.endColumn,e.getEndPosition());return new Me.a(i.lineNumber,i.column,u.lineNumber,u.column)},L.prototype.convertViewPositionToModelPosition=function(n,e){n=this._toValidViewLineNumber(n);var i=this.prefixSumComputer.getIndexOf(n-1),u=i.index,c=i.remainder,T=this.lines[u].getModelColumnOfViewPosition(c,e);return this.model.validatePosition(new ve.a(u+1,T))},L.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)},L.prototype.convertModelPositionToViewPosition=function(n,e){for(var i=this.model.validatePosition(new ve.a(n,e)),u=i.lineNumber,c=i.column,T=u-1,ge=!1;T>0&&!this.lines[T].isVisible();)T--,ge=!0;if(T===0&&!this.lines[T].isVisible())return new ve.a(1,1);var le=1+(T===0?0:this.prefixSumComputer.getAccumulatedValue(T-1)),ze;return ge?ze=this.lines[T].getViewPositionOfModelPosition(le,this.model.getLineMaxColumn(T+1)):ze=this.lines[u-1].getViewPositionOfModelPosition(le,c),ze},L.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)},L.prototype._getViewLineNumberForModelPosition=function(n,e){var i=n-1;if(this.lines[i].isVisible()){var u=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(u,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))},L.prototype.getAllOverviewRulerDecorations=function(n,e,i){for(var u=this.model.getOverviewRulerDecorations(n,e),c=new bo,T=0,ge=u;T<ge.length;T++){var le=ge[T],ze=le.options.overviewRuler,st=ze?ze.position:0;if(st===0)continue;var ht=ze.getColor(i),y=this._getViewLineNumberForModelPosition(le.range.startLineNumber,le.range.startColumn),d=this._getViewLineNumberForModelPosition(le.range.endLineNumber,le.range.endColumn);c.accept(ht,y,d,st)}return c.result},L.prototype.getDecorationsInRange=function(n,e,i){var u=this.convertViewPositionToModelPosition(n.startLineNumber,n.startColumn),c=this.convertViewPositionToModelPosition(n.endLineNumber,n.endColumn);if(c.lineNumber-u.lineNumber<=n.endLineNumber-n.startLineNumber)return this.model.getDecorationsInRange(new Me.a(u.lineNumber,1,c.lineNumber,c.column),e,i);for(var T=[],ge=u.lineNumber-1,le=c.lineNumber-1,ze=null,st=ge;st<=le;st++){var ht=this.lines[st];if(ht.isVisible())ze===null&&(ze=new ve.a(st+1,st===ge?u.column:1));else if(ze!==null){var y=this.model.getLineMaxColumn(st);T=T.concat(this.model.getDecorationsInRange(new Me.a(ze.lineNumber,ze.column,st,y),e,i)),ze=null}}ze!==null&&(T=T.concat(this.model.getDecorationsInRange(new Me.a(ze.lineNumber,ze.column,c.lineNumber,c.column),e,i)),ze=null),T.sort(function(rt,xe){var ut=Me.a.compareRangesUsingStarts(rt.range,xe.range);return ut===0?rt.id<xe.id?-1:rt.id>xe.id?1:0:ut});for(var d=[],l=0,b=null,S=0,C=T;S<C.length;S++){var $=C[S],Be=$.id;if(b===Be)continue;b=Be,d[l++]=$}return d},L}(),hr=function(){function L(){}return L.prototype.isVisible=function(){return!0},L.prototype.setVisible=function(n){return n?this:ao.INSTANCE},L.prototype.getLineBreakData=function(){return null},L.prototype.getViewLineCount=function(){return 1},L.prototype.getViewLineContent=function(n,e,i){return n.getLineContent(e)},L.prototype.getViewLineLength=function(n,e,i){return n.getLineLength(e)},L.prototype.getViewLineMinColumn=function(n,e,i){return n.getLineMinColumn(e)},L.prototype.getViewLineMaxColumn=function(n,e,i){return n.getLineMaxColumn(e)},L.prototype.getViewLineData=function(n,e,i){var u=n.getLineTokens(e),c=u.getLineContent();return new nr.c(c,!1,1,c.length+1,0,u.inflate())},L.prototype.getViewLinesData=function(n,e,i,u,c,T,ge){if(!T[c]){ge[c]=null;return}ge[c]=this.getViewLineData(n,e,0)},L.prototype.getModelColumnOfViewPosition=function(n,e){return e},L.prototype.getViewPositionOfModelPosition=function(n,e){return new ve.a(n,e)},L.prototype.getViewLineNumberOfModelPosition=function(n,e){return n},L.INSTANCE=new L,L}(),ao=function(){function L(){}return L.prototype.isVisible=function(){return!1},L.prototype.setVisible=function(n){return n?hr.INSTANCE:this},L.prototype.getLineBreakData=function(){return null},L.prototype.getViewLineCount=function(){return 0},L.prototype.getViewLineContent=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLineLength=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLineMinColumn=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLineMaxColumn=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLineData=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLinesData=function(n,e,i,u,c,T,ge){throw new Error("Not supported")},L.prototype.getModelColumnOfViewPosition=function(n,e){throw new Error("Not supported")},L.prototype.getViewPositionOfModelPosition=function(n,e){throw new Error("Not supported")},L.prototype.getViewLineNumberOfModelPosition=function(n,e){throw new Error("Not supported")},L.INSTANCE=new L,L}(),Ws=function(){function L(n,e){this._lineBreakData=n,this._isVisible=e}return L.prototype.isVisible=function(){return this._isVisible},L.prototype.setVisible=function(n){return this._isVisible=n,this},L.prototype.getLineBreakData=function(){return this._lineBreakData},L.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},L.prototype.getInputStartOffsetOfOutputLineIndex=function(n){return so.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n,0)},L.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)},L.prototype.getViewLineContent=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var u=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),T=n.getValueInRange({startLineNumber:e,startColumn:u+1,endLineNumber:e,endColumn:c+1});return i>0&&(T=Er(this._lineBreakData.wrappedTextIndentLength)+T),T},L.prototype.getViewLineLength=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var u=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),T=c-u;return i>0&&(T=this._lineBreakData.wrappedTextIndentLength+T),T},L.prototype.getViewLineMinColumn=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},L.prototype.getViewLineMaxColumn=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(n,e,i).length+1},L.prototype.getViewLineData=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var u=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),T=n.getValueInRange({startLineNumber:e,startColumn:u+1,endLineNumber:e,endColumn:c+1});i>0&&(T=Er(this._lineBreakData.wrappedTextIndentLength)+T);var ge=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,le=T.length+1,ze=i+1<this.getViewLineCount(),st=0;i>0&&(st=this._lineBreakData.wrappedTextIndentLength);var ht=n.getLineTokens(e),y=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new nr.c(T,ze,ge,le,y,ht.sliceAndInflate(u,c,st))},L.prototype.getViewLinesData=function(n,e,i,u,c,T,ge){if(!this._isVisible)throw new Error("Not supported");for(var le=i;le<u;le++){var ze=c+le-i;if(!T[ze]){ge[ze]=null;continue}ge[ze]=this.getViewLineData(n,e,le)}},L.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},L.prototype.getViewPositionOfModelPosition=function(n,e){if(!this._isVisible)throw new Error("Not supported");var i=so.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,e-1),u=i.outputLineIndex,c=i.outputOffset+1;return u>0&&(c+=this._lineBreakData.wrappedTextIndentLength),new ve.a(n+u,c)},L.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},L}(),Wr=[""];function Er(L){if(L>=Wr.length)for(var n=1;n<=L;n++)Wr[n]=Bs(n);return Wr[L]}function Bs(L){return new Array(L+1).join(" ")}function fr(L,n){return L===null?n?hr.INSTANCE:ao.INSTANCE:new Ws(L,n)}var lo=function(){function L(n){this._lines=n}return L.prototype._validPosition=function(n){return this._lines.model.validatePosition(n)},L.prototype._validRange=function(n){return this._lines.model.validateRange(n)},L.prototype.convertViewPositionToModelPosition=function(n){return this._validPosition(n)},L.prototype.convertViewRangeToModelRange=function(n){return this._validRange(n)},L.prototype.validateViewPosition=function(n,e){return this._validPosition(e)},L.prototype.validateViewRange=function(n,e){return this._validRange(e)},L.prototype.convertModelPositionToViewPosition=function(n){return this._validPosition(n)},L.prototype.convertModelRangeToViewRange=function(n){return this._validRange(n)},L.prototype.modelPositionIsVisible=function(n){var e=this._lines.model.getLineCount();return!(n.lineNumber<1||n.lineNumber>e)},L}(),Us=function(){function L(n){this.model=n}return L.prototype.dispose=function(){},L.prototype.createCoordinatesConverter=function(){return new lo(this)},L.prototype.getHiddenAreas=function(){return[]},L.prototype.setHiddenAreas=function(n){return!1},L.prototype.setTabSize=function(n){return!1},L.prototype.setWrappingSettings=function(n,e,i,u){return!1},L.prototype.createLineBreaksComputer=function(){var n=[];return{addRequest:function(i,u){n.push(null)},finalize:function(){return n}}},L.prototype.onModelFlushed=function(){},L.prototype.onModelLinesDeleted=function(n,e,i){return new Wi(e,i)},L.prototype.onModelLinesInserted=function(n,e,i,u){return new Mi(e,i)},L.prototype.onModelLineChanged=function(n,e,i){return[!1,new Ci(e,e),null,null]},L.prototype.acceptVersionId=function(n){},L.prototype.getViewLineCount=function(){return this.model.getLineCount()},L.prototype.getActiveIndentGuide=function(n,e,i){return{startLineNumber:n,endLineNumber:n,indent:0}},L.prototype.getViewLinesIndentGuides=function(n,e){for(var i=e-n+1,u=new Array(i),c=0;c<i;c++)u[c]=0;return u},L.prototype.getViewLineContent=function(n){return this.model.getLineContent(n)},L.prototype.getViewLineLength=function(n){return this.model.getLineLength(n)},L.prototype.getViewLineMinColumn=function(n){return this.model.getLineMinColumn(n)},L.prototype.getViewLineMaxColumn=function(n){return this.model.getLineMaxColumn(n)},L.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())},L.prototype.getViewLinesData=function(n,e,i){var u=this.model.getLineCount();n=Math.min(Math.max(1,n),u),e=Math.min(Math.max(1,e),u);for(var c=[],T=n;T<=e;T++){var ge=T-n;i[ge]||(c[ge]=null),c[ge]=this.getViewLineData(T)}return c},L.prototype.getAllOverviewRulerDecorations=function(n,e,i){for(var u=this.model.getOverviewRulerDecorations(n,e),c=new bo,T=0,ge=u;T<ge.length;T++){var le=ge[T],ze=le.options.overviewRuler,st=ze?ze.position:0;if(st===0)continue;var ht=ze.getColor(i),y=le.range.startLineNumber,d=le.range.endLineNumber;c.accept(ht,y,d,st)}return c.result},L.prototype.getDecorationsInRange=function(n,e,i){return this.model.getDecorationsInRange(n,e,i)},L}(),bo=function(){function L(){this.result=Object.create(null)}return L.prototype.accept=function(n,e,i,u){var c=this.result[n];if(c){var T=c[c.length-3],ge=c[c.length-1];if(T===u&&ge+1>=e){i>ge&&(c[c.length-1]=i);return}c.push(u,e,i)}else this.result[n]=[u,e,i]},L}(),Vs=function(){function L(n,e,i,u,c){this.editorId=n,this.model=e,this.configuration=i,this._linesCollection=u,this._coordinatesConverter=c,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return L.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},L.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype._getOrCreateViewModelDecoration=function(n){var e=n.id,i=this._decorationsCache[e];if(!i){var u=n.range,c=n.options,T=void 0;if(c.isWholeLine){var ge=this._coordinatesConverter.convertModelPositionToViewPosition(new ve.a(u.startLineNumber,1)),le=this._coordinatesConverter.convertModelPositionToViewPosition(new ve.a(u.endLineNumber,this.model.getLineMaxColumn(u.endLineNumber)));T=new Me.a(ge.lineNumber,ge.column,le.lineNumber,le.column)}else T=this._coordinatesConverter.convertModelRangeToViewRange(u);i=new nr.e(T,c),this._decorationsCache[e]=i}return i},L.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},L.prototype._getDecorationsViewportData=function(n){for(var e=this._linesCollection.getDecorationsInRange(n,this.editorId,Object(Et.j)(this.configuration.options)),i=n.startLineNumber,u=n.endLineNumber,c=[],T=0,ge=[],le=i;le<=u;le++)ge[le-i]=[];for(var ze=0,st=e.length;ze<st;ze++){var ht=e[ze],y=ht.options,d=this._getOrCreateViewModelDecoration(ht),l=d.range;if(c[T++]=d,y.inlineClassName)for(var b=new nr.a(l,y.inlineClassName,y.inlineClassNameAffectsLetterSpacing?3:0),S=Math.max(i,l.startLineNumber),C=Math.min(u,l.endLineNumber),le=S;le<=C;le++)ge[le-i].push(b);if(y.beforeContentClassName&&(i<=l.startLineNumber&&l.startLineNumber<=u)){var b=new nr.a(new Me.a(l.startLineNumber,l.startColumn,l.startLineNumber,l.startColumn),y.beforeContentClassName,1);ge[l.startLineNumber-i].push(b)}if(y.afterContentClassName&&(i<=l.endLineNumber&&l.endLineNumber<=u)){var b=new nr.a(new Me.a(l.endLineNumber,l.endColumn,l.endLineNumber,l.endColumn),y.afterContentClassName,2);ge[l.endLineNumber-i].push(b)}}return{decorations:c,inlineDecorations:ge}},L}(),Lr=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hs=!0,Br=function(L){Lr(n,L);function n(e,i,u,c,T,ge){var le=L.call(this)||this;if(le.editorId=e,le.configuration=i,le.model=u,le._tokenizeViewportSoon=le._register(new H.d(function(){return le.tokenizeViewport()},50)),le.hasFocus=!1,le.viewportStartLine=-1,le.viewportStartLineTrackedRange=null,le.viewportStartLineDelta=0,Hs&&le.model.isTooLargeForTokenization())le.lines=new Us(le.model);else{var ze=le.configuration.options,st=ze.get(34),ht=ze.get(103),y=ze.get(108),d=ze.get(102);le.lines=new vs(le.model,c,T,st,le.model.getOptions().tabSize,ht,y.wrappingColumn,d)}return le.coordinatesConverter=le.lines.createCoordinatesConverter(),le.viewLayout=le._register(new Ao(le.configuration,le.getLineCount(),ge)),le._register(le.viewLayout.onDidScroll(function(l){l.scrollTopChanged&&le._tokenizeViewportSoon.schedule();try{var b=le._beginEmit();b.emit(new Bi(l))}finally{le._endEmit()}})),le._register(le.viewLayout.onDidContentSizeChange(function(l){try{var b=le._beginEmit();b.emit(new Hi(l))}finally{le._endEmit()}})),le.decorations=new Vs(le.editorId,le.model,le.configuration,le.lines,le.coordinatesConverter),le._registerModelEvents(),le._register(le.configuration.onDidChange(function(l){try{var b=le._beginEmit();le._onConfigurationChanged(b,l)}finally{le._endEmit()}})),le._register(Vr.getInstance().onDidChange(function(){try{var l=le._beginEmit();l.emit(new or)}finally{le._endEmit()}})),le}return n.prototype.dispose=function(){L.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 ve.a(e.startLineNumber,1)),u=this.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(e.endLineNumber,1));this.model.tokenizeViewport(i.lineNumber,u.lineNumber)},n.prototype.setHasFocus=function(e){this.hasFocus=e},n.prototype._onConfigurationChanged=function(e,i){var u=null;if(this.viewportStartLine!==-1){var c=new ve.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));u=this.coordinatesConverter.convertViewPositionToModelPosition(c)}var T=!1,ge=this.configuration.options,le=ge.get(34),ze=ge.get(103),st=ge.get(108),ht=ge.get(102);if(this.lines.setWrappingSettings(le,ze,st.wrappingColumn,ht)&&(e.emit(new Ii),e.emit(new Un),e.emit(new Zn),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(T=!0)),i.hasChanged(68)&&(this.decorations.reset(),e.emit(new Zn)),e.emit(new ci(i)),this.viewLayout.onConfigurationChanged(i),T&&u){var y=this.coordinatesConverter.convertModelPositionToViewPosition(u),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 u=e._beginEmit(),c=!1,T=!1,ge=i.changes,le=i.versionId,ze=e.lines.createLineBreaksComputer(),st=0,ht=ge;st<ht.length;st++){var y=ht[st];switch(y.changeType){case 4:{for(var d=0,l=y.detail;d<l.length;d++){var b=l[d];ze.addRequest(b,null)}break}case 2:{ze.addRequest(y.detail,null);break}}}for(var S=ze.finalize(),C=0,$=0,Be=ge;$<Be.length;$++){var y=Be[$];switch(y.changeType){case 1:{e.lines.onModelFlushed(),u.emit(new Ii),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),c=!0;break}case 3:{var rt=e.lines.onModelLinesDeleted(le,y.fromLineNumber,y.toLineNumber);rt!==null&&(u.emit(rt),e.viewLayout.onLinesDeleted(rt.fromLineNumber,rt.toLineNumber)),c=!0;break}case 4:{var xe=S.slice(C,C+y.detail.length);C+=y.detail.length;var ut=e.lines.onModelLinesInserted(le,y.fromLineNumber,y.toLineNumber,xe);ut!==null&&(u.emit(ut),e.viewLayout.onLinesInserted(ut.fromLineNumber,ut.toLineNumber)),c=!0;break}case 2:{var Nt=S[C];C++;var qt=e.lines.onModelLineChanged(le,y.lineNumber,Nt),en=qt[0],dn=qt[1],ut=qt[2],rt=qt[3];T=en,dn&&u.emit(dn),ut&&(u.emit(ut),e.viewLayout.onLinesInserted(ut.fromLineNumber,ut.toLineNumber)),rt&&(u.emit(rt),e.viewLayout.onLinesDeleted(rt.fromLineNumber,rt.toLineNumber));break}case 5:break}}e.lines.acceptVersionId(le),e.viewLayout.onHeightMaybeChanged(),!c&&T&&(u.emit(new Un),u.emit(new Zn),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 Cn=e.coordinatesConverter.convertModelPositionToViewPosition(an.getStartPosition()),In=e.viewLayout.getVerticalOffsetForLineNumber(Cn.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:In+e.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var u=[],c=0,T=i.ranges.length;c<T;c++){var ge=i.ranges[c],le=e.coordinatesConverter.convertModelPositionToViewPosition(new ve.a(ge.fromLineNumber,1)).lineNumber,ze=e.coordinatesConverter.convertModelPositionToViewPosition(new ve.a(ge.toLineNumber,e.model.getLineMaxColumn(ge.toLineNumber))).lineNumber;u[c]={fromLineNumber:le,toLineNumber:ze}}try{var st=e._beginEmit();st.emit(new qi(u))}finally{e._endEmit()}i.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(i){try{var u=e._beginEmit();u.emit(new ji)}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 u=e._beginEmit();u.emit(new Ii),u.emit(new Un),u.emit(new Zn)}finally{e._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(i){e.decorations.onModelDecorationsChanged();try{var u=e._beginEmit();u.emit(new Zn)}finally{e._endEmit()}}))},n.prototype.setHiddenAreas=function(e){try{var i=this._beginEmit(),u=this.lines.setHiddenAreas(e);u&&(i.emit(new Ii),i.emit(new Un),i.emit(new Zn),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),u=this.lines.getHiddenAreas();if(u.length===0)return[i];for(var c=[],T=0,ge=i.startLineNumber,le=i.startColumn,ze=i.endLineNumber,st=i.endColumn,ht=0,y=u.length;ht<y;ht++){var d=u[ht].startLineNumber,l=u[ht].endLineNumber;if(l<ge)continue;if(d>ze)continue;ge<d&&(c[T++]=new Me.a(ge,le,d-1,this.model.getLineMaxColumn(d-1))),ge=l+1,le=1}return(ge<ze||ge===ze&&le<st)&&(c[T++]=new Me.a(ge,le,ze,st)),c},n.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),i=e.completelyVisibleStartLineNumber,u=e.completelyVisibleEndLineNumber;return new Me.a(i,this.getLineMinColumn(i),u,this.getLineMaxColumn(u))},n.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var i=this.viewLayout.getLinesViewportDataAtScrollTop(e),u=i.completelyVisibleStartLineNumber,c=i.completelyVisibleEndLineNumber;return new Me.a(u,this.getLineMinColumn(u),c,this.getLineMaxColumn(c))},n.prototype.saveState=function(){var e=this.viewLayout.saveState(),i=e.scrollTop,u=this.viewLayout.getLineNumberAtVerticalOffset(i),c=this.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(u,this.getLineMinColumn(u))),T=this.viewLayout.getVerticalOffsetForLineNumber(u)-i;return{scrollLeft:e.scrollLeft,firstPosition:c,firstPositionDeltaTop:T}},n.prototype.reduceRestoreState=function(e){if(typeof e.firstPosition=="undefined")return this._reduceRestoreStateCompatibility(e);var i=this.model.validatePosition(e.firstPosition),u=this.coordinatesConverter.convertModelPositionToViewPosition(i),c=this.viewLayout.getVerticalOffsetForLineNumber(u.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,u){this.viewportStartLine=e;var c=this.coordinatesConverter.convertViewPositionToModelPosition(new ve.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 T=this.viewLayout.getVerticalOffsetForLineNumber(e),ge=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=ge-T},n.prototype.getActiveIndentGuide=function(e,i,u){return this.lines.getActiveIndentGuide(e,i,u)},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 u=this.model.mightContainRTL(),c=this.model.mightContainNonBasicASCII(),T=this.getTabSize(),ge=this.lines.getViewLineData(i),le=this.decorations.getDecorationsViewportData(e).inlineDecorations,ze=le[i-e.startLineNumber];return new nr.d(ge.minColumn,ge.maxColumn,ge.content,ge.continuesWithWrappedLine,u,c,ge.tokens,ze,T,ge.startVisibleColumn)},n.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},n.prototype.getMinimapLinesRenderingData=function(e,i,u){var c=this.lines.getViewLinesData(e,i,u);return new nr.b(this.getTabSize(),c)},n.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(Et.j)(this.configuration.options),e)},n.prototype.invalidateOverviewRulerColorCache=function(){for(var e=this.model.getOverviewRulerDecorations(),i=0,u=e;i<u.length;i++){var c=u[i],T=c.options.overviewRuler;T&&T.invalidateCachedColor()}},n.prototype.invalidateMinimapColorCache=function(){for(var e=this.model.getAllDecorations(),i=0,u=e;i<u.length;i++){var c=u[i],T=c.options.minimap;T&&T.invalidateCachedColor()}},n.prototype.getValueInRange=function(e,i){var u=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(u,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,u){var c=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(i<0?i-=u:i+=u);var T=this.model.getOffsetAt(c),ge=T+i;return this.model.getPositionAt(ge)},n.prototype.getEOL=function(){return this.model.getEOL()},n.prototype.getPlainTextToCopy=function(e,i,u){var c=u?`\r
`:this.model.getEOL();e=e.slice(0),e.sort(Me.a.compareRangesUsingStarts);for(var T=!1,ge=!1,le=0,ze=e;le<ze.length;le++){var st=ze[le];st.isEmpty()?T=!0:ge=!0}if(!ge){if(!i)return"";for(var ht=e.map(function(Nt){return Nt.startLineNumber}),y="",d=0;d<ht.length;d++){if(d>0&&ht[d-1]===ht[d])continue;y+=this.model.getLineContent(ht[d])+c}return y}if(T&&i){for(var l=[],b=0,S=0,C=e;S<C.length;S++){var $=C[S],Be=$.startLineNumber;$.isEmpty()?Be!==b&&l.push(this.model.getLineContent(Be)):l.push(this.model.getValueInRange($,u?2:0)),b=Be}return l.length===1?l[0]:l}for(var rt=[],xe=0,ut=e;xe<ut.length;xe++){var $=ut[xe];$.isEmpty()||rt.push(this.model.getValueInRange($,u?2:0))}return rt.length===1?rt[0]:rt},n.prototype.getRichTextToCopy=function(e,i){var u=this.model.getLanguageIdentifier();if(u.id===1)return null;if(e.length!==1)return null;var c=e[0];if(c.isEmpty()){if(!i)return null;var T=c.startLineNumber;c=new Me.a(T,this.model.getLineMinColumn(T),T,this.model.getLineMaxColumn(T))}var ge=this.configuration.options.get(34),le=this._getColorMap(),ze=ge.fontFamily===Et.b.fontFamily?ge.fontFamily:"'"+ge.fontFamily+"', "+Et.b.fontFamily;return{mode:u.language,html:'<div style="'+("color: "+le[1]+";")+("background-color: "+le[2]+";")+("font-family: "+ze+";")+("font-weight: "+ge.fontWeight+";")+("font-size: "+ge.fontSize+"px;")+("line-height: "+ge.lineHeight+"px;")+'white-space: pre;">'+this._getHTMLToCopy(c,le)+"</div>"}},n.prototype._getHTMLToCopy=function(e,i){for(var u=e.startLineNumber,c=e.startColumn,T=e.endLineNumber,ge=e.endColumn,le=this.getTabSize(),ze="",st=u;st<=T;st++){var ht=this.model.getLineTokens(st),y=ht.getLineContent(),d=st===u?c-1:0,l=st===T?ge-1:y.length;y===""?ze+="<br>":ze+=Object(js.a)(y,ht.inflate(),i,d,l,le,K.h)}return ze},n.prototype._getColorMap=function(){var e=Hn.y.getColorMap(),i=["#000000"];if(e)for(var u=1,c=e.length;u<c;u++)i[u]=mo.a.Format.CSS.formatHex(e[u]);return i},n}(Di),ys=o("nnTU"),bs=o("T8No"),Go=o("Cg/j"),Ur=o("8HsV"),Cs=o("sM1p"),Zr=o("R3nR"),Tr=o("746U"),Yi=o("MXAL"),$r=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xo=function(L){$r(n,L);function n(e,i){for(var u=L.call(this,0)||this,c=0;c<e.length;c++)u.set(e.charCodeAt(c),1);for(var c=0;c<i.length;c++)u.set(i.charCodeAt(c),2);return u}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}(Yi.a),xr=[],Yo=[],Qr=function(){function L(n,e){this.classifier=new Xo(n,e)}return L.create=function(n){return new L(n.get(99),n.get(98))},L.prototype.createLineBreaksComputer=function(n,e,i,u){var c=this;e=e|0,i=+i;var T=[],ge=[];return{addRequest:function(ze,st){T.push(ze),ge.push(st)},finalize:function(){for(var ze=n.typicalFullwidthCharacterWidth/n.typicalHalfwidthCharacterWidth,st=[],ht=0,y=T.length;ht<y;ht++){var d=ge[ht];d?st[ht]=Dr(c.classifier,d,T[ht],e,i,ze,u):st[ht]=Zo(c.classifier,T[ht],e,i,ze,u)}return xr.length=0,Yo.length=0,st}}},L}();function Dr(L,n,e,i,u,c,T){if(u===-1)return null;var ge=e.length;if(ge<=1)return null;var le=n.breakOffsets,ze=n.breakOffsetsVisibleColumn,st=_i(e,i,u,c,T),ht=u-st,y=xr,d=Yo,l=0,b=u,S=le.length,C=0;if(C>=0)for(var $=Math.abs(ze[C]-b);C+1<S;){var Be=Math.abs(ze[C+1]-b);if(Be>=$)break;$=Be,C++}for(;C<S;){var rt=C<0?0:le[C],xe=C<0?0:ze[C],ut=0,Nt=0,qt=0,en=0;if(xe<=b){for(var dn=xe,an=e.charCodeAt(rt-1),Cn=L.get(an),In=!0,Nn=rt;Nn<ge;Nn++){var ti=Nn,Dn=e.charCodeAt(Nn),ui=void 0,qn=void 0;if(Kn.z(Dn)?(Nn++,ui=0,qn=2):(ui=L.get(Dn),qn=Jr(Dn,dn,i,c)),pr(an,Cn,Dn,ui)&&(ut=ti,Nt=dn),dn+=qn,dn>b){qt=ti,en=dn-qn,dn-Nt>ht&&(ut=0),In=!1;break}an=Dn,Cn=ui}if(In){l>0&&(y[l]=le[le.length-1],d[l]=ze[le.length-1],l++);break}}if(ut===0){for(var dn=xe,Dn=e.charCodeAt(rt),ui=L.get(Dn),Ri=!1,Nn=rt-1;Nn>=0;Nn--){var ti=Nn+1,an=e.charCodeAt(Nn);if(an===9){Ri=!0;break}var Cn=void 0,li=void 0;if(Kn.A(an)?(Nn--,Cn=0,li=2):(Cn=L.get(an),li=Kn.y(an)?c:1),dn<=b){if(qt===0&&(qt=ti,en=dn),dn<=b-ht)break;if(pr(an,Cn,Dn,ui)){ut=ti,Nt=dn;break}}dn-=li,Dn=an,ui=Cn}if(ut!==0){var gr=ht-(en-Nt);if(gr<=i){var Li=e.charCodeAt(qt),qn=void 0;Kn.z(Li)?qn=2:qn=Jr(Li,en,i,c),gr-qn<0&&(ut=0)}}if(Ri){C--;continue}}for(ut===0&&(ut=qt,Nt=en),y[l]=ut,d[l]=Nt,l++,b=Nt+ht;C<0||C<S&&ze[C]<Nt;)C++;for(var $=Math.abs(ze[C]-b);C+1<S;){var Be=Math.abs(ze[C+1]-b);if(Be>=$)break;$=Be,C++}}return l===0?null:(y.length=l,d.length=l,xr=n.breakOffsets,Yo=n.breakOffsetsVisibleColumn,n.breakOffsets=y,n.breakOffsetsVisibleColumn=d,n.wrappedTextIndentLength=st,n)}function Zo(L,n,e,i,u,c){if(i===-1)return null;var T=n.length;if(T<=1)return null;var ge=_i(n,e,i,u,c),le=i-ge,ze=[],st=[],ht=0,y=0,d=0,l=i,b=n.charCodeAt(0),S=L.get(b),C=Jr(b,0,e,u),$=1;Kn.z(b)&&(C+=1,b=n.charCodeAt(1),S=L.get(b),$++);for(var Be=$;Be<T;Be++){var rt=Be,xe=n.charCodeAt(Be),ut=void 0,Nt=void 0;Kn.z(xe)?(Be++,ut=0,Nt=2):(ut=L.get(xe),Nt=Jr(xe,C,e,u)),pr(b,S,xe,ut)&&(y=rt,d=C),C+=Nt,C>l&&((y===0||C-d>le)&&(y=rt,d=C-Nt),ze[ht]=y,st[ht]=d,ht++,l=d+le,y=0),b=xe,S=ut}return ht===0?null:(ze[ht]=T,st[ht]=C,new so(ze,st,ge))}function Jr(L,n,e,i){return L===9?e-n%e:Kn.y(L)?i:1}function uo(L,n){return n-L%n}function pr(L,n,e,i){return e!==32&&(n===2||n===3&&i!==2||i===1||i===3&&n!==1)}function _i(L,n,e,i,u){var c=0;if(u!==0){var T=Kn.q(L);if(T!==-1){for(var ge=0;ge<T;ge++){var le=L.charCodeAt(ge)===9?uo(c,n):1;c+=le}for(var ze=u===3?2:u===2?1:0,ge=0;ge<ze;ge++){var le=uo(c,n);c+=le}c+i>e&&(c=0)}}return c}var Zi=function(){function L(){}return L.create=function(){return new L},L.prototype.createLineBreaksComputer=function(n,e,i,u){e=e|0,i=+i;var c=[];return{addRequest:function(ge,le){c.push(ge)},finalize:function(){return vr(c,n,e,i,u)}}},L}();function vr(L,n,e,i,u){if(i===-1){for(var c=[],T=0,ge=L.length;T<ge;T++)c[T]=null;return c}var le=Math.round(i*n.typicalHalfwidthCharacterWidth);(u===2||u===3)&&(u=1);var ze=document.createElement("div");G.a.applyFontInfoSlow(ze,n);for(var st=Object(xt.a)(1e4),ht=[],y=[],d=[],l=[],b=[],T=0;T<L.length;T++){var S=L[T],C=0,$=0,Be=le;if(u!==0)if(C=Kn.q(S),C===-1)C=0;else{for(var rt=0;rt<C;rt++){var xe=S.charCodeAt(rt)===9?e-$%e:1;$+=xe}var ut=Math.ceil(n.spaceWidth*$);ut+n.typicalFullwidthCharacterWidth>le?(C=0,$=0):Be=le-ut}var Nt=S.substr(C),qt=Co(Nt,$,e,Be,st);ht[T]=C,y[T]=$,d[T]=Nt,l[T]=qt[0],b[T]=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=[],T=0;T<L.length;T++){var Cn=dn[T],In=Eo(en,Cn,d[T],l[T]);if(In===null){an[T]=null;continue}for(var C=ht[T],$=y[T],Nn=b[T],ti=[],Dn=0,ge=In.length;Dn<ge;Dn++)ti[Dn]=Nn[In[Dn]];if(C!==0)for(var Dn=0,ge=In.length;Dn<ge;Dn++)In[Dn]+=C;an[T]=new so(In,ti,$)}return document.body.removeChild(ze),an}function Co(L,n,e,i,u){u.appendASCIIString('<div style="width:'),u.appendASCIIString(String(i)),u.appendASCIIString('px;">');for(var c=L.length,T=n,ge=0,le=[],ze=[],st=0<c?L.charCodeAt(0):0,ht=0;ht<c;ht++){le[ht]=ge,ze[ht]=T;var y=st;st=ht+1<c?L.charCodeAt(ht+1):0;var d=1,l=1;switch(y){case 9:d=e-T%e,l=d;for(var b=1;b<=d;b++)b<d?u.write1(160):u.appendASCII(32);break;case 32:st===32?u.write1(160):u.appendASCII(32);break;case 60:u.appendASCIIString("&lt;");break;case 62:u.appendASCIIString("&gt;");break;case 38:u.appendASCIIString("&amp;");break;case 0:u.appendASCIIString("&#00;");break;case 65279:case 8232:u.write1(65533);break;default:Kn.y(y)&&l++,u.write1(y)}ge+=d,T+=l}return le[L.length]=ge,ze[L.length]=T,u.appendASCIIString("</div>"),[le,ze]}function Eo(L,n,e,i){if(e.length<=1)return null;var u=n.firstChild,c=[];return ai(L,u,i,0,null,e.length-1,null,c),c.length===0?null:(c.push(e.length),c)}function ai(L,n,e,i,u,c,T,ge){if(i===c)return;if(u=u||_o(L,n,e[i],e[i+1]),T=T||_o(L,n,e[c],e[c+1]),Math.abs(u[0].top-T[0].top)<=.1)return;if(i+1===c){ge.push(c);return}var le=i+(c-i)/2|0,ze=_o(L,n,e[le],e[le+1]);ai(L,n,e,i,u,le,ze,ge),ai(L,n,e,le,ze,c,T,ge)}function _o(L,n,e,i){return L.setStart(n,e),L.setEnd(n,i),L.getClientRects()}var qr=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var T in c)c.hasOwnProperty(T)&&(u[T]=c[T])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ro=function(L,n,e,i){var u=arguments.length,c=u<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,e):i,T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(L,n,e,i);else for(var ge=L.length-1;ge>=0;ge--)(T=L[ge])&&(c=(u<3?T(c):u>3?T(n,e,c):T(n,e))||c);return u>3&&c&&Object.defineProperty(n,e,c),c},Ar=function(L,n){return function(e,i){n(e,i,L)}},Io=0,co=function(){function L(n,e,i,u,c,T){this.model=n,this.viewModel=e,this.cursor=i,this.view=u,this.hasRealView=c,this.listenersToRemove=T}return L.prototype.dispose=function(){Object(U.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},L}(),Po=function(L){qr(n,L);function n(e,i,u,c,T,ge,le,ze,st,ht){var y=L.call(this)||this;y._onDidDispose=y._register(new k.a),y.onDidDispose=y._onDidDispose.event,y._onDidChangeModelContent=y._register(new k.a),y.onDidChangeModelContent=y._onDidChangeModelContent.event,y._onDidChangeModelLanguage=y._register(new k.a),y.onDidChangeModelLanguage=y._onDidChangeModelLanguage.event,y._onDidChangeModelLanguageConfiguration=y._register(new k.a),y.onDidChangeModelLanguageConfiguration=y._onDidChangeModelLanguageConfiguration.event,y._onDidChangeModelOptions=y._register(new k.a),y.onDidChangeModelOptions=y._onDidChangeModelOptions.event,y._onDidChangeModelDecorations=y._register(new k.a),y.onDidChangeModelDecorations=y._onDidChangeModelDecorations.event,y._onDidChangeConfiguration=y._register(new k.a),y.onDidChangeConfiguration=y._onDidChangeConfiguration.event,y._onDidChangeModel=y._register(new k.a),y.onDidChangeModel=y._onDidChangeModel.event,y._onDidChangeCursorPosition=y._register(new k.a),y.onDidChangeCursorPosition=y._onDidChangeCursorPosition.event,y._onDidChangeCursorSelection=y._register(new k.a),y.onDidChangeCursorSelection=y._onDidChangeCursorSelection.event,y._onDidAttemptReadOnlyEdit=y._register(new k.a),y.onDidAttemptReadOnlyEdit=y._onDidAttemptReadOnlyEdit.event,y._onDidLayoutChange=y._register(new k.a),y.onDidLayoutChange=y._onDidLayoutChange.event,y._editorTextFocus=y._register(new $o),y.onDidFocusEditorText=y._editorTextFocus.onDidChangeToTrue,y.onDidBlurEditorText=y._editorTextFocus.onDidChangeToFalse,y._editorWidgetFocus=y._register(new $o),y.onDidFocusEditorWidget=y._editorWidgetFocus.onDidChangeToTrue,y.onDidBlurEditorWidget=y._editorWidgetFocus.onDidChangeToFalse,y._onWillType=y._register(new k.a),y.onWillType=y._onWillType.event,y._onDidType=y._register(new k.a),y.onDidType=y._onDidType.event,y._onDidCompositionStart=y._register(new k.a),y.onDidCompositionStart=y._onDidCompositionStart.event,y._onDidCompositionEnd=y._register(new k.a),y.onDidCompositionEnd=y._onDidCompositionEnd.event,y._onDidPaste=y._register(new k.a),y.onDidPaste=y._onDidPaste.event,y._onMouseUp=y._register(new k.a),y.onMouseUp=y._onMouseUp.event,y._onMouseDown=y._register(new k.a),y.onMouseDown=y._onMouseDown.event,y._onMouseDrag=y._register(new k.a),y.onMouseDrag=y._onMouseDrag.event,y._onMouseDrop=y._register(new k.a),y.onMouseDrop=y._onMouseDrop.event,y._onContextMenu=y._register(new k.a),y.onContextMenu=y._onContextMenu.event,y._onMouseMove=y._register(new k.a),y.onMouseMove=y._onMouseMove.event,y._onMouseLeave=y._register(new k.a),y.onMouseLeave=y._onMouseLeave.event,y._onMouseWheel=y._register(new k.a),y.onMouseWheel=y._onMouseWheel.event,y._onKeyUp=y._register(new k.a),y.onKeyUp=y._onKeyUp.event,y._onKeyDown=y._register(new k.a),y.onKeyDown=y._onKeyDown.event,y._onDidContentSizeChange=y._register(new k.a),y.onDidContentSizeChange=y._onDidContentSizeChange.event,y._onDidScrollChange=y._register(new k.a),y.onDidScrollChange=y._onDidScrollChange.event,y._onDidChangeViewZones=y._register(new k.a),y.onDidChangeViewZones=y._onDidChangeViewZones.event,y._domElement=e,y._id=++Io,y._decorationTypeKeysToIds={},y._decorationTypeSubtypes={},y.isSimpleWidget=u.isSimpleWidget||!1,y._telemetryData=u.telemetryData,i=i||{},y._configuration=y._register(y._createConfiguration(i,ht)),y._register(y._configuration.onDidChange(function($){y._onDidChangeConfiguration.fire($);var Be=y._configuration.options;if($.hasChanged(107)){var rt=Be.get(107);y._onDidLayoutChange.fire(rt)}})),y._contextKeyService=y._register(le.createScoped(y._domElement)),y._notificationService=st,y._codeEditorService=T,y._commandService=ge,y._themeService=ze,y._register(new Es(y,y._contextKeyService)),y._register(new _s(y,y._contextKeyService)),y._instantiationService=c.createChild(new Ur.a([bs.c,y._contextKeyService])),y._modelData=null,y._contributions={},y._actions={},y._focusTracker=new Qo(e),y._focusTracker.onChange(function(){y._editorWidgetFocus.setValue(y._focusTracker.hasFocus())}),y._contentWidgets={},y._overlayWidgets={};var d;Array.isArray(u.contributions)?d=u.contributions:d=R.d.getEditorContributions();for(var l=0,b=d;l<b.length;l++){var S=b[l];try{var C=y._instantiationService.createInstance(S.ctor,y);y._contributions[S.id]=C}catch($){Object(N.e)($)}}return R.d.getEditorActions().forEach(function($){var Be=new Fs.a($.id,$.label,$.alias,Object(Tr.n)($.precondition),function(){return y._instantiationService.invokeFunction(function(rt){return Promise.resolve($.runEditorCommand(rt,y,null))})},y._contextKeyService);y._actions[Be.id]=Be}),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,u=e.length;i<u;i++){var c=e[i];this._contributions[c].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),L.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),u=0;return e&&e.lineEnding&&e.lineEnding===`
`?u=1:e&&e.lineEnding&&e.lineEnding===`\r
`&&(u=2),this._modelData.model.getValue(u,i)},n.prototype.setValue=function(e){if(!this._modelData)return;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)return;if(this._modelData&&this._modelData.model===i)return;var u=this.hasTextFocus(),c=this._detachModel();this._attachModel(i),u&&this.hasModel()&&this.focus();var T={oldModelUrl:c?c.uri:null,newModelUrl:i?i.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(T),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 u in i)this._removeDecorationType(e+"-"+u)}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,u){var c=e.model.validatePosition({lineNumber:i,column:u}),T=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(c);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(T.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),u=this._modelData.model.getOptions().tabSize;return Ie.a.visibleColumnFromColumn(this._modelData.model.getLineContent(i.lineNumber),i.column,u)+1},n.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},n.prototype.setPosition=function(e){if(!this._modelData)return;if(!ve.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,u,c){if(!this._modelData)return;if(!Me.a.isIRange(e))throw new Error("Invalid arguments");var T=this._modelData.model.validateRange(e),ge=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(T);this._modelData.cursor.emitCursorRevealRange("api",ge,i,u,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,u){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Me.a(e,1,e,1),i,!1,u)},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,u,c){if(!ve.a.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Me.a(e.lineNumber,e.column,e.lineNumber,e.column),i,u,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=gt.a.isISelection(e),u=Me.a.isIRange(e);if(!i&&!u)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e);else if(u){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)return;var i=new gt.a(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[i])},n.prototype.revealLines=function(e,i,u){u===void 0&&(u=0),this._revealLines(e,i,0,u)},n.prototype.revealLinesInCenter=function(e,i,u){u===void 0&&(u=0),this._revealLines(e,i,1,u)},n.prototype.revealLinesInCenterIfOutsideViewport=function(e,i,u){u===void 0&&(u=0),this._revealLines(e,i,2,u)},n.prototype._revealLines=function(e,i,u,c){if(typeof e!="number"||typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Me.a(e,1,i,1),u,!1,c)},n.prototype.revealRange=function(e,i,u,c){i===void 0&&(i=0),u===void 0&&(u=!1),c===void 0&&(c=!0),this._revealRange(e,u?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,u,c){if(!Me.a.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Me.a.lift(e),i,u,c)},n.prototype.setSelections=function(e,i){if(i===void 0&&(i="api"),!this._modelData)return;if(!e||e.length===0)throw new Error("Invalid arguments");for(var u=0,c=e.length;u<c;u++)if(!gt.a.isISelection(e[u]))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)return;if(typeof e!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})},n.prototype.setScrollTop=function(e){if(!this._modelData)return;if(typeof e!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})},n.prototype.setScrollPosition=function(e){if(!this._modelData)return;this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},n.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},i=Object.keys(this._contributions),u=0,c=i;u<c.length;u++){var T=c[u],ge=this._contributions[T];typeof ge.saveViewState=="function"&&(e[T]=ge.saveViewState())}var le=this._modelData.cursor.saveState(),ze=this._modelData.viewModel.saveState();return{cursorState:le,viewState:ze,contributionsState:e}},n.prototype.restoreViewState=function(e){if(!this._modelData||!this._modelData.hasRealView)return;var i=e;if(i&&i.cursorState&&i.viewState){var u=i.cursorState;Array.isArray(u)?this._modelData.cursor.restoreState(u):this._modelData.cursor.restoreState([u]);for(var c=i.contributionsState||{},T=Object.keys(this._contributions),ge=0,le=T.length;ge<le;ge++){var ze=T[ge],st=this._contributions[ze];typeof st.restoreViewState=="function"&&st.restoreViewState(c[ze])}var ht=this._modelData.viewModel.reduceRestoreState(i.viewState);this._modelData.view.restoreState(ht)}},n.prototype.getContribution=function(e){return this._contributions[e]||null},n.prototype.getActions=function(){for(var e=[],i=Object.keys(this._actions),u=0,c=i.length;u<c;u++){var T=i[u];e.push(this._actions[T])}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,u){if(u=u||{},i===ri.b.Type){if(!this._modelData||typeof u.text!="string"||u.text.length===0)return;e==="keyboard"&&this._onWillType.fire(u.text),this._modelData.cursor.trigger(e,i,u),e==="keyboard"&&this._onDidType.fire(u.text);return}if(i===ri.b.Paste){if(!this._modelData||typeof u.text!="string"||u.text.length===0)return;var c=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,i,u);var T=this._modelData.cursor.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new Me.a(c.lineNumber,c.column,T.lineNumber,T.column),mode:u.mode});return}var ge=this.getAction(i);if(ge){Promise.resolve(ge.run()).then(void 0,N.e);return}if(!this._modelData)return;if(this._triggerEditorCommand(e,i,u))return;this._modelData.cursor.trigger(e,i,u),i===ri.b.CompositionStart&&this._onDidCompositionStart.fire(),i===ri.b.CompositionEnd&&this._onDidCompositionEnd.fire()},n.prototype._triggerEditorCommand=function(e,i,u){var c=this,T=R.d.getEditorCommand(i);return T?(u=u||{},u.source=e,this._instantiationService.invokeFunction(function(ge){Promise.resolve(T.runEditorCommand(ge,c,u)).then(void 0,N.e)}),!0):!1},n.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},n.prototype.pushUndoStop=function(){return this._modelData?this._configuration.options.get(68)?!1:(this._modelData.model.pushStackElement(),!0):!1},n.prototype.executeEdits=function(e,i,u){if(!this._modelData)return!1;if(this._configuration.options.get(68))return!1;var c;return u?Array.isArray(u)?c=function(){return u}:c=u:c=function(){return null},this._modelData.cursor.executeEdits(e,i,c),!0},n.prototype.executeCommand=function(e,i){if(!this._modelData)return;this._modelData.cursor.trigger(e,ri.b.ExecuteCommand,i)},n.prototype.executeCommands=function(e,i){if(!this._modelData)return;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(Et.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){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.delegateVerticalScrollbarMouseDown(e)},n.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},n.prototype.focus=function(){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.focus()},n.prototype.hasTextFocus=function(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()},n.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},n.prototype.addContentWidget=function(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 u=this._contentWidgets[i];u.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(u)}},n.prototype.removeContentWidget=function(e){var i=e.getId();if(this._contentWidgets.hasOwnProperty(i)){var u=this._contentWidgets[i];delete this._contentWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(u)}},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 u=this._overlayWidgets[i];u.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(u)}},n.prototype.removeOverlayWidget=function(e){var i=e.getId();if(this._overlayWidgets.hasOwnProperty(i)){var u=this._overlayWidgets[i];delete this._overlayWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(u)}},n.prototype.changeViewZones=function(e){if(!this._modelData||!this._modelData.hasRealView)return;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),u=this._configuration.options,c=u.get(107),T=n._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),ge=this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+c.glyphMarginWidth+c.lineNumbersWidth+c.decorationsWidth-this.getScrollLeft();return{top:T,left:ge,height:u.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){if(e===void 0&&(e=!1),!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.render(!0,e)},n.prototype.setAriaOptions=function(e){if(!this._modelData||!this._modelData.hasRealView)return;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 u=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var c=new Br(this._id,this._configuration,e,Zi.create(),Qr.create(this._configuration.options),function(l){return ne.V(l)});u.push(e.onDidChangeDecorations(function(l){return i._onDidChangeModelDecorations.fire(l)})),u.push(e.onDidChangeLanguage(function(l){i._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),i._onDidChangeModelLanguage.fire(l)})),u.push(e.onDidChangeLanguageConfiguration(function(l){return i._onDidChangeModelLanguageConfiguration.fire(l)})),u.push(e.onDidChangeContent(function(l){return i._onDidChangeModelContent.fire(l)})),u.push(e.onDidChangeOptions(function(l){return i._onDidChangeModelOptions.fire(l)})),u.push(e.onWillDispose(function(){return i.setModel(null)}));var T=new ks(this._configuration,e,c);u.push(T.onDidReachMaxCursorCount(function(){i._notificationService.warn(re.a("cursors.maximum","The number of cursors has been limited to {0}.",ks.MAX_CURSOR_COUNT))})),u.push(T.onDidAttemptReadOnlyEdit(function(){i._onDidAttemptReadOnlyEdit.fire(void 0)})),u.push(T.onDidChange(function(l){for(var b=[],S=0,C=l.selections.length;S<C;S++)b[S]=l.selections[S].getPosition();var $={position:b[0],secondaryPositions:b.slice(1),reason:l.reason,source:l.source};i._onDidChangeCursorPosition.fire($);var Be={selection:l.selections[0],secondarySelections:l.selections.slice(1),modelVersionId:l.modelVersionId,oldSelections:l.oldSelections,oldModelVersionId:l.oldModelVersionId,source:l.source,reason:l.reason};i._onDidChangeCursorSelection.fire(Be)}));var ge=this._createView(c,T),le=ge[0],ze=ge[1];if(ze){this._domElement.appendChild(le.domNode.domNode);for(var st=Object.keys(this._contentWidgets),ht=0,y=st.length;ht<y;ht++){var d=st[ht];le.addContentWidget(this._contentWidgets[d])}st=Object.keys(this._overlayWidgets);for(var ht=0,y=st.length;ht<y;ht++){var d=st[ht];le.addOverlayWidget(this._overlayWidgets[d])}le.render(!1,!0),le.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new co(e,c,T,le,ze,u)},n.prototype._createView=function(e,i){var u=this,c;this.isSimpleWidget?c={executeEditorCommand:function(ze,st){ze.runCoreEditorCommand(i,st)},paste:function(ze,st,ht,y,d){u.trigger(ze,ri.b.Paste,{text:st,pasteOnNewLine:ht,multicursorText:y,mode:d})},type:function(ze,st){u.trigger(ze,ri.b.Type,{text:st})},replacePreviousChar:function(ze,st,ht){u.trigger(ze,ri.b.ReplacePreviousChar,{text:st,replaceCharCnt:ht})},compositionStart:function(ze){u.trigger(ze,ri.b.CompositionStart,void 0)},compositionEnd:function(ze){u.trigger(ze,ri.b.CompositionEnd,void 0)},cut:function(ze){u.trigger(ze,ri.b.Cut,void 0)}}:c={executeEditorCommand:function(ze,st){ze.runCoreEditorCommand(i,st)},paste:function(ze,st,ht,y,d){u._commandService.executeCommand(ri.b.Paste,{text:st,pasteOnNewLine:ht,multicursorText:y,mode:d})},type:function(ze,st){u._commandService.executeCommand(ri.b.Type,{text:st})},replacePreviousChar:function(ze,st,ht){u._commandService.executeCommand(ri.b.ReplacePreviousChar,{text:st,replaceCharCnt:ht})},compositionStart:function(ze){u._commandService.executeCommand(ri.b.CompositionStart,{})},compositionEnd:function(ze){u._commandService.executeCommand(ri.b.CompositionEnd,{})},cut:function(ze){u._commandService.executeCommand(ri.b.Cut,{})}};var T=new lt(e);T.onDidContentSizeChange=function(le){return u._onDidContentSizeChange.fire(le)},T.onDidScroll=function(le){return u._onDidScrollChange.fire(le)},T.onDidGainFocus=function(){return u._editorTextFocus.setValue(!0)},T.onDidLoseFocus=function(){return u._editorTextFocus.setValue(!1)},T.onContextMenu=function(le){return u._onContextMenu.fire(le)},T.onMouseDown=function(le){return u._onMouseDown.fire(le)},T.onMouseUp=function(le){return u._onMouseUp.fire(le)},T.onMouseDrag=function(le){return u._onMouseDrag.fire(le)},T.onMouseDrop=function(le){return u._onMouseDrop.fire(le)},T.onKeyUp=function(le){return u._onKeyUp.fire(le)},T.onMouseMove=function(le){return u._onMouseMove.fire(le)},T.onMouseLeave=function(le){return u._onMouseLeave.fire(le)},T.onMouseWheel=function(le){return u._onMouseWheel.fire(le)},T.onKeyDown=function(le){return u._onKeyDown.fire(le)};var ge=new Mo(c,this._configuration,this._themeService,e,i,T);return[ge,!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=Ro([Ar(3,Go.a),Ar(4,_.a),Ar(5,ys.b),Ar(6,bs.c),Ar(7,tt.c),Ar(8,Cs.a),Ar(9,Zr.b)],n),n}(U.a),$o=function(L){qr(n,L);function n(){var e=L.call(this)||this;return e._onDidChangeToTrue=e._register(new k.a),e.onDidChangeToTrue=e._onDidChangeToTrue.event,e._onDidChangeToFalse=e._register(new k.a),e.onDidChangeToFalse=e._onDidChangeToFalse.event,e._value=0,e}return n.prototype.setValue=function(e){var i=e?2:1;if(this._value===i)return;this._value=i,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire()},n}(U.a),Es=function(L){qr(n,L);function n(e,i){var u=L.call(this)||this;return u._editor=e,i.createKey("editorId",e.getId()),u._editorSimpleInput=si.a.editorSimpleInput.bindTo(i),u._editorFocus=si.a.focus.bindTo(i),u._textInputFocus=si.a.textInputFocus.bindTo(i),u._editorTextFocus=si.a.editorTextFocus.bindTo(i),u._editorTabMovesFocus=si.a.tabMovesFocus.bindTo(i),u._editorReadonly=si.a.readOnly.bindTo(i),u._hasMultipleSelections=si.a.hasMultipleSelections.bindTo(i),u._hasNonEmptySelection=si.a.hasNonEmptySelection.bindTo(i),u._canUndo=si.a.canUndo.bindTo(i),u._canRedo=si.a.canRedo.bindTo(i),u._register(u._editor.onDidChangeConfiguration(function(){return u._updateFromConfig()})),u._register(u._editor.onDidChangeCursorSelection(function(){return u._updateFromSelection()})),u._register(u._editor.onDidFocusEditorWidget(function(){return u._updateFromFocus()})),u._register(u._editor.onDidBlurEditorWidget(function(){return u._updateFromFocus()})),u._register(u._editor.onDidFocusEditorText(function(){return u._updateFromFocus()})),u._register(u._editor.onDidBlurEditorText(function(){return u._updateFromFocus()})),u._register(u._editor.onDidChangeModel(function(){return u._updateFromModel()})),u._register(u._editor.onDidChangeConfiguration(function(){return u._updateFromModel()})),u._updateFromConfig(),u._updateFromSelection(),u._updateFromFocus(),u._updateFromModel(),u._editorSimpleInput.set(u._editor.isSimpleWidget),u}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}(U.a),_s=function(L){qr(n,L);function n(e,i){var u=L.call(this)||this;u._editor=e,u._contextKeyService=i,u._langId=si.a.languageId.bindTo(i),u._hasCompletionItemProvider=si.a.hasCompletionItemProvider.bindTo(i),u._hasCodeActionsProvider=si.a.hasCodeActionsProvider.bindTo(i),u._hasCodeLensProvider=si.a.hasCodeLensProvider.bindTo(i),u._hasDefinitionProvider=si.a.hasDefinitionProvider.bindTo(i),u._hasDeclarationProvider=si.a.hasDeclarationProvider.bindTo(i),u._hasImplementationProvider=si.a.hasImplementationProvider.bindTo(i),u._hasTypeDefinitionProvider=si.a.hasTypeDefinitionProvider.bindTo(i),u._hasHoverProvider=si.a.hasHoverProvider.bindTo(i),u._hasDocumentHighlightProvider=si.a.hasDocumentHighlightProvider.bindTo(i),u._hasDocumentSymbolProvider=si.a.hasDocumentSymbolProvider.bindTo(i),u._hasReferenceProvider=si.a.hasReferenceProvider.bindTo(i),u._hasRenameProvider=si.a.hasRenameProvider.bindTo(i),u._hasSignatureHelpProvider=si.a.hasSignatureHelpProvider.bindTo(i),u._hasDocumentFormattingProvider=si.a.hasDocumentFormattingProvider.bindTo(i),u._hasDocumentSelectionFormattingProvider=si.a.hasDocumentSelectionFormattingProvider.bindTo(i),u._hasMultipleDocumentFormattingProvider=si.a.hasMultipleDocumentFormattingProvider.bindTo(i),u._hasMultipleDocumentSelectionFormattingProvider=si.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),u._isInWalkThrough=si.a.isInEmbeddedEditor.bindTo(i);var c=function(){return u._update()};return u._register(e.onDidChangeModel(c)),u._register(e.onDidChangeModelLanguage(c)),u._register(Hn.d.onDidChange(c)),u._register(Hn.a.onDidChange(c)),u._register(Hn.b.onDidChange(c)),u._register(Hn.f.onDidChange(c)),u._register(Hn.e.onDidChange(c)),u._register(Hn.p.onDidChange(c)),u._register(Hn.z.onDidChange(c)),u._register(Hn.o.onDidChange(c)),u._register(Hn.h.onDidChange(c)),u._register(Hn.l.onDidChange(c)),u._register(Hn.t.onDidChange(c)),u._register(Hn.u.onDidChange(c)),u._register(Hn.g.onDidChange(c)),u._register(Hn.i.onDidChange(c)),u._register(Hn.w.onDidChange(c)),c(),u}return n.prototype.dispose=function(){L.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(Hn.d.has(i)),e._hasCodeActionsProvider.set(Hn.a.has(i)),e._hasCodeLensProvider.set(Hn.b.has(i)),e._hasDefinitionProvider.set(Hn.f.has(i)),e._hasDeclarationProvider.set(Hn.e.has(i)),e._hasImplementationProvider.set(Hn.p.has(i)),e._hasTypeDefinitionProvider.set(Hn.z.has(i)),e._hasHoverProvider.set(Hn.o.has(i)),e._hasDocumentHighlightProvider.set(Hn.h.has(i)),e._hasDocumentSymbolProvider.set(Hn.l.has(i)),e._hasReferenceProvider.set(Hn.t.has(i)),e._hasRenameProvider.set(Hn.u.has(i)),e._hasSignatureHelpProvider.set(Hn.w.has(i)),e._hasDocumentFormattingProvider.set(Hn.g.has(i)||Hn.i.has(i)),e._hasDocumentSelectionFormattingProvider.set(Hn.i.has(i)),e._hasMultipleDocumentFormattingProvider.set(Hn.g.all(i).length+Hn.i.all(i).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(Hn.i.all(i).length>1),e._isInWalkThrough.set(i.uri.scheme===j.b.walkThroughSnippet)})},n}(U.a),Qo=function(L){qr(n,L);function n(e){var i=L.call(this)||this;return i._onChange=i._register(new k.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}(U.a),Ss=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 ko(L){return Ss+encodeURIComponent(L.toString())+Jo}var ho=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),Fo=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(L){return ho+encodeURIComponent(L.toString())+Fo}Object(tt.e)(function(L,n){var e=L.getColor(Oi.p);e&&n.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+e+"; }");var i=L.getColor(Oi.q);i&&n.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+ko(i)+'") repeat-x bottom left; }');var u=L.getColor(Oi.N);u&&n.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+u+"; }");var c=L.getColor(Oi.O);c&&n.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+ko(c)+'") repeat-x bottom left; }');var T=L.getColor(Oi.G);T&&n.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+T+"; }");var ge=L.getColor(Oi.H);ge&&n.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+ko(ge)+'") repeat-x bottom left; }');var le=L.getColor(Oi.y);le&&n.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+le+"; }");var ze=L.getColor(Oi.z);ze&&n.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+qo(ze)+'") no-repeat bottom left; }');var st=L.getColor(tn.n);st&&n.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+st.rgba.a+"; }");var ht=L.getColor(tn.m);ht&&n.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+ht+"; }");var y=L.getColor(Oi.x)||"inherit";n.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+y+"}")})},nD70:function(wt,P,o){"use strict";o.d(P,"a",function(){return I}),o.d(P,"b",function(){return re});var I=function(){function ne(N){this._prefix=N,this._lastId=0}return ne.prototype.nextId=function(){return this._prefix+ ++this._lastId},ne}(),re=new I("id#")},nn6Y:function(wt,P,o){},nnTU:function(wt,P,o){"use strict";o.d(P,"b",function(){return G}),o.d(P,"a",function(){return R});var I=o("pmY6"),re=o("746U"),ne=o("Cg/j"),N=o("MI8n"),k=o("24hK"),U=o("QDVR"),j=function(){for(var _=0,x=0,K=arguments.length;x<K;x++)_+=arguments[x].length;for(var D=Array(_),A=0,x=0;x<K;x++)for(var te=arguments[x],H=0,E=te.length;H<E;H++,A++)D[A]=te[H];return D},G=Object(ne.c)("commandService"),R=new(function(){function _(){this._commands=new Map,this._onDidRegisterCommand=new N.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return _.prototype.registerCommand=function(x,K){var D=this;if(!x)throw new Error("invalid command");if(typeof x=="string"){if(!K)throw new Error("invalid command");return this.registerCommand({id:x,handler:K})}if(x.description){for(var A=[],te=0,H=x.description.args;te<H.length;te++){var E=H[te];A.push(E.constraint)}var f=x.handler;x.handler=function(B){for(var z=[],oe=1;oe<arguments.length;oe++)z[oe-1]=arguments[oe];return Object(re.m)(z,A),f.apply(void 0,j([B],z))}}var p=x.id,g=this._commands.get(p);g||(g=new k.a,this._commands.set(p,g));var m=g.unshift(x),w=Object(I.h)(function(){m();var B=D._commands.get(p);(B==null?void 0:B.isEmpty())&&D._commands.delete(p)});return this._onDidRegisterCommand.fire(p),w},_.prototype.registerCommandAlias=function(x,K){return R.registerCommand(x,function(D){for(var A,te=[],H=1;H<arguments.length;H++)te[H-1]=arguments[H];return(A=D.get(G)).executeCommand.apply(A,j([K],te))})},_.prototype.getCommand=function(x){var K=this._commands.get(x);return!K||K.isEmpty()?void 0:K.iterator().next().value},_.prototype.getCommands=function(){for(var x=new Map,K=0,D=Object(U.d)(this._commands);K<D.length;K++){var A=D[K],te=this.getCommand(A);te&&x.set(A,te)}return x},_}())},nrBJ:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return o.e(256).then(o.bind(null,"eXtt"))}})},nrhi:function(wt,P,o){"use strict";o.d(P,"a",function(){return U});var I=o("/kV6"),re=o("MNsG"),ne=o("nnTU"),N=o("ic2d"),k=function(){function R(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return R.bindToCurrentPlatform=function(_){if(re.a===1){if(_&&_.win)return _.win}else if(re.a===2){if(_&&_.mac)return _.mac}else if(_&&_.linux)return _.linux;return _},R.prototype.registerKeybindingRule=function(_){var x=R.bindToCurrentPlatform(_);if(x&&x.primary){var K=Object(I.f)(x.primary,re.a);K&&this._registerDefaultKeybinding(K,_.id,_.args,_.weight,0,_.when)}if(x&&Array.isArray(x.secondary))for(var D=0,A=x.secondary.length;D<A;D++){var te=x.secondary[D],K=Object(I.f)(te,re.a);K&&this._registerDefaultKeybinding(K,_.id,_.args,_.weight,-D-1,_.when)}},R.prototype.registerCommandAndKeybindingRule=function(_){this.registerKeybindingRule(_),ne.a.registerCommand(_)},R._mightProduceChar=function(_){return _>=21&&_<=30||_>=31&&_<=56?!0:_===80||_===81||_===82||_===83||_===84||_===85||_===86||_===110||_===111||_===87||_===88||_===89||_===90||_===91||_===92},R.prototype._assertNoCtrlAlt=function(_,x){_.ctrlKey&&_.altKey&&!_.metaKey&&(R._mightProduceChar(_.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",_," for ",x))},R.prototype._registerDefaultKeybinding=function(_,x,K,D,A,te){re.a===1&&this._assertNoCtrlAlt(_.parts[0],x),this._coreKeybindings.push({keybinding:_,command:x,commandArgs:K,when:te,weight1:D,weight2:A}),this._cachedMergedKeybindings=null},R.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(G)),this._cachedMergedKeybindings.slice(0)},R}(),U=new k,j={EditorModes:"platform.keybindingsRegistry"};N.a.add(j.EditorModes,U);function G(R,_){return R.weight1!==_.weight1?R.weight1-_.weight1:R.command<_.command?-1:R.command>_.command?1:R.weight2-_.weight2}},nuFA:function(wt,P,o){"use strict";o.d(P,"a",function(){return I});var I;(function(re){function ne(j,G){if(j.start>=G.end||G.start>=j.end)return{start:0,end:0};var R=Math.max(j.start,G.start),_=Math.min(j.end,G.end);return _-R<=0?{start:0,end:0}:{start:R,end:_}}re.intersect=ne;function N(j){return j.end-j.start<=0}re.isEmpty=N;function k(j,G){return!N(ne(j,G))}re.intersects=k;function U(j,G){var R=[],_={start:j.start,end:Math.min(G.start,j.end)},x={start:Math.max(G.end,j.start),end:j.end};return N(_)||R.push(_),N(x)||R.push(x),R}re.relativeComplement=U})(I||(I={}))},o39E:function(wt,P,o){"use strict";o.d(P,"a",function(){return N});var I=o("pmY6"),re=o("EffR"),ne=function(){var k=function(j,G){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,_){R.__proto__=_}||function(R,_){for(var x in _)_.hasOwnProperty(x)&&(R[x]=_[x])},k(j,G)};return function(U,j){k(U,j);function G(){this.constructor=U}U.prototype=j===null?Object.create(j):(G.prototype=j.prototype,new G)}}(),N=function(k){ne(U,k);function U(j,G,R){var _=k.call(this)||this;return _.referenceDomElement=j,_.changeCallback=R,_.width=-1,_.height=-1,_.mutationObserver=null,_.windowSizeListener=null,_.measureReferenceDomElement(!1,G),_}return U.prototype.dispose=function(){this.stopObserving(),k.prototype.dispose.call(this)},U.prototype.getWidth=function(){return this.width},U.prototype.getHeight=function(){return this.height},U.prototype.startObserving=function(){var j=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return j._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=re.i(window,"resize",function(){return j._onDidResizeWindow()}))},U.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},U.prototype.observe=function(j){this.measureReferenceDomElement(!0,j)},U.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},U.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},U.prototype.measureReferenceDomElement=function(j,G){var R=0,_=0;G?(R=G.width,_=G.height):this.referenceDomElement&&(R=this.referenceDomElement.clientWidth,_=this.referenceDomElement.clientHeight),R=Math.max(5,R),_=Math.max(5,_),(this.width!==R||this.height!==_)&&(this.width=R,this.height=_,j&&this.changeCallback())},U}(I.a)},oKJv:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return o.e(230).then(o.bind(null,"HGU1"))}})},oQaD:function(wt,P,o){"use strict";o.r(P),o.d(P,"getSelectionSearchString",function(){return Yt}),o.d(P,"CommonFindController",function(){return Zt}),o.d(P,"FindController",function(){return un}),o.d(P,"StartFindAction",function(){return fn}),o.d(P,"StartFindWithSelectionAction",function(){return An}),o.d(P,"MatchFindAction",function(){return gn}),o.d(P,"NextMatchFindAction",function(){return Tn}),o.d(P,"NextMatchFindAction2",function(){return xn}),o.d(P,"PreviousMatchFindAction",function(){return Le}),o.d(P,"PreviousMatchFindAction2",function(){return W}),o.d(P,"SelectionMatchFindAction",function(){return ae}),o.d(P,"NextSelectionMatchFindAction",function(){return ke}),o.d(P,"PreviousSelectionMatchFindAction",function(){return qe}),o.d(P,"StartFindReplaceAction",function(){return ct});var I=o("3/fG"),re=o("X+cX"),ne=o("pmY6"),N=o("N0LK"),k=o("sswD"),U=o("wQH0"),j=o("LCkn"),G=o("cGHE"),R=o("aokT"),_=o("gCVg"),x=o("jAJ/"),K=o("M1Kb"),D=o("tX9W"),A=o("MD5Z"),te=o("t9D7"),H=function(){function Ge(ue){this._editor=ue,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(ue){this._startPosition=ue,this.setCurrentFindMatch(null)},Ge.prototype._getDecorationIndex=function(ue){var X=this._decorations.indexOf(ue);return X>=0?X+1:1},Ge.prototype.getCurrentMatchesPosition=function(ue){for(var X=this._editor.getModel().getDecorationsInRange(ue),Ue=0,at=X;Ue<at.length;Ue++){var et=at[Ue],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(ue){var X=this,Ue=null,at=0;if(ue)for(var et=0,J=this._decorations.length;et<J;et++){var Ce=this._editor.getModel().getDecorationRange(this._decorations[et]);if(ue.equalsRange(Ce)){Ue=this._decorations[et],at=et+1;break}}return(this._highlightedDecorationId!==null||Ue!==null)&&this._editor.changeDecorations(function(Oe){if(X._highlightedDecorationId!==null&&(Oe.changeDecorationOptions(X._highlightedDecorationId,Ge._FIND_MATCH_DECORATION),X._highlightedDecorationId=null),Ue!==null&&(X._highlightedDecorationId=Ue,Oe.changeDecorationOptions(X._highlightedDecorationId,Ge._CURRENT_FIND_MATCH_DECORATION)),X._rangeHighlightDecorationId!==null&&(Oe.removeDecoration(X._rangeHighlightDecorationId),X._rangeHighlightDecorationId=null),Ue!==null){var it=X._editor.getModel().getDecorationRange(Ue);if(it.startLineNumber!==it.endLineNumber&&it.endColumn===1){var Je=it.endLineNumber-1,je=X._editor.getModel().getLineMaxColumn(Je);it=new R.a(it.startLineNumber,it.startColumn,Je,je)}X._rangeHighlightDecorationId=Oe.addDecoration(it,Ge._RANGE_HIGHLIGHT_DECORATION)}}),at},Ge.prototype.set=function(ue,X){var Ue=this;this._editor.changeDecorations(function(at){var et=Ge._FIND_MATCH_DECORATION,J=[];if(ue.length>1e3){et=Ge._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var Ce=Ue._editor.getModel().getLineCount(),Oe=Ue._editor.getLayoutInfo().height,it=Oe/Ce,Je=Math.max(2,Math.ceil(3/it)),je=ue[0].range.startLineNumber,Ct=ue[0].range.endLineNumber,Ot=1,Qt=ue.length;Ot<Qt;Ot++){var At=ue[Ot].range;Ct+Je>=At.startLineNumber?At.endLineNumber>Ct&&(Ct=At.endLineNumber):(J.push({range:new R.a(je,1,Ct,1),options:Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),je=At.startLineNumber,Ct=At.endLineNumber)}J.push({range:new R.a(je,1,Ct,1),options:Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var jt=new Array(ue.length),Ot=0,Qt=ue.length;Ot<Qt;Ot++)jt[Ot]={range:ue[Ot].range,options:et};Ue._decorations=at.deltaDecorations(Ue._decorations,jt),Ue._overviewRulerApproximateDecorations=at.deltaDecorations(Ue._overviewRulerApproximateDecorations,J),Ue._rangeHighlightDecorationId&&(at.removeDecoration(Ue._rangeHighlightDecorationId),Ue._rangeHighlightDecorationId=null),Ue._findScopeDecorationId&&(at.removeDecoration(Ue._findScopeDecorationId),Ue._findScopeDecorationId=null),X&&(Ue._findScopeDecorationId=at.addDecoration(X,Ge._FIND_SCOPE_DECORATION))})},Ge.prototype.matchBeforePosition=function(ue){if(this._decorations.length===0)return null;for(var X=this._decorations.length-1;X>=0;X--){var Ue=this._decorations[X],at=this._editor.getModel().getDecorationRange(Ue);if(!at||at.endLineNumber>ue.lineNumber)continue;if(at.endLineNumber<ue.lineNumber)return at;if(at.endColumn>ue.column)continue;return at}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},Ge.prototype.matchAfterPosition=function(ue){if(this._decorations.length===0)return null;for(var X=0,Ue=this._decorations.length;X<Ue;X++){var at=this._decorations[X],et=this._editor.getModel().getDecorationRange(at);if(!et||et.startLineNumber<ue.lineNumber)continue;if(et.startLineNumber>ue.lineNumber)return et;if(et.startColumn<ue.column)continue;return et}return this._editor.getModel().getDecorationRange(this._decorations[0])},Ge.prototype._allDecorations=function(){var ue=[];return ue=ue.concat(this._decorations),ue=ue.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&ue.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&ue.push(this._rangeHighlightDecorationId),ue},Ge._CURRENT_FIND_MATCH_DECORATION=D.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(te.f)(A.Kb),position:K.d.Center},minimap:{color:Object(te.f)(A.Gb),position:K.c.Inline}}),Ge._FIND_MATCH_DECORATION=D.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(te.f)(A.Kb),position:K.d.Center},minimap:{color:Object(te.f)(A.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)(A.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}(),E=function(){function Ge(ue,X,Ue){this._editorSelection=ue,this._ranges=X,this._replaceStrings=Ue,this._trackedEditorSelectionId=null}return Ge.prototype.getEditOperations=function(ue,X){if(this._ranges.length>0){for(var Ue=[],at=0;at<this._ranges.length;at++)Ue.push({range:this._ranges[at],text:this._replaceStrings[at]});Ue.sort(function(Je,je){return R.a.compareRangesUsingStarts(Je.range,je.range)});for(var et=[],J=Ue[0],at=1;at<Ue.length;at++)J.range.endLineNumber===Ue[at].range.startLineNumber&&J.range.endColumn===Ue[at].range.startColumn?(J.range=J.range.plusRange(Ue[at].range),J.text=J.text+Ue[at].text):(et.push(J),J=Ue[at]);et.push(J);for(var Ce=0,Oe=et;Ce<Oe.length;Ce++){var it=Oe[Ce];X.addEditOperation(it.range,it.text)}}this._trackedEditorSelectionId=X.trackSelection(this._editorSelection)},Ge.prototype.computeCursorState=function(ue,X){return X.getTrackedSelection(this._trackedEditorSelectionId)},Ge}();function f(Ge,ue){if(Ge&&Ge[0]!==""){var X=p(Ge,ue,"-"),Ue=p(Ge,ue,"_");return X&&!Ue?g(Ge,ue,"-"):!X&&Ue?g(Ge,ue,"_"):Ge[0].toUpperCase()===Ge[0]?ue.toUpperCase():Ge[0].toLowerCase()===Ge[0]?ue.toLowerCase():N.j(Ge[0][0])?ue[0].toUpperCase()+ue.substr(1):ue}else return ue}function p(Ge,ue,X){var Ue=Ge[0].indexOf(X)!==-1&&ue.indexOf(X)!==-1;return Ue&&Ge[0].split(X).length===ue.split(X).length}function g(Ge,ue,X){var Ue=ue.split(X),at=Ge[0].split(X),et="";return Ue.forEach(function(J,Ce){et+=f([at[Ce]],J)+X}),et.slice(0,-1)}var m=function(){function Ge(ue){this.staticValue=ue,this.kind=0}return Ge}(),w=function(){function Ge(ue){this.pieces=ue,this.kind=1}return Ge}(),B=function(){function Ge(ue){!ue||ue.length===0?this._state=new m(""):ue.length===1&&ue[0].staticValue!==null?this._state=new m(ue[0].staticValue):this._state=new w(ue)}return Ge.fromStaticValue=function(ue){return new Ge([z.staticValue(ue)])},Object.defineProperty(Ge.prototype,"hasReplacementPatterns",{get:function(){return this._state.kind===1},enumerable:!0,configurable:!0}),Ge.prototype.buildReplaceString=function(ue,X){if(this._state.kind===0)return X?f(ue,this._state.staticValue):this._state.staticValue;for(var Ue="",at=0,et=this._state.pieces.length;at<et;at++){var J=this._state.pieces[at];if(J.staticValue!==null){Ue+=J.staticValue;continue}Ue+=Ge._substitute(J.matchIndex,ue)}return Ue},Ge._substitute=function(ue,X){if(X===null)return"";if(ue===0)return X[0];for(var Ue="";ue>0;){if(ue<X.length){var at=X[ue]||"";return at+Ue}Ue=String(ue%10)+Ue,ue=Math.floor(ue/10)}return"$"+Ue},Ge}(),z=function(){function Ge(ue,X){this.staticValue=ue,this.matchIndex=X}return Ge.staticValue=function(ue){return new Ge(ue,-1)},Ge.matchIndex=function(ue){return new Ge(null,ue)},Ge}(),oe=function(){function Ge(ue){this._source=ue,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return Ge.prototype.emitUnchanged=function(ue){this._emitStatic(this._source.substring(this._lastCharIndex,ue)),this._lastCharIndex=ue},Ge.prototype.emitStatic=function(ue,X){this._emitStatic(ue),this._lastCharIndex=X},Ge.prototype._emitStatic=function(ue){if(ue.length===0)return;this._currentStaticPiece+=ue},Ge.prototype.emitMatchIndex=function(ue,X){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=z.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=z.matchIndex(ue),this._lastCharIndex=X},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 B(this._result)},Ge}();function he(Ge){if(!Ge||Ge.length===0)return new B(null);for(var ue=new oe(Ge),X=0,Ue=Ge.length;X<Ue;X++){var at=Ge.charCodeAt(X);if(at===92){if(X++,X>=Ue)break;var et=Ge.charCodeAt(X);switch(et){case 92:ue.emitUnchanged(X-1),ue.emitStatic("\\",X+1);break;case 110:ue.emitUnchanged(X-1),ue.emitStatic(`
`,X+1);break;case 116:ue.emitUnchanged(X-1),ue.emitStatic(" ",X+1);break}continue}if(at===36){if(X++,X>=Ue)break;var et=Ge.charCodeAt(X);if(et===36){ue.emitUnchanged(X-1),ue.emitStatic("$",X+1);continue}if(et===48||et===38){ue.emitUnchanged(X-1),ue.emitMatchIndex(0,X+1);continue}if(49<=et&&et<=57){var J=et-48;if(X+1<Ue){var Ce=Ge.charCodeAt(X+1);if(48<=Ce&&Ce<=57){X++,J=J*10+(Ce-48),ue.emitUnchanged(X-2),ue.emitMatchIndex(J,X+1);continue}}ue.emitUnchanged(X-1),ue.emitMatchIndex(J,X+1);continue}}}return ue.finalize()}var _e=o("T8No"),Se=new _e.d("findWidgetVisible",!1),q=new _e.d("findInputFocussed",!1),Z=new _e.d("replaceInputFocussed",!1),ce={primary:512|33,mac:{primary:2048|512|33}},Te={primary:512|53,mac:{primary:2048|512|53}},Ve={primary:512|48,mac:{primary:2048|512|48}},Ee={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,fe=240,ie=function(){function Ge(ue,X){var Ue=this;this._toDispose=new ne.b,this._editor=ue,this._state=X,this._isDisposed=!1,this._startSearchingTimer=new re.e,this._decorations=new H(ue),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new re.d(function(){return Ue.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)&&Ue._decorations.setStartPosition(Ue._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(function(at){if(Ue._ignoreModelContentChanged)return;at.isFlush&&Ue._decorations.reset(),Ue._decorations.setStartPosition(Ue._editor.getPosition()),Ue._updateDecorationsScheduler.schedule()})),this._toDispose.add(this._state.onFindReplaceStateChange(function(at){return Ue._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(ue){var X=this;if(this._isDisposed)return;if(!this._editor.hasModel())return;if(ue.searchString||ue.isReplaceRevealed||ue.isRegex||ue.wholeWord||ue.matchCase||ue.searchScope){var Ue=this._editor.getModel();Ue.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){ue.searchScope?X.research(ue.moveCursor,X._state.searchScope):X.research(ue.moveCursor)},fe)):ue.searchScope?this.research(ue.moveCursor,this._state.searchScope):this.research(ue.moveCursor)}},Ge._getSearchRange=function(ue,X){return X||ue.getFullModelRange()},Ge.prototype.research=function(ue,X){var Ue=null;typeof X!="undefined"?Ue=X:Ue=this._decorations.getFindScope(),Ue!==null&&(Ue.startLineNumber!==Ue.endLineNumber&&(Ue.endColumn===1?Ue=new R.a(Ue.startLineNumber,1,Ue.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Ue.endLineNumber-1)):Ue=new R.a(Ue.startLineNumber,1,Ue.endLineNumber,this._editor.getModel().getLineMaxColumn(Ue.endLineNumber))));var at=this._findMatches(Ue,!1,se);this._decorations.set(at,Ue),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),ue&&this._moveToNextMatch(this._decorations.getStartPosition())},Ge.prototype._hasMatches=function(){return this._state.matchesCount>0},Ge.prototype._cannotFind=function(){if(!this._hasMatches()){var ue=this._decorations.getFindScope();return ue&&this._editor.revealRangeInCenterIfOutsideViewport(ue,0),!0}return!1},Ge.prototype._setCurrentFindMatch=function(ue){var X=this._decorations.setCurrentFindMatch(ue);this._state.changeMatchInfo(X,this._decorations.getCount(),ue),this._editor.setSelection(ue),this._editor.revealRangeInCenterIfOutsideViewport(ue,0)},Ge.prototype._prevSearchPosition=function(ue){var X=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),Ue=ue.lineNumber,at=ue.column,et=this._editor.getModel();return X||at===1?(Ue===1?Ue=et.getLineCount():Ue--,at=et.getLineMaxColumn(Ue)):at--,new G.a(Ue,at)},Ge.prototype._moveToPrevMatch=function(ue,X){if(X===void 0&&(X=!1),this._decorations.getCount()<se){var Ue=this._decorations.matchBeforePosition(ue);Ue&&Ue.isEmpty()&&Ue.getStartPosition().equals(ue)&&(ue=this._prevSearchPosition(ue),Ue=this._decorations.matchBeforePosition(ue)),Ue&&this._setCurrentFindMatch(Ue);return}if(this._cannotFind())return;var at=this._decorations.getFindScope(),et=Ge._getSearchRange(this._editor.getModel(),at);et.getEndPosition().isBefore(ue)&&(ue=et.getEndPosition()),ue.isBefore(et.getStartPosition())&&(ue=et.getEndPosition());var J=ue.lineNumber,Ce=ue.column,Oe=this._editor.getModel(),it=new G.a(J,Ce),Je=Oe.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=Oe.findPreviousMatch(this._state.searchString,it,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),!Je)return;if(!X&&!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(ue){var X=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),Ue=ue.lineNumber,at=ue.column,et=this._editor.getModel();return X||at===et.getLineMaxColumn(Ue)?(Ue===et.getLineCount()?Ue=1:Ue++,at=1):at++,new G.a(Ue,at)},Ge.prototype._moveToNextMatch=function(ue){if(this._decorations.getCount()<se){var X=this._decorations.matchAfterPosition(ue);X&&X.isEmpty()&&X.getStartPosition().equals(ue)&&(ue=this._nextSearchPosition(ue),X=this._decorations.matchAfterPosition(ue)),X&&this._setCurrentFindMatch(X);return}var Ue=this._getNextMatch(ue,!1,!0);Ue&&this._setCurrentFindMatch(Ue.range)},Ge.prototype._getNextMatch=function(ue,X,Ue,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(ue)&&(ue=J.getStartPosition()),ue.isBefore(J.getStartPosition())&&(ue=J.getStartPosition());var Ce=ue.lineNumber,Oe=ue.column,it=this._editor.getModel(),Je=new G.a(Ce,Oe),je=it.findNextMatch(this._state.searchString,Je,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,X);return Ue&&je&&je.range.isEmpty()&&je.range.getStartPosition().equals(Je)&&(Je=this._nextSearchPosition(Je),je=it.findNextMatch(this._state.searchString,Je,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,X)),je?!at&&!J.containsRange(je.range)?this._getNextMatch(je.range.getEndPosition(),X,Ue,!0):je:null},Ge.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},Ge.prototype._getReplacePattern=function(){return this._state.isRegex?he(this._state.replaceString):B.fromStaticValue(this._state.replaceString)},Ge.prototype.replace=function(){if(!this._hasMatches())return;var ue=this._getReplacePattern(),X=this._editor.getSelection(),Ue=this._getNextMatch(X.getStartPosition(),!0,!1);if(Ue)if(X.equalsRange(Ue.range)){var at=ue.buildReplaceString(Ue.matches,this._state.preserveCase),et=new j.a(X,at);this._executeEditorCommand("replace",et),this._decorations.setStartPosition(new G.a(X.startLineNumber,X.startColumn+at.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(Ue.range)},Ge.prototype._findMatches=function(ue,X,Ue){var at=Ge._getSearchRange(this._editor.getModel(),ue);return this._editor.getModel().findMatches(this._state.searchString,at,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,X,Ue)},Ge.prototype.replaceAll=function(){if(!this._hasMatches())return;var ue=this._decorations.getFindScope();ue===null&&this._state.matchesCount>=se?this._largeReplaceAll():this._regularReplaceAll(ue),this.research(!1)},Ge.prototype._largeReplaceAll=function(){var ue=new x.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),X=ue.parseSearchRequest();if(!X)return;var Ue=X.regex;if(!Ue.multiline){var at="mu";Ue.ignoreCase&&(at+="i"),Ue.global&&(at+="g"),Ue=new RegExp(Ue.source,at)}var et=this._editor.getModel(),J=et.getValue(1),Ce=et.getFullModelRange(),Oe=this._getReplacePattern(),it,Je=this._state.preserveCase;Oe.hasReplacementPatterns||Je?it=J.replace(Ue,function(){return Oe.buildReplaceString(arguments,Je)}):it=J.replace(Ue,Oe.buildReplaceString(null,Je));var je=new j.b(Ce,it,this._editor.getSelection());this._executeEditorCommand("replaceAll",je)},Ge.prototype._regularReplaceAll=function(ue){for(var X=this._getReplacePattern(),Ue=this._findMatches(ue,X.hasReplacementPatterns||this._state.preserveCase,1073741824),at=[],et=0,J=Ue.length;et<J;et++)at[et]=X.buildReplaceString(Ue[et].matches,this._state.preserveCase);var Ce=new E(this._editor.getSelection(),Ue.map(function(Oe){return Oe.range}),at);this._executeEditorCommand("replaceAll",Ce)},Ge.prototype.selectAllMatches=function(){if(!this._hasMatches())return;for(var ue=this._decorations.getFindScope(),X=this._findMatches(ue,!1,1073741824),Ue=X.map(function(Oe){return new _.a(Oe.range.startLineNumber,Oe.range.startColumn,Oe.range.endLineNumber,Oe.range.endColumn)}),at=this._editor.getSelection(),et=0,J=Ue.length;et<J;et++){var Ce=Ue[et];if(Ce.equalsRange(at)){Ue=[at].concat(Ue.slice(0,et)).concat(Ue.slice(et+1));break}}this._editor.setSelections(Ue)},Ge.prototype._executeEditorCommand=function(ue,X){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(ue,X),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},Ge}(),Q=o("EffR"),me=o("iJk1"),ye=o("G300"),He=o("zrhQ"),tt=o("MI8n"),Et=o("qj0h"),Pt=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Xt={inputActiveOptionBorder:He.a.fromHex("#007ACC00"),inputActiveOptionBackground:He.a.fromHex("#0E639C50")},Ke=function(Ge){Pt(ue,Ge);function ue(X){var Ue=Ge.call(this)||this;return Ue._onChange=Ue._register(new tt.a),Ue.onChange=Ue._onChange.event,Ue._onKeyDown=Ue._register(new tt.a),Ue.onKeyDown=Ue._onKeyDown.event,Ue._opts=Et.c(X),Et.g(Ue._opts,Xt,!1),Ue._checked=Ue._opts.isChecked,Ue.domNode=document.createElement("div"),Ue.domNode.title=Ue._opts.title,Ue.domNode.className="monaco-custom-checkbox codicon "+(Ue._opts.actionClassName||"")+" "+(Ue._checked?"checked":"unchecked"),Ue.domNode.tabIndex=0,Ue.domNode.setAttribute("role","checkbox"),Ue.domNode.setAttribute("aria-checked",String(Ue._checked)),Ue.domNode.setAttribute("aria-label",Ue._opts.title),Ue.applyStyles(),Ue.onclick(Ue.domNode,function(at){Ue.checked=!Ue._checked,Ue._onChange.fire(!1),at.preventDefault()}),Ue.ignoreGesture(Ue.domNode),Ue.onkeydown(Ue.domNode,function(at){if(at.keyCode===10||at.keyCode===3){Ue.checked=!Ue._checked,Ue._onChange.fire(!0),at.preventDefault();return}Ue._onKeyDown.fire(at)}),Ue}return Object.defineProperty(ue.prototype,"enabled",{get:function(){return this.domNode.getAttribute("aria-disabled")!=="true"},enumerable:!0,configurable:!0}),ue.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(ue.prototype,"checked",{get:function(){return this._checked},set:function(Ue){this._checked=Ue,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),ue.prototype.width=function(){return 2+2+2+16},ue.prototype.style=function(X){X.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=X.inputActiveOptionBorder),X.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=X.inputActiveOptionBackground),this.applyStyles()},ue.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},ue.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},ue.prototype.disable=function(){Q.R(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},ue}(ye.a),Xe=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Ze=I.a("caseDescription","Match Case"),Ye=I.a("wordsDescription","Match Whole Word"),Fe=I.a("regexDescription","Use Regular Expression"),$e=function(Ge){Xe(ue,Ge);function ue(X){return Ge.call(this,{actionClassName:"codicon-case-sensitive",title:Ze+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return ue}(Ke),we=function(Ge){Xe(ue,Ge);function ue(X){return Ge.call(this,{actionClassName:"codicon-whole-word",title:Ye+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return ue}(Ke),F=function(Ge){Xe(ue,Ge);function ue(X){return Ge.call(this,{actionClassName:"codicon-regex",title:Fe+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return ue}(Ke),ee=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Pe=function(Ge){ee(ue,Ge);function ue(X,Ue,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=X,J._state=Ue,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 Ce=et.getTheme().getColor(A.X),Oe=et.getTheme().getColor(A.W);return J.caseSensitive=J._register(new $e({appendTitle:J._keybindingLabelFor(de.ToggleCaseSensitiveCommand),isChecked:J._state.matchCase,inputActiveOptionBorder:Ce,inputActiveOptionBackground:Oe})),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 we({appendTitle:J._keybindingLabelFor(de.ToggleWholeWordCommand),isChecked:J._state.wholeWord,inputActiveOptionBorder:Ce,inputActiveOptionBackground:Oe})),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 F({appendTitle:J._keybindingLabelFor(de.ToggleRegexCommand),isChecked:J._state.isRegex,inputActiveOptionBorder:Ce,inputActiveOptionBackground:Oe})),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(Q.j(J._domNode,function(it){return J._onMouseOut()})),J._register(Q.i(J._domNode,"mouseover",function(it){return J._onMouseOver()})),J._applyTheme(et.getTheme()),J._register(et.onThemeChange(J._applyTheme.bind(J))),J}return ue.prototype._keybindingLabelFor=function(X){var Ue=this._keybindingService.lookupKeybinding(X);return Ue?" ("+Ue.getLabel()+")":""},ue.prototype.dispose=function(){this._editor.removeOverlayWidget(this),Ge.prototype.dispose.call(this)},ue.prototype.getId=function(){return ue.ID},ue.prototype.getDomNode=function(){return this._domNode},ue.prototype.getPosition=function(){return{preference:0}},ue.prototype.highlightFindOptions=function(){this._revealTemporarily()},ue.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},ue.prototype._onMouseOut=function(){this._hideSoon.schedule()},ue.prototype._onMouseOver=function(){this._hideSoon.cancel()},ue.prototype._show=function(){if(this._isVisible)return;this._isVisible=!0,this._domNode.style.display="block"},ue.prototype._hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._domNode.style.display="none"},ue.prototype._applyTheme=function(X){var Ue={inputActiveOptionBorder:X.getColor(A.X),inputActiveOptionBackground:X.getColor(A.W)};this.caseSensitive.style(Ue),this.wholeWords.style(Ue),this.regex.style(Ue)},ue.ID="editor.contrib.findOptionsWidget",ue}(ye.a);Object(te.e)(function(Ge,ue){var X=Ge.getColor(A.P);X&&ue.addRule(".monaco-editor .findOptionsWidget { background-color: "+X+"; }");var Ue=Ge.getColor(A.R);Ue&&ue.addRule(".monaco-editor .findOptionsWidget { color: "+Ue+"; }");var at=Ge.getColor(A.fc);at&&ue.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+at+"; }");var et=Ge.getColor(A.e);et&&ue.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+et+"; }")});var ve=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}();function Me(Ge,ue){return Ge===1?!0:Ge===2?!1:ue}var Ie=function(Ge){ve(ue,Ge);function ue(){var X=Ge.call(this)||this;return X._onFindReplaceStateChange=X._register(new tt.a),X.onFindReplaceStateChange=X._onFindReplaceStateChange.event,X._searchString="",X._replaceString="",X._isRevealed=!1,X._isReplaceRevealed=!1,X._isRegex=!1,X._isRegexOverride=0,X._wholeWord=!1,X._wholeWordOverride=0,X._matchCase=!1,X._matchCaseOverride=0,X._preserveCase=!1,X._preserveCaseOverride=0,X._searchScope=null,X._matchesPosition=0,X._matchesCount=0,X._currentMatch=null,X}return Object.defineProperty(ue.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"isRegex",{get:function(){return Me(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"wholeWord",{get:function(){return Me(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"matchCase",{get:function(){return Me(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"preserveCase",{get:function(){return Me(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),ue.prototype.changeMatchInfo=function(X,Ue,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;Ue===0&&(X=0),X>Ue&&(X=Ue),this._matchesPosition!==X&&(this._matchesPosition=X,et.matchesPosition=!0,J=!0),this._matchesCount!==Ue&&(this._matchesCount=Ue,et.matchesCount=!0,J=!0),typeof at!="undefined"&&(R.a.equalsRange(this._currentMatch,at)||(this._currentMatch=at,et.currentMatch=!0,J=!0)),J&&this._onFindReplaceStateChange.fire(et)},ue.prototype.change=function(X,Ue,at){at===void 0&&(at=!0);var et={moveCursor:Ue,updateHistory:at,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},J=!1,Ce=this.isRegex,Oe=this.wholeWord,it=this.matchCase,Je=this.preserveCase;typeof X.searchString!="undefined"&&(this._searchString!==X.searchString&&(this._searchString=X.searchString,et.searchString=!0,J=!0)),typeof X.replaceString!="undefined"&&(this._replaceString!==X.replaceString&&(this._replaceString=X.replaceString,et.replaceString=!0,J=!0)),typeof X.isRevealed!="undefined"&&(this._isRevealed!==X.isRevealed&&(this._isRevealed=X.isRevealed,et.isRevealed=!0,J=!0)),typeof X.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==X.isReplaceRevealed&&(this._isReplaceRevealed=X.isReplaceRevealed,et.isReplaceRevealed=!0,J=!0)),typeof X.isRegex!="undefined"&&(this._isRegex=X.isRegex),typeof X.wholeWord!="undefined"&&(this._wholeWord=X.wholeWord),typeof X.matchCase!="undefined"&&(this._matchCase=X.matchCase),typeof X.preserveCase!="undefined"&&(this._preserveCase=X.preserveCase),typeof X.searchScope!="undefined"&&(R.a.equalsRange(this._searchScope,X.searchScope)||(this._searchScope=X.searchScope,et.searchScope=!0,J=!0)),this._isRegexOverride=typeof X.isRegexOverride!="undefined"?X.isRegexOverride:0,this._wholeWordOverride=typeof X.wholeWordOverride!="undefined"?X.wholeWordOverride:0,this._matchCaseOverride=typeof X.matchCaseOverride!="undefined"?X.matchCaseOverride:0,this._preserveCaseOverride=typeof X.preserveCaseOverride!="undefined"?X.preserveCaseOverride:0,Ce!==this.isRegex&&(J=!0,et.isRegex=!0),Oe!==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)},ue}(ne.a),pe=o("AbCa"),nt=o("OBOq"),_t=o("cMOf"),Rt=o("/cxE"),Mt=o("MNsG"),zt=o("yqFB"),Gt=o("i/Rh"),on=o("D3Dy"),Ln=o("Md8J"),yn=o("WqXY"),Mn=o("JYp7"),kt=function(){function Ge(ue,X){ue===void 0&&(ue=[]),X===void 0&&(X=10),this._initialize(ue),this._limit=X,this._onChange()}return Ge.prototype.add=function(ue){this._history.delete(ue),this._history.add(ue),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(ue){return this._history.has(ue)},Ge.prototype._onChange=function(){this._reduceToLimit();var ue=this._elements;this._navigator=new Mn.a(ue,0,ue.length,ue.length)},Ge.prototype._reduceToLimit=function(){var ue=this._elements;ue.length>this._limit&&this._initialize(ue.slice(ue.length-this._limit))},Ge.prototype._initialize=function(ue){this._history=new Set;for(var X=0,Ue=ue;X<Ue.length;X++){var at=Ue[X];this._history.add(at)}},Object.defineProperty(Ge.prototype,"_elements",{get:function(){var X=[];return this._history.forEach(function(Ue){return X.push(Ue)}),X},enumerable:!0,configurable:!0}),Ge}(),pt=o("GJhM"),gt=o("4y0V"),Dt=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Lt=Q.a,Vt={inputBackground:He.a.fromHex("#3C3C3C"),inputForeground:He.a.fromHex("#CCCCCC"),inputValidationInfoBorder:He.a.fromHex("#55AAFF"),inputValidationInfoBackground:He.a.fromHex("#063B49"),inputValidationWarningBorder:He.a.fromHex("#B89500"),inputValidationWarningBackground:He.a.fromHex("#352A05"),inputValidationErrorBorder:He.a.fromHex("#BE1100"),inputValidationErrorBackground:He.a.fromHex("#5A1D1D")},Jt=function(Ge){Dt(ue,Ge);function ue(X,Ue,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=Ue,et.options=at||Object.create(null),Object(Et.g)(et.options,Vt,!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=Q.p(X,Lt(".monaco-inputbox.idle"));var J=et.options.flexibleHeight?"textarea":"input",Ce=Q.p(et.element,Lt(".wrapper"));if(et.input=Q.p(Ce,Lt(J+".input.empty")),et.input.setAttribute("autocorrect","off"),et.input.setAttribute("autocapitalize","off"),et.input.setAttribute("spellcheck","false"),et.onfocus(et.input,function(){return Q.e(et.element,"synthetic-focus")}),et.onblur(et.input,function(){return Q.O(et.element,"synthetic-focus")}),et.options.flexibleHeight){et.maxHeight=typeof et.options.flexibleMaxHeight=="number"?et.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,et.mirror=Q.p(Ce,Lt("div.mirror")),et.mirror.innerHTML="&#160;",et.scrollableElement=new pt.b(et.element,{vertical:1}),et.options.flexibleWidth&&(et.input.setAttribute("wrap","off"),et.mirror.style.whiteSpace="pre",et.mirror.style.wordWrap="initial"),Q.p(X,et.scrollableElement.getDomNode()),et._register(et.scrollableElement),et._register(et.scrollableElement.onScroll(function(it){return et.input.scrollTop=it.scrollTop}));var Oe=tt.b.filter(Object(gt.a)(document,"selectionchange"),function(){var it=document.getSelection();return(it==null?void 0:it.anchorNode)===Ce});et._register(Oe(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){Q.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 ue.prototype.onBlur=function(){this._hideMessage()},ue.prototype.onFocus=function(){this._showMessage()},ue.prototype.setPlaceHolder=function(X){this.placeholder=X,this.input.setAttribute("placeholder",X),this.input.title=X},ue.prototype.setAriaLabel=function(X){this.ariaLabel=X,X?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(ue.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"value",{get:function(){return this.input.value},set:function(Ue){this.input.value!==Ue&&(this.input.value=Ue,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"height",{get:function(){return typeof this.cachedHeight=="number"?this.cachedHeight:Q.F(this.element)},enumerable:!0,configurable:!0}),ue.prototype.focus=function(){this.input.focus()},ue.prototype.blur=function(){this.input.blur()},ue.prototype.hasFocus=function(){return document.activeElement===this.input},ue.prototype.select=function(X){X===void 0&&(X=null),this.input.select(),X&&this.input.setSelectionRange(X.start,X.end)},ue.prototype.enable=function(){this.input.removeAttribute("disabled")},ue.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(ue.prototype,"width",{get:function(){return Q.G(this.input)},set:function(Ue){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=Ue-at+"px"}else this.input.style.width=Ue+"px";this.mirror&&(this.mirror.style.width=Ue+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"paddingRight",{set:function(Ue){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+Ue+"px)":this.input.style.paddingRight=Ue+"px",this.mirror&&(this.mirror.style.paddingRight=Ue+"px")},enumerable:!0,configurable:!0}),ue.prototype.updateScrollDimensions=function(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;var X=this.cachedContentHeight,Ue=this.cachedHeight,at=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:X,height:Ue}),this.scrollableElement.setScrollPosition({scrollTop:at})},ue.prototype.showMessage=function(X,Ue){this.message=X,Q.O(this.element,"idle"),Q.O(this.element,"info"),Q.O(this.element,"warning"),Q.O(this.element,"error"),Q.e(this.element,this.classForType(X.type));var at=this.stylesForType(this.message.type);this.element.style.border=at.border?"1px solid "+at.border:"";var et;X.type===3?et=I.a("alertErrorMessage","Error: {0}",X.content):X.type===2?et=I.a("alertWarningMessage","Warning: {0}",X.content):et=I.a("alertInfoMessage","Info: {0}",X.content),nt.a(et),(this.hasFocus()||Ue)&&this._showMessage()},ue.prototype.hideMessage=function(){this.message=null,Q.O(this.element,"info"),Q.O(this.element,"warning"),Q.O(this.element,"error"),Q.e(this.element,"idle"),this._hideMessage(),this.applyStyles()},ue.prototype.validate=function(){var X=null;return this.validation&&(X=this.validation(this.value),X?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(X)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!X},ue.prototype.stylesForType=function(X){switch(X){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}}},ue.prototype.classForType=function(X){switch(X){case 1:return"info";case 2:return"warning";default:return"error"}},ue.prototype._showMessage=function(){var X=this;if(!this.contextViewProvider||!this.message)return;var Ue,at=function(){return Ue.style.width=Q.G(X.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return X.element},anchorAlignment:1,render:function(J){if(!X.message)return null;Ue=Q.p(J,Lt(".monaco-inputbox-container")),at();var Ce={inline:!0,className:"monaco-inputbox-message"},Oe=X.message.formatContent?Object(Ln.b)(X.message.content,Ce):Object(Ln.c)(X.message.content,Ce);Q.e(Oe,X.classForType(X.message.type));var it=X.stylesForType(X.message.type);return Oe.style.backgroundColor=it.background?it.background.toString():"",Oe.style.color=it.foreground?it.foreground.toString():"",Oe.style.border=it.border?"1px solid "+it.border:"",Q.p(Ue,Oe),null},onHide:function(){X.state="closed"},layout:at}),this.state="open"},ue.prototype._hideMessage=function(){if(!this.contextViewProvider)return;this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle"},ue.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),Q.X(this.input,"empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()},ue.prototype.updateMirror=function(){if(!this.mirror)return;var X=this.value,Ue=X.charCodeAt(X.length-1),at=Ue===10?" ":"",et=X+at;et?this.mirror.textContent=X+at:this.mirror.innerHTML="&#160;",this.layout()},ue.prototype.style=function(X){this.inputBackground=X.inputBackground,this.inputForeground=X.inputForeground,this.inputBorder=X.inputBorder,this.inputValidationInfoBackground=X.inputValidationInfoBackground,this.inputValidationInfoForeground=X.inputValidationInfoForeground,this.inputValidationInfoBorder=X.inputValidationInfoBorder,this.inputValidationWarningBackground=X.inputValidationWarningBackground,this.inputValidationWarningForeground=X.inputValidationWarningForeground,this.inputValidationWarningBorder=X.inputValidationWarningBorder,this.inputValidationErrorBackground=X.inputValidationErrorBackground,this.inputValidationErrorForeground=X.inputValidationErrorForeground,this.inputValidationErrorBorder=X.inputValidationErrorBorder,this.applyStyles()},ue.prototype.applyStyles=function(){var X=this.inputBackground?this.inputBackground.toString():"",Ue=this.inputForeground?this.inputForeground.toString():"",at=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=X,this.element.style.color=Ue,this.input.style.backgroundColor=X,this.input.style.color=Ue,this.element.style.borderWidth=at?"1px":"",this.element.style.borderStyle=at?"solid":"",this.element.style.borderColor=at},ue.prototype.layout=function(){if(!this.mirror)return;var X=this.cachedContentHeight;this.cachedContentHeight=Q.F(this.mirror),X!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))},ue.prototype.insertAtCursor=function(X){var Ue=this.inputElement,at=Ue.selectionStart,et=Ue.selectionEnd,J=Ue.value;at!==null&&et!==null&&(this.value=J.substr(0,at)+X+J.substr(et),Ue.setSelectionRange(at+1,at+1),this.layout())},ue.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),Ge.prototype.dispose.call(this)},ue}(ye.a),nn=function(Ge){Dt(ue,Ge);function ue(X,Ue,at){var et=Ge.call(this,X,Ue,at)||this;return et.history=new kt(at.history,100),et}return ue.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},ue.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var X=this.getNextValue();X&&(X=X===this.value?this.getNextValue():X),X&&(this.value=X,nt.c(this.value))},ue.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var X=this.getPreviousValue();X&&(X=X===this.value?this.getPreviousValue():X),X&&(this.value=X,nt.c(this.value))},ue.prototype.getCurrentValue=function(){var X=this.history.current();return X||(X=this.history.last(),this.history.next()),X},ue.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},ue.prototype.getNextValue=function(){return this.history.next()||this.history.last()},ue}(Jt),sn=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),ln=I.a("defaultLabel","input"),_n=function(Ge){sn(ue,Ge);function ue(X,Ue,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=Ue,J.placeholder=et.placeholder||"",J.validation=et.validation,J.label=et.label||ln,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 Ce=et.appendCaseSensitiveLabel||"",Oe=et.appendWholeWordsLabel||"",it=et.appendRegexLabel||"",Je=et.history||[],je=!!et.flexibleHeight,Ct=!!et.flexibleWidth,Ot=et.flexibleMaxHeight;J.domNode=document.createElement("div"),Q.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:je,flexibleWidth:Ct,flexibleMaxHeight:Ot})),J.regex=J._register(new F({appendTitle:it,isChecked:!1,inputActiveOptionBorder:J.inputActiveOptionBorder,inputActiveOptionBackground:J.inputActiveOptionBackground})),J._register(J.regex.onChange(function(jt){J._onDidOptionChange.fire(jt),!jt&&J.fixFocusOnOptionClickEnabled&&J.inputBox.focus(),J.validate()})),J._register(J.regex.onKeyDown(function(jt){J._onRegexKeyDown.fire(jt)})),J.wholeWords=J._register(new we({appendTitle:Oe,isChecked:!1,inputActiveOptionBorder:J.inputActiveOptionBorder,inputActiveOptionBackground:J.inputActiveOptionBackground})),J._register(J.wholeWords.onChange(function(jt){J._onDidOptionChange.fire(jt),!jt&&J.fixFocusOnOptionClickEnabled&&J.inputBox.focus(),J.validate()})),J.caseSensitive=J._register(new $e({appendTitle:Ce,isChecked:!1,inputActiveOptionBorder:J.inputActiveOptionBorder,inputActiveOptionBackground:J.inputActiveOptionBackground})),J._register(J.caseSensitive.onChange(function(jt){J._onDidOptionChange.fire(jt),!jt&&J.fixFocusOnOptionClickEnabled&&J.inputBox.focus(),J.validate()})),J._register(J.caseSensitive.onKeyDown(function(jt){J._onCaseSensitiveKeyDown.fire(jt)})),J._showOptionButtons&&(J.inputBox.paddingRight=J.caseSensitive.width()+J.wholeWords.width()+J.regex.width());var Qt=[J.caseSensitive.domNode,J.wholeWords.domNode,J.regex.domNode];J.onkeydown(J.domNode,function(jt){if(jt.equals(15)||jt.equals(17)||jt.equals(9)){var hn=Qt.indexOf(document.activeElement);if(hn>=0){var bn=-1;jt.equals(17)?bn=(hn+1)%Qt.length:jt.equals(15)&&(hn===0?bn=Qt.length-1:bn=hn-1),jt.equals(9)?Qt[hn].blur():bn>=0&&Qt[bn].focus(),Q.b.stop(jt,!0)}}});var At=document.createElement("div");return At.className="controls",At.style.display=J._showOptionButtons?"block":"none",At.appendChild(J.caseSensitive.domNode),At.appendChild(J.wholeWords.domNode),At.appendChild(J.regex.domNode),J.domNode.appendChild(At),X&&X.appendChild(J.domNode),J.onkeydown(J.inputBox.inputElement,function(jt){return J._onKeyDown.fire(jt)}),J.onkeyup(J.inputBox.inputElement,function(jt){return J._onKeyUp.fire(jt)}),J.oninput(J.inputBox.inputElement,function(jt){return J._onInput.fire()}),J.onmousedown(J.inputBox.inputElement,function(jt){return J._onMouseDown.fire(jt)}),J}return ue.prototype.enable=function(){Q.O(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},ue.prototype.disable=function(){Q.e(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},ue.prototype.setFocusInputOnOptionClick=function(X){this.fixFocusOnOptionClickEnabled=X},ue.prototype.setEnabled=function(X){X?this.enable():this.disable()},ue.prototype.getValue=function(){return this.inputBox.value},ue.prototype.setValue=function(X){this.inputBox.value!==X&&(this.inputBox.value=X)},ue.prototype.style=function(X){this.inputActiveOptionBorder=X.inputActiveOptionBorder,this.inputActiveOptionBackground=X.inputActiveOptionBackground,this.inputBackground=X.inputBackground,this.inputForeground=X.inputForeground,this.inputBorder=X.inputBorder,this.inputValidationInfoBackground=X.inputValidationInfoBackground,this.inputValidationInfoForeground=X.inputValidationInfoForeground,this.inputValidationInfoBorder=X.inputValidationInfoBorder,this.inputValidationWarningBackground=X.inputValidationWarningBackground,this.inputValidationWarningForeground=X.inputValidationWarningForeground,this.inputValidationWarningBorder=X.inputValidationWarningBorder,this.inputValidationErrorBackground=X.inputValidationErrorBackground,this.inputValidationErrorForeground=X.inputValidationErrorForeground,this.inputValidationErrorBorder=X.inputValidationErrorBorder,this.applyStyles()},ue.prototype.applyStyles=function(){if(this.domNode){var X={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(X),this.wholeWords.style(X),this.caseSensitive.style(X);var Ue={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(Ue)}},ue.prototype.select=function(){this.inputBox.select()},ue.prototype.focus=function(){this.inputBox.focus()},ue.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},ue.prototype.setCaseSensitive=function(X){this.caseSensitive.checked=X},ue.prototype.getWholeWords=function(){return this.wholeWords.checked},ue.prototype.setWholeWords=function(X){this.wholeWords.checked=X},ue.prototype.getRegex=function(){return this.regex.checked},ue.prototype.setRegex=function(X){this.regex.checked=X,this.validate()},ue.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},ue.prototype.highlightFindOptions=function(){Q.O(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,Q.e(this.domNode,"highlight-"+this._lastHighlightFindOptions)},ue.prototype.validate=function(){this.inputBox.validate()},ue.prototype.clearMessage=function(){this.inputBox.hideMessage()},ue}(ye.a),On=o("nrhi"),Pn=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Gn=I.a("defaultLabel","input"),Jn=I.a("label.preserveCaseCheckbox","Preserve Case"),Qn=function(Ge){Pn(ue,Ge);function ue(X){return Ge.call(this,{actionClassName:"codicon-preserve-case",title:Jn+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return ue}(Ke),gi=function(Ge){Pn(ue,Ge);function ue(X,Ue,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=Ue,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 Ce=et.history||[],Oe=!!et.flexibleHeight,it=!!et.flexibleWidth,Je=et.flexibleMaxHeight;J.domNode=document.createElement("div"),Q.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:Ce,flexibleHeight:Oe,flexibleWidth:it,flexibleMaxHeight:Je})),J.preserveCase=J._register(new Qn({appendTitle:"",isChecked:!1,inputActiveOptionBorder:J.inputActiveOptionBorder,inputActiveOptionBackground:J.inputActiveOptionBackground})),J._register(J.preserveCase.onChange(function(Ot){J._onDidOptionChange.fire(Ot),!Ot&&J.fixFocusOnOptionClickEnabled&&J.inputBox.focus(),J.validate()})),J._register(J.preserveCase.onKeyDown(function(Ot){J._onPreserveCaseKeyDown.fire(Ot)})),J._showOptionButtons?J.cachedOptionsWidth=J.preserveCase.width():J.cachedOptionsWidth=0;var je=[J.preserveCase.domNode];J.onkeydown(J.domNode,function(Ot){if(Ot.equals(15)||Ot.equals(17)||Ot.equals(9)){var Qt=je.indexOf(document.activeElement);if(Qt>=0){var At=-1;Ot.equals(17)?At=(Qt+1)%je.length:Ot.equals(15)&&(Qt===0?At=je.length-1:At=Qt-1),Ot.equals(9)?je[Qt].blur():At>=0&&je[At].focus(),Q.b.stop(Ot,!0)}}});var Ct=document.createElement("div");return Ct.className="controls",Ct.style.display=J._showOptionButtons?"block":"none",Ct.appendChild(J.preserveCase.domNode),J.domNode.appendChild(Ct),X&&X.appendChild(J.domNode),J.onkeydown(J.inputBox.inputElement,function(Ot){return J._onKeyDown.fire(Ot)}),J.onkeyup(J.inputBox.inputElement,function(Ot){return J._onKeyUp.fire(Ot)}),J.oninput(J.inputBox.inputElement,function(Ot){return J._onInput.fire()}),J.onmousedown(J.inputBox.inputElement,function(Ot){return J._onMouseDown.fire(Ot)}),J}return ue.prototype.enable=function(){Q.O(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},ue.prototype.disable=function(){Q.e(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},ue.prototype.setEnabled=function(X){X?this.enable():this.disable()},ue.prototype.style=function(X){this.inputActiveOptionBorder=X.inputActiveOptionBorder,this.inputActiveOptionBackground=X.inputActiveOptionBackground,this.inputBackground=X.inputBackground,this.inputForeground=X.inputForeground,this.inputBorder=X.inputBorder,this.inputValidationInfoBackground=X.inputValidationInfoBackground,this.inputValidationInfoForeground=X.inputValidationInfoForeground,this.inputValidationInfoBorder=X.inputValidationInfoBorder,this.inputValidationWarningBackground=X.inputValidationWarningBackground,this.inputValidationWarningForeground=X.inputValidationWarningForeground,this.inputValidationWarningBorder=X.inputValidationWarningBorder,this.inputValidationErrorBackground=X.inputValidationErrorBackground,this.inputValidationErrorForeground=X.inputValidationErrorForeground,this.inputValidationErrorBorder=X.inputValidationErrorBorder,this.applyStyles()},ue.prototype.applyStyles=function(){if(this.domNode){var X={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(X);var Ue={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(Ue)}},ue.prototype.select=function(){this.inputBox.select()},ue.prototype.focus=function(){this.inputBox.focus()},ue.prototype.getPreserveCase=function(){return this.preserveCase.checked},ue.prototype.setPreserveCase=function(X){this.preserveCase.checked=X},ue.prototype.focusOnPreserve=function(){this.preserveCase.focus()},ue.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(ue.prototype,"width",{set:function(Ue){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=Ue,this.domNode.style.width=Ue+"px"},enumerable:!0,configurable:!0}),ue.prototype.dispose=function(){Ge.prototype.dispose.call(this)},ue}(ye.a),Kn=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),yi=function(Ge,ue,X,Ue){var at=arguments.length,et=at<3?ue:Ue===null?Ue=Object.getOwnPropertyDescriptor(ue,X):Ue,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(Ge,ue,X,Ue);else for(var Ce=Ge.length-1;Ce>=0;Ce--)(J=Ge[Ce])&&(et=(at<3?J(et):at>3?J(ue,X,et):J(ue,X))||et);return at>3&&et&&Object.defineProperty(ue,X,et),et},mi=function(Ge,ue){return function(X,Ue){ue(X,Ue,Ge)}},vt="historyNavigationWidget",Tt="historyNavigationEnabled";function Ht(Ge,ue,X){new _e.d(X,ue).bindTo(Ge)}function tn(Ge,ue){return Ge.createScoped(ue.target)}function Ut(Ge,ue){return Ge.getContext(document.activeElement).getValue(ue)}function Sn(Ge,ue){var X=tn(Ge,ue);Ht(X,ue,vt);var Ue=new _e.d(Tt,!0).bindTo(X);return{scopedContextKeyService:X,historyNavigationEnablement:Ue}}var Rn=function(Ge){Kn(ue,Ge);function ue(X,Ue,at,et,J){J===void 0&&(J=!1);var Ce=Ge.call(this,X,Ue,J,at)||this;return Ce._register(Sn(et,{target:Ce.inputBox.element,historyNavigator:Ce.inputBox}).scopedContextKeyService),Ce}return ue=yi([mi(3,_e.c)],ue),ue}(_n),Bn=function(Ge){Kn(ue,Ge);function ue(X,Ue,at,et,J){J===void 0&&(J=!1);var Ce=Ge.call(this,X,Ue,J,at)||this;return Ce._register(Sn(et,{target:Ce.inputBox.element,historyNavigator:Ce.inputBox}).scopedContextKeyService),Ce}return ue=yi([mi(3,_e.c)],ue),ue}(gi);On.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:_e.a.and(_e.a.has(vt),_e.a.equals(Tt,!0)),primary:16,secondary:[512|16],handler:function(ue,X){var Ue=Ut(ue.get(_e.c),vt);if(Ue){var at=Ue.historyNavigator;at.showPreviousValue()}}}),On.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:_e.a.and(_e.a.has(vt),_e.a.equals(Tt,!0)),primary:18,secondary:[512|18],handler:function(ue,X){var Ue=Ut(ue.get(_e.c),vt);if(Ue){var at=Ue.historyNavigator;at.showNextValue()}}});var kn=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),oi=I.a("label.find","Find"),ci=I.a("placeholder.find","Find"),Hi=I.a("label.previousMatchButton","Previous match"),rr=I.a("label.nextMatchButton","Next match"),Zn=I.a("label.toggleSelectionFind","Find in selection"),Ii=I.a("label.closeButton","Close"),Si=I.a("label.replace","Replace"),ji=I.a("placeholder.replace","Replace"),Un=I.a("label.replaceButton","Replace"),Ci=I.a("label.replaceAllButton","Replace All"),Wi=I.a("label.toggleReplaceButton","Toggle Replace mode"),Mi=I.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",se),Gi=I.a("label.matchesLocation","{0} of {1}"),Bi=I.a("label.noResults","No Results"),vi=419,qi=275,or=qi-54,bi=69,Di=33,Xi="ctrlEnterReplaceAll.windows.donotask",lr=Mt.e?256:2048,Ti=function(){function Ge(ue){this.afterLineNumber=ue,this.heightInPx=Di,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return Ge}();function sr(Ge,ue,X){var Ue=!!ue.match(/\n/);if(X&&Ue&&X.selectionStart>0){Ge.stopPropagation();return}}function Qe(Ge,ue,X){var Ue=!!ue.match(/\n/);if(X&&Ue&&X.selectionEnd<X.value.length){Ge.stopPropagation();return}}var O=function(Ge){kn(ue,Ge);function ue(X,Ue,at,et,J,Ce,Oe,it,Je){var je=Ge.call(this)||this;return je._cachedHeight=null,je._codeEditor=X,je._controller=Ue,je._state=at,je._contextViewProvider=et,je._keybindingService=J,je._contextKeyService=Ce,je._storageService=it,je._notificationService=Je,je._ctrlEnterReplaceAllWarningPrompted=!!it.getBoolean(Xi,0),je._isVisible=!1,je._isReplaceVisible=!1,je._ignoreChangeEvent=!1,je._updateHistoryDelayer=new re.a(500),je._register(Object(ne.h)(function(){return je._updateHistoryDelayer.cancel()})),je._register(je._state.onFindReplaceStateChange(function(Ct){return je._onStateChanged(Ct)})),je._buildDomNode(),je._updateButtons(),je._tryUpdateWidgetWidth(),je._findInput.inputBox.layout(),je._register(je._codeEditor.onDidChangeConfiguration(function(Ct){if(Ct.hasChanged(68)&&(je._codeEditor.getOption(68)&&je._state.change({isReplaceRevealed:!1},!1),je._updateButtons()),Ct.hasChanged(107)&&je._tryUpdateWidgetWidth(),Ct.hasChanged(2)&&je.updateAccessibilitySupport(),Ct.hasChanged(28)){var Ot=je._codeEditor.getOption(28).addExtraSpaceOnTop;Ot&&!je._viewZone&&(je._viewZone=new Ti(0),je._showViewZone()),!Ot&&je._viewZone&&je._removeViewZone()}})),je.updateAccessibilitySupport(),je._register(je._codeEditor.onDidChangeCursorSelection(function(){je._isVisible&&je._updateToggleSelectionFindButton()})),je._register(je._codeEditor.onDidFocusEditorWidget(function(){if(je._isVisible){var Ct=je._controller.getGlobalBufferTerm();Ct&&Ct!==je._state.searchString&&(je._state.change({searchString:Ct},!0),je._findInput.select())}})),je._findInputFocused=q.bindTo(Ce),je._findFocusTracker=je._register(Q.Y(je._findInput.inputBox.inputElement)),je._register(je._findFocusTracker.onDidFocus(function(){je._findInputFocused.set(!0),je._updateSearchScope()})),je._register(je._findFocusTracker.onDidBlur(function(){je._findInputFocused.set(!1)})),je._replaceInputFocused=Z.bindTo(Ce),je._replaceFocusTracker=je._register(Q.Y(je._replaceInput.inputBox.inputElement)),je._register(je._replaceFocusTracker.onDidFocus(function(){je._replaceInputFocused.set(!0),je._updateSearchScope()})),je._register(je._replaceFocusTracker.onDidBlur(function(){je._replaceInputFocused.set(!1)})),je._codeEditor.addOverlayWidget(je),je._codeEditor.getOption(28).addExtraSpaceOnTop&&(je._viewZone=new Ti(0)),je._applyTheme(Oe.getTheme()),je._register(Oe.onThemeChange(je._applyTheme.bind(je))),je._register(je._codeEditor.onDidChangeModel(function(){if(!je._isVisible)return;je._viewZoneId=void 0})),je._register(je._codeEditor.onDidScrollChange(function(Ct){if(Ct.scrollTopChanged){je._layoutViewZone();return}setTimeout(function(){je._layoutViewZone()},0)})),je}return ue.prototype.getId=function(){return ue.ID},ue.prototype.getDomNode=function(){return this._domNode},ue.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},ue.prototype._onStateChanged=function(X){if(X.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(X.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),X.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),X.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(68)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=Q.G(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(X.isRevealed||X.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&(this._tryUpdateHeight()&&this._showViewZone()),X.isRegex&&this._findInput.setRegex(this._state.isRegex),X.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),X.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),X.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),X.searchString||X.matchesCount||X.matchesPosition){var Ue=this._state.searchString.length>0&&this._state.matchesCount===0;Q.X(this._domNode,"no-results",Ue),this._updateMatchesCount(),this._updateButtons()}(X.searchString||X.currentMatch)&&this._layoutViewZone(),X.updateHistory&&this._delayedUpdateHistory()},ue.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},ue.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},ue.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=bi+"px",this._state.matchesCount>=se?this._matchesCount.title=Mi:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var X;if(this._state.matchesCount>0){var Ue=String(this._state.matchesCount);this._state.matchesCount>=se&&(Ue+="+");var at=String(this._state.matchesPosition);at==="0"&&(at="?"),X=N.r(Gi,at,Ue)}else X=Bi;this._matchesCount.appendChild(document.createTextNode(X)),Object(nt.a)(this._getAriaLabel(X,this._state.currentMatch,this._state.searchString),!0),bi=Math.max(bi,this._matchesCount.clientWidth)},ue.prototype._getAriaLabel=function(X,Ue,at){return X===Bi?at===""?I.a("ariaSearchNoResultEmpty","{0} found",X):I.a("ariaSearchNoResult","{0} found for {1}",X,at):Ue?I.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",X,at,Ue.startLineNumber+":"+Ue.startColumn):I.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",X,at)},ue.prototype._updateToggleSelectionFindButton=function(){var X=this._codeEditor.getSelection(),Ue=X?X.startLineNumber!==X.endLineNumber||X.startColumn!==X.endColumn:!1,at=this._toggleSelectionFind.checked;this._isVisible&&(at||Ue)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},ue.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var X=this._state.searchString.length>0,Ue=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&X&&Ue),this._nextBtn.setEnabled(this._isVisible&&X&&Ue),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&X),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&X),Q.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)},ue.prototype._reveal=function(){var X=this;if(!this._isVisible){this._isVisible=!0;var Ue=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=!!Ue&&Ue.startLineNumber!==Ue.endLineNumber;this._toggleSelectionFind.checked=at;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){Q.e(X._domNode,"visible"),X._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){X._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var et=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&Ue){var J=this._codeEditor.getDomNode();if(J){var Ce=Q.B(J),Oe=this._codeEditor.getScrolledVisiblePosition(Ue.getStartPosition()),it=Ce.left+(Oe?Oe.left:0),Je=Oe?Oe.top:0;if(this._viewZone&&Je<this._viewZone.heightInPx){Ue.endLineNumber>Ue.startLineNumber&&(et=!1);var je=Q.E(this._domNode).left;it>je&&(et=!1);var Ct=this._codeEditor.getScrolledVisiblePosition(Ue.getEndPosition()),Ot=Ce.left+(Ct?Ct.left:0);Ot>je&&(et=!1)}}}this._showViewZone(et)}},ue.prototype._hide=function(X){this._isVisible&&(this._isVisible=!1,this._updateButtons(),Q.O(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),X&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},ue.prototype._layoutViewZone=function(){var X=this,Ue=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!Ue){this._removeViewZone();return}if(!this._isVisible)return;var at=this._viewZone;if(this._viewZoneId!==void 0||!at)return;this._codeEditor.changeViewZones(function(et){at.heightInPx=X._getHeight(),X._viewZoneId=et.addZone(at),X._codeEditor.setScrollTop(X._codeEditor.getScrollTop()+at.heightInPx)})},ue.prototype._showViewZone=function(X){var Ue=this;if(X===void 0&&(X=!0),!this._isVisible)return;var at=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!at)return;this._viewZone===void 0&&(this._viewZone=new Ti(0));var et=this._viewZone;this._codeEditor.changeViewZones(function(J){if(Ue._viewZoneId!==void 0){var Ce=Ue._getHeight();if(Ce===et.heightInPx)return;var Oe=Ce-et.heightInPx;et.heightInPx=Ce,J.layoutZone(Ue._viewZoneId),X&&Ue._codeEditor.setScrollTop(Ue._codeEditor.getScrollTop()+Oe);return}else{var Oe=Ue._getHeight();et.heightInPx=Oe,Ue._viewZoneId=J.addZone(et),X&&Ue._codeEditor.setScrollTop(Ue._codeEditor.getScrollTop()+Oe)}})},ue.prototype._removeViewZone=function(){var X=this;this._codeEditor.changeViewZones(function(Ue){X._viewZoneId!==void 0&&(Ue.removeZone(X._viewZoneId),X._viewZoneId=void 0,X._viewZone&&(X._codeEditor.setScrollTop(X._codeEditor.getScrollTop()-X._viewZone.heightInPx),X._viewZone=void 0))})},ue.prototype._applyTheme=function(X){var Ue={inputActiveOptionBorder:X.getColor(A.X),inputActiveOptionBackground:X.getColor(A.W),inputBackground:X.getColor(A.Y),inputForeground:X.getColor(A.ab),inputBorder:X.getColor(A.Z),inputValidationInfoBackground:X.getColor(A.eb),inputValidationInfoForeground:X.getColor(A.gb),inputValidationInfoBorder:X.getColor(A.fb),inputValidationWarningBackground:X.getColor(A.hb),inputValidationWarningForeground:X.getColor(A.jb),inputValidationWarningBorder:X.getColor(A.ib),inputValidationErrorBackground:X.getColor(A.bb),inputValidationErrorForeground:X.getColor(A.db),inputValidationErrorBorder:X.getColor(A.cb)};this._findInput.style(Ue),this._replaceInput.style(Ue),this._toggleSelectionFind.style(Ue)},ue.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!Q.L(this._domNode))return;var X=this._codeEditor.getLayoutInfo(),Ue=X.contentWidth;if(Ue<=0){Q.e(this._domNode,"hiddenEditor");return}else Q.H(this._domNode,"hiddenEditor")&&Q.O(this._domNode,"hiddenEditor");var at=X.width,et=X.minimapWidth,J=!1,Ce=!1,Oe=!1;if(this._resized){var it=Q.G(this._domNode);if(it>vi){this._domNode.style.maxWidth=at-28-et-15+"px",this._replaceInput.width=Q.G(this._findInput.domNode);return}}if(vi+28+et>=at&&(Ce=!0),vi+28+et-bi>=at&&(Oe=!0),vi+28+et-bi>=at+50&&(J=!0),Q.X(this._domNode,"collapsed-find-widget",J),Q.X(this._domNode,"narrow-find-widget",Oe),Q.X(this._domNode,"reduced-find-widget",Ce),!Oe&&!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=Q.G(this._findInput.domNode))},ue.prototype._getHeight=function(){var X=0;return X+=4,X+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(X+=4,X+=this._replaceInput.inputBox.height+2),X+=4,X},ue.prototype._tryUpdateHeight=function(){var X=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===X?!1:(this._cachedHeight=X,this._domNode.style.height=X+"px",!0)},ue.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},ue.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},ue.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},ue.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var X=this._codeEditor.getSelection();X.endColumn===1&&X.endLineNumber>X.startLineNumber&&(X=X.setEndPosition(X.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(X.endLineNumber-1)));var Ue=this._state.currentMatch;X.startLineNumber!==X.endLineNumber&&(R.a.equalsRange(X,Ue)||this._state.change({searchScope:X},!0))}},ue.prototype._onFindInputMouseDown=function(X){X.middleButton&&X.stopPropagation()},ue.prototype._onFindInputKeyDown=function(X){if(X.equals(lr|3)){this._findInput.inputBox.insertAtCursor(`
`),X.preventDefault();return}if(X.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),X.preventDefault();return}if(X.equals(2048|18)){this._codeEditor.focus(),X.preventDefault();return}if(X.equals(16))return sr(X,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(X.equals(18))return Qe(X,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},ue.prototype._onReplaceInputKeyDown=function(X){if(X.equals(lr|3)){Mt.h&&Mt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(I.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(Xi,!0,0)),this._replaceInput.inputBox.insertAtCursor(`
`),X.preventDefault();return}if(X.equals(2)){this._findInput.focusOnCaseSensitive(),X.preventDefault();return}if(X.equals(1024|2)){this._findInput.focus(),X.preventDefault();return}if(X.equals(2048|18)){this._codeEditor.focus(),X.preventDefault();return}if(X.equals(16))return sr(X,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(X.equals(18))return Qe(X,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},ue.prototype.getHorizontalSashTop=function(X){return 0},ue.prototype.getHorizontalSashLeft=function(X){return 0},ue.prototype.getHorizontalSashWidth=function(X){return 500},ue.prototype._keybindingLabelFor=function(X){var Ue=this._keybindingService.lookupKeybinding(X);return Ue?" ("+Ue.getLabel()+")":""},ue.prototype._buildDomNode=function(){var X=this,Ue=!0,at=!0;this._findInput=this._register(new Rn(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(je){if(je.length===0||!X._findInput.getRegex())return null;try{return new RegExp(je),null}catch(Ct){return{content:Ct.message}}},flexibleHeight:Ue,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 X._onFindInputKeyDown(Je)})),this._register(this._findInput.inputBox.onDidChange(function(){if(X._ignoreChangeEvent)return;X._state.change({searchString:X._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){X._state.change({isRegex:X._findInput.getRegex(),wholeWord:X._findInput.getWholeWords(),matchCase:X._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(Je){Je.equals(1024|2)&&(X._isReplaceVisible&&(X._replaceInput.focus(),Je.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(Je){Je.equals(2)&&(X._isReplaceVisible&&(X._replaceInput.focusOnPreserve(),Je.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(Je){X._tryUpdateHeight()&&X._showViewZone()})),Mt.d&&this._register(this._findInput.onMouseDown(function(Je){return X._onFindInputMouseDown(Je)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new M({label:Hi+this._keybindingLabelFor(de.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){X._codeEditor.getAction(de.PreviousMatchFindAction).run().then(void 0,Rt.e)}})),this._nextBtn=this._register(new M({label:rr+this._keybindingLabelFor(de.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){X._codeEditor.getAction(de.NextMatchFindAction).run().then(void 0,Rt.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:Zn+this._keybindingLabelFor(de.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(X._toggleSelectionFind.checked){if(X._codeEditor.hasModel()){var Je=X._codeEditor.getSelection();Je.endColumn===1&&Je.endLineNumber>Je.startLineNumber&&(Je=Je.setEndPosition(Je.endLineNumber-1,X._codeEditor.getModel().getLineMaxColumn(Je.endLineNumber-1))),Je.isEmpty()||X._state.change({searchScope:Je},!0)}}else X._state.change({searchScope:null},!0)})),J.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new M({label:Ii+this._keybindingLabelFor(de.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){X._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(je){je.equals(2)&&(X._isReplaceVisible&&(X._replaceBtn.isEnabled()?X._replaceBtn.focus():X._codeEditor.focus(),je.preventDefault()))}})),J.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Bn(null,void 0,{label:Si,placeholder:ji,history:[],flexibleHeight:Ue,flexibleWidth:at,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(Je){return X._onReplaceInputKeyDown(Je)})),this._register(this._replaceInput.inputBox.onDidChange(function(){X._state.change({replaceString:X._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(Je){X._isReplaceVisible&&X._tryUpdateHeight()&&X._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){X._state.change({preserveCase:X._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(Je){Je.equals(2)&&(X._prevBtn.isEnabled()?X._prevBtn.focus():X._nextBtn.isEnabled()?X._nextBtn.focus():X._toggleSelectionFind.enabled?X._toggleSelectionFind.focus():X._closeBtn.isEnabled()&&X._closeBtn.focus(),Je.preventDefault())})),this._replaceBtn=this._register(new M({label:Un+this._keybindingLabelFor(de.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){X._controller.replace()},onKeyDown:function(je){je.equals(1024|2)&&(X._closeBtn.focus(),je.preventDefault())}})),this._replaceAllBtn=this._register(new M({label:Ci+this._keybindingLabelFor(de.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){X._controller.replaceAll()}}));var Ce=document.createElement("div");Ce.className="replace-part",Ce.appendChild(this._replaceInput.domNode);var Oe=document.createElement("div");Oe.className="replace-actions",Ce.appendChild(Oe),Oe.appendChild(this._replaceBtn.domNode),Oe.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new M({label:Wi,className:"codicon toggle left",onTrigger:function(){X._state.change({isReplaceRevealed:!X._isReplaceVisible},!1),X._isReplaceVisible&&(X._replaceInput.width=Q.G(X._findInput.domNode),X._replaceInput.inputBox.layout()),X._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=vi+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(et),this._domNode.appendChild(Ce),this._resizeSash=new _t.a(this._domNode,this,{orientation:0}),this._resized=!1;var it=vi;this._register(this._resizeSash.onDidStart(function(){it=Q.G(X._domNode)})),this._register(this._resizeSash.onDidChange(function(Je){X._resized=!0;var je=it+Je.startX-Je.currentX;if(je<vi)return;var Ct=parseFloat(Q.y(X._domNode).maxWidth)||0;if(je>Ct)return;X._domNode.style.width=je+"px",X._isReplaceVisible&&(X._replaceInput.width=Q.G(X._findInput.domNode)),X._findInput.inputBox.layout(),X._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var Je=Q.G(X._domNode);if(Je<vi)return;var je=vi;if(!X._resized||Je===vi){var Ct=X._codeEditor.getLayoutInfo();je=Ct.width-28-Ct.minimapWidth-15,X._resized=!0}X._domNode.style.width=je+"px",X._isReplaceVisible&&(X._replaceInput.width=Q.G(X._findInput.domNode)),X._findInput.inputBox.layout()}))},ue.prototype.updateAccessibilitySupport=function(){var X=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(X!==2)},ue.ID="editor.contrib.findWidget",ue}(ye.a),M=function(Ge){kn(ue,Ge);function ue(X){var Ue=Ge.call(this)||this;return Ue._opts=X,Ue._domNode=document.createElement("div"),Ue._domNode.title=Ue._opts.label,Ue._domNode.tabIndex=0,Ue._domNode.className="button "+Ue._opts.className,Ue._domNode.setAttribute("role","button"),Ue._domNode.setAttribute("aria-label",Ue._opts.label),Ue.onclick(Ue._domNode,function(at){Ue._opts.onTrigger(),at.preventDefault()}),Ue.onkeydown(Ue._domNode,function(at){if(at.equals(10)||at.equals(3)){Ue._opts.onTrigger(),at.preventDefault();return}Ue._opts.onKeyDown&&Ue._opts.onKeyDown(at)}),Ue}return Object.defineProperty(ue.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),ue.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},ue.prototype.focus=function(){this._domNode.focus()},ue.prototype.setEnabled=function(X){Q.X(this._domNode,"disabled",!X),this._domNode.setAttribute("aria-disabled",String(!X)),this._domNode.tabIndex=X?0:-1},ue.prototype.setExpanded=function(X){this._domNode.setAttribute("aria-expanded",String(!!X))},ue.prototype.toggleClass=function(X,Ue){Q.X(this._domNode,X,Ue)},ue}(ye.a);Object(te.e)(function(Ge,ue){var X=function(At,jt){jt&&ue.addRule(".monaco-editor "+At+" { background-color: "+jt+"; }")};X(".findMatch",Ge.getColor(A.t)),X(".currentFindMatch",Ge.getColor(A.r)),X(".findScope",Ge.getColor(A.v));var Ue=Ge.getColor(A.P);X(".find-widget",Ue);var at=Ge.getColor(A.fc);at&&ue.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+at+"; }");var et=Ge.getColor(A.u);et&&ue.addRule(".monaco-editor .findMatch { border: 1px "+(Ge.type==="hc"?"dotted":"solid")+" "+et+"; box-sizing: border-box; }");var J=Ge.getColor(A.s);J&&ue.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+J+"; padding: 1px; box-sizing: border-box; }");var Ce=Ge.getColor(A.w);Ce&&ue.addRule(".monaco-editor .findScope { border: 1px "+(Ge.type==="hc"?"dashed":"solid")+" "+Ce+"; }");var Oe=Ge.getColor(A.e);Oe&&ue.addRule(".monaco-editor .find-widget { border: 1px solid "+Oe+"; }");var it=Ge.getColor(A.R);it&&ue.addRule(".monaco-editor .find-widget { color: "+it+"; }");var Je=Ge.getColor(A.T);Je&&ue.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+Je+"; }");var je=Ge.getColor(A.S);if(je)ue.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+je+"; width: 3px !important; margin-left: -4px;}");else{var Ct=Ge.getColor(A.Q);Ct&&ue.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+Ct+"; width: 3px !important; margin-left: -4px;}")}var Ot=Ge.getColor(A.U);Ot&&ue.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Ot+"; }")});var Y=o("9XeP"),De=o("Uzvx"),Re=o("Cg/j"),We=o("bexQ"),ft=o("A+jI"),lt=o("sM1p"),yt=function(){var Ge=function(X,Ue){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(X,Ue)};return function(ue,X){Ge(ue,X);function Ue(){this.constructor=ue}ue.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),xt=function(Ge,ue,X,Ue){var at=arguments.length,et=at<3?ue:Ue===null?Ue=Object.getOwnPropertyDescriptor(ue,X):Ue,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(Ge,ue,X,Ue);else for(var Ce=Ge.length-1;Ce>=0;Ce--)(J=Ge[Ce])&&(et=(at<3?J(et):at>3?J(ue,X,et):J(ue,X))||et);return at>3&&et&&Object.defineProperty(ue,X,et),et},It=function(Ge,ue){return function(X,Ue){ue(X,Ue,Ge)}},Ft=524288;function Yt(Ge){if(!Ge.hasModel())return null;var ue=Ge.getSelection();if(ue.startLineNumber===ue.endLineNumber){if(ue.isEmpty()){var X=Ge.getModel().getWordAtPosition(ue.getStartPosition());if(X)return X.word}else if(Ge.getModel().getValueLengthInRange(ue)<Ft)return Ge.getModel().getValueInRange(ue)}return null}var Zt=function(Ge){yt(ue,Ge);function ue(X,Ue,at,et){var J=Ge.call(this)||this;return J._editor=X,J._findWidgetVisible=Se.bindTo(Ue),J._contextKeyService=Ue,J._storageService=at,J._clipboardService=et,J._updateHistoryDelayer=new re.a(500),J._state=J._register(new Ie),J.loadQueryState(),J._register(J._state.onFindReplaceStateChange(function(Ce){return J._onStateChanged(Ce)})),J._model=null,J._register(J._editor.onDidChangeModel(function(){var Ce=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),Ce&&J._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),J}return ue.get=function(X){return X.getContribution(ue.ID)},ue.prototype.dispose=function(){this.disposeModel(),Ge.prototype.dispose.call(this)},ue.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},ue.prototype._onStateChanged=function(X){this.saveQueryState(X),X.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),X.searchString&&this.setGlobalBufferTerm(this._state.searchString)},ue.prototype.saveQueryState=function(X){X.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),X.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),X.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),X.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},ue.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},ue.prototype.isFindInputFocused=function(){return!!q.getValue(this._contextKeyService)},ue.prototype.getState=function(){return this._state},ue.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},ue.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},ue.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},ue.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},ue.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var X=this._editor.getSelection();X.endColumn===1&&X.endLineNumber>X.startLineNumber&&(X=X.setEndPosition(X.endLineNumber-1,this._editor.getModel().getLineMaxColumn(X.endLineNumber-1))),X.isEmpty()||this._state.change({searchScope:X},!0)}},ue.prototype.setSearchString=function(X){this._state.isRegex&&(X=N.p(X)),this._state.change({searchString:X},!1)},ue.prototype.highlightFindOptions=function(){},ue.prototype._start=function(X){if(this.disposeModel(),!this._editor.hasModel())return;var Ue={isRevealed:!0};if(X.seedSearchStringFromSelection){var at=Yt(this._editor);at&&(this._state.isRegex?Ue.searchString=N.p(at):Ue.searchString=at)}if(!Ue.searchString&&X.seedSearchStringFromGlobalClipboard){var at=this.getGlobalBufferTerm();at&&(Ue.searchString=at)}if(X.forceRevealReplace?Ue.isReplaceRevealed=!0:this._findWidgetVisible.get()||(Ue.isReplaceRevealed=!1),X.updateSearchScope){var et=this._editor.getSelection();et.isEmpty()||(Ue.searchScope=et)}this._state.change(Ue,!1),this._model||(this._model=new ie(this._editor,this._state))},ue.prototype.start=function(X){this._start(X)},ue.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},ue.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},ue.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},ue.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},ue.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},ue.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},ue.prototype.setGlobalBufferTerm=function(X){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(X)},ue.ID="editor.contrib.findController",ue=xt([It(1,_e.c),It(2,ft.a),It(3,Y.a)],ue),ue}(ne.a),un=function(Ge){yt(ue,Ge);function ue(X,Ue,at,et,J,Ce,Oe,it){var Je=Ge.call(this,X,at,Oe,it)||this;return Je._contextViewService=Ue,Je._keybindingService=et,Je._themeService=J,Je._notificationService=Ce,Je._widget=null,Je._findOptionsWidget=null,Je}return ue.prototype._start=function(X){this._widget||this._createFindWidget();var Ue=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=!!Ue&&Ue.startLineNumber!==Ue.endLineNumber;at=et;break;default:break}X.updateSearchScope=at,Ge.prototype._start.call(this,X),X.shouldFocus===2?this._widget.focusReplaceInput():X.shouldFocus===1&&this._widget.focusFindInput()},ue.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},ue.prototype._createFindWidget=function(){this._widget=this._register(new O(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new Pe(this._editor,this._state,this._keybindingService,this._themeService))},ue=xt([It(1,De.b),It(2,_e.c),It(3,We.a),It(4,te.c),It(5,lt.a),It(6,ft.a),It(7,Object(Re.d)(Y.a))],ue),ue}(Zt),fn=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.StartFindAction,label:I.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:I.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return ue.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&at.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:Ue.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},ue}(k.b),An=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.StartFindWithSelection,label:I.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2048|35},weight:100}})||this}return ue.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),at.setGlobalBufferTerm(at.getState().searchString))},ue}(k.b),gn=function(Ge){yt(ue,Ge);function ue(){return Ge!==null&&Ge.apply(this,arguments)||this}return ue.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&!this._run(at)&&(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:at.getState().searchString.length===0&&Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(at))},ue}(k.b),Tn=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.NextMatchFindAction,label:I.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return ue.prototype._run=function(X){return X.moveToNextMatch()},ue}(gn),xn=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.NextMatchFindAction,label:I.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:_e.a.and(U.a.focus,q),primary:3,weight:100}})||this}return ue.prototype._run=function(X){return X.moveToNextMatch()},ue}(gn),Le=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.PreviousMatchFindAction,label:I.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return ue.prototype._run=function(X){return X.moveToPrevMatch()},ue}(gn),W=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.PreviousMatchFindAction,label:I.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:_e.a.and(U.a.focus,q),primary:1024|3,weight:100}})||this}return ue.prototype._run=function(X){return X.moveToPrevMatch()},ue}(gn),ae=function(Ge){yt(ue,Ge);function ue(){return Ge!==null&&Ge.apply(this,arguments)||this}return ue.prototype.run=function(X,Ue){var at=Zt.get(Ue);if(!at)return;var et=Yt(Ue);et&&at.setSearchString(et),this._run(at)||(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(at))},ue}(k.b),ke=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.NextSelectionMatchFindAction,label:I.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:2048|61,weight:100}})||this}return ue.prototype._run=function(X){return X.moveToNextMatch()},ue}(ae),qe=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.PreviousSelectionMatchFindAction,label:I.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:2048|1024|61,weight:100}})||this}return ue.prototype._run=function(X){return X.moveToPrevMatch()},ue}(ae),ct=function(Ge){yt(ue,Ge);function ue(){return Ge.call(this,{id:de.StartFindReplaceAction,label:I.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:I.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return ue.prototype.run=function(X,Ue){if(!Ue.hasModel()||Ue.getOption(68))return;var at=Zt.get(Ue),et=Ue.getSelection(),J=at.isFindInputFocused(),Ce=!et.isEmpty()&&et.startLineNumber===et.endLineNumber&&Ue.getOption(28).seedSearchStringFromSelection&&!J,Oe=J||Ce?2:1;at&&at.start({forceRevealReplace:!0,seedSearchStringFromSelection:Ce,seedSearchStringFromGlobalClipboard:Ue.getOption(28).seedSearchStringFromSelection,shouldFocus:Oe,shouldAnimate:!0,updateSearchScope:!1})},ue}(k.b);Object(k.h)(Zt.ID,un),Object(k.f)(fn),Object(k.f)(An),Object(k.f)(Tn),Object(k.f)(xn),Object(k.f)(Le),Object(k.f)(W),Object(k.f)(ke),Object(k.f)(qe),Object(k.f)(ct);var St=k.c.bindToContribution(Zt.get);Object(k.g)(new St({id:de.CloseFindWidgetCommand,precondition:Se,handler:function(ue){return ue.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:9,secondary:[1024|9]}})),Object(k.g)(new St({id:de.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(ue){return ue.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:ce.primary,mac:ce.mac,win:ce.win,linux:ce.linux}})),Object(k.g)(new St({id:de.ToggleWholeWordCommand,precondition:void 0,handler:function(ue){return ue.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:Te.primary,mac:Te.mac,win:Te.win,linux:Te.linux}})),Object(k.g)(new St({id:de.ToggleRegexCommand,precondition:void 0,handler:function(ue){return ue.toggleRegex()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:Ve.primary,mac:Ve.mac,win:Ve.win,linux:Ve.linux}})),Object(k.g)(new St({id:de.ToggleSearchScopeCommand,precondition:void 0,handler:function(ue){return ue.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:Ee.primary,mac:Ee.mac,win:Ee.win,linux:Ee.linux}})),Object(k.g)(new St({id:de.ReplaceOneAction,precondition:Se,handler:function(ue){return ue.replace()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:2048|1024|22}})),Object(k.g)(new St({id:de.ReplaceOneAction,precondition:Se,handler:function(ue){return ue.replace()},kbOpts:{weight:100+5,kbExpr:_e.a.and(U.a.focus,Z),primary:3}})),Object(k.g)(new St({id:de.ReplaceAllAction,precondition:Se,handler:function(ue){return ue.replaceAll()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:2048|512|3}})),Object(k.g)(new St({id:de.ReplaceAllAction,precondition:Se,handler:function(ue){return ue.replaceAll()},kbOpts:{weight:100+5,kbExpr:_e.a.and(U.a.focus,Z),primary:void 0,mac:{primary:2048|3}}})),Object(k.g)(new St({id:de.SelectAllMatchesAction,precondition:Se,handler:function(ue){return ue.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:512|3}}))},oiKk:function(wt,P,o){"use strict";o.r(P),o.d(P,"IPadShowKeyboard",function(){return G});var I=o("ci+S"),re=o.n(I),ne=o("D3Dy"),N=o("EffR"),k=o("pmY6"),U=o("sswD"),j=function(){var _=function(K,D){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,te){A.__proto__=te}||function(A,te){for(var H in te)te.hasOwnProperty(H)&&(A[H]=te[H])},_(K,D)};return function(x,K){_(x,K);function D(){this.constructor=x}x.prototype=K===null?Object.create(K):(D.prototype=K.prototype,new D)}}(),G=function(_){j(x,_);function x(K){var D=_.call(this)||this;return D.editor=K,D.widget=null,ne.j&&(D._register(K.onDidChangeConfiguration(function(){return D.update()})),D.update()),D}return x.prototype.update=function(){var K=!this.editor.getOption(68);!this.widget&&K?this.widget=new R(this.editor):this.widget&&!K&&(this.widget.dispose(),this.widget=null)},x.prototype.dispose=function(){_.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},x.ID="editor.contrib.iPadShowKeyboard",x}(k.a),R=function(_){j(x,_);function x(K){var D=_.call(this)||this;return D.editor=K,D._domNode=document.createElement("textarea"),D._domNode.className="iPadShowKeyboard",D._register(N.i(D._domNode,"touchstart",function(A){D.editor.focus()})),D._register(N.i(D._domNode,"focus",function(A){D.editor.focus()})),D.editor.addOverlayWidget(D),D}return x.prototype.dispose=function(){this.editor.removeOverlayWidget(this),_.prototype.dispose.call(this)},x.prototype.getId=function(){return x.ID},x.prototype.getDomNode=function(){return this._domNode},x.prototype.getPosition=function(){return{preference:1}},x.ID="editor.contrib.ShowKeyboardWidget",x}(k.a);Object(U.h)(G.ID,G)},p3Ex:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return o.e(208).then(o.bind(null,"/Om3"))}})},p5tG:function(wt,P,o){"use strict";o.r(P),o.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=o("M/lh"),re=o.n(I);"use strict";var ne=monaco.Emitter,N=function(){function _(x,K,D){this._onDidChange=new ne,this._languageId=x,this.setDiagnosticsOptions(K),this.setModeConfiguration(D)}return Object.defineProperty(_.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),_.prototype.setDiagnosticsOptions=function(x){this._diagnosticsOptions=x||Object.create(null),this._onDidChange.fire(this)},_.prototype.setModeConfiguration=function(x){this._modeConfiguration=x||Object.create(null),this._onDidChange.fire(this)},_}(),k={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},U={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},j=new N("json",k,U);function G(){return{jsonDefaults:j}}monaco.languages.json=G();function R(){return o.e(200).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(){R().then(function(_){return _.setupMode(j)})})},pAvP:function(wt,P,o){"use strict";o.d(P,"a",function(){return ne});var I=o("Cg/j"),re="editorWorkerService",ne=Object(I.c)(re)},pI2L:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return o.e(240).then(o.bind(null,"KpXS"))}})},pg8w:function(wt,P,o){"use strict";o.d(P,"a",function(){return j}),o.d(P,"b",function(){return G});var I=o("6OMU"),re=o("pmY6"),ne=o("EffR"),N=o("ZCR3"),k=function(){var R=function(x,K){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,A){D.__proto__=A}||function(D,A){for(var te in A)A.hasOwnProperty(te)&&(D[te]=A[te])},R(x,K)};return function(_,x){R(_,x);function K(){this.constructor=_}_.prototype=x===null?Object.create(x):(K.prototype=x.prototype,new K)}}(),U=function(R,_,x,K){var D=arguments.length,A=D<3?_:K===null?K=Object.getOwnPropertyDescriptor(_,x):K,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(R,_,x,K);else for(var H=R.length-1;H>=0;H--)(te=R[H])&&(A=(D<3?te(A):D>3?te(_,x,A):te(_,x))||A);return D>3&&A&&Object.defineProperty(_,x,A),A},j;(function(R){R.Tap="-monaco-gesturetap",R.Change="-monaco-gesturechange",R.Start="-monaco-gesturestart",R.End="-monaco-gesturesend",R.Contextmenu="-monaco-gesturecontextmenu"})(j||(j={}));var G=function(R){k(_,R);function _(){var x=R.call(this)||this;return x.dispatched=!1,x.activeTouches={},x.handle=null,x.targets=[],x.ignoreTargets=[],x._lastSetTapCountTime=0,x._register(ne.i(document,"touchstart",function(K){return x.onTouchStart(K)})),x._register(ne.i(document,"touchend",function(K){return x.onTouchEnd(K)})),x._register(ne.i(document,"touchmove",function(K){return x.onTouchMove(K)})),x}return _.addTarget=function(x){return _.isTouchDevice()?(_.INSTANCE||(_.INSTANCE=new _),_.INSTANCE.targets.push(x),{dispose:function(){_.INSTANCE.targets=_.INSTANCE.targets.filter(function(D){return D!==x})}}):re.a.None},_.ignoreTarget=function(x){return _.isTouchDevice()?(_.INSTANCE||(_.INSTANCE=new _),_.INSTANCE.ignoreTargets.push(x),{dispose:function(){_.INSTANCE.ignoreTargets=_.INSTANCE.ignoreTargets.filter(function(D){return D!==x})}}):re.a.None},_.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},_.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),R.prototype.dispose.call(this)},_.prototype.onTouchStart=function(x){var K=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var D=0,A=x.targetTouches.length;D<A;D++){var te=x.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 H=this.newGestureEvent(j.Start,te.target);H.pageX=te.pageX,H.pageY=te.pageY,this.dispatchEvent(H)}this.dispatched&&(x.preventDefault(),x.stopPropagation(),this.dispatched=!1)},_.prototype.onTouchEnd=function(x){for(var K=Date.now(),D=Object.keys(this.activeTouches).length,A=function(p,g){var m=x.changedTouches.item(p);if(!te.activeTouches.hasOwnProperty(String(m.identifier)))return console.warn("move of an UNKNOWN touch",m),"continue";var w=te.activeTouches[m.identifier],B=Date.now()-w.initialTimeStamp;if(B<_.HOLD_DELAY&&Math.abs(w.initialPageX-I.v(w.rollingPageX))<30&&Math.abs(w.initialPageY-I.v(w.rollingPageY))<30){var z=te.newGestureEvent(j.Tap,w.initialTarget);z.pageX=I.v(w.rollingPageX),z.pageY=I.v(w.rollingPageY),te.dispatchEvent(z)}else if(B>=_.HOLD_DELAY&&Math.abs(w.initialPageX-I.v(w.rollingPageX))<30&&Math.abs(w.initialPageY-I.v(w.rollingPageY))<30){var z=te.newGestureEvent(j.Contextmenu,w.initialTarget);z.pageX=I.v(w.rollingPageX),z.pageY=I.v(w.rollingPageY),te.dispatchEvent(z)}else if(D===1){var oe=I.v(w.rollingPageX),he=I.v(w.rollingPageY),_e=I.v(w.rollingTimestamps)-w.rollingTimestamps[0],Se=oe-w.rollingPageX[0],q=he-w.rollingPageY[0],Z=te.targets.filter(function(ce){return w.initialTarget instanceof Node&&ce.contains(w.initialTarget)});te.inertia(Z,K,Math.abs(Se)/_e,Se>0?1:-1,oe,Math.abs(q)/_e,q>0?1:-1,he)}te.dispatchEvent(te.newGestureEvent(j.End,w.initialTarget)),delete te.activeTouches[m.identifier]},te=this,H=0,E=x.changedTouches.length;H<E;H++)A(H,E);this.dispatched&&(x.preventDefault(),x.stopPropagation(),this.dispatched=!1)},_.prototype.newGestureEvent=function(x,K){var D=document.createEvent("CustomEvent");return D.initEvent(x,!1,!0),D.initialTarget=K,D.tapCount=0,D},_.prototype.dispatchEvent=function(x){var K=this;if(x.type===j.Tap){var D=new Date().getTime(),A=0;D-this._lastSetTapCountTime>_.CLEAR_TAP_COUNT_TIME?A=1:A=2,this._lastSetTapCountTime=D,x.tapCount=A}else(x.type===j.Change||x.type===j.Contextmenu)&&(this._lastSetTapCountTime=0);for(var te=0;te<this.ignoreTargets.length;te++)if(x.initialTarget instanceof Node&&this.ignoreTargets[te].contains(x.initialTarget))return;this.targets.forEach(function(H){x.initialTarget instanceof Node&&H.contains(x.initialTarget)&&(H.dispatchEvent(x),K.dispatched=!0)})},_.prototype.inertia=function(x,K,D,A,te,H,E,f){var p=this;this.handle=ne.V(function(){var g=Date.now(),m=g-K,w=0,B=0,z=!0;D+=_.SCROLL_FRICTION*m,H+=_.SCROLL_FRICTION*m,D>0&&(z=!1,w=A*D*m),H>0&&(z=!1,B=E*H*m);var oe=p.newGestureEvent(j.Change);oe.translationX=w,oe.translationY=B,x.forEach(function(he){return he.dispatchEvent(oe)}),z||p.inertia(x,g,D,A,te+w,H,E,f+B)})},_.prototype.onTouchMove=function(x){for(var K=Date.now(),D=0,A=x.changedTouches.length;D<A;D++){var te=x.changedTouches.item(D);if(!this.activeTouches.hasOwnProperty(String(te.identifier))){console.warn("end of an UNKNOWN touch",te);continue}var H=this.activeTouches[te.identifier],E=this.newGestureEvent(j.Change,H.initialTarget);E.translationX=te.pageX-I.v(H.rollingPageX),E.translationY=te.pageY-I.v(H.rollingPageY),E.pageX=te.pageX,E.pageY=te.pageY,this.dispatchEvent(E),H.rollingPageX.length>3&&(H.rollingPageX.shift(),H.rollingPageY.shift(),H.rollingTimestamps.shift()),H.rollingPageX.push(te.pageX),H.rollingPageY.push(te.pageY),H.rollingTimestamps.push(K)}this.dispatched&&(x.preventDefault(),x.stopPropagation(),this.dispatched=!1)},_.SCROLL_FRICTION=-.005,_.HOLD_DELAY=700,_.CLEAR_TAP_COUNT_TIME=400,U([N.a],_,"isTouchDevice",null),_}(re.a)},pmY6:function(wt,P,o){"use strict";o.d(P,"g",function(){return k}),o.d(P,"f",function(){return U}),o.d(P,"e",function(){return j}),o.d(P,"h",function(){return G}),o.d(P,"b",function(){return R}),o.d(P,"a",function(){return _}),o.d(P,"d",function(){return x}),o.d(P,"c",function(){return K});var I=!1,re="__is_disposable_tracked__";function ne(D){if(!I)return;if(D&&D!==_.None)try{D[re]=!0}catch(A){}}function N(D){if(!I)return D;var A=new Error("Potentially leaked disposable").stack;return setTimeout(function(){D[re]||console.log(A)},3e3),D}function k(D){return typeof D.dispose=="function"&&D.dispose.length===0}function U(D){return Array.isArray(D)?(D.forEach(function(A){A&&(ne(A),A.dispose())}),[]):D?(ne(D),D.dispose(),D):void 0}function j(){for(var D=[],A=0;A<arguments.length;A++)D[A]=arguments[A];return D.forEach(ne),N({dispose:function(){return U(D)}})}function G(D){var A=N({dispose:function(){ne(A),D()}});return A}var R=function(){function D(){this._toDispose=new Set,this._isDisposed=!1}return D.prototype.dispose=function(){if(this._isDisposed)return;ne(this),this._isDisposed=!0,this.clear()},D.prototype.clear=function(){this._toDispose.forEach(function(A){return A.dispose()}),this._toDispose.clear()},D.prototype.add=function(A){if(!A)return A;if(A===this)throw new Error("Cannot register a disposable on itself!");return ne(A),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(A),A},D}(),_=function(){function D(){this._store=new R,N(this)}return D.prototype.dispose=function(){ne(this),this._store.dispose()},D.prototype._register=function(A){if(A===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(A)},D.None=Object.freeze({dispose:function(){}}),D}(),x=function(){function D(){this._isDisposed=!1,N(this)}return Object.defineProperty(D.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(te){if(this._isDisposed||te===this._value)return;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(A){this.object=A}return D.prototype.dispose=function(){},D}()},ptcw:function(wt,P,o){"use strict";o.d(P,"a",function(){return k}),o.d(P,"b",function(){return j}),o.d(P,"c",function(){return _});var I=o("MD5Z"),re=function(){return re=Object.assign||function(x){for(var K,D=1,A=arguments.length;D<A;D++){K=arguments[D];for(var te in K)Object.prototype.hasOwnProperty.call(K,te)&&(x[te]=K[te])}return x},re.apply(this,arguments)};function ne(x,K){var D=Object.create(null);for(var A in K){var te=K[A];te&&(D[A]=Object(I.Sb)(te,x))}return D}function N(x,K,D){function A(te){var H=ne(x.getTheme(),K);typeof D=="function"?D(H):D.style(H)}return A(x.getTheme()),x.onThemeChange(A)}function k(x,K,D){return N(K,{badgeBackground:D&&D.badgeBackground||I.c,badgeForeground:D&&D.badgeForeground||I.d,badgeBorder:I.e},x)}function U(x,K,D){return N(K,{foreground:D&&D.foreground||I.V,background:D&&D.background||I.o,borderColor:D&&D.borderColor||I.e,widgetShadow:D&&D.widgetShadow||I.fc,progressBarBackground:D&&D.progressBarBackground||I.Qb,pickerGroupForeground:D&&D.pickerGroupForeground||I.Mb,pickerGroupBorder:D&&D.pickerGroupBorder||I.Lb,inputBackground:D&&D.inputBackground||I.Y,inputForeground:D&&D.inputForeground||I.ab,inputBorder:D&&D.inputBorder||I.Z,inputValidationInfoBorder:D&&D.inputValidationInfoBorder||I.fb,inputValidationInfoBackground:D&&D.inputValidationInfoBackground||I.eb,inputValidationInfoForeground:D&&D.inputValidationInfoForeground||I.gb,inputValidationWarningBorder:D&&D.inputValidationWarningBorder||I.ib,inputValidationWarningBackground:D&&D.inputValidationWarningBackground||I.hb,inputValidationWarningForeground:D&&D.inputValidationWarningForeground||I.jb,inputValidationErrorBorder:D&&D.inputValidationErrorBorder||I.cb,inputValidationErrorBackground:D&&D.inputValidationErrorBackground||I.bb,inputValidationErrorForeground:D&&D.inputValidationErrorForeground||I.db,listFocusBackground:D&&D.listFocusBackground||I.qb,listFocusForeground:D&&D.listFocusForeground||I.rb,listActiveSelectionBackground:D&&D.listActiveSelectionBackground||Object(I.f)(I.kb,.1),listActiveSelectionForeground:D&&D.listActiveSelectionForeground||I.lb,listFocusAndSelectionBackground:D&&D.listFocusAndSelectionBackground||I.kb,listFocusAndSelectionForeground:D&&D.listFocusAndSelectionForeground||I.lb,listInactiveSelectionBackground:D&&D.listInactiveSelectionBackground||I.wb,listInactiveSelectionForeground:D&&D.listInactiveSelectionForeground||I.xb,listInactiveFocusBackground:D&&D.listInactiveFocusBackground||I.vb,listHoverBackground:D&&D.listHoverBackground||I.tb,listHoverForeground:D&&D.listHoverForeground||I.ub,listDropBackground:D&&D.listDropBackground||I.mb,listFocusOutline:D&&D.listFocusOutline||I.b,listSelectionOutline:D&&D.listSelectionOutline||I.b,listHoverOutline:D&&D.listHoverOutline||I.b},x)}function j(x,K,D){return N(K,re(re({},G),D||{}),x)}var G={listFocusBackground:I.qb,listFocusForeground:I.rb,listActiveSelectionBackground:Object(I.f)(I.kb,.1),listActiveSelectionForeground:I.lb,listFocusAndSelectionBackground:I.kb,listFocusAndSelectionForeground:I.lb,listInactiveSelectionBackground:I.wb,listInactiveSelectionForeground:I.xb,listInactiveFocusBackground:I.vb,listHoverBackground:I.tb,listHoverForeground:I.ub,listDropBackground:I.mb,listFocusOutline:I.b,listSelectionOutline:I.b,listHoverOutline:I.b,listFilterWidgetBackground:I.nb,listFilterWidgetOutline:I.pb,listFilterWidgetNoMatchesOutline:I.ob,listMatchesShadow:I.fc,treeIndentGuidesStroke:I.ec},R={shadowColor:I.fc,borderColor:I.zb,foregroundColor:I.Ab,backgroundColor:I.yb,selectionForegroundColor:I.Db,selectionBackgroundColor:I.Bb,selectionBorderColor:I.Cb,separatorColor:I.Eb};function _(x,K,D){return N(K,re(re({},R),D),x)}},q8qy:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return o.e(228).then(o.bind(null,"ywQP"))}})},qNAo:function(wt,P,o){"use strict";o.d(P,"f",function(){return re}),o.d(P,"b",function(){return ne}),o.d(P,"c",function(){return N}),o.d(P,"d",function(){return k}),o.d(P,"a",function(){return U}),o.d(P,"e",function(){return j});var I=o("N0LK"),re=function(){function G(R,_,x,K){this.top=R|0,this.left=_|0,this.width=x|0,this.height=K|0}return G}(),ne=function(){function G(R,_){this.tabSize=R,this.data=_}return G}(),N=function(){function G(R,_,x,K,D,A){this.content=R,this.continuesWithWrappedLine=_,this.minColumn=x,this.maxColumn=K,this.startVisibleColumn=D,this.tokens=A}return G}(),k=function(){function G(R,_,x,K,D,A,te,H,E,f){this.minColumn=R,this.maxColumn=_,this.content=x,this.continuesWithWrappedLine=K,this.isBasicASCII=G.isBasicASCII(x,A),this.containsRTL=G.containsRTL(x,this.isBasicASCII,D),this.tokens=te,this.inlineDecorations=H,this.tabSize=E,this.startVisibleColumn=f}return G.isBasicASCII=function(R,_){return _?I.v(R):!0},G.containsRTL=function(R,_,x){return!_&&x?I.i(R):!1},G}(),U=function(){function G(R,_,x){this.range=R,this.inlineClassName=_,this.type=x}return G}(),j=function(){function G(R,_){this.range=R,this.options=_}return G}()},qj0h:function(wt,P,o){"use strict";o.d(P,"c",function(){return re}),o.d(P,"d",function(){return ne}),o.d(P,"b",function(){return k}),o.d(P,"g",function(){return j}),o.d(P,"a",function(){return G}),o.d(P,"e",function(){return R}),o.d(P,"f",function(){return _});var I=o("746U");function re(x){if(!x||typeof x!="object")return x;if(x instanceof RegExp)return x;var K=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(D){x[D]&&typeof x[D]=="object"?K[D]=re(x[D]):K[D]=x[D]}),K}function ne(x){if(!x||typeof x!="object")return x;for(var K=[x];K.length>0;){var D=K.shift();Object.freeze(D);for(var A in D)if(N.call(D,A)){var te=D[A];typeof te=="object"&&!Object.isFrozen(te)&&K.push(te)}}return x}var N=Object.prototype.hasOwnProperty;function k(x,K){return U(x,K,new Set)}function U(x,K,D){if(Object(I.l)(x))return x;var A=K(x);if(typeof A!="undefined")return A;if(Object(I.d)(x)){for(var te=[],H=0,E=x;H<E.length;H++){var f=E[H];te.push(U(f,K,D))}return te}if(Object(I.i)(x)){if(D.has(x))throw new Error("Cannot clone recursive data-structure");D.add(x);var p={};for(var g in x)N.call(x,g)&&(p[g]=U(x[g],K,D));return D.delete(x),p}return x}function j(x,K,D){return D===void 0&&(D=!0),Object(I.i)(x)?(Object(I.i)(K)&&Object.keys(K).forEach(function(A){A in x?D&&(Object(I.i)(x[A])&&Object(I.i)(K[A])?j(x[A],K[A],D):x[A]=K[A]):x[A]=K[A]}),x):K}function G(x){for(var K=[],D=1;D<arguments.length;D++)K[D-1]=arguments[D];return K.forEach(function(A){return Object.keys(A).forEach(function(te){return x[te]=A[te]})}),x}function R(x,K){if(x===K)return!0;if(x==null||K===null||K===void 0)return!1;if(typeof x!==typeof K)return!1;if(typeof x!="object")return!1;if(Array.isArray(x)!==Array.isArray(K))return!1;var D,A;if(Array.isArray(x)){if(x.length!==K.length)return!1;for(D=0;D<x.length;D++)if(!R(x[D],K[D]))return!1}else{var te=[];for(A in x)te.push(A);te.sort();var H=[];for(A in K)H.push(A);if(H.sort(),!R(te,H))return!1;for(D=0;D<te.length;D++)if(!R(x[te[D]],K[te[D]]))return!1}return!0}function _(x,K,D){var A=K(x);return typeof A=="undefined"?D:A}},r0BQ:function(wt,P,o){"use strict";o.d(P,"a",function(){return I});var I=function(){function re(ne,N,k){N===void 0&&(N=[]),k===void 0&&(k=!1),this.ctor=ne,this.staticArguments=N,this.supportsDelayedInstantiation=k}return re}()},rugR:function(wt,P,o){"use strict";o.r(P),o.d(P,"ModesHoverController",function(){return ze});var I=o("uAX5"),re=o("3/fG"),ne=o("/kV6"),N=o("pmY6"),k=o("sswD"),U=o("aokT"),j=o("wQH0"),G=o("WBhO"),R=o("EffR"),_=o("JQT/"),x=o("zrhQ"),K=o("eLzo"),D=o("cGHE"),A=o("tX9W"),te=o("twdY"),H=o("/cxE"),E=o("bY76"),f=o("G2kB");function p(y,d){var l=[],b=te.c.ordered(y).reverse(),S=b.map(function(C){return Promise.resolve(C.provideDocumentColors(y,d)).then(function($){if(Array.isArray($))for(var Be=0,rt=$;Be<rt.length;Be++){var xe=rt[Be];l.push({colorInfo:xe,provider:C})}})});return Promise.all(S).then(function(){return l})}function g(y,d,l,b){return Promise.resolve(l.provideColorPresentations(y,d,b))}Object(k.j)("_executeDocumentColorProvider",function(y,d){var l=d.resource;if(!(l instanceof E.a))throw Object(H.b)();var b=y.get(f.a).getModel(l);if(!b)throw Object(H.b)();var S=[],C=te.c.ordered(b).reverse(),$=C.map(function(Be){return Promise.resolve(Be.provideDocumentColors(b,_.a.None)).then(function(rt){if(Array.isArray(rt))for(var xe=0,ut=rt;xe<ut.length;xe++){var Nt=ut[xe];S.push({range:Nt.range,color:[Nt.color.red,Nt.color.green,Nt.color.blue,Nt.color.alpha]})}})});return Promise.all($).then(function(){return S})}),Object(k.j)("_executeColorPresentationProvider",function(y,d){var l=d.resource,b=d.color,S=d.range;if(!(l instanceof E.a)||!Array.isArray(b)||b.length!==4||!U.a.isIRange(S))throw Object(H.b)();var C=b[0],$=b[1],Be=b[2],rt=b[3],xe=y.get(f.a).getModel(l);if(!xe)throw Object(H.b)();var ut={range:S,color:{red:C,green:$,blue:Be,alpha:rt}},Nt=[],qt=te.c.ordered(xe).reverse(),en=qt.map(function(dn){return Promise.resolve(dn.provideColorPresentations(xe,ut,_.a.None)).then(function(an){Array.isArray(an)&&Nt.push.apply(Nt,an)})});return Promise.all(en).then(function(){return Nt})});var m=o("X+cX"),w=o("7afs"),B=o("Vxe3"),z=o("+7oY"),oe=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),he=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},_e=function(y,d){return function(l,b){d(l,b,y)}},Se=500,q=function(y){oe(d,y);function d(l,b,S){var C=y.call(this)||this;return C._editor=l,C._codeEditorService=b,C._configurationService=S,C._localToDispose=C._register(new N.b),C._decorationsIds=[],C._colorDatas=new Map,C._colorDecoratorIds=[],C._decorationsTypes=new Set,C._register(l.onDidChangeModel(function($){C._isEnabled=C.isEnabled(),C.onModelChanged()})),C._register(l.onDidChangeModelLanguage(function($){return C.onModelChanged()})),C._register(te.c.onDidChange(function($){return C.onModelChanged()})),C._register(l.onDidChangeConfiguration(function($){var Be=C._isEnabled;C._isEnabled=C.isEnabled(),Be!==C._isEnabled&&(C._isEnabled?C.onModelChanged():C.removeAllDecorations())})),C._timeoutTimer=null,C._computePromise=null,C._isEnabled=C.isEnabled(),C.onModelChanged(),C}return d.prototype.isEnabled=function(){var l=this._editor.getModel();if(!l)return!1;var b=l.getLanguageIdentifier(),S=this._configurationService.getValue(b.language);if(S){var C=S.colorDecorators;if(C&&C.enable!==void 0&&!C.enable)return C.enable}return this._editor.getOption(12)},d.get=function(l){return l.getContribution(this.ID)},d.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),y.prototype.dispose.call(this)},d.prototype.onModelChanged=function(){var l=this;if(this.stop(),!this._isEnabled)return;var b=this._editor.getModel();if(!b||!te.c.has(b))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(S){l._timeoutTimer||(l._timeoutTimer=new m.e,l._timeoutTimer.cancelAndSet(function(){l._timeoutTimer=null,l.beginCompute()},d.RECOMPUTE_TIME))})),this.beginCompute()},d.prototype.beginCompute=function(){var l=this;this._computePromise=Object(m.f)(function(b){var S=l._editor.getModel();return S?p(S,b):Promise.resolve([])}),this._computePromise.then(function(b){l.updateDecorations(b),l.updateColorDecorators(b),l._computePromise=null},H.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(l){var b=this,S=l.map(function(C){return{range:{startLineNumber:C.colorInfo.range.startLineNumber,startColumn:C.colorInfo.range.startColumn,endLineNumber:C.colorInfo.range.endLineNumber,endColumn:C.colorInfo.range.endColumn},options:A.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,S),this._colorDatas=new Map,this._decorationsIds.forEach(function(C,$){return b._colorDatas.set(C,l[$])})},d.prototype.updateColorDecorators=function(l){for(var b=this,S=[],C={},$=0;$<l.length&&S.length<Se;$++){var Be=l[$].colorInfo.color,rt=Be.red,xe=Be.green,ut=Be.blue,Nt=Be.alpha,qt=new x.c(Math.round(rt*255),Math.round(xe*255),Math.round(ut*255),Nt),en=Object(w.a)(qt).toString(16),dn="rgba("+qt.r+", "+qt.g+", "+qt.b+", "+qt.a+")",an="colorBox-"+en;!this._decorationsTypes.has(an)&&!C[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),C[an]=!0,S.push({range:{startLineNumber:l[$].colorInfo.range.startLineNumber,startColumn:l[$].colorInfo.range.startColumn,endLineNumber:l[$].colorInfo.range.endLineNumber,endColumn:l[$].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(an,!0)})}this._decorationsTypes.forEach(function(Cn){C[Cn]||b._codeEditorService.removeDecorationType(Cn)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,S)},d.prototype.removeAllDecorations=function(){var l=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(function(b){l._codeEditorService.removeDecorationType(b)})},d.prototype.getColorData=function(l){var b=this,S=this._editor.getModel();if(!S)return null;var C=S.getDecorationsInRange(U.a.fromPositions(l,l)).filter(function($){return b._colorDatas.has($.id)});return C.length===0?null:this._colorDatas.get(C[0].id)},d.ID="editor.contrib.colorDetector",d.RECOMPUTE_TIME=1e3,d=he([_e(1,B.a),_e(2,z.a)],d),d}(N.a);Object(k.h)(q.ID,q);var Z=o("MI8n"),ce=function(){function y(d,l,b){this.presentationIndex=b,this._onColorFlushed=new Z.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Z.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Z.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=d,this._color=d,this._colorPresentations=l}return Object.defineProperty(y.prototype,"color",{get:function(){return this._color},set:function(l){if(this._color.equals(l))return;this._color=l,this._onDidChangeColor.fire(l)},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(l){this._colorPresentations=l,this.presentationIndex>l.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),y.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},y.prototype.guessColorPresentation=function(d,l){for(var b=0;b<this.colorPresentations.length;b++)if(l===this.colorPresentations[b].label){this.presentationIndex=b,this._onDidChangePresentation.fire(this.presentation);break}},y.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},y}(),Te=o("EPS+"),Ve=o("D3Dy"),Ee=o("AKMP"),de=o("G300"),se=o("MD5Z"),fe=o("t9D7"),ie=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Q=R.a,me=function(y){ie(d,y);function d(l,b,S){var C=y.call(this)||this;C.model=b,C.domNode=Q(".colorpicker-header"),R.p(l,C.domNode),C.pickedColorNode=R.p(C.domNode,Q(".picked-color"));var $=R.p(C.domNode,Q(".original-color"));return $.style.backgroundColor=x.a.Format.CSS.format(C.model.originalColor)||"",C.backgroundColor=S.getTheme().getColor(se.A)||x.a.white,C._register(Object(fe.e)(function(Be,rt){C.backgroundColor=Be.getColor(se.A)||x.a.white})),C._register(R.i(C.pickedColorNode,R.c.CLICK,function(){return C.model.selectNextColorPresentation()})),C._register(R.i($,R.c.CLICK,function(){C.model.color=C.model.originalColor,C.model.flushColor()})),C._register(b.onDidChangeColor(C.onDidChangeColor,C)),C._register(b.onDidChangePresentation(C.onDidChangePresentation,C)),C.pickedColorNode.style.backgroundColor=x.a.Format.CSS.format(b.color)||"",R.X(C.pickedColorNode,"light",b.color.rgba.a<.5?C.backgroundColor.isLighter():b.color.isLighter()),C}return d.prototype.onDidChangeColor=function(l){this.pickedColorNode.style.backgroundColor=x.a.Format.CSS.format(l)||"",R.X(this.pickedColorNode,"light",l.rgba.a<.5?this.backgroundColor.isLighter():l.isLighter()),this.onDidChangePresentation()},d.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},d}(N.a),ye=function(y){ie(d,y);function d(l,b,S){var C=y.call(this)||this;return C.model=b,C.pixelRatio=S,C.domNode=Q(".colorpicker-body"),R.p(l,C.domNode),C.saturationBox=new He(C.domNode,C.model,C.pixelRatio),C._register(C.saturationBox),C._register(C.saturationBox.onDidChange(C.onDidSaturationValueChange,C)),C._register(C.saturationBox.onColorFlushed(C.flushColor,C)),C.opacityStrip=new Et(C.domNode,C.model),C._register(C.opacityStrip),C._register(C.opacityStrip.onDidChange(C.onDidOpacityChange,C)),C._register(C.opacityStrip.onColorFlushed(C.flushColor,C)),C.hueStrip=new Pt(C.domNode,C.model),C._register(C.hueStrip),C._register(C.hueStrip.onDidChange(C.onDidHueChange,C)),C._register(C.hueStrip.onColorFlushed(C.flushColor,C)),C}return d.prototype.flushColor=function(){this.model.flushColor()},d.prototype.onDidSaturationValueChange=function(l){var b=l.s,S=l.v,C=this.model.color.hsva;this.model.color=new x.a(new x.b(C.h,b,S,C.a))},d.prototype.onDidOpacityChange=function(l){var b=this.model.color.hsva;this.model.color=new x.a(new x.b(b.h,b.s,b.v,l))},d.prototype.onDidHueChange=function(l){var b=this.model.color.hsva,S=(1-l)*360;this.model.color=new x.a(new x.b(S===360?0:S,b.s,b.v,b.a))},d.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},d}(N.a),He=function(y){ie(d,y);function d(l,b,S){var C=y.call(this)||this;return C.model=b,C.pixelRatio=S,C._onDidChange=new Z.a,C.onDidChange=C._onDidChange.event,C._onColorFlushed=new Z.a,C.onColorFlushed=C._onColorFlushed.event,C.domNode=Q(".saturation-wrap"),R.p(l,C.domNode),C.canvas=document.createElement("canvas"),C.canvas.className="saturation-box",R.p(C.domNode,C.canvas),C.selection=Q(".saturation-selection"),R.p(C.domNode,C.selection),C.layout(),C._register(R.g(C.domNode,function($){return C.onMouseDown($)})),C._register(C.model.onDidChangeColor(C.onDidChangeColor,C)),C.monitor=null,C}return d.prototype.onMouseDown=function(l){var b=this;this.monitor=this._register(new Ee.a);var S=R.B(this.domNode);l.target!==this.selection&&this.onDidChangePosition(l.offsetX,l.offsetY),this.monitor.startMonitoring(l.target,l.buttons,Ee.b,function($){return b.onDidChangePosition($.posx-S.left,$.posy-S.top)},function(){return null});var C=R.h(document,function(){b._onColorFlushed.fire(),C.dispose(),b.monitor&&(b.monitor.stopMonitoring(!0),b.monitor=null)},!0)},d.prototype.onDidChangePosition=function(l,b){var S=Math.max(0,Math.min(1,l/this.width)),C=Math.max(0,Math.min(1,1-b/this.height));this.paintSelection(S,C),this._onDidChange.fire({s:S,v:C})},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 l=this.model.color.hsva;this.paintSelection(l.s,l.v)},d.prototype.paint=function(){var l=this.model.color.hsva,b=new x.a(new x.b(l.h,1,1,1)),S=this.canvas.getContext("2d"),C=S.createLinearGradient(0,0,this.canvas.width,0);C.addColorStop(0,"rgba(255, 255, 255, 1)"),C.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),C.addColorStop(1,"rgba(255, 255, 255, 0)");var $=S.createLinearGradient(0,0,0,this.canvas.height);$.addColorStop(0,"rgba(0, 0, 0, 0)"),$.addColorStop(1,"rgba(0, 0, 0, 1)"),S.rect(0,0,this.canvas.width,this.canvas.height),S.fillStyle=x.a.Format.CSS.format(b),S.fill(),S.fillStyle=C,S.fill(),S.fillStyle=$,S.fill()},d.prototype.paintSelection=function(l,b){this.selection.style.left=l*this.width+"px",this.selection.style.top=this.height-b*this.height+"px"},d.prototype.onDidChangeColor=function(){if(this.monitor&&this.monitor.isMonitoring())return;this.paint()},d}(N.a),tt=function(y){ie(d,y);function d(l,b){var S=y.call(this)||this;return S.model=b,S._onDidChange=new Z.a,S.onDidChange=S._onDidChange.event,S._onColorFlushed=new Z.a,S.onColorFlushed=S._onColorFlushed.event,S.domNode=R.p(l,Q(".strip")),S.overlay=R.p(S.domNode,Q(".overlay")),S.slider=R.p(S.domNode,Q(".slider")),S.slider.style.top="0px",S._register(R.g(S.domNode,function(C){return S.onMouseDown(C)})),S.layout(),S}return d.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var l=this.getValue(this.model.color);this.updateSliderPosition(l)},d.prototype.onMouseDown=function(l){var b=this,S=this._register(new Ee.a),C=R.B(this.domNode);R.e(this.domNode,"grabbing"),l.target!==this.slider&&this.onDidChangeTop(l.offsetY),S.startMonitoring(l.target,l.buttons,Ee.b,function(Be){return b.onDidChangeTop(Be.posy-C.top)},function(){return null});var $=R.h(document,function(){b._onColorFlushed.fire(),$.dispose(),S.stopMonitoring(!0),R.O(b.domNode,"grabbing")},!0)},d.prototype.onDidChangeTop=function(l){var b=Math.max(0,Math.min(1,1-l/this.height));this.updateSliderPosition(b),this._onDidChange.fire(b)},d.prototype.updateSliderPosition=function(l){this.slider.style.top=(1-l)*this.height+"px"},d}(N.a),Et=function(y){ie(d,y);function d(l,b){var S=y.call(this,l,b)||this;return R.e(S.domNode,"opacity-strip"),S._register(b.onDidChangeColor(S.onDidChangeColor,S)),S.onDidChangeColor(S.model.color),S}return d.prototype.onDidChangeColor=function(l){var b=l.rgba,S=b.r,C=b.g,$=b.b,Be=new x.a(new x.c(S,C,$,1)),rt=new x.a(new x.c(S,C,$,0));this.overlay.style.background="linear-gradient(to bottom, "+Be+" 0%, "+rt+" 100%)"},d.prototype.getValue=function(l){return l.hsva.a},d}(tt),Pt=function(y){ie(d,y);function d(l,b){var S=y.call(this,l,b)||this;return R.e(S.domNode,"hue-strip"),S}return d.prototype.getValue=function(l){return 1-l.hsva.h/360},d}(tt),Xt=function(y){ie(d,y);function d(l,b,S,C){var $=y.call(this)||this;$.model=b,$.pixelRatio=S,$._register(Object(Ve.o)(function(){return $.layout()}));var Be=Q(".colorpicker-widget");l.appendChild(Be);var rt=new me(Be,$.model,C);return $.body=new ye(Be,$.model,$.pixelRatio),$._register(rt),$._register($.body),$}return d.prototype.layout=function(){this.body.layout()},d}(de.a),Ke=o("6OMU");function Xe(y,d,l){var b=te.o.ordered(y),S=b.map(function(C){return Promise.resolve(C.provideHover(y,d,l)).then(function($){return $&&Ze($)?$:void 0},function($){Object(H.f)($);return})});return Promise.all(S).then(Ke.d)}Object(k.k)("_executeHoverProvider",function(y,d){return Xe(y,d,_.a.None)});function Ze(y){var d=typeof y.range!="undefined",l=typeof y.contents!="undefined"&&y.contents&&y.contents.length>0;return d&&l}var Ye=function(){function y(d,l,b,S,C){var $=this;this._computer=d,this._state=0,this._hoverTime=C,this._firstWaitScheduler=new m.d(function(){return $._triggerAsyncComputation()},0),this._secondWaitScheduler=new m.d(function(){return $._triggerSyncComputation()},0),this._loadingMessageScheduler=new m.d(function(){return $._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=l,this._errorCallback=b,this._progressCallback=S}return y.prototype.setHoverTime=function(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(m.f)(function(l){return d._computer.computeAsync(l)}),this._asyncComputationPromise.then(function(l){d._asyncComputationPromiseDone=!0,d._withAsyncResult(l)},function(l){return d._onError(l)})):this._asyncComputationPromiseDone=!0},y.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},y.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},y.prototype._withAsyncResult=function(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(H.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}(),Fe=o("GJhM"),$e=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),we=function(){for(var y=0,d=0,l=arguments.length;d<l;d++)y+=arguments[d].length;for(var b=Array(y),S=0,d=0;d<l;d++)for(var C=arguments[d],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},F=function(y){$e(d,y);function d(l,b){var S=y.call(this)||this;return S.allowEditorOverflow=!0,S._id=l,S._editor=b,S._isVisible=!1,S._stoleFocus=!1,S._containerDomNode=document.createElement("div"),S._containerDomNode.className="monaco-editor-hover hidden",S._containerDomNode.tabIndex=0,S._domNode=document.createElement("div"),S._domNode.className="monaco-editor-hover-content",S.scrollbar=new Fe.a(S._domNode,{}),S._register(S.scrollbar),S._containerDomNode.appendChild(S.scrollbar.getDomNode()),S.onkeydown(S._containerDomNode,function(C){C.equals(9)&&S.hide()}),S._register(S._editor.onDidChangeConfiguration(function(C){C.hasChanged(34)&&S.updateFont()})),S._editor.onDidLayoutChange(function(C){return S.layout()}),S.layout(),S._editor.addContentWidget(S),S._showAtPosition=null,S._showAtRange=null,S._stoleFocus=!1,S}return Object.defineProperty(d.prototype,"isVisible",{get:function(){return this._isVisible},set:function(b){this._isVisible=b,Object(R.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(l,b,S){this._showAtPosition=l,this._showAtRange=b,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=S,S&&this._containerDomNode.focus()},d.prototype.hide=function(){if(!this.isVisible)return;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 l=this,b=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));b.forEach(function(S){return l._editor.applyFontInfo(S)})},d.prototype.updateContents=function(l){this._domNode.textContent="",this._domNode.appendChild(l),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},d.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},d.prototype.layout=function(){var l=Math.max(this._editor.getLayoutInfo().height/4,250),b=this._editor.getOption(34),S=b.fontSize,C=b.lineHeight;this._domNode.style.fontSize=S+"px",this._domNode.style.lineHeight=C+"px",this._domNode.style.maxHeight=l+"px",this._domNode.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px"},d}(de.a),ee=function(y){$e(d,y);function d(l,b){var S=y.call(this)||this;return S._id=l,S._editor=b,S._isVisible=!1,S._domNode=document.createElement("div"),S._domNode.className="monaco-editor-hover hidden",S._domNode.setAttribute("aria-hidden","true"),S._domNode.setAttribute("role","presentation"),S._showAtLineNumber=-1,S._register(S._editor.onDidChangeConfiguration(function(C){C.hasChanged(34)&&S.updateFont()})),S._editor.addOverlayWidget(S),S}return Object.defineProperty(d.prototype,"isVisible",{get:function(){return this._isVisible},set:function(b){this._isVisible=b,Object(R.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(l){this._showAtLineNumber=l,this.isVisible||(this.isVisible=!0);var b=this._editor.getLayoutInfo(),S=this._editor.getTopForLineNumber(this._showAtLineNumber),C=this._editor.getScrollTop(),$=this._editor.getOption(49),Be=this._domNode.clientHeight,rt=S-C-(Be-$)/2;this._domNode.style.left=b.glyphMarginLeft+b.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(rt),0)+"px"},d.prototype.hide=function(){if(!this.isVisible)return;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 l=this,b=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),S=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));we(b,S).forEach(function(C){return l._editor.applyFontInfo(C)})},d.prototype.updateContents=function(l){this._domNode.textContent="",this._domNode.appendChild(l),this.updateFont()},d}(de.a),Pe=o("3qCu"),ve=o("tADe"),Me=o("gslv"),Ie=o("W9cx"),pe=o("T8No"),nt=o("/oaI"),_t=o("3rx1"),Rt=o("e1ni"),Mt=o("WqXY"),zt=o("8HAY"),Gt=o("qj0h"),on=o("N0LK"),Ln=o("nB0o"),yn=o("nnTU"),Mn=o("Cg/j"),kt=o("sM1p"),pt=o("R3nR"),gt=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Dt=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},Lt=function(y,d){return function(l,b){d(l,b,y)}},Vt=function(y){gt(d,y);function d(l,b,S,C,$,Be,rt,xe,ut,Nt){var qt=y.call(this,l,S.getRawOptions(),{},C,$,Be,rt,xe,ut,Nt)||this;return qt._parentEditor=S,qt._overwriteOptions=b,y.prototype.updateOptions.call(qt,qt._overwriteOptions),qt._register(S.onDidChangeConfiguration(function(en){return qt._onParentConfigurationChanged(en)})),qt}return d.prototype.getParentEditor=function(){return this._parentEditor},d.prototype._onParentConfigurationChanged=function(l){y.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),y.prototype.updateOptions.call(this,this._overwriteOptions)},d.prototype.updateOptions=function(l){Gt.g(this._overwriteOptions,l,!0),y.prototype.updateOptions.call(this,this._overwriteOptions)},d=Dt([Lt(3,Mn.a),Lt(4,B.a),Lt(5,yn.b),Lt(6,pe.c),Lt(7,fe.c),Lt(8,kt.a),Lt(9,pt.b)],d),d}(Ln.a),Jt=o("uWgD"),nn=o("cMOf"),sn=o("nD70"),ln=new x.a(new x.c(0,122,204)),_n={showArrow:!0,showFrame:!0,className:"",frameColor:ln,arrowColor:ln,keepEditorSelection:!1},On="vs.editor.contrib.zoneWidget",Pn=function(){function y(d,l,b,S,C,$){this.id="",this.domNode=d,this.afterLineNumber=l,this.afterColumn=b,this.heightInLines=S,this._onDomNodeTop=C,this._onComputedHeight=$}return y.prototype.onDomNodeTop=function(d){this._onDomNodeTop(d)},y.prototype.onComputedHeight=function(d){this._onComputedHeight(d)},y}(),Gn=function(){function y(d,l){this._id=d,this._domNode=l}return y.prototype.getId=function(){return this._id},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return null},y}(),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(),R.N(this._ruleName)},Object.defineProperty(y.prototype,"color",{set:function(l){this._color!==l&&(this._color=l,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"height",{set:function(l){this._height!==l&&(this._height=l,this._updateStyle())},enumerable:!0,configurable:!0}),y.prototype._updateStyle=function(){R.N(this._ruleName),R.u(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},y.prototype.show=function(d){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:U.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}(),Qn=function(){function y(d,l){var b=this;l===void 0&&(l={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new N.b,this.container=null,this._isShowing=!1,this.editor=d,this.options=Gt.c(l),Gt.g(this.options,_n,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(function(S){var C=b._getWidth(S);b.domNode.style.width=C+"px",b.domNode.style.left=b._getLeft(S)+"px",b._onWidth(C)}))}return y.prototype.dispose=function(){var d=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(l){d._viewZone&&l.removeZone(d._viewZone.id),d._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},y.prototype.create=function(){R.e(this.domNode,"zone-widget"),this.options.className&&R.e(this.domNode,this.options.className),this.container=document.createElement("div"),R.e(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new 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 l=this.options.arrowColor.toString();this._arrow.color=l}},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 l=d-this._decoratingElementsHeight();this.container.style.height=l+"px";var b=this.editor.getLayoutInfo();this._doLayout(l,this._getWidth(b))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(y.prototype,"position",{get:function(){var l=this._positionMarkerId[0];if(!l)return;var b=this.editor.getModel();if(!b)return;var S=b.getDecorationRange(l);return S?S.getStartPosition():void 0},enumerable:!0,configurable:!0}),y.prototype.show=function(d,l){var b=U.a.isIRange(d)?U.a.lift(d):U.a.fromPositions(d);this._isShowing=!0,this._showImpl(b,l),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:b,options:A.a.EMPTY}])},y.prototype.hide=function(){var d=this;this._viewZone&&(this.editor.changeViewZones(function(l){d._viewZone&&l.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),l=0;if(this.options.showArrow){var b=Math.round(d/3);l+=2*b}if(this.options.showFrame){var S=Math.round(d/9);l+=2*S}return l},y.prototype._showImpl=function(d,l){var b=this,S=d.getStartPosition(),C=this.editor.getLayoutInfo(),$=this._getWidth(C);this.domNode.style.width=$+"px",this.domNode.style.left=this._getLeft(C)+"px";var Be=document.createElement("div");Be.style.overflow="hidden";var rt=this.editor.getOption(49),xe=this.editor.getLayoutInfo().height/rt*.8;l>=xe&&(l=xe);var ut=0,Nt=0;if(this._arrow&&this.options.showArrow&&(ut=Math.round(rt/3),this._arrow.height=ut,this._arrow.show(S)),this.options.showFrame&&(Nt=Math.round(rt/9)),this.editor.changeViewZones(function(Cn){b._viewZone&&Cn.removeZone(b._viewZone.id),b._overlayWidget&&(b.editor.removeOverlayWidget(b._overlayWidget),b._overlayWidget=null),b.domNode.style.top="-1000px",b._viewZone=new Pn(Be,S.lineNumber,S.column,l,function(In){return b._onViewZoneTop(In)},function(In){return b._onViewZoneHeight(In)}),b._viewZone.id=Cn.addZone(b._viewZone),b._overlayWidget=new Gn(On+b._viewZone.id,b.domNode),b.editor.addOverlayWidget(b._overlayWidget)}),this.container&&this.options.showFrame){var qt=this.options.frameWidth?this.options.frameWidth:Nt;this.container.style.borderTopWidth=qt+"px",this.container.style.borderBottomWidth=qt+"px"}var en=l*rt-this._decoratingElementsHeight();this.container&&(this.container.style.top=ut+"px",this.container.style.height=en+"px",this.container.style.overflow="hidden"),this._doLayout(en,$),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,l){l?this.editor.revealLineInCenter(d,0):this.editor.revealLine(d,0)},y.prototype.setCssClass=function(d,l){if(!this.container)return;l&&this.container.classList.remove(l),R.e(this.container,d)},y.prototype._onWidth=function(d){},y.prototype._doLayout=function(d,l){},y.prototype._relayout=function(d){var l=this;this._viewZone&&this._viewZone.heightInLines!==d&&this.editor.changeViewZones(function(b){l._viewZone&&(l._viewZone.heightInLines=d,b.layoutZone(l._viewZone.id))})},y.prototype._initSash=function(){var d=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new nn.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var l;this._disposables.add(this._resizeSash.onDidStart(function(b){d._viewZone&&(l={startY:b.startY,heightInLines:d._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){l=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(b){if(l){var S=(b.currentY-l.startY)/d.editor.getOption(49),C=S<0?Math.ceil(S):Math.floor(S),$=l.heightInLines+C;$>5&&$<35&&d._relayout($)}}))},y.prototype.getHorizontalSashLeft=function(){return 0},y.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},y.prototype.getHorizontalSashWidth=function(){var d=this.editor.getLayoutInfo();return d.width-d.minimapWidth},y}(),gi=o("9fML"),Kn=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),yi=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},mi=function(y,d){return function(l,b){d(l,b,y)}},vt=Object(Mn.c)("IPeekViewService");Object(gi.b)(vt,function(){function y(){this._widgets=new Map}return y.prototype.addExclusiveWidget=function(d,l){var b=this,S=this._widgets.get(d);S&&(S.listener.dispose(),S.widget.dispose());var C=function(){var Be=b._widgets.get(d);Be&&Be.widget===l&&(Be.listener.dispose(),b._widgets.delete(d))};this._widgets.set(d,{widget:l,listener:l.onDidClose(C)})},y}());var Tt;(function(y){y.inPeekEditor=new pe.d("inReferenceSearchEditor",!0),y.notInPeekEditor=y.inPeekEditor.toNegated()})(Tt||(Tt={}));var Ht=function(){function y(d,l){d instanceof Vt&&Tt.inPeekEditor.bindTo(l)}return y.prototype.dispose=function(){},y.ID="editor.contrib.referenceController",y=yi([mi(1,pe.c)],y),y}();Object(k.h)(Ht.ID,Ht);function tn(y){var d=y.get(B.a).getFocusedCodeEditor();return d instanceof Vt?d.getParentEditor():d}var Ut={headerBackgroundColor:x.a.white,primaryHeadingColor:x.a.fromHex("#333333"),secondaryHeadingColor:x.a.fromHex("#6c6c6cb3")},Sn=function(y){Kn(d,y);function d(l,b){b===void 0&&(b={});var S=y.call(this,l,b)||this;return S._onDidClose=new Z.a,S.onDidClose=S._onDidClose.event,Gt.g(S.options,Ut,!1),S}return d.prototype.dispose=function(){y.prototype.dispose.call(this),this._onDidClose.fire(this)},d.prototype.style=function(l){var b=this.options;l.headerBackgroundColor&&(b.headerBackgroundColor=l.headerBackgroundColor),l.primaryHeadingColor&&(b.primaryHeadingColor=l.primaryHeadingColor),l.secondaryHeadingColor&&(b.secondaryHeadingColor=l.secondaryHeadingColor),y.prototype.style.call(this,l)},d.prototype._applyStyles=function(){y.prototype._applyStyles.call(this);var l=this.options;this._headElement&&l.headerBackgroundColor&&(this._headElement.style.backgroundColor=l.headerBackgroundColor.toString()),this._primaryHeading&&l.primaryHeadingColor&&(this._primaryHeading.style.color=l.primaryHeadingColor.toString()),this._secondaryHeading&&l.secondaryHeadingColor&&(this._secondaryHeading.style.color=l.secondaryHeadingColor.toString()),this._bodyElement&&l.frameColor&&(this._bodyElement.style.borderColor=l.frameColor.toString())},d.prototype._fillContainer=function(l){this.setCssClass("peekview-widget"),this._headElement=R.a(".head"),this._bodyElement=R.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),l.appendChild(this._headElement),l.appendChild(this._bodyElement)},d.prototype._fillHead=function(l){var b=this,S=R.a(".peekview-title");R.p(this._headElement,S),R.n(S,"click",function(Be){return b._onTitleClick(Be)}),this._fillTitleIcon(S),this._primaryHeading=R.a("span.filename"),this._secondaryHeading=R.a("span.dirname"),this._metaHeading=R.a("span.meta"),R.p(S,this._primaryHeading,this._secondaryHeading,this._metaHeading);var C=R.a(".peekview-actions");R.p(this._headElement,C);var $=this._getActionBarOptions();this._actionbarWidget=new Mt.a(C,$),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new zt.a("peekview.close",re.a("label.close","Close"),"codicon-close",!0,function(){return b.dispose(),Promise.resolve()}),{label:!1,icon:!0})},d.prototype._fillTitleIcon=function(l){},d.prototype._getActionBarOptions=function(){return{}},d.prototype._onTitleClick=function(l){},d.prototype.setTitle=function(l,b){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=on.o(l),this._primaryHeading.setAttribute("aria-label",l),b?this._secondaryHeading.innerHTML=on.o(b):R.s(this._secondaryHeading))},d.prototype.setMetaTitle=function(l){this._metaHeading&&(l?(this._metaHeading.innerHTML=on.o(l),R.W(this._metaHeading)):R.I(this._metaHeading))},d.prototype._doLayout=function(l,b){if(!this._isShowing&&l<0){this.dispose();return}var S=Math.ceil(this.editor.getOption(49)*1.2),C=Math.round(l-(S+2));this._doLayoutHead(S,b),this._doLayoutBody(C,b)},d.prototype._doLayoutHead=function(l,b){this._headElement&&(this._headElement.style.height=l+"px",this._headElement.style.lineHeight=this._headElement.style.height)},d.prototype._doLayoutBody=function(l,b){this._bodyElement&&(this._bodyElement.style.height=l+"px")},d}(Qn),Rn=Object(se.Rb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},re.a("peekViewTitleBackground","Background color of the peek view title area.")),Bn=Object(se.Rb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},re.a("peekViewTitleForeground","Color of the peek view title.")),kn=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:x.a.black},re.a("peekViewResultsBackground","Background color of the peek view result list.")),Hi=Object(se.Rb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:x.a.white},re.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),rr=Object(se.Rb)("peekViewResult.fileForeground",{dark:x.a.white,light:"#1E1E1E",hc:x.a.white},re.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Zn=Object(se.Rb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},re.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Ii=Object(se.Rb)("peekViewResult.selectionForeground",{dark:x.a.white,light:"#6C6C6C",hc:x.a.white},re.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Si=Object(se.Rb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:x.a.black},re.a("peekViewEditorBackground","Background color of the peek view editor.")),ji=Object(se.Rb)("peekViewEditorGutter.background",{dark:Si,light:Si,hc:Si},re.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Un=Object(se.Rb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},re.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ci=Object(se.Rb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},re.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Wi=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(l){switch(l){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(fe.e)(function(y,d){var l=y.getColor(se.Nb);l&&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: `+l+`;
}
`);var b=y.getColor(se.Pb);l&&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: `+b+`;
}
`);var S=y.getColor(se.Ob);l&&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: `+S+`;
}
`)});var Bi=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),vi=function(){function y(d,l,b,S){var C=this;this._openerService=S,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new N.b,this._editor=l;var $=document.createElement("div");$.className="descriptioncontainer",$.setAttribute("aria-live","assertive"),$.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),R.e(this._messageBlock,"message"),$.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),$.appendChild(this._relatedBlock),this._disposables.add(R.n(this._relatedBlock,"click",function(Be){Be.preventDefault();var rt=C._relatedDiagnostics.get(Be.target);rt&&b(rt)})),this._scrollable=new Fe.b($,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),d.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(Be){$.style.left="-"+Be.scrollLeft+"px",$.style.top="-"+Be.scrollTop+"px"})),this._disposables.add(this._scrollable)}return y.prototype.dispose=function(){Object(N.f)(this._disposables)},y.prototype.update=function(d){var l=this,b=d.source,S=d.message,C=d.relatedInformation,$=d.code,Be=((b==null?void 0:b.length)||0)+"()".length;$&&(typeof $=="string"?Be+=$.length:Be+=$.value.length);var rt=S.split(/\r\n|\r|\n/g);this._lines=rt.length,this._longestLineLength=0;for(var xe=0,ut=rt;xe<ut.length;xe++){var Nt=ut[xe];this._longestLineLength=Math.max(Nt.length+Be,this._longestLineLength)}R.s(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var qt=this._messageBlock,en=0,dn=rt;en<dn.length;en++){var Nt=dn[en];qt=document.createElement("div"),qt.innerText=Nt,Nt===""&&(qt.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(qt)}if(b||$){var an=document.createElement("span");if(R.e(an,"details"),qt.appendChild(an),b){var Cn=document.createElement("span");Cn.innerText=b,R.e(Cn,"source"),an.appendChild(Cn)}if($)if(typeof $=="string"){var In=document.createElement("span");In.innerText="("+$+")",R.e(In,"code"),an.appendChild(In)}else{this._codeLink=R.a("a.code-link"),this._codeLink.setAttribute("href",""+$.link.toString()),this._codeLink.onclick=function($i){l._openerService.open($.link),$i.preventDefault(),$i.stopPropagation()};var In=R.p(this._codeLink,R.a("span"));In.innerText=$.value,an.appendChild(this._codeLink)}}if(R.s(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(Ke.q)(C)){var Nn=this._relatedBlock.appendChild(document.createElement("div"));Nn.style.paddingTop=Math.floor(this._editor.getOption(49)*.66)+"px",this._lines+=1;for(var ti=0,Dn=C;ti<Dn.length;ti++){var ui=Dn[ti],qn=document.createElement("div"),Ri=document.createElement("a");R.e(Ri,"filename"),Ri.innerHTML=Object(_t.a)(ui.resource)+"("+ui.startLineNumber+", "+ui.startColumn+"): ",Ri.title=Object(_t.b)(ui.resource,void 0),this._relatedDiagnostics.set(Ri,ui);var li=document.createElement("span");li.innerText=ui.message,qn.appendChild(Ri),qn.appendChild(li),this._lines+=1,Nn.appendChild(qn)}}var gr=this._editor.getOption(34),Li=Math.ceil(gr.typicalFullwidthCharacterWidth*this._longestLineLength*.75),di=gr.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:Li,scrollHeight:di})},y.prototype.layout=function(d,l){this._scrollable.getDomNode().style.height=d+"px",this._scrollable.getDomNode().style.width=l+"px",this._scrollable.setScrollDimensions({width:l,height:d})},y.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},y}(),qi=function(y){Bi(d,y);function d(l,b,S,C){var $=y.call(this,l,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return $.actions=b,$._themeService=S,$._openerService=C,$._callOnDispose=new N.b,$._onDidSelectRelatedInformation=new Z.a,$.onDidSelectRelatedInformation=$._onDidSelectRelatedInformation.event,$._severity=ve.c.Warning,$._backgroundColor=x.a.white,$._applyTheme(S.getTheme()),$._callOnDispose.add(S.onThemeChange($._applyTheme.bind($))),$.create(),$}return d.prototype._applyTheme=function(l){this._backgroundColor=l.getColor(sr);var b=Xi;this._severity===ve.c.Warning?b=lr:this._severity===ve.c.Info&&(b=Ti);var S=l.getColor(b);this.style({arrowColor:S,frameColor:S,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:l.getColor(Bn),secondaryHeadingColor:l.getColor(kn)})},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(l){y.prototype._fillHead.call(this,l),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},d.prototype._fillTitleIcon=function(l){this._icon=R.p(l,R.a(""))},d.prototype._getActionBarOptions=function(){return{orientation:0}},d.prototype._fillBody=function(l){var b=this;this._parentContainer=l,R.e(l,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),l.appendChild(this._container),this._message=new vi(this._container,this.editor,function(S){return b._onDidSelectRelatedInformation.fire(S)},this._openerService),this._disposables.add(this._message)},d.prototype.show=function(l,b){throw new Error("call showAtMarker")},d.prototype.showAtMarker=function(l,b,S){this._container.classList.remove("stale"),this._message.update(l),this._severity=l.severity,this._applyTheme(this._themeService.getTheme());var C=U.a.lift(l),$=this.editor.getPosition(),Be=$&&C.containsPosition($)?$:C.getStartPosition();y.prototype.show.call(this,Be,this.computeRequiredHeight());var rt=this.editor.getModel();if(rt){var xe=S>1?re.a("problems","{0} of {1} problems",b,S):re.a("change","{0} of {1} problem",b,S);this.setTitle(Object(Me.b)(rt.uri),xe)}this._icon.className="codicon "+Gi.className(ve.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(Be,0),this.editor.focus()},d.prototype.updateMarker=function(l){this._container.classList.remove("stale"),this._message.update(l)},d.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},d.prototype._doLayoutBody=function(l,b){y.prototype._doLayoutBody.call(this,l,b),this._heightInPixel=l,this._message.layout(l,b),this._container.style.height=l+"px"},d.prototype._onWidth=function(l){this._message.layout(this._heightInPixel,l)},d.prototype._relayout=function(){y.prototype._relayout.call(this,this.computeRequiredHeight())},d.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},d}(Sn),or=Object(se.Jb)(se.q,se.p),bi=Object(se.Jb)(se.O,se.N),Di=Object(se.Jb)(se.H,se.G),Xi=Object(se.Rb)("editorMarkerNavigationError.background",{dark:or,light:or,hc:or},re.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),lr=Object(se.Rb)("editorMarkerNavigationWarning.background",{dark:bi,light:bi,hc:bi},re.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Ti=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:x.a.white,hc:"#0C141F"},re.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(fe.e)(function(y,d){var l=y.getColor(se.cc);l&&(d.addRule(".monaco-editor .marker-widget a { color: "+l+"; }"),d.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+l+"; }"))});var Qe=o("fjLI"),O=o("bexQ"),M=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Y=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},De=function(y,d){return function(l,b){d(l,b,y)}},Re=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},We=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},ft=function(){function y(d,l){var b=this;this._toUnbind=new N.b,this._editor=d,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new Z.a,this._onMarkerSetChanged=new Z.a,this.setMarkers(l),this._toUnbind.add(this._editor.onDidDispose(function(){return b.dispose()})),this._toUnbind.add(this._editor.onDidChangeCursorPosition(function(){if(b._ignoreSelectionChange)return;if(b.currentMarker&&b._editor.getPosition()&&U.a.containsPosition(b.currentMarker,b._editor.getPosition()))return;b._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 l=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=d||[],this._markers.sort(yt.compareMarker),l?this._nextIdx=Math.max(-1,Object(Ke.c)(this._markers,l,yt.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},y.prototype.withoutWatchingEditorPosition=function(d){this._ignoreSelectionChange=!0;try{d()}finally{this._ignoreSelectionChange=!1}},y.prototype._initIdx=function(d){for(var l=!1,b=this._editor.getPosition(),S=0;S<this._markers.length;S++){var C=U.a.lift(this._markers[S]);if(C.isEmpty()&&this._editor.getModel()){var $=this._editor.getModel().getWordAtPosition(C.getStartPosition());$&&(C=new U.a(C.startLineNumber,$.startColumn,C.startLineNumber,$.endColumn))}if(b&&(C.containsPosition(b)||b.isBeforeOrEqual(C.getStartPosition()))){this._nextIdx=S,l=!0;break}}l||(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(l){var b=this._nextIdx;this._nextIdx=-1,l&&(this._nextIdx=this.indexOf(l)),this._nextIdx!==b&&this._onCurrentMarkerChanged.fire(l)},enumerable:!0,configurable:!0}),y.prototype.move=function(d,l){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!l;var b=this._nextIdx,S=!1;if(this._nextIdx===-1?this._initIdx(d):d?l||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:S=!0:d||(l||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:S=!0),b!==this._nextIdx){var C=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(C)}return S},y.prototype.canNavigate=function(){return this._markers.length>0},y.prototype.findMarkerAtPosition=function(d){return Object(Ke.h)(this._markers,function(l){return U.a.containsPosition(l,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}(),lt=function(){function y(d,l,b,S,C,$,Be){this._markerService=l,this._contextKeyService=b,this._themeService=S,this._editorService=C,this._keybindingService=$,this._openerService=Be,this._model=null,this._widget=null,this._disposeOnClose=new N.b,this._editor=d,this._widgetVisible=Zt.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 l=this._getMarkers();this._model=new ft(this._editor,l),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var b=this._keybindingService.lookupKeybinding(It.ID),S=this._keybindingService.lookupKeybinding(xt.ID),C=[new zt.a(xt.ID,xt.LABEL+(S?" ("+S.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return Re(d,void 0,void 0,function(){return We(this,function(xe){return this._model&&this._model.move(!0,!0),[2]})})}),new zt.a(It.ID,It.LABEL+(b?" ("+b.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return Re(d,void 0,void 0,function(){return We(this,function(xe){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new qi(this._editor,C,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return d.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var $=0,Be=C;$<Be.length;$++){var rt=Be[$];this._disposeOnClose.add(rt)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation(function(xe){d._editorService.openCodeEditor({resource:xe.resource,options:{pinned:!0,revealIfOpened:!0,selection:U.a.lift(xe).collapseToStart()}},d._editor).then(void 0,H.e),d.closeMarkersNavigation(!1)})),this._disposeOnClose.add(this._editor.onDidChangeModel(function(){return d._cleanUp()})),this._disposeOnClose.add(this._model.onCurrentMarkerChanged(function(xe){!xe||!d._model?d._cleanUp():d._model.withoutWatchingEditorPosition(function(){if(!d._widget||!d._model)return;d._widget.showAtMarker(xe,d._model.indexOf(xe),d._model.total)})})),this._disposeOnClose.add(this._model.onMarkerSetChanged(function(){if(!d._widget||!d._widget.position||!d._model)return;var xe=d._model.findMarkerAtPosition(d._widget.position);xe?d._widget.updateMarker(xe):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 l=this.getOrCreateModel();l.currentMarker=d},y.prototype._onMarkerChanged=function(d){var l=this._editor.getModel();if(!l)return;if(!this._model)return;if(!d.some(function(b){return Object(Me.e)(l.uri,b)}))return;this._model.setMarkers(this._getMarkers())},y.prototype._getMarkers=function(){var d=this._editor.getModel();return d?this._markerService.read({resource:d.uri,severities:ve.c.Error|ve.c.Warning|ve.c.Info}):[]},y.ID="editor.contrib.markerController",y=Y([De(1,ve.b),De(2,pe.c),De(3,fe.c),De(4,B.a),De(5,O.a),De(6,Ie.a)],y),y}(),yt=function(y){M(d,y);function d(l,b,S){var C=y.call(this,S)||this;return C._isNext=l,C._multiFile=b,C}return d.prototype.run=function(l,b){var S=this,C=l.get(ve.b),$=l.get(B.a),Be=lt.get(b);if(!Be)return Promise.resolve(void 0);var rt=Be.getOrCreateModel(),xe=rt.move(this._isNext,!this._multiFile);if(!xe||!this._multiFile)return Promise.resolve(void 0);var ut=C.read({severities:ve.c.Error|ve.c.Warning|ve.c.Info}).sort(d.compareMarker);if(ut.length===0)return Promise.resolve(void 0);var Nt=b.getModel();if(!Nt)return Promise.resolve(void 0);var qt=rt.currentMarker||{resource:Nt.uri,severity:ve.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},en=Object(Ke.c)(ut,qt,d.compareMarker);en<0?(en=~en,en%=ut.length):this._isNext?en=(en+1)%ut.length:en=(en+ut.length-1)%ut.length;var dn=ut[en];return Object(Me.e)(dn.resource,Nt.uri)?(rt.move(this._isNext,!0),Promise.resolve(void 0)):(Be.closeMarkersNavigation(),$.openCodeEditor({resource:dn.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:dn}},b).then(function(an){return an?an.getAction(S.id).run():void 0}))},d.compareMarker=function(l,b){var S=Object(on.e)(l.resource.toString(),b.resource.toString());return S===0&&(S=ve.c.compare(l.severity,b.severity)),S===0&&(S=U.a.compareRangesUsingStarts(l,b)),S},d}(k.b),xt=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:j.a.writable,kbOpts:{kbExpr:j.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),It=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:j.a.writable,kbOpts:{kbExpr:j.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),Ft=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:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:66,weight:100}})||this}return d}(yt),Yt=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:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:1024|66,weight:100}})||this}return d}(yt);Object(k.h)(lt.ID,lt),Object(k.f)(xt),Object(k.f)(It),Object(k.f)(Ft),Object(k.f)(Yt);var Zt=new pe.d("markersNavigationVisible",!1),un=k.c.bindToContribution(lt.get);Object(k.g)(new un({id:"closeMarkersNavigation",precondition:Zt,handler:function(d){return d.closeMarkersNavigation()},kbOpts:{weight:100+50,kbExpr:j.a.focus,primary:9,secondary:[1024|9]}})),Qe.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}),Qe.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 fn=o("vATl"),An=o("gCVg"),gn=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 Tn(y,d){return y.include&&!y.include.intersects(d)||y.excludes&&y.excludes.some(function(l){return Le(d,l,y.include)})?!1:!(!y.includeSourceActions&&gn.Source.contains(d))}function xn(y,d){var l=d.kind?new gn(d.kind):void 0;return y.include&&(!l||!y.include.contains(l))||(y.excludes&&(l&&y.excludes.some(function(b){return Le(l,b,y.include)}))||!y.includeSourceActions&&(l&&gn.Source.contains(l)))?!1:!(y.onlyIncludePreferredActions&&!d.isPreferred)}function Le(y,d,l){return d.contains(y)?!(l&&d.contains(l)):!1}var W=function(){function y(d,l,b){this.kind=d,this.apply=l,this.preferred=b}return y.fromUser=function(d,l){return!d||typeof d!="object"?new y(l.kind,l.apply,!1):new y(y.getKindFromUser(d,l.kind),y.getApplyFromUser(d,l.apply),y.getPreferredUser(d))},y.getApplyFromUser=function(d,l){switch(typeof d.apply=="string"?d.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return l}},y.getKindFromUser=function(d,l){return typeof d.kind=="string"?new gn(d.kind):l},y.getPreferredUser=function(d){return typeof d.preferred=="boolean"?d.preferred:!1},y}(),ae=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),ke=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},qe=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},ct=function(){for(var y=0,d=0,l=arguments.length;d<l;d++)y+=arguments[d].length;for(var b=Array(y),S=0,d=0;d<l;d++)for(var C=arguments[d],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},St="editor.action.codeAction",Ge="editor.action.refactor",ue="editor.action.sourceAction",X="editor.action.organizeImports",Ue="editor.action.fixAll",at=function(y){ae(d,y);function d(l,b){var S=y.call(this)||this;return S._register(b),S.allActions=Object(Ke.r)(ct(l),d.codeActionsComparator),S.validActions=S.allActions.filter(function(C){return!C.disabled}),S}return d.codeActionsComparator=function(l,b){return Object(Ke.q)(l.diagnostics)?Object(Ke.q)(b.diagnostics)?l.diagnostics[0].message.localeCompare(b.diagnostics[0].message):-1:Object(Ke.q)(b.diagnostics)?1:0},Object.defineProperty(d.prototype,"hasAutoFix",{get:function(){return this.validActions.some(function(b){return!!b.kind&&gn.QuickFix.contains(new gn(b.kind))&&!!b.isPreferred})},enumerable:!0,configurable:!0}),d}(N.a);function et(y,d,l,b){var S=this,C,$=l.filter||{},Be={only:(C=$.include)===null||C===void 0?void 0:C.value,trigger:l.type},rt=new fn.d(y,b),xe=J(y,$),ut=new N.b,Nt=xe.map(function(en){return ke(S,void 0,void 0,function(){var dn,an;return qe(this,function(Cn){switch(Cn.label){case 0:return Cn.trys.push([0,2,,3]),[4,en.provideCodeActions(y,d,Be,rt.token)];case 1:return dn=Cn.sent(),rt.token.isCancellationRequested||!dn?[2,[]]:(ut.add(dn),[2,dn.actions.filter(function(In){return In&&xn($,In)})]);case 2:if(an=Cn.sent(),Object(H.d)(an))throw an;return Object(H.f)(an),[2,[]];case 3:return[2]}})})}),qt=te.a.onDidChange(function(){var en=te.a.all(y);Object(Ke.g)(en,xe)||rt.cancel()});return Promise.all(Nt).then(Ke.m).then(function(en){return new at(en,ut)}).finally(function(){qt.dispose(),rt.dispose()})}function J(y,d){return te.a.all(y).filter(function(l){return l.providedCodeActionKinds?l.providedCodeActionKinds.some(function(b){return Tn(d,new gn(b))}):!0})}Object(k.j)("_executeCodeActionProvider",function(y,d){return ke(this,void 0,void 0,function(){var l,b,S,C,$,Be;return qe(this,function(rt){switch(rt.label){case 0:if(l=d.resource,b=d.rangeOrSelection,S=d.kind,!(l instanceof E.a))throw Object(H.b)();if(C=y.get(f.a).getModel(l),!C)throw Object(H.b)();if($=An.a.isISelection(b)?An.a.liftSelection(b):U.a.isIRange(b)?C.validateRange(b):void 0,!$)throw Object(H.b)();return[4,et(C,$,{type:2,filter:{includeSourceActions:!0,include:S&&S.value?new gn(S.value):void 0}},_.a.None)];case 1:return Be=rt.sent(),setTimeout(function(){return Be.dispose()},100),[2,Be.validActions]}})})});var Ce=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}(),Oe=o("x/UI"),it=o("synD"),Je=o("OBOq"),je=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Ct=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},Ot=function(y,d){return function(l,b){d(l,b,y)}},Qt=function(y){je(d,y);function d(l,b){var S=y.call(this)||this;return S.closeTimeout=3e3,S._messageWidget=S._register(new N.d),S._messageListeners=S._register(new N.b),S._editor=l,S._visible=d.MESSAGE_VISIBLE.bindTo(b),S._register(S._editor.onDidAttemptReadOnlyEdit(function(){return S._onDidAttemptReadOnlyEdit()})),S}return d.get=function(l){return l.getContribution(d.ID)},d.prototype.dispose=function(){y.prototype.dispose.call(this),this._visible.reset()},d.prototype.showMessage=function(l,b){var S=this;Object(Je.a)(l),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new jt(this._editor,b,l),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return S.closeMessage()})),this._messageListeners.add(new m.e(function(){return S.closeMessage()},this.closeTimeout));var C;this._messageListeners.add(this._editor.onMouseMove(function($){if(!$.target.position)return;C?C.containsPosition($.target.position)||S.closeMessage():C=new U.a(b.lineNumber-3,1,$.target.position.lineNumber+3,1)}))},d.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(jt.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 pe.d("messageVisible",!1),d=Ct([Ot(1,pe.c)],d),d}(N.a),At=k.c.bindToContribution(Qt.get);Object(k.g)(new At({id:"leaveEditorMessage",precondition:Qt.MESSAGE_VISIBLE,handler:function(d){return d.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var jt=function(){function y(d,l,b){var S=l.lineNumber,C=l.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=d,this._editor.revealLinesInCenterIfOutsideViewport(S,S,0),this._position={lineNumber:S,column:C-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var $=document.createElement("div");$.classList.add("message"),$.textContent=b,this._domNode.appendChild($);var Be=document.createElement("div");Be.classList.add("anchor"),this._domNode.appendChild(Be),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return y.fadeOut=function(d){var l,b=function S(){d.dispose(),clearTimeout(l),d.getDomNode().removeEventListener("animationend",S)};return l=setTimeout(b,110),d.getDomNode().addEventListener("animationend",b),d.getDomNode().classList.add("fadeOut"),{dispose:b}},y.prototype.dispose=function(){this._editor.removeContentWidget(this)},y.prototype.getId=function(){return"messageoverlay"},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},y}();Object(k.h)(Qt.ID,Qt),Object(fe.e)(function(y,d){var l=y.getColor(se.fb);if(l){var b=y.type===fe.b?2:1;d.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+l+"; }"),d.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+b+"px solid "+l+"; }")}var S=y.getColor(se.eb);S&&d.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+S+"; }");var C=y.getColor(se.gb);C&&d.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+C+"; }")});var hn=o("Uzvx"),bn=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),mn=function(){return mn=Object.assign||function(y){for(var d,l=1,b=arguments.length;l<b;l++){d=arguments[l];for(var S in d)Object.prototype.hasOwnProperty.call(d,S)&&(y[S]=d[S])}return y},mn.apply(this,arguments)},Vn=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},Xn=function(y,d){return function(l,b){d(l,b,y)}},Yn=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},Ui=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},ii=function(){for(var y=0,d=0,l=arguments.length;d<l;d++)y+=arguments[d].length;for(var b=Array(y),S=0,d=0;d<l;d++)for(var C=arguments[d],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},Pi=function(y){bn(d,y);function d(l,b){var S=y.call(this,l.command?l.command.id:l.title,l.title,void 0,!l.disabled,b)||this;return S.action=l,S}return d}(zt.a),ur=function(y){bn(d,y);function d(l,b,S,C){var $=y.call(this)||this;return $._editor=l,$._delegate=b,$._contextMenuService=S,$._visible=!1,$._showingActions=$._register(new N.d),$._keybindingResolver=new er({getKeybindings:function(){return C.getKeybindings()}}),$}return Object.defineProperty(d.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),d.prototype.show=function(l,b,S,C){return Yn(this,void 0,void 0,function(){var $,Be,rt,xe,ut=this;return Ui(this,function(Nt){if($=C.includeDisabledActions?b.allActions:b.validActions,!$.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(H.a)();return this._visible=!0,this._showingActions.value=b,Be=this.getMenuActions(l,$),rt=D.a.isIPosition(S)?this._toCoords(S):S||{x:0,y:0},xe=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return rt},getActions:function(){return Be},onHide:function(){ut._visible=!1,ut._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(en){return en instanceof Pi?xe(en.action):void 0}}),[2]})})},d.prototype.getMenuActions=function(l,b){var S=this,C,$,Be=function(an){return new Pi(an,function(){return S._delegate.onSelectCodeAction(an)})},rt=b.map(Be),xe=this._editor.getModel();if(xe&&rt.length)for(var ut=0,Nt=te.a.all(xe);ut<Nt.length;ut++){var qt=Nt[ut];if(qt._getAdditionalMenuItems){var en=qt._getAdditionalMenuItems({trigger:l.type,only:($=(C=l.filter)===null||C===void 0?void 0:C.include)===null||$===void 0?void 0:$.value},b);en.length&&rt.push.apply(rt,ii([new Mt.d],en.map(function(dn){return Be({title:dn.title,command:dn})})))}}return rt},d.prototype._toCoords=function(l){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(l,1),this._editor.render();var b=this._editor.getScrolledVisiblePosition(l),S=Object(R.B)(this._editor.getDomNode()),C=S.left+b.left,$=S.top+b.top+b.height;return{x:C,y:$}},d=Vn([Xn(2,hn.a),Xn(3,O.a)],d),d}(N.a),er=function(){function y(d){this._keybindingProvider=d}return y.prototype.getResolver=function(){var d=this,l=new Ce(function(){return d._keybindingProvider.getKeybindings().filter(function(b){return y.codeActionCommands.indexOf(b.command)>=0}).filter(function(b){return b.resolvedKeybinding}).map(function(b){var S=b.commandArgs;return b.command===X?S={kind:gn.SourceOrganizeImports.value}:b.command===Ue&&(S={kind:gn.SourceFixAll.value}),mn({resolvedKeybinding:b.resolvedKeybinding},W.fromUser(S,{kind:gn.None,apply:"never"}))})});return function(b){if(b.kind){var S=d.bestKeybindingForCodeAction(b,l.getValue());return S==null?void 0:S.resolvedKeybinding}return}},y.prototype.bestKeybindingForCodeAction=function(d,l){if(!d.kind)return;var b=new gn(d.kind);return l.filter(function(S){return S.kind.contains(b)}).filter(function(S){return S.preferred?d.isPreferred:!0}).reduceRight(function(S,C){return S?S.kind.contains(C.kind)?C:S:C},void 0)},y.codeActionCommands=[Ge,St,ue,X,Ue],y}(),tr=o("MNXI"),Hn=o("pg8w"),Vr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Oi=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},wo=function(y,d){return function(l,b){d(l,b,y)}},Ir;(function(y){y.Hidden={type:0};var d=function(){function l(b,S,C,$){this.actions=b,this.trigger=S,this.editorPosition=C,this.widgetPosition=$,this.type=1}return l}();y.Showing=d})(Ir||(Ir={}));var Hr=function(y){Vr(d,y);function d(l,b,S,C){var $=y.call(this)||this;return $._editor=l,$._quickFixActionId=b,$._preferredFixActionId=S,$._keybindingService=C,$._onClick=$._register(new Z.a),$.onClick=$._onClick.event,$._state=Ir.Hidden,$._domNode=document.createElement("div"),$._domNode.className="codicon codicon-lightbulb",$._editor.addContentWidget($),$._register($._editor.onDidChangeModelContent(function(Be){var rt=$._editor.getModel();($.state.type!==1||!rt||$.state.editorPosition.lineNumber>=rt.getLineCount())&&$.hide()})),Hn.b.ignoreTarget($._domNode),$._register(R.m($._domNode,function(Be){if($.state.type!==1)return;$._editor.focus(),Be.preventDefault();var rt=R.B($._domNode),xe=rt.top,ut=rt.height,Nt=$._editor.getOption(49),qt=Math.floor(Nt/3);$.state.widgetPosition.position!==null&&$.state.widgetPosition.position.lineNumber<$.state.editorPosition.lineNumber&&(qt+=Nt),$._onClick.fire({x:Be.posx,y:xe+ut+qt,actions:$.state.actions,trigger:$.state.trigger})})),$._register(R.i($._domNode,"mouseenter",function(Be){if((Be.buttons&1)!==1)return;$.hide();var rt=new Ee.a;rt.startMonitoring(Be.target,Be.buttons,Ee.b,function(){},function(){rt.dispose()})})),$._register($._editor.onDidChangeConfiguration(function(Be){Be.hasChanged(47)&&!$._editor.getOption(47).enabled&&$.hide()})),$._updateLightBulbTitle(),$._register($._keybindingService.onDidUpdateKeybindings($._updateLightBulbTitle,$)),$}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(l,b,S){var C=this;if(l.validActions.length<=0)return this.hide();var $=this._editor.getOptions();if(!$.get(47).enabled)return this.hide();var Be=S.lineNumber,rt=S.column,xe=this._editor.getModel();if(!xe)return this.hide();var ut=xe.getOptions().tabSize,Nt=$.get(34),qt=xe.getLineContent(Be),en=A.b.computeIndentLevel(qt,ut),dn=Nt.spaceWidth*en>22,an=function(Nn){return Nn>2&&C._editor.getTopForLineNumber(Nn)===C._editor.getTopForLineNumber(Nn-1)},Cn=Be;if(!dn){if(Be>1&&!an(Be-1))Cn-=1;else if(!an(Be+1))Cn+=1;else if(rt*Nt.spaceWidth<22)return this.hide()}this.state=new Ir.Showing(l,b,S,{position:{lineNumber:Cn,column:1},preference:d._posPref}),R.X(this._domNode,"codicon-lightbulb-autofix",l.hasAutoFix),this._editor.layoutContentWidget(this)},d.prototype.hide=function(){this.state=Ir.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(d.prototype,"state",{get:function(){return this._state},set:function(b){this._state=b,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),d.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var l=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(l){this.title=re.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",l.getLabel());return}}var b=this._keybindingService.lookupKeybinding(this._quickFixActionId);b?this.title=re.a("quickFixWithKb","Show Fixes ({0})",b.getLabel()):this.title=re.a("quickFix","Show Fixes")},Object.defineProperty(d.prototype,"title",{set:function(b){this._domNode.title=b},enumerable:!0,configurable:!0}),d._posPref=[0],d=Oi([wo(3,O.a)],d),d}(N.a);Object(fe.e)(function(y,d){var l=y.getColor(se.J);l&&d.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb {
color: `+l+`;
}`);var b=y.getColor(se.I);b&&d.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb-autofix {
color: `+b+`;
}`)});var Pr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),eo=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},po=function(y,d){return function(l,b){d(l,b,y)}},dr=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},_r=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},go=function(y){Pr(d,y);function d(l,b,S,C,$){var Be=y.call(this)||this;return Be._editor=l,Be.delegate=C,Be._activeCodeActions=Be._register(new N.d),Be._codeActionWidget=new Ce(function(){return Be._register($.createInstance(ur,Be._editor,{onSelectCodeAction:function(xe){return dr(Be,void 0,void 0,function(){return _r(this,function(ut){return this.delegate.applyCodeAction(xe,!0),[2]})})}}))}),Be._lightBulbWidget=new Ce(function(){var rt=Be._register($.createInstance(Hr,Be._editor,b,S));return Be._register(rt.onClick(function(xe){return Be.showCodeActionList(xe.trigger,xe.actions,xe,{includeDisabledActions:!1})})),rt}),Be}return d.prototype.update=function(l){var b,S,C;return dr(this,void 0,void 0,function(){var $,Be,rt,xe,ut;return _r(this,function(Nt){switch(Nt.label){case 0:if(l.type!==1)return(b=this._lightBulbWidget.rawValue)===null||b===void 0||b.hide(),[2];Nt.label=1;case 1:return Nt.trys.push([1,3,,4]),[4,l.actions];case 2:return $=Nt.sent(),[3,4];case 3:return Be=Nt.sent(),Object(H.e)(Be),[2];case 4:if(this._lightBulbWidget.getValue().update($,l.trigger,l.position),!(l.trigger.type===2))return[3,11];if(!((S=l.trigger.filter)===null||S===void 0?void 0:S.include))return[3,10];if(rt=this.tryGetValidActionToApply(l.trigger,$),!rt)return[3,9];Nt.label=5;case 5:return Nt.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(rt,!1)];case 6:return Nt.sent(),[3,8];case 7:return $.dispose(),[7];case 8:return[2];case 9:if(l.trigger.context&&(xe=this.getInvalidActionThatWouldHaveBeenApplied(l.trigger,$),xe&&xe.disabled))return Qt.get(this._editor).showMessage(xe.disabled,l.trigger.context.position),$.dispose(),[2];Nt.label=10;case 10:return ut=!!((C=l.trigger.filter)===null||C===void 0?void 0:C.include),l.trigger.context&&(!$.allActions.length||!ut&&!$.validActions.length)?(Qt.get(this._editor).showMessage(l.trigger.context.notAvailableMessage,l.trigger.context.position),this._activeCodeActions.value=$,$.dispose(),[2]):(this._activeCodeActions.value=$,this._codeActionWidget.getValue().show(l.trigger,$,l.position,{includeDisabledActions:ut}),[3,12]);case 11:this._codeActionWidget.getValue().isVisible?$.dispose():this._activeCodeActions.value=$,Nt.label=12;case 12:return[2]}})})},d.prototype.getInvalidActionThatWouldHaveBeenApplied=function(l,b){return b.allActions.length&&(l.autoApply==="first"&&b.validActions.length===0||l.autoApply==="ifSingle"&&b.allActions.length===1)?Object(Ke.h)(b.allActions,function(S){return S.disabled}):void 0},d.prototype.tryGetValidActionToApply=function(l,b){return b.validActions.length&&(l.autoApply==="first"&&b.validActions.length>0||l.autoApply==="ifSingle"&&b.validActions.length===1)?b.validActions[0]:void 0},d.prototype.showCodeActionList=function(l,b,S,C){return dr(this,void 0,void 0,function(){return _r(this,function($){return this._codeActionWidget.getValue().show(l,b,S,C),[2]})})},d=eo([po(4,Mn.a)],d),d}(N.a),Bo=o("tTk5"),Lo=o("XXUj"),Ai=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),zr=new pe.d("supportedCodeAction",""),is=function(y){Ai(d,y);function d(l,b,S,C){C===void 0&&(C=250);var $=y.call(this)||this;return $._editor=l,$._markerService=b,$._signalChange=S,$._delay=C,$._autoTriggerTimer=$._register(new m.e),$._register($._markerService.onMarkerChanged(function(Be){return $._onMarkerChanges(Be)})),$._register($._editor.onDidChangeCursorPosition(function(){return $._onCursorChange()})),$}return d.prototype.trigger=function(l){var b=this._getRangeOfSelectionUnlessWhitespaceEnclosed(l);return this._createEventAndSignalChange(l,b)},d.prototype._onMarkerChanges=function(l){var b=this,S=this._editor.getModel();if(!S)return;l.some(function(C){return Object(Me.e)(C,S.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){b.trigger({type:1})},this._delay)},d.prototype._onCursorChange=function(){var l=this;this._autoTriggerTimer.cancelAndSet(function(){l.trigger({type:1})},this._delay)},d.prototype._getRangeOfMarker=function(l){var b=this._editor.getModel();if(!b)return;for(var S=0,C=this._markerService.read({resource:b.uri});S<C.length;S++){var $=C[S],Be=b.validateRange($);if(U.a.intersectRanges(Be,l))return U.a.lift(Be)}return},d.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(l){if(!this._editor.hasModel())return;var b=this._editor.getModel(),S=this._editor.getSelection();if(S.isEmpty()&&l.type===1){var C=S.getPosition(),$=C.lineNumber,Be=C.column,rt=b.getLineContent($);if(rt.length===0)return;if(Be===1){if(/\s/.test(rt[0]))return}else if(Be===b.getLineMaxColumn($)){if(/\s/.test(rt[rt.length-1]))return}else if(/\s/.test(rt[Be-2])&&/\s/.test(rt[Be-1]))return}return S},d.prototype._createEventAndSignalChange=function(l,b){var S=this._editor.getModel();if(!b||!S){this._signalChange(void 0);return}var C=this._getRangeOfMarker(b),$=C?C.getStartPosition():b.getStartPosition(),Be={trigger:l,selection:b,position:$};return this._signalChange(Be),Be},d}(N.a),kr;(function(y){y.Empty={type:0};var d=function(){function l(b,S,C,$){this.trigger=b,this.rangeOrSelection=S,this.position=C,this.actions=$,this.type=1}return l}();y.Triggered=d})(kr||(kr={}));var rs=function(y){Ai(d,y);function d(l,b,S,C){var $=y.call(this)||this;return $._editor=l,$._markerService=b,$._progressService=C,$._codeActionOracle=$._register(new N.d),$._state=kr.Empty,$._onDidChangeState=$._register(new Z.a),$.onDidChangeState=$._onDidChangeState.event,$._supportedCodeActions=zr.bindTo(S),$._register($._editor.onDidChangeModel(function(){return $._update()})),$._register($._editor.onDidChangeModelLanguage(function(){return $._update()})),$._register(te.a.onDidChange(function(){return $._update()})),$._update(),$}return d.prototype.dispose=function(){y.prototype.dispose.call(this),this.setState(kr.Empty,!0)},d.prototype._update=function(){var l=this;this._codeActionOracle.value=void 0,this.setState(kr.Empty);var b=this._editor.getModel();if(b&&te.a.has(b)&&!this._editor.getOption(68)){for(var S=[],C=0,$=te.a.all(b);C<$.length;C++){var Be=$[C];Array.isArray(Be.providedCodeActionKinds)&&S.push.apply(S,Be.providedCodeActionKinds)}this._supportedCodeActions.set(S.join(" ")),this._codeActionOracle.value=new is(this._editor,this._markerService,function(rt){if(!rt){l.setState(kr.Empty);return}var xe=Object(m.f)(function(ut){return et(b,rt.selection,rt.trigger,ut)});l._progressService&&rt.trigger.type===2&&l._progressService.showWhile(xe,250),l.setState(new kr.Triggered(rt.trigger,rt.selection,rt.position,xe))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},d.prototype.trigger=function(l){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(l)},d.prototype.setState=function(l,b){if(l===this._state)return;this._state.type===1&&this._state.actions.cancel(),this._state=l,b||this._onDidChangeState.fire(l)},d}(N.a),ar=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),os=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},Do=function(y,d){return function(l,b){d(l,b,y)}},pn=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},Os=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},Ms=function(){for(var y=0,d=0,l=arguments.length;d<l;d++)y+=arguments[d].length;for(var b=Array(y),S=0,d=0;d<l;d++)for(var C=arguments[d],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b};function Ei(y){return pe.a.regex(zr.keys()[0],new RegExp("(\\s|^)"+Object(on.p)(y.value)+"\\b"))}var mo={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(l,b,S,C,$){var Be=y.call(this)||this;return Be._instantiationService=$,Be._editor=l,Be._model=Be._register(new rs(Be._editor,b,S,C)),Be._register(Be._model.onDidChangeState(function(rt){return Be.update(rt)})),Be._ui=new Ce(function(){return Be._register(new go(l,ls.Id,us.Id,{applyCodeAction:function(xe,ut){return pn(Be,void 0,void 0,function(){return Os(this,function(Nt){switch(Nt.label){case 0:return Nt.trys.push([0,,2,3]),[4,this._applyCodeAction(xe)];case 1:return Nt.sent(),[3,3];case 2:return ut&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}})})}},Be._instantiationService))}),Be}return d.get=function(l){return l.getContribution(d.ID)},d.prototype.update=function(l){this._ui.getValue().update(l)},d.prototype.showCodeActions=function(l,b,S){return this._ui.getValue().showCodeActionList(l,b,S,{includeDisabledActions:!1})},d.prototype.manualTriggerAtCurrentPosition=function(l,b,S){if(!this._editor.hasModel())return;Qt.get(this._editor).closeMessage();var C=this._editor.getPosition();this._trigger({type:2,filter:b,autoApply:S,context:{notAvailableMessage:l,position:C}})},d.prototype._trigger=function(l){return this._model.trigger(l)},d.prototype._applyCodeAction=function(l){return this._instantiationService.invokeFunction(as,l,this._editor)},d.ID="editor.contrib.quickFixController",d=os([Do(1,ve.b),Do(2,pe.c),Do(3,Bo.a),Do(4,Mn.a)],d),d}(N.a);function as(y,d,l){return pn(this,void 0,void 0,function(){var b,S,C,$,Be,rt;return Os(this,function(xe){switch(xe.label){case 0:return b=y.get(Oe.a),S=y.get(yn.b),C=y.get(Lo.a),$=y.get(kt.a),C.publicLog2("codeAction.applyCodeAction",{codeActionTitle:d.title,codeActionKind:d.kind,codeActionIsPreferred:!!d.isPreferred}),d.edit?[4,b.apply(d.edit,{editor:l})]:[3,2];case 1:xe.sent(),xe.label=2;case 2:if(!d.command)return[3,6];xe.label=3;case 3:return xe.trys.push([3,5,,6]),[4,S.executeCommand.apply(S,Ms([d.command.id],d.command.arguments||[]))];case 4:return xe.sent(),[3,6];case 5:return Be=xe.sent(),rt=Ts(Be),$.error(typeof rt=="string"?rt:re.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}})})}function Ts(y){return typeof y=="string"?y:y instanceof Error&&typeof y.message=="string"?y.message:void 0}function Fr(y,d,l,b){if(y.hasModel()){var S=ss.get(y);S&&S.manualTriggerAtCurrentPosition(d,l,b)}}var ls=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:pe.a.and(j.a.writable,j.a.hasCodeActionsProvider),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|84,weight:100}})||this}return d.prototype.run=function(l,b){return Fr(b,re.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},d.Id="editor.action.quickFix",d}(k.b),$s=function(y){ar(d,y);function d(){return y.call(this,{id:St,precondition:pe.a.and(j.a.writable,j.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:mo}]}})||this}return d.prototype.runEditorCommand=function(l,b,S){var C=W.fromUser(S,{kind:gn.Empty,apply:"ifSingle"});return Fr(b,typeof(S==null?void 0:S.kind)=="string"?C.preferred?re.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",S.kind):re.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",S.kind):C.preferred?re.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):re.a("editor.action.codeAction.noneMessage","No code actions available"),{include:C.kind,includeSourceActions:!0,onlyIncludePreferredActions:C.preferred},C.apply)},d}(k.c),ua=function(y){ar(d,y);function d(){return y.call(this,{id:Ge,label:re.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:pe.a.and(j.a.writable,j.a.hasCodeActionsProvider),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|1024|48,mac:{primary:256|1024|48},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:pe.a.and(j.a.writable,Ei(gn.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:mo}]}})||this}return d.prototype.run=function(l,b,S){var C=W.fromUser(S,{kind:gn.Refactor,apply:"never"});return Fr(b,typeof(S==null?void 0:S.kind)=="string"?C.preferred?re.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",S.kind):re.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",S.kind):C.preferred?re.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):re.a("editor.action.refactor.noneMessage","No refactorings available"),{include:gn.Refactor.contains(C.kind)?C.kind:gn.None,onlyIncludePreferredActions:C.preferred},C.apply)},d}(k.b),Qs=function(y){ar(d,y);function d(){return y.call(this,{id:ue,label:re.a("source.label","Source Action..."),alias:"Source Action...",precondition:pe.a.and(j.a.writable,j.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:pe.a.and(j.a.writable,Ei(gn.Source))},description:{description:"Source Action...",args:[{name:"args",schema:mo}]}})||this}return d.prototype.run=function(l,b,S){var C=W.fromUser(S,{kind:gn.Source,apply:"never"});return Fr(b,typeof(S==null?void 0:S.kind)=="string"?C.preferred?re.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",S.kind):re.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",S.kind):C.preferred?re.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):re.a("editor.action.source.noneMessage","No source actions available"),{include:gn.Source.contains(C.kind)?C.kind:gn.None,includeSourceActions:!0,onlyIncludePreferredActions:C.preferred},C.apply)},d}(k.b),Js=function(y){ar(d,y);function d(){return y.call(this,{id:X,label:re.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:pe.a.and(j.a.writable,Ei(gn.SourceOrganizeImports)),kbOpts:{kbExpr:j.a.editorTextFocus,primary:1024|512|45,weight:100}})||this}return d.prototype.run=function(l,b){return Fr(b,re.a("editor.action.organize.noneMessage","No organize imports action available"),{include:gn.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},d}(k.b),da=function(y){ar(d,y);function d(){return y.call(this,{id:Ue,label:re.a("fixAll.label","Fix All"),alias:"Fix All",precondition:pe.a.and(j.a.writable,Ei(gn.SourceFixAll))})||this}return d.prototype.run=function(l,b){return Fr(b,re.a("fixAll.noneMessage","No fix all action available"),{include:gn.SourceFixAll,includeSourceActions:!0},"ifSingle")},d}(k.b),us=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:pe.a.and(j.a.writable,Ei(gn.QuickFix)),kbOpts:{kbExpr:j.a.editorTextFocus,primary:512|1024|84,mac:{primary:2048|512|84},weight:100}})||this}return d.prototype.run=function(l,b){return Fr(b,re.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:gn.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},d.Id="editor.action.autoFix",d}(k.b),Sr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),xs=function(){for(var y=0,d=0,l=arguments.length;d<l;d++)y+=arguments[d].length;for(var b=Array(y),S=0,d=0;d<l;d++)for(var C=arguments[d],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},Ni=R.a,Kr=function(){function y(d,l,b){this.range=d,this.color=l,this.provider=b}return y}(),Gr=function(){function y(d,l){this.range=d,this.marker=l}return y}(),ds=function(){function y(d,l){this._markerDecorationsService=l,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 l=this._editor.getModel();return te.o.has(l)?Xe(l,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 l=this._editor.getModel(),b=this._range.startLineNumber;if(b>this._editor.getModel().getLineCount())return[];var S=q.get(this._editor),C=l.getLineMaxColumn(b),$=this._editor.getLineDecorations(b),Be=!1,rt=this._range,xe=$.map(function(ut){var Nt=ut.range.startLineNumber===b?ut.range.startColumn:1,qt=ut.range.endLineNumber===b?ut.range.endColumn:C;if(Nt>rt.startColumn||rt.endColumn>qt)return null;var en=new U.a(rt.startLineNumber,Nt,rt.startLineNumber,qt),dn=d._markerDecorationsService.getMarker(l,ut);if(dn)return new Gr(en,dn);var an=S.getColorData(ut.range.getStartPosition());if(!Be&&an){Be=!0;var Cn=an.colorInfo,In=Cn.color,Nn=Cn.range;return new Kr(Nn,In,an.provider)}else{if(Object(K.b)(ut.options.hoverMessage))return null;var ti=ut.options.hoverMessage?Object(Ke.b)(ut.options.hoverMessage):[];return{contents:ti,range:en}}});return Object(Ke.d)(xe)},y.prototype.onResult=function(d,l){l?this._result=d.concat(this._result.sort(function(b,S){return b instanceof Kr?-1:S 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}(),Uo={type:2,filter:{include:gn.QuickFix}},Xr=function(y){Sr(d,y);function d(l,b,S,C,$,Be){Be===void 0&&(Be=Ie.b);var rt=y.call(this,d.ID,l)||this;return rt._themeService=S,rt._keybindingService=C,rt._modeService=$,rt._openerService=Be,rt.renderDisposable=rt._register(new N.d),rt._messages=[],rt._lastRange=null,rt._computer=new ds(rt._editor,b),rt._highlightDecorations=[],rt._isChangingDecorations=!1,rt._shouldFocus=!1,rt._colorPicker=null,rt._hoverOperation=new Ye(rt._computer,function(xe){return rt._withResult(xe,!0)},null,function(xe){return rt._withResult(xe,!1)},rt._editor.getOption(44).delay),rt._register(R.n(rt.getDomNode(),R.c.FOCUS,function(){rt._colorPicker&&R.e(rt.getDomNode(),"colorpicker-hover")})),rt._register(R.n(rt.getDomNode(),R.c.BLUR,function(){R.O(rt.getDomNode(),"colorpicker-hover")})),rt._register(l.onDidChangeConfiguration(function(xe){rt._hoverOperation.setHoverTime(rt._editor.getOption(44).delay)})),rt._register(te.y.onDidChange(function(xe){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(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},d.prototype.startShowingAt=function(l,b,S){if(this._lastRange&&this._lastRange.equalsRange(l))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==l.startLineNumber)this.hide();else{for(var C=[],$=0,Be=this._messages.length;$<Be;$++){var rt=this._messages[$],xe=rt.range;xe&&xe.startColumn<=l.startColumn&&xe.endColumn>=l.endColumn&&C.push(rt)}if(C.length>0){if(cs(C,this._messages))return;this._renderMessages(l,C)}else this.hide()}this._lastRange=l,this._computer.setRange(l),this._shouldFocus=S,this._hoverOperation.start(b)},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(l,b){this._messages=l,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):b&&this.hide()},d.prototype._renderMessages=function(l,b){var S=this;this.renderDisposable.dispose(),this._colorPicker=null;var C=1073741824,$=b[0].range?U.a.lift(b[0].range):null,Be=document.createDocumentFragment(),rt=!0,xe=!1,ut=new N.b,Nt=[];if(b.forEach(function(en){if(!en.range)return;if(C=Math.min(C,en.range.startColumn),$=$?U.a.plusRange($,en.range):U.a.lift(en.range),en instanceof Kr){xe=!0;var dn=en.color,an=dn.red,Cn=dn.green,In=dn.blue,Nn=dn.alpha,ti=new x.c(Math.round(an*255),Math.round(Cn*255),Math.round(In*255),Nn),Dn=new x.a(ti);if(!S._editor.hasModel())return;var ui=S._editor.getModel(),qn=new U.a(en.range.startLineNumber,en.range.startColumn,en.range.endLineNumber,en.range.endColumn),Ri={range:en.range,color:en.color},li=new ce(Dn,[],0),gr=new Xt(Be,li,S._editor.getOption(105),S._themeService);g(ui,Ri,en.provider,_.a.None).then(function(Li){if(li.colorPresentations=Li||[],!S._editor.hasModel())return;var di=S._editor.getModel().getValueInRange(en.range);li.guessColorPresentation(Dn,di);var zi=function(){var hi,ki;li.presentation.textEdit?(hi=[li.presentation.textEdit],ki=new U.a(li.presentation.textEdit.range.startLineNumber,li.presentation.textEdit.range.startColumn,li.presentation.textEdit.range.endLineNumber,li.presentation.textEdit.range.endColumn),ki=ki.setEndPosition(ki.endLineNumber,ki.startColumn+li.presentation.textEdit.text.length)):(hi=[{identifier:null,range:qn,text:li.presentation.label,forceMoveMarkers:!1}],ki=qn.setEndPosition(qn.endLineNumber,qn.startColumn+li.presentation.label.length)),S._editor.pushUndoStop(),S._editor.executeEdits("colorpicker",hi),li.presentation.additionalTextEdits&&(hi=xs(li.presentation.additionalTextEdits),S._editor.executeEdits("colorpicker",hi),S.hide()),S._editor.pushUndoStop(),qn=ki},$i=function(hi){return g(ui,{range:qn,color:{red:hi.rgba.r/255,green:hi.rgba.g/255,blue:hi.rgba.b/255,alpha:hi.rgba.a}},en.provider,_.a.None).then(function(ki){li.colorPresentations=ki||[]})},Qi=li.onColorFlushed(function(Ji){$i(Ji).then(zi)}),Vi=li.onDidChangeColor($i);S._colorPicker=gr,S.showAt(qn.getStartPosition(),qn,S._shouldFocus),S.updateContents(Be),S._colorPicker.layout(),S.renderDisposable.value=Object(N.e)(Qi,Vi,gr,ut)})}else en instanceof Gr?(Nt.push(en),rt=!1):en.contents.filter(function(Li){return!Object(K.b)(Li)}).forEach(function(Li){var di=Ni("div.hover-row.markdown-hover"),zi=R.p(di,Ni("div.hover-contents")),$i=ut.add(new Pe.a(S._editor,S._modeService,S._openerService));ut.add($i.onDidRenderCodeBlock(function(){zi.className="hover-contents code-hover-contents",S.onContentsChange()}));var Qi=ut.add($i.render(Li));zi.appendChild(Qi.element),Be.appendChild(di),rt=!1})}),Nt.length){Nt.forEach(function(en){return Be.appendChild(S.renderMarkerHover(en))});var qt=Nt.length===1?Nt[0]:Nt.sort(function(en,dn){return ve.c.compare(en.marker.severity,dn.marker.severity)})[0];Be.appendChild(this.renderMarkerStatusbar(qt))}!xe&&!rt&&(this.showAt(new D.a(l.startLineNumber,C),$,this._shouldFocus),this.updateContents(Be)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,$?[{range:$,options:d._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},d.prototype.renderMarkerHover=function(l){var b=this,S=Ni("div.hover-row"),C=R.p(S,Ni("div.marker.hover-contents")),$=l.marker,Be=$.source,rt=$.message,xe=$.code,ut=$.relatedInformation;this._editor.applyFontInfo(C);var Nt=R.p(C,Ni("span"));if(Nt.style.whiteSpace="pre-wrap",Nt.innerText=rt,Be||xe){if(typeof xe=="string"){var qt=R.p(C,Ni("span"));qt.style.opacity="0.6",qt.style.paddingLeft="6px",qt.innerText=Be&&xe?Be+"("+xe+")":Be||"("+xe+")"}else if(xe){var en=Ni("span");if(Be){var dn=R.p(en,Ni("span"));dn.innerText=Be}this._codeLink=R.p(en,Ni("a.code-link")),this._codeLink.setAttribute("href",xe.link.toString()),this._codeLink.onclick=function(Li){b._openerService.open(xe.link),Li.preventDefault(),Li.stopPropagation()};var an=R.p(this._codeLink,Ni("span"));an.innerText=xe.value;var qt=R.p(C,en);qt.style.opacity="0.6",qt.style.paddingLeft="6px"}}if(Object(Ke.q)(ut))for(var Cn=function(Li,di,zi,$i){var Qi=R.p(C,Ni("div"));Qi.style.marginTop="8px";var Vi=R.p(Qi,Ni("a"));Vi.innerText=Object(Me.b)(di)+"("+zi+", "+$i+"): ",Vi.style.cursor="pointer",Vi.onclick=function(hi){hi.stopPropagation(),hi.preventDefault(),b._openerService&&b._openerService.open(di.with({fragment:zi+","+$i}),{fromUserGesture:!0}).catch(H.e)};var Ji=R.p(Qi,Ni("span"));Ji.innerText=Li,In._editor.applyFontInfo(Ji)},In=this,Nn=0,ti=ut;Nn<ti.length;Nn++){var Dn=ti[Nn],ui=Dn.message,qn=Dn.resource,Ri=Dn.startLineNumber,li=Dn.startColumn;Cn(ui,qn,Ri,li)}return S},d.prototype.renderMarkerStatusbar=function(l){var b=this,S=Ni("div.hover-row.status-bar"),C=new N.b,$=R.p(S,Ni("div.actions"));(l.marker.severity===ve.c.Error||l.marker.severity===ve.c.Warning||l.marker.severity===ve.c.Info)&&C.add(this.renderAction($,{label:re.a("peek problem","Peek Problem"),commandId:xt.ID,run:function(){b.hide(),lt.get(b._editor).show(l.marker),b._editor.focus()}}));var Be=R.p($,Ni("div"));Be.style.opacity="0",Be.style.transition="opacity 0.2s",setTimeout(function(){return Be.style.opacity="1"},200),Be.textContent=re.a("checkingForQuickFixes","Checking for quick fixes..."),C.add(Object(N.h)(function(){return Be.remove()}));var rt=this.getCodeActions(l.marker);return C.add(Object(N.h)(function(){return rt.cancel()})),rt.then(function(xe){if(Be.style.transition="",Be.style.opacity="1",!xe.validActions.length){xe.dispose(),Be.textContent=re.a("noQuickFixes","No quick fixes available");return}Be.remove();var ut=!1;C.add(Object(N.h)(function(){ut||xe.dispose()})),C.add(b.renderAction($,{label:re.a("quick fixes","Quick Fix..."),commandId:ls.Id,run:function(qt){ut=!0;var en=ss.get(b._editor),dn=R.B(qt);en.showCodeActions(Uo,xe,{x:dn.left+6,y:dn.top+dn.height+6})}}))}),this.renderDisposable.value=C,S},d.prototype.getCodeActions=function(l){var b=this;return Object(m.f)(function(S){return et(b._editor.getModel(),new U.a(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn),Uo,S)})},d.prototype.renderAction=function(l,b){var S=R.p(l,Ni("div.action-container")),C=R.p(S,Ni("a.action"));b.iconClass&&R.p(C,Ni("span.icon."+b.iconClass));var $=R.p(C,Ni("span"));$.textContent=b.label;var Be=this._keybindingService.lookupKeybinding(b.commandId);return Be&&($.title=b.label+" ("+Be.getLabel()+")"),R.i(S,R.c.CLICK,function(rt){rt.stopPropagation(),rt.preventDefault(),b.run(S)})},d.ID="editor.contrib.modesContentHoverWidget",d._DECORATION_OPTIONS=A.a.register({className:"hoverHighlight"}),d}(F);function cs(y,d){if(!y&&d||y&&!d||y.length!==d.length)return!1;for(var l=0;l<y.length;l++){var b=y[l],S=d[l];if(b instanceof Gr&&S instanceof Gr)return ve.a.makeKey(b.marker)===ve.a.makeKey(S.marker);if(b instanceof Kr||S instanceof Kr)return!1;if(b instanceof Gr||S instanceof Gr)return!1;if(!Object(K.c)(b.contents,S.contents))return!1}return!0}Object(fe.e)(function(y,d){var l=y.getColor(se.cc);l&&d.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+l+"; }")});var to=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),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(xe){return{value:xe}},l=this._editor.getLineDecorations(this._lineNumber),b=[];if(!l)return b;for(var S=0,C=l;S<C.length;S++){var $=C[S];if(!$.options.glyphMarginClassName)continue;var Be=$.options.glyphMarginHoverMessage;if(!Be||Object(K.b)(Be))continue;b.push.apply(b,Object(Ke.b)(Be).map(d))}return b},y.prototype.onResult=function(d,l){this._result=this._result.concat(d)},y.prototype.getResult=function(){return this._result},y.prototype.getResultWithLoadingMessage=function(){return this.getResult()},y}(),vo=function(y){to(d,y);function d(l,b,S){S===void 0&&(S=Ie.b);var C=y.call(this,d.ID,l)||this;return C._renderDisposeables=C._register(new N.b),C._messages=[],C._lastLineNumber=-1,C._markdownRenderer=C._register(new Pe.a(C._editor,b,S)),C._computer=new qs(C._editor),C._hoverOperation=new Ye(C._computer,function($){return C._withResult($)},void 0,function($){return C._withResult($)},300),C}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(l){if(this._lastLineNumber===l)return;this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=l,this._computer.setLineNumber(l),this._hoverOperation.start(0)},d.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),y.prototype.hide.call(this)},d.prototype._withResult=function(l){this._messages=l,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},d.prototype._renderMessages=function(l,b){this._renderDisposeables.clear();for(var S=document.createDocumentFragment(),C=0,$=b;C<$.length;C++){var Be=$[C],rt=this._markdownRenderer.render(Be.value);this._renderDisposeables.add(rt),S.appendChild(Object(R.a)("div.hover-row",void 0,rt.element))}this.updateContents(S),this.showAt(l)},d.ID="editor.contrib.modesGlyphHoverWidget",d}(ee),hs=o("79sc"),ea=o("62hx"),As=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},Ns=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}};function Yr(y,d,l,b){var S=l.ordered(y),C=S.map(function($){return Promise.resolve(b($,y,d)).then(void 0,function(Be){Object(H.f)(Be);return})});return Promise.all(C).then(Ke.m).then(Ke.d)}function Vo(y,d,l){return Yr(y,d,te.f,function(b,S,C){return b.provideDefinition(S,C,l)})}function fs(y,d,l){return Yr(y,d,te.e,function(b,S,C){return b.provideDeclaration(S,C,l)})}function ps(y,d,l){return Yr(y,d,te.p,function(b,S,C){return b.provideImplementation(S,C,l)})}function Ho(y,d,l){return Yr(y,d,te.z,function(b,S,C){return b.provideTypeDefinition(S,C,l)})}function yo(y,d,l,b){var S=this;return Yr(y,d,te.t,function(C,$,Be){return As(S,void 0,void 0,function(){var rt,xe;return Ns(this,function(ut){switch(ut.label){case 0:return[4,C.provideReferences($,Be,{includeDeclaration:!0},b)];case 1:return rt=ut.sent(),!l||!rt||rt.length!==2?[2,rt]:[4,C.provideReferences($,Be,{includeDeclaration:!1},b)];case 2:return xe=ut.sent(),xe&&xe.length===1?[2,xe]:[2,rt]}})})})}Object(k.k)("_executeDefinitionProvider",function(y,d){return Vo(y,d,_.a.None)}),Object(k.k)("_executeDeclarationProvider",function(y,d){return fs(y,d,_.a.None)}),Object(k.k)("_executeImplementationProvider",function(y,d){return ps(y,d,_.a.None)}),Object(k.k)("_executeTypeDefinitionProvider",function(y,d){return Ho(y,d,_.a.None)}),Object(k.k)("_executeReferenceProvider",function(y,d){return yo(y,d,!1,_.a.None)});var Oo=o("t49l"),Mo=o("MNsG"),zo=o("sFUC"),gs=o("A+jI"),jr=function(){function y(d,l,b,S){this.isProviderFirst=d,this.parent=l,this._range=b,this._rangeCallback=S,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(l){this._range=l,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}(),Rs=function(){function y(d){this._modelReference=d}return y.prototype.dispose=function(){this._modelReference.dispose()},y.prototype.preview=function(d,l){l===void 0&&(l=8);var b=this._modelReference.object.textEditorModel;if(!b)return;var S=d.startLineNumber,C=d.startColumn,$=d.endLineNumber,Be=d.endColumn,rt=b.getWordUntilPosition({lineNumber:S,column:C-l}),xe=new U.a(S,rt.startColumn,S,C),ut=new U.a($,Be,$,1073741824),Nt=b.getValueInRange(xe).replace(/^\s+/,""),qt=b.getValueInRange(d),en=b.getValueInRange(ut).replace(/\s+$/,"");return{value:Nt+qt+en,highlight:{start:Nt.length,end:Nt.length+qt.length}}},y}(),cr=function(){function y(d,l){this.parent=d,this.uri=l,this.children=[]}return y.prototype.dispose=function(){Object(N.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 l=this.children.length;return l===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}",l,Object(Me.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),y.prototype.resolve=function(d){var l=this;return this._resolved?Promise.resolve(this):Promise.resolve(d.createModelReference(this.uri).then(function(b){var S=b.object;if(!S)throw b.dispose(),new Error;return l._preview=new Rs(b),l._resolved=!0,l},function(b){return l.children.length=0,l._resolved=!0,l._loadFailure=b,l}))},y}(),ri=function(){function y(d,l){var b=this;this._disposables=new N.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Z.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=d,this._title=l;var S=d[0];d.sort(y._compareReferences);for(var C,$=0,Be=d;$<Be.length;$++){var rt=Be[$];if((!C||C.uri.toString()!==rt.uri.toString())&&(C=new cr(this,rt.uri),this.groups.push(C)),C.children.length===0||!U.a.equalsRange(rt.range,C.children[C.children.length-1].range)){var xe=new jr(S===rt,C,rt.targetSelectionRange||rt.range,function(ut){return b._onDidChangeReferenceRange.fire(ut)});this.references.push(xe),C.children.push(xe)}}}return y.prototype.dispose=function(){Object(N.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,l){var b=d.parent,S=b.children.indexOf(d),C=b.children.length,$=b.parent.groups.length;return $===1||l&&S+1<C||!l&&S>0?(l?S=(S+1)%C:S=(S+C-1)%C,b.children[S]):(S=b.parent.groups.indexOf(b),l?(S=(S+1)%$,b.parent.groups[S].children[0]):(S=(S+$-1)%$,b.parent.groups[S].children[b.parent.groups[S].children.length-1]))},y.prototype.nearestReference=function(d,l){var b=this.references.map(function(S,C){return{idx:C,prefixLen:on.c(S.uri.toString(),d.toString()),offsetDist:Math.abs(S.range.startLineNumber-l.lineNumber)*100+Math.abs(S.range.startColumn-l.column)}}).sort(function(S,C){return S.prefixLen>C.prefixLen?-1:S.prefixLen<C.prefixLen?1:S.offsetDist<C.offsetDist?-1:S.offsetDist>C.offsetDist?1:0})[0];return b?this.references[b.idx]:void 0},y.prototype.referenceAt=function(d,l){for(var b=0,S=this.references;b<S.length;b++){var C=S[b];if(C.uri.toString()===d.toString()&&U.a.containsPosition(C.range,l))return C}return},y.prototype.firstReference=function(){for(var d=0,l=this.references;d<l.length;d++){var b=l[d];if(b.isProviderFirst)return b}return this.references[0]},y._compareReferences=function(d,l){return on.e(d.uri.toString(),l.uri.toString())||U.a.compareRangesUsingStarts(d.range,l.range)},y}(),ta=o("KaET"),Is=o("tYmi"),Ps=o("xONI"),ms=o("VPJY"),To={badgeBackground:x.a.fromHex("#4D4D4D"),badgeForeground:x.a.fromHex("#FFFFFF")},ks=function(){function y(d,l){this.count=0,this.options=l||Object.create(null),Object(Gt.g)(this.options,To,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(R.p)(d,Object(R.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():"",l=this.badgeForeground?this.badgeForeground.toString():"",b=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=d,this.element.style.color=l,this.element.style.borderWidth=b?"1px":"",this.element.style.borderStyle=b?"solid":"",this.element.style.borderColor=b}},y}(),no=o("R8sh"),Fs=o("ptcw"),si=o("fpMC"),js=o("7lZ/"),na=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Mr=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},io=function(y,d){return function(l,b){d(l,b,y)}},ro=function(){function y(d){this._resolverService=d}return y.prototype.hasChildren=function(d){return d instanceof ri?!0: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(l){return l.children});throw new Error("bad tree")},y=Mr([io(0,Oo.a)],y),y}(),nr=function(){function y(){}return y.prototype.getHeight=function(){return 23},y.prototype.getTemplateId=function(d){return d instanceof cr?xo.id:oo.id},y}(),br=function(){function y(d){this._keybindingService=d}return y.prototype.getKeyboardNavigationLabel=function(d){if(d instanceof jr){var l=d.parent.preview,b=l&&l.preview(d.range);if(b)return b.value}return Object(Me.b)(d.uri)},y=Mr([io(0,O.a)],y),y}(),wi=function(){function y(){}return y.prototype.getId=function(d){return d instanceof jr?d.id:d.uri},y}(),Fi=function(y){na(d,y);function d(l,b,S){var C=y.call(this)||this;C._uriLabel=b;var $=document.createElement("div");return R.e($,"reference-file"),C.file=C._register(new Ps.a($,{supportHighlights:!0})),C.badge=new ks(R.p($,R.a(".count"))),C._register(Object(Fs.a)(C.badge,S)),l.appendChild($),C}return d.prototype.set=function(l,b){var S=Object(Me.d)(l.uri);this.file.setLabel(Object(_t.a)(l.uri),this._uriLabel.getUriLabel(S,{relative:!0}),{title:this._uriLabel.getUriLabel(l.uri),matches:b});var C=l.children.length;this.badge.setCount(C),l.failure?this.badge.setTitleFormat(Object(re.a)("referencesFailre","Failed to resolve file.")):C>1?this.badge.setTitleFormat(Object(re.a)("referencesCount","{0} references",C)):this.badge.setTitleFormat(Object(re.a)("referenceCount","{0} reference",C))},d=Mr([io(1,no.a),io(2,fe.c)],d),d}(N.a),xo=function(){function y(d){this._instantiationService=d,this.templateId=y.id}return y.prototype.renderTemplate=function(d){return this._instantiationService.createInstance(Fi,d)},y.prototype.renderElement=function(d,l,b){b.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}(),Ao=function(){function y(d){this.label=new js.a(d,!1)}return y.prototype.set=function(d,l){var b=d.parent.preview,S=b&&b.preview(d.range);if(!S)this.label.set(Object(Me.b)(d.uri)+":"+(d.range.startLineNumber+1)+":"+(d.range.startColumn+1));else{var C=S.value,$=S.highlight;l&&!si.a.isDefault(l)?(R.X(this.label.element,"referenceMatch",!1),this.label.set(C,Object(si.c)(l))):(R.X(this.label.element,"referenceMatch",!0),this.label.set(C,[$]))}},y}(),oo=function(){function y(){this.templateId=y.id}return y.prototype.renderTemplate=function(d){return new Ao(d)},y.prototype.renderElement=function(d,l,b){b.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}(),No=o("k9mg"),so=o("51B1"),Cr=o("746U"),wr=o("Sdnv"),vs=o("4y0V"),hr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),ao=function(){for(var y=0,d=0,l=arguments.length;d<l;d++)y+=arguments[d].length;for(var b=Array(y),S=0,d=0;d<l;d++)for(var C=arguments[d],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},Ws={separatorBorder:x.a.transparent},Wr=function(){function y(d,l,b,S){this.container=d,this.view=l,this.disposable=S,this._cachedVisibleSize=void 0,typeof b=="number"?(this._size=b,this._cachedVisibleSize=void 0,R.e(d,"visible")):(this._size=0,this._cachedVisibleSize=b.cachedVisibleSize)}return Object.defineProperty(y.prototype,"size",{get:function(){return this._size},set:function(l){this._size=l},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,l){if(d===this.visible)return;d?(this.size=Object(wr.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof l=="number"?l:this.size,this.size=0),R.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(l){this.container.style.pointerEvents=l?null:"none"},enumerable:!0,configurable:!0}),y.prototype.layout=function(d,l){this.layoutContainer(d),this.view.layout(this.size,d,l)},y.prototype.dispose=function(){return this.disposable.dispose(),this.view},y}(),Er=function(y){hr(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype.layoutContainer=function(l){this.container.style.top=l+"px",this.container.style.height=this.size+"px"},d}(Wr),Bs=function(y){hr(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype.layoutContainer=function(l){this.container.style.left=l+"px",this.container.style.width=this.size+"px"},d}(Wr),fr;(function(y){y[y.Idle=0]="Idle",y[y.Busy=1]="Busy"})(fr||(fr={}));var lo;(function(y){y.Distribute={type:"distribute"};function d(b){return{type:"split",index:b}}y.Split=d;function l(b){return{type:"invisible",cachedVisibleSize:b}}y.Invisible=l})(lo||(lo={}));var Us=function(y){hr(d,y);function d(l,b){b===void 0&&(b={});var S=y.call(this)||this;return S.size=0,S.contentSize=0,S.proportions=void 0,S.viewItems=[],S.sashItems=[],S.state=fr.Idle,S._onDidSashChange=S._register(new Z.a),S.onDidSashChange=S._onDidSashChange.event,S._onDidSashReset=S._register(new Z.a),S._startSnappingEnabled=!0,S._endSnappingEnabled=!0,S.orientation=Cr.k(b.orientation)?0:b.orientation,S.inverseAltBehavior=!!b.inverseAltBehavior,S.proportionalLayout=Cr.k(b.proportionalLayout)?!0:!!b.proportionalLayout,S.el=document.createElement("div"),R.e(S.el,"monaco-split-view2"),R.e(S.el,S.orientation===0?"vertical":"horizontal"),l.appendChild(S.el),S.sashContainer=R.p(S.el,R.a(".sash-container")),S.viewContainer=R.p(S.el,R.a(".split-view-container")),S.style(b.styles||Ws),b.descriptor&&(S.size=b.descriptor.size,b.descriptor.views.forEach(function(C,$){var Be=Cr.k(C.visible)||C.visible?C.size:{type:"invisible",cachedVisibleSize:C.size},rt=C.view;S.doAddView(rt,Be,$,!0)}),S.contentSize=S.viewItems.reduce(function(C,$){return C+$.size},0),S.saveProportions()),S}return Object.defineProperty(d.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(b){for(var S=0,C=this.sashItems;S<C.length;S++){var $=C[S];$.sash.orthogonalStartSash=b}this._orthogonalStartSash=b},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(b){for(var S=0,C=this.sashItems;S<C.length;S++){var $=C[S];$.sash.orthogonalEndSash=b}this._orthogonalEndSash=b},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(b){if(this._startSnappingEnabled===b)return;this._startSnappingEnabled=b,this.updateSashEnablement()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(b){if(this._endSnappingEnabled===b)return;this._endSnappingEnabled=b,this.updateSashEnablement()},enumerable:!0,configurable:!0}),d.prototype.style=function(l){l.separatorBorder.isTransparent()?(R.O(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(R.e(this.el,"separator-border"),this.el.style.setProperty("--separator-border",l.separatorBorder.toString()))},d.prototype.addView=function(l,b,S){S===void 0&&(S=this.viewItems.length),this.doAddView(l,b,S,!1)},d.prototype.layout=function(l,b){var S=this,C=Math.max(this.size,this.contentSize);if(this.size=l,this.layoutContext=b,this.proportions)for(var xe=0;xe<this.viewItems.length;xe++){var ut=this.viewItems[xe];ut.size=Object(wr.a)(Math.round(this.proportions[xe]*l),ut.minimumSize,ut.maximumSize)}else{var $=Object(Ke.u)(this.viewItems.length),Be=$.filter(function(Nt){return S.viewItems[Nt].priority===1}),rt=$.filter(function(Nt){return S.viewItems[Nt].priority===2});this.resize(this.viewItems.length-1,l-C,void 0,Be,rt)}this.distributeEmptySpace(),this.layoutViews()},d.prototype.saveProportions=function(){var l=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(function(b){return b.size/l.contentSize}))},d.prototype.onSashStart=function(l){for(var b=this,S=l.sash,C=l.start,$=l.alt,Be=0,rt=this.viewItems;Be<rt.length;Be++){var xe=rt[Be];xe.enabled=!1}var ut=Object(Ke.k)(this.sashItems,function(en){return en.sash===S}),Nt=Object(N.e)(Object(vs.a)(document.body,"keydown")(function(en){return qt(b.sashDragState.current,en.altKey)}),Object(vs.a)(document.body,"keyup")(function(){return qt(b.sashDragState.current,!1)})),qt=function(dn,an){var Cn=b.viewItems.map(function(ki){return ki.size}),In=Number.NEGATIVE_INFINITY,Nn=Number.POSITIVE_INFINITY;if(b.inverseAltBehavior&&(an=!an),an){var ti=ut===b.sashItems.length-1;if(ti){var Dn=b.viewItems[ut];In=(Dn.minimumSize-Dn.size)/2,Nn=(Dn.maximumSize-Dn.size)/2}else{var Dn=b.viewItems[ut+1];In=(Dn.size-Dn.maximumSize)/2,Nn=(Dn.size-Dn.minimumSize)/2}}var ui,qn;if(!an){var Ri=Object(Ke.u)(ut,-1),li=Object(Ke.u)(ut+1,b.viewItems.length),gr=Ri.reduce(function(ki,Ki){return ki+(b.viewItems[Ki].minimumSize-Cn[Ki])},0),Li=Ri.reduce(function(ki,Ki){return ki+(b.viewItems[Ki].viewMaximumSize-Cn[Ki])},0),di=li.length===0?Number.POSITIVE_INFINITY:li.reduce(function(ki,Ki){return ki+(Cn[Ki]-b.viewItems[Ki].minimumSize)},0),zi=li.length===0?Number.NEGATIVE_INFINITY:li.reduce(function(ki,Ki){return ki+(Cn[Ki]-b.viewItems[Ki].viewMaximumSize)},0),$i=Math.max(gr,zi),Qi=Math.min(di,Li),Vi=b.findFirstSnapIndex(Ri),Ji=b.findFirstSnapIndex(li);if(typeof Vi=="number"){var Dn=b.viewItems[Vi],hi=Math.floor(Dn.viewMinimumSize/2);ui={index:Vi,limitDelta:Dn.visible?$i-hi:$i+hi,size:Dn.size}}if(typeof Ji=="number"){var Dn=b.viewItems[Ji],hi=Math.floor(Dn.viewMinimumSize/2);qn={index:Ji,limitDelta:Dn.visible?Qi+hi:Qi-hi,size:Dn.size}}}b.sashDragState={start:dn,current:dn,index:ut,sizes:Cn,minDelta:In,maxDelta:Nn,alt:an,snapBefore:ui,snapAfter:qn,disposable:Nt}};qt(C,$)},d.prototype.onSashChange=function(l){var b=l.current,S=this.sashDragState,C=S.index,$=S.start,Be=S.sizes,rt=S.alt,xe=S.minDelta,ut=S.maxDelta,Nt=S.snapBefore,qt=S.snapAfter;this.sashDragState.current=b;var en=b-$,dn=this.resize(C,en,Be,void 0,void 0,xe,ut,Nt,qt);if(rt){var an=C===this.sashItems.length-1,Cn=this.viewItems.map(function(qn){return qn.size}),In=an?C:C+1,Nn=this.viewItems[In],ti=Nn.size-Nn.maximumSize,Dn=Nn.size-Nn.minimumSize,ui=an?C-1:C+1;this.resize(ui,-dn,Cn,void 0,void 0,ti,Dn)}this.distributeEmptySpace(),this.layoutViews()},d.prototype.onSashEnd=function(l){this._onDidSashChange.fire(l),this.sashDragState.disposable.dispose(),this.saveProportions();for(var b=0,S=this.viewItems;b<S.length;b++){var C=S[b];C.enabled=!0}},d.prototype.onViewChange=function(l,b){var S=this.viewItems.indexOf(l);if(S<0||S>=this.viewItems.length)return;b=typeof b=="number"?b:l.size,b=Object(wr.a)(b,l.minimumSize,l.maximumSize),this.inverseAltBehavior&&S>0?(this.resize(S-1,Math.floor((l.size-b)/2)),this.distributeEmptySpace(),this.layoutViews()):(l.size=b,this.relayout([S],void 0))},d.prototype.resizeView=function(l,b){var S=this;if(this.state!==fr.Idle)throw new Error("Cant modify splitview");if(this.state=fr.Busy,l<0||l>=this.viewItems.length)return;var C=Object(Ke.u)(this.viewItems.length).filter(function(xe){return xe!==l}),$=ao(C.filter(function(xe){return S.viewItems[xe].priority===1}),[l]),Be=C.filter(function(xe){return S.viewItems[xe].priority===2}),rt=this.viewItems[l];b=Math.round(b),b=Object(wr.a)(b,rt.minimumSize,Math.min(rt.maximumSize,this.size)),rt.size=b,this.relayout($,Be),this.state=fr.Idle},d.prototype.distributeViewSizes=function(){for(var l=this,b=[],S=0,C=0,$=this.viewItems;C<$.length;C++){var Be=$[C];Be.maximumSize-Be.minimumSize>0&&(b.push(Be),S+=Be.size)}for(var rt=Math.floor(S/b.length),xe=0,ut=b;xe<ut.length;xe++){var Be=ut[xe];Be.size=Object(wr.a)(rt,Be.minimumSize,Be.maximumSize)}var Nt=Object(Ke.u)(this.viewItems.length),qt=Nt.filter(function(dn){return l.viewItems[dn].priority===1}),en=Nt.filter(function(dn){return l.viewItems[dn].priority===2});this.relayout(qt,en)},d.prototype.getViewSize=function(l){return l<0||l>=this.viewItems.length?-1:this.viewItems[l].size},d.prototype.doAddView=function(l,b,S,C){var $=this;if(S===void 0&&(S=this.viewItems.length),this.state!==fr.Idle)throw new Error("Cant modify splitview");this.state=fr.Busy;var Be=R.a(".split-view-view");S===this.viewItems.length?this.viewContainer.appendChild(Be):this.viewContainer.insertBefore(Be,this.viewContainer.children.item(S));var rt=l.onDidChange(function(di){return $.onViewChange(qt,di)}),xe=Object(N.h)(function(){return $.viewContainer.removeChild(Be)}),ut=Object(N.e)(rt,xe),Nt;typeof b=="number"?Nt=b:b.type==="split"?Nt=this.getViewSize(b.index)/2:b.type==="invisible"?Nt={cachedVisibleSize:b.cachedVisibleSize}:Nt=l.minimumSize;var qt=this.orientation===0?new Er(Be,l,Nt,ut):new Bs(Be,l,Nt,ut);if(this.viewItems.splice(S,0,qt),this.viewItems.length>1){var en=this.orientation===0?1:0,dn=this.orientation===0?{getHorizontalSashTop:function(zi){return $.getSashPosition(zi)}}:{getVerticalSashLeft:function(zi){return $.getSashPosition(zi)}},an=new nn.a(this.sashContainer,dn,{orientation:en,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Cn=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}},In=Z.b.map(an.onDidStart,Cn),Nn=In(this.onSashStart,this),ti=Z.b.map(an.onDidChange,Cn),Dn=ti(this.onSashChange,this),ui=Z.b.map(an.onDidEnd,function(){return Object(Ke.k)($.sashItems,function(di){return di.sash===an})}),qn=ui(this.onSashEnd,this),Ri=an.onDidReset(function(){var di=Object(Ke.k)($.sashItems,function(Ji){return Ji.sash===an}),zi=Object(Ke.u)(di,-1),$i=Object(Ke.u)(di+1,$.viewItems.length),Qi=$.findFirstSnapIndex(zi),Vi=$.findFirstSnapIndex($i);if(typeof Qi=="number"&&!$.viewItems[Qi].visible)return;if(typeof Vi=="number"&&!$.viewItems[Vi].visible)return;$._onDidSashReset.fire(di)}),li=Object(N.e)(Nn,Dn,qn,Ri,an),gr={sash:an,disposable:li};this.sashItems.splice(S-1,0,gr)}Be.appendChild(l.element);var Li;typeof b!="number"&&b.type==="split"&&(Li=[b.index]),C||this.relayout([S],Li),this.state=fr.Idle,!C&&typeof b!="number"&&b.type==="distribute"&&this.distributeViewSizes()},d.prototype.relayout=function(l,b){var S=this.viewItems.reduce(function(C,$){return C+$.size},0);this.resize(this.viewItems.length-1,this.size-S,void 0,l,b),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},d.prototype.resize=function(l,b,S,C,$,Be,rt,xe,ut){var Nt=this;if(S===void 0&&(S=this.viewItems.map(function(ir){return ir.size})),Be===void 0&&(Be=Number.NEGATIVE_INFINITY),rt===void 0&&(rt=Number.POSITIVE_INFINITY),l<0||l>=this.viewItems.length)return 0;var qt=Object(Ke.u)(l,-1),en=Object(Ke.u)(l+1,this.viewItems.length);if($)for(var dn=0,an=$;dn<an.length;dn++){var Cn=an[dn];Object(Ke.t)(qt,Cn),Object(Ke.t)(en,Cn)}if(C)for(var In=0,Nn=C;In<Nn.length;In++){var ti=Nn[In];Object(Ke.s)(qt,ti),Object(Ke.s)(en,ti)}var Dn=qt.map(function(ir){return Nt.viewItems[ir]}),ui=qt.map(function(ir){return S[ir]}),qn=en.map(function(ir){return Nt.viewItems[ir]}),Ri=en.map(function(ir){return S[ir]}),li=qt.reduce(function(ir,Nr){return ir+(Nt.viewItems[Nr].minimumSize-S[Nr])},0),gr=qt.reduce(function(ir,Nr){return ir+(Nt.viewItems[Nr].maximumSize-S[Nr])},0),Li=en.length===0?Number.POSITIVE_INFINITY:en.reduce(function(ir,Nr){return ir+(S[Nr]-Nt.viewItems[Nr].minimumSize)},0),di=en.length===0?Number.NEGATIVE_INFINITY:en.reduce(function(ir,Nr){return ir+(S[Nr]-Nt.viewItems[Nr].maximumSize)},0),zi=Math.max(li,di,Be),$i=Math.min(Li,gr,rt),Qi=!1;if(xe){var Vi=this.viewItems[xe.index],Ji=b>=xe.limitDelta;Qi=Ji!==Vi.visible,Vi.setVisible(Ji,xe.size)}if(!Qi&&ut){var Vi=this.viewItems[ut.index],Ji=b<ut.limitDelta;Qi=Ji!==Vi.visible,Vi.setVisible(Ji,ut.size)}if(Qi)return this.resize(l,b,S,C,$,Be,rt);b=Object(wr.a)(b,zi,$i);for(var hi=0,ki=b;hi<Dn.length;hi++){var Ki=Dn[hi],es=Object(wr.a)(ui[hi]+ki,Ki.minimumSize,Ki.maximumSize),ws=es-ui[hi];ki-=ws,Ki.size=es}for(var hi=0,ia=b;hi<qn.length;hi++){var Ki=qn[hi],es=Object(wr.a)(Ri[hi]-ia,Ki.minimumSize,Ki.maximumSize),ws=es-Ri[hi];ia+=ws,Ki.size=es}return b},d.prototype.distributeEmptySpace=function(l){for(var b=this,S=this.viewItems.reduce(function(Nn,ti){return Nn+ti.size},0),C=this.size-S,$=Object(Ke.u)(this.viewItems.length-1,-1),Be=$.filter(function(Nn){return b.viewItems[Nn].priority===1}),rt=$.filter(function(Nn){return b.viewItems[Nn].priority===2}),xe=0,ut=rt;xe<ut.length;xe++){var Nt=ut[xe];Object(Ke.t)($,Nt)}for(var qt=0,en=Be;qt<en.length;qt++){var Nt=en[qt];Object(Ke.s)($,Nt)}typeof l=="number"&&Object(Ke.s)($,l);for(var dn=0;C!==0&&dn<$.length;dn++){var an=this.viewItems[$[dn]],Cn=Object(wr.a)(an.size+C,an.minimumSize,an.maximumSize),In=Cn-an.size;C-=In,an.size=Cn}},d.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function($,Be){return $+Be.size},0);for(var l=0,b=0,S=this.viewItems;b<S.length;b++){var C=S[b];C.layout(l,this.layoutContext),l+=C.size}this.sashItems.forEach(function($){return $.sash.layout()}),this.updateSashEnablement()},d.prototype.updateSashEnablement=function(){var l=!1,b=this.viewItems.map(function(Dn){return l=Dn.size-Dn.minimumSize>0||l});l=!1;var S=this.viewItems.map(function(Dn){return l=Dn.maximumSize-Dn.size>0||l}),C=ao(this.viewItems).reverse();l=!1;var $=C.map(function(Dn){return l=Dn.size-Dn.minimumSize>0||l}).reverse();l=!1;for(var Be=C.map(function(Dn){return l=Dn.maximumSize-Dn.size>0||l}).reverse(),rt=0,xe=0;xe<this.sashItems.length;xe++){var ut=this.sashItems[xe].sash,Nt=this.viewItems[xe];rt+=Nt.size;var qt=!(b[xe]&&Be[xe+1]),en=!(S[xe]&&$[xe+1]);if(qt&&en){var dn=Object(Ke.u)(xe,-1),an=Object(Ke.u)(xe+1,this.viewItems.length),Cn=this.findFirstSnapIndex(dn),In=this.findFirstSnapIndex(an),Nn=typeof Cn=="number"&&!this.viewItems[Cn].visible,ti=typeof In=="number"&&!this.viewItems[In].visible;Nn&&$[xe]&&(rt>0||this.startSnappingEnabled)?ut.state=1:ti&&b[xe]&&(rt<this.contentSize||this.endSnappingEnabled)?ut.state=2:ut.state=0}else qt&&!en?ut.state=1:!qt&&en?ut.state=2:ut.state=3}},d.prototype.getSashPosition=function(l){for(var b=0,S=0;S<this.sashItems.length;S++)if(b+=this.viewItems[S].size,this.sashItems[S].sash===l)return Math.min(b,this.contentSize-2);return 0},d.prototype.findFirstSnapIndex=function(l){for(var b=0,S=l;b<S.length;b++){var C=S[b],$=this.viewItems[C];if(!$.visible)continue;if($.snap)return C}for(var Be=0,rt=l;Be<rt.length;Be++){var C=rt[Be],$=this.viewItems[C];if($.visible&&$.maximumSize-$.minimumSize>0)return;if(!$.visible&&$.snap)return C}return},d.prototype.dispose=function(){y.prototype.dispose.call(this),this.viewItems.forEach(function(l){return l.dispose()}),this.viewItems=[],this.sashItems.forEach(function(l){return l.disposable.dispose()}),this.sashItems=[]},d}(N.a),bo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Vs=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},Lr=function(y,d){return function(l,b){d(l,b,y)}},Hs=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},Br=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},ys=function(){function y(d,l){var b=this;this._editor=d,this._model=l,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new N.b,this._callOnModelChange=new N.b,this._callOnDispose.add(this._editor.onDidChangeModel(function(){return b._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 l=0,b=this._model.groups;l<b.length;l++){var S=b[l];if(Object(Me.e)(S.uri,d.uri)){this._addDecorations(S);return}}},y.prototype._addDecorations=function(d){var l=this;if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(function(xe){return l._onDecorationChanged()}));for(var b=[],S=[],C=0,$=d.children.length;C<$;C++){var Be=d.children[C];if(this._decorationIgnoreSet.has(Be.id))continue;b.push({range:Be.range,options:y.DecorationOptions}),S.push(C)}for(var rt=this._editor.deltaDecorations([],b),C=0;C<rt.length;C++)this._decorations.set(rt[C],d.children[S[C]])},y.prototype._onDecorationChanged=function(){var d=this,l=[],b=this._editor.getModel();if(!b)return;this._decorations.forEach(function($,Be){var rt=b.getDecorationRange(Be);if(!rt)return;var xe=!1;if(U.a.equalsRange(rt,$.range))return;if(U.a.spansMultipleLines(rt))xe=!0;else{var ut=$.range.endColumn-$.range.startColumn,Nt=rt.endColumn-rt.startColumn;ut!==Nt&&(xe=!0)}xe?(d._decorationIgnoreSet.add($.id),l.push(Be)):$.range=rt});for(var S=0,C=l.length;S<C;S++)this._decorations.delete(l[S]);this._editor.deltaDecorations(l,[])},y.prototype.removeDecorations=function(){var d=[];this._decorations.forEach(function(l,b){d.push(b)}),this._editor.deltaDecorations(d,[]),this._decorations.clear()},y.DecorationOptions=A.a.register({stickiness:1,className:"reference-decoration"}),y}(),bs=function(){function y(){this.ratio=.7,this.heightInLines=18}return y.fromJSON=function(d){var l,b;try{var S=JSON.parse(d);l=S.ratio,b=S.heightInLines}catch(C){}return{ratio:l||.7,heightInLines:b||18}},y}(),Go=function(y){bo(d,y);function d(l,b,S,C,$,Be,rt,xe){var ut=y.call(this,l,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return ut._defaultTreeKeyboardSupport=b,ut.layoutData=S,ut._textModelResolverService=$,ut._instantiationService=Be,ut._peekViewService=rt,ut._uriLabel=xe,ut._disposeOnNewModel=new N.b,ut._callOnDispose=new N.b,ut._onDidSelectReference=new Z.a,ut.onDidSelectReference=ut._onDidSelectReference.event,ut._dim={height:0,width:0},ut._applyTheme(C.getTheme()),ut._callOnDispose.add(C.onThemeChange(ut._applyTheme.bind(ut))),ut._peekViewService.addExclusiveWidget(l,ut),ut.create(),ut}return d.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(N.f)(this._preview),Object(N.f)(this._previewNotAvailableMessage),Object(N.f)(this._tree),Object(N.f)(this._previewModelReference),this._splitView.dispose(),y.prototype.dispose.call(this)},d.prototype._applyTheme=function(l){var b=l.getColor(oi)||x.a.transparent;this.style({arrowColor:b,frameColor:b,headerBackgroundColor:l.getColor(Rn)||x.a.transparent,primaryHeadingColor:l.getColor(Bn),secondaryHeadingColor:l.getColor(kn)})},d.prototype.show=function(l){this.editor.revealRangeInCenterIfOutsideViewport(l,0),y.prototype.show.call(this,l,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(l){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:l.ctrlKey||l.metaKey||l.altKey?"side":"open",source:"title"})},d.prototype._fillBody=function(l){var b=this;this.setCssClass("reference-zone-widget"),this._messageContainer=R.p(l,R.a("div.messages")),R.I(this._messageContainer),this._splitView=new Us(l,{orientation:1}),this._previewContainer=R.p(l,R.a("div.preview.inline"));var S={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(Vt,this._previewContainer,S,this.editor),R.I(this._previewContainer),this._previewNotAvailableMessage=A.b.createFromString(re.a("missingPreviewMessage","no preview available")),this._treeContainer=R.p(l,R.a("div.ref-tree.inline"));var C={ariaLabel:re.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Ko,keyboardNavigationLabelProvider:this._instantiationService.createInstance(br),identityProvider:new wi,overrideStyles:{listBackground:ci}};this._tree=this._instantiationService.createInstance(No.c,"ReferencesWidget",this._treeContainer,new nr,[this._instantiationService.createInstance(xo),this._instantiationService.createInstance(oo)],this._instantiationService.createInstance(ro),C),this._splitView.addView({onDidChange:Z.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(rt){b._preview.layout({height:b._dim.height,width:rt})}},lo.Distribute),this._splitView.addView({onDidChange:Z.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(rt){b._treeContainer.style.height=b._dim.height+"px",b._treeContainer.style.width=rt+"px",b._tree.layout(b._dim.height,rt)}},lo.Distribute),this._disposables.add(this._splitView.onDidSashChange(function(){b._dim.width&&(b.layoutData.ratio=b._splitView.getViewSize(0)/b._dim.width)},void 0));var $=function(rt,xe){rt instanceof jr&&(xe==="show"&&b._revealReference(rt,!1),b._onDidSelectReference.fire({element:rt,kind:xe,source:"tree"}))};this._tree.onDidChangeFocus(function(Be){$(Be.elements[0],"show")}),this._tree.onDidOpen(function(Be){Be.browserEvent instanceof MouseEvent&&(Be.browserEvent.ctrlKey||Be.browserEvent.metaKey||Be.browserEvent.altKey)?$(Be.elements[0],"side"):Be.browserEvent instanceof KeyboardEvent||Be.browserEvent instanceof MouseEvent&&Be.browserEvent.detail===2||Be.browserEvent.tapCount===2?$(Be.elements[0],"goto"):$(Be.elements[0],"show")}),R.I(this._treeContainer)},d.prototype._onWidth=function(l){this._dim&&this._doLayoutBody(this._dim.height,l)},d.prototype._doLayoutBody=function(l,b){y.prototype._doLayoutBody.call(this,l,b),this._dim={height:l,width:b},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(b),this._splitView.resizeView(0,b*this.layoutData.ratio)},d.prototype.setSelection=function(l){var b=this;return this._revealReference(l,!0).then(function(){if(!b._model)return;b._tree.setSelection([l]),b._tree.setFocus([l])})},d.prototype.setModel=function(l){return this._disposeOnNewModel.clear(),this._model=l,this._model?this._onNewModel():Promise.resolve()},d.prototype._onNewModel=function(){var l=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=re.a("noResults","No results"),R.W(this._messageContainer),Promise.resolve(void 0)):(R.I(this._messageContainer),this._decorationsManager=new ys(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(function(b){return l._tree.rerender(b)})),this._disposeOnNewModel.add(this._preview.onMouseDown(function(b){var S=b.event,C=b.target;if(S.detail!==2)return;var $=l._getFocusedReference();if(!$)return;l._onDidSelectReference.fire({element:{uri:$.uri,range:C.range},kind:S.ctrlKey||S.metaKey||S.altKey?"side":"open",source:"editor"})})),R.e(this.container,"results-loaded"),R.W(this._treeContainer),R.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 l=this._tree.getFocus()[0];return l instanceof jr?l:l instanceof cr&&l.children.length>0?l.children[0]:void 0},d.prototype._revealReference=function(l,b){return Hs(this,void 0,void 0,function(){var S,C,$,Be,rt;return Br(this,function(xe){switch(xe.label){case 0:return this._revealedReference===l?[2]:(this._revealedReference=l,l.uri.scheme!==Is.b.inMemory?this.setTitle(Object(Me.c)(l.uri),this._uriLabel.getUriLabel(Object(Me.d)(l.uri))):this.setTitle(re.a("peekView.alternateTitle","References")),S=this._textModelResolverService.createModelReference(l.uri),this._tree.getInput()===l.parent?(this._tree.reveal(l),[3,3]):[3,1]);case 1:return b&&this._tree.reveal(l.parent),[4,this._tree.expand(l.parent)];case 2:xe.sent(),this._tree.reveal(l),xe.label=3;case 3:return[4,S];case 4:return C=xe.sent(),this._model?(Object(N.f)(this._previewModelReference),$=C.object,$?(Be=this._preview.getModel()===$.textEditorModel?0:1,rt=U.a.lift(l.range).collapseToStart(),this._previewModelReference=C,this._preview.setModel($.textEditorModel),this._preview.setSelection(rt),this._preview.revealRangeInCenter(rt,Be)):(this._preview.setModel(this._previewNotAvailableMessage),C.dispose()),[2]):(C.dispose(),[2])}})})},d=Vs([Lr(3,fe.c),Lr(4,Oo.a),Lr(5,Mn.a),Lr(6,vt),Lr(7,no.a)],d),d}(Sn);Object(fe.e)(function(y,d){var l=y.getColor(Un);l&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+l+"; }");var b=y.getColor(Ci);b&&d.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+b+"; }");var S=y.getColor(Wi);S&&d.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+S+"; box-sizing: border-box; }");var C=y.getColor(se.b);C&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+C+"; box-sizing: border-box; }");var $=y.getColor(ci);$&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+$+"; }");var Be=y.getColor(Hi);Be&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Be+"; }");var rt=y.getColor(rr);rt&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+rt+"; }");var xe=y.getColor(Zn);xe&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+xe+"; }");var ut=y.getColor(Ii);ut&&d.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+ut+" !important; }");var Nt=y.getColor(Si);Nt&&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: "+Nt+";")+"}");var qt=y.getColor(ji);qt&&d.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+qt+";")+"}")});var Ur=o("nrhi"),Cs=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},Zr=function(y,d){return function(l,b){d(l,b,y)}},Tr=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},Yi=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},$r=new pe.d("referenceSearchVisible",!1),Xo=function(){function y(d,l,b,S,C,$,Be,rt){this._defaultTreeKeyboardSupport=d,this._editor=l,this._editorService=S,this._notificationService=C,this._instantiationService=$,this._storageService=Be,this._configurationService=rt,this._disposables=new N.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=$r.bindTo(b)}return y.get=function(d){return d.getContribution(y.ID)},y.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(N.f)(this._widget),Object(N.f)(this._model),this._widget=void 0,this._model=void 0},y.prototype.toggleWidget=function(d,l,b){var S=this,C;if(this._widget&&(C=this._widget.position),this.closeWidget(),!!C&&d.containsPosition(C))return;this._peekMode=b,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(function(){S.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(function(){S._ignoreModelChangeEvent||S.closeWidget()}));var $="peekViewLayout",Be=bs.fromJSON(this._storageService.get($,0,"{}"));this._widget=this._instantiationService.createInstance(Go,this._editor,this._defaultTreeKeyboardSupport,Be),this._widget.setTitle(re.a("labelLoading","Loading...")),this._widget.show(d),this._disposables.add(this._widget.onDidClose(function(){l.cancel(),S._widget&&(S._storageService.store($,JSON.stringify(S._widget.layoutData),0),S._widget=void 0),S.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(function(xe){var ut=xe.element,Nt=xe.kind;if(!ut)return;switch(Nt){case"open":(xe.source!=="editor"||!S._configurationService.getValue("editor.stablePeek"))&&S.openReference(ut,!1);break;case"side":S.openReference(ut,!0);break;case"goto":b?S._gotoReference(ut):S.openReference(ut,!1);break}}));var rt=++this._requestIdPool;l.then(function(xe){return rt!==S._requestIdPool||!S._widget?void 0:(S._model&&S._model.dispose(),S._model=xe,S._widget.setModel(S._model).then(function(){if(S._widget&&S._model&&S._editor.hasModel()){S._model.isEmpty?S._widget.setMetaTitle(""):S._widget.setMetaTitle(re.a("metaTitle.N","{0} ({1})",S._model.title,S._model.references.length));var ut=S._editor.getModel().uri,Nt=new D.a(d.startLineNumber,d.startColumn),qt=S._model.nearestReference(ut,Nt);if(qt)return S._widget.setSelection(qt).then(function(){S._widget&&S._editor.getOption(65)==="editor"&&S._widget.focusOnPreviewEditor()})}return}))},function(xe){S._notificationService.error(xe)})},y.prototype.changeFocusBetweenPreviewAndReferences=function(){if(!this._widget)return;this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor()},y.prototype.goToNextOrPreviousReference=function(d){return Tr(this,void 0,void 0,function(){var l,b,S,C,$;return Yi(this,function(Be){switch(Be.label){case 0:return!this._editor.hasModel()||!this._model||!this._widget?[2]:(l=this._widget.position,l?(b=this._model.nearestReference(this._editor.getModel().uri,l),b?(S=this._model.nextOrPreviousReference(b,d),C=this._editor.hasTextFocus(),$=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(S)]):[2]):[2]);case 1:return Be.sent(),[4,this._gotoReference(S)];case 2:return Be.sent(),C?this._editor.focus():this._widget&&$&&this._widget.focusOnPreviewEditor(),[2]}})})},y.prototype.closeWidget=function(d){d===void 0&&(d=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(N.f)(this._widget),Object(N.f)(this._model),this._widget=void 0,this._model=void 0,d&&this._editor.focus(),this._requestIdPool+=1},y.prototype._gotoReference=function(d){var l=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var b=U.a.lift(d.range).collapseToStart();return this._editorService.openCodeEditor({resource:d.uri,options:{selection:b}},this._editor).then(function(S){var C;if(l._ignoreModelChangeEvent=!1,!S||!l._widget){l.closeWidget();return}if(l._editor===S)l._widget.show(b),l._widget.focusOnReferenceTree();else{var $=y.get(S),Be=l._model.clone();l.closeWidget(),S.focus(),$.toggleWidget(b,Object(m.f)(function(rt){return Promise.resolve(Be)}),(C=l._peekMode)!==null&&C!==void 0?C:!1)}},function(S){l._ignoreModelChangeEvent=!1,Object(H.e)(S)})},y.prototype.openReference=function(d,l){l||this.closeWidget();var b=d.uri,S=d.range;this._editorService.openCodeEditor({resource:b,options:{selection:S}},this._editor,l)},y.ID="editor.contrib.referencesController",y=Cs([Zr(2,pe.c),Zr(3,B.a),Zr(4,kt.a),Zr(5,Mn.a),Zr(6,gs.a),Zr(7,z.a)],y),y}();function xr(y,d){var l=tn(y);if(!l)return;var b=Xo.get(l);b&&d(b)}Ur.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(ne.a)(2048|41,60),when:pe.a.or($r,Tt.inPeekEditor),handler:function(d){xr(d,function(l){l.changeFocusBetweenPreviewAndReferences()})}}),Ur.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:pe.a.or($r,Tt.inPeekEditor),handler:function(d){xr(d,function(l){l.goToNextOrPreviousReference(!0)})}}),Ur.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1024|62,secondary:[1024|70],when:pe.a.or($r,Tt.inPeekEditor),handler:function(d){xr(d,function(l){l.goToNextOrPreviousReference(!1)})}}),yn.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),yn.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),yn.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),yn.a.registerCommand("closeReferenceSearch",function(y){return xr(y,function(d){return d.closeWidget()})}),Ur.a.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1024|9],when:pe.a.and(Tt.inPeekEditor,pe.a.not("config.editor.stablePeek"))}),Ur.a.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1024|9],when:pe.a.and($r,pe.a.not("config.editor.stablePeek"))}),Ur.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2048|3,mac:{primary:256|3},when:pe.a.and($r,No.d),handler:function(d){var l,b=d.get(No.a),S=(l=b.lastFocusedList)===null||l===void 0?void 0:l.getFocus();Array.isArray(S)&&S[0]instanceof jr&&xr(d,function(C){return C.openReference(S[0],!0)})}}),yn.a.registerCommand("openReference",function(y){var d,l=y.get(No.a),b=(d=l.lastFocusedList)===null||d===void 0?void 0:d.getFocus();Array.isArray(b)&&b[0]instanceof jr&&xr(y,function(S){return S.openReference(b[0],!1)})});var Yo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Qr=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},Dr=function(y,d){return function(l,b){d(l,b,y)}},Zo=new pe.d("hasSymbols",!1),Jr=Object(Mn.c)("ISymbolNavigationService"),uo=function(){function y(d,l,b,S){this._editorService=l,this._notificationService=b,this._keybindingService=S,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Zo.bindTo(d)}return y.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(N.f)(this._currentState),Object(N.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},y.prototype.put=function(d){var l=this,b=d.parent.parent;if(b.references.length<=1){this.reset();return}this._currentModel=b,this._currentIdx=b.references.indexOf(d),this._ctxHasSymbols.set(!0),this._showMessage();var S=new pr(this._editorService),C=S.onDidChange(function($){if(l._ignoreEditorChange)return;var Be=l._editorService.getActiveCodeEditor();if(!Be)return;var rt=Be.getModel(),xe=Be.getPosition();if(!rt||!xe)return;for(var ut=!1,Nt=!1,qt=0,en=b.references;qt<en.length;qt++){var dn=en[qt];if(Object(Me.e)(dn.uri,rt.uri))ut=!0,Nt=Nt||U.a.containsPosition(dn.range,xe);else if(ut)break}(!ut||!Nt)&&l.reset()});this._currentState=Object(N.e)(S,C)},y.prototype.revealNext=function(d){var l=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var b=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:b.uri,options:{selection:U.a.collapseToStart(b.range),revealInCenterIfOutsideViewport:!0}},d).finally(function(){l._ignoreEditorChange=!1})},y.prototype._showMessage=function(){Object(N.f)(this._currentMessage);var d=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),l=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(l)},y=Qr([Dr(0,pe.c),Dr(1,B.a),Dr(2,kt.a),Dr(3,O.a)],y),y}();Object(gi.b)(Jr,uo,!0),Object(k.g)(new(function(y){Yo(d,y);function d(){return y.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:Zo,kbOpts:{weight:100,primary:70}})||this}return d.prototype.runEditorCommand=function(l,b){return l.get(Jr).revealNext(b)},d}(k.c))),Ur.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Zo,primary:9,handler:function(d){d.get(Jr).reset()}});var pr=function(){function y(d){this._listener=new Map,this._disposables=new N.b,this._onDidChange=new Z.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(N.f)},y.prototype._onDidAddEditor=function(d){var l=this;this._listener.set(d,Object(N.e)(d.onDidChangeCursorPosition(function(b){return l._onDidChange.fire({editor:d})}),d.onDidChangeModelContent(function(b){return l._onDidChange.fire({editor:d})})))},y.prototype._onDidRemoveEditor=function(d){Object(N.f)(this._listener.get(d)),this._listener.delete(d)},y=Qr([Dr(0,B.a)],y),y}(),_i=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Zi=function(y,d,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(ut){try{xe(b.next(ut))}catch(Nt){$(Nt)}}function rt(ut){try{xe(b.throw(ut))}catch(Nt){$(Nt)}}function xe(ut){ut.done?C(ut.value):S(ut.value).then(Be,rt)}xe((b=b.apply(y,d||[])).next())})},vr=function(y,d){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(ut){return rt([xe,ut])}}function rt(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=d.call(y,l)}catch(ut){xe=[6,ut],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},Co,Eo,ai,_o,qr,Ro,Ar,Io;Qe.c.appendMenuItem(7,{submenu:8,title:re.a("peek.submenu","Peek"),group:"navigation",order:100});var co=function(y){_i(d,y);function d(l,b){var S=y.call(this,b)||this;return S._configuration=l,S}return d.prototype.run=function(l,b){var S=this;if(!b.hasModel())return Promise.resolve(void 0);var C=l.get(kt.a),$=l.get(B.a),Be=l.get(Bo.a),rt=l.get(Jr),xe=b.getModel(),ut=b.getPosition(),Nt=new fn.b(b,1|4),qt=Object(m.j)(this._getLocationModel(xe,ut,Nt.token),Nt.token).then(function(en){return Zi(S,void 0,void 0,function(){var dn,an,Cn,In;return vr(this,function(Nn){if(!en||Nt.token.isCancellationRequested)return[2];if(Object(Je.a)(en.ariaMessage),en.referenceAt(xe.uri,ut)&&(an=this._getAlternativeCommand(b),an!==this.id&&(dn=b.getAction(an))),Cn=en.references.length,Cn===0)this._configuration.muteMessage||(In=xe.getWordAtPosition(ut),Qt.get(b).showMessage(this._getNoResultFoundMessage(In),ut));else if(Cn===1&&dn)dn.run();else return[2,this._onResult($,rt,b,en)];return[2]})})},function(en){C.error(en)}).finally(function(){Nt.dispose()});return Be.showWhile(qt,250),qt},d.prototype._onResult=function(l,b,S,C){return Zi(this,void 0,void 0,function(){var $,Be,rt,xe;return vr(this,function(ut){switch(ut.label){case 0:return $=this._getGoToPreference(S),!(S instanceof Vt)&&(this._configuration.openInPeek||$==="peek"&&C.references.length>1)?(this._openInPeek(S,C),[3,3]):[3,1];case 1:return Be=C.firstReference(),rt=C.references.length>1&&$==="gotoAndPeek",[4,this._openReference(S,l,Be,this._configuration.openToSide,!rt)];case 2:xe=ut.sent(),rt&&xe?this._openInPeek(xe,C):C.dispose(),$==="goto"&&b.put(Be),ut.label=3;case 3:return[2]}})})},d.prototype._openReference=function(l,b,S,C,$){return Zi(this,void 0,void 0,function(){var Be,rt,xe,ut;return vr(this,function(Nt){switch(Nt.label){case 0:return Be=void 0,Object(te.D)(S)&&(Be=S.targetSelectionRange),Be||(Be=S.range),[4,b.openCodeEditor({resource:S.uri,options:{selection:U.a.collapseToStart(Be),revealInCenterIfOutsideViewport:!0}},l,C)];case 1:return rt=Nt.sent(),rt?($&&(xe=rt.getModel(),ut=rt.deltaDecorations([],[{range:Be,options:{className:"symbolHighlight"}}]),setTimeout(function(){rt.getModel()===xe&&rt.deltaDecorations(ut,[])},350)),[2,rt]):[2,void 0]}})})},d.prototype._openInPeek=function(l,b){var S=Xo.get(l);S&&l.hasModel()?S.toggleWidget(l.getSelection(),Object(m.f)(function(C){return Promise.resolve(b)}),this._configuration.openInPeek):b.dispose()},d}(k.b),Po=function(y){_i(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return vr(this,function($){switch($.label){case 0:return C=ri.bind,[4,Vo(l,b,S)];case 1:return[2,new(C.apply(ri,[void 0,$.sent(),re.a("def.title","Definitions")]))]}})})},d.prototype._getNoResultFoundMessage=function(l){return l&&l.word?re.a("noResultWord","No definition found for '{0}'",l.word):re.a("generic.noResults","No definition found")},d.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeDefinitionCommand},d.prototype._getGoToPreference=function(l){return l.getOption(41).multipleDefinitions},d}(co),$o=Mo.g&&!Ve.l?2048|70:70;Object(k.f)((Co=function(y){_i(d,y);function d(){var l=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:pe.a.and(j.a.hasDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:$o,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),l}return d}(Po),Co.id="editor.action.revealDefinition",Co)),Object(k.f)((Eo=function(y){_i(d,y);function d(){var l=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:pe.a.and(j.a.hasDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:Object(ne.a)(2048|41,$o),weight:100}})||this;return yn.a.registerCommandAlias("editor.action.openDeclarationToTheSide",d.id),l}return d}(Po),Eo.id="editor.action.revealDefinitionAside",Eo)),Object(k.f)((ai=function(y){_i(d,y);function d(){var l=y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:d.id,label:re.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:pe.a.and(j.a.hasDefinitionProvider,Tt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return yn.a.registerCommandAlias("editor.action.previewDeclaration",d.id),l}return d}(Po),ai.id="editor.action.peekDefinition",ai));var Es=function(y){_i(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return vr(this,function($){switch($.label){case 0:return C=ri.bind,[4,fs(l,b,S)];case 1:return[2,new(C.apply(ri,[void 0,$.sent(),re.a("decl.title","Declarations")]))]}})})},d.prototype._getNoResultFoundMessage=function(l){return l&&l.word?re.a("decl.noResultWord","No declaration found for '{0}'",l.word):re.a("decl.generic.noResults","No declaration found")},d.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeDeclarationCommand},d.prototype._getGoToPreference=function(l){return l.getOption(41).multipleDeclarations},d}(co);Object(k.f)((_o=function(y){_i(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:pe.a.and(j.a.hasDeclarationProvider,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:re.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return d.prototype._getNoResultFoundMessage=function(l){return l&&l.word?re.a("decl.noResultWord","No declaration found for '{0}'",l.word):re.a("decl.generic.noResults","No declaration found")},d}(Es),_o.id="editor.action.revealDeclaration",_o)),Object(k.f)(function(y){_i(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:pe.a.and(j.a.hasDeclarationProvider,Tt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return d}(Es));var _s=function(y){_i(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return vr(this,function($){switch($.label){case 0:return C=ri.bind,[4,Ho(l,b,S)];case 1:return[2,new(C.apply(ri,[void 0,$.sent(),re.a("typedef.title","Type Definitions")]))]}})})},d.prototype._getNoResultFoundMessage=function(l){return l&&l.word?re.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",l.word):re.a("goToTypeDefinition.generic.noResults","No type definition found")},d.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeTypeDefinitionCommand},d.prototype._getGoToPreference=function(l){return l.getOption(41).multipleTypeDefinitions},d}(co);Object(k.f)((qr=function(y){_i(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:pe.a.and(j.a.hasTypeDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:re.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return d}(_s),qr.ID="editor.action.goToTypeDefinition",qr)),Object(k.f)((Ro=function(y){_i(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:pe.a.and(j.a.hasTypeDefinitionProvider,Tt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return d}(_s),Ro.ID="editor.action.peekTypeDefinition",Ro));var Qo=function(y){_i(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return vr(this,function($){switch($.label){case 0:return C=ri.bind,[4,ps(l,b,S)];case 1:return[2,new(C.apply(ri,[void 0,$.sent(),re.a("impl.title","Implementations")]))]}})})},d.prototype._getNoResultFoundMessage=function(l){return l&&l.word?re.a("goToImplementation.noResultWord","No implementation found for '{0}'",l.word):re.a("goToImplementation.generic.noResults","No implementation found")},d.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeImplementationCommand},d.prototype._getGoToPreference=function(l){return l.getOption(41).multipleImplementations},d}(co);Object(k.f)((Ar=function(y){_i(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:pe.a.and(j.a.hasImplementationProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:re.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return d}(Qo),Ar.ID="editor.action.goToImplementation",Ar)),Object(k.f)((Io=function(y){_i(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:pe.a.and(j.a.hasImplementationProvider,Tt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return d}(Qo),Io.ID="editor.action.peekImplementation",Io));var Ss=function(y){_i(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.prototype._getNoResultFoundMessage=function(l){return l?re.a("references.no","No references found for '{0}'",l.word):re.a("references.noGeneric","No references found")},d.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeReferenceCommand},d.prototype._getGoToPreference=function(l){return l.getOption(41).multipleReferences},d}(co);Object(k.f)(function(y){_i(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:pe.a.and(j.a.hasReferenceProvider,Tt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:re.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return d.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return vr(this,function($){switch($.label){case 0:return C=ri.bind,[4,yo(l,b,!0,S)];case 1:return[2,new(C.apply(ri,[void 0,$.sent(),re.a("ref.title","References")]))]}})})},d}(Ss)),Object(k.f)(function(y){_i(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:pe.a.and(j.a.hasReferenceProvider,Tt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return d.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return vr(this,function($){switch($.label){case 0:return C=ri.bind,[4,yo(l,b,!1,S)];case 1:return[2,new(C.apply(ri,[void 0,$.sent(),re.a("ref.title","References")]))]}})})},d}(Ss));var Jo=function(y){_i(d,y);function d(l,b,S){var C=y.call(this,l,{id:"editor.action.goToLocation",label:re.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:pe.a.and(Tt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated())})||this;return C._references=b,C._gotoMultipleBehaviour=S,C}return d.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){return vr(this,function(C){return[2,new ri(this._references,re.a("generic.title","Locations"))]})})},d.prototype._getNoResultFoundMessage=function(l){return l&&re.a("generic.noResult","No results for '{0}'",l.word)||""},d.prototype._getGoToPreference=function(l){var b;return(b=this._gotoMultipleBehaviour)!==null&&b!==void 0?b:l.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:E.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,l,b,S,C,$){return Zi(void 0,void 0,void 0,function(){var Be,rt;return vr(this,function(xe){switch(xe.label){case 0:return Object(Cr.a)(E.a.isUri(l)),Object(Cr.a)(D.a.isIPosition(b)),Object(Cr.a)(Array.isArray(S)),Object(Cr.a)(typeof C=="undefined"||typeof C=="string"),Object(Cr.a)(typeof $=="undefined"||typeof $=="boolean"),Be=d.get(B.a),[4,Be.openCodeEditor({resource:l},Be.getFocusedCodeEditor())];case 1:return rt=xe.sent(),Object(zo.a)(rt)?(rt.setPosition(b),rt.revealPositionInCenterIfOutsideViewport(b,0),[2,rt.invokeWithinContext(function(ut){var Nt=new Jo({muteMessage:!0,openInPeek:Boolean($),openToSide:!1},S,C);ut.get(Mn.a).invokeFunction(Nt.run.bind(Nt),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:E.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,l,b,S,C){return Zi(void 0,void 0,void 0,function(){return vr(this,function($){return d.get(yn.b).executeCommand("editor.action.goToLocations",l,b,S,C,!0),[2]})})}}),yn.a.registerCommand({id:"editor.action.findReferences",handler:function(d,l,b){Object(Cr.a)(E.a.isUri(l)),Object(Cr.a)(D.a.isIPosition(b));var S=d.get(B.a);return S.openCodeEditor({resource:l},S.getFocusedCodeEditor()).then(function(C){if(!Object(zo.a)(C)||!C.hasModel())return;var $=Xo.get(C);if(!$)return;var Be=Object(m.f)(function(xe){return yo(C.getModel(),D.a.lift(b),!1,xe).then(function(ut){return new ri(ut,re.a("ref.title","References"))})}),rt=new U.a(b.lineNumber,b.column,b.lineNumber,b.column);return Promise.resolve($.toggleWidget(rt,Be,!1))})}}),yn.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var ko=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}();function ho(y,d){return!!y[d]}var Fo=function(){function y(d,l){this.target=d.target,this.hasTriggerModifier=ho(d.event,l.triggerModifier),this.hasSideBySideModifier=ho(d.event,l.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=Ve.i||d.event.detail<=1}return y}(),qo=function(){function y(d,l){this.keyCodeIsTriggerKey=d.keyCode===l.triggerKey,this.keyCodeIsSideBySideKey=d.keyCode===l.triggerSideBySideKey,this.hasTriggerModifier=ho(d,l.triggerModifier)}return y}(),L=function(){function y(d,l,b,S){this.triggerKey=d,this.triggerModifier=l,this.triggerSideBySideKey=b,this.triggerSideBySideModifier=S}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 L(57,"metaKey",6,"altKey"):new L(5,"ctrlKey",6,"altKey"):Mo.e?new L(6,"altKey",57,"metaKey"):new L(6,"altKey",5,"ctrlKey")}var e=function(y){ko(d,y);function d(l){var b=y.call(this)||this;return b._onMouseMoveOrRelevantKeyDown=b._register(new Z.a),b.onMouseMoveOrRelevantKeyDown=b._onMouseMoveOrRelevantKeyDown.event,b._onExecute=b._register(new Z.a),b.onExecute=b._onExecute.event,b._onCancel=b._register(new Z.a),b.onCancel=b._onCancel.event,b._editor=l,b._opts=n(b._editor.getOption(59)),b.lastMouseMoveEvent=null,b.hasTriggerKeyOnMouseDown=!1,b._register(b._editor.onDidChangeConfiguration(function(S){if(S.hasChanged(59)){var C=n(b._editor.getOption(59));if(b._opts.equals(C))return;b._opts=C,b.lastMouseMoveEvent=null,b.hasTriggerKeyOnMouseDown=!1,b._onCancel.fire()}})),b._register(b._editor.onMouseMove(function(S){return b.onEditorMouseMove(new Fo(S,b._opts))})),b._register(b._editor.onMouseDown(function(S){return b.onEditorMouseDown(new Fo(S,b._opts))})),b._register(b._editor.onMouseUp(function(S){return b.onEditorMouseUp(new Fo(S,b._opts))})),b._register(b._editor.onKeyDown(function(S){return b.onEditorKeyDown(new qo(S,b._opts))})),b._register(b._editor.onKeyUp(function(S){return b.onEditorKeyUp(new qo(S,b._opts))})),b._register(b._editor.onMouseDrag(function(){return b.resetHandler()})),b._register(b._editor.onDidChangeCursorSelection(function(S){return b.onDidChangeCursorSelection(S)})),b._register(b._editor.onDidChangeModel(function(S){return b.resetHandler()})),b._register(b._editor.onDidChangeModelContent(function(){return b.resetHandler()})),b._register(b._editor.onDidScrollChange(function(S){(S.scrollTopChanged||S.scrollLeftChanged)&&b.resetHandler()})),b}return d.prototype.onDidChangeCursorSelection=function(l){l.selection&&l.selection.startColumn!==l.selection.endColumn&&this.resetHandler()},d.prototype.onEditorMouseMove=function(l){this.lastMouseMoveEvent=l,this._onMouseMoveOrRelevantKeyDown.fire([l,null])},d.prototype.onEditorMouseDown=function(l){this.hasTriggerKeyOnMouseDown=l.hasTriggerModifier},d.prototype.onEditorMouseUp=function(l){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(l)},d.prototype.onEditorKeyDown=function(l){this.lastMouseMoveEvent&&(l.keyCodeIsTriggerKey||l.keyCodeIsSideBySideKey&&l.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,l]):l.hasTriggerModifier&&this._onCancel.fire()},d.prototype.onEditorKeyUp=function(l){l.keyCodeIsTriggerKey&&this._onCancel.fire()},d.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},d}(N.a),i=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},u=function(y,d){return function(l,b){d(l,b,y)}},c=function(){function y(d,l,b){var S=this;this.textModelResolverService=l,this.modeService=b,this.toUnhook=new N.b,this.toUnhookForKeyboard=new N.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=d;var C=new e(d);this.toUnhook.add(C),this.toUnhook.add(C.onMouseMoveOrRelevantKeyDown(function($){var Be=$[0],rt=$[1];S.startFindDefinitionFromMouse(Be,Object(Cr.n)(rt))})),this.toUnhook.add(C.onExecute(function($){S.isEnabled($)&&S.gotoDefinition($.target.position,$.hasSideBySideModifier).then(function(){S.removeLinkDecorations()},function(Be){S.removeLinkDecorations(),Object(H.e)(Be)})})),this.toUnhook.add(C.onCancel(function(){S.removeLinkDecorations(),S.currentWordAtPosition=null}))}return y.get=function(d){return d.getContribution(y.ID)},y.prototype.startFindDefinitionFromCursor=function(d){var l=this;return this.startFindDefinition(d).then(function(){l.toUnhookForKeyboard.add(l.editor.onDidChangeCursorPosition(function(){l.currentWordAtPosition=null,l.removeLinkDecorations(),l.toUnhookForKeyboard.clear()})),l.toUnhookForKeyboard.add(l.editor.onKeyDown(function(b){b&&(l.currentWordAtPosition=null,l.removeLinkDecorations(),l.toUnhookForKeyboard.clear())}))})},y.prototype.startFindDefinitionFromMouse=function(d,l){if(d.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(d,l)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var b=d.target.position;this.startFindDefinition(b)},y.prototype.startFindDefinition=function(d){var l=this,b;this.toUnhookForKeyboard.clear();var S=d?(b=this.editor.getModel())===null||b===void 0?void 0:b.getWordAtPosition(d):null;if(!S)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===S.startColumn&&this.currentWordAtPosition.endColumn===S.endColumn&&this.currentWordAtPosition.word===S.word)return Promise.resolve(0);this.currentWordAtPosition=S;var C=new fn.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(m.f)(function($){return l.findDefinition(d,$)}),this.previousPromise.then(function($){if(!$||!$.length||!C.validate(l.editor)){l.removeLinkDecorations();return}if($.length>1)l.addDecoration(new U.a(d.lineNumber,S.startColumn,d.lineNumber,S.endColumn),new K.a().appendText(re.a("multipleResults","Click to show {0} definitions.",$.length)));else{var Be=$[0];if(!Be.uri)return;l.textModelResolverService.createModelReference(Be.uri).then(function(rt){if(!rt.object||!rt.object.textEditorModel){rt.dispose();return}var xe=rt.object.textEditorModel,ut=Be.range.startLineNumber;if(ut<1||ut>xe.getLineCount()){rt.dispose();return}var Nt=l.getPreviewValue(xe,ut,Be),qt;Be.originSelectionRange?qt=U.a.lift(Be.originSelectionRange):qt=new U.a(d.lineNumber,S.startColumn,d.lineNumber,S.endColumn);var en=l.modeService.getModeIdByFilepathOrFirstLine(xe.uri);l.addDecoration(qt,new K.a().appendCodeblock(en||"",Nt)),rt.dispose()})}}).then(void 0,H.e)},y.prototype.getPreviewValue=function(d,l,b){var S=b.targetSelectionRange?b.range:this.getPreviewRangeBasedOnBrackets(d,l),C=S.endLineNumber-S.startLineNumber;C>=y.MAX_SOURCE_PREVIEW_LINES&&(S=this.getPreviewRangeBasedOnIndentation(d,l));var $=this.stripIndentationFromPreviewRange(d,l,S);return $},y.prototype.stripIndentationFromPreviewRange=function(d,l,b){for(var S=d.getLineFirstNonWhitespaceColumn(l),C=S,$=l+1;$<b.endLineNumber;$++){var Be=d.getLineFirstNonWhitespaceColumn($);C=Math.min(C,Be)}var rt=d.getValueInRange(b).replace(new RegExp("^\\s{"+(C-1)+"}","gm"),"").trim();return rt},y.prototype.getPreviewRangeBasedOnIndentation=function(d,l){for(var b=d.getLineFirstNonWhitespaceColumn(l),S=Math.min(d.getLineCount(),l+y.MAX_SOURCE_PREVIEW_LINES),C=l+1;C<S;C++){var $=d.getLineFirstNonWhitespaceColumn(C);if(b===$)break}return new U.a(l,1,C+1,1)},y.prototype.getPreviewRangeBasedOnBrackets=function(d,l){for(var b=Math.min(d.getLineCount(),l+y.MAX_SOURCE_PREVIEW_LINES),S=[],C=!0,$=d.findNextBracket(new D.a(l,1));$!==null;){if(S.length===0)S.push($);else{var Be=S[S.length-1];if(Be.open[0]===$.open[0]&&Be.isOpen&&!$.isOpen?S.pop():S.push($),S.length===0)if(C)C=!1;else return new U.a(l,1,$.range.endLineNumber+1,1)}var rt=d.getLineMaxColumn(l),xe=$.range.endLineNumber,ut=$.range.endColumn;if(rt===$.range.endColumn&&(xe++,ut=1),xe>b)return new U.a(l,1,b+1,1);$=d.findNextBracket(new D.a(xe,ut))}return new U.a(l,1,b+1,1)},y.prototype.addDecoration=function(d,l){var b={range:d,options:{inlineClassName:"goto-definition-link",hoverMessage:l}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[b])},y.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},y.prototype.isEnabled=function(d,l){return this.editor.hasModel()&&d.isNoneOrSingleMouseDown&&d.target.type===6&&(d.hasTriggerModifier||(l?l.keyCodeIsTriggerKey:!1))&&te.f.has(this.editor.getModel())},y.prototype.findDefinition=function(d,l){var b=this.editor.getModel();return b?Vo(b,d,l):Promise.resolve(null)},y.prototype.gotoDefinition=function(d,l){var b=this;this.editor.setPosition(d);var S=new Po({openToSide:l,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(C){return S.run(C,b.editor)})},y.prototype.dispose=function(){this.toUnhook.dispose()},y.ID="editor.contrib.gotodefinitionatposition",y.MAX_SOURCE_PREVIEW_LINES=8,y=i([u(1,Oo.a),u(2,G.a)],y),y}();Object(k.h)(c.ID,c),Object(fe.e)(function(y,d){var l=y.getColor(se.n);l&&d.addRule(".monaco-editor .goto-definition-link { color: "+l+" !important; }")});var T=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(d,l){y(d,l);function b(){this.constructor=d}d.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),ge=function(y,d,l,b){var S=arguments.length,C=S<3?d:b===null?b=Object.getOwnPropertyDescriptor(d,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,d,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(d,l,C):$(d,l))||C);return S>3&&C&&Object.defineProperty(d,l,C),C},le=function(y,d){return function(l,b){d(l,b,y)}},ze=function(){function y(d,l,b,S,C,$){var Be=this;this._editor=d,this._openerService=l,this._modeService=b,this._markerDecorationsService=S,this._keybindingService=C,this._themeService=$,this._toUnhook=new N.b,this._contentWidget=new N.d,this._glyphWidget=new N.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(rt){rt.hasChanged(44)&&(Be._hideWidgets(),Be._unhookEvents(),Be._hookEvents())})}return Object.defineProperty(y.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),y.get=function(d){return d.getContribution(y.ID)},y.prototype._hookEvents=function(){var d=this,l=function(){return d._hideWidgets()},b=this._editor.getOption(44);this._isHoverEnabled=b.enabled,this._isHoverSticky=b.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(S){return d._onEditorMouseDown(S)})),this._toUnhook.add(this._editor.onMouseUp(function(S){return d._onEditorMouseUp(S)})),this._toUnhook.add(this._editor.onMouseMove(function(S){return d._onEditorMouseMove(S)})),this._toUnhook.add(this._editor.onKeyDown(function(S){return d._onKeyDown(S)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return d._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(l)),this._toUnhook.add(this._editor.onMouseLeave(l)),this._toUnhook.add(this._editor.onDidChangeModel(l)),this._toUnhook.add(this._editor.onDidScrollChange(function(S){return d._onEditorScrollChanged(S)}))},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 l=d.target.type;if(l===9&&d.target.detail===Xr.ID){this._hoverClicked=!0;return}if(l===12&&d.target.detail===vo.ID)return;l!==12&&d.target.detail!==vo.ID&&(this._hoverClicked=!1),this._hideWidgets()},y.prototype._onEditorMouseUp=function(d){this._isMouseDown=!1},y.prototype._onEditorMouseMove=function(d){var l=d.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&l===9&&d.target.detail===Xr.ID)return;if(this._isHoverSticky&&l===12&&d.target.detail===vo.ID)return;if(l===7){var b=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,S=d.target.detail;S&&!S.isAfterLines&&typeof S.horizontalDistanceToText=="number"&&S.horizontalDistanceToText<b&&(l=6)}l===6?(this.glyphWidget.hide(),this._isHoverEnabled&&d.target.range&&this.contentWidget.startShowingAt(d.target.range,0,!1)):l===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(){if(!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible())return;this._glyphWidget.value.hide(),this._contentWidget.value.hide()},y.prototype._createHoverWidgets=function(){this._contentWidget.value=new Xr(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new vo(this._editor,this._modeService,this._openerService)},y.prototype.showContentHover=function(d,l,b){this.contentWidget.startShowingAt(d,l,b)},y.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},y.ID="editor.contrib.hover",y=ge([le(1,Ie.a),le(2,G.a),le(3,hs.a),le(4,O.a),le(5,fe.c)],y),y}(),st=function(y){T(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:j.a.editorTextFocus,primary:Object(ne.a)(2048|41,2048|39),weight:100}})||this}return d.prototype.run=function(l,b){if(!b.hasModel())return;var S=ze.get(b);if(!S)return;var C=b.getPosition(),$=new U.a(C.lineNumber,C.column,C.lineNumber,C.column),Be=b.getOption(2)===2;S.showContentHover($,1,Be)},d}(k.b),ht=function(y){T(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(l,b){var S=ze.get(b);if(!S)return;var C=b.getPosition();if(!C)return;var $=new U.a(C.lineNumber,C.column,C.lineNumber,C.column),Be=c.get(b),rt=Be.startFindDefinitionFromCursor(C);rt?rt.then(function(){S.showContentHover($,1,!0)}):S.showContentHover($,1,!0)},d}(k.b);Object(k.h)(ze.ID,ze),Object(k.f)(st),Object(k.f)(ht),Object(fe.e)(function(y,d){var l=y.getColor(se.D);l&&d.addRule(".monaco-editor .hoverHighlight { background-color: "+l+"; }");var b=y.getColor(se.A);b&&d.addRule(".monaco-editor .monaco-editor-hover { background-color: "+b+"; }");var S=y.getColor(se.B);S&&(d.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+S+"; }"),d.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+S.transparent(.5)+"; }"),d.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+S.transparent(.5)+"; }"),d.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+S.transparent(.5)+"; }"));var C=y.getColor(se.cc);C&&d.addRule(".monaco-editor .monaco-editor-hover a { color: "+C+"; }");var $=y.getColor(se.C);$&&d.addRule(".monaco-editor .monaco-editor-hover { color: "+$+"; }");var Be=y.getColor(se.E);Be&&d.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+Be+"; }");var rt=y.getColor(se.bc);rt&&d.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+rt+"; }")})},sFUC:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("iuje");function re(ne){return ne&&typeof ne.getEditorType=="function"?ne.getEditorType()===I.a.ICodeEditor:!1}},sM1p:function(wt,P,o){"use strict";o.d(P,"a",function(){return N}),o.d(P,"b",function(){return k});var I=o("S3by"),re=o("Cg/j"),ne=I.a,N=Object(re.c)("notificationService"),k=function(){function U(){}return U}()},sStQ:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return o.e(229).then(o.bind(null,"QKwv"))}})},siPX:function(wt,P,o){},snIX:function(wt,P,o){"use strict";o.d(P,"a",function(){return U});var I=o("N0LK"),re=o("LCkn"),ne=o("Ll0s"),N=o("+Fos"),k=o("aokT"),U=function(){function j(){}return j.deleteRight=function(G,R,_,x){for(var K=[],D=G!==3,A=0,te=x.length;A<te;A++){var H=x[A],E=H;if(E.isEmpty()){var f=H.getPosition(),p=N.a.right(R,_,f.lineNumber,f.column);E=new k.a(p.lineNumber,p.column,f.lineNumber,f.column)}if(E.isEmpty()){K[A]=null;continue}E.startLineNumber!==E.endLineNumber&&(D=!0),K[A]=new re.a(E,"")}return[D,K]},j._isAutoClosingPairDelete=function(G,R,_){if(G.autoClosingBrackets==="never"&&G.autoClosingQuotes==="never")return!1;for(var x=0,K=_.length;x<K;x++){var D=_[x],A=D.getPosition();if(!D.isEmpty())return!1;var te=R.getLineContent(A.lineNumber),H=te[A.column-2],E=G.autoClosingPairsOpen2.get(H);if(!E)return!1;if(Object(ne.g)(H)){if(G.autoClosingQuotes==="never")return!1}else if(G.autoClosingBrackets==="never")return!1;for(var f=te[A.column-1],p=!1,g=0,m=E;g<m.length;g++){var w=m[g];w.open===H&&w.close===f&&(p=!0)}if(!p)return!1}return!0},j._runAutoClosingPairDelete=function(G,R,_){for(var x=[],K=0,D=_.length;K<D;K++){var A=_[K].getPosition(),te=new k.a(A.lineNumber,A.column-1,A.lineNumber,A.column+1);x[K]=new re.a(te,"")}return[!0,x]},j.deleteLeft=function(G,R,_,x){if(this._isAutoClosingPairDelete(R,_,x))return this._runAutoClosingPairDelete(R,_,x);for(var K=[],D=G!==2,A=0,te=x.length;A<te;A++){var H=x[A],E=H;if(E.isEmpty()){var f=H.getPosition();if(R.useTabStops&&f.column>1){var p=_.getLineContent(f.lineNumber),g=I.q(p),m=g===-1?p.length+1:g+1;if(f.column<=m){var w=ne.a.visibleColumnFromColumn2(R,_,f),B=ne.a.prevIndentTabStop(w,R.indentSize),z=ne.a.columnFromVisibleColumn2(R,_,f.lineNumber,B);E=new k.a(f.lineNumber,z,f.lineNumber,f.column)}else E=new k.a(f.lineNumber,f.column-1,f.lineNumber,f.column)}else{var oe=N.a.left(R,_,f.lineNumber,f.column);E=new k.a(oe.lineNumber,oe.column,f.lineNumber,f.column)}}if(E.isEmpty()){K[A]=null;continue}E.startLineNumber!==E.endLineNumber&&(D=!0),K[A]=new re.a(E,"")}return[D,K]},j.cut=function(G,R,_){for(var x=[],K=0,D=_.length;K<D;K++){var A=_[K];if(A.isEmpty())if(G.emptySelectionClipboard){var te=A.getPosition(),H=void 0,E=void 0,f=void 0,p=void 0;te.lineNumber<R.getLineCount()?(H=te.lineNumber,E=1,f=te.lineNumber+1,p=1):te.lineNumber>1?(H=te.lineNumber-1,E=R.getLineMaxColumn(te.lineNumber-1),f=te.lineNumber,p=R.getLineMaxColumn(te.lineNumber)):(H=te.lineNumber,E=1,f=te.lineNumber,p=R.getLineMaxColumn(te.lineNumber));var g=new k.a(H,E,f,p);g.isEmpty()?x[K]=null:x[K]=new re.a(g,"")}else x[K]=null;else x[K]=new re.a(A,"")}return new ne.e(0,x,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},j}()},sswD:function(wt,P,o){"use strict";o.d(P,"a",function(){return te}),o.d(P,"c",function(){return H}),o.d(P,"b",function(){return E}),o.d(P,"j",function(){return f}),o.d(P,"e",function(){return p}),o.d(P,"k",function(){return g}),o.d(P,"g",function(){return w}),o.d(P,"f",function(){return B}),o.d(P,"i",function(){return z}),o.d(P,"h",function(){return oe}),o.d(P,"d",function(){return he});var I=o("/cxE"),re=o("bY76"),ne=o("Vxe3"),N=o("cGHE"),k=o("G2kB"),U=o("t49l"),j=o("fjLI"),G=o("nnTU"),R=o("T8No"),_=o("nrhi"),x=o("ic2d"),K=o("XXUj"),D=o("746U"),A=function(){var q=function(ce,Te){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ve,Ee){Ve.__proto__=Ee}||function(Ve,Ee){for(var de in Ee)Ee.hasOwnProperty(de)&&(Ve[de]=Ee[de])},q(ce,Te)};return function(Z,ce){q(Z,ce);function Te(){this.constructor=Z}Z.prototype=ce===null?Object.create(ce):(Te.prototype=ce.prototype,new Te)}}(),te=function(){function q(Z){this.id=Z.id,this.precondition=Z.precondition,this._kbOpts=Z.kbOpts,this._menuOpts=Z.menuOpts,this._description=Z.description}return q.prototype.register=function(){var Z=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var ce=this._kbOpts.kbExpr;this.precondition&&(ce?ce=R.a.and(ce,this.precondition):ce=this.precondition),_.a.registerCommandAndKeybindingRule({id:this.id,handler:function(Ve,Ee){return Z.runCommand(Ve,Ee)},weight:this._kbOpts.weight,when:ce,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else G.a.registerCommand({id:this.id,handler:function(Ve,Ee){return Z.runCommand(Ve,Ee)},description:this._description})},q.prototype._registerMenuItem=function(Z){j.c.appendMenuItem(Z.menuId,{group:Z.group,command:{id:this.id,title:Z.title},when:Z.when,order:Z.order})},q}(),H=function(q){A(Z,q);function Z(){return q!==null&&q.apply(this,arguments)||this}return Z.bindToContribution=function(ce){return function(Te){A(Ve,Te);function Ve(Ee){var de=Te.call(this,Ee)||this;return de._callback=Ee.handler,de}return Ve.prototype.runEditorCommand=function(Ee,de,se){var fe=ce(de);fe&&this._callback(ce(de),se)},Ve}(Z)},Z.prototype.runCommand=function(ce,Te){var Ve=this,Ee=ce.get(ne.a),de=Ee.getFocusedCodeEditor()||Ee.getActiveCodeEditor();return de?de.invokeWithinContext(function(se){var fe=se.get(R.c);return fe.contextMatchesRules(Object(D.n)(Ve.precondition))?Ve.runEditorCommand(se,de,Te):void 0}):void 0},Z}(te),E=function(q){A(Z,q);function Z(ce){var Te=q.call(this,Z.convertOptions(ce))||this;return Te.label=ce.label,Te.alias=ce.alias,Te}return Z.convertOptions=function(ce){var Te;Array.isArray(ce.menuOpts)?Te=ce.menuOpts:ce.menuOpts?Te=[ce.menuOpts]:Te=[];function Ve(Ee){return Ee.menuId||(Ee.menuId=7),Ee.title||(Ee.title=ce.label),Ee.when=R.a.and(ce.precondition,Ee.when),Ee}return Array.isArray(ce.contextMenuOpts)?Te.push.apply(Te,ce.contextMenuOpts.map(Ve)):ce.contextMenuOpts&&Te.push(Ve(ce.contextMenuOpts)),ce.menuOpts=Te,ce},Z.prototype.runEditorCommand=function(ce,Te,Ve){return this.reportTelemetry(ce,Te),this.run(ce,Te,Ve||{})},Z.prototype.reportTelemetry=function(ce,Te){ce.get(K.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},Z}(H);function f(q,Z){G.a.registerCommand(q,function(ce,Te){return Z(ce,Te||{})})}function p(q,Z){f(q,function(ce,Te){var Ve=Te.resource,Ee=Te.position;if(!(Ve instanceof re.a))throw Object(I.b)("resource");if(!N.a.isIPosition(Ee))throw Object(I.b)("position");var de=ce.get(k.a).getModel(Ve);if(de){var se=N.a.lift(Ee);return Z(de,se,Te)}return ce.get(U.a).createModelReference(Ve).then(function(fe){return new Promise(function(ie,Q){try{var me=Z(fe.object.textEditorModel,N.a.lift(Ee),Te);ie(me)}catch(ye){Q(ye)}}).finally(function(){fe.dispose()})})})}function g(q,Z){G.a.registerCommand(q,function(ce){for(var Te=[],Ve=1;Ve<arguments.length;Ve++)Te[Ve-1]=arguments[Ve];var Ee=Te[0],de=Te[1];Object(D.a)(re.a.isUri(Ee)),Object(D.a)(N.a.isIPosition(de));var se=ce.get(k.a).getModel(Ee);if(se){var fe=N.a.lift(de);return Z(se,fe,Te.slice(2))}return ce.get(U.a).createModelReference(Ee).then(function(ie){return new Promise(function(Q,me){try{var ye=Z(ie.object.textEditorModel,N.a.lift(de),Te.slice(2));Q(ye)}catch(He){me(He)}}).finally(function(){ie.dispose()})})})}function m(q,Z){G.a.registerCommand(q,function(ce){for(var Te=[],Ve=1;Ve<arguments.length;Ve++)Te[Ve-1]=arguments[Ve];var Ee=Te[0];Object(D.a)(re.a.isUri(Ee));var de=ce.get(k.a).getModel(Ee);return de?Z(de,Te.slice(1)):ce.get(U.a).createModelReference(Ee).then(function(se){return new Promise(function(fe,ie){try{var Q=Z(se.object.textEditorModel,Te.slice(1));fe(Q)}catch(me){ie(me)}}).finally(function(){se.dispose()})})})}function w(q){return Se.INSTANCE.registerEditorCommand(q),q}function B(q){Se.INSTANCE.registerEditorAction(new q)}function z(q){Se.INSTANCE.registerEditorAction(q)}function oe(q,Z){Se.INSTANCE.registerEditorContribution(q,Z)}var he;(function(q){function Z(de){return Se.INSTANCE.getEditorCommand(de)}q.getEditorCommand=Z;function ce(){return Se.INSTANCE.getEditorActions()}q.getEditorActions=ce;function Te(){return Se.INSTANCE.getEditorContributions()}q.getEditorContributions=Te;function Ve(de){return Se.INSTANCE.getEditorContributions().filter(function(se){return de.indexOf(se.id)>=0})}q.getSomeEditorContributions=Ve;function Ee(){return Se.INSTANCE.getDiffEditorContributions()}q.getDiffEditorContributions=Ee})(he||(he={}));var _e={EditorCommonContributions:"editor.contributions"},Se=function(){function q(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return q.prototype.registerEditorContribution=function(Z,ce){this.editorContributions.push({id:Z,ctor:ce})},q.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},q.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},q.prototype.registerEditorAction=function(Z){Z.register(),this.editorActions.push(Z)},q.prototype.getEditorActions=function(){return this.editorActions.slice(0)},q.prototype.registerEditorCommand=function(Z){Z.register(),this.editorCommands[Z.id]=Z},q.prototype.getEditorCommand=function(Z){return this.editorCommands[Z]||null},q.INSTANCE=new q,q}();x.a.add(_e.EditorCommonContributions,Se.INSTANCE)},synD:function(wt,P,o){},t49l:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("textModelService")},t9D7:function(wt,P,o){"use strict";o.d(P,"c",function(){return k}),o.d(P,"f",function(){return U}),o.d(P,"b",function(){return G}),o.d(P,"d",function(){return R}),o.d(P,"a",function(){return _}),o.d(P,"e",function(){return D});var I=o("Cg/j"),re=o("pmY6"),ne=o("ic2d"),N=o("MI8n"),k=Object(I.c)("themeService");function U(A){return{id:A}}var j="dark",G="hc";function R(A){switch(A){case j:return"vs-dark";case G:return"hc-black";default:return"vs"}}var _={ThemingContribution:"base.contributions.theming"},x=function(){function A(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new N.a}return A.prototype.onThemeChange=function(te){var H=this;return this.themingParticipants.push(te),this.onThemingParticipantAddedEmitter.fire(te),Object(re.h)(function(){var E=H.themingParticipants.indexOf(te);H.themingParticipants.splice(E,1)})},A.prototype.getThemingParticipants=function(){return this.themingParticipants},A}(),K=new x;ne.a.add(_.ThemingContribution,K);function D(A){return K.onThemeChange(A)}},tADe:function(wt,P,o){"use strict";o.d(P,"c",function(){return N}),o.d(P,"a",function(){return k}),o.d(P,"b",function(){return U});var I=o("Cg/j"),re=o("3/fG"),ne=o("S3by"),N;(function(j){j[j.Hint=1]="Hint",j[j.Info=2]="Info",j[j.Warning=4]="Warning",j[j.Error=8]="Error"})(N||(N={})),function(j){function G(D,A){return A-D}j.compare=G;var R=Object.create(null);R[j.Error]=Object(re.a)("sev.error","Error"),R[j.Warning]=Object(re.a)("sev.warning","Warning"),R[j.Info]=Object(re.a)("sev.info","Info");function _(D){return R[D]||""}j.toString=_;function x(D){switch(D){case ne.a.Error:return j.Error;case ne.a.Warning:return j.Warning;case ne.a.Info:return j.Info;case ne.a.Ignore:return j.Hint}}j.fromSeverity=x;function K(D){switch(D){case j.Error:return ne.a.Error;case j.Warning:return ne.a.Warning;case j.Info:return ne.a.Info;case j.Hint:return ne.a.Ignore}}j.toSeverity=K}(N||(N={}));var k;(function(j){var G="";function R(x){return _(x,!0)}j.makeKey=R;function _(x,K){var D=[G];return x.source?D.push(x.source.replace("\xA6","\xA6")):D.push(G),x.code?typeof x.code=="string"?D.push(x.code.replace("\xA6","\xA6")):D.push(x.code.value.replace("\xA6","\xA6")):D.push(G),x.severity!==void 0&&x.severity!==null?D.push(N.toString(x.severity)):D.push(G),x.message&&K?D.push(x.message.replace("\xA6","\xA6")):D.push(G),x.startLineNumber!==void 0&&x.startLineNumber!==null?D.push(x.startLineNumber.toString()):D.push(G),x.startColumn!==void 0&&x.startColumn!==null?D.push(x.startColumn.toString()):D.push(G),x.endLineNumber!==void 0&&x.endLineNumber!==null?D.push(x.endLineNumber.toString()):D.push(G),x.endColumn!==void 0&&x.endColumn!==null?D.push(x.endColumn.toString()):D.push(G),D.push(G),D.join("\xA6")}j.makeKeyOptionalMessage=_})(k||(k={}));var U=Object(I.c)("markerService")},tTk5:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("editorProgressService")},tX9W:function(wt,P,o){"use strict";o.d(P,"b",function(){return Gi}),o.d(P,"a",function(){return Di});var I=o("/cxE"),re=o("MI8n"),ne=o("pmY6"),N=o("N0LK"),k=o("bY76"),U=o("/UlZ"),j=o("cGHE"),G=o("aokT"),R=o("gCVg"),_=o("M1Kb"),x=function(){function Qe(O,M){this.beforeVersionId=O,this.beforeCursorState=M,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return Qe.prototype.undo=function(O){for(var M=this.editOperations.length-1;M>=0;M--)this.editOperations[M]={operations:O.applyEdits(this.editOperations[M].operations)}},Qe.prototype.redo=function(O){for(var M=0;M<this.editOperations.length;M++)this.editOperations[M]={operations:O.applyEdits(this.editOperations[M].operations)}},Qe}();function K(Qe){var O=Qe.getEOL();return O===`
`?0:1}var D=function(){function Qe(O,M){this.beforeVersionId=O,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=M}return Qe.prototype.undo=function(O){var M=K(O);O.setEOL(this.eol),this.eol=M},Qe.prototype.redo=function(O){var M=K(O);O.setEOL(this.eol),this.eol=M},Qe}(),A=function(){function Qe(O){this.model=O,this.currentOpenStackElement=null,this.past=[],this.future=[]}return Qe.prototype.pushStackElement=function(){this.currentOpenStackElement!==null&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},Qe.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},Qe.prototype.pushEOL=function(O){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var M=K(this.model),Y=new D(this.model.getAlternativeVersionId(),M);this.model.setEOL(O),Y.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=Y,this.pushStackElement()},Qe.prototype.pushEditOperation=function(O,M,Y){this.future=[];var De=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof x?De=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(De=new x(this.model.getAlternativeVersionId(),O),this.currentOpenStackElement=De);var Re={operations:this.model.applyEdits(M)};return De.editOperations.push(Re),De.afterCursorState=Qe._computeCursorState(Y,Re.operations),De.afterVersionId=this.model.getVersionId(),De.afterCursorState},Qe._computeCursorState=function(O,M){try{return O?O(M):null}catch(Y){return Object(I.e)(Y),null}},Qe.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var O=this.past.pop();try{O.undo(this.model)}catch(M){return Object(I.e)(M),this.clear(),null}return this.future.push(O),{selections:O.beforeCursorState,recordedVersionId:O.beforeVersionId}}return null},Qe.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},Qe.prototype.redo=function(){if(this.future.length>0){var O=this.future.pop();try{O.redo(this.model)}catch(M){return Object(I.e)(M),this.clear(),null}return this.past.push(O),{selections:O.afterCursorState,recordedVersionId:O.afterVersionId}}return null},Qe.prototype.canRedo=function(){return this.future.length>0},Qe}(),te=function(){function Qe(){this.spacesDiff=0,this.looksLikeAlignment=!1}return Qe}();function H(Qe,O,M,Y,De){De.spacesDiff=0,De.looksLikeAlignment=!1;var Re;for(Re=0;Re<O&&Re<Y;Re++){var We=Qe.charCodeAt(Re),ft=M.charCodeAt(Re);if(We!==ft)break}for(var lt=0,yt=0,xt=Re;xt<O;xt++){var We=Qe.charCodeAt(xt);We===32?lt++:yt++}for(var It=0,Ft=0,xt=Re;xt<Y;xt++){var ft=M.charCodeAt(xt);ft===32?It++:Ft++}if(lt>0&&yt>0)return;if(It>0&&Ft>0)return;var Yt=Math.abs(yt-Ft),Zt=Math.abs(lt-It);if(Yt===0){De.spacesDiff=Zt,Zt>0&&0<=It-1&&It-1<Qe.length&&It<M.length&&(M.charCodeAt(It)!==32&&Qe.charCodeAt(It-1)===32&&(Qe.charCodeAt(Qe.length-1)===44&&(De.looksLikeAlignment=!0)));return}if(Zt%Yt===0){De.spacesDiff=Zt/Yt;return}}function E(Qe,O,M){for(var Y=Math.min(Qe.getLineCount(),1e4),De=0,Re=0,We="",ft=0,lt=[2,4,6,8,3,5,7],yt=8,xt=[0,0,0,0,0,0,0,0,0],It=new te,Ft=1;Ft<=Y;Ft++){for(var Yt=Qe.getLineLength(Ft),Zt=Qe.getLineContent(Ft),un=Yt<=65536,fn=!1,An=0,gn=0,Tn=0,xn=0,Le=Yt;xn<Le;xn++){var W=un?Zt.charCodeAt(xn):Qe.getLineCharCode(Ft,xn);if(W===9)Tn++;else if(W===32)gn++;else{fn=!0,An=xn;break}}if(!fn)continue;if(Tn>0?De++:gn>1&&Re++,H(We,ft,Zt,An,It),It.looksLikeAlignment&&!(M&&O===It.spacesDiff))continue;var ae=It.spacesDiff;ae<=yt&&xt[ae]++,We=Zt,ft=An}var ke=M;De!==Re&&(ke=De<Re);var qe=O;if(ke){var ct=ke?0:.1*Y;lt.forEach(function(St){var Ge=xt[St];Ge>ct&&(ct=Ge,qe=St)}),qe===4&&xt[4]>0&&xt[2]>0&&xt[2]>=xt[4]/2&&(qe=2)}return{insertSpaces:ke,tabSize:qe}}function f(Qe){return(Qe.metadata&1)>>>0}function p(Qe,O){Qe.metadata=Qe.metadata&254|O<<0}function g(Qe){return(Qe.metadata&2)>>>1===1}function m(Qe,O){Qe.metadata=Qe.metadata&253|(O?1:0)<<1}function w(Qe){return(Qe.metadata&4)>>>2===1}function B(Qe,O){Qe.metadata=Qe.metadata&251|(O?1:0)<<2}function z(Qe){return(Qe.metadata&8)>>>3===1}function oe(Qe,O){Qe.metadata=Qe.metadata&247|(O?1:0)<<3}function he(Qe){return(Qe.metadata&48)>>>4}function _e(Qe,O){Qe.metadata=Qe.metadata&207|O<<4}function Se(Qe){return(Qe.metadata&64)>>>6===1}function q(Qe,O){Qe.metadata=Qe.metadata&191|(O?1:0)<<6}var Z=function(){function Qe(O,M,Y){this.metadata=0,this.parent=this,this.left=this,this.right=this,p(this,1),this.start=M,this.end=Y,this.delta=0,this.maxEnd=Y,this.id=O,this.ownerId=0,this.options=null,B(this,!1),_e(this,1),oe(this,!1),q(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=Y,this.range=null,m(this,!1)}return Qe.prototype.reset=function(O,M,Y,De){this.start=M,this.end=Y,this.maxEnd=Y,this.cachedVersionId=O,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=Y,this.range=De},Qe.prototype.setOptions=function(O){this.options=O;var M=this.options.className;B(this,M==="squiggly-error"||M==="squiggly-warning"||M==="squiggly-info"),_e(this,this.options.stickiness),oe(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),q(this,this.options.collapseOnReplaceEdit)},Qe.prototype.setCachedOffsets=function(O,M,Y){this.cachedVersionId!==Y&&(this.range=null),this.cachedVersionId=Y,this.cachedAbsoluteStart=O,this.cachedAbsoluteEnd=M},Qe.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},Qe}(),ce=new Z(null,0,0);ce.parent=ce,ce.left=ce,ce.right=ce,p(ce,0);var Te=function(){function Qe(){this.root=ce,this.requestNormalizeDelta=!1}return Qe.prototype.intervalSearch=function(O,M,Y,De,Re){return this.root===ce?[]:ye(this,O,M,Y,De,Re)},Qe.prototype.search=function(O,M,Y){return this.root===ce?[]:me(this,O,M,Y)},Qe.prototype.collectNodesFromOwner=function(O){return ie(this,O)},Qe.prototype.collectNodesPostOrder=function(){return Q(this)},Qe.prototype.insert=function(O){He(this,O),this._normalizeDeltaIfNecessary()},Qe.prototype.delete=function(O){Et(this,O),this._normalizeDeltaIfNecessary()},Qe.prototype.resolveNode=function(O,M){for(var Y=O,De=0;O!==this.root;)O===O.parent.right&&(De+=O.parent.delta),O=O.parent;var Re=Y.start+De,We=Y.end+De;Y.setCachedOffsets(Re,We,M)},Qe.prototype.acceptReplace=function(O,M,Y,De){for(var Re=se(this,O,O+M),We=0,ft=Re.length;We<ft;We++){var lt=Re[We];Et(this,lt)}this._normalizeDeltaIfNecessary(),fe(this,O,O+M,Y),this._normalizeDeltaIfNecessary();for(var We=0,ft=Re.length;We<ft;We++){var lt=Re[We];lt.start=lt.cachedAbsoluteStart,lt.end=lt.cachedAbsoluteEnd,de(lt,O,O+M,Y,De),lt.maxEnd=lt.end,He(this,lt)}this._normalizeDeltaIfNecessary()},Qe.prototype._normalizeDeltaIfNecessary=function(){if(!this.requestNormalizeDelta)return;this.requestNormalizeDelta=!1,Ve(this)},Qe}();function Ve(Qe){for(var O=Qe.root,M=0;O!==ce;){if(O.left!==ce&&!g(O.left)){O=O.left;continue}if(O.right!==ce&&!g(O.right)){M+=O.delta,O=O.right;continue}O.start=M+O.start,O.end=M+O.end,O.delta=0,Ye(O),m(O,!0),m(O.left,!1),m(O.right,!1),O===O.parent.right&&(M-=O.parent.delta),O=O.parent}m(Qe.root,!1)}function Ee(Qe,O,M,Y){return Qe<M?!0:Qe>M||Y===1?!1:Y===2?!0:O}function de(Qe,O,M,Y,De){var Re=he(Qe),We=Re===0||Re===2,ft=Re===1||Re===2,lt=M-O,yt=Y,xt=Math.min(lt,yt),It=Qe.start,Ft=!1,Yt=Qe.end,Zt=!1;O<=It&&Yt<=M&&Se(Qe)&&(Qe.start=O,Ft=!0,Qe.end=O,Zt=!0);{var un=De?1:lt>0?2:0;!Ft&&Ee(It,We,O,un)&&(Ft=!0),!Zt&&Ee(Yt,ft,O,un)&&(Zt=!0)}if(xt>0&&!De){var un=lt>yt?2:0;!Ft&&Ee(It,We,O+xt,un)&&(Ft=!0),!Zt&&Ee(Yt,ft,O+xt,un)&&(Zt=!0)}{var un=De?1:0;!Ft&&Ee(It,We,M,un)&&(Qe.start=O+yt,Ft=!0),!Zt&&Ee(Yt,ft,M,un)&&(Qe.end=O+yt,Zt=!0)}var fn=yt-lt;Ft||(Qe.start=Math.max(0,It+fn)),Zt||(Qe.end=Math.max(0,Yt+fn)),Qe.start>Qe.end&&(Qe.end=Qe.start)}function se(Qe,O,M){for(var Y=Qe.root,De=0,Re=0,We=0,ft=0,lt=[],yt=0;Y!==ce;){if(g(Y)){m(Y.left,!1),m(Y.right,!1),Y===Y.parent.right&&(De-=Y.parent.delta),Y=Y.parent;continue}if(!g(Y.left)){if(Re=De+Y.maxEnd,Re<O){m(Y,!0);continue}if(Y.left!==ce){Y=Y.left;continue}}if(We=De+Y.start,We>M){m(Y,!0);continue}if(ft=De+Y.end,ft>=O&&(Y.setCachedOffsets(We,ft,0),lt[yt++]=Y),m(Y,!0),Y.right!==ce&&!g(Y.right)){De+=Y.delta,Y=Y.right;continue}}return m(Qe.root,!1),lt}function fe(Qe,O,M,Y){for(var De=Qe.root,Re=0,We=0,ft=0,lt=Y-(M-O);De!==ce;){if(g(De)){m(De.left,!1),m(De.right,!1),De===De.parent.right&&(Re-=De.parent.delta),Ye(De),De=De.parent;continue}if(!g(De.left)){if(We=Re+De.maxEnd,We<O){m(De,!0);continue}if(De.left!==ce){De=De.left;continue}}if(ft=Re+De.start,ft>M){De.start+=lt,De.end+=lt,De.delta+=lt,(De.delta<-1073741824||De.delta>1073741824)&&(Qe.requestNormalizeDelta=!0),m(De,!0);continue}if(m(De,!0),De.right!==ce&&!g(De.right)){Re+=De.delta,De=De.right;continue}}m(Qe.root,!1)}function ie(Qe,O){for(var M=Qe.root,Y=[],De=0;M!==ce;){if(g(M)){m(M.left,!1),m(M.right,!1),M=M.parent;continue}if(M.left!==ce&&!g(M.left)){M=M.left;continue}if(M.ownerId===O&&(Y[De++]=M),m(M,!0),M.right!==ce&&!g(M.right)){M=M.right;continue}}return m(Qe.root,!1),Y}function Q(Qe){for(var O=Qe.root,M=[],Y=0;O!==ce;){if(g(O)){m(O.left,!1),m(O.right,!1),O=O.parent;continue}if(O.left!==ce&&!g(O.left)){O=O.left;continue}if(O.right!==ce&&!g(O.right)){O=O.right;continue}M[Y++]=O,m(O,!0)}return m(Qe.root,!1),M}function me(Qe,O,M,Y){for(var De=Qe.root,Re=0,We=0,ft=0,lt=[],yt=0;De!==ce;){if(g(De)){m(De.left,!1),m(De.right,!1),De===De.parent.right&&(Re-=De.parent.delta),De=De.parent;continue}if(De.left!==ce&&!g(De.left)){De=De.left;continue}We=Re+De.start,ft=Re+De.end,De.setCachedOffsets(We,ft,Y);var xt=!0;if(O&&De.ownerId&&De.ownerId!==O&&(xt=!1),M&&w(De)&&(xt=!1),xt&&(lt[yt++]=De),m(De,!0),De.right!==ce&&!g(De.right)){Re+=De.delta,De=De.right;continue}}return m(Qe.root,!1),lt}function ye(Qe,O,M,Y,De,Re){for(var We=Qe.root,ft=0,lt=0,yt=0,xt=0,It=[],Ft=0;We!==ce;){if(g(We)){m(We.left,!1),m(We.right,!1),We===We.parent.right&&(ft-=We.parent.delta),We=We.parent;continue}if(!g(We.left)){if(lt=ft+We.maxEnd,lt<O){m(We,!0);continue}if(We.left!==ce){We=We.left;continue}}if(yt=ft+We.start,yt>M){m(We,!0);continue}if(xt=ft+We.end,xt>=O){We.setCachedOffsets(yt,xt,Re);var Yt=!0;Y&&We.ownerId&&We.ownerId!==Y&&(Yt=!1),De&&w(We)&&(Yt=!1),Yt&&(It[Ft++]=We)}if(m(We,!0),We.right!==ce&&!g(We.right)){ft+=We.delta,We=We.right;continue}}return m(Qe.root,!1),It}function He(Qe,O){if(Qe.root===ce)return O.parent=ce,O.left=ce,O.right=ce,p(O,0),Qe.root=O,Qe.root;tt(Qe,O),Fe(O.parent);for(var M=O;M!==Qe.root&&f(M.parent)===1;)if(M.parent===M.parent.parent.left){var Y=M.parent.parent.right;f(Y)===1?(p(M.parent,0),p(Y,0),p(M.parent.parent,1),M=M.parent.parent):(M===M.parent.right&&(M=M.parent,Ke(Qe,M)),p(M.parent,0),p(M.parent.parent,1),Xe(Qe,M.parent.parent))}else{var Y=M.parent.parent.left;f(Y)===1?(p(M.parent,0),p(Y,0),p(M.parent.parent,1),M=M.parent.parent):(M===M.parent.left&&(M=M.parent,Xe(Qe,M)),p(M.parent,0),p(M.parent.parent,1),Ke(Qe,M.parent.parent))}return p(Qe.root,0),O}function tt(Qe,O){for(var M=0,Y=Qe.root,De=O.start,Re=O.end;;){var We=$e(De,Re,Y.start+M,Y.end+M);if(We<0)if(Y.left===ce){O.start-=M,O.end-=M,O.maxEnd-=M,Y.left=O;break}else Y=Y.left;else if(Y.right===ce){O.start-=M+Y.delta,O.end-=M+Y.delta,O.maxEnd-=M+Y.delta,Y.right=O;break}else M+=Y.delta,Y=Y.right}O.parent=Y,O.left=ce,O.right=ce,p(O,1)}function Et(Qe,O){var M,Y;if(O.left===ce?(M=O.right,Y=O,M.delta+=O.delta,(M.delta<-1073741824||M.delta>1073741824)&&(Qe.requestNormalizeDelta=!0),M.start+=O.delta,M.end+=O.delta):O.right===ce?(M=O.left,Y=O):(Y=Pt(O.right),M=Y.right,M.start+=Y.delta,M.end+=Y.delta,M.delta+=Y.delta,(M.delta<-1073741824||M.delta>1073741824)&&(Qe.requestNormalizeDelta=!0),Y.start+=O.delta,Y.end+=O.delta,Y.delta=O.delta,(Y.delta<-1073741824||Y.delta>1073741824)&&(Qe.requestNormalizeDelta=!0)),Y===Qe.root){Qe.root=M,p(M,0),O.detach(),Xt(),Ye(M),Qe.root.parent=ce;return}var De=f(Y)===1;if(Y===Y.parent.left?Y.parent.left=M:Y.parent.right=M,Y===O?M.parent=Y.parent:(Y.parent===O?M.parent=Y:M.parent=Y.parent,Y.left=O.left,Y.right=O.right,Y.parent=O.parent,p(Y,f(O)),O===Qe.root?Qe.root=Y:O===O.parent.left?O.parent.left=Y:O.parent.right=Y,Y.left!==ce&&(Y.left.parent=Y),Y.right!==ce&&(Y.right.parent=Y)),O.detach(),De){Fe(M.parent),Y!==O&&(Fe(Y),Fe(Y.parent)),Xt();return}Fe(M),Fe(M.parent),Y!==O&&(Fe(Y),Fe(Y.parent));for(var Re;M!==Qe.root&&f(M)===0;)M===M.parent.left?(Re=M.parent.right,f(Re)===1&&(p(Re,0),p(M.parent,1),Ke(Qe,M.parent),Re=M.parent.right),f(Re.left)===0&&f(Re.right)===0?(p(Re,1),M=M.parent):(f(Re.right)===0&&(p(Re.left,0),p(Re,1),Xe(Qe,Re),Re=M.parent.right),p(Re,f(M.parent)),p(M.parent,0),p(Re.right,0),Ke(Qe,M.parent),M=Qe.root)):(Re=M.parent.left,f(Re)===1&&(p(Re,0),p(M.parent,1),Xe(Qe,M.parent),Re=M.parent.left),f(Re.left)===0&&f(Re.right)===0?(p(Re,1),M=M.parent):(f(Re.left)===0&&(p(Re.right,0),p(Re,1),Ke(Qe,Re),Re=M.parent.left),p(Re,f(M.parent)),p(M.parent,0),p(Re.left,0),Xe(Qe,M.parent),M=Qe.root));p(M,0),Xt()}function Pt(Qe){for(;Qe.left!==ce;)Qe=Qe.left;return Qe}function Xt(){ce.parent=ce,ce.delta=0,ce.start=0,ce.end=0}function Ke(Qe,O){var M=O.right;M.delta+=O.delta,(M.delta<-1073741824||M.delta>1073741824)&&(Qe.requestNormalizeDelta=!0),M.start+=O.delta,M.end+=O.delta,O.right=M.left,M.left!==ce&&(M.left.parent=O),M.parent=O.parent,O.parent===ce?Qe.root=M:O===O.parent.left?O.parent.left=M:O.parent.right=M,M.left=O,O.parent=M,Ye(O),Ye(M)}function Xe(Qe,O){var M=O.left;O.delta-=M.delta,(O.delta<-1073741824||O.delta>1073741824)&&(Qe.requestNormalizeDelta=!0),O.start-=M.delta,O.end-=M.delta,O.left=M.right,M.right!==ce&&(M.right.parent=O),M.parent=O.parent,O.parent===ce?Qe.root=M:O===O.parent.right?O.parent.right=M:O.parent.left=M,M.right=O,O.parent=M,Ye(O),Ye(M)}function Ze(Qe){var O=Qe.end;if(Qe.left!==ce){var M=Qe.left.maxEnd;M>O&&(O=M)}if(Qe.right!==ce){var Y=Qe.right.maxEnd+Qe.delta;Y>O&&(O=Y)}return O}function Ye(Qe){Qe.maxEnd=Ze(Qe)}function Fe(Qe){for(;Qe!==ce;){var O=Ze(Qe);if(Qe.maxEnd===O)return;Qe.maxEnd=O,Qe=Qe.parent}}function $e(Qe,O,M,Y){return Qe===M?O-Y:Qe-M}var we=function(){function Qe(O,M){this.piece=O,this.color=M,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return Qe.prototype.next=function(){if(this.right!==F)return ee(this.right);for(var O=this;O.parent!==F&&!(O.parent.left===O);)O=O.parent;return O.parent===F?F:O.parent},Qe.prototype.prev=function(){if(this.left!==F)return Pe(this.left);for(var O=this;O.parent!==F&&!(O.parent.right===O);)O=O.parent;return O.parent===F?F:O.parent},Qe.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},Qe}(),F=new we(null,0);F.parent=F,F.left=F,F.right=F,F.color=0;function ee(Qe){for(;Qe.left!==F;)Qe=Qe.left;return Qe}function Pe(Qe){for(;Qe.right!==F;)Qe=Qe.right;return Qe}function ve(Qe){return Qe===F?0:Qe.size_left+Qe.piece.length+ve(Qe.right)}function Me(Qe){return Qe===F?0:Qe.lf_left+Qe.piece.lineFeedCnt+Me(Qe.right)}function Ie(){F.parent=F}function pe(Qe,O){var M=O.right;M.size_left+=O.size_left+(O.piece?O.piece.length:0),M.lf_left+=O.lf_left+(O.piece?O.piece.lineFeedCnt:0),O.right=M.left,M.left!==F&&(M.left.parent=O),M.parent=O.parent,O.parent===F?Qe.root=M:O.parent.left===O?O.parent.left=M:O.parent.right=M,M.left=O,O.parent=M}function nt(Qe,O){var M=O.left;O.left=M.right,M.right!==F&&(M.right.parent=O),M.parent=O.parent,O.size_left-=M.size_left+(M.piece?M.piece.length:0),O.lf_left-=M.lf_left+(M.piece?M.piece.lineFeedCnt:0),O.parent===F?Qe.root=M:O===O.parent.right?O.parent.right=M:O.parent.left=M,M.right=O,O.parent=M}function _t(Qe,O){var M,Y;if(O.left===F?(Y=O,M=Y.right):O.right===F?(Y=O,M=Y.left):(Y=ee(O.right),M=Y.right),Y===Qe.root){Qe.root=M,M.color=0,O.detach(),Ie(),Qe.root.parent=F;return}var De=Y.color===1;if(Y===Y.parent.left?Y.parent.left=M:Y.parent.right=M,Y===O?(M.parent=Y.parent,zt(Qe,M)):(Y.parent===O?M.parent=Y:M.parent=Y.parent,zt(Qe,M),Y.left=O.left,Y.right=O.right,Y.parent=O.parent,Y.color=O.color,O===Qe.root?Qe.root=Y:O===O.parent.left?O.parent.left=Y:O.parent.right=Y,Y.left!==F&&(Y.left.parent=Y),Y.right!==F&&(Y.right.parent=Y),Y.size_left=O.size_left,Y.lf_left=O.lf_left,zt(Qe,Y)),O.detach(),M.parent.left===M){var Re=ve(M),We=Me(M);if(Re!==M.parent.size_left||We!==M.parent.lf_left){var ft=Re-M.parent.size_left,lt=We-M.parent.lf_left;M.parent.size_left=Re,M.parent.lf_left=We,Mt(Qe,M.parent,ft,lt)}}if(zt(Qe,M.parent),De){Ie();return}for(var yt;M!==Qe.root&&M.color===0;)M===M.parent.left?(yt=M.parent.right,yt.color===1&&(yt.color=0,M.parent.color=1,pe(Qe,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(Qe,yt),yt=M.parent.right),yt.color=M.parent.color,M.parent.color=0,yt.right.color=0,pe(Qe,M.parent),M=Qe.root)):(yt=M.parent.left,yt.color===1&&(yt.color=0,M.parent.color=1,nt(Qe,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,pe(Qe,yt),yt=M.parent.left),yt.color=M.parent.color,M.parent.color=0,yt.left.color=0,nt(Qe,M.parent),M=Qe.root));M.color=0,Ie()}function Rt(Qe,O){for(zt(Qe,O);O!==Qe.root&&O.parent.color===1;)if(O.parent===O.parent.parent.left){var M=O.parent.parent.right;M.color===1?(O.parent.color=0,M.color=0,O.parent.parent.color=1,O=O.parent.parent):(O===O.parent.right&&(O=O.parent,pe(Qe,O)),O.parent.color=0,O.parent.parent.color=1,nt(Qe,O.parent.parent))}else{var M=O.parent.parent.left;M.color===1?(O.parent.color=0,M.color=0,O.parent.parent.color=1,O=O.parent.parent):(O===O.parent.left&&(O=O.parent,nt(Qe,O)),O.parent.color=0,O.parent.parent.color=1,pe(Qe,O.parent.parent))}Qe.root.color=0}function Mt(Qe,O,M,Y){for(;O!==Qe.root&&O!==F;)O.parent.left===O&&(O.parent.size_left+=M,O.parent.lf_left+=Y),O=O.parent}function zt(Qe,O){var M=0,Y=0;if(O===Qe.root)return;if(M===0){for(;O!==Qe.root&&O===O.parent.right;)O=O.parent;if(O===Qe.root)return;O=O.parent,M=ve(O.left)-O.size_left,Y=Me(O.left)-O.lf_left,O.size_left+=M,O.lf_left+=Y}for(;O!==Qe.root&&(M!==0||Y!==0);)O.parent.left===O&&(O.parent.size_left+=M,O.parent.lf_left+=Y),O=O.parent}var Gt=o("jAJ/"),on=65535;function Ln(Qe){var O;return Qe[Qe.length-1]<65536?O=new Uint16Array(Qe.length):O=new Uint32Array(Qe.length),O.set(Qe,0),O}var yn=function(){function Qe(O,M,Y,De,Re){this.lineStarts=O,this.cr=M,this.lf=Y,this.crlf=De,this.isBasicASCII=Re}return Qe}();function Mn(Qe,O){O===void 0&&(O=!0);for(var M=[0],Y=1,De=0,Re=Qe.length;De<Re;De++){var We=Qe.charCodeAt(De);We===13?De+1<Re&&Qe.charCodeAt(De+1)===10?(M[Y++]=De+2,De++):M[Y++]=De+1:We===10&&(M[Y++]=De+1)}return O?Ln(M):M}function kt(Qe,O){Qe.length=0,Qe[0]=0;for(var M=1,Y=0,De=0,Re=0,We=!0,ft=0,lt=O.length;ft<lt;ft++){var yt=O.charCodeAt(ft);yt===13?ft+1<lt&&O.charCodeAt(ft+1)===10?(Re++,Qe[M++]=ft+2,ft++):(Y++,Qe[M++]=ft+1):yt===10?(De++,Qe[M++]=ft+1):We&&(yt!==9&&(yt<32||yt>126)&&(We=!1))}var xt=new yn(Ln(Qe),Y,De,Re,We);return Qe.length=0,xt}var pt=function(){function Qe(O,M,Y,De,Re){this.bufferIndex=O,this.start=M,this.end=Y,this.lineFeedCnt=De,this.length=Re}return Qe}(),gt=function(){function Qe(O,M){this.buffer=O,this.lineStarts=M}return Qe}(),Dt=function(){function Qe(O){this._limit=O,this._cache=[]}return Qe.prototype.get=function(O){for(var M=this._cache.length-1;M>=0;M--){var Y=this._cache[M];if(Y.nodeStartOffset<=O&&Y.nodeStartOffset+Y.node.piece.length>=O)return Y}return null},Qe.prototype.get2=function(O){for(var M=this._cache.length-1;M>=0;M--){var Y=this._cache[M];if(Y.nodeStartLineNumber&&Y.nodeStartLineNumber<O&&Y.nodeStartLineNumber+Y.node.piece.lineFeedCnt>=O)return Y}return null},Qe.prototype.set=function(O){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(O)},Qe.prototype.valdiate=function(O){for(var M=!1,Y=this._cache,De=0;De<Y.length;De++){var Re=Y[De];if(Re.node.parent===null||Re.nodeStartOffset>=O){Y[De]=null,M=!0;continue}}if(M){for(var We=[],ft=0,lt=Y;ft<lt.length;ft++){var yt=lt[ft];yt!==null&&We.push(yt)}this._cache=We}},Qe}(),Lt=function(){function Qe(O,M,Y){this.create(O,M,Y)}return Qe.prototype.create=function(O,M,Y){this._buffers=[new gt("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=F,this._lineCnt=1,this._length=0,this._EOL=M,this._EOLLength=M.length,this._EOLNormalized=Y;for(var De=null,Re=0,We=O.length;Re<We;Re++)if(O[Re].buffer.length>0){O[Re].lineStarts||(O[Re].lineStarts=Mn(O[Re].buffer));var ft=new pt(Re+1,{line:0,column:0},{line:O[Re].lineStarts.length-1,column:O[Re].buffer.length-O[Re].lineStarts[O[Re].lineStarts.length-1]},O[Re].lineStarts.length-1,O[Re].buffer.length);this._buffers.push(O[Re]),De=this.rbInsertRight(De,ft)}this._searchCache=new Dt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},Qe.prototype.normalizeEOL=function(O){var M=this,Y=on,De=Y-Math.floor(Y/3),Re=De*2,We="",ft=0,lt=[];if(this.iterate(this.root,function(xt){var It=M.getNodeContent(xt),Ft=It.length;if(ft<=De||ft+Ft<Re)return We+=It,ft+=Ft,!0;var Yt=We.replace(/\r\n|\r|\n/g,O);return lt.push(new gt(Yt,Mn(Yt))),We=It,ft=Ft,!0}),ft>0){var yt=We.replace(/\r\n|\r|\n/g,O);lt.push(new gt(yt,Mn(yt)))}this.create(lt,O,!0)},Qe.prototype.getEOL=function(){return this._EOL},Qe.prototype.setEOL=function(O){this._EOL=O,this._EOLLength=this._EOL.length,this.normalizeEOL(O)},Qe.prototype.getOffsetAt=function(O,M){for(var Y=0,De=this.root;De!==F;)if(De.left!==F&&De.lf_left+1>=O)De=De.left;else if(De.lf_left+De.piece.lineFeedCnt+1>=O){Y+=De.size_left;var Re=this.getAccumulatedValue(De,O-De.lf_left-2);return Y+=Re+M-1}else O-=De.lf_left+De.piece.lineFeedCnt,Y+=De.size_left+De.piece.length,De=De.right;return Y},Qe.prototype.getPositionAt=function(O){O=Math.floor(O),O=Math.max(0,O);for(var M=this.root,Y=0,De=O;M!==F;)if(M.size_left!==0&&M.size_left>=O)M=M.left;else if(M.size_left+M.piece.length>=O){var Re=this.getIndexOf(M,O-M.size_left);if(Y+=M.lf_left+Re.index,Re.index===0){var We=this.getOffsetAt(Y+1,1),ft=De-We;return new j.a(Y+1,ft+1)}return new j.a(Y+1,Re.remainder+1)}else if(O-=M.size_left+M.piece.length,Y+=M.lf_left+M.piece.lineFeedCnt,M.right===F){var We=this.getOffsetAt(Y+1,1),ft=De-O-We;return new j.a(Y+1,ft+1)}else M=M.right;return new j.a(1,1)},Qe.prototype.getValueInRange=function(O,M){if(O.startLineNumber===O.endLineNumber&&O.startColumn===O.endColumn)return"";var Y=this.nodeAt2(O.startLineNumber,O.startColumn),De=this.nodeAt2(O.endLineNumber,O.endColumn),Re=this.getValueInRange2(Y,De);return M?M!==this._EOL||!this._EOLNormalized?Re.replace(/\r\n|\r|\n/g,M):M===this.getEOL()&&this._EOLNormalized?(M===`\r
`,Re):Re.replace(/\r\n|\r|\n/g,M):Re},Qe.prototype.getValueInRange2=function(O,M){if(O.node===M.node){var Y=O.node,De=this._buffers[Y.piece.bufferIndex].buffer,Re=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return De.substring(Re+O.remainder,Re+M.remainder)}var We=O.node,ft=this._buffers[We.piece.bufferIndex].buffer,lt=this.offsetInBuffer(We.piece.bufferIndex,We.piece.start),yt=ft.substring(lt+O.remainder,lt+We.piece.length);for(We=We.next();We!==F;){var xt=this._buffers[We.piece.bufferIndex].buffer,It=this.offsetInBuffer(We.piece.bufferIndex,We.piece.start);if(We===M.node){yt+=xt.substring(It,It+M.remainder);break}else yt+=xt.substr(It,We.piece.length);We=We.next()}return yt},Qe.prototype.getLinesContent=function(){var O=this,M=[],Y=0,De="",Re=!1;return this.iterate(this.root,function(We){if(We===F)return!0;var ft=We.piece,lt=ft.length;if(lt===0)return!0;var yt=O._buffers[ft.bufferIndex].buffer,xt=O._buffers[ft.bufferIndex].lineStarts,It=ft.start.line,Ft=ft.end.line,Yt=xt[It]+ft.start.column;if(Re&&(yt.charCodeAt(Yt)===10&&(Yt++,lt--),M[Y++]=De,De="",Re=!1,lt===0))return!0;if(It===Ft)return!O._EOLNormalized&&yt.charCodeAt(Yt+lt-1)===13?(Re=!0,De+=yt.substr(Yt,lt-1)):De+=yt.substr(Yt,lt),!0;De+=O._EOLNormalized?yt.substring(Yt,Math.max(Yt,xt[It+1]-O._EOLLength)):yt.substring(Yt,xt[It+1]).replace(/(\r\n|\r|\n)$/,""),M[Y++]=De;for(var Zt=It+1;Zt<Ft;Zt++)De=O._EOLNormalized?yt.substring(xt[Zt],xt[Zt+1]-O._EOLLength):yt.substring(xt[Zt],xt[Zt+1]).replace(/(\r\n|\r|\n)$/,""),M[Y++]=De;return!O._EOLNormalized&&yt.charCodeAt(xt[Ft]+ft.end.column-1)===13?(Re=!0,ft.end.column===0?Y--:De=yt.substr(xt[Ft],ft.end.column-1)):De=yt.substr(xt[Ft],ft.end.column),!0}),Re&&(M[Y++]=De,De=""),M[Y++]=De,M},Qe.prototype.getLength=function(){return this._length},Qe.prototype.getLineCount=function(){return this._lineCnt},Qe.prototype.getLineContent=function(O){return this._lastVisitedLine.lineNumber===O?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=O,O===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(O):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(O,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(O).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},Qe.prototype.getLineCharCode=function(O,M){var Y=this.nodeAt2(O,M+1);if(Y.remainder===Y.node.piece.length){var De=Y.node.next();if(!De)return 0;var Re=this._buffers[De.piece.bufferIndex],We=this.offsetInBuffer(De.piece.bufferIndex,De.piece.start);return Re.buffer.charCodeAt(We)}else{var Re=this._buffers[Y.node.piece.bufferIndex],We=this.offsetInBuffer(Y.node.piece.bufferIndex,Y.node.piece.start),ft=We+Y.remainder;return Re.buffer.charCodeAt(ft)}},Qe.prototype.getLineLength=function(O){if(O===this.getLineCount()){var M=this.getOffsetAt(O,1);return this.getLength()-M}return this.getOffsetAt(O+1,1)-this.getOffsetAt(O,1)-this._EOLLength},Qe.prototype.findMatchesInNode=function(O,M,Y,De,Re,We,ft,lt,yt,xt,It){var Ft=this._buffers[O.piece.bufferIndex],Yt=this.offsetInBuffer(O.piece.bufferIndex,O.piece.start),Zt=this.offsetInBuffer(O.piece.bufferIndex,Re),un=this.offsetInBuffer(O.piece.bufferIndex,We),fn,An={line:0,column:0},gn,Tn;M._wordSeparators?(gn=Ft.buffer.substring(Zt,un),Tn=function(ke){return ke+Zt},M.reset(-1)):(gn=Ft.buffer,Tn=function(ke){return ke},M.reset(Zt));do if(fn=M.next(gn),fn){if(Tn(fn.index)>=un)return xt;this.positionInBuffer(O,Tn(fn.index)-Yt,An);var xn=this.getLineFeedCnt(O.piece.bufferIndex,Re,An),Le=An.line===Re.line?An.column-Re.column+De:An.column+1,W=Le+fn[0].length;if(It[xt++]=Object(Gt.d)(new G.a(Y+xn,Le,Y+xn,W),fn,lt),Tn(fn.index)+fn[0].length>=un)return xt;if(xt>=yt)return xt}while(fn);return xt},Qe.prototype.findMatchesLineByLine=function(O,M,Y,De){var Re=[],We=0,ft=new Gt.b(M.wordSeparators,M.regex),lt=this.nodeAt2(O.startLineNumber,O.startColumn);if(lt===null)return[];var yt=this.nodeAt2(O.endLineNumber,O.endColumn);if(yt===null)return[];var xt=this.positionInBuffer(lt.node,lt.remainder),It=this.positionInBuffer(yt.node,yt.remainder);if(lt.node===yt.node)return this.findMatchesInNode(lt.node,ft,O.startLineNumber,O.startColumn,xt,It,M,Y,De,We,Re),Re;for(var Ft=O.startLineNumber,Yt=lt.node;Yt!==yt.node;){var Zt=this.getLineFeedCnt(Yt.piece.bufferIndex,xt,Yt.piece.end);if(Zt>=1){var un=this._buffers[Yt.piece.bufferIndex].lineStarts,fn=this.offsetInBuffer(Yt.piece.bufferIndex,Yt.piece.start),An=un[xt.line+Zt],gn=Ft===O.startLineNumber?O.startColumn:1;if(We=this.findMatchesInNode(Yt,ft,Ft,gn,xt,this.positionInBuffer(Yt,An-fn),M,Y,De,We,Re),We>=De)return Re;Ft+=Zt}var Tn=Ft===O.startLineNumber?O.startColumn-1:0;if(Ft===O.endLineNumber){var xn=this.getLineContent(Ft).substring(Tn,O.endColumn-1);return We=this._findMatchesInLine(M,ft,xn,O.endLineNumber,Tn,We,Re,Y,De),Re}if(We=this._findMatchesInLine(M,ft,this.getLineContent(Ft).substr(Tn),Ft,Tn,We,Re,Y,De),We>=De)return Re;Ft++,lt=this.nodeAt2(Ft,1),Yt=lt.node,xt=this.positionInBuffer(lt.node,lt.remainder)}if(Ft===O.endLineNumber){var Le=Ft===O.startLineNumber?O.startColumn-1:0,xn=this.getLineContent(Ft).substring(Le,O.endColumn-1);return We=this._findMatchesInLine(M,ft,xn,O.endLineNumber,Le,We,Re,Y,De),Re}var W=Ft===O.startLineNumber?O.startColumn:1;return We=this.findMatchesInNode(yt.node,ft,Ft,W,xt,It,M,Y,De,We,Re),Re},Qe.prototype._findMatchesInLine=function(O,M,Y,De,Re,We,ft,lt,yt){var xt=O.wordSeparators;if(!lt&&O.simpleSearch){for(var It=O.simpleSearch,Ft=It.length,Yt=Y.length,Zt=-Ft;(Zt=Y.indexOf(It,Zt+Ft))!==-1;)if((!xt||Object(Gt.e)(xt,Y,Yt,Zt,Ft))&&(ft[We++]=new _.b(new G.a(De,Zt+1+Re,De,Zt+1+Ft+Re),null),We>=yt))return We;return We}var un;M.reset(0);do if(un=M.next(Y),un&&(ft[We++]=Object(Gt.d)(new G.a(De,un.index+1+Re,De,un.index+1+un[0].length+Re),un,lt),We>=yt))return We;while(un);return We},Qe.prototype.insert=function(O,M,Y){if(Y===void 0&&(Y=!1),this._EOLNormalized=this._EOLNormalized&&Y,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==F){var De=this.nodeAt(O),Re=De.node,We=De.remainder,ft=De.nodeStartOffset,lt=Re.piece,yt=lt.bufferIndex,xt=this.positionInBuffer(Re,We);if(Re.piece.bufferIndex===0&&lt.end.line===this._lastChangeBufferPos.line&&lt.end.column===this._lastChangeBufferPos.column&&ft+lt.length===O&&M.length<on){this.appendToNode(Re,M),this.computeBufferMetadata();return}if(ft===O)this.insertContentToNodeLeft(M,Re),this._searchCache.valdiate(O);else if(ft+Re.piece.length>O){var It=[],Ft=new pt(lt.bufferIndex,xt,lt.end,this.getLineFeedCnt(lt.bufferIndex,xt,lt.end),this.offsetInBuffer(yt,lt.end)-this.offsetInBuffer(yt,xt));if(this.shouldCheckCRLF()&&this.endWithCR(M)){var Yt=this.nodeCharCodeAt(Re,We);if(Yt===10){var Zt={line:Ft.start.line+1,column:0};Ft=new pt(Ft.bufferIndex,Zt,Ft.end,this.getLineFeedCnt(Ft.bufferIndex,Zt,Ft.end),Ft.length-1),M+=`
`}}if(this.shouldCheckCRLF()&&this.startWithLF(M)){var un=this.nodeCharCodeAt(Re,We-1);if(un===13){var fn=this.positionInBuffer(Re,We-1);this.deleteNodeTail(Re,fn),M="\r"+M,Re.piece.length===0&&It.push(Re)}else this.deleteNodeTail(Re,xt)}else this.deleteNodeTail(Re,xt);var An=this.createNewPieces(M);Ft.length>0&&this.rbInsertRight(Re,Ft);for(var gn=Re,Tn=0;Tn<An.length;Tn++)gn=this.rbInsertRight(gn,An[Tn]);this.deleteNodes(It)}else this.insertContentToNodeRight(M,Re)}else for(var xn=this.createNewPieces(M),Re=this.rbInsertLeft(null,xn[0]),Tn=1;Tn<xn.length;Tn++)Re=this.rbInsertRight(Re,xn[Tn]);this.computeBufferMetadata()},Qe.prototype.delete=function(O,M){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",M<=0||this.root===F)return;var Y=this.nodeAt(O),De=this.nodeAt(O+M),Re=Y.node,We=De.node;if(Re===We){var ft=this.positionInBuffer(Re,Y.remainder),lt=this.positionInBuffer(Re,De.remainder);if(Y.nodeStartOffset===O){if(M===Re.piece.length){var yt=Re.next();_t(this,Re),this.validateCRLFWithPrevNode(yt),this.computeBufferMetadata();return}this.deleteNodeHead(Re,lt),this._searchCache.valdiate(O),this.validateCRLFWithPrevNode(Re),this.computeBufferMetadata();return}if(Y.nodeStartOffset+Re.piece.length===O+M){this.deleteNodeTail(Re,ft),this.validateCRLFWithNextNode(Re),this.computeBufferMetadata();return}this.shrinkNode(Re,ft,lt),this.computeBufferMetadata();return}var xt=[],It=this.positionInBuffer(Re,Y.remainder);this.deleteNodeTail(Re,It),this._searchCache.valdiate(O),Re.piece.length===0&&xt.push(Re);var Ft=this.positionInBuffer(We,De.remainder);this.deleteNodeHead(We,Ft),We.piece.length===0&&xt.push(We);for(var Yt=Re.next(),Zt=Yt;Zt!==F&&Zt!==We;Zt=Zt.next())xt.push(Zt);var un=Re.piece.length===0?Re.prev():Re;this.deleteNodes(xt),this.validateCRLFWithNextNode(un),this.computeBufferMetadata()},Qe.prototype.insertContentToNodeLeft=function(O,M){var Y=[];if(this.shouldCheckCRLF()&&this.endWithCR(O)&&this.startWithLF(M)){var De=M.piece,Re={line:De.start.line+1,column:0},We=new pt(De.bufferIndex,Re,De.end,this.getLineFeedCnt(De.bufferIndex,Re,De.end),De.length-1);M.piece=We,O+=`
`,Mt(this,M,-1,-1),M.piece.length===0&&Y.push(M)}for(var ft=this.createNewPieces(O),lt=this.rbInsertLeft(M,ft[ft.length-1]),yt=ft.length-2;yt>=0;yt--)lt=this.rbInsertLeft(lt,ft[yt]);this.validateCRLFWithPrevNode(lt),this.deleteNodes(Y)},Qe.prototype.insertContentToNodeRight=function(O,M){this.adjustCarriageReturnFromNext(O,M)&&(O+=`
`);for(var Y=this.createNewPieces(O),De=this.rbInsertRight(M,Y[0]),Re=De,We=1;We<Y.length;We++)Re=this.rbInsertRight(Re,Y[We]);this.validateCRLFWithPrevNode(De)},Qe.prototype.positionInBuffer=function(O,M,Y){for(var De=O.piece,Re=O.piece.bufferIndex,We=this._buffers[Re].lineStarts,ft=We[De.start.line]+De.start.column,lt=ft+M,yt=De.start.line,xt=De.end.line,It=0,Ft=0,Yt=0;yt<=xt&&!(It=yt+(xt-yt)/2|0,Yt=We[It],It===xt);)if(Ft=We[It+1],lt<Yt)xt=It-1;else if(lt>=Ft)yt=It+1;else break;return Y?(Y.line=It,Y.column=lt-Yt,null):{line:It,column:lt-Yt}},Qe.prototype.getLineFeedCnt=function(O,M,Y){if(Y.column===0)return Y.line-M.line;var De=this._buffers[O].lineStarts;if(Y.line===De.length-1)return Y.line-M.line;var Re=De[Y.line+1],We=De[Y.line]+Y.column;if(Re>We+1)return Y.line-M.line;var ft=We-1,lt=this._buffers[O].buffer;return lt.charCodeAt(ft)===13?Y.line-M.line+1:Y.line-M.line},Qe.prototype.offsetInBuffer=function(O,M){var Y=this._buffers[O].lineStarts;return Y[M.line]+M.column},Qe.prototype.deleteNodes=function(O){for(var M=0;M<O.length;M++)_t(this,O[M])},Qe.prototype.createNewPieces=function(O){if(O.length>on){for(var M=[];O.length>on;){var Y=O.charCodeAt(on-1),De=void 0;Y===13||Y>=55296&&Y<=56319?(De=O.substring(0,on-1),O=O.substring(on-1)):(De=O.substring(0,on),O=O.substring(on));var Re=Mn(De);M.push(new pt(this._buffers.length,{line:0,column:0},{line:Re.length-1,column:De.length-Re[Re.length-1]},Re.length-1,De.length)),this._buffers.push(new gt(De,Re))}var We=Mn(O);return M.push(new pt(this._buffers.length,{line:0,column:0},{line:We.length-1,column:O.length-We[We.length-1]},We.length-1,O.length)),this._buffers.push(new gt(O,We)),M}var ft=this._buffers[0].buffer.length,lt=Mn(O,!1),yt=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===ft&&ft!==0&&this.startWithLF(O)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},yt=this._lastChangeBufferPos;for(var xt=0;xt<lt.length;xt++)lt[xt]+=ft+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(lt.slice(1)),this._buffers[0].buffer+="_"+O,ft+=1}else{if(ft!==0)for(var xt=0;xt<lt.length;xt++)lt[xt]+=ft;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(lt.slice(1)),this._buffers[0].buffer+=O}var It=this._buffers[0].buffer.length,Ft=this._buffers[0].lineStarts.length-1,Yt=It-this._buffers[0].lineStarts[Ft],Zt={line:Ft,column:Yt},un=new pt(0,yt,Zt,this.getLineFeedCnt(0,yt,Zt),It-ft);return this._lastChangeBufferPos=Zt,[un]},Qe.prototype.getLineRawContent=function(O,M){M===void 0&&(M=0);var Y=this.root,De="",Re=this._searchCache.get2(O);if(Re){Y=Re.node;var We=this.getAccumulatedValue(Y,O-Re.nodeStartLineNumber-1),ft=this._buffers[Y.piece.bufferIndex].buffer,lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);if(Re.nodeStartLineNumber+Y.piece.lineFeedCnt===O)De=ft.substring(lt+We,lt+Y.piece.length);else{var yt=this.getAccumulatedValue(Y,O-Re.nodeStartLineNumber);return ft.substring(lt+We,lt+yt-M)}}else for(var xt=0,It=O;Y!==F;)if(Y.left!==F&&Y.lf_left>=O-1)Y=Y.left;else if(Y.lf_left+Y.piece.lineFeedCnt>O-1){var We=this.getAccumulatedValue(Y,O-Y.lf_left-2),yt=this.getAccumulatedValue(Y,O-Y.lf_left-1),ft=this._buffers[Y.piece.bufferIndex].buffer,lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return xt+=Y.size_left,this._searchCache.set({node:Y,nodeStartOffset:xt,nodeStartLineNumber:It-(O-1-Y.lf_left)}),ft.substring(lt+We,lt+yt-M)}else if(Y.lf_left+Y.piece.lineFeedCnt===O-1){var We=this.getAccumulatedValue(Y,O-Y.lf_left-2),ft=this._buffers[Y.piece.bufferIndex].buffer,lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);De=ft.substring(lt+We,lt+Y.piece.length);break}else O-=Y.lf_left+Y.piece.lineFeedCnt,xt+=Y.size_left+Y.piece.length,Y=Y.right;for(Y=Y.next();Y!==F;){var ft=this._buffers[Y.piece.bufferIndex].buffer;if(Y.piece.lineFeedCnt>0){var yt=this.getAccumulatedValue(Y,0),lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return De+=ft.substring(lt,lt+yt-M),De}else{var lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);De+=ft.substr(lt,Y.piece.length)}Y=Y.next()}return De},Qe.prototype.computeBufferMetadata=function(){for(var O=this.root,M=1,Y=0;O!==F;)M+=O.lf_left+O.piece.lineFeedCnt,Y+=O.size_left+O.piece.length,O=O.right;this._lineCnt=M,this._length=Y,this._searchCache.valdiate(this._length)},Qe.prototype.getIndexOf=function(O,M){var Y=O.piece,De=this.positionInBuffer(O,M),Re=De.line-Y.start.line;if(this.offsetInBuffer(Y.bufferIndex,Y.end)-this.offsetInBuffer(Y.bufferIndex,Y.start)===M){var We=this.getLineFeedCnt(O.piece.bufferIndex,Y.start,De);if(We!==Re)return{index:We,remainder:0}}return{index:Re,remainder:De.column}},Qe.prototype.getAccumulatedValue=function(O,M){if(M<0)return 0;var Y=O.piece,De=this._buffers[Y.bufferIndex].lineStarts,Re=Y.start.line+M+1;return Re>Y.end.line?De[Y.end.line]+Y.end.column-De[Y.start.line]-Y.start.column:De[Re]-De[Y.start.line]-Y.start.column},Qe.prototype.deleteNodeTail=function(O,M){var Y=O.piece,De=Y.lineFeedCnt,Re=this.offsetInBuffer(Y.bufferIndex,Y.end),We=M,ft=this.offsetInBuffer(Y.bufferIndex,We),lt=this.getLineFeedCnt(Y.bufferIndex,Y.start,We),yt=lt-De,xt=ft-Re,It=Y.length+xt;O.piece=new pt(Y.bufferIndex,Y.start,We,lt,It),Mt(this,O,xt,yt)},Qe.prototype.deleteNodeHead=function(O,M){var Y=O.piece,De=Y.lineFeedCnt,Re=this.offsetInBuffer(Y.bufferIndex,Y.start),We=M,ft=this.getLineFeedCnt(Y.bufferIndex,We,Y.end),lt=this.offsetInBuffer(Y.bufferIndex,We),yt=ft-De,xt=Re-lt,It=Y.length+xt;O.piece=new pt(Y.bufferIndex,We,Y.end,ft,It),Mt(this,O,xt,yt)},Qe.prototype.shrinkNode=function(O,M,Y){var De=O.piece,Re=De.start,We=De.end,ft=De.length,lt=De.lineFeedCnt,yt=M,xt=this.getLineFeedCnt(De.bufferIndex,De.start,yt),It=this.offsetInBuffer(De.bufferIndex,M)-this.offsetInBuffer(De.bufferIndex,Re);O.piece=new pt(De.bufferIndex,De.start,yt,xt,It),Mt(this,O,It-ft,xt-lt);var Ft=new pt(De.bufferIndex,Y,We,this.getLineFeedCnt(De.bufferIndex,Y,We),this.offsetInBuffer(De.bufferIndex,We)-this.offsetInBuffer(De.bufferIndex,Y)),Yt=this.rbInsertRight(O,Ft);this.validateCRLFWithPrevNode(Yt)},Qe.prototype.appendToNode=function(O,M){this.adjustCarriageReturnFromNext(M,O)&&(M+=`
`);var Y=this.shouldCheckCRLF()&&this.startWithLF(M)&&this.endWithCR(O),De=this._buffers[0].buffer.length;this._buffers[0].buffer+=M;for(var Re=Mn(M,!1),We=0;We<Re.length;We++)Re[We]+=De;if(Y){var ft=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:De-ft}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(Re.slice(1));var lt=this._buffers[0].lineStarts.length-1,yt=this._buffers[0].buffer.length-this._buffers[0].lineStarts[lt],xt={line:lt,column:yt},It=O.piece.length+M.length,Ft=O.piece.lineFeedCnt,Yt=this.getLineFeedCnt(0,O.piece.start,xt),Zt=Yt-Ft;O.piece=new pt(O.piece.bufferIndex,O.piece.start,xt,Yt,It),this._lastChangeBufferPos=xt,Mt(this,O,M.length,Zt)},Qe.prototype.nodeAt=function(O){var M=this.root,Y=this._searchCache.get(O);if(Y)return{node:Y.node,nodeStartOffset:Y.nodeStartOffset,remainder:O-Y.nodeStartOffset};for(var De=0;M!==F;)if(M.size_left>O)M=M.left;else if(M.size_left+M.piece.length>=O){De+=M.size_left;var Re={node:M,remainder:O-M.size_left,nodeStartOffset:De};return this._searchCache.set(Re),Re}else O-=M.size_left+M.piece.length,De+=M.size_left+M.piece.length,M=M.right;return null},Qe.prototype.nodeAt2=function(O,M){for(var Y=this.root,De=0;Y!==F;)if(Y.left!==F&&Y.lf_left>=O-1)Y=Y.left;else if(Y.lf_left+Y.piece.lineFeedCnt>O-1){var Re=this.getAccumulatedValue(Y,O-Y.lf_left-2),We=this.getAccumulatedValue(Y,O-Y.lf_left-1);return De+=Y.size_left,{node:Y,remainder:Math.min(Re+M-1,We),nodeStartOffset:De}}else if(Y.lf_left+Y.piece.lineFeedCnt===O-1){var Re=this.getAccumulatedValue(Y,O-Y.lf_left-2);if(Re+M-1<=Y.piece.length)return{node:Y,remainder:Re+M-1,nodeStartOffset:De};M-=Y.piece.length-Re;break}else O-=Y.lf_left+Y.piece.lineFeedCnt,De+=Y.size_left+Y.piece.length,Y=Y.right;for(Y=Y.next();Y!==F;){if(Y.piece.lineFeedCnt>0){var We=this.getAccumulatedValue(Y,0),ft=this.offsetOfNode(Y);return{node:Y,remainder:Math.min(M-1,We),nodeStartOffset:ft}}else if(Y.piece.length>=M-1){var lt=this.offsetOfNode(Y);return{node:Y,remainder:M-1,nodeStartOffset:lt}}else M-=Y.piece.length;Y=Y.next()}return null},Qe.prototype.nodeCharCodeAt=function(O,M){if(O.piece.lineFeedCnt<1)return-1;var Y=this._buffers[O.piece.bufferIndex],De=this.offsetInBuffer(O.piece.bufferIndex,O.piece.start)+M;return Y.buffer.charCodeAt(De)},Qe.prototype.offsetOfNode=function(O){if(!O)return 0;for(var M=O.size_left;O!==this.root;)O.parent.right===O&&(M+=O.parent.size_left+O.parent.piece.length),O=O.parent;return M},Qe.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===`
`)},Qe.prototype.startWithLF=function(O){if(typeof O=="string")return O.charCodeAt(0)===10;if(O===F||O.piece.lineFeedCnt===0)return!1;var M=O.piece,Y=this._buffers[M.bufferIndex].lineStarts,De=M.start.line,Re=Y[De]+M.start.column;if(De===Y.length-1)return!1;var We=Y[De+1];return We>Re+1?!1:this._buffers[M.bufferIndex].buffer.charCodeAt(Re)===10},Qe.prototype.endWithCR=function(O){return typeof O=="string"?O.charCodeAt(O.length-1)===13:O===F||O.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(O,O.piece.length-1)===13},Qe.prototype.validateCRLFWithPrevNode=function(O){if(this.shouldCheckCRLF()&&this.startWithLF(O)){var M=O.prev();this.endWithCR(M)&&this.fixCRLF(M,O)}},Qe.prototype.validateCRLFWithNextNode=function(O){if(this.shouldCheckCRLF()&&this.endWithCR(O)){var M=O.next();this.startWithLF(M)&&this.fixCRLF(O,M)}},Qe.prototype.fixCRLF=function(O,M){var Y=[],De=this._buffers[O.piece.bufferIndex].lineStarts,Re;O.piece.end.column===0?Re={line:O.piece.end.line-1,column:De[O.piece.end.line]-De[O.piece.end.line-1]-1}:Re={line:O.piece.end.line,column:O.piece.end.column-1};var We=O.piece.length-1,ft=O.piece.lineFeedCnt-1;O.piece=new pt(O.piece.bufferIndex,O.piece.start,Re,ft,We),Mt(this,O,-1,-1),O.piece.length===0&&Y.push(O);var lt={line:M.piece.start.line+1,column:0},yt=M.piece.length-1,xt=this.getLineFeedCnt(M.piece.bufferIndex,lt,M.piece.end);M.piece=new pt(M.piece.bufferIndex,lt,M.piece.end,xt,yt),Mt(this,M,-1,-1),M.piece.length===0&&Y.push(M);var It=this.createNewPieces(`\r
`);this.rbInsertRight(O,It[0]);for(var Ft=0;Ft<Y.length;Ft++)_t(this,Y[Ft])},Qe.prototype.adjustCarriageReturnFromNext=function(O,M){if(this.shouldCheckCRLF()&&this.endWithCR(O)){var Y=M.next();if(this.startWithLF(Y)){if(O+=`
`,Y.piece.length===1)_t(this,Y);else{var De=Y.piece,Re={line:De.start.line+1,column:0},We=De.length-1,ft=this.getLineFeedCnt(De.bufferIndex,Re,De.end);Y.piece=new pt(De.bufferIndex,Re,De.end,ft,We),Mt(this,Y,-1,-1)}return!0}}return!1},Qe.prototype.iterate=function(O,M){if(O===F)return M(F);var Y=this.iterate(O.left,M);return Y&&(M(O)&&this.iterate(O.right,M))},Qe.prototype.getNodeContent=function(O){if(O===F)return"";var M=this._buffers[O.piece.bufferIndex],Y,De=O.piece,Re=this.offsetInBuffer(De.bufferIndex,De.start),We=this.offsetInBuffer(De.bufferIndex,De.end);return Y=M.buffer.substring(Re,We),Y},Qe.prototype.rbInsertRight=function(O,M){var Y=new we(M,1);Y.left=F,Y.right=F,Y.parent=F,Y.size_left=0,Y.lf_left=0;var De=this.root;if(De===F)this.root=Y,Y.color=0;else if(O.right===F)O.right=Y,Y.parent=O;else{var Re=ee(O.right);Re.left=Y,Y.parent=Re}return Rt(this,Y),Y},Qe.prototype.rbInsertLeft=function(O,M){var Y=new we(M,1);if(Y.left=F,Y.right=F,Y.parent=F,Y.size_left=0,Y.lf_left=0,this.root===F)this.root=Y,Y.color=0;else if(O.left===F)O.left=Y,Y.parent=O;else{var De=Pe(O.left);De.right=Y,Y.parent=De}return Rt(this,Y),Y},Qe}(),Vt=function(){function Qe(O,M,Y,De,Re,We){this._BOM=M,this._mightContainNonBasicASCII=!Re,this._mightContainRTL=De,this._pieceTree=new Lt(O,Y,We)}return Qe.prototype.mightContainRTL=function(){return this._mightContainRTL},Qe.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},Qe.prototype.getBOM=function(){return this._BOM},Qe.prototype.getEOL=function(){return this._pieceTree.getEOL()},Qe.prototype.getOffsetAt=function(O,M){return this._pieceTree.getOffsetAt(O,M)},Qe.prototype.getPositionAt=function(O){return this._pieceTree.getPositionAt(O)},Qe.prototype.getRangeAt=function(O,M){var Y=O+M,De=this.getPositionAt(O),Re=this.getPositionAt(Y);return new G.a(De.lineNumber,De.column,Re.lineNumber,Re.column)},Qe.prototype.getValueInRange=function(O,M){if(M===void 0&&(M=0),O.isEmpty())return"";var Y=this._getEndOfLine(M);return this._pieceTree.getValueInRange(O,Y)},Qe.prototype.getValueLengthInRange=function(O,M){if(M===void 0&&(M=0),O.isEmpty())return 0;if(O.startLineNumber===O.endLineNumber)return O.endColumn-O.startColumn;var Y=this.getOffsetAt(O.startLineNumber,O.startColumn),De=this.getOffsetAt(O.endLineNumber,O.endColumn);return De-Y},Qe.prototype.getCharacterCountInRange=function(O,M){if(M===void 0&&(M=0),this._mightContainNonBasicASCII){for(var Y=0,De=O.startLineNumber,Re=O.endLineNumber,We=De;We<=Re;We++)for(var ft=this.getLineContent(We),lt=We===De?O.startColumn-1:0,yt=We===Re?O.endColumn-1:ft.length,xt=lt;xt<yt;xt++)N.z(ft.charCodeAt(xt))?(Y=Y+1,xt=xt+1):Y=Y+1;return Y+=this._getEndOfLine(M).length*(Re-De),Y}return this.getValueLengthInRange(O,M)},Qe.prototype.getLength=function(){return this._pieceTree.getLength()},Qe.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},Qe.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},Qe.prototype.getLineContent=function(O){return this._pieceTree.getLineContent(O)},Qe.prototype.getLineCharCode=function(O,M){return this._pieceTree.getLineCharCode(O,M)},Qe.prototype.getLineLength=function(O){return this._pieceTree.getLineLength(O)},Qe.prototype.getLineFirstNonWhitespaceColumn=function(O){var M=N.q(this.getLineContent(O));return M===-1?0:M+1},Qe.prototype.getLineLastNonWhitespaceColumn=function(O){var M=N.D(this.getLineContent(O));return M===-1?0:M+2},Qe.prototype._getEndOfLine=function(O){switch(O){case 1:return`
`;case 2:return`\r
`;case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},Qe.prototype.setEOL=function(O){this._pieceTree.setEOL(O)},Qe.prototype.applyEdits=function(O,M){for(var Y=this._mightContainRTL,De=this._mightContainNonBasicASCII,Re=!0,We=[],ft=0;ft<O.length;ft++){var lt=O[ft];Re&&lt._isTracked&&(Re=!1);var yt=lt.range;!Y&&lt.text&&(Y=N.i(lt.text)),!De&&lt.text&&(De=!N.v(lt.text)),We[ft]={sortIndex:ft,identifier:lt.identifier||null,range:yt,rangeOffset:this.getOffsetAt(yt.startLineNumber,yt.startColumn),rangeLength:this.getValueLengthInRange(yt),lines:lt.text?lt.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(lt.forceMoveMarkers),isAutoWhitespaceEdit:lt.isAutoWhitespaceEdit||!1}}We.sort(Qe._sortOpsAscending);for(var xt=!1,ft=0,It=We.length-1;ft<It;ft++){var Ft=We[ft].range.getEndPosition(),Yt=We[ft+1].range.getStartPosition();if(Yt.isBeforeOrEqual(Ft)){if(Yt.isBefore(Ft))throw new Error("Overlapping ranges are not allowed!");xt=!0}}Re&&(We=this._reduceOperations(We));for(var Zt=Qe._getInverseEditRanges(We),un=[],ft=0;ft<We.length;ft++){var lt=We[ft],fn=Zt[ft];if(M&&lt.isAutoWhitespaceEdit&&lt.range.isEmpty())for(var An=fn.startLineNumber;An<=fn.endLineNumber;An++){var gn="";if(An===fn.startLineNumber&&(gn=this.getLineContent(lt.range.startLineNumber),N.q(gn)!==-1))continue;un.push({lineNumber:An,oldContent:gn})}}for(var Tn=[],ft=0;ft<We.length;ft++){var lt=We[ft],fn=Zt[ft];Tn[ft]={sortIndex:lt.sortIndex,identifier:lt.identifier,range:fn,text:this.getValueInRange(lt.range),forceMoveMarkers:lt.forceMoveMarkers}}xt||Tn.sort(function(qe,ct){return qe.sortIndex-ct.sortIndex}),this._mightContainRTL=Y,this._mightContainNonBasicASCII=De;var xn=this._doApplyEdits(We),Le=null;if(M&&un.length>0){un.sort(function(qe,ct){return ct.lineNumber-qe.lineNumber}),Le=[];for(var ft=0,W=un.length;ft<W;ft++){var An=un[ft].lineNumber;if(ft>0&&un[ft-1].lineNumber===An)continue;var ae=un[ft].oldContent,ke=this.getLineContent(An);if(ke.length===0||ke===ae||N.q(ke)!==-1)continue;Le.push(An)}}return new _.a(Tn,xn,Le)},Qe.prototype._reduceOperations=function(O){return O.length<1e3?O:[this._toSingleEditOperation(O)]},Qe.prototype._toSingleEditOperation=function(O){for(var M=!1,Y=O[0].range,De=O[O.length-1].range,Re=new G.a(Y.startLineNumber,Y.startColumn,De.endLineNumber,De.endColumn),We=Y.startLineNumber,ft=Y.startColumn,lt=[],yt=0,xt=O.length;yt<xt;yt++){var It=O[yt],Ft=It.range;M=M||It.forceMoveMarkers;for(var Yt=We;Yt<Ft.startLineNumber;Yt++)Yt===We?lt.push(this.getLineContent(Yt).substring(ft-1)):(lt.push(`
`),lt.push(this.getLineContent(Yt)));if(Ft.startLineNumber===We?lt.push(this.getLineContent(Ft.startLineNumber).substring(ft-1,Ft.startColumn-1)):(lt.push(`
`),lt.push(this.getLineContent(Ft.startLineNumber).substring(0,Ft.startColumn-1))),It.lines)for(var Zt=0,un=It.lines.length;Zt<un;Zt++)Zt!==0&&lt.push(`
`),lt.push(It.lines[Zt]);We=It.range.endLineNumber,ft=It.range.endColumn}return{sortIndex:0,identifier:O[0].identifier,range:Re,rangeOffset:this.getOffsetAt(Re.startLineNumber,Re.startColumn),rangeLength:this.getValueLengthInRange(Re,0),lines:lt.join("").split(`
`),forceMoveMarkers:M,isAutoWhitespaceEdit:!1}},Qe.prototype._doApplyEdits=function(O){O.sort(Qe._sortOpsDescending);for(var M=[],Y=0;Y<O.length;Y++){var De=O[Y],Re=De.range.startLineNumber,We=De.range.startColumn,ft=De.range.endLineNumber,lt=De.range.endColumn;if(Re===ft&&We===lt&&(!De.lines||De.lines.length===0))continue;var yt=ft-Re,xt=De.lines?De.lines.length-1:0,It=Math.min(yt,xt),Ft=De.lines?De.lines.join(this.getEOL()):"";if(Ft?(this._pieceTree.delete(De.rangeOffset,De.rangeLength),this._pieceTree.insert(De.rangeOffset,Ft,!0)):this._pieceTree.delete(De.rangeOffset,De.rangeLength),It<xt){for(var Yt=[],Zt=It+1;Zt<=xt;Zt++)Yt.push(De.lines[Zt]);Yt[Yt.length-1]=this.getLineContent(Re+xt-1)}var un=new G.a(Re,We,ft,lt);M.push({range:un,rangeLength:De.rangeLength,text:Ft,rangeOffset:De.rangeOffset,forceMoveMarkers:De.forceMoveMarkers})}return M},Qe.prototype.findMatchesLineByLine=function(O,M,Y,De){return this._pieceTree.findMatchesLineByLine(O,M,Y,De)},Qe._getInverseEditRanges=function(O){for(var M=[],Y=0,De=0,Re=null,We=0,ft=O.length;We<ft;We++){var lt=O[We],yt=void 0,xt=void 0;Re?Re.range.endLineNumber===lt.range.startLineNumber?(yt=Y,xt=De+(lt.range.startColumn-Re.range.endColumn)):(yt=Y+(lt.range.startLineNumber-Re.range.endLineNumber),xt=lt.range.startColumn):(yt=lt.range.startLineNumber,xt=lt.range.startColumn);var It=void 0;if(lt.lines&&lt.lines.length>0){var Ft=lt.lines.length,Yt=lt.lines[0],Zt=lt.lines[Ft-1];Ft===1?It=new G.a(yt,xt,yt,xt+Yt.length):It=new G.a(yt,xt,yt+Ft-1,Zt.length+1)}else It=new G.a(yt,xt,yt,xt);Y=It.endLineNumber,De=It.endColumn,M.push(It),Re=lt}return M},Qe._sortOpsAscending=function(O,M){var Y=G.a.compareRangesUsingEnds(O.range,M.range);return Y===0?O.sortIndex-M.sortIndex:Y},Qe._sortOpsDescending=function(O,M){var Y=G.a.compareRangesUsingEnds(O.range,M.range);return Y===0?M.sortIndex-O.sortIndex:-Y},Qe}(),Jt=function(){function Qe(O,M,Y,De,Re,We,ft,lt){this._chunks=O,this._bom=M,this._cr=Y,this._lf=De,this._crlf=Re,this._containsRTL=We,this._isBasicASCII=ft,this._normalizeEOL=lt}return Qe.prototype._getEOL=function(O){var M=this._cr+this._lf+this._crlf,Y=this._cr+this._crlf;return M===0?O===1?`
`:`\r
`:Y>M/2?`\r
`:`
`},Qe.prototype.create=function(O){var M=this._getEOL(O),Y=this._chunks;if(this._normalizeEOL&&(M===`\r
`&&(this._cr>0||this._lf>0)||M===`
`&&(this._cr>0||this._crlf>0)))for(var De=0,Re=Y.length;De<Re;De++){var We=Y[De].buffer.replace(/\r\n|\r|\n/g,M),ft=Mn(We);Y[De]=new gt(We,ft)}return new Vt(Y,this._bom,M,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},Qe}(),nn=function(){function Qe(){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 Qe.prototype.acceptChunk=function(O){if(O.length===0)return;this.chunks.length===0&&(N.O(O)&&(this.BOM=N.a,O=O.substr(1)));var M=O.charCodeAt(O.length-1);M===13||M>=55296&&M<=56319?(this._acceptChunk1(O.substr(0,O.length-1),!1),this._hasPreviousChar=!0,this._previousChar=M):(this._acceptChunk1(O,!1),this._hasPreviousChar=!1,this._previousChar=M)},Qe.prototype._acceptChunk1=function(O,M){if(!M&&O.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+O):this._acceptChunk2(O)},Qe.prototype._acceptChunk2=function(O){var M=kt(this._tmpLineStarts,O);this.chunks.push(new gt(O,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=N.i(O))},Qe.prototype.finish=function(O){return O===void 0&&(O=!0),this._finish(),new Jt(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,O)},Qe.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var O=this.chunks[this.chunks.length-1];O.buffer+=String.fromCharCode(this._previousChar);var M=Mn(O.buffer);O.lineStarts=M,this._previousChar===13&&this.cr++}},Qe}(),sn=function(){function Qe(){this.changeType=1}return Qe}(),ln=function(){function Qe(O,M){this.changeType=2,this.lineNumber=O,this.detail=M}return Qe}(),_n=function(){function Qe(O,M){this.changeType=3,this.fromLineNumber=O,this.toLineNumber=M}return Qe}(),On=function(){function Qe(O,M,Y){this.changeType=4,this.fromLineNumber=O,this.toLineNumber=M,this.detail=Y}return Qe}(),Pn=function(){function Qe(){this.changeType=5}return Qe}(),Gn=function(){function Qe(O,M,Y,De){this.changes=O,this.versionId=M,this.isUndoing=Y,this.isRedoing=De}return Qe.prototype.containsEvent=function(O){for(var M=0,Y=this.changes.length;M<Y;M++){var De=this.changes[M];if(De.changeType===O)return!0}return!1},Qe.merge=function(O,M){var Y=[].concat(O.changes).concat(M.changes),De=M.versionId,Re=O.isUndoing||M.isUndoing,We=O.isRedoing||M.isRedoing;return new Qe(Y,De,Re,We)},Qe}(),Jn=function(){function Qe(O,M){this.rawContentChangedEvent=O,this.contentChangedEvent=M}return Qe.prototype.merge=function(O){var M=Gn.merge(this.rawContentChangedEvent,O.rawContentChangedEvent),Y=Qe._mergeChangeEvents(this.contentChangedEvent,O.contentChangedEvent);return new Qe(M,Y)},Qe._mergeChangeEvents=function(O,M){var Y=[].concat(O.changes).concat(M.changes),De=M.eol,Re=M.versionId,We=O.isUndoing||M.isUndoing,ft=O.isRedoing||M.isRedoing,lt=O.isFlush||M.isFlush;return{changes:Y,eol:De,versionId:Re,isUndoing:We,isRedoing:ft,isFlush:lt}},Qe}(),Qn=o("6OMU"),gi=o("4bUh"),Kn=o("twdY"),yi=o("i/Ef"),mi=o("5Y4S"),vt=o("QRHv"),Tt=o("MNsG"),Ht=function(){var Qe=function(M,Y){return Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Re){De.__proto__=Re}||function(De,Re){for(var We in Re)Re.hasOwnProperty(We)&&(De[We]=Re[We])},Qe(M,Y)};return function(O,M){Qe(O,M);function Y(){this.constructor=O}O.prototype=M===null?Object.create(M):(Y.prototype=M.prototype,new Y)}}(),tn=function(){function Qe(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return Qe.prototype._reset=function(O){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,O&&this._setBeginState(0,O)},Qe.prototype.flush=function(O){this._reset(O)},Object.defineProperty(Qe.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),Qe.prototype._invalidateLine=function(O){O<this._len&&(this._valid[O]=!1),O<this._invalidLineStartIndex&&(this._invalidLineStartIndex=O)},Qe.prototype._isValid=function(O){return O<this._len?this._valid[O]:!1},Qe.prototype.getBeginState=function(O){return O<this._len?this._beginState[O]:null},Qe.prototype._ensureLine=function(O){for(;O>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},Qe.prototype._deleteLines=function(O,M){if(M===0)return;O+M>this._len&&(M=this._len-O),this._beginState.splice(O,M),this._valid.splice(O,M),this._len-=M},Qe.prototype._insertLines=function(O,M){if(M===0)return;for(var Y=[],De=[],Re=0;Re<M;Re++)Y[Re]=null,De[Re]=!1;this._beginState=Qn.a(this._beginState,O,Y),this._valid=Qn.a(this._valid,O,De),this._len+=M},Qe.prototype._setValid=function(O,M){this._ensureLine(O),this._valid[O]=M},Qe.prototype._setBeginState=function(O,M){this._ensureLine(O),this._beginState[O]=M},Qe.prototype.setEndState=function(O,M,Y){if(this._setValid(M,!0),this._invalidLineStartIndex=M+1,M===O-1)return;var De=this.getBeginState(M+1);if(De===null||!Y.equals(De)){this._setBeginState(M+1,Y),this._invalidateLine(M+1);return}for(var Re=M+1;Re<O&&this._isValid(Re);)Re++;this._invalidLineStartIndex=Re},Qe.prototype.setFakeTokens=function(O){this._setValid(O,!1)},Qe.prototype.applyEdits=function(O,M){for(var Y=O.endLineNumber-O.startLineNumber,De=M,Re=Math.min(Y,De),We=Re;We>=0;We--)this._invalidateLine(O.startLineNumber+We-1);this._acceptDeleteRange(O),this._acceptInsertText(new j.a(O.startLineNumber,O.startColumn),M)},Qe.prototype._acceptDeleteRange=function(O){var M=O.startLineNumber-1;if(M>=this._len)return;this._deleteLines(O.startLineNumber,O.endLineNumber-O.startLineNumber)},Qe.prototype._acceptInsertText=function(O,M){var Y=O.lineNumber-1;if(Y>=this._len)return;this._insertLines(O.lineNumber,M)},Qe}(),Ut=function(Qe){Ht(O,Qe);function O(M){var Y=Qe.call(this)||this;return Y._isDisposed=!1,Y._textModel=M,Y._tokenizationStateStore=new tn,Y._tokenizationSupport=null,Y._register(Kn.y.onDidChange(function(De){var Re=Y._textModel.getLanguageIdentifier();if(De.changedLanguages.indexOf(Re.language)===-1)return;Y._resetTokenizationState(),Y._textModel.clearTokens()})),Y._register(Y._textModel.onDidChangeRawContentFast(function(De){if(De.containsEvent(1)){Y._resetTokenizationState();return}})),Y._register(Y._textModel.onDidChangeContentFast(function(De){for(var Re=0,We=De.changes.length;Re<We;Re++){var ft=De.changes[Re],lt=Object(vt.f)(ft.text)[0];Y._tokenizationStateStore.applyEdits(ft.range,lt)}Y._beginBackgroundTokenization()})),Y._register(Y._textModel.onDidChangeAttached(function(){Y._beginBackgroundTokenization()})),Y._register(Y._textModel.onDidChangeLanguage(function(){Y._resetTokenizationState(),Y._textModel.clearTokens()})),Y._resetTokenizationState(),Y}return O.prototype.dispose=function(){this._isDisposed=!0,Qe.prototype.dispose.call(this)},O.prototype._resetTokenizationState=function(){var M=Sn(this._textModel),Y=M[0],De=M[1];this._tokenizationSupport=Y,this._tokenizationStateStore.flush(De),this._beginBackgroundTokenization()},O.prototype._beginBackgroundTokenization=function(){var M=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&Tt.i(function(){if(M._isDisposed)return;M._revalidateTokensNow()})},O.prototype._revalidateTokensNow=function(M){M===void 0&&(M=this._textModel.getLineCount());for(var Y=1,De=new vt.b,Re=mi.a.create(!1);this._hasLinesToTokenize()&&!(Re.elapsed()>Y);){var We=this._tokenizeOneInvalidLine(De);if(We>=M)break}this._beginBackgroundTokenization(),this._textModel.setTokens(De.tokens)},O.prototype.tokenizeViewport=function(M,Y){var De=new vt.b;this._tokenizeViewport(De,M,Y),this._textModel.setTokens(De.tokens)},O.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},O.prototype.forceTokenization=function(M){var Y=new vt.b;this._updateTokensUntilLine(Y,M),this._textModel.setTokens(Y.tokens)},O.prototype.isCheapToTokenize=function(M){if(!this._tokenizationSupport)return!0;var Y=this._tokenizationStateStore.invalidLineStartIndex+1;return M>Y?!1:M<Y?!0:this._textModel.getLineLength(M)<2048},O.prototype._hasLinesToTokenize=function(){return this._tokenizationSupport?this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount():!1},O.prototype._tokenizeOneInvalidLine=function(M){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var Y=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(M,Y),Y},O.prototype._updateTokensUntilLine=function(M,Y){if(!this._tokenizationSupport)return;for(var De=this._textModel.getLanguageIdentifier(),Re=this._textModel.getLineCount(),We=Y-1,ft=this._tokenizationStateStore.invalidLineStartIndex;ft<=We;ft++){var lt=this._textModel.getLineContent(ft+1),yt=this._tokenizationStateStore.getBeginState(ft),xt=Rn(De,this._tokenizationSupport,lt,yt);M.add(ft+1,xt.tokens),this._tokenizationStateStore.setEndState(Re,ft,xt.endState),ft=this._tokenizationStateStore.invalidLineStartIndex-1}},O.prototype._tokenizeViewport=function(M,Y,De){if(!this._tokenizationSupport)return;if(De<=this._tokenizationStateStore.invalidLineStartIndex)return;if(Y<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(M,De);return}for(var Re=this._textModel.getLineFirstNonWhitespaceColumn(Y),We=[],ft=null,lt=Y-1;Re>0&&lt>=1;lt--){var yt=this._textModel.getLineFirstNonWhitespaceColumn(lt);if(yt===0)continue;if(yt<Re){if(ft=this._tokenizationStateStore.getBeginState(lt-1),ft)break;We.push(this._textModel.getLineContent(lt)),Re=yt}}ft||(ft=this._tokenizationSupport.getInitialState());for(var xt=this._textModel.getLanguageIdentifier(),It=ft,lt=We.length-1;lt>=0;lt--){var Ft=Rn(xt,this._tokenizationSupport,We[lt],It);It=Ft.endState}for(var Yt=Y;Yt<=De;Yt++){var Zt=this._textModel.getLineContent(Yt),Ft=Rn(xt,this._tokenizationSupport,Zt,It);M.add(Yt,Ft.tokens),this._tokenizationStateStore.setFakeTokens(Yt-1),It=Ft.endState}},O}(ne.a);function Sn(Qe){var O=Qe.getLanguageIdentifier(),M=Qe.isTooLargeForTokenization()?null:Kn.y.get(O.language),Y=null;if(M)try{Y=M.getInitialState()}catch(De){Object(I.e)(De),M=null}return[M,Y]}function Rn(Qe,O,M,Y){var De=null;if(O)try{De=O.tokenize2(M,Y.clone(),0)}catch(Re){Object(I.e)(Re)}return De||(De=Object(yi.e)(Qe.id,M,Y,0)),gi.a.convertToEndOffset(De.tokens,M.length),De}var Bn=o("0JNc"),kn=o("cMvZ"),oi=o("BFtn"),ci=o("EIAu"),Hi=o("746U"),rr=o("zrhQ"),Zn=function(){var Qe=function(M,Y){return Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Re){De.__proto__=Re}||function(De,Re){for(var We in Re)Re.hasOwnProperty(We)&&(De[We]=Re[We])},Qe(M,Y)};return function(O,M){Qe(O,M);function Y(){this.constructor=O}O.prototype=M===null?Object.create(M):(Y.prototype=M.prototype,new Y)}}();function Ii(){return new nn}function Si(Qe){var O=Ii();return O.acceptChunk(Qe),O.finish()}function ji(Qe,O){var M=typeof Qe=="string"?Si(Qe):Qe;return M.create(O)}var Un=0,Ci=999,Wi=1e4,Mi=function(){throw new Error("Invalid change accessor")},Gi=function(Qe){Zn(O,Qe);function O(M,Y,De,Re){Re===void 0&&(Re=null);var We=Qe.call(this)||this;We._onWillDispose=We._register(new re.a),We.onWillDispose=We._onWillDispose.event,We._onDidChangeDecorations=We._register(new Ti),We.onDidChangeDecorations=We._onDidChangeDecorations.event,We._onDidChangeLanguage=We._register(new re.a),We.onDidChangeLanguage=We._onDidChangeLanguage.event,We._onDidChangeLanguageConfiguration=We._register(new re.a),We.onDidChangeLanguageConfiguration=We._onDidChangeLanguageConfiguration.event,We._onDidChangeTokens=We._register(new re.a),We.onDidChangeTokens=We._onDidChangeTokens.event,We._onDidChangeOptions=We._register(new re.a),We.onDidChangeOptions=We._onDidChangeOptions.event,We._onDidChangeAttached=We._register(new re.a),We.onDidChangeAttached=We._onDidChangeAttached.event,We._eventEmitter=We._register(new sr),Un++,We.id="$model"+Un,We.isForSimpleWidget=Y.isForSimpleWidget,typeof Re=="undefined"||Re===null?We._associatedResource=k.a.parse("inmemory://model/"+Un):We._associatedResource=Re,We._attachedEditorCount=0,We._buffer=ji(M,Y.defaultEOL),We._options=O.resolveOptions(We._buffer,Y);var ft=We._buffer.getLineCount(),lt=We._buffer.getValueLengthInRange(new G.a(1,1,ft,We._buffer.getLineLength(ft)+1),0);return Y.largeFileOptimizations?We._isTooLargeForTokenization=lt>O.LARGE_FILE_SIZE_THRESHOLD||ft>O.LARGE_FILE_LINE_COUNT_THRESHOLD:We._isTooLargeForTokenization=!1,We._isTooLargeForSyncing=lt>O.MODEL_SYNC_LIMIT,We._versionId=1,We._alternativeVersionId=1,We._isDisposed=!1,We._isDisposing=!1,We._languageIdentifier=De||yi.a,We._languageRegistryListener=kn.a.onDidChange(function(yt){yt.languageIdentifier.id===We._languageIdentifier.id&&We._onDidChangeLanguageConfiguration.fire({})}),We._instanceId=N.L(Un),We._lastDecorationId=0,We._decorations=Object.create(null),We._decorationsTree=new Bi,We._commandManager=new A(We),We._isUndoing=!1,We._isRedoing=!1,We._trimAutoWhitespaceLines=null,We._tokens=new vt.d,We._tokens2=new vt.e,We._tokenization=new Ut(We),We}return O.createFromString=function(M,Y,De,Re){return Y===void 0&&(Y=O.DEFAULT_CREATION_OPTIONS),De===void 0&&(De=null),Re===void 0&&(Re=null),new O(M,Y,De,Re)},O.resolveOptions=function(M,Y){if(Y.detectIndentation){var De=E(M,Y.tabSize,Y.insertSpaces);return new _.e({tabSize:De.tabSize,indentSize:De.tabSize,insertSpaces:De.insertSpaces,trimAutoWhitespace:Y.trimAutoWhitespace,defaultEOL:Y.defaultEOL})}return new _.e({tabSize:Y.tabSize,indentSize:Y.indentSize,insertSpaces:Y.insertSpaces,trimAutoWhitespace:Y.trimAutoWhitespace,defaultEOL:Y.defaultEOL})},O.prototype.onDidChangeRawContentFast=function(M){return this._eventEmitter.fastEvent(function(Y){return M(Y.rawContentChangedEvent)})},O.prototype.onDidChangeRawContent=function(M){return this._eventEmitter.slowEvent(function(Y){return M(Y.rawContentChangedEvent)})},O.prototype.onDidChangeContentFast=function(M){return this._eventEmitter.fastEvent(function(Y){return M(Y.contentChangedEvent)})},O.prototype.onDidChangeContent=function(M){return this._eventEmitter.slowEvent(function(Y){return M(Y.contentChangedEvent)})},O.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,Qe.prototype.dispose.call(this),this._isDisposing=!1},O.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},O.prototype._emitContentChangedEvent=function(M,Y){if(this._isDisposing)return;this._eventEmitter.fire(new Jn(M,Y))},O.prototype.setValue=function(M){if(this._assertNotDisposed(),M===null)return;var Y=ji(M,this._options.defaultEOL);this.setValueFromTextBuffer(Y)},O.prototype._createContentChanged2=function(M,Y,De,Re,We,ft,lt){return{changes:[{range:M,rangeOffset:Y,rangeLength:De,text:Re}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:We,isRedoing:ft,isFlush:lt}},O.prototype.setValueFromTextBuffer=function(M){if(this._assertNotDisposed(),M===null)return;var Y=this.getFullModelRange(),De=this.getValueLengthInRange(Y),Re=this.getLineCount(),We=this.getLineMaxColumn(Re);this._buffer=M,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new Bi,this._commandManager=new A(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Gn([new sn],this._versionId,!1,!1),this._createContentChanged2(new G.a(1,1,Re,We),0,De,this.getValue(),!1,!1,!0))},O.prototype.setEOL=function(M){this._assertNotDisposed();var Y=M===1?`\r
`:`
`;if(this._buffer.getEOL()===Y)return;var De=this.getFullModelRange(),Re=this.getValueLengthInRange(De),We=this.getLineCount(),ft=this.getLineMaxColumn(We);this._onBeforeEOLChange(),this._buffer.setEOL(Y),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Gn([new Pn],this._versionId,!1,!1),this._createContentChanged2(new G.a(1,1,We,ft),0,Re,this.getValue(),!1,!1,!1))},O.prototype._onBeforeEOLChange=function(){var M=this.getVersionId(),Y=this._decorationsTree.search(0,!1,!1,M);this._ensureNodesHaveRanges(Y)},O.prototype._onAfterEOLChange=function(){for(var M=this.getVersionId(),Y=this._decorationsTree.collectNodesPostOrder(),De=0,Re=Y.length;De<Re;De++){var We=Y[De],ft=We.cachedAbsoluteStart-We.start,lt=this._buffer.getOffsetAt(We.range.startLineNumber,We.range.startColumn),yt=this._buffer.getOffsetAt(We.range.endLineNumber,We.range.endColumn);We.cachedAbsoluteStart=lt,We.cachedAbsoluteEnd=yt,We.cachedVersionId=M,We.start=lt-ft,We.end=yt-ft,Ye(We)}},O.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)},O.prototype.onBeforeDetached=function(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)},O.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},O.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},O.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},O.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},O.prototype.isDisposed=function(){return this._isDisposed},O.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var M=0,Y=0,De=this._buffer.getLineCount(),Re=1;Re<=De;Re++){var We=this._buffer.getLineLength(Re);We>=Wi?Y+=We:M+=We}return Y>M},Object.defineProperty(O.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),O.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},O.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},O.prototype.updateOptions=function(M){this._assertNotDisposed();var Y=typeof M.tabSize!="undefined"?M.tabSize:this._options.tabSize,De=typeof M.indentSize!="undefined"?M.indentSize:this._options.indentSize,Re=typeof M.insertSpaces!="undefined"?M.insertSpaces:this._options.insertSpaces,We=typeof M.trimAutoWhitespace!="undefined"?M.trimAutoWhitespace:this._options.trimAutoWhitespace,ft=new _.e({tabSize:Y,indentSize:De,insertSpaces:Re,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:We});if(this._options.equals(ft))return;var lt=this._options.createChangeEvent(ft);this._options=ft,this._onDidChangeOptions.fire(lt)},O.prototype.detectIndentation=function(M,Y){this._assertNotDisposed();var De=E(this._buffer,Y,M);this.updateOptions({insertSpaces:De.insertSpaces,tabSize:De.tabSize,indentSize:De.tabSize})},O._normalizeIndentationFromWhitespace=function(M,Y,De){for(var Re=0,We=0;We<M.length;We++)M.charAt(We)===" "?Re+=Y:Re++;var ft="";if(!De){var lt=Math.floor(Re/Y);Re=Re%Y;for(var We=0;We<lt;We++)ft+=" "}for(var We=0;We<Re;We++)ft+=" ";return ft},O.normalizeIndentation=function(M,Y,De){var Re=N.q(M);return Re===-1&&(Re=M.length),O._normalizeIndentationFromWhitespace(M.substring(0,Re),Y,De)+M.substring(Re)},O.prototype.normalizeIndentation=function(M){return this._assertNotDisposed(),O.normalizeIndentation(M,this._options.indentSize,this._options.insertSpaces)},O.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},O.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},O.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},O.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},O.prototype.getOffsetAt=function(M){this._assertNotDisposed();var Y=this._validatePosition(M.lineNumber,M.column,0);return this._buffer.getOffsetAt(Y.lineNumber,Y.column)},O.prototype.getPositionAt=function(M){this._assertNotDisposed();var Y=Math.min(this._buffer.getLength(),Math.max(0,M));return this._buffer.getPositionAt(Y)},O.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},O.prototype._overwriteAlternativeVersionId=function(M){this._alternativeVersionId=M},O.prototype.getValue=function(M,Y){Y===void 0&&(Y=!1),this._assertNotDisposed();var De=this.getFullModelRange(),Re=this.getValueInRange(De,M);return Y?this._buffer.getBOM()+Re:Re},O.prototype.getValueLength=function(M,Y){Y===void 0&&(Y=!1),this._assertNotDisposed();var De=this.getFullModelRange(),Re=this.getValueLengthInRange(De,M);return Y?this._buffer.getBOM().length+Re:Re},O.prototype.getValueInRange=function(M,Y){return Y===void 0&&(Y=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(M),Y)},O.prototype.getValueLengthInRange=function(M,Y){return Y===void 0&&(Y=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(M),Y)},O.prototype.getCharacterCountInRange=function(M,Y){return Y===void 0&&(Y=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(M),Y)},O.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},O.prototype.getLineContent=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(M)},O.prototype.getLineLength=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(M)},O.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},O.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},O.prototype.getLineMinColumn=function(M){return this._assertNotDisposed(),1},O.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},O.prototype.getLineFirstNonWhitespaceColumn=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(M)},O.prototype.getLineLastNonWhitespaceColumn=function(M){if(this._assertNotDisposed(),M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(M)},O.prototype._validateRangeRelaxedNoAllocations=function(M){var Y=this._buffer.getLineCount(),De=M.startLineNumber,Re=M.startColumn,We,ft;if(De<1)We=1,ft=1;else if(De>Y)We=Y,ft=this.getLineMaxColumn(We);else if(We=De|0,Re<=1)ft=1;else{var lt=this.getLineMaxColumn(We);Re>=lt?ft=lt:ft=Re|0}var yt=M.endLineNumber,xt=M.endColumn,It,Ft;if(yt<1)It=1,Ft=1;else if(yt>Y)It=Y,Ft=this.getLineMaxColumn(It);else if(It=yt|0,xt<=1)Ft=1;else{var lt=this.getLineMaxColumn(It);xt>=lt?Ft=lt:Ft=xt|0}return De===We&&Re===ft&&yt===It&&xt===Ft&&M instanceof G.a&&!(M instanceof R.a)?M:new G.a(We,ft,It,Ft)},O.prototype._isValidPosition=function(M,Y,De){if(typeof M!="number"||typeof Y!="number")return!1;if(isNaN(M)||isNaN(Y))return!1;if(M<1||Y<1)return!1;if((M|0)!==M||(Y|0)!==Y)return!1;var Re=this._buffer.getLineCount();if(M>Re)return!1;if(Y===1)return!0;var We=this.getLineMaxColumn(M);if(Y>We)return!1;if(De===1){var ft=this._buffer.getLineCharCode(M,Y-2);if(N.z(ft))return!1}return!0},O.prototype._validatePosition=function(M,Y,De){var Re=Math.floor(typeof M=="number"&&!isNaN(M)?M:1),We=Math.floor(typeof Y=="number"&&!isNaN(Y)?Y:1),ft=this._buffer.getLineCount();if(Re<1)return new j.a(1,1);if(Re>ft)return new j.a(ft,this.getLineMaxColumn(ft));if(We<=1)return new j.a(Re,1);var lt=this.getLineMaxColumn(Re);if(We>=lt)return new j.a(Re,lt);if(De===1){var yt=this._buffer.getLineCharCode(Re,We-2);if(N.z(yt))return new j.a(Re,We-1)}return new j.a(Re,We)},O.prototype.validatePosition=function(M){var Y=1;return this._assertNotDisposed(),M instanceof j.a&&this._isValidPosition(M.lineNumber,M.column,Y)?M:this._validatePosition(M.lineNumber,M.column,Y)},O.prototype._isValidRange=function(M,Y){var De=M.startLineNumber,Re=M.startColumn,We=M.endLineNumber,ft=M.endColumn;if(!this._isValidPosition(De,Re,0))return!1;if(!this._isValidPosition(We,ft,0))return!1;if(Y===1){var lt=Re>1?this._buffer.getLineCharCode(De,Re-2):0,yt=ft>1&&ft<=this._buffer.getLineLength(We)?this._buffer.getLineCharCode(We,ft-2):0,xt=N.z(lt),It=N.z(yt);return!xt&&!It}return!0},O.prototype.validateRange=function(M){var Y=1;if(this._assertNotDisposed(),M instanceof G.a&&!(M instanceof R.a)&&this._isValidRange(M,Y))return M;var De=this._validatePosition(M.startLineNumber,M.startColumn,0),Re=this._validatePosition(M.endLineNumber,M.endColumn,0),We=De.lineNumber,ft=De.column,lt=Re.lineNumber,yt=Re.column;if(Y===1){var xt=ft>1?this._buffer.getLineCharCode(We,ft-2):0,It=yt>1&&yt<=this._buffer.getLineLength(lt)?this._buffer.getLineCharCode(lt,yt-2):0,Ft=N.z(xt),Yt=N.z(It);return!Ft&&!Yt?new G.a(We,ft,lt,yt):We===lt&&ft===yt?new G.a(We,ft-1,lt,yt-1):Ft&&Yt?new G.a(We,ft-1,lt,yt+1):Ft?new G.a(We,ft-1,lt,yt):new G.a(We,ft,lt,yt+1)}return new G.a(We,ft,lt,yt)},O.prototype.modifyPosition=function(M,Y){this._assertNotDisposed();var De=this.getOffsetAt(M)+Y;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,De)))},O.prototype.getFullModelRange=function(){this._assertNotDisposed();var M=this.getLineCount();return new G.a(1,1,M,this.getLineMaxColumn(M))},O.prototype.findMatchesLineByLine=function(M,Y,De,Re){return this._buffer.findMatchesLineByLine(M,Y,De,Re)},O.prototype.findMatches=function(M,Y,De,Re,We,ft,lt){lt===void 0&&(lt=Ci),this._assertNotDisposed();var yt;if(G.a.isIRange(Y)?yt=this.validateRange(Y):yt=this.getFullModelRange(),!De&&M.indexOf(`
`)<0){var xt=new Gt.a(M,De,Re,We),It=xt.parseSearchRequest();return It?this.findMatchesLineByLine(yt,It,ft,lt):[]}return Gt.c.findMatches(this,new Gt.a(M,De,Re,We),yt,ft,lt)},O.prototype.findNextMatch=function(M,Y,De,Re,We,ft){this._assertNotDisposed();var lt=this.validatePosition(Y);if(!De&&M.indexOf(`
`)<0){var yt=new Gt.a(M,De,Re,We),xt=yt.parseSearchRequest();if(!xt)return null;var It=this.getLineCount(),Ft=new G.a(lt.lineNumber,lt.column,It,this.getLineMaxColumn(It)),Yt=this.findMatchesLineByLine(Ft,xt,ft,1);return Gt.c.findNextMatch(this,new Gt.a(M,De,Re,We),lt,ft),Yt.length>0?Yt[0]:(Ft=new G.a(1,1,lt.lineNumber,this.getLineMaxColumn(lt.lineNumber)),Yt=this.findMatchesLineByLine(Ft,xt,ft,1),Yt.length>0?Yt[0]:null)}return Gt.c.findNextMatch(this,new Gt.a(M,De,Re,We),lt,ft)},O.prototype.findPreviousMatch=function(M,Y,De,Re,We,ft){this._assertNotDisposed();var lt=this.validatePosition(Y);return Gt.c.findPreviousMatch(this,new Gt.a(M,De,Re,We),lt,ft)},O.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},O.prototype.pushEOL=function(M){var Y=this.getEOL()===`
`?0:1;if(Y===M)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(M)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype.pushEditOperations=function(M,Y,De){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(M,Y,De)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._pushEditOperations=function(M,Y,De){var Re=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var We=Y.map(function(Le){return{range:Re.validateRange(Le.range),text:Le.text}}),ft=!0,lt=0,yt=M.length;lt<yt;lt++){for(var xt=M[lt],It=!1,Ft=0,Yt=We.length;Ft<Yt;Ft++){var Zt=We[Ft].range,un=Zt.startLineNumber>xt.endLineNumber,fn=xt.startLineNumber>Zt.endLineNumber;if(!un&&!fn){It=!0;break}}if(!It){ft=!1;break}}if(ft)for(var lt=0,yt=this._trimAutoWhitespaceLines.length;lt<yt;lt++){for(var An=this._trimAutoWhitespaceLines[lt],gn=this.getLineMaxColumn(An),Tn=!0,Ft=0,Yt=We.length;Ft<Yt;Ft++){var Zt=We[Ft].range,xn=We[Ft].text;if(An<Zt.startLineNumber||An>Zt.endLineNumber)continue;if(An===Zt.startLineNumber&&Zt.startColumn===gn&&Zt.isEmpty()&&xn&&xn.length>0&&xn.charAt(0)===`
`)continue;if(An===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&xn&&xn.length>0&&xn.charAt(xn.length-1)===`
`)continue;Tn=!1;break}Tn&&Y.push({range:new G.a(An,1,An,gn),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(M,Y,De)},O.prototype.applyEdits=function(M){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(M)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._applyEdits=function(M){for(var Y=0,De=M.length;Y<De;Y++)M[Y].range=this.validateRange(M[Y].range);var Re=this._buffer.getLineCount(),We=this._buffer.applyEdits(M,this._options.trimAutoWhitespace),ft=this._buffer.getLineCount(),lt=We.changes;if(this._trimAutoWhitespaceLines=We.trimAutoWhitespaceLineNumbers,lt.length!==0){for(var yt=[],xt=Re,Y=0,De=lt.length;Y<De;Y++){var It=lt[Y],Ft=Object(vt.f)(It.text),Yt=Ft[0],Zt=Ft[1],un=Ft[2];this._tokens.acceptEdit(It.range,Yt,Zt),this._tokens2.acceptEdit(It.range,Yt,Zt,un,It.text.length>0?It.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(It.rangeOffset,It.rangeLength,It.text.length,It.forceMoveMarkers);for(var fn=It.range.startLineNumber,An=It.range.endLineNumber,gn=An-fn,Tn=Yt,xn=Math.min(gn,Tn),Le=Tn-gn,W=xn;W>=0;W--){var ae=fn+W,ke=ft-xt-Le+ae;yt.push(new ln(ae,this.getLineContent(ke)))}if(xn<gn){var qe=fn+xn;yt.push(new _n(qe+1,An))}if(xn<Tn){for(var ct=fn+xn,St=Tn-xn,Ge=ft-xt-St+ct+1,ue=[],X=0;X<St;X++){var Ue=Ge+X;ue[Ue-Ge]=this.getLineContent(Ue)}yt.push(new On(ct+1,fn+Tn,ue))}xt+=Le}this._increaseVersionId(),this._emitContentChangedEvent(new Gn(yt,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:lt,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return We.reverseEdits},O.prototype._undo=function(){this._isUndoing=!0;var M=this._commandManager.undo();return this._isUndoing=!1,M?(this._overwriteAlternativeVersionId(M.recordedVersionId),M.selections):null},O.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype.canUndo=function(){return this._commandManager.canUndo()},O.prototype._redo=function(){this._isRedoing=!0;var M=this._commandManager.redo();return this._isRedoing=!1,M?(this._overwriteAlternativeVersionId(M.recordedVersionId),M.selections):null},O.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype.canRedo=function(){return this._commandManager.canRedo()},O.prototype.changeDecorations=function(M,Y){Y===void 0&&(Y=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(Y,M)}finally{this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._changeDecorations=function(M,Y){var De=this,Re={addDecoration:function(lt,yt){return De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(M,[],[{range:lt,options:yt}])[0]},changeDecoration:function(lt,yt){De._onDidChangeDecorations.fire(),De._changeDecorationImpl(lt,yt)},changeDecorationOptions:function(lt,yt){De._onDidChangeDecorations.fire(),De._changeDecorationOptionsImpl(lt,lr(yt))},removeDecoration:function(lt){De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(M,[lt],[])},deltaDecorations:function(lt,yt){return lt.length===0&&yt.length===0?[]:(De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(M,lt,yt))}},We=null;try{We=Y(Re)}catch(ft){Object(I.e)(ft)}return Re.addDecoration=Mi,Re.changeDecoration=Mi,Re.changeDecorationOptions=Mi,Re.removeDecoration=Mi,Re.deltaDecorations=Mi,We},O.prototype.deltaDecorations=function(M,Y,De){if(De===void 0&&(De=0),this._assertNotDisposed(),M||(M=[]),M.length===0&&Y.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(De,M,Y)}finally{this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._getTrackedRange=function(M){return this.getDecorationRange(M)},O.prototype._setTrackedRange=function(M,Y,De){var Re=M?this._decorations[M]:null;if(!Re)return Y?this._deltaDecorationsImpl(0,[],[{range:Y,options:Xi[De]}])[0]:null;if(!Y)return this._decorationsTree.delete(Re),delete this._decorations[Re.id],null;var We=this._validateRangeRelaxedNoAllocations(Y),ft=this._buffer.getOffsetAt(We.startLineNumber,We.startColumn),lt=this._buffer.getOffsetAt(We.endLineNumber,We.endColumn);return this._decorationsTree.delete(Re),Re.reset(this.getVersionId(),ft,lt,We),Re.setOptions(Xi[De]),this._decorationsTree.insert(Re),Re.id},O.prototype.removeAllDecorationsWithOwnerId=function(M){if(this._isDisposed)return;for(var Y=this._decorationsTree.collectNodesFromOwner(M),De=0,Re=Y.length;De<Re;De++){var We=Y[De];this._decorationsTree.delete(We),delete this._decorations[We.id]}},O.prototype.getDecorationOptions=function(M){var Y=this._decorations[M];return Y?Y.options:null},O.prototype.getDecorationRange=function(M){var Y=this._decorations[M];if(!Y)return null;var De=this.getVersionId();return Y.cachedVersionId!==De&&this._decorationsTree.resolveNode(Y,De),Y.range===null&&(Y.range=this._getRangeAt(Y.cachedAbsoluteStart,Y.cachedAbsoluteEnd)),Y.range},O.prototype.getLineDecorations=function(M,Y,De){return Y===void 0&&(Y=0),De===void 0&&(De=!1),M<1||M>this.getLineCount()?[]:this.getLinesDecorations(M,M,Y,De)},O.prototype.getLinesDecorations=function(M,Y,De,Re){De===void 0&&(De=0),Re===void 0&&(Re=!1);var We=this.getLineCount(),ft=Math.min(We,Math.max(1,M)),lt=Math.min(We,Math.max(1,Y)),yt=this.getLineMaxColumn(lt);return this._getDecorationsInRange(new G.a(ft,1,lt,yt),De,Re)},O.prototype.getDecorationsInRange=function(M,Y,De){Y===void 0&&(Y=0),De===void 0&&(De=!1);var Re=this.validateRange(M);return this._getDecorationsInRange(Re,Y,De)},O.prototype.getOverviewRulerDecorations=function(M,Y){M===void 0&&(M=0),Y===void 0&&(Y=!1);var De=this.getVersionId(),Re=this._decorationsTree.search(M,Y,!0,De);return this._ensureNodesHaveRanges(Re)},O.prototype.getAllDecorations=function(M,Y){M===void 0&&(M=0),Y===void 0&&(Y=!1);var De=this.getVersionId(),Re=this._decorationsTree.search(M,Y,!1,De);return this._ensureNodesHaveRanges(Re)},O.prototype._getDecorationsInRange=function(M,Y,De){var Re=this._buffer.getOffsetAt(M.startLineNumber,M.startColumn),We=this._buffer.getOffsetAt(M.endLineNumber,M.endColumn),ft=this.getVersionId(),lt=this._decorationsTree.intervalSearch(Re,We,Y,De,ft);return this._ensureNodesHaveRanges(lt)},O.prototype._ensureNodesHaveRanges=function(M){for(var Y=0,De=M.length;Y<De;Y++){var Re=M[Y];Re.range===null&&(Re.range=this._getRangeAt(Re.cachedAbsoluteStart,Re.cachedAbsoluteEnd))}return M},O.prototype._getRangeAt=function(M,Y){return this._buffer.getRangeAt(M,Y-M)},O.prototype._changeDecorationImpl=function(M,Y){var De=this._decorations[M];if(!De)return;var Re=this._validateRangeRelaxedNoAllocations(Y),We=this._buffer.getOffsetAt(Re.startLineNumber,Re.startColumn),ft=this._buffer.getOffsetAt(Re.endLineNumber,Re.endColumn);this._decorationsTree.delete(De),De.reset(this.getVersionId(),We,ft,Re),this._decorationsTree.insert(De)},O.prototype._changeDecorationOptionsImpl=function(M,Y){var De=this._decorations[M];if(!De)return;var Re=!!(De.options.overviewRuler&&De.options.overviewRuler.color),We=!!(Y.overviewRuler&&Y.overviewRuler.color);Re!==We?(this._decorationsTree.delete(De),De.setOptions(Y),this._decorationsTree.insert(De)):De.setOptions(Y)},O.prototype._deltaDecorationsImpl=function(M,Y,De){for(var Re=this.getVersionId(),We=Y.length,ft=0,lt=De.length,yt=0,xt=new Array(lt);ft<We||yt<lt;){var It=null;if(ft<We){do It=this._decorations[Y[ft++]];while(!It&&ft<We);It&&this._decorationsTree.delete(It)}if(yt<lt){if(!It){var Ft=++this._lastDecorationId,Yt=this._instanceId+";"+Ft;It=new Z(Yt,0,0),this._decorations[Yt]=It}var Zt=De[yt],un=this._validateRangeRelaxedNoAllocations(Zt.range),fn=lr(Zt.options),An=this._buffer.getOffsetAt(un.startLineNumber,un.startColumn),gn=this._buffer.getOffsetAt(un.endLineNumber,un.endColumn);It.ownerId=M,It.reset(Re,An,gn,un),It.setOptions(fn),this._decorationsTree.insert(It),xt[yt]=It.id,yt++}else It&&delete this._decorations[It.id]}return xt},O.prototype.setLineTokens=function(M,Y){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),Y)},O.prototype.setTokens=function(M){if(M.length===0)return;for(var Y=[],De=0,Re=M.length;De<Re;De++){var We=M[De];Y.push({fromLineNumber:We.startLineNumber,toLineNumber:We.startLineNumber+We.tokens.length-1});for(var ft=0,lt=We.tokens.length;ft<lt;ft++)this.setLineTokens(We.startLineNumber+ft,We.tokens[ft])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:Y})},O.prototype.setSemanticTokens=function(M){this._tokens2.set(M),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},O.prototype.tokenizeViewport=function(M,Y){M=Math.max(1,M),Y=Math.min(this._buffer.getLineCount(),Y),this._tokenization.tokenizeViewport(M,Y)},O.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},O.prototype._emitModelTokensChangedEvent=function(M){this._isDisposing||this._onDidChangeTokens.fire(M)},O.prototype.resetTokenization=function(){this._tokenization.reset()},O.prototype.forceTokenization=function(M){if(M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(M)},O.prototype.isCheapToTokenize=function(M){return this._tokenization.isCheapToTokenize(M)},O.prototype.tokenizeIfCheap=function(M){this.isCheapToTokenize(M)&&this.forceTokenization(M)},O.prototype.getLineTokens=function(M){if(M<1||M>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(M)},O.prototype._getLineTokens=function(M){var Y=this.getLineContent(M),De=this._tokens.getTokens(this._languageIdentifier.id,M-1,Y);return this._tokens2.addSemanticTokens(M,De)},O.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},O.prototype.getModeId=function(){return this._languageIdentifier.language},O.prototype.setMode=function(M){if(this._languageIdentifier.id===M.id)return;var Y={oldLanguage:this._languageIdentifier.language,newLanguage:M.language};this._languageIdentifier=M,this._onDidChangeLanguage.fire(Y),this._onDidChangeLanguageConfiguration.fire({})},O.prototype.getLanguageIdAtPosition=function(M,Y){var De=this.validatePosition(new j.a(M,Y)),Re=this.getLineTokens(De.lineNumber);return Re.getLanguageId(Re.findTokenIndexAtOffset(De.column-1))},O.prototype.getWordAtPosition=function(M){this._assertNotDisposed();var Y=this.validatePosition(M),De=this.getLineContent(Y.lineNumber),Re=this._getLineTokens(Y.lineNumber),We=Re.findTokenIndexAtOffset(Y.column-1),ft=O._findLanguageBoundaries(Re,We),lt=ft[0],yt=ft[1],xt=Object(Bn.d)(Y.column,kn.a.getWordDefinition(Re.getLanguageId(We)),De.substring(lt,yt),lt);if(xt&&xt.startColumn<=M.column&&M.column<=xt.endColumn)return xt;if(We>0&&lt===Y.column-1){var It=O._findLanguageBoundaries(Re,We-1),Ft=It[0],Yt=It[1],Zt=Object(Bn.d)(Y.column,kn.a.getWordDefinition(Re.getLanguageId(We-1)),De.substring(Ft,Yt),Ft);if(Zt&&Zt.startColumn<=M.column&&M.column<=Zt.endColumn)return Zt}return null},O._findLanguageBoundaries=function(M,Y){for(var De=M.getLanguageId(Y),Re=0,We=Y;We>=0&&M.getLanguageId(We)===De;We--)Re=M.getStartOffset(We);for(var ft=M.getLineContent().length,We=Y,lt=M.getCount();We<lt&&M.getLanguageId(We)===De;We++)ft=M.getEndOffset(We);return[Re,ft]},O.prototype.getWordUntilPosition=function(M){var Y=this.getWordAtPosition(M);return Y?{word:Y.word.substr(0,M.column-Y.startColumn),startColumn:Y.startColumn,endColumn:M.column}:{word:"",startColumn:M.column,endColumn:M.column}},O.prototype.findMatchingBracketUp=function(M,Y){var De=M.toLowerCase(),Re=this.validatePosition(Y),We=this._getLineTokens(Re.lineNumber),ft=We.getLanguageId(We.findTokenIndexAtOffset(Re.column-1)),lt=kn.a.getBracketsSupport(ft);if(!lt)return null;var yt=lt.textIsBracket[De];return yt?this._findMatchingBracketUp(yt,Re):null},O.prototype.matchBracket=function(M){return this._matchBracket(this.validatePosition(M))},O.prototype._matchBracket=function(M){var Y=M.lineNumber,De=this._getLineTokens(Y),Re=De.getCount(),We=this._buffer.getLineContent(Y),ft=De.findTokenIndexAtOffset(M.column-1);if(ft<0)return null;var lt=kn.a.getBracketsSupport(De.getLanguageId(ft));if(lt&&!Object(oi.b)(De.getStandardTokenType(ft))){for(var yt=Math.max(0,M.column-1-lt.maxBracketLength),xt=ft-1;xt>=0;xt--){var It=De.getEndOffset(xt);if(It<=yt)break;Object(oi.b)(De.getStandardTokenType(xt))&&(yt=It)}for(var Ft=Math.min(We.length,M.column-1+lt.maxBracketLength),Yt=null;;){var Zt=ci.a.findNextBracketInRange(lt.forwardRegex,Y,We,yt,Ft);if(!Zt)break;if(Zt.startColumn<=M.column&&M.column<=Zt.endColumn){var un=We.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),fn=this._matchFoundBracket(Zt,lt.textIsBracket[un],lt.textIsOpenBracket[un]);fn&&(Yt=fn)}yt=Zt.endColumn-1}if(Yt)return Yt}if(ft>0&&De.getStartOffset(ft)===M.column-1){var An=ft-1,gn=kn.a.getBracketsSupport(De.getLanguageId(An));if(gn&&!Object(oi.b)(De.getStandardTokenType(An))){for(var yt=Math.max(0,M.column-1-gn.maxBracketLength),Ft=Math.min(We.length,M.column-1+gn.maxBracketLength),xt=An+1;xt<Re;xt++){var Tn=De.getStartOffset(xt);if(Tn>=Ft)break;Object(oi.b)(De.getStandardTokenType(xt))&&(Ft=Tn)}var Zt=ci.a.findPrevBracketInRange(gn.reversedRegex,Y,We,yt,Ft);if(Zt&&Zt.startColumn<=M.column&&M.column<=Zt.endColumn){var un=We.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),fn=this._matchFoundBracket(Zt,gn.textIsBracket[un],gn.textIsOpenBracket[un]);if(fn)return fn}}}return null},O.prototype._matchFoundBracket=function(M,Y,De){if(!Y)return null;if(De){var Re=this._findMatchingBracketDown(Y,M.getEndPosition());if(Re)return[M,Re]}else{var Re=this._findMatchingBracketUp(Y,M.getStartPosition());if(Re)return[M,Re]}return null},O.prototype._findMatchingBracketUp=function(M,Y){for(var De=M.languageIdentifier.id,Re=M.reversedRegex,We=-1,ft=function(Tn,xn,Le,W){for(;;){var ae=ci.a.findPrevBracketInRange(Re,Tn,xn,Le,W);if(!ae)break;var ke=xn.substring(ae.startColumn-1,ae.endColumn-1).toLowerCase();if(M.isOpen(ke)?We++:M.isClose(ke)&&We--,We===0)return ae;W=ae.startColumn-1}return null},lt=Y.lineNumber;lt>=1;lt--){var yt=this._getLineTokens(lt),xt=yt.getCount(),It=this._buffer.getLineContent(lt),Ft=xt-1,Yt=It.length,Zt=It.length;lt===Y.lineNumber&&(Ft=yt.findTokenIndexAtOffset(Y.column-1),Yt=Y.column-1,Zt=Y.column-1);for(var un=!0;Ft>=0;Ft--){var fn=yt.getLanguageId(Ft)===De&&!Object(oi.b)(yt.getStandardTokenType(Ft));if(fn)un?Yt=yt.getStartOffset(Ft):(Yt=yt.getStartOffset(Ft),Zt=yt.getEndOffset(Ft));else if(un&&Yt!==Zt){var An=ft(lt,It,Yt,Zt);if(An)return An}un=fn}if(un&&Yt!==Zt){var An=ft(lt,It,Yt,Zt);if(An)return An}}return null},O.prototype._findMatchingBracketDown=function(M,Y){for(var De=M.languageIdentifier.id,Re=M.forwardRegex,We=1,ft=function(xn,Le,W,ae){for(;;){var ke=ci.a.findNextBracketInRange(Re,xn,Le,W,ae);if(!ke)break;var qe=Le.substring(ke.startColumn-1,ke.endColumn-1).toLowerCase();if(M.isOpen(qe)?We++:M.isClose(qe)&&We--,We===0)return ke;W=ke.endColumn-1}return null},lt=this.getLineCount(),yt=Y.lineNumber;yt<=lt;yt++){var xt=this._getLineTokens(yt),It=xt.getCount(),Ft=this._buffer.getLineContent(yt),Yt=0,Zt=0,un=0;yt===Y.lineNumber&&(Yt=xt.findTokenIndexAtOffset(Y.column-1),Zt=Y.column-1,un=Y.column-1);for(var fn=!0;Yt<It;Yt++){var An=xt.getLanguageId(Yt)===De&&!Object(oi.b)(xt.getStandardTokenType(Yt));if(An)fn||(Zt=xt.getStartOffset(Yt)),un=xt.getEndOffset(Yt);else if(fn&&Zt!==un){var gn=ft(yt,Ft,Zt,un);if(gn)return gn}fn=An}if(fn&&Zt!==un){var gn=ft(yt,Ft,Zt,un);if(gn)return gn}}return null},O.prototype.findPrevBracket=function(M){for(var Y=this.validatePosition(M),De=-1,Re=null,We=Y.lineNumber;We>=1;We--){var ft=this._getLineTokens(We),lt=ft.getCount(),yt=this._buffer.getLineContent(We),xt=lt-1,It=yt.length,Ft=yt.length;if(We===Y.lineNumber){xt=ft.findTokenIndexAtOffset(Y.column-1),It=Y.column-1,Ft=Y.column-1;var Yt=ft.getLanguageId(xt);De!==Yt&&(De=Yt,Re=kn.a.getBracketsSupport(De))}for(var Zt=!0;xt>=0;xt--){var Yt=ft.getLanguageId(xt);if(De!==Yt){if(Re&&Zt&&It!==Ft){var un=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,Ft);if(un)return this._toFoundBracket(Re,un);Zt=!1}De=Yt,Re=kn.a.getBracketsSupport(De)}var fn=!!Re&&!Object(oi.b)(ft.getStandardTokenType(xt));if(fn)Zt?It=ft.getStartOffset(xt):(It=ft.getStartOffset(xt),Ft=ft.getEndOffset(xt));else if(Re&&Zt&&It!==Ft){var un=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,Ft);if(un)return this._toFoundBracket(Re,un)}Zt=fn}if(Re&&Zt&&It!==Ft){var un=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,Ft);if(un)return this._toFoundBracket(Re,un)}}return null},O.prototype.findNextBracket=function(M){for(var Y=this.validatePosition(M),De=this.getLineCount(),Re=-1,We=null,ft=Y.lineNumber;ft<=De;ft++){var lt=this._getLineTokens(ft),yt=lt.getCount(),xt=this._buffer.getLineContent(ft),It=0,Ft=0,Yt=0;if(ft===Y.lineNumber){It=lt.findTokenIndexAtOffset(Y.column-1),Ft=Y.column-1,Yt=Y.column-1;var Zt=lt.getLanguageId(It);Re!==Zt&&(Re=Zt,We=kn.a.getBracketsSupport(Re))}for(var un=!0;It<yt;It++){var Zt=lt.getLanguageId(It);if(Re!==Zt){if(We&&un&&Ft!==Yt){var fn=ci.a.findNextBracketInRange(We.forwardRegex,ft,xt,Ft,Yt);if(fn)return this._toFoundBracket(We,fn);un=!1}Re=Zt,We=kn.a.getBracketsSupport(Re)}var An=!!We&&!Object(oi.b)(lt.getStandardTokenType(It));if(An)un||(Ft=lt.getStartOffset(It)),Yt=lt.getEndOffset(It);else if(We&&un&&Ft!==Yt){var fn=ci.a.findNextBracketInRange(We.forwardRegex,ft,xt,Ft,Yt);if(fn)return this._toFoundBracket(We,fn)}un=An}if(We&&un&&Ft!==Yt){var fn=ci.a.findNextBracketInRange(We.forwardRegex,ft,xt,Ft,Yt);if(fn)return this._toFoundBracket(We,fn)}}return null},O.prototype.findEnclosingBrackets=function(M,Y){var De=this;Y===void 0&&(Y=1073741824);for(var Re=this.validatePosition(M),We=this.getLineCount(),ft=new Map,lt=[],yt=function(St,Ge){if(!ft.has(St)){for(var ue=[],X=0,Ue=Ge?Ge.brackets.length:0;X<Ue;X++)ue[X]=0;ft.set(St,ue)}lt=ft.get(St)},xt=function(St,Ge,ue,X,Ue){for(;;){var at=ci.a.findNextBracketInRange(St.forwardRegex,Ge,ue,X,Ue);if(!at)break;var et=ue.substring(at.startColumn-1,at.endColumn-1).toLowerCase(),J=St.textIsBracket[et];if(J&&(J.isOpen(et)?lt[J.index]++:J.isClose(et)&&lt[J.index]--,lt[J.index]===-1))return De._matchFoundBracket(at,J,!1);X=at.endColumn-1}return null},It=-1,Ft=null,Yt=Date.now(),Zt=Re.lineNumber;Zt<=We;Zt++){var un=Date.now()-Yt;if(un>Y)return null;var fn=this._getLineTokens(Zt),An=fn.getCount(),gn=this._buffer.getLineContent(Zt),Tn=0,xn=0,Le=0;if(Zt===Re.lineNumber){Tn=fn.findTokenIndexAtOffset(Re.column-1),xn=Re.column-1,Le=Re.column-1;var W=fn.getLanguageId(Tn);It!==W&&(It=W,Ft=kn.a.getBracketsSupport(It),yt(It,Ft))}for(var ae=!0;Tn<An;Tn++){var W=fn.getLanguageId(Tn);if(It!==W){if(Ft&&ae&&xn!==Le){var ke=xt(Ft,Zt,gn,xn,Le);if(ke)return ke;ae=!1}It=W,Ft=kn.a.getBracketsSupport(It),yt(It,Ft)}var qe=!!Ft&&!Object(oi.b)(fn.getStandardTokenType(Tn));if(qe)ae||(xn=fn.getStartOffset(Tn)),Le=fn.getEndOffset(Tn);else if(Ft&&ae&&xn!==Le){var ke=xt(Ft,Zt,gn,xn,Le);if(ke)return ke}ae=qe}if(Ft&&ae&&xn!==Le){var ke=xt(Ft,Zt,gn,xn,Le);if(ke)return ke}}return null},O.prototype._toFoundBracket=function(M,Y){if(!Y)return null;var De=this.getValueInRange(Y);De=De.toLowerCase();var Re=M.textIsBracket[De];return Re?{range:Y,open:Re.open,close:Re.close,isOpen:M.textIsOpenBracket[De]}:null},O.computeIndentLevel=function(M,Y){for(var De=0,Re=0,We=M.length;Re<We;){var ft=M.charCodeAt(Re);if(ft===32)De++;else if(ft===9)De=De-De%Y+Y;else break;Re++}return Re===We?-1:De},O.prototype._computeIndentLevel=function(M){return O.computeIndentLevel(this._buffer.getLineContent(M+1),this._options.tabSize)},O.prototype.getActiveIndentGuide=function(M,Y,De){var Re=this;this._assertNotDisposed();var We=this.getLineCount();if(M<1||M>We)throw new Error("Illegal value for lineNumber");for(var ft=kn.a.getFoldingRules(this._languageIdentifier.id),lt=Boolean(ft&&ft.offSide),yt=-2,xt=-1,It=-2,Ft=-1,Yt=function(Ue){if(yt!==-1&&(yt===-2||yt>Ue-1)){yt=-1,xt=-1;for(var at=Ue-2;at>=0;at--){var et=Re._computeIndentLevel(at);if(et>=0){yt=at,xt=et;break}}}if(It===-2){It=-1,Ft=-1;for(var at=Ue;at<We;at++){var J=Re._computeIndentLevel(at);if(J>=0){It=at,Ft=J;break}}}},Zt=-2,un=-1,fn=-2,An=-1,gn=function(Ue){if(Zt===-2){Zt=-1,un=-1;for(var at=Ue-2;at>=0;at--){var et=Re._computeIndentLevel(at);if(et>=0){Zt=at,un=et;break}}}if(fn!==-1&&(fn===-2||fn<Ue-1)){fn=-1,An=-1;for(var at=Ue;at<We;at++){var J=Re._computeIndentLevel(at);if(J>=0){fn=at,An=J;break}}}},Tn=0,xn=!0,Le=0,W=!0,ae=0,ke=0;xn||W;ke++){var qe=M-ke,ct=M+ke;if(ke!==0&&(qe<1||qe<Y)&&(xn=!1),ke!==0&&(ct>We||ct>De)&&(W=!1),ke>5e4&&(xn=!1,W=!1),xn){var St=void 0,Ge=this._computeIndentLevel(qe-1);if(Ge>=0?(It=qe-1,Ft=Ge,St=Math.ceil(Ge/this._options.indentSize)):(Yt(qe),St=this._getIndentLevelForWhitespaceLine(lt,xt,Ft)),ke===0){if(Tn=qe,Le=ct,ae=St,ae===0)return{startLineNumber:Tn,endLineNumber:Le,indent:ae};continue}St>=ae?Tn=qe:xn=!1}if(W){var ue=void 0,Ge=this._computeIndentLevel(ct-1);Ge>=0?(Zt=ct-1,un=Ge,ue=Math.ceil(Ge/this._options.indentSize)):(gn(ct),ue=this._getIndentLevelForWhitespaceLine(lt,un,An)),ue>=ae?Le=ct:W=!1}}return{startLineNumber:Tn,endLineNumber:Le,indent:ae}},O.prototype.getLinesIndentGuides=function(M,Y){this._assertNotDisposed();var De=this.getLineCount();if(M<1||M>De)throw new Error("Illegal value for startLineNumber");if(Y<1||Y>De)throw new Error("Illegal value for endLineNumber");for(var Re=kn.a.getFoldingRules(this._languageIdentifier.id),We=Boolean(Re&&Re.offSide),ft=new Array(Y-M+1),lt=-2,yt=-1,xt=-2,It=-1,Ft=M;Ft<=Y;Ft++){var Yt=Ft-M,Zt=this._computeIndentLevel(Ft-1);if(Zt>=0){lt=Ft-1,yt=Zt,ft[Yt]=Math.ceil(Zt/this._options.indentSize);continue}if(lt===-2){lt=-1,yt=-1;for(var un=Ft-2;un>=0;un--){var fn=this._computeIndentLevel(un);if(fn>=0){lt=un,yt=fn;break}}}if(xt!==-1&&(xt===-2||xt<Ft-1)){xt=-1,It=-1;for(var un=Ft;un<De;un++){var fn=this._computeIndentLevel(un);if(fn>=0){xt=un,It=fn;break}}}ft[Yt]=this._getIndentLevelForWhitespaceLine(We,yt,It)}return ft},O.prototype._getIndentLevelForWhitespaceLine=function(M,Y,De){return Y===-1||De===-1?0:Y<De?1+Math.floor(Y/this._options.indentSize):Y===De?Math.ceil(De/this._options.indentSize):M?Math.ceil(De/this._options.indentSize):1+Math.floor(De/this._options.indentSize)},O.MODEL_SYNC_LIMIT=50*1024*1024,O.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,O.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,O.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:U.c.tabSize,indentSize:U.c.indentSize,insertSpaces:U.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:U.c.trimAutoWhitespace,largeFileOptimizations:U.c.largeFileOptimizations},O}(ne.a),Bi=function(){function Qe(){this._decorationsTree0=new Te,this._decorationsTree1=new Te}return Qe.prototype.intervalSearch=function(O,M,Y,De,Re){var We=this._decorationsTree0.intervalSearch(O,M,Y,De,Re),ft=this._decorationsTree1.intervalSearch(O,M,Y,De,Re);return We.concat(ft)},Qe.prototype.search=function(O,M,Y,De){if(Y)return this._decorationsTree1.search(O,M,De);var Re=this._decorationsTree0.search(O,M,De),We=this._decorationsTree1.search(O,M,De);return Re.concat(We)},Qe.prototype.collectNodesFromOwner=function(O){var M=this._decorationsTree0.collectNodesFromOwner(O),Y=this._decorationsTree1.collectNodesFromOwner(O);return M.concat(Y)},Qe.prototype.collectNodesPostOrder=function(){var O=this._decorationsTree0.collectNodesPostOrder(),M=this._decorationsTree1.collectNodesPostOrder();return O.concat(M)},Qe.prototype.insert=function(O){z(O)?this._decorationsTree1.insert(O):this._decorationsTree0.insert(O)},Qe.prototype.delete=function(O){z(O)?this._decorationsTree1.delete(O):this._decorationsTree0.delete(O)},Qe.prototype.resolveNode=function(O,M){z(O)?this._decorationsTree1.resolveNode(O,M):this._decorationsTree0.resolveNode(O,M)},Qe.prototype.acceptReplace=function(O,M,Y,De){this._decorationsTree0.acceptReplace(O,M,Y,De),this._decorationsTree1.acceptReplace(O,M,Y,De)},Qe}();function vi(Qe){return Qe.replace(/[^a-z0-9\-_]/gi," ")}var qi=function(){function Qe(O){this.color=O.color||"",this.darkColor=O.darkColor||""}return Qe}(),or=function(Qe){Zn(O,Qe);function O(M){var Y=Qe.call(this,M)||this;return Y._resolvedColor=null,Y.position=typeof M.position=="number"?M.position:_.d.Center,Y}return O.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},O.prototype.invalidateCachedColor=function(){this._resolvedColor=null},O.prototype._resolveColor=function(M,Y){if(typeof M=="string")return M;var De=M?Y.getColor(M.id):null;return De?De.toString():""},O}(qi),bi=function(Qe){Zn(O,Qe);function O(M){var Y=Qe.call(this,M)||this;return Y.position=M.position,Y}return O.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},O.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},O.prototype._resolveColor=function(M,Y){return typeof M=="string"?rr.a.fromHex(M):Y.getColor(M.id)},O}(qi),Di=function(){function Qe(O){this.stickiness=O.stickiness||0,this.zIndex=O.zIndex||0,this.className=O.className?vi(O.className):null,this.hoverMessage=Object(Hi.o)(O.hoverMessage),this.glyphMarginHoverMessage=Object(Hi.o)(O.glyphMarginHoverMessage),this.isWholeLine=O.isWholeLine||!1,this.showIfCollapsed=O.showIfCollapsed||!1,this.collapseOnReplaceEdit=O.collapseOnReplaceEdit||!1,this.overviewRuler=O.overviewRuler?new or(O.overviewRuler):null,this.minimap=O.minimap?new bi(O.minimap):null,this.glyphMarginClassName=O.glyphMarginClassName?vi(O.glyphMarginClassName):null,this.linesDecorationsClassName=O.linesDecorationsClassName?vi(O.linesDecorationsClassName):null,this.marginClassName=O.marginClassName?vi(O.marginClassName):null,this.inlineClassName=O.inlineClassName?vi(O.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=O.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=O.beforeContentClassName?vi(O.beforeContentClassName):null,this.afterContentClassName=O.afterContentClassName?vi(O.afterContentClassName):null}return Qe.register=function(O){return new Qe(O)},Qe.createDynamic=function(O){return new Qe(O)},Qe}();Di.EMPTY=Di.register({});var Xi=[Di.register({stickiness:0}),Di.register({stickiness:1}),Di.register({stickiness:2}),Di.register({stickiness:3})];function lr(Qe){return Qe instanceof Di?Qe:Di.createDynamic(Qe)}var Ti=function(Qe){Zn(O,Qe);function O(){var M=Qe.call(this)||this;return M._actual=M._register(new re.a),M.event=M._actual.event,M._deferredCnt=0,M._shouldFire=!1,M}return O.prototype.beginDeferredEmit=function(){this._deferredCnt++},O.prototype.endDeferredEmit=function(){this._deferredCnt--,this._deferredCnt===0&&(this._shouldFire&&(this._shouldFire=!1,this._actual.fire({})))},O.prototype.fire=function(){this._shouldFire=!0},O}(ne.a),sr=function(Qe){Zn(O,Qe);function O(){var M=Qe.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 O.prototype.beginDeferredEmit=function(){this._deferredCnt++},O.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)}},O.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)},O}(ne.a)},tXSY:function(wt,P,o){"use strict";o.r(P),o.d(P,"SnippetController2",function(){return Pt});var I=o("pmY6"),re=o("N0LK"),ne=o("sswD"),N=o("aokT"),k=o("gCVg"),U=o("wQH0"),j=o("QVNv"),G=o("T8No"),R=o("09fa"),_=o("6OMU"),x=o("dFcq"),K=o("0/Sa"),D=o("tX9W"),A=o("9XeP"),te=o("EWX2"),H=o("Cg/j"),E=o("uACm"),f=o("3/fG"),p=o("MrjW"),g=o("gslv"),m=o("cMvZ"),w=o("bY76"),B="code-workspace";function z(Ke){return Ke instanceof w.a}function oe(Ke){return Ke.configuration?{configPath:Ke.configuration,id:Ke.id}:Ke.folders.length===1?Ke.folders[0].uri:void 0}var he=o("3rx1"),_e=function(){function Ke(Xe){this._delegates=Xe}return Ke.prototype.resolve=function(Xe){for(var Ze=0,Ye=this._delegates;Ze<Ye.length;Ze++){var Fe=Ye[Ze],$e=Fe.resolve(Xe);if($e!==void 0)return $e}return},Ke}(),Se=function(){function Ke(Xe,Ze){this._model=Xe,this._selection=Ze}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name;if(Ze==="SELECTION"||Ze==="TM_SELECTED_TEXT"){var Ye=this._model.getValueInRange(this._selection)||void 0;if(Ye&&this._selection.startLineNumber!==this._selection.endLineNumber&&Xe.snippet){var Fe=this._model.getLineContent(this._selection.startLineNumber),$e=Object(re.t)(Fe,0,this._selection.startColumn-1),we=$e;Xe.snippet.walk(function(Pe){return Pe===Xe?!1:(Pe instanceof E.d&&(we=Object(re.t)(Pe.value.split(/\r\n|\r|\n/).pop())),!0)});var F=Object(re.c)(we,$e);Ye=Ye.replace(/(\r\n|\r|\n)(.*)/g,function(Pe,ve,Me){return""+ve+we.substr(F)+Me})}return Ye}else{if(Ze==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(Ze==="TM_CURRENT_WORD"){var ee=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return ee&&ee.word||void 0}else{if(Ze==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(Ze==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber)}}return},Ke}(),q=function(){function Ke(Xe,Ze){this._labelService=Xe,this._model=Ze}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name;if(Ze==="TM_FILENAME")return p.basename(this._model.uri.fsPath);if(Ze==="TM_FILENAME_BASE"){var Ye=p.basename(this._model.uri.fsPath),Fe=Ye.lastIndexOf(".");return Fe<=0?Ye:Ye.slice(0,Fe)}else{if(Ze==="TM_DIRECTORY"&&this._labelService)return p.dirname(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(g.d)(this._model.uri));if(Ze==="TM_FILEPATH"&&this._labelService)return this._labelService.getUriLabel(this._model.uri)}return},Ke}(),Z=function(){function Ke(Xe,Ze,Ye,Fe){this._readClipboardText=Xe,this._selectionIdx=Ze,this._selectionCount=Ye,this._spread=Fe}return Ke.prototype.resolve=function(Xe){if(Xe.name!=="CLIPBOARD")return;var Ze=this._readClipboardText();if(!Ze)return;if(this._spread){var Ye=Ze.split(/\r\n|\n|\r/).filter(function(Fe){return!Object(re.x)(Fe)});if(Ye.length===this._selectionCount)return Ye[this._selectionIdx]}return Ze},Ke}(),ce=function(){function Ke(Xe){this._model=Xe}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name,Ye=this._model.getLanguageIdentifier(),Fe=m.a.getComments(Ye.id);return Fe?Ze==="LINE_COMMENT"?Fe.lineCommentToken||void 0:Ze==="BLOCK_COMMENT_START"?Fe.blockCommentStartToken||void 0:Ze==="BLOCK_COMMENT_END"&&Fe.blockCommentEndToken||void 0:void 0},Ke}(),Te=function(){function Ke(){}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name;return Ze==="CURRENT_YEAR"?String(new Date().getFullYear()):Ze==="CURRENT_YEAR_SHORT"?String(new Date().getFullYear()).slice(-2):Ze==="CURRENT_MONTH"?Object(re.F)(new Date().getMonth().valueOf()+1,2):Ze==="CURRENT_DATE"?Object(re.F)(new Date().getDate().valueOf(),2):Ze==="CURRENT_HOUR"?Object(re.F)(new Date().getHours().valueOf(),2):Ze==="CURRENT_MINUTE"?Object(re.F)(new Date().getMinutes().valueOf(),2):Ze==="CURRENT_SECOND"?Object(re.F)(new Date().getSeconds().valueOf(),2):Ze==="CURRENT_DAY_NAME"?Ke.dayNames[new Date().getDay()]:Ze==="CURRENT_DAY_NAME_SHORT"?Ke.dayNamesShort[new Date().getDay()]:Ze==="CURRENT_MONTH_NAME"?Ke.monthNames[new Date().getMonth()]:Ze==="CURRENT_MONTH_NAME_SHORT"?Ke.monthNamesShort[new Date().getMonth()]:Ze==="CURRENT_SECONDS_UNIX"?String(Math.floor(Date.now()/1e3)):void 0},Ke.dayNames=[f.a("Sunday","Sunday"),f.a("Monday","Monday"),f.a("Tuesday","Tuesday"),f.a("Wednesday","Wednesday"),f.a("Thursday","Thursday"),f.a("Friday","Friday"),f.a("Saturday","Saturday")],Ke.dayNamesShort=[f.a("SundayShort","Sun"),f.a("MondayShort","Mon"),f.a("TuesdayShort","Tue"),f.a("WednesdayShort","Wed"),f.a("ThursdayShort","Thu"),f.a("FridayShort","Fri"),f.a("SaturdayShort","Sat")],Ke.monthNames=[f.a("January","January"),f.a("February","February"),f.a("March","March"),f.a("April","April"),f.a("May","May"),f.a("June","June"),f.a("July","July"),f.a("August","August"),f.a("September","September"),f.a("October","October"),f.a("November","November"),f.a("December","December")],Ke.monthNamesShort=[f.a("JanuaryShort","Jan"),f.a("FebruaryShort","Feb"),f.a("MarchShort","Mar"),f.a("AprilShort","Apr"),f.a("MayShort","May"),f.a("JuneShort","Jun"),f.a("JulyShort","Jul"),f.a("AugustShort","Aug"),f.a("SeptemberShort","Sep"),f.a("OctoberShort","Oct"),f.a("NovemberShort","Nov"),f.a("DecemberShort","Dec")],Ke}(),Ve=function(){function Ke(Xe){this._workspaceService=Xe}return Ke.prototype.resolve=function(Xe){if(!this._workspaceService)return;var Ze=oe(this._workspaceService.getWorkspace());return Ze?Xe.name==="WORKSPACE_NAME"?this._resolveWorkspaceName(Ze):Xe.name==="WORKSPACE_FOLDER"?this._resoveWorkspacePath(Ze):void 0:void 0},Ke.prototype._resolveWorkspaceName=function(Xe){if(z(Xe))return p.basename(Xe.path);var Ze=p.basename(Xe.configPath.path);return Object(re.m)(Ze,B)&&(Ze=Ze.substr(0,Ze.length-B.length-1)),Ze},Ke.prototype._resoveWorkspacePath=function(Xe){if(z(Xe))return Object(he.c)(Xe.fsPath);var Ze=p.basename(Xe.configPath.path),Ye=Xe.configPath.fsPath;return Object(re.m)(Ye,Ze)&&(Ye=Ye.substr(0,Ye.length-Ze.length-1)),Ye?Object(he.c)(Ye):"/"},Ke}(),Ee=function(){function Ke(){}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name;return Ze==="RANDOM"?Math.random().toString().slice(-6):Ze==="RANDOM_HEX"?Math.random().toString(16).slice(-6):void 0},Ke}(),de=o("t9D7"),se=o("MD5Z"),fe=o("R8sh");Object(de.e)(function(Ke,Xe){function Ze(Ye){var Fe=Ke.getColor(Ye);return Fe?Fe.toString():"transparent"}Xe.addRule(".monaco-editor .snippet-placeholder { background-color: "+Ze(se.Zb)+"; outline-color: "+Ze(se.ac)+"; }"),Xe.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+Ze(se.Xb)+"; outline-color: "+Ze(se.Yb)+"; }")});var ie=function(){function Ke(Xe,Ze,Ye){this._nestingLevel=1,this._editor=Xe,this._snippet=Ze,this._offset=Ye,this._placeholderGroups=Object(_.o)(Ze.placeholders,E.b.compareByIndex),this._placeholderGroupsIdx=-1}return Ke.prototype.dispose=function(){if(this._placeholderDecorations){var Xe=[];this._placeholderDecorations.forEach(function(Ze){return Xe.push(Ze)}),this._editor.deltaDecorations(Xe,[])}this._placeholderGroups.length=0},Ke.prototype._initDecorations=function(){var Xe=this;if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;var Ze=this._editor.getModel();this._editor.changeDecorations(function(Ye){for(var Fe=0,$e=Xe._snippet.placeholders;Fe<$e.length;Fe++){var we=$e[Fe],F=Xe._snippet.offset(we),ee=Xe._snippet.fullLen(we),Pe=N.a.fromPositions(Ze.getPositionAt(Xe._offset+F),Ze.getPositionAt(Xe._offset+F+ee)),ve=we.isFinalTabstop?Ke._decor.inactiveFinal:Ke._decor.inactive,Me=Ye.addDecoration(Pe,ve);Xe._placeholderDecorations.set(we,Me)}})},Ke.prototype.move=function(Xe){var Ze=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var Ye=[],Fe=0,$e=this._placeholderGroups[this._placeholderGroupsIdx];Fe<$e.length;Fe++){var we=$e[Fe];if(we.transform){var F=this._placeholderDecorations.get(we),ee=this._editor.getModel().getDecorationRange(F),Pe=this._editor.getModel().getValueInRange(ee);Ye.push(K.a.replaceMove(ee,we.transform.resolve(Pe)))}}Ye.length>0&&this._editor.executeEdits("snippet.placeholderTransform",Ye)}var ve=!1;Xe===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,ve=!0):Xe===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,ve=!0);var Me=this._editor.getModel().changeDecorations(function(Ie){for(var pe=new Set,nt=[],_t=0,Rt=Ze._placeholderGroups[Ze._placeholderGroupsIdx];_t<Rt.length;_t++){var Mt=Rt[_t],zt=Ze._placeholderDecorations.get(Mt),Gt=Ze._editor.getModel().getDecorationRange(zt);nt.push(new k.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)),ve=ve&&Ze._hasPlaceholderBeenCollapsed(Mt),Ie.changeDecorationOptions(zt,Mt.isFinalTabstop?Ke._decor.activeFinal:Ke._decor.active),pe.add(Mt);for(var on=0,Ln=Ze._snippet.enclosingPlaceholders(Mt);on<Ln.length;on++){var yn=Ln[on],Mn=Ze._placeholderDecorations.get(yn);Ie.changeDecorationOptions(Mn,yn.isFinalTabstop?Ke._decor.activeFinal:Ke._decor.active),pe.add(yn)}}return Ze._placeholderDecorations.forEach(function(kt,pt){pe.has(pt)||Ie.changeDecorationOptions(kt,pt.isFinalTabstop?Ke._decor.inactiveFinal:Ke._decor.inactive)}),nt});return ve?this.move(Xe):Me},Ke.prototype._hasPlaceholderBeenCollapsed=function(Xe){for(var Ze=Xe;Ze;){if(Ze instanceof E.b){var Ye=this._placeholderDecorations.get(Ze),Fe=this._editor.getModel().getDecorationRange(Ye);if(Fe.isEmpty()&&Ze.toString().length>0)return!0}Ze=Ze.parent}return!1},Object.defineProperty(Ke.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),Ke.prototype.computePossibleSelections=function(){for(var Xe=new Map,Ze=0,Ye=this._placeholderGroups;Ze<Ye.length;Ze++)for(var Fe=Ye[Ze],$e=void 0,we=0,F=Fe;we<F.length;we++){var ee=F[we];if(ee.isFinalTabstop)break;$e||($e=[],Xe.set(ee.index,$e));var Pe=this._placeholderDecorations.get(ee),ve=this._editor.getModel().getDecorationRange(Pe);if(!ve){Xe.delete(ee.index);break}$e.push(ve)}return Xe},Object.defineProperty(Ke.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),Ke.prototype.merge=function(Xe){var Ze=this,Ye=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(Fe){for(var $e=0,we=Ze._placeholderGroups[Ze._placeholderGroupsIdx];$e<we.length;$e++){var F=we[$e],ee=Xe.shift();console.assert(!ee._placeholderDecorations);for(var Pe=ee._snippet.placeholderInfo.last.index,ve=0,Me=ee._snippet.placeholderInfo.all;ve<Me.length;ve++){var Ie=Me[ve];Ie.isFinalTabstop?Ie.index=F.index+(Pe+1)/Ze._nestingLevel:Ie.index=F.index+Ie.index/Ze._nestingLevel}Ze._snippet.replace(F,ee._snippet.children);var pe=Ze._placeholderDecorations.get(F);Fe.removeDecoration(pe),Ze._placeholderDecorations.delete(F);for(var nt=0,_t=ee._snippet.placeholders;nt<_t.length;nt++){var Rt=_t[nt],Mt=ee._snippet.offset(Rt),zt=ee._snippet.fullLen(Rt),Gt=N.a.fromPositions(Ye.getPositionAt(ee._offset+Mt),Ye.getPositionAt(ee._offset+Mt+zt)),on=Fe.addDecoration(Gt,Ke._decor.inactive);Ze._placeholderDecorations.set(Rt,on)}}Ze._placeholderGroups=Object(_.o)(Ze._snippet.placeholders,E.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}(),Q={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},me=function(){function Ke(Xe,Ze,Ye){Ye===void 0&&(Ye=Q),this._templateMerges=[],this._snippets=[],this._editor=Xe,this._template=Ze,this._options=Ye}return Ke.adjustWhitespace=function(Xe,Ze,Ye,Fe,$e){var we=Xe.getLineContent(Ze.lineNumber),F=Object(re.t)(we,0,Ze.column-1);Ye.walk(function(ee){if(ee instanceof E.d&&!(ee.parent instanceof E.a)){var Pe=ee.value.split(/\r\n|\r|\n/);if(Fe)for(var ve=1;ve<Pe.length;ve++){var Me=Object(re.t)(Pe[ve]);Pe[ve]=Xe.normalizeIndentation(F+Me)+Pe[ve].substr(Me.length)}if($e){var Ie=Pe.join(Xe.getEOL());Ie!==ee.value&&ee.parent.replace(ee,[new E.d(Ie)])}}return!0})},Ke.adjustSelection=function(Xe,Ze,Ye,Fe){if(Ye!==0||Fe!==0){var $e=Ze.positionLineNumber,we=Ze.positionColumn,F=we-Ye,ee=we+Fe,Pe=Xe.validateRange({startLineNumber:$e,startColumn:F,endLineNumber:$e,endColumn:ee});Ze=k.a.createWithDirection(Pe.startLineNumber,Pe.startColumn,Pe.endLineNumber,Pe.endColumn,Ze.getDirection())}return Ze},Ke.createEditsAndSnippets=function(Xe,Ze,Ye,Fe,$e,we,F){var ee=[],Pe=[];if(!Xe.hasModel())return{edits:ee,snippets:Pe};for(var ve=Xe.getModel(),Me=Xe.invokeWithinContext(function(nn){return nn.get(te.a,H.d)}),Ie=Xe.invokeWithinContext(function(nn){return new q(nn.get(fe.a,H.d),ve)}),pe=Xe.invokeWithinContext(function(nn){return nn.get(A.a,H.d)}),nt=function(){return F||pe&&pe.readTextSync()},_t=0,Rt=ve.getValueInRange(Ke.adjustSelection(ve,Xe.getSelection(),Ye,0)),Mt=ve.getValueInRange(Ke.adjustSelection(ve,Xe.getSelection(),0,Fe)),zt=ve.getLineFirstNonWhitespaceColumn(Xe.getSelection().positionLineNumber),Gt=Xe.getSelections().map(function(nn,sn){return{selection:nn,idx:sn}}).sort(function(nn,sn){return N.a.compareRangesUsingStarts(nn.selection,sn.selection)}),on=0,Ln=Gt;on<Ln.length;on++){var yn=Ln[on],Mn=yn.selection,kt=yn.idx,pt=Ke.adjustSelection(ve,Mn,Ye,0),gt=Ke.adjustSelection(ve,Mn,0,Fe);Rt!==ve.getValueInRange(pt)&&(pt=Mn),Mt!==ve.getValueInRange(gt)&&(gt=Mn);var Dt=Mn.setStartPosition(pt.startLineNumber,pt.startColumn).setEndPosition(gt.endLineNumber,gt.endColumn),Lt=new E.c().parse(Ze,!0,$e),Vt=Dt.getStartPosition();Ke.adjustWhitespace(ve,Vt,Lt,we||kt>0&&zt!==ve.getLineFirstNonWhitespaceColumn(Mn.positionLineNumber),!0),Lt.resolveVariables(new _e([Ie,new Z(nt,kt,Gt.length,Xe.getOption(60)==="spread"),new Se(ve,Mn),new ce(ve),new Te,new Ve(Me),new Ee]));var Jt=ve.getOffsetAt(Vt)+_t;_t+=Lt.toString().length-ve.getValueLengthInRange(Dt),ee[kt]=K.a.replace(Dt,Lt.toString()),Pe[kt]=new ie(Xe,Lt,Jt)}return{edits:ee,snippets:Pe}},Ke.prototype.dispose=function(){Object(I.f)(this._snippets)},Ke.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},Ke.prototype.insert=function(){var Xe=this;if(!this._editor.hasModel())return;var Ze=Ke.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Ye=Ze.edits,Fe=Ze.snippets;this._snippets=Fe,this._editor.executeEdits("snippet",Ye,function($e){return Xe._snippets[0].hasPlaceholder?Xe._move(!0):$e.map(function(we){return k.a.fromPositions(we.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},Ke.prototype.merge=function(Xe,Ze){var Ye=this;if(Ze===void 0&&(Ze=Q),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,Xe]);var Fe=Ke.createEditsAndSnippets(this._editor,Xe,Ze.overwriteBefore,Ze.overwriteAfter,!0,Ze.adjustWhitespace,Ze.clipboardText),$e=Fe.edits,we=Fe.snippets;this._editor.executeEdits("snippet",$e,function(F){for(var ee=0,Pe=Ye._snippets;ee<Pe.length;ee++){var ve=Pe[ee];ve.merge(we)}return console.assert(we.length===0),Ye._snippets[0].hasPlaceholder?Ye._move(void 0):F.map(function(Me){return k.a.fromPositions(Me.range.getEndPosition())})})},Ke.prototype.next=function(){var Xe=this._move(!0);this._editor.setSelections(Xe),this._editor.revealPositionInCenterIfOutsideViewport(Xe[0].getPosition())},Ke.prototype.prev=function(){var Xe=this._move(!1);this._editor.setSelections(Xe),this._editor.revealPositionInCenterIfOutsideViewport(Xe[0].getPosition())},Ke.prototype._move=function(Xe){for(var Ze=[],Ye=0,Fe=this._snippets;Ye<Fe.length;Ye++){var $e=Fe[Ye],we=$e.move(Xe);Ze.push.apply(Ze,we)}return Ze},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 Xe=this._editor.getSelections();if(Xe.length<this._snippets.length)return!1;for(var Ze=new Map,Ye=function(Pe){var ve=Pe.computePossibleSelections();if(Ze.size===0&&ve.forEach(function(Me,Ie){Me.sort(N.a.compareRangesUsingStarts);for(var pe=0,nt=Xe;pe<nt.length;pe++){var _t=nt[pe];if(Me[0].containsRange(_t)){Ze.set(Ie,[]);break}}}),Ze.size===0)return{value:!1};Ze.forEach(function(Me,Ie){Me.push.apply(Me,ve.get(Ie))})},Fe=0,$e=this._snippets;Fe<$e.length;Fe++){var we=$e[Fe],F=Ye(we);if(typeof F=="object")return F.value}return Xe.sort(N.a.compareRangesUsingStarts),Ze.forEach(function(ee,Pe){if(ee.length!==Xe.length){Ze.delete(Pe);return}ee.sort(N.a.compareRangesUsingStarts);for(var ve=0;ve<ee.length;ve++)if(!ee[ve].containsRange(Xe[ve])){Ze.delete(Pe);return}}),Ze.size>0},Ke}(),ye=function(){return ye=Object.assign||function(Ke){for(var Xe,Ze=1,Ye=arguments.length;Ze<Ye;Ze++){Xe=arguments[Ze];for(var Fe in Xe)Object.prototype.hasOwnProperty.call(Xe,Fe)&&(Ke[Fe]=Xe[Fe])}return Ke},ye.apply(this,arguments)},He=function(Ke,Xe,Ze,Ye){var Fe=arguments.length,$e=Fe<3?Xe:Ye===null?Ye=Object.getOwnPropertyDescriptor(Xe,Ze):Ye,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$e=Reflect.decorate(Ke,Xe,Ze,Ye);else for(var F=Ke.length-1;F>=0;F--)(we=Ke[F])&&($e=(Fe<3?we($e):Fe>3?we(Xe,Ze,$e):we(Xe,Ze))||$e);return Fe>3&&$e&&Object.defineProperty(Xe,Ze,$e),$e},tt=function(Ke,Xe){return function(Ze,Ye){Xe(Ze,Ye,Ke)}},Et={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},Pt=function(){function Ke(Xe,Ze,Ye){this._editor=Xe,this._logService=Ze,this._snippetListener=new I.b,this._modelVersionId=-1,this._inSnippet=Ke.InSnippetMode.bindTo(Ye),this._hasNextTabstop=Ke.HasNextTabstop.bindTo(Ye),this._hasPrevTabstop=Ke.HasPrevTabstop.bindTo(Ye)}return Ke.get=function(Xe){return Xe.getContribution(Ke.ID)},Ke.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(I.f)(this._session),this._snippetListener.dispose()},Ke.prototype.insert=function(Xe,Ze){try{this._doInsert(Xe,typeof Ze=="undefined"?Et:ye(ye({},Et),Ze))}catch(Ye){this.cancel(),this._logService.error(Ye),this._logService.error("snippet_error"),this._logService.error("insert_template=",Xe),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},Ke.prototype._doInsert=function(Xe,Ze){var Ye=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),Ze.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(Xe,Ze):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new me(this._editor,Xe,Ze),this._session.insert()),Ze.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(Fe){return Fe.isFlush&&Ye.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Ye.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Ye._updateState()}))},Ke.prototype._updateState=function(){if(!this._session||!this._editor.hasModel())return;if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()},Ke.prototype._handleChoice=function(){var Xe=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var Ze=this._session.choice;if(!Ze){this._currentChoice=void 0;return}if(this._currentChoice!==Ze){this._currentChoice=Ze,this._editor.setSelections(this._editor.getSelections().map(function(Fe){return k.a.fromPositions(Fe.getStartPosition())}));var Ye=Ze.options[0];Object(j.f)(this._editor,Ze.options.map(function(Fe,$e){return{kind:13,label:Fe.value,insertText:Fe.value,sortText:Object(re.J)("a",$e+1),range:N.a.fromPositions(Xe._editor.getPosition(),Xe._editor.getPosition().delta(0,Ye.value.length))}}))}},Ke.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},Ke.prototype.cancel=function(Xe){Xe===void 0&&(Xe=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(I.f)(this._session),this._session=void 0,this._modelVersionId=-1,Xe&&this._editor.setSelections([this._editor.getSelection()])},Ke.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},Ke.prototype.next=function(){this._session&&this._session.next(),this._updateState()},Ke.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},Ke.ID="snippetController2",Ke.InSnippetMode=new G.d("inSnippetMode",!1),Ke.HasNextTabstop=new G.d("hasNextTabstop",!1),Ke.HasPrevTabstop=new G.d("hasPrevTabstop",!1),Ke=He([tt(1,R.a),tt(2,G.c)],Ke),Ke}();Object(ne.h)(Pt.ID,Pt);var Xt=ne.c.bindToContribution(Pt.get);Object(ne.g)(new Xt({id:"jumpToNextSnippetPlaceholder",precondition:G.a.and(Pt.InSnippetMode,Pt.HasNextTabstop),handler:function(Xe){return Xe.next()},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:2}})),Object(ne.g)(new Xt({id:"jumpToPrevSnippetPlaceholder",precondition:G.a.and(Pt.InSnippetMode,Pt.HasPrevTabstop),handler:function(Xe){return Xe.prev()},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:1024|2}})),Object(ne.g)(new Xt({id:"leaveSnippet",precondition:Pt.InSnippetMode,handler:function(Xe){return Xe.cancel(!0)},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(ne.g)(new Xt({id:"acceptSnippet",precondition:Pt.InSnippetMode,handler:function(Xe){return Xe.finish()}}))},tYmi:function(wt,P,o){"use strict";o.d(P,"b",function(){return ne}),o.d(P,"a",function(){return k});var I=o("bY76"),re=o("MNsG"),ne;(function(U){U.inMemory="inmemory",U.vscode="vscode",U.internal="private",U.walkThrough="walkThrough",U.walkThroughSnippet="walkThroughSnippet",U.http="http",U.https="https",U.file="file",U.mailto="mailto",U.untitled="untitled",U.data="data",U.command="command",U.vscodeRemote="vscode-remote",U.vscodeRemoteResource="vscode-remote-resource",U.userData="vscode-userdata"})(ne||(ne={}));var N=function(){function U(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return U.prototype.setPreferredWebSchema=function(j){this._preferredWebSchema=j},U.prototype.rewrite=function(j){if(this._delegate)return this._delegate(j);var G=j.authority,R=this._hosts[G];R&&R.indexOf(":")!==-1&&(R="["+R+"]");var _=this._ports[G],x=this._connectionTokens[G],K="path="+encodeURIComponent(j.path);return typeof x=="string"&&(K+="&tkn="+encodeURIComponent(x)),I.a.from({scheme:re.g?this._preferredWebSchema:ne.vscodeRemoteResource,authority:R+":"+_,path:"/vscode-remote-resource",query:K})},U}(),k=new N},twdY:function(wt,P,o){"use strict";o.d(P,"q",function(){return D}),o.d(P,"x",function(){return A}),o.d(P,"C",function(){return te}),o.d(P,"B",function(){return H}),o.d(P,"D",function(){return p}),o.d(P,"m",function(){return m}),o.d(P,"A",function(){return B}),o.d(P,"t",function(){return z}),o.d(P,"u",function(){return oe}),o.d(P,"d",function(){return he}),o.d(P,"w",function(){return _e}),o.d(P,"o",function(){return Se}),o.d(P,"l",function(){return q}),o.d(P,"h",function(){return Z}),o.d(P,"f",function(){return ce}),o.d(P,"e",function(){return Te}),o.d(P,"p",function(){return Ve}),o.d(P,"z",function(){return Ee}),o.d(P,"b",function(){return de}),o.d(P,"a",function(){return se}),o.d(P,"g",function(){return fe}),o.d(P,"i",function(){return ie}),o.d(P,"s",function(){return Q}),o.d(P,"r",function(){return me}),o.d(P,"c",function(){return ye}),o.d(P,"v",function(){return He}),o.d(P,"n",function(){return tt}),o.d(P,"k",function(){return Et}),o.d(P,"j",function(){return Pt}),o.d(P,"y",function(){return Xt});var I=o("746U"),re=o("bY76"),ne=o("aokT"),N=o("MI8n"),k=o("pmY6"),U=o("l2gE");function j(Ke,Xe,Ze,Ye){if(Array.isArray(Ke)){for(var Fe=0,$e=0,we=Ke;$e<we.length;$e++){var F=we[$e],ee=j(F,Xe,Ze,Ye);if(ee===10)return ee;ee>Fe&&(Fe=ee)}return Fe}else{if(typeof Ke=="string")return Ye?Ke==="*"?5:Ke===Ze?10:0:0;if(Ke){var Pe=Ke.language,ve=Ke.pattern,Me=Ke.scheme,Ie=Ke.hasAccessToAllModels;if(!Ye&&!Ie)return 0;var Fe=0;if(Me)if(Me===Xe.scheme)Fe=10;else if(Me==="*")Fe=5;else return 0;if(Pe)if(Pe===Ze)Fe=10;else if(Pe==="*")Fe=Math.max(Fe,5);else return 0;if(ve)if(ve===Xe.fsPath||Object(U.a)(ve,Xe.fsPath))Fe=10;else return 0;return Fe}else return 0}}var G=o("G2kB");function R(Ke){return typeof Ke=="string"?!1:Array.isArray(Ke)?Ke.every(R):!!Ke.exclusive}var _=function(){function Ke(){this._clock=0,this._entries=[],this._onDidChange=new N.a}return Object.defineProperty(Ke.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Ke.prototype.register=function(Xe,Ze){var Ye=this,Fe={selector:Xe,provider:Ze,_score:-1,_time:this._clock++};return this._entries.push(Fe),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(k.h)(function(){if(Fe){var $e=Ye._entries.indexOf(Fe);$e>=0&&(Ye._entries.splice($e,1),Ye._lastCandidate=void 0,Ye._onDidChange.fire(Ye._entries.length),Fe=void 0)}})},Ke.prototype.has=function(Xe){return this.all(Xe).length>0},Ke.prototype.all=function(Xe){if(!Xe)return[];this._updateScores(Xe);for(var Ze=[],Ye=0,Fe=this._entries;Ye<Fe.length;Ye++){var $e=Fe[Ye];$e._score>0&&Ze.push($e.provider)}return Ze},Ke.prototype.ordered=function(Xe){var Ze=[];return this._orderedForEach(Xe,function(Ye){return Ze.push(Ye.provider)}),Ze},Ke.prototype.orderedGroups=function(Xe){var Ze=[],Ye,Fe;return this._orderedForEach(Xe,function($e){Ye&&Fe===$e._score?Ye.push($e.provider):(Fe=$e._score,Ye=[$e.provider],Ze.push(Ye))}),Ze},Ke.prototype._orderedForEach=function(Xe,Ze){if(!Xe)return;this._updateScores(Xe);for(var Ye=0,Fe=this._entries;Ye<Fe.length;Ye++){var $e=Fe[Ye];$e._score>0&&Ze($e)}},Ke.prototype._updateScores=function(Xe){var Ze={uri:Xe.uri.toString(),language:Xe.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===Ze.language&&this._lastCandidate.uri===Ze.uri)return;this._lastCandidate=Ze;for(var Ye=0,Fe=this._entries;Ye<Fe.length;Ye++){var $e=Fe[Ye];if($e._score=j($e.selector,Xe.uri,Xe.getLanguageIdentifier().language,Object(G.b)(Xe)),R($e.selector)&&$e._score>0){for(var we=0,F=this._entries;we<F.length;we++){var ee=F[we];ee._score=0}$e._score=1e3;break}}this._entries.sort(Ke._compareByScoreAndTime)},Ke._compareByScoreAndTime=function(Xe,Ze){return Xe._score<Ze._score?1:Xe._score>Ze._score?-1:Xe._time<Ze._time?1:Xe._time>Ze._time?-1:0},Ke}(),x=o("QDVR"),K=function(){function Ke(){this._map=new Map,this._promises=new Map,this._onDidChange=new N.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return Ke.prototype.fire=function(Xe){this._onDidChange.fire({changedLanguages:Xe,changedColorMap:!1})},Ke.prototype.register=function(Xe,Ze){var Ye=this;return this._map.set(Xe,Ze),this.fire([Xe]),Object(k.h)(function(){if(Ye._map.get(Xe)!==Ze)return;Ye._map.delete(Xe),Ye.fire([Xe])})},Ke.prototype.registerPromise=function(Xe,Ze){var Ye=this,Fe=null,$e=!1;return this._promises.set(Xe,Ze.then(function(we){if(Ye._promises.delete(Xe),$e||!we)return;Fe=Ye.register(Xe,we)})),Object(k.h)(function(){$e=!0,Fe&&Fe.dispose()})},Ke.prototype.getPromise=function(Xe){var Ze=this,Ye=this.get(Xe);if(Ye)return Promise.resolve(Ye);var Fe=this._promises.get(Xe);return Fe?Fe.then(function($e){return Ze.get(Xe)}):null},Ke.prototype.get=function(Xe){return Object(I.o)(this._map.get(Xe))},Ke.prototype.setColorMap=function(Xe){this._colorMap=Xe,this._onDidChange.fire({changedLanguages:Object(x.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(Xe,Ze){this.language=Xe,this.id=Ze}return Ke}(),A=function(){function Ke(){}return Ke.getLanguageId=function(Xe){return(Xe&255)>>>0},Ke.getTokenType=function(Xe){return(Xe&1792)>>>8},Ke.getFontStyle=function(Xe){return(Xe&14336)>>>11},Ke.getForeground=function(Xe){return(Xe&8372224)>>>14},Ke.getBackground=function(Xe){return(Xe&4286578688)>>>23},Ke.getClassNameFromMetadata=function(Xe){var Ze=this.getForeground(Xe),Ye="mtk"+Ze,Fe=this.getFontStyle(Xe);return Fe&1&&(Ye+=" mtki"),Fe&2&&(Ye+=" mtkb"),Fe&4&&(Ye+=" mtku"),Ye},Ke.getInlineStyleFromMetadata=function(Xe,Ze){var Ye=this.getForeground(Xe),Fe=this.getFontStyle(Xe),$e="color: "+Ze[Ye]+";";return Fe&1&&($e+="font-style: italic;"),Fe&2&&($e+="font-weight: bold;"),Fe&4&&($e+="text-decoration: underline;"),$e},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(Xe){return Ke[Xe]||"property"}}(),H=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(Xe,Ze){var Ye=Ke[Xe];return typeof Ye=="undefined"&&!Ze&&(Ye=9),Ye}}(),E;(function(Ke){Ke[Ke.Invoke=1]="Invoke",Ke[Ke.TriggerCharacter=2]="TriggerCharacter",Ke[Ke.ContentChange=3]="ContentChange"})(E||(E={}));var f;(function(Ke){Ke[Ke.Text=0]="Text",Ke[Ke.Read=1]="Read",Ke[Ke.Write=2]="Write"})(f||(f={}));function p(Ke){return Ke&&re.a.isUri(Ke.uri)&&ne.a.isIRange(Ke.range)&&(ne.a.isIRange(Ke.originSelectionRange)||ne.a.isIRange(Ke.targetSelectionRange))}var g;(function(Ke){var Xe=new Map;Xe.set("file",0),Xe.set("module",1),Xe.set("namespace",2),Xe.set("package",3),Xe.set("class",4),Xe.set("method",5),Xe.set("property",6),Xe.set("field",7),Xe.set("constructor",8),Xe.set("enum",9),Xe.set("interface",10),Xe.set("function",11),Xe.set("variable",12),Xe.set("constant",13),Xe.set("string",14),Xe.set("number",15),Xe.set("boolean",16),Xe.set("array",17),Xe.set("object",18),Xe.set("key",19),Xe.set("null",20),Xe.set("enum-member",21),Xe.set("struct",22),Xe.set("event",23),Xe.set("operator",24),Xe.set("type-parameter",25);var Ze=new Map;Ze.set(0,"file"),Ze.set(1,"module"),Ze.set(2,"namespace"),Ze.set(3,"package"),Ze.set(4,"class"),Ze.set(5,"method"),Ze.set(6,"property"),Ze.set(7,"field"),Ze.set(8,"constructor"),Ze.set(9,"enum"),Ze.set(10,"interface"),Ze.set(11,"function"),Ze.set(12,"variable"),Ze.set(13,"constant"),Ze.set(14,"string"),Ze.set(15,"number"),Ze.set(16,"boolean"),Ze.set(17,"array"),Ze.set(18,"object"),Ze.set(19,"key"),Ze.set(20,"null"),Ze.set(21,"enum-member"),Ze.set(22,"struct"),Ze.set(23,"event"),Ze.set(24,"operator"),Ze.set(25,"type-parameter");function Ye(we){return Xe.get(we)}Ke.fromString=Ye;function Fe(we){return Ze.get(we)}Ke.toString=Fe;function $e(we,F){return"codicon "+(F?"inline":"block")+" codicon-symbol-"+(Ze.get(we)||"property")}Ke.toCssClassName=$e})(g||(g={}));var m=function(){function Ke(Xe){this.value=Xe}return Ke.Comment=new Ke("comment"),Ke.Imports=new Ke("imports"),Ke.Region=new Ke("region"),Ke}(),w;(function(Ke){function Xe(Ze){return Object(I.i)(Ze)&&(Boolean(Ze.newUri)||Boolean(Ze.oldUri))}Ke.is=Xe})(w||(w={}));var B;(function(Ke){function Xe(Ze){return Object(I.i)(Ze)&&re.a.isUri(Ze.resource)&&Object(I.i)(Ze.edit)}Ke.is=Xe})(B||(B={}));var z=new _,oe=new _,he=new _,_e=new _,Se=new _,q=new _,Z=new _,ce=new _,Te=new _,Ve=new _,Ee=new _,de=new _,se=new _,fe=new _,ie=new _,Q=new _,me=new _,ye=new _,He=new _,tt=new _,Et=new _,Pt=new _,Xt=new K},uACm:function(wt,P,o){"use strict";o.d(P,"d",function(){return U}),o.d(P,"b",function(){return G}),o.d(P,"a",function(){return R}),o.d(P,"c",function(){return te});var I=function(){var H=function(f,p){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var w in m)m.hasOwnProperty(w)&&(g[w]=m[w])},H(f,p)};return function(E,f){H(E,f);function p(){this.constructor=E}E.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),re=function(){for(var H=0,E=0,f=arguments.length;E<f;E++)H+=arguments[E].length;for(var p=Array(H),g=0,E=0;E<f;E++)for(var m=arguments[E],w=0,B=m.length;w<B;w++,g++)p[g]=m[w];return p},ne,N=function(){function H(){this.value="",this.pos=0}return H.isDigitCharacter=function(E){return E>=48&&E<=57},H.isVariableCharacter=function(E){return E===95||E>=97&&E<=122||E>=65&&E<=90},H.prototype.text=function(E){this.value=E,this.pos=0},H.prototype.tokenText=function(E){return this.value.substr(E.pos,E.len)},H.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var E=this.pos,f=0,p=this.value.charCodeAt(E),g;if(g=H._table[p],typeof g=="number")return this.pos+=1,{type:g,pos:E,len:1};if(H.isDigitCharacter(p)){g=8;do f+=1,p=this.value.charCodeAt(E+f);while(H.isDigitCharacter(p));return this.pos+=f,{type:g,pos:E,len:f}}if(H.isVariableCharacter(p)){g=9;do p=this.value.charCodeAt(E+ ++f);while(H.isVariableCharacter(p)||H.isDigitCharacter(p));return this.pos+=f,{type:g,pos:E,len:f}}g=10;do f+=1,p=this.value.charCodeAt(E+f);while(!isNaN(p)&&typeof H._table[p]=="undefined"&&!H.isDigitCharacter(p)&&!H.isVariableCharacter(p));return this.pos+=f,{type:g,pos:E,len:f}},H._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),H}(),k=function(){function H(){this._children=[]}return H.prototype.appendChild=function(E){return E instanceof U&&this._children[this._children.length-1]instanceof U?this._children[this._children.length-1].value+=E.value:(E.parent=this,this._children.push(E)),this},H.prototype.replace=function(E,f){var p=E.parent,g=p.children.indexOf(E),m=p.children.slice(0);m.splice.apply(m,re([g,1],f)),p._children=m,function w(B,z){for(var oe=0,he=B;oe<he.length;oe++){var _e=he[oe];_e.parent=z,w(_e.children,_e)}}(f,p)},Object.defineProperty(H.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"snippet",{get:function(){for(var f=this;;){if(!f)return;if(f instanceof A)return f;f=f.parent}},enumerable:!0,configurable:!0}),H.prototype.toString=function(){return this.children.reduce(function(E,f){return E+f.toString()},"")},H.prototype.len=function(){return 0},H}(),U=function(H){I(E,H);function E(f){var p=H.call(this)||this;return p.value=f,p}return E.prototype.toString=function(){return this.value},E.prototype.len=function(){return this.value.length},E.prototype.clone=function(){return new E(this.value)},E}(k),j=function(H){I(E,H);function E(){return H!==null&&H.apply(this,arguments)||this}return E}(k),G=function(H){I(E,H);function E(f){var p=H.call(this)||this;return p.index=f,p}return E.compareByIndex=function(f,p){return f.index===p.index?0:f.isFinalTabstop?1:p.isFinalTabstop||f.index<p.index?-1:f.index>p.index?1:0},Object.defineProperty(E.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof R?this._children[0]:void 0},enumerable:!0,configurable:!0}),E.prototype.clone=function(){var f=new E(this.index);return this.transform&&(f.transform=this.transform.clone()),f._children=this.children.map(function(p){return p.clone()}),f},E}(j),R=function(H){I(E,H);function E(){var f=H!==null&&H.apply(this,arguments)||this;return f.options=[],f}return E.prototype.appendChild=function(f){return f instanceof U&&(f.parent=this,this.options.push(f)),this},E.prototype.toString=function(){return this.options[0].value},E.prototype.len=function(){return this.options[0].len()},E.prototype.clone=function(){var f=new E;return this.options.forEach(f.appendChild,f),f},E}(k),_=function(H){I(E,H);function E(){var f=H!==null&&H.apply(this,arguments)||this;return f.regexp=new RegExp(""),f}return E.prototype.resolve=function(f){var p=this,g=!1,m=f.replace(this.regexp,function(){return g=!0,p._replace(Array.prototype.slice.call(arguments,0,-2))});return!g&&this._children.some(function(w){return w instanceof x&&Boolean(w.elseValue)})&&(m=this._replace([])),m},E.prototype._replace=function(f){for(var p="",g=0,m=this._children;g<m.length;g++){var w=m[g];if(w instanceof x){var B=f[w.index]||"";B=w.resolve(B),p+=B}else p+=w.toString()}return p},E.prototype.toString=function(){return""},E.prototype.clone=function(){var f=new E;return f.regexp=new RegExp(this.regexp.source,""+(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),f._children=this.children.map(function(p){return p.clone()}),f},E}(k),x=function(H){I(E,H);function E(f,p,g,m){var w=H.call(this)||this;return w.index=f,w.shorthandName=p,w.ifValue=g,w.elseValue=m,w}return E.prototype.resolve=function(f){return this.shorthandName==="upcase"?f?f.toLocaleUpperCase():"":this.shorthandName==="downcase"?f?f.toLocaleLowerCase():"":this.shorthandName==="capitalize"?f?f[0].toLocaleUpperCase()+f.substr(1):"":this.shorthandName==="pascalcase"?f?this._toPascalCase(f):"":Boolean(f)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(f)&&typeof this.elseValue=="string"?this.elseValue:f||""},E.prototype._toPascalCase=function(f){var p=f.match(/[a-z]+/gi);return p?p.map(function(g){return g.charAt(0).toUpperCase()+g.substr(1).toLowerCase()}).join(""):f},E.prototype.clone=function(){var f=new E(this.index,this.shorthandName,this.ifValue,this.elseValue);return f},E}(k),K=function(H){I(E,H);function E(f){var p=H.call(this)||this;return p.name=f,p}return E.prototype.resolve=function(f){var p=f.resolve(this);return this.transform&&(p=this.transform.resolve(p||"")),p!==void 0?(this._children=[new U(p)],!0):!1},E.prototype.clone=function(){var f=new E(this.name);return this.transform&&(f.transform=this.transform.clone()),f._children=this.children.map(function(p){return p.clone()}),f},E}(j);function D(H,E){for(var f=re(H);f.length>0;){var p=f.shift(),g=E(p);if(!g)break;f.unshift.apply(f,p.children)}}var A=function(H){I(E,H);function E(){return H!==null&&H.apply(this,arguments)||this}return Object.defineProperty(E.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var p=[],g;this.walk(function(m){return m instanceof G&&(p.push(m),g=!g||g.index<m.index?m:g),!0}),this._placeholders={all:p,last:g}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"placeholders",{get:function(){var p=this.placeholderInfo.all;return p},enumerable:!0,configurable:!0}),E.prototype.offset=function(f){var p=0,g=!1;return this.walk(function(m){return m===f?(g=!0,!1):(p+=m.len(),!0)}),g?p:-1},E.prototype.fullLen=function(f){var p=0;return D([f],function(g){return p+=g.len(),!0}),p},E.prototype.enclosingPlaceholders=function(f){for(var p=[],g=f.parent;g;)g instanceof G&&p.push(g),g=g.parent;return p},E.prototype.resolveVariables=function(f){var p=this;return this.walk(function(g){return g instanceof K&&(g.resolve(f)&&(p._placeholders=void 0)),!0}),this},E.prototype.appendChild=function(f){return this._placeholders=void 0,H.prototype.appendChild.call(this,f)},E.prototype.replace=function(f,p){return this._placeholders=void 0,H.prototype.replace.call(this,f,p)},E.prototype.clone=function(){var f=new E;return this._children=this.children.map(function(p){return p.clone()}),f},E.prototype.walk=function(f){D(this.children,f)},E}(k),te=function(){function H(){this._scanner=new N,this._token={type:14,pos:0,len:0}}return H.escape=function(E){return E.replace(/\$|}|\\/g,"\\$&")},H.prototype.parse=function(E,f,p){this._scanner.text(E),this._token=this._scanner.next();for(var g=new A;this._parse(g););var m=new Map,w=[],B=0;g.walk(function(Te){return Te instanceof G&&(B+=1,Te.isFinalTabstop?m.set(0,void 0):!m.has(Te.index)&&Te.children.length>0?m.set(Te.index,Te.children):w.push(Te)),!0});for(var z=0,oe=w;z<oe.length;z++){var he=oe[z],_e=m.get(he.index);if(_e){var Se=new G(he.index);Se.transform=he.transform;for(var q=0,Z=_e;q<Z.length;q++){var ce=Z[q];Se.appendChild(ce.clone())}g.replace(he,[Se])}}return p||(p=B>0&&f),!m.has(0)&&p&&g.appendChild(new G(0)),g},H.prototype._accept=function(E,f){if(E===void 0||this._token.type===E){var p=f?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),p}return!1},H.prototype._backTo=function(E){return this._scanner.pos=E.pos+E.len,this._token=E,!1},H.prototype._until=function(E){for(var f=this._token;this._token.type!==E;){if(this._token.type===14)return!1;if(this._token.type===5){var p=this._scanner.next();if(p.type!==0&&p.type!==4&&p.type!==5)return!1}this._token=this._scanner.next()}var g=this._scanner.value.substring(f.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),g},H.prototype._parse=function(E){return this._parseEscaped(E)||this._parseTabstopOrVariableName(E)||this._parseComplexPlaceholder(E)||this._parseComplexVariable(E)||this._parseAnything(E)},H.prototype._parseEscaped=function(E){var f;return(f=this._accept(5,!0))?(f=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||f,E.appendChild(new U(f)),!0):!1},H.prototype._parseTabstopOrVariableName=function(E){var f,p=this._token,g=this._accept(0)&&(f=this._accept(9,!0)||this._accept(8,!0));return g?(E.appendChild(/^\d+$/.test(f)?new G(Number(f)):new K(f)),!0):this._backTo(p)},H.prototype._parseComplexPlaceholder=function(E){var f,p=this._token,g=this._accept(0)&&this._accept(3)&&(f=this._accept(8,!0));if(!g)return this._backTo(p);var m=new G(Number(f));if(this._accept(1))for(;;){if(this._accept(4))return E.appendChild(m),!0;if(this._parse(m))continue;return E.appendChild(new U("${"+f+":")),m.children.forEach(E.appendChild,E),!0}else if(m.index>0&&this._accept(7))for(var w=new R;;){if(this._parseChoiceElement(w)){if(this._accept(2))continue;if(this._accept(7)&&(m.appendChild(w),this._accept(4)))return E.appendChild(m),!0}return this._backTo(p),!1}else return this._accept(6)?this._parseTransform(m)?(E.appendChild(m),!0):(this._backTo(p),!1):this._accept(4)?(E.appendChild(m),!0):this._backTo(p)},H.prototype._parseChoiceElement=function(E){for(var f=this._token,p=[];!(this._token.type===2||this._token.type===7);){var g=void 0;if((g=this._accept(5,!0))?g=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||g:g=this._accept(void 0,!0),!g)return this._backTo(f),!1;p.push(g)}return p.length===0?(this._backTo(f),!1):(E.appendChild(new U(p.join(""))),!0)},H.prototype._parseComplexVariable=function(E){var f,p=this._token,g=this._accept(0)&&this._accept(3)&&(f=this._accept(9,!0));if(!g)return this._backTo(p);var m=new K(f);if(this._accept(1))for(;;){if(this._accept(4))return E.appendChild(m),!0;if(this._parse(m))continue;return E.appendChild(new U("${"+f+":")),m.children.forEach(E.appendChild,E),!0}else return this._accept(6)?this._parseTransform(m)?(E.appendChild(m),!0):(this._backTo(p),!1):this._accept(4)?(E.appendChild(m),!0):this._backTo(p)},H.prototype._parseTransform=function(E){for(var f=new _,p="",g="";!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(6,!0)||m,p+=m;continue}if(this._token.type!==14){p+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(5,!0)||this._accept(6,!0)||m,f.appendChild(new U(m));continue}if(this._parseFormatString(f)||this._parseAnything(f))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){g+=this._accept(void 0,!0);continue}return!1}try{f.regexp=new RegExp(p,g)}catch(w){return!1}return E.transform=f,!0},H.prototype._parseFormatString=function(E){var f=this._token;if(!this._accept(0))return!1;var p=!1;this._accept(3)&&(p=!0);var g=this._accept(8,!0);if(g)if(p){if(this._accept(4))return E.appendChild(new x(Number(g))),!0;if(!this._accept(1))return this._backTo(f),!1}else return E.appendChild(new x(Number(g))),!0;else return this._backTo(f),!1;if(this._accept(6)){var m=this._accept(9,!0);return!m||!this._accept(4)?(this._backTo(f),!1):(E.appendChild(new x(Number(g),m)),!0)}else if(this._accept(11)){var w=this._until(4);if(w)return E.appendChild(new x(Number(g),void 0,w,void 0)),!0}else if(this._accept(12)){var B=this._until(4);if(B)return E.appendChild(new x(Number(g),void 0,void 0,B)),!0}else if(this._accept(13)){var w=this._until(1);if(w){var B=this._until(4);if(B)return E.appendChild(new x(Number(g),void 0,w,B)),!0}}else{var B=this._until(4);if(B)return E.appendChild(new x(Number(g),void 0,void 0,B)),!0}return this._backTo(f),!1},H.prototype._parseAnything=function(E){return this._token.type!==14?(E.appendChild(new U(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},H}()},uAX5:function(wt,P,o){},uDWl:function(wt,P,o){"use strict";o.d(P,"a",function(){return x});var I=o("D3Dy"),re=o("/kV6"),ne=o("MNsG"),N=new Array(230),k=new Array(112);(function(){for(var K=0;K<k.length;K++)k[K]=-1;function D(A,te){N[A]=te,k[te]=A}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),I.i?D(91,57):I.h?(D(59,80),D(107,81),D(109,83),ne.e&&D(224,57)):I.m&&(D(91,57),ne.e?D(93,57):D(92,57))})();function U(K){if(K.charCode){var D=String.fromCharCode(K.charCode).toUpperCase();return re.b.fromString(D)}return N[K.keyCode]||0}var j=ne.e?256:2048,G=512,R=1024,_=ne.e?2048:256,x=function(){function K(D){this._standardKeyboardEventBrand=!0;var A=D;this.browserEvent=A,this.target=A.target,this.ctrlKey=A.ctrlKey,this.shiftKey=A.shiftKey,this.altKey=A.altKey,this.metaKey=A.metaKey,this.keyCode=U(A),this.code=A.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 A=0;return this.ctrlKey&&(A|=j),this.altKey&&(A|=G),this.shiftKey&&(A|=R),this.metaKey&&(A|=_),A|=D,A},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(wt,P,o){},ufhN:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return o.e(251).then(o.bind(null,"rMIR"))}})},ujyM:function(wt,P,o){},undH:function(wt,P,o){},vATl:function(wt,P,o){"use strict";o.d(P,"a",function(){return A}),o.d(P,"b",function(){return te}),o.d(P,"d",function(){return H}),o.d(P,"c",function(){return E});var I=o("N0LK"),re=o("JQT/"),ne=o("pmY6"),N=o("sswD"),k=o("T8No"),U=o("24hK"),j=o("Cg/j"),G=o("9fML"),R=function(){var f=function(g,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,B){w.__proto__=B}||function(w,B){for(var z in B)B.hasOwnProperty(z)&&(w[z]=B[z])},f(g,m)};return function(p,g){f(p,g);function m(){this.constructor=p}p.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),_=Object(j.c)("IEditorCancelService"),x=new k.d("cancellableOperation",!1);Object(G.b)(_,function(){function f(){this._tokens=new WeakMap}return f.prototype.add=function(p,g){var m=this._tokens.get(p);m||(m=p.invokeWithinContext(function(B){var z=x.bindTo(B.get(k.c)),oe=new U.a;return{key:z,tokens:oe}}),this._tokens.set(p,m));var w;return m.key.set(!0),w=m.tokens.push(g),function(){w&&(w(),m.key.set(!m.tokens.isEmpty()),w=void 0)}},f.prototype.cancel=function(p){var g=this._tokens.get(p);if(!g)return;var m=g.tokens.pop();m&&(m.cancel(),g.key.set(!g.tokens.isEmpty()))},f}(),!0);var K=function(f){R(p,f);function p(g,m){var w=f.call(this,m)||this;return w.editor=g,w._unregister=g.invokeWithinContext(function(B){return B.get(_).add(g,w)}),w}return p.prototype.dispose=function(){this._unregister(),f.prototype.dispose.call(this)},p}(re.b);Object(N.g)(new(function(f){R(p,f);function p(){return f.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:x})||this}return p.prototype.runEditorCommand=function(g,m){g.get(_).cancel(m)},p}(N.c)));var D=function(){var f=function(g,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,B){w.__proto__=B}||function(w,B){for(var z in B)B.hasOwnProperty(z)&&(w[z]=B[z])},f(g,m)};return function(p,g){f(p,g);function m(){this.constructor=p}p.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),A=function(){function f(p,g){if(this.flags=g,(this.flags&1)!==0){var m=p.getModel();this.modelVersionId=m?I.r("{0}#{1}",m.uri.toString(),m.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=p.getPosition():this.position=null,(this.flags&2)!==0?this.selection=p.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=p.getScrollLeft(),this.scrollTop=p.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return f.prototype._equals=function(p){if(!(p instanceof f))return!1;var g=p;return this.modelVersionId!==g.modelVersionId||(this.scrollLeft!==g.scrollLeft||this.scrollTop!==g.scrollTop||(!this.position&&g.position||this.position&&!g.position||this.position&&g.position&&!this.position.equals(g.position)))?!1:!(!this.selection&&g.selection||this.selection&&!g.selection||this.selection&&g.selection&&!this.selection.equalsRange(g.selection))},f.prototype.validate=function(p){return this._equals(new f(p,this.flags))},f}(),te=function(f){D(p,f);function p(g,m,w){var B=f.call(this,g,w)||this;return B.editor=g,B._listener=new ne.b,m&4&&B._listener.add(g.onDidChangeCursorPosition(function(z){return B.cancel()})),m&2&&B._listener.add(g.onDidChangeCursorSelection(function(z){return B.cancel()})),m&8&&B._listener.add(g.onDidScrollChange(function(z){return B.cancel()})),m&1&&(B._listener.add(g.onDidChangeModel(function(z){return B.cancel()})),B._listener.add(g.onDidChangeModelContent(function(z){return B.cancel()}))),B}return p.prototype.dispose=function(){this._listener.dispose(),f.prototype.dispose.call(this)},p}(K),H=function(f){D(p,f);function p(g,m){var w=f.call(this,m)||this;return w._listener=g.onDidChangeContent(function(){return w.cancel()}),w}return p.prototype.dispose=function(){this._listener.dispose(),f.prototype.dispose.call(this)},p}(re.b),E=function(){function f(p,g){this._visiblePosition=p,this._visiblePositionScrollDelta=g}return f.capture=function(p){var g=null,m=0;if(p.getScrollTop()!==0){var w=p.getVisibleRanges();if(w.length>0){g=w[0].getStartPosition();var B=p.getTopForPosition(g.lineNumber,g.column);m=p.getScrollTop()-B}}return new f(g,m)},f.prototype.restore=function(p){if(this._visiblePosition){var g=p.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);p.setScrollTop(g+this._visiblePositionScrollDelta)}},f}()},vl9R:function(wt,P,o){"use strict";o.d(P,"b",function(){return N}),o.d(P,"a",function(){return k});var I=Object.prototype.hasOwnProperty;function re(U){var j=[];for(var G in U)I.call(U,G)&&j.push(U[G]);return j}function ne(U){for(var j in U)if(I.call(U,j))return U[j];return}function N(U,j){var G=function(K){if(I.call(U,K)){var D=j({key:K,value:U[K]},function(){delete U[K]});if(D===!1)return{value:void 0}}};for(var R in U){var _=G(R);if(typeof _=="object")return _.value}}var k=function(){function U(){this.map=new Map}return U.prototype.add=function(j,G){var R=this.map.get(j);R||(R=new Set,this.map.set(j,R)),R.add(G)},U.prototype.delete=function(j,G){var R=this.map.get(j);if(!R)return;R.delete(G),R.size===0&&this.map.delete(j)},U.prototype.forEach=function(j,G){var R=this.map.get(j);if(!R)return;R.forEach(G)},U}()},"w29/":function(wt,P,o){"use strict";o.r(P);var I=o("5DEy"),re=o.n(I),ne=o("3/fG"),N=o("D3Dy"),k=o("MNsG"),U=o("5TxY"),j=o("sswD"),G=o("Vxe3"),R=o("wQH0"),_=function(){var m=function(B,z){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,he){oe.__proto__=he}||function(oe,he){for(var _e in he)he.hasOwnProperty(_e)&&(oe[_e]=he[_e])},m(B,z)};return function(w,B){m(w,B);function z(){this.constructor=w}w.prototype=B===null?Object.create(B):(z.prototype=B.prototype,new z)}}(),x="9_cutcopypaste",K=k.f||document.queryCommandSupported("cut"),D=k.f||document.queryCommandSupported("copy"),A=D&&!N.f,te=k.f||!N.d&&document.queryCommandSupported("paste"),H=function(m){_(w,m);function w(B,z){var oe=m.call(this,z)||this;return oe.browserCommand=B,oe}return w.prototype.runCommand=function(B,z){var oe=B.get(G.a).getFocusedCodeEditor();if(oe&&oe.hasTextFocus()){oe.trigger("keyboard",this.id,z);return}document.execCommand(this.browserCommand)},w.prototype.run=function(B,z){z.focus(),document.execCommand(this.browserCommand)},w}(j.b),E=function(m){_(w,m);function w(){var B=this,z={kbExpr:R.a.textInputFocus,primary:2048|54,win:{primary:2048|54,secondary:[1024|20]},weight:100};return k.f||(z=void 0),B=m.call(this,"cut",{id:"editor.action.clipboardCutAction",label:ne.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:R.a.writable,kbOpts:z,contextMenuOpts:{group:x,order:1},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,B}return w.prototype.run=function(B,z){if(!z.hasModel())return;var oe=z.getOption(25);if(!oe&&z.getSelection().isEmpty())return;m.prototype.run.call(this,B,z)},w}(H),f=function(m){_(w,m);function w(){var B=this,z={kbExpr:R.a.textInputFocus,primary:2048|33,win:{primary:2048|33,secondary:[2048|19]},weight:100};return k.f||(z=void 0),B=m.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:ne.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:z,contextMenuOpts:{group:x,order:2},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,B}return w.prototype.run=function(B,z){if(!z.hasModel())return;var oe=z.getOption(25);if(!oe&&z.getSelection().isEmpty())return;m.prototype.run.call(this,B,z)},w}(H),p=function(m){_(w,m);function w(){var B=this,z={kbExpr:R.a.textInputFocus,primary:2048|52,win:{primary:2048|52,secondary:[1024|19]},weight:100};return k.f||(z=void 0),B=m.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:ne.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:R.a.writable,kbOpts:z,contextMenuOpts:{group:x,order:3},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,B}return w}(H),g=function(m){_(w,m);function w(){return m.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:R.a.textInputFocus,primary:0,weight:100}})||this}return w.prototype.run=function(B,z){if(!z.hasModel())return;var oe=z.getOption(25);if(!oe&&z.getSelection().isEmpty())return;U.a.forceCopyWithSyntaxHighlighting=!0,m.prototype.run.call(this,B,z),U.a.forceCopyWithSyntaxHighlighting=!1},w}(H);K&&Object(j.f)(E),D&&Object(j.f)(f),te&&Object(j.f)(p),A&&Object(j.f)(g)},w9QG:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return o.e(250).then(o.bind(null,"Czvm"))}})},wQH0:function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("T8No"),re;(function(ne){ne.editorSimpleInput=new I.d("editorSimpleInput",!1),ne.editorTextFocus=new I.d("editorTextFocus",!1),ne.focus=new I.d("editorFocus",!1),ne.textInputFocus=new I.d("textInputFocus",!1),ne.readOnly=new I.d("editorReadonly",!1),ne.writable=ne.readOnly.toNegated(),ne.hasNonEmptySelection=new I.d("editorHasSelection",!1),ne.hasOnlyEmptySelection=ne.hasNonEmptySelection.toNegated(),ne.hasMultipleSelections=new I.d("editorHasMultipleSelections",!1),ne.hasSingleSelection=ne.hasMultipleSelections.toNegated(),ne.tabMovesFocus=new I.d("editorTabMovesFocus",!1),ne.tabDoesNotMoveFocus=ne.tabMovesFocus.toNegated(),ne.isInEmbeddedEditor=new I.d("isInEmbeddedEditor",!1),ne.canUndo=new I.d("canUndo",!1),ne.canRedo=new I.d("canRedo",!1),ne.languageId=new I.d("editorLangId",""),ne.hasCompletionItemProvider=new I.d("editorHasCompletionItemProvider",!1),ne.hasCodeActionsProvider=new I.d("editorHasCodeActionsProvider",!1),ne.hasCodeLensProvider=new I.d("editorHasCodeLensProvider",!1),ne.hasDefinitionProvider=new I.d("editorHasDefinitionProvider",!1),ne.hasDeclarationProvider=new I.d("editorHasDeclarationProvider",!1),ne.hasImplementationProvider=new I.d("editorHasImplementationProvider",!1),ne.hasTypeDefinitionProvider=new I.d("editorHasTypeDefinitionProvider",!1),ne.hasHoverProvider=new I.d("editorHasHoverProvider",!1),ne.hasDocumentHighlightProvider=new I.d("editorHasDocumentHighlightProvider",!1),ne.hasDocumentSymbolProvider=new I.d("editorHasDocumentSymbolProvider",!1),ne.hasReferenceProvider=new I.d("editorHasReferenceProvider",!1),ne.hasRenameProvider=new I.d("editorHasRenameProvider",!1),ne.hasSignatureHelpProvider=new I.d("editorHasSignatureHelpProvider",!1),ne.hasDocumentFormattingProvider=new I.d("editorHasDocumentFormattingProvider",!1),ne.hasDocumentSelectionFormattingProvider=new I.d("editorHasDocumentSelectionFormattingProvider",!1),ne.hasMultipleDocumentFormattingProvider=new I.d("editorHasMultipleDocumentFormattingProvider",!1),ne.hasMultipleDocumentSelectionFormattingProvider=new I.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(re||(re={}))},woZy:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return o.e(235).then(o.bind(null,"I+Au"))}})},wxcJ:function(wt,P,o){"use strict";(function(I){o.d(P,"a",function(){return N}),o.d(P,"b",function(){return k}),o.d(P,"c",function(){return U});var re=o("MNsG"),ne=typeof I=="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)}}:I,N=ne.cwd,k=ne.env,U=ne.platform}).call(this,o("Q2Ig"))},"x/UI":function(wt,P,o){"use strict";o.d(P,"a",function(){return re});var I=o("Cg/j"),re=Object(I.c)("IWorkspaceEditService")},xONI:function(wt,P,o){"use strict";o.d(P,"a",function(){return _});var I=o("KgQ1"),re=o.n(I),ne=o("EffR"),N=o("7lZ/"),k=o("pmY6"),U=o("nuFA"),j=o("qj0h"),G=function(){var A=function(H,E){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)p.hasOwnProperty(g)&&(f[g]=p[g])},A(H,E)};return function(te,H){A(te,H);function E(){this.constructor=te}te.prototype=H===null?Object.create(H):(E.prototype=H.prototype,new E)}}(),R=function(){function A(te){this._element=te}return Object.defineProperty(A.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"textContent",{set:function(H){if(this.disposed||H===this._textContent)return;this._textContent=H,this._element.textContent=H},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"className",{set:function(H){if(this.disposed||H===this._className)return;this._className=H,this._element.className=H},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"title",{set:function(H){if(this.disposed||H===this._title)return;this._title=H,this._title?this._element.title=H:this._element.removeAttribute("title")},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"empty",{set:function(H){if(this.disposed||H===this._empty)return;this._empty=H,this._element.style.marginLeft=H?"0":""},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.disposed=!0},A}(),_=function(A){G(te,A);function te(H,E){var f=A.call(this)||this;f.domNode=f._register(new R(ne.p(H,ne.a(".monaco-icon-label"))));var p=ne.p(f.domNode.element,ne.a(".monaco-icon-label-container")),g=ne.p(p,ne.a("span.monaco-icon-name-container"));return f.descriptionContainer=f._register(new R(ne.p(p,ne.a("span.monaco-icon-description-container")))),(E==null?void 0:E.supportHighlights)?f.nameNode=new D(g,!!E.supportCodicons):f.nameNode=new x(g),(E==null?void 0:E.supportDescriptionHighlights)?f.descriptionNodeFactory=function(){return new N.a(ne.p(f.descriptionContainer.element,ne.a("span.label-description")),!!E.supportCodicons)}:f.descriptionNodeFactory=function(){return f._register(new R(ne.p(f.descriptionContainer.element,ne.a("span.label-description"))))},f}return te.prototype.setLabel=function(H,E,f){var p=["monaco-icon-label"];f&&(f.extraClasses&&p.push.apply(p,f.extraClasses),f.italic&&p.push("italic")),this.domNode.className=p.join(" "),this.domNode.title=(f==null?void 0:f.title)||"",this.nameNode.setLabel(H,f),(E||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof N.a?(this.descriptionNode.set(E||"",f?f.descriptionMatches:void 0),(f==null?void 0:f.descriptionTitle)?this.descriptionNode.element.title=f.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=E||"",this.descriptionNode.title=(f==null?void 0:f.descriptionTitle)||"",this.descriptionNode.empty=!E))},te}(k.a),x=function(){function A(te){this.container=te,this.label=void 0,this.singleLabel=void 0}return A.prototype.setLabel=function(te,H){if(this.label===te&&Object(j.e)(this.options,H))return;if(this.label=te,this.options=H,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:H==null?void 0:H.domId}))),this.singleLabel.textContent=te;else{this.container.innerHTML="",ne.e(this.container,"multiple"),this.singleLabel=void 0;for(var E=0;E<te.length;E++){var f=te[E],p=(H==null?void 0:H.domId)&&(H==null?void 0:H.domId)+"_"+E;ne.p(this.container,ne.a("a.label-name",{id:p,"data-icon-label-count":te.length,"data-icon-label-index":E},f)),E<te.length-1&&ne.p(this.container,ne.a("span.label-separator",void 0,(H==null?void 0:H.separator)||"/"))}}},A}();function K(A,te,H){if(!H)return;var E=0;return A.map(function(f){var p={start:E,end:E+f.length},g=H.map(function(m){return U.a.intersect(p,m)}).filter(function(m){return!U.a.isEmpty(m)}).map(function(m){var w=m.start,B=m.end;return{start:w-E,end:B-E}});return E=p.end+te.length,g})}var D=function(){function A(te,H){this.container=te,this.supportCodicons=H,this.label=void 0,this.singleLabel=void 0}return A.prototype.setLabel=function(te,H){if(this.label===te&&Object(j.e)(this.options,H))return;if(this.label=te,this.options=H,typeof te=="string")this.singleLabel||(this.container.innerHTML="",ne.O(this.container,"multiple"),this.singleLabel=new N.a(ne.p(this.container,ne.a("a.label-name",{id:H==null?void 0:H.domId})),this.supportCodicons)),this.singleLabel.set(te,H==null?void 0:H.matches,H==null?void 0:H.title,H==null?void 0:H.labelEscapeNewLines);else{this.container.innerHTML="",ne.e(this.container,"multiple"),this.singleLabel=void 0;for(var E=(H==null?void 0:H.separator)||"/",f=K(te,E,H==null?void 0:H.matches),p=0;p<te.length;p++){var g=te[p],m=f?f[p]:void 0,w=(H==null?void 0:H.domId)&&(H==null?void 0:H.domId)+"_"+p,B=ne.a("a.label-name",{id:w,"data-icon-label-count":te.length,"data-icon-label-index":p}),z=new N.a(ne.p(this.container,B),this.supportCodicons);z.set(g,m,H==null?void 0:H.title,H==null?void 0:H.labelEscapeNewLines),p<te.length-1&&ne.p(B,ne.a("span.label-separator",void 0,E))}}},A}()},xYNL:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return o.e(225).then(o.bind(null,"tGOS"))}})},xmOD:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return o.e(245).then(o.bind(null,"fB/Z"))}})},y3CF:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return o.e(232).then(o.bind(null,"YdqL"))}})},yEoX:function(wt,P,o){},yI7H:function(wt,P,o){},yKqg:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return o.e(241).then(o.bind(null,"LdT9"))}})},yqFB:function(wt,P,o){},z3hU:function(wt,P,o){"use strict";o.r(P),o.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=o("M/lh"),re="3.7.5";"use strict";var ne=monaco.Emitter,N=function(){function H(E,f){this._onDidChange=new ne,this._onDidExtraLibsChange=new ne,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(E),this.setDiagnosticsOptions(f),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(H.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),H.prototype.getExtraLibs=function(){return this._extraLibs},H.prototype.addExtraLib=function(E,f){var p=this,g;if(typeof f=="undefined"?g="ts:extralib-"+Math.random().toString(36).substring(2,15):g=f,this._extraLibs[g]&&this._extraLibs[g].content===E)return{dispose:function(){}};var m=1;return this._extraLibs[g]&&(m=this._extraLibs[g].version+1),this._extraLibs[g]={content:E,version:m},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var B=p._extraLibs[g];if(!B)return;if(B.version!==m)return;delete p._extraLibs[g],p._fireOnDidExtraLibsChangeSoon()}}},H.prototype.setExtraLibs=function(E){if(this._extraLibs=Object.create(null),E&&E.length>0)for(var f=0,p=E;f<p.length;f++){var g=p[f],m=g.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),w=g.content;this._extraLibs[m]={content:w,version:1}}this._fireOnDidExtraLibsChangeSoon()},H.prototype._fireOnDidExtraLibsChangeSoon=function(){var E=this;if(this._onDidExtraLibsChangeTimeout!==-1)return;this._onDidExtraLibsChangeTimeout=setTimeout(function(){E._onDidExtraLibsChangeTimeout=-1,E._onDidExtraLibsChange.fire(void 0)},0)},H.prototype.getCompilerOptions=function(){return this._compilerOptions},H.prototype.setCompilerOptions=function(E){this._compilerOptions=E||Object.create(null),this._onDidChange.fire(void 0)},H.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},H.prototype.setDiagnosticsOptions=function(E){this._diagnosticsOptions=E||Object.create(null),this._onDidChange.fire(void 0)},H.prototype.setMaximumWorkerIdleTime=function(E){},H.prototype.setEagerModelSync=function(E){this._eagerModelSync=E},H.prototype.getEagerModelSync=function(){return this._eagerModelSync},H}(),k;(function(H){H[H.None=0]="None",H[H.CommonJS=1]="CommonJS",H[H.AMD=2]="AMD",H[H.UMD=3]="UMD",H[H.System=4]="System",H[H.ES2015=5]="ES2015",H[H.ESNext=99]="ESNext"})(k||(k={}));var U;(function(H){H[H.None=0]="None",H[H.Preserve=1]="Preserve",H[H.React=2]="React",H[H.ReactNative=3]="ReactNative"})(U||(U={}));var j;(function(H){H[H.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",H[H.LineFeed=1]="LineFeed"})(j||(j={}));var G;(function(H){H[H.ES3=0]="ES3",H[H.ES5=1]="ES5",H[H.ES2015=2]="ES2015",H[H.ES2016=3]="ES2016",H[H.ES2017=4]="ES2017",H[H.ES2018=5]="ES2018",H[H.ES2019=6]="ES2019",H[H.ES2020=7]="ES2020",H[H.ESNext=99]="ESNext",H[H.JSON=100]="JSON",H[H.Latest=99]="Latest"})(G||(G={}));var R;(function(H){H[H.Classic=1]="Classic",H[H.NodeJs=2]="NodeJs"})(R||(R={}));var _=new N({allowNonTsExtensions:!0,target:G.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),x=new N({allowNonTsExtensions:!0,allowJs:!0,target:G.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function K(){return te().then(function(H){return H.getTypeScriptWorker()})}function D(){return te().then(function(H){return H.getJavaScriptWorker()})}function A(){return{ModuleKind:k,JsxEmit:U,NewLineKind:j,ScriptTarget:G,ModuleResolutionKind:R,typescriptVersion:re,typescriptDefaults:_,javascriptDefaults:x,getTypeScriptWorker:K,getJavaScriptWorker:D}}monaco.languages.typescript=A();function te(){return o.e(259).then(o.bind(null,"4yiN"))}monaco.languages.onLanguage("typescript",function(){return te().then(function(H){return H.setupTypeScript(_)})}),monaco.languages.onLanguage("javascript",function(){return te().then(function(H){return H.setupJavaScript(x)})})},zQEy:function(wt,P,o){"use strict";o.r(P);var I=o("+hIS");Object(I.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return o.e(217).then(o.bind(null,"On+f"))}})},zrhQ:function(wt,P,o){"use strict";o.d(P,"c",function(){return re}),o.d(P,"b",function(){return N}),o.d(P,"a",function(){return k});function I(U,j){var G=Math.pow(10,j);return Math.round(U*G)/G}var re=function(){function U(j,G,R,_){_===void 0&&(_=1),this.r=Math.min(255,Math.max(0,j))|0,this.g=Math.min(255,Math.max(0,G))|0,this.b=Math.min(255,Math.max(0,R))|0,this.a=I(Math.max(Math.min(1,_),0),3)}return U.equals=function(j,G){return j.r===G.r&&j.g===G.g&&j.b===G.b&&j.a===G.a},U}(),ne=function(){function U(j,G,R,_){this.h=Math.max(Math.min(360,j),0)|0,this.s=I(Math.max(Math.min(1,G),0),3),this.l=I(Math.max(Math.min(1,R),0),3),this.a=I(Math.max(Math.min(1,_),0),3)}return U.equals=function(j,G){return j.h===G.h&&j.s===G.s&&j.l===G.l&&j.a===G.a},U.fromRGBA=function(j){var G=j.r/255,R=j.g/255,_=j.b/255,x=j.a,K=Math.max(G,R,_),D=Math.min(G,R,_),A=0,te=0,H=(D+K)/2,E=K-D;if(E>0){te=Math.min(H<=.5?E/(2*H):E/(2-2*H),1);switch(K){case G:A=(R-_)/E+(R<_?6:0);break;case R:A=(_-G)/E+2;break;case _:A=(G-R)/E+4;break}A*=60,A=Math.round(A)}return new U(A,te,H,x)},U._hue2rgb=function(j,G,R){return R<0&&(R+=1),R>1&&(R-=1),R<1/6?j+(G-j)*6*R:R<1/2?G:R<2/3?j+(G-j)*(2/3-R)*6:j},U.toRGBA=function(j){var G=j.h/360,R=j.s,_=j.l,x=j.a,K,D,A;if(R===0)K=D=A=_;else{var te=_<.5?_*(1+R):_+R-_*R,H=2*_-te;K=U._hue2rgb(H,te,G+1/3),D=U._hue2rgb(H,te,G),A=U._hue2rgb(H,te,G-1/3)}return new re(Math.round(K*255),Math.round(D*255),Math.round(A*255),x)},U}(),N=function(){function U(j,G,R,_){this.h=Math.max(Math.min(360,j),0)|0,this.s=I(Math.max(Math.min(1,G),0),3),this.v=I(Math.max(Math.min(1,R),0),3),this.a=I(Math.max(Math.min(1,_),0),3)}return U.equals=function(j,G){return j.h===G.h&&j.s===G.s&&j.v===G.v&&j.a===G.a},U.fromRGBA=function(j){var G=j.r/255,R=j.g/255,_=j.b/255,x=Math.max(G,R,_),K=Math.min(G,R,_),D=x-K,A=x===0?0:D/x,te;return D===0?te=0:x===G?te=((R-_)/D%6+6)%6:x===R?te=(_-G)/D+2:te=(G-R)/D+4,new U(Math.round(te*60),A,x,j.a)},U.toRGBA=function(j){var G=j.h,R=j.s,_=j.v,x=j.a,K=_*R,D=K*(1-Math.abs(G/60%2-1)),A=_-K,te=[0,0,0],H=te[0],E=te[1],f=te[2];return G<60?(H=K,E=D):G<120?(H=D,E=K):G<180?(E=K,f=D):G<240?(E=D,f=K):G<300?(H=D,f=K):G<360&&(H=K,f=D),H=Math.round((H+A)*255),E=Math.round((E+A)*255),f=Math.round((f+A)*255),new re(H,E,f,x)},U}(),k=function(){function U(j){if(j)if(j instanceof re)this.rgba=j;else if(j instanceof ne)this._hsla=j,this.rgba=ne.toRGBA(j);else if(j instanceof N)this._hsva=j,this.rgba=N.toRGBA(j);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return U.fromHex=function(j){return U.Format.CSS.parseHex(j)||U.red},Object.defineProperty(U.prototype,"hsla",{get:function(){return this._hsla?this._hsla:ne.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"hsva",{get:function(){return this._hsva?this._hsva:N.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),U.prototype.equals=function(j){return!!j&&re.equals(this.rgba,j.rgba)&&ne.equals(this.hsla,j.hsla)&&N.equals(this.hsva,j.hsva)},U.prototype.getRelativeLuminance=function(){var j=U._relativeLuminanceForComponent(this.rgba.r),G=U._relativeLuminanceForComponent(this.rgba.g),R=U._relativeLuminanceForComponent(this.rgba.b),_=.2126*j+.7152*G+.0722*R;return I(_,4)},U._relativeLuminanceForComponent=function(j){var G=j/255;return G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4)},U.prototype.isLighter=function(){var j=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return j>=128},U.prototype.isLighterThan=function(j){var G=this.getRelativeLuminance(),R=j.getRelativeLuminance();return G>R},U.prototype.isDarkerThan=function(j){var G=this.getRelativeLuminance(),R=j.getRelativeLuminance();return G<R},U.prototype.lighten=function(j){return new U(new ne(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*j,this.hsla.a))},U.prototype.darken=function(j){return new U(new ne(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*j,this.hsla.a))},U.prototype.transparent=function(j){var G=this.rgba,R=G.r,_=G.g,x=G.b,K=G.a;return new U(new re(R,_,x,K*j))},U.prototype.isTransparent=function(){return this.rgba.a===0},U.prototype.isOpaque=function(){return this.rgba.a===1},U.prototype.opposite=function(){return new U(new re(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},U.prototype.toString=function(){return""+U.Format.CSS.format(this)},U.getLighterColor=function(j,G,R){if(j.isLighterThan(G))return j;R=R||.5;var _=j.getRelativeLuminance(),x=G.getRelativeLuminance();return R=R*(x-_)/x,j.lighten(R)},U.getDarkerColor=function(j,G,R){if(j.isDarkerThan(G))return j;R=R||.5;var _=j.getRelativeLuminance(),x=G.getRelativeLuminance();return R=R*(_-x)/_,j.darken(R)},U.white=new U(new re(255,255,255,1)),U.black=new U(new re(0,0,0,1)),U.red=new U(new re(255,0,0,1)),U.blue=new U(new re(0,0,255,1)),U.cyan=new U(new re(0,255,255,1)),U.lightgrey=new U(new re(211,211,211,1)),U.transparent=new U(new re(0,0,0,0)),U}();(function(U){var j;(function(G){var R;(function(_){function x(m){return m.rgba.a===1?"rgb("+m.rgba.r+", "+m.rgba.g+", "+m.rgba.b+")":U.Format.CSS.formatRGBA(m)}_.formatRGB=x;function K(m){return"rgba("+m.rgba.r+", "+m.rgba.g+", "+m.rgba.b+", "+ +m.rgba.a.toFixed(2)+")"}_.formatRGBA=K;function D(m){return m.hsla.a===1?"hsl("+m.hsla.h+", "+(m.hsla.s*100).toFixed(2)+"%, "+(m.hsla.l*100).toFixed(2)+"%)":U.Format.CSS.formatHSLA(m)}_.formatHSL=D;function A(m){return"hsla("+m.hsla.h+", "+(m.hsla.s*100).toFixed(2)+"%, "+(m.hsla.l*100).toFixed(2)+"%, "+m.hsla.a.toFixed(2)+")"}_.formatHSLA=A;function te(m){var w=m.toString(16);return w.length!==2?"0"+w:w}function H(m){return"#"+te(m.rgba.r)+te(m.rgba.g)+te(m.rgba.b)}_.formatHex=H;function E(m,w){return w===void 0&&(w=!1),w&&m.rgba.a===1?U.Format.CSS.formatHex(m):"#"+te(m.rgba.r)+te(m.rgba.g)+te(m.rgba.b)+te(Math.round(m.rgba.a*255))}_.formatHexA=E;function f(m){return m.isOpaque()?U.Format.CSS.formatHex(m):U.Format.CSS.formatRGBA(m)}_.format=f;function p(m){var w=m.length;if(w===0)return null;if(m.charCodeAt(0)!==35)return null;if(w===7){var B=16*g(m.charCodeAt(1))+g(m.charCodeAt(2)),z=16*g(m.charCodeAt(3))+g(m.charCodeAt(4)),oe=16*g(m.charCodeAt(5))+g(m.charCodeAt(6));return new U(new re(B,z,oe,1))}if(w===9){var B=16*g(m.charCodeAt(1))+g(m.charCodeAt(2)),z=16*g(m.charCodeAt(3))+g(m.charCodeAt(4)),oe=16*g(m.charCodeAt(5))+g(m.charCodeAt(6)),he=16*g(m.charCodeAt(7))+g(m.charCodeAt(8));return new U(new re(B,z,oe,he/255))}if(w===4){var B=g(m.charCodeAt(1)),z=g(m.charCodeAt(2)),oe=g(m.charCodeAt(3));return new U(new re(16*B+B,16*z+z,16*oe+oe))}if(w===5){var B=g(m.charCodeAt(1)),z=g(m.charCodeAt(2)),oe=g(m.charCodeAt(3)),he=g(m.charCodeAt(4));return new U(new re(16*B+B,16*z+z,16*oe+oe,(16*he+he)/255))}return null}_.parseHex=p;function g(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(R=G.CSS||(G.CSS={}))})(j=U.Format||(U.Format={}))})(k||(k={}))}}]);