zdravko/web/static/monaco/vs/editor/editor.main.js

765 lines
3.5 MiB
JavaScript
Raw Normal View History

/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/(function(){var ie=["exports","require","vs/base/common/lifecycle","vs/nls","vs/nls!vs/editor/editor.main","vs/editor/common/core/range","vs/base/browser/dom","vs/base/common/event","vs/platform/instantiation/common/instantiation","vs/editor/common/core/position","vs/base/common/errors","vs/css!vs/editor/editor.main","vs/base/common/strings","vs/base/common/arrays","vs/platform/contextkey/common/contextkey","vs/base/common/async","vs/editor/browser/editorExtensions","vs/base/common/platform","vs/editor/common/services/languageFeatures","vs/base/common/cancellation","vs/base/common/types","vs/editor/common/editorContextKeys","vs/base/common/uri","vs/platform/theme/common/themeService","vs/editor/common/core/selection","vs/platform/commands/common/commands","vs/base/common/codicons","vs/platform/configuration/common/configuration","vs/editor/common/languages","vs/platform/actions/common/actions","vs/base/common/observable","vs/base/common/themables","vs/platform/keybinding/common/keybinding","vs/platform/theme/common/colorRegistry","vs/editor/common/languages/languageConfigurationRegistry","vs/base/common/color","vs/editor/browser/services/codeEditorService","vs/editor/common/model/textModel","vs/editor/common/config/editorOptions","vs/platform/registry/common/platform","vs/base/browser/fastDomNode","vs/base/common/actions","vs/editor/common/model","vs/editor/common/languages/language","vs/base/browser/ui/hover/hoverDelegateFactory","vs/base/common/map","vs/base/browser/keyboardEvent","vs/base/browser/ui/aria/aria","vs/platform/instantiation/common/extensions","vs/base/common/network","vs/base/common/resources","vs/platform/notification/common/notification","vs/base/browser/window","vs/editor/common/services/model","vs/base/common/iterator","vs/base/common/objects","vs/editor/browser/view/viewPart","vs/base/common/htmlContent","vs/platform/contextview/browser/contextView","vs/editor/common/core/lineRange","vs/platform/log/common/log","vs/platform/opener/common/opener","vs/platform/telemetry/common/telemetry","vs/base/browser/browser","vs/base/common/stopwatch","vs/editor/common/core/offsetRange","vs/platform/accessibility/common/accessibility","vs/base/common/arraysFind","vs/base/browser/touch","vs/base/common/keyCodes","vs/base/common/linkedList","vs/editor/browser/config/domFontInfo","vs/editor/common/core/editOperation","vs/base/browser/mouseEvent","vs/editor/common/services/resolverService","vs/platform/quickinput/common/quickInput","vs/platform/theme/common/iconRegistry","vs/base/browser/ui/hover/hoverDelegate2","vs/base/common/filters","vs/editor/common/cursorCommon","vs/base/browser/ui/widget","vs/base/browser/ui/scrollbar/scrollableElement","vs/base/browser/ui/actionbar/actionbar","vs/editor/browser/widget/diffEditor/utils","vs/editor/common/services/languageFeatureDebounce","vs/editor/common/languages/modesRegistry","vs/editor/common/core/editorColorRegistry","vs/base/common/assert","vs/base/common/hierarchicalKind","vs/base/browser/event","vs/editor/common/core/cursorColumns","vs/editor/common/viewModel","vs/platform/progress/common/progress","vs/platform/theme/common/colorUtils","vs/platform/theme/common/theme","vs/base/common/lazy","vs/editor/contrib/hover/browser/hoverTypes","vs/base/common/path","vs/platform/storage/common/storage","vs/base/browser/trustedTypes","vs/editor/common/diff/rangeMapping","vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length","vs/editor/common/tokens/lineTokens","vs/editor/common/standaloneStrings","vs/platform/markers/common/markers","vs/platform/configuration/common/configurationRegistry","vs/platform/theme/browser/defaultStyles","vs/base/common/severity","vs/editor/common/core/textLength","vs/editor/common/core/textEdit","vs/base/browser/ui/iconLabel/iconLabels","vs/base/browser/ui/list/listWidget","vs/editor/common/core/stringBuilder","vs/editor/common/services/editorWorker","vs/platform/clipboard/common/clipboardService","vs/platform/hover/browser/hover","vs/platform/layout/browser/layoutService
`+Qe),ee&&(Qe=wt(Qe,S," "),Qe=wt(Qe,L," "),Qe=wt(Qe,I," ")),r&&he?r.createHTML(Qe):Qe},e.setConfig=function(Te){me(Te),P=!0},e.clearConfig=function(){Be=null,P=!1},e.isValidAttribute=function(Te,Le,Oe){Be||me({});const Pe=We(Te),ze=We(Le);return pt(Pe,ze,Oe)},e.addHook=function(Te,Le){typeof Le=="function"&&(_[Te]=_[Te]||[],kt(_[Te],Le))},e.removeHook=function(Te){if(_[Te])return Kt(_[Te])},e.removeHooks=function(Te){_[Te]&&(_[Te]=[])},e.removeAllHooks=function(){_={}},e}var Ci=Qt();define("vs/base/browser/dompurify/dompurify",function(){return Ci}),define(ie[40],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FastDomNode=void 0,e.createFastDomNode=E;class f{constructor(y){this.domNode=y,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(y){const p=k(y);this._maxWidth!==p&&(this._maxWidth=p,this.domNode.style.maxWidth=this._maxWidth)}setWidth(y){const p=k(y);this._width!==p&&(this._width=p,this.domNode.style.width=this._width)}setHeight(y){const p=k(y);this._height!==p&&(this._height=p,this.domNode.style.height=this._height)}setTop(y){const p=k(y);this._top!==p&&(this._top=p,this.domNode.style.top=this._top)}setLeft(y){const p=k(y);this._left!==p&&(this._left=p,this.domNode.style.left=this._left)}setBottom(y){const p=k(y);this._bottom!==p&&(this._bottom=p,this.domNode.style.bottom=this._bottom)}setRight(y){const p=k(y);this._right!==p&&(this._right=p,this.domNode.style.right=this._right)}setPaddingLeft(y){const p=k(y);this._paddingLeft!==p&&(this._paddingLeft=p,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(y){this._fontFamily!==y&&(this._fontFamily=y,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(y){this._fontWeight!==y&&(this._fontWeight=y,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(y){const p=k(y);this._fontSize!==p&&(this._fontSize=p,this.domNode.style.fontSize=this._fontSize)}setFontStyle(y){this._fontStyle!==y&&(this._fontStyle=y,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(y){this._fontFeatureSettings!==y&&(this._fontFeatureSettings=y,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(y){this._fontVariationSettings!==y&&(this._fontVariationSettings=y,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(y){this._textDecoration!==y&&(this._textDecoration=y,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(y){const p=k(y);this._lineHeight!==p&&(this._lineHeight=p,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(y){const p=k(y);this._letterSpacing!==p&&(this._letterSpacing=p,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(y){this._className!==y&&(this._className=y,this.domNode.className=this._className)}toggleClassName(y,p){this.domNode.classList.toggle(y,p),this._className=this.domNode.className}setDisplay(y){this._display!==y&&(this._display=y,this.domNode.style.display=this._display)}setPosition(y){this._position!==y&&(this._position=y,this.domNode.style.position=this._position)}setVisibility(y){this._visibility!==y&&(this._visibility=y,this.domNode.style.visibility=this._visibility)}setColor(y){this._color!==y&&(this._color=y,this.domNode.style.color=this._color)}setBackgroundColor(y){this._backgroundColor!==y&&(this._backgroundColor=y,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(y){this._layerHint!==y&&(this._layerHint=y,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(y){this._boxShadow!==y&&(this._boxShadow=y,this.domNode.style.boxShadow=y)}setCo
`+c.stack):new Error(c.message+`
`+c.stack):c},0)}}emit(c){this.listeners.forEach(m=>{m(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}e.ErrorHandler=f,e.errorHandler=new f;function k(n){p(n)||e.errorHandler.onUnexpectedError(n)}function E(n){p(n)||e.errorHandler.onUnexpectedExternalError(n)}function D(n){if(n instanceof Error){const{name:c,message:m}=n,u=n.stacktrace||n.stack;return{$isError:!0,name:c,message:m,stack:u,noTelemetry:i.isErrorNoTelemetry(n)}}return n}const y="Canceled";function p(n){return n instanceof w?!0:n instanceof Error&&n.name===y&&n.message===y}class w extends Error{constructor(){super(y),this.name=this.message}}e.CancellationError=w;function b(){const n=new Error(y);return n.name=n.message,n}function C(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function o(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}class s extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}e.NotSupportedError=s;class i extends Error{constructor(c){super(c),this.name="CodeExpectedError"}static fromError(c){if(c instanceof i)return c;const m=new i;return m.message=c.message,m.stack=c.stack,m}static isErrorNoTelemetry(c){return c.name==="CodeExpectedError"}}e.ErrorNoTelemetry=i;class t extends Error{constructor(c){super(c||"An unexpected bug occurred."),Object.setPrototypeOf(this,t.prototype)}}e.BugIndicatingError=t}),define(ie[99],ne([1,0,52,10]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTrustedTypesPolicy=E;function E(D,y){var p;const w=globalThis.MonacoEnvironment;if(w?.createTrustedTypesPolicy)try{return w.createTrustedTypesPolicy(D,y)}catch(b){(0,k.onUnexpectedError)(b);return}try{return(p=f.mainWindow.trustedTypes)===null||p===void 0?void 0:p.createPolicy(D,y)}catch(b){(0,k.onUnexpectedError)(b);return}}}),define(ie[87],ne([1,0,10]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ok=k,e.assertNever=E,e.softAssert=D,e.assertFn=y,e.checkAdjacentItems=p;function k(w,b){if(!w)throw new Error(b?`Assertion failed (${b})`:"Assertion Failed")}function E(w,b="Unreachable"){throw new Error(b)}function D(w){w||(0,f.onUnexpectedError)(new f.BugIndicatingError("Soft Assertion Failed"))}function y(w){if(!w()){debugger;w(),(0,f.onUnexpectedError)(new f.BugIndicatingError("Assertion Failed"))}}function p(w,b){let C=0;for(;C<w.length-1;){const o=w[C],s=w[C+1];if(!b(o,s))return!1;C++}return!0}}),define(ie[122],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSingleCallFunction=f;function f(k,E){const D=this;let y=!1,p;return function(){if(y)return p;if(y=!0,E)try{p=k.apply(D,arguments)}finally{E()}else p=k.apply(D,arguments);return p}}}),define(ie[88],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HierarchicalKind=void 0;class f{constructor(E){this.value=E}equals(E){return this.value===E.value}contains(E){return this.equals(E)||this.value===""||E.value.startsWith(this.value+f.sep)}intersects(E){return this.contains(E)||E.contains(this)}append(...E){return new f((this.value?[this.value,...E]:E).join(f.sep))}}e.HierarchicalKind=f,f.sep=".",f.None=new f("@@none@@"),f.Empty=new f("")}),define(ie[181],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultGenerator=e.IdGenerator=void 0;class f{constructor(E){this._prefix=E,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}e.IdGenerator=f,e.defaultGenerator=new f("id#")}),define(ie[54],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var f;(function(k){function E(l){return l&&typeof l=="object"&&typeof l[Symbol.iterator]=="function"}k.is=E;const D=Object.freeze([]);function y(){return D}k.empty=y;function*p(l){yield l}k.single=p;function w(l){return E(l)?l:p(l)}k.wrap=w;function b(l){return l||D}k.from=b;function*C(l){for(let g=l.length-1;g>=0;g--)yield l[g]}k.reverse=C;function o(l){return!l||l[Symbol.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}Q.defaults=y();function p(X){Q.defaults=X}var w=/[&<>"']/,b=/[&<>"']/g,C=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=function(ae){return s[ae]};function t(X,ae){if(ae){if(w.test(X))return X.replace(b,i)}else if(C.test(X))return X.replace(o,i);return X}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(X){return X.replace(n,function(ae,oe){return oe=oe.toLowerCase(),oe==="colon"?":":oe.charAt(0)==="#"?oe.charAt(1)==="x"?String.fromCharCode(parseInt(oe.substring(2),16)):String.fromCharCode(+oe.substring(1)):""})}var m=/(^|[^\[])\^/g;function u(X,ae){X=typeof X=="string"?X:X.source,ae=ae||"";var oe={replace:function(q,V){return V=V.source||V,V=V.replace(m,"$1"),X=X.replace(q,V),oe},getRegex:function(){return new RegExp(X,ae)}};return oe}var r=/[^\w:]/g,a=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function h(X,ae,oe){if(X){var B;try{B=decodeURIComponent(c(oe)).replace(r,"").toLowerCase()}catch{return null}if(B.indexOf("javascript:")===0||B.indexOf("vbscript:")===0||B.indexOf("data:")===0)return null}ae&&!a.test(oe)&&(oe=_(ae,oe));try{oe=encodeURI(oe).replace(/%25/g,"%")}catch{return null}return oe}var l={},g=/^[^:]+:\/*[^/]*$/,d=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(X,ae){l[" "+X]||(g.test(X)?l[" "+X]=X+"/":l[" "+X]=T(X,"/",!0)),X=l[" "+X];var oe=X.indexOf(":")===-1;return ae.substring(0,2)==="//"?oe?ae:X.replace(d,"$1")+ae:ae.charAt(0)==="/"?oe?ae:X.replace(v,"$1")+ae:X+ae}var S={exec:function(){}};function L(X){for(var ae=1,oe,B;ae<arguments.length;ae++){oe=arguments[ae];for(B in oe)Object.prototype.hasOwnProperty.call(oe,B)&&(X[B]=oe[B])}return X}function I(X,ae){var oe=X.replace(/\|/g,function(V,$,J){for(var se=!1,de=$;--de>=0&&J[de]==="\\";)se=!se;return se?"|":" |"}),B=oe.split(/ \|/),q=0;if(B[0].trim()||B.shift(),B.length>0&&!B[B.length-1].trim()&&B.pop(),B.length>ae)B.splice(ae);else for(;B.length<ae;)B.push("");for(;q<B.length;q++)B[q]=B[q].trim().replace(/\\\|/g,"|");return B}function T(X,ae,oe){var B=X.length;if(B===0)return"";for(var q=0;q<B;){var V=X.charAt(B-q-1);if(V===ae&&!oe)q++;else if(V!==ae&&oe)q++;else break}return X.slice(0,B-q)}function N(X,ae){if(X.indexOf(ae[1])===-1)return-1;for(var oe=X.length,B=0,q=0;q<oe;q++)if(X[q]==="\\")q++;else if(X[q]===ae[0])B++;else if(X[q]===ae[1]&&(B--,B<0))return q;return-1}function A(X){X&&X.sanitize&&!X.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function O(X,ae){if(ae<1)return"";for(var oe="";ae>1;)ae&1&&(oe+=X),ae>>=1,X+=X;return oe+X}function M(X,ae,oe,B){var q=ae.href,V=ae.title?t(ae.title):null,$=X[1].replace(/\\([\[\]])/g,"$1");if(X[0].charAt(0)!=="!"){B.state.inLink=!0;var J={type:"link",raw:oe,href:q,title:V,text:$,tokens:B.inlineTokens($)};return B.state.inLink=!1,J}return{type:"image",raw:oe,href:q,title:V,text:t($)}}function R(X,ae){var oe=X.match(/^(\s+)(?:```)/);if(oe===null)return ae;var B=oe[1];return ae.split(`
`).map(function(q){var V=q.match(/^\s+/);if(V===null)return q;var $=V[0];return $.length>=B.length?q.slice(B.length):q}).join(`
`)}var x=function(){function X(oe){this.options=oe||Q.defaults}var ae=X.prototype;return ae.space=function(B){var q=this.rules.block.newline.exec(B);if(q&&q[0].length>0)return{type:"space",raw:q[0]}},ae.code=function(B){var q=this.rules.block.code.exec(B);if(q){var V=q[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:q[0],codeBlockStyle:"indented",text:this.options.pedantic?V:T(V,`
`)}}},ae.fences=function(B){var q=this.rules.block.fences.exec(B);if(q){var V=q[0],$=R(V,q[3]||"");return{type:"code",raw:V,lang:q[2]?q[2].trim():q[2],text:$}}},ae.heading=function(B){var q=this.rules.block.heading.exec(B);if(q){var V=q[2].trim();if(/#$/.test(V)){var $=T(V,"#");(this.options.pedantic||!$||/ $/.test($))&&(V=$.trim())}return{type:"heading",raw:q[0],depth:q[1].length,text:V,tokens:this.lexer.inline(V)}}},ae.hr=function(B){var q=this.rules.block.hr.exec(B);if(q)return{type:"hr",raw:q[0]}},ae.blockquote=function(B){var q=this.rules.block.blockquote.exec(B);if(q){var V=q[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:q[0],tokens:this.lexer.blockTokens(V,[]),text:V}}},ae.list=function(B){var q=this.rules.block.list.exec(B);if(q){var V,$,J,se,de,le,fe,ve,Ce,Se,_e,ke,Ee=q[1].trim(),Ae=Ee.length>1,xe={type:"list",raw:"",ordered:Ae,start:Ae?+Ee.slice(0,-1):"",loose:!1,items:[]};Ee=Ae?"\\d{1,9}\\"+Ee.slice(-1):"\\"+Ee,this.options.pedantic&&(Ee=Ae?Ee:"[*+-]");for(var We=new RegExp("^( {0,3}"+Ee+")((?:[ ][^\\n]*)?(?:\\n|$))");B&&(ke=!1,!(!(q=We.exec(B))||this.rules.block.hr.test(B)));){if(V=q[0],B=B.substring(V.length),ve=q[2].split(`
`,1)[0],Ce=B.split(`
`,1)[0],this.options.pedantic?(se=2,_e=ve.trimLeft()):(se=q[2].search(/[^ ]/),se=se>4?1:se,_e=ve.slice(se),se+=q[1].length),le=!1,!ve&&/^ *$/.test(Ce)&&(V+=Ce+`
`,B=B.substring(Ce.length+1),ke=!0),!ke)for(var Be=new RegExp("^ {0,"+Math.min(3,se-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),De=new RegExp("^ {0,"+Math.min(3,se-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),Ne=new RegExp("^ {0,"+Math.min(3,se-1)+"}(?:```|~~~)"),me=new RegExp("^ {0,"+Math.min(3,se-1)+"}#");B&&(Se=B.split(`
`,1)[0],ve=Se,this.options.pedantic&&(ve=ve.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Ne.test(ve)||me.test(ve)||Be.test(ve)||De.test(B)));){if(ve.search(/[^ ]/)>=se||!ve.trim())_e+=`
`+ve.slice(se);else if(!le)_e+=`
`+ve;else break;!le&&!ve.trim()&&(le=!0),V+=Se+`
`,B=B.substring(Se.length+1)}xe.loose||(fe?xe.loose=!0:/\n *\n *$/.test(V)&&(fe=!0)),this.options.gfm&&($=/^\[[ xX]\] /.exec(_e),$&&(J=$[0]!=="[ ] ",_e=_e.replace(/^\[[ xX]\] +/,""))),xe.items.push({type:"list_item",raw:V,task:!!$,checked:J,loose:!1,text:_e}),xe.raw+=V}xe.items[xe.items.length-1].raw=V.trimRight(),xe.items[xe.items.length-1].text=_e.trimRight(),xe.raw=xe.raw.trimRight();var be=xe.items.length;for(de=0;de<be;de++){this.lexer.state.top=!1,xe.items[de].tokens=this.lexer.blockTokens(xe.items[de].text,[]);var Re=xe.items[de].tokens.filter(function(qe){return qe.type==="space"}),He=Re.every(function(qe){for(var Ue=qe.raw.split(""),Ze=0,et=D(Ue),nt;!(nt=et()).done;){var at=nt.value;if(at===`
`&&(Ze+=1),Ze>1)return!0}return!1});!xe.loose&&Re.length&&He&&(xe.loose=!0,xe.items[de].loose=!0)}return xe}},ae.html=function(B){var q=this.rules.block.html.exec(B);if(q){var V={type:"html",raw:q[0],pre:!this.options.sanitizer&&(q[1]==="pre"||q[1]==="script"||q[1]==="style"),text:q[0]};if(this.options.sanitize){var $=this.options.sanitizer?this.options.sanitizer(q[0]):t(q[0]);V.type="paragraph",V.text=$,V.tokens=this.lexer.inline($)}return V}},ae.def=function(B){var q=this.rules.block.def.exec(B);if(q){q[3]&&(q[3]=q[3].substring(1,q[3].length-1));var V=q[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:V,raw:q[0],href:q[2],title:q[3]}}},ae.table=function(B){var q=this.rules.block.table.exec(B);if(q){var V={type:"table",header:I(q[1]).map(function(fe){return{text:fe}}),align:q[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:q[3]&&q[3].trim()?q[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(V.header.length===V.align.length){V.raw=q[0];var $=V.align.length,J,se,de,le;for(J=0;J<$;J++)/^ *-+: *$/.test(V.align[J])?V.align[J]="right":/^ *:-+: *$/.test(V.align[J])?V.align[J]="center":/^ *:-+ *$/.test(V.align[J])?V.align[J]="left":V.align[J]=null;for($=V.rows.length,J=0;J<$;J++)V.rows[J]=I(V.rows[J],V.header.length).map(function(fe){return{text:fe}});for($=V.header.length,se=0;se<$;se++)V.header[se].tokens=this.lexer.inline(V.header[se].text);for($=V.rows.length,se=0;se<$;se++)for(le=V.rows[se],de=0;de<le.length;de++)le[de].tokens=this.lexer.inline(le[de].text);return V}}},ae.lheading=function(B){var q=this.rules.block.lheading.exec(B);if(q)return{type:"heading",raw:q[0],depth:q[2].charAt(0)==="="?1:2,text:q[1],tokens:this.lexer.inline(q[1])}},ae.paragraph=function(B){var q=this.rules.block.paragraph.exec(B);if(q){var V=q[1].charAt(q[1].length-1)===`
`?q[1].slice(0,-1):q[1];return{type:"paragraph",raw:q[0],text:V,tokens:this.lexer.inline(V)}}},ae.text=function(B){var q=this.rules.block.text.exec(B);if(q)return{type:"text",raw:q[0],text:q[0],tokens:this.lexer.inline(q[0])}},ae.escape=function(B){var q=this.rules.inline.escape.exec(B);if(q)return{type:"escape",raw:q[0],text:t(q[1])}},ae.tag=function(B){var q=this.rules.inline.tag.exec(B);if(q)return!this.lexer.state.inLink&&/^<a /i.test(q[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(q[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(q[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(q[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:q[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(q[0]):t(q[0]):q[0]}},ae.link=function(B){var q=this.rules.inline.link.exec(B);if(q){var V=q[2].trim();if(!this.options.pedantic&&/^</.test(V)){if(!/>$/.test(V))return;var $=T(V.slice(0,-1),"\\");if((V.length-$.length)%2===0)return}else{var J=N(q[2],"()");if(J>-1){var se=q[0].indexOf("!")===0?5:4,de=se+q[1].length+J;q[2]=q[2].substring(0,J),q[0]=q[0].substring(0,de).trim(),q[3]=""}}var le=q[2],fe="";if(this.options.pedantic){var ve=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(le);ve&&(le=ve[1],fe=ve[3])}else fe=q[3]?q[3].slice(1,-1):"";return le=le.trim(),/^</.test(le)&&(this.options.pedantic&&!/>$/.test(V)?le=le.slice(1):le=le.slice(1,-1)),M(q,{href:le&&le.replace(this.rules.inline._escapes,"$1"),title:fe&&fe.replace(this.rules.inline._escapes,"$1")},q[0],this.lexer)}},ae.reflink=function(B,q){var V;if((V=this.rules.inline.reflink.exec(B))||(V=this.rules.inline.nolink.exec(B))){var $=(V[2]||V[1]).replace(/\s+/g," ");if($=q[$.toLowerCase()],!$||!$.href){var J=V[0].charAt(0);return{type:"text",raw:J,text:J}}return M(V,$,V[0],this.lexer)}},ae.emStrong=function(B,q,V){V===void 0&&(V="");var $=this.rules.inline.emStrong.lDelim.exec(B);if($&&!($[3]&&V.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u106
]`).replace("lheading",F.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:S,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)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:S,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};W._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",W.punctuation=u(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/\\\*|\\_/g,W._comment=u(F._comment).replace("(?:-->|$)","-->").getRegex(),W.emStrong.lDelim=u(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=u(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=u(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._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])?)+(?![-_])/,W.autolink=u(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=u(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=u(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=u(W.reflink).replace("label",W._label).replace("ref",F._label).getRegex(),W.nolink=u(W.nolink).replace("ref",F._label).getRegex(),W.reflinkSearch=u(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal=L({},W),W.pedantic=L({},W.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()}),W.gfm=L({},W.normal,{escape:u(W.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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),W.gfm.url=u(W.gfm.url,"i").replace("email",W.gfm._extended_email).getRegex(),W.breaks=L({},W.gfm,{br:u(W.br).replace("{2,}","*").getRegex(),text:u(W.gfm.text).repla
`),this.blockTokens(B,this.tokens);for(var q;q=this.inlineQueue.shift();)this.inlineTokens(q.src,q.tokens);return this.tokens},ae.blockTokens=function(B,q){var V=this;q===void 0&&(q=[]),this.options.pedantic?B=B.replace(/\t/g," ").replace(/^ +$/gm,""):B=B.replace(/^( *)(\t+)/gm,function(fe,ve,Ce){return ve+" ".repeat(Ce.length)});for(var $,J,se,de;B;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(fe){return($=fe.call({lexer:V},B,q))?(B=B.substring($.raw.length),q.push($),!0):!1}))){if($=this.tokenizer.space(B)){B=B.substring($.raw.length),$.raw.length===1&&q.length>0?q[q.length-1].raw+=`
`:q.push($);continue}if($=this.tokenizer.code(B)){B=B.substring($.raw.length),J=q[q.length-1],J&&(J.type==="paragraph"||J.type==="text")?(J.raw+=`
`+$.raw,J.text+=`
`+$.text,this.inlineQueue[this.inlineQueue.length-1].src=J.text):q.push($);continue}if($=this.tokenizer.fences(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.heading(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.hr(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.blockquote(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.list(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.html(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.def(B)){B=B.substring($.raw.length),J=q[q.length-1],J&&(J.type==="paragraph"||J.type==="text")?(J.raw+=`
`+$.raw,J.text+=`
`+$.raw,this.inlineQueue[this.inlineQueue.length-1].src=J.text):this.tokens.links[$.tag]||(this.tokens.links[$.tag]={href:$.href,title:$.title});continue}if($=this.tokenizer.table(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.lheading(B)){B=B.substring($.raw.length),q.push($);continue}if(se=B,this.options.extensions&&this.options.extensions.startBlock&&function(){var fe=1/0,ve=B.slice(1),Ce=void 0;V.options.extensions.startBlock.forEach(function(Se){Ce=Se.call({lexer:this},ve),typeof Ce=="number"&&Ce>=0&&(fe=Math.min(fe,Ce))}),fe<1/0&&fe>=0&&(se=B.substring(0,fe+1))}(),this.state.top&&($=this.tokenizer.paragraph(se))){J=q[q.length-1],de&&J.type==="paragraph"?(J.raw+=`
`+$.raw,J.text+=`
`+$.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=J.text):q.push($),de=se.length!==B.length,B=B.substring($.raw.length);continue}if($=this.tokenizer.text(B)){B=B.substring($.raw.length),J=q[q.length-1],J&&J.type==="text"?(J.raw+=`
`+$.raw,J.text+=`
`+$.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=J.text):q.push($);continue}if(B){var le="Infinite loop on byte: "+B.charCodeAt(0);if(this.options.silent){console.error(le);break}else throw new Error(le)}}return this.state.top=!0,q},ae.inline=function(B,q){return q===void 0&&(q=[]),this.inlineQueue.push({src:B,tokens:q}),q},ae.inlineTokens=function(B,q){var V=this;q===void 0&&(q=[]);var $,J,se,de=B,le,fe,ve;if(this.tokens.links){var Ce=Object.keys(this.tokens.links);if(Ce.length>0)for(;(le=this.tokenizer.rules.inline.reflinkSearch.exec(de))!=null;)Ce.includes(le[0].slice(le[0].lastIndexOf("[")+1,-1))&&(de=de.slice(0,le.index)+"["+O("a",le[0].length-2)+"]"+de.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(le=this.tokenizer.rules.inline.blockSkip.exec(de))!=null;)de=de.slice(0,le.index)+"["+O("a",le[0].length-2)+"]"+de.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(le=this.tokenizer.rules.inline.escapedEmSt.exec(de))!=null;)de=de.slice(0,le.index)+"++"+de.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;B;)if(fe||(ve=""),fe=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(_e){return($=_e.call({lexer:V},B,q))?(B=B.substring($.raw.length),q.push($),!0):!1}))){if($=this.tokenizer.escape(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.tag(B)){B=B.substring($.raw.length),J=q[q.length-1],J&&$.type==="text"&&J.type==="text"?(J.raw+=$.raw,J.text+=$.text):q.push($);continue}if($=this.tokenizer.link(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.reflink(B,this.tokens.links)){B=B.substring($.raw.length),J=q[q.length-1],J&&$.type==="text"&&J.type==="text"?(J.raw+=$.raw,J.text+=$.text):q.push($);continue}if($=this.tokenizer.emStrong(B,de,ve)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.codespan(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.br(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.del(B)){B=B.substring($.raw.length),q.push($);continue}if($=this.tokenizer.autolink(B,z)){B=B.substring($.raw.length),q.push($);continue}if(!this.state.inLink&&($=this.tokenizer.url(B,z))){B=B.substring($.raw.length),q.push($);continue}if(se=B,this.options.extensions&&this.options.extensions.startInline&&function(){var _e=1/0,ke=B.slice(1),Ee=void 0;V.options.extensions.startInline.forEach(function(Ae){Ee=Ae.call({lexer:this},ke),typeof Ee=="number"&&Ee>=0&&(_e=Math.min(_e,Ee))}),_e<1/0&&_e>=0&&(se=B.substring(0,_e+1))}(),$=this.tokenizer.inlineText(se,H)){B=B.substring($.raw.length),$.raw.slice(-1)!=="_"&&(ve=$.raw.slice(-1)),fe=!0,J=q[q.length-1],J&&J.type==="text"?(J.raw+=$.raw,J.text+=$.text):q.push($);continue}if(B){var Se="Infinite loop on byte: "+B.charCodeAt(0);if(this.options.silent){console.error(Se);break}else throw new Error(Se)}}return q},f(X,null,[{key:"rules",get:function(){return{block:F,inline:W}}}]),X}(),K=function(){function X(oe){this.options=oe||Q.defaults}var ae=X.prototype;return ae.code=function(B,q,V){var $=(q||"").match(/\S*/)[0];if(this.options.highlight){var J=this.options.highlight(B,$);J!=null&&J!==B&&(V=!0,B=J)}return B=B.replace(/\n$/,"")+`
`,$?'<pre><code class="'+this.options.langPrefix+t($,!0)+'">'+(V?B:t(B,!0))+`</code></pre>
`:"<pre><code>"+(V?B:t(B,!0))+`</code></pre>
`},ae.blockquote=function(B){return`<blockquote>
`+B+`</blockquote>
`},ae.html=function(B){return B},ae.heading=function(B,q,V,$){if(this.options.headerIds){var J=this.options.headerPrefix+$.slug(V);return"<h"+q+' id="'+J+'">'+B+"</h"+q+`>
`}return"<h"+q+">"+B+"</h"+q+`>
`},ae.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},ae.list=function(B,q,V){var $=q?"ol":"ul",J=q&&V!==1?' start="'+V+'"':"";return"<"+$+J+`>
`+B+"</"+$+`>
`},ae.listitem=function(B){return"<li>"+B+`</li>
`},ae.checkbox=function(B){return"<input "+(B?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ae.paragraph=function(B){return"<p>"+B+`</p>
`},ae.table=function(B,q){return q&&(q="<tbody>"+q+"</tbody>"),`<table>
<thead>
`+B+`</thead>
`+q+`</table>
`},ae.tablerow=function(B){return`<tr>
`+B+`</tr>
`},ae.tablecell=function(B,q){var V=q.header?"th":"td",$=q.align?"<"+V+' align="'+q.align+'">':"<"+V+">";return $+B+("</"+V+`>
`)},ae.strong=function(B){return"<strong>"+B+"</strong>"},ae.em=function(B){return"<em>"+B+"</em>"},ae.codespan=function(B){return"<code>"+B+"</code>"},ae.br=function(){return this.options.xhtml?"<br/>":"<br>"},ae.del=function(B){return"<del>"+B+"</del>"},ae.link=function(B,q,V){if(B=h(this.options.sanitize,this.options.baseUrl,B),B===null)return V;var $='<a href="'+t(B)+'"';return q&&($+=' title="'+q+'"'),$+=">"+V+"</a>",$},ae.image=function(B,q,V){if(B=h(this.options.sanitize,this.options.baseUrl,B),B===null)return V;var $='<img src="'+B+'" alt="'+V+'"';return q&&($+=' title="'+q+'"'),$+=this.options.xhtml?"/>":">",$},ae.text=function(B){return B},X}(),U=function(){function X(){}var ae=X.prototype;return ae.strong=function(B){return B},ae.em=function(B){return B},ae.codespan=function(B){return B},ae.del=function(B){return B},ae.html=function(B){return B},ae.text=function(B){return B},ae.link=function(B,q,V){return""+V},ae.image=function(B,q,V){return""+V},ae.br=function(){return""},X}(),G=function(){function X(){this.seen={}}var ae=X.prototype;return ae.serialize=function(B){return B.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},ae.getNextSafeSlug=function(B,q){var V=B,$=0;if(this.seen.hasOwnProperty(V)){$=this.seen[B];do $++,V=B+"-"+$;while(this.seen.hasOwnProperty(V))}return q||(this.seen[B]=$,this.seen[V]=0),V},ae.slug=function(B,q){q===void 0&&(q={});var V=this.serialize(B);return this.getNextSafeSlug(V,q.dryrun)},X}(),te=function(){function X(oe){this.options=oe||Q.defaults,this.options.renderer=this.options.renderer||new K,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new U,this.slugger=new G}X.parse=function(B,q){var V=new X(q);return V.parse(B)},X.parseInline=function(B,q){var V=new X(q);return V.parseInline(B)};var ae=X.prototype;return ae.parse=function(B,q){q===void 0&&(q=!0);var V="",$,J,se,de,le,fe,ve,Ce,Se,_e,ke,Ee,Ae,xe,We,Be,De,Ne,me,be=B.length;for($=0;$<be;$++){if(_e=B[$],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[_e.type]&&(me=this.options.extensions.renderers[_e.type].call({parser:this},_e),me!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(_e.type))){V+=me||"";continue}switch(_e.type){case"space":continue;case"hr":{V+=this.renderer.hr();continue}case"heading":{V+=this.renderer.heading(this.parseInline(_e.tokens),_e.depth,c(this.parseInline(_e.tokens,this.textRenderer)),this.slugger);continue}case"code":{V+=this.renderer.code(_e.text,_e.lang,_e.escaped);continue}case"table":{for(Ce="",ve="",de=_e.header.length,J=0;J<de;J++)ve+=this.renderer.tablecell(this.parseInline(_e.header[J].tokens),{header:!0,align:_e.align[J]});for(Ce+=this.renderer.tablerow(ve),Se="",de=_e.rows.length,J=0;J<de;J++){for(fe=_e.rows[J],ve="",le=fe.length,se=0;se<le;se++)ve+=this.renderer.tablecell(this.parseInline(fe[se].tokens),{header:!1,align:_e.align[se]});Se+=this.renderer.tablerow(ve)}V+=this.renderer.table(Ce,Se);continue}case"blockquote":{Se=this.parse(_e.tokens),V+=this.renderer.blockquote(Se);continue}case"list":{for(ke=_e.ordered,Ee=_e.start,Ae=_e.loose,de=_e.items.length,Se="",J=0;J<de;J++)We=_e.items[J],Be=We.checked,De=We.task,xe="",We.task&&(Ne=this.renderer.checkbox(Be),Ae?We.tokens.length>0&&We.tokens[0].type==="paragraph"?(We.tokens[0].text=Ne+" "+We.tokens[0].text,We.tokens[0].tokens&&We.tokens[0].tokens.length>0&&We.tokens[0].tokens[0].type==="text"&&(We.tokens[0].tokens[0].text=Ne+" "+We.tokens[0].tokens[0].text)):We.tokens.unshift({type:"text",text:Ne}):xe+=Ne),xe+=this.parse(We.tokens,Ae),Se+=this.renderer.listitem(xe,De,Be);V+=this.renderer.list(Se,ke,Ee);continue}case"html":{V+=this.renderer.html(_e.text);continue}case"paragraph":{V+=this.renderer.paragraph(this.parseInline(_e.tokens));continue}case"text":{for(Se=_e.tokens?this.parseInline(_e.tokens):_e.text;$+1<be&&B[$+1].type==="text";)_e=B[++$],Se+=`
`+(_e.tokens?this.parseInline(_e.tokens):_e.text);V+=q?this.renderer.paragraph(Se):Se;continue}default:{var Re='Token with "'+_e.type+'" type was not found.';if(this.options.silent){console.error(Re);return}else throw new Error(Re)}}}return V},ae.parseInline=function(B,q){q=q||this.renderer;var V="",$,J,se,de=B.length;for($=0;$<de;$++){if(J=B[$],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[J.type]&&(se=this.options.extensions.renderers[J.type].call({parser:this},J),se!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(J.type))){V+=se||"";continue}switch(J.type){case"escape":{V+=q.text(J.text);break}case"html":{V+=q.html(J.text);break}case"link":{V+=q.link(J.href,J.title,this.parseInline(J.tokens,q));break}case"image":{V+=q.image(J.href,J.title,J.text);break}case"strong":{V+=q.strong(this.parseInline(J.tokens,q));break}case"em":{V+=q.em(this.parseInline(J.tokens,q));break}case"codespan":{V+=q.codespan(J.text);break}case"br":{V+=q.br();break}case"del":{V+=q.del(this.parseInline(J.tokens,q));break}case"text":{V+=q.text(J.text);break}default:{var le='Token with "'+J.type+'" type was not found.';if(this.options.silent){console.error(le);return}else throw new Error(le)}}}return V},X}();function ee(X,ae,oe){if(typeof X>"u"||X===null)throw new Error("marked(): input parameter is undefined or null");if(typeof X!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(X)+", string expected");if(typeof ae=="function"&&(oe=ae,ae=null),ae=L({},ee.defaults,ae||{}),A(ae),oe){var B=ae.highlight,q;try{q=j.lex(X,ae)}catch(de){return oe(de)}var V=function(le){var fe;if(!le)try{ae.walkTokens&&ee.walkTokens(q,ae.walkTokens),fe=te.parse(q,ae)}catch(ve){le=ve}return ae.highlight=B,le?oe(le):oe(null,fe)};if(!B||B.length<3||(delete ae.highlight,!q.length))return V();var $=0;ee.walkTokens(q,function(de){de.type==="code"&&($++,setTimeout(function(){B(de.text,de.lang,function(le,fe){if(le)return V(le);fe!=null&&fe!==de.text&&(de.text=fe,de.escaped=!0),$--,$===0&&V()})},0))}),$===0&&V();return}function J(de){if(de.message+=`
Please report this to https://github.com/markedjs/marked.`,ae.silent)return"<p>An error occurred:</p><pre>"+t(de.message+"",!0)+"</pre>";throw de}try{var se=j.lex(X,ae);if(ae.walkTokens){if(ae.async)return Promise.all(ee.walkTokens(se,ae.walkTokens)).then(function(){return te.parse(se,ae)}).catch(J);ee.walkTokens(se,ae.walkTokens)}return te.parse(se,ae)}catch(de){J(de)}}ee.options=ee.setOptions=function(X){return L(ee.defaults,X),p(ee.defaults),ee},ee.getDefaults=y,ee.defaults=Q.defaults,ee.use=function(){for(var X=arguments.length,ae=new Array(X),oe=0;oe<X;oe++)ae[oe]=arguments[oe];var B=L.apply(void 0,[{}].concat(ae)),q=ee.defaults.extensions||{renderers:{},childTokens:{}},V;ae.forEach(function($){if($.extensions&&(V=!0,$.extensions.forEach(function(se){if(!se.name)throw new Error("extension name required");if(se.renderer){var de=q.renderers?q.renderers[se.name]:null;de?q.renderers[se.name]=function(){for(var le=arguments.length,fe=new Array(le),ve=0;ve<le;ve++)fe[ve]=arguments[ve];var Ce=se.renderer.apply(this,fe);return Ce===!1&&(Ce=de.apply(this,fe)),Ce}:q.renderers[se.name]=se.renderer}if(se.tokenizer){if(!se.level||se.level!=="block"&&se.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");q[se.level]?q[se.level].unshift(se.tokenizer):q[se.level]=[se.tokenizer],se.start&&(se.level==="block"?q.startBlock?q.startBlock.push(se.start):q.startBlock=[se.start]:se.level==="inline"&&(q.startInline?q.startInline.push(se.start):q.startInline=[se.start]))}se.childTokens&&(q.childTokens[se.name]=se.childTokens)})),$.renderer&&function(){var se=ee.defaults.renderer||new K,de=function(ve){var Ce=se[ve];se[ve]=function(){for(var Se=arguments.length,_e=new Array(Se),ke=0;ke<Se;ke++)_e[ke]=arguments[ke];var Ee=$.renderer[ve].apply(se,_e);return Ee===!1&&(Ee=Ce.apply(se,_e)),Ee}};for(var le in $.renderer)de(le);B.renderer=se}(),$.tokenizer&&function(){var se=ee.defaults.tokenizer||new x,de=function(ve){var Ce=se[ve];se[ve]=function(){for(var Se=arguments.length,_e=new Array(Se),ke=0;ke<Se;ke++)_e[ke]=arguments[ke];var Ee=$.tokenizer[ve].apply(se,_e);return Ee===!1&&(Ee=Ce.apply(se,_e)),Ee}};for(var le in $.tokenizer)de(le);B.tokenizer=se}(),$.walkTokens){var J=ee.defaults.walkTokens;B.walkTokens=function(se){var de=[];return de.push($.walkTokens.call(this,se)),J&&(de=de.concat(J.call(this,se))),de}}V&&(B.extensions=q),ee.setOptions(B)})},ee.walkTokens=function(X,ae){for(var oe=[],B=function(){var J=V.value;switch(oe=oe.concat(ae.call(ee,J)),J.type){case"table":{for(var se=D(J.header),de;!(de=se()).done;){var le=de.value;oe=oe.concat(ee.walkTokens(le.tokens,ae))}for(var fe=D(J.rows),ve;!(ve=fe()).done;)for(var Ce=ve.value,Se=D(Ce),_e;!(_e=Se()).done;){var ke=_e.value;oe=oe.concat(ee.walkTokens(ke.tokens,ae))}break}case"list":{oe=oe.concat(ee.walkTokens(J.items,ae));break}default:ee.defaults.extensions&&ee.defaults.extensions.childTokens&&ee.defaults.extensions.childTokens[J.type]?ee.defaults.extensions.childTokens[J.type].forEach(function(Ee){oe=oe.concat(ee.walkTokens(J[Ee],ae))}):J.tokens&&(oe=oe.concat(ee.walkTokens(J.tokens,ae)))}},q=D(X),V;!(V=q()).done;)B();return oe},ee.parseInline=function(X,ae){if(typeof X>"u"||X===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof X!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(X)+", string expected");ae=L({},ee.defaults,ae||{}),A(ae);try{var oe=j.lexInline(X,ae);return ae.walkTokens&&ee.walkTokens(oe,ae.walkTokens),te.parseInline(oe,ae)}catch(B){if(B.message+=`
Please report this to https://github.com/markedjs/marked.`,ae.silent)return"<p>An error occurred:</p><pre>"+t(B.message+"",!0)+"</pre>";throw B}},ee.Parser=te,ee.parser=te.parse,ee.Renderer=K,ee.TextRenderer=U,ee.Lexer=j,ee.lexer=j.lex,ee.Tokenizer=x,ee.Slugger=G,ee.parse=ee;var Y=ee.options,P=ee.setOptions,Z=ee.use,re=ee.walkTokens,ce=ee.parseInline,he=ee,pe=te.parse,ge=j.lex;Q.Lexer=j,Q.Parser=te,Q.Renderer=K,Q.Slugger=G,Q.TextRenderer=U,Q.Tokenizer=x,Q.getDefaults=y,Q.lexer=ge,Q.marked=ee,Q.options=Y,Q.parse=he,Q.parseInline=ce,Q.parser=pe,Q.setOptions=P,Q.use=Z,Q.walkTokens=re,Object.defineProperty(Q,"__esModule",{value:!0})}),define(ie[123],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mimes=void 0,e.Mimes=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})}),define(ie[217],ne([1,0,123]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataTransfers=void 0,e.DataTransfers={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:f.Mimes.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}}),define(ie[429],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getKoreanAltChars=f;function f(s){const i=D(s);if(i&&i.length>0)return new Uint32Array(i)}let k=0;const E=new Uint32Array(10);function D(s){if(k=0,y(s,w,4352),k>0||(y(s,b,4449),k>0)||(y(s,C,4520),k>0)||(y(s,o,12593),k))return E.subarray(0,k);if(s>=44032&&s<=55203){const i=s-44032,t=i%588,n=Math.floor(i/588),c=Math.floor(t/28),m=t%28-1;if(n<w.length?y(n,w,0):4352+n-12593<o.length&&y(4352+n,o,12593),c<b.length?y(c,b,0):4449+c-12593<o.length&&y(4449+c-12593,o,12593),m>=0&&(m<C.length?y(m,C,0):4520+m-12593<o.length&&y(4520+m-12593,o,12593)),k>0)return E.subarray(0,k)}}function y(s,i,t){s>=t&&s<t+i.length&&p(i[s-t])}function p(s){s!==0&&(E[k++]=s&255,s>>8&&(E[k++]=s>>8&255),s>>16&&(E[k++]=s>>16&255))}const w=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),b=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),C=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),o=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108])}),define(ie[430],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNavigator=void 0;class f{constructor(E,D=0,y=E.length,p=D-1){this.items=E,this.start=D,this.end=y,this.index=p}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}e.ArrayNavigator=f}),define(ie[431],ne([1,0,430]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryNavigator=void 0;class k{constructor(D=[],y=10){this._initialize(D),this._limit=y,this._onChange()}getHistory(){return this._elements}add(D){this._history.delete(D),this._history.add(D),this._onChange()}next(){return this._navigator.next()}previous(){return this._currentPosition()!==0?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return this._navigator.current()===null}has(D){return this._history.has(D)}_onChange(){this._reduceToLimit();const D=this._elements;this._navigator=new f.ArrayNavigator(D,0,D.length,D.length)}_reduceToLimit(){const D=this._elements;D.length
`).slice(2).join(`
`))}}class n{constructor(I){this.value=I}}const c=2,m=(L,I)=>{if(L instanceof n)I(L);else for(let T=0;T<L.length;T++){const N=L[T];N&&I(N)}},u=p?new FinalizationRegistry(L=>{typeof L=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(L))}):void 0;class r{constructor(I){var T,N,A,O,M;this._size=0,this._options=I,this._leakageMon=s>0||!((T=this._options)===null||T===void 0)&&T.leakWarningThreshold?new i((A=(N=this._options)===null||N===void 0?void 0:N.leakWarningThreshold)!==null&&A!==void 0?A:s):void 0,this._perfMon=!((O=this._options)===null||O===void 0)&&O._profName?new o(this._options._profName):void 0,this._deliveryQueue=(M=this._options)===null||M===void 0?void 0:M.deliveryQueue}dispose(){var I,T,N,A;if(!this._disposed){if(this._disposed=!0,((I=this._deliveryQueue)===null||I===void 0?void 0:I.current)===this&&this._deliveryQueue.reset(),this._listeners){if(w){const O=this._listeners;queueMicrotask(()=>{m(O,M=>{var R;return(R=M.stack)===null||R===void 0?void 0:R.print()})})}this._listeners=void 0,this._size=0}(N=(T=this._options)===null||T===void 0?void 0:T.onDidRemoveLastListener)===null||N===void 0||N.call(T),(A=this._leakageMon)===null||A===void 0||A.dispose()}}get event(){var I;return(I=this._event)!==null&&I!==void 0||(this._event=(T,N,A)=>{var O,M,R,x,F;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),E.Disposable.None;if(this._disposed)return E.Disposable.None;N&&(T=T.bind(N));const W=new n(T);let H,z;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(W.stack=t.create(),H=this._leakageMon.check(W.stack,this._size+1)),w&&(W.stack=z??t.create()),this._listeners?this._listeners instanceof n?((F=this._deliveryQueue)!==null&&F!==void 0||(this._deliveryQueue=new h),this._listeners=[this._listeners,W]):this._listeners.push(W):((M=(O=this._options)===null||O===void 0?void 0:O.onWillAddFirstListener)===null||M===void 0||M.call(O,this),this._listeners=W,(x=(R=this._options)===null||R===void 0?void 0:R.onDidAddFirstListener)===null||x===void 0||x.call(R,this)),this._size++;const j=(0,E.toDisposable)(()=>{u?.unregister(j),H?.(),this._removeListener(W)});if(A instanceof E.DisposableStore?A.add(j):Array.isArray(A)&&A.push(j),u){const K=new Error().stack.split(`
`).slice(2).join(`
`).trim();u.register(j,K,j)}return j}),this._event}_removeListener(I){var T,N,A,O;if((N=(T=this._options)===null||T===void 0?void 0:T.onWillRemoveListener)===null||N===void 0||N.call(T,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(O=(A=this._options)===null||A===void 0?void 0:A.onDidRemoveLastListener)===null||O===void 0||O.call(A,this),this._size=0;return}const M=this._listeners,R=M.indexOf(I);if(R===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,M[R]=void 0;const x=this._deliveryQueue.current===this;if(this._size*c<=M.length){let F=0;for(let W=0;W<M.length;W++)M[W]?M[F++]=M[W]:x&&(this._deliveryQueue.end--,F<this._deliveryQueue.i&&this._deliveryQueue.i--);M.length=F}}_deliver(I,T){var N;if(!I)return;const A=((N=this._options)===null||N===void 0?void 0:N.onListenerError)||f.onUnexpectedError;if(!A){I.value(T);return}try{I.value(T)}catch(O){A(O)}}_deliverQueue(I){const T=I.current._listeners;for(;I.i<I.end;)this._deliver(T[I.i++],I.value);I.reset()}fire(I){var T,N,A,O;if(!((T=this._deliveryQueue)===null||T===void 0)&&T.current&&(this._deliverQueue(this._deliveryQueue),(N=this._perfMon)===null||N===void 0||N.stop()),(A=this._perfMon)===null||A===void 0||A.start(this._size),this._listeners)if(this._listeners instanceof n)this._deliver(this._listeners,I);else{const M=this._deliveryQueue;M.enqueue(this,I,this._listeners.length),this._deliverQueue(M)}(O=this._perfMon)===null||O===void 0||O.stop()}hasListeners(){return this._size>0}}e.Emitter=r;const a=()=>new h;e.createEventDeliveryQueue=a;class h{constructor(){this.i=-1,this.end=0}enqueue(I,T,N){this.i=0,this.end=N,this.current=I,this.value=T}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class l extends r{constructor(I){super(I),this._isPaused=0,this._eventQueue=new D.LinkedList,this._mergeFn=I?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const I=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(I))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(I){this._size&&(this._isPaused!==0?this._eventQueue.push(I):super.fire(I))}}e.PauseableEmitter=l;class g extends l{constructor(I){var T;super(I),this._delay=(T=I.delay)!==null&&T!==void 0?T:100}fire(I){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(I)}}e.DebounceEmitter=g;class d extends r{constructor(I){super(I),this._queuedEvents=[],this._mergeFn=I?.merge}fire(I){this.hasListeners()&&(this._queuedEvents.push(I),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(T=>super.fire(T)),this._queuedEvents=[]}))}}e.MicrotaskEmitter=d;class v{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new r({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(I){const T={event:I,listener:null};this.events.push(T),this.hasListeners&&this.hook(T);const N=()=>{this.hasListeners&&this.unhook(T);const A=this.events.indexOf(T);this.events.splice(A,1)};return(0,E.toDisposable)((0,k.createSingleCallFunction)(N))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(I=>this.hook(I))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(I=>this.unhook(I))}hook(I){I.listener=I.event(T=>this.emitter.fire(T))}unhook(I){var T;(T=I.listener)===null||T===void 0||T.dispose(),I.listener=null}dispose(){var I;this.emitter.dispose();for(const T of this.events)(I=T.listener)===null||I===void 0||I.dispose();this.events=[]}}e.EventMultiplexer=v;class _{constructor(){this.buffers=[]}wrapEvent(I){return(T,N,A)=>I(O=>{const M=this.buffers[this.buffers.length-1];M?M.push(()=>T.call(N,O)):T.call(N,O)},void 0,A)}bufferEvents(I){const T=[];this.
`;for(let Ce=0;Ce<=se;Ce++)Ce===0?ve+=" |":ve+=`${J[Ce-1]}|`,ve+=$[Ce].slice(0,le+1).map(Se=>fe(Se.toString(),3)).join("|")+`
`;return ve}function P($,J,se,de){$=$.substr(J),se=se.substr(de),console.log(Y(G,$,$.length,se,se.length)),console.log(Y(te,$,$.length,se,se.length)),console.log(Y(U,$,$.length,se,se.length))}function Z($,J){if(J<0||J>=$.length)return!1;const se=$.codePointAt(J);switch(se){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!E.isEmojiImprecise(se)}}function re($,J){if(J<0||J>=$.length)return!1;switch($.charCodeAt(J)){case 32:case 9:return!0;default:return!1}}function ce($,J,se){return J[$]!==se[$]}function he($,J,se,de,le,fe,ve=!1){for(;J<se&&le<fe;)$[J]===de[le]&&(ve&&(j[J]=le),J+=1),le+=1;return J===se}var pe;(function($){$.Default=[-100,0];function J(se){return!se||se.length===2&&se[0]===-100&&se[1]===0}$.isDefault=J})(pe||(e.FuzzyScore=pe={}));class ge{constructor(J,se){this.firstMatchCanBeWeak=J,this.boostFullMatch=se}}e.FuzzyScoreOptions=ge,ge.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};function X($,J,se,de,le,fe,ve=ge.default){const Ce=$.length>W?W:$.length,Se=de.length>W?W:de.length;if(se>=Ce||fe>=Se||Ce-se>Se-fe||!he(J,se,Ce,le,fe,Se,!0))return;ae(Ce,Se,se,fe,J,le);let _e=1,ke=1,Ee=se,Ae=fe;const xe=[!1];for(_e=1,Ee=se;Ee<Ce;_e++,Ee++){const me=j[Ee],be=K[Ee],Re=Ee+1<Ce?K[Ee+1]:Se;for(ke=me-fe+1,Ae=me;Ae<Re;ke++,Ae++){let He=Number.MIN_SAFE_INTEGER,qe=!1;Ae<=be&&(He=oe($,J,Ee,se,de,le,Ae,Se,fe,U[_e-1][ke-1]===0,xe));let Ue=0;He!==Number.MAX_SAFE_INTEGER&&(qe=!0,Ue=He+G[_e-1][ke-1]);const Ze=Ae>me,et=Ze?G[_e][ke-1]+(U[_e][ke-1]>0?-5:0):0,nt=Ae>me+1&&U[_e][ke-1]>0,at=nt?G[_e][ke-2]+(U[_e][ke-2]>0?-5:0):0;if(nt&&(!Ze||at>=et)&&(!qe||at>=Ue))G[_e][ke]=at,te[_e][ke]=3,U[_e][ke]=0;else if(Ze&&(!qe||et>=Ue))G[_e][ke]=et,te[_e][ke]=2,U[_e][ke]=0;else if(qe)G[_e][ke]=Ue,te[_e][ke]=1,U[_e][ke]=U[_e-1][ke-1]+1;else throw new Error("not possible")}}if(ee&&P($,se,de,fe),!xe[0]&&!ve.firstMatchCanBeWeak)return;_e--,ke--;const We=[G[_e][ke],fe];let Be=0,De=0;for(;_e>=1;){let me=ke;do{const be=te[_e][me];if(be===3)me=me-2;else if(be===2)me=me-1;else break}while(me>=1);Be>1&&J[se+_e-1]===le[fe+ke-1]&&!ce(me+fe-1,de,le)&&Be+1>U[_e][me]&&(me=ke),me===ke?Be++:Be=1,De||(De=me),_e--,ke=me-1,We.push(ke)}Se===Ce&&ve.boostFullMatch&&(We[0]+=2);const Ne=De-Ce;return We[0]-=Ne,We}function ae($,J,se,de,le,fe){let ve=$-1,Ce=J-1;for(;ve>=se&&Ce>=de;)le[ve]===fe[Ce]&&(K[ve]=Ce,ve--),Ce--}function oe($,J,se,de,le,fe,ve,Ce,Se,_e,ke){if(J[se]!==fe[ve])return Number.MIN_SAFE_INTEGER;let Ee=1,Ae=!1;return ve===se-de?Ee=$[se]===le[ve]?7:5:ce(ve,le,fe)&&(ve===0||!ce(ve-1,le,fe))?(Ee=$[se]===le[ve]?7:5,Ae=!0):Z(fe,ve)&&(ve===0||!Z(fe,ve-1))?Ee=5:(Z(fe,ve-1)||re(fe,ve-1))&&(Ee=5,Ae=!0),Ee>1&&se===de&&(ke[0]=!0),Ae||(Ae=ce(ve,le,fe)||Z(fe,ve-1)||re(fe,ve-1)),se===de?ve>Se&&(Ee-=Ae?3:5):_e?Ee+=Ae?2:0:Ee+=Ae?0:1,ve+1===Ce&&(Ee-=Ae?3:5),Ee}function B($,J,se,de,le,fe,ve){return q($,J,se,de,le,fe,!0,ve)}function q($,J,se,de,le,fe,ve,Ce){let Se=X($,J,se,de,le,fe,Ce);if(Se&&!ve)return Se;if($.length>=3){const _e=Math.min(7,$.length-1);for(let ke=se+1;ke<_e;ke++){const Ee=V($,ke);if(Ee){const Ae=X(Ee,Ee.toLowerCase(),se,de,le,fe,Ce);Ae&&(Ae[0]-=3,(!Se||Ae[0]>Se[0])&&(Se=Ae))}}}return Se}function V($,J){if(J+1>=$.length)return;const se=$[J],de=$[J+1];if(se!==de)return $.slice(0,J)+de+se+$.slice(J+2)}}),define(ie[125],ne([1,0,12]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringSHA1=void 0,e.hash=k,e.doHash=E,e.numberHash=D,e.stringHash=p,e.toHexString=i;function k(n){return E(n,0)}function E(n,c){switch(typeof n){case"object":return n===null?D(349,c):Array.isArray(n)?w(n,c):b(n,c);case"string":return p(n,c);case"boolean":return y(n,c);case"number":return D(n,c);case"undefined":return D(937,c);default:return D(617,c)}}function D(n,c){return(c<<5)-c+n|0}function y(n,c){return D(n?433:863,c)}function p(n,c){c=D(149417,c);for(let m=0,u=n.length;m<u;m++)c=D(n.charCodeAt(m),c);return c}function w(n,c){return c=D(104579,c),n.reduce((m,u)=>E(u,m),c)}function b(n,c){return c=D(181387,c),Ob
`),split:o=>o.split(`\r
`),parse:o=>e.UriList.split(o).filter(s=>!s.startsWith("#"))})}),define(ie[294],ne([11]),{}),define(ie[437],ne([11]),{}),define(ie[438],ne([11]),{}),define(ie[439],ne([11]),{}),define(ie[440],ne([11]),{}),define(ie[190],ne([1,0,439,440]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),define(ie[441],ne([11]),{}),define(ie[442],ne([11]),{}),define(ie[295],ne([11]),{}),define(ie[296],ne([11]),{}),define(ie[443],ne([11]),{}),define(ie[444],ne([11]),{}),define(ie[445],ne([11]),{}),define(ie[446],ne([11]),{}),define(ie[297],ne([11]),{}),define(ie[447],ne([11]),{}),define(ie[219],ne([1,0,447]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME=void 0,e.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME="monaco-mouse-cursor-text"}),define(ie[448],ne([11]),{}),define(ie[449],ne([11]),{}),define(ie[450],ne([11]),{}),define(ie[451],ne([11]),{}),define(ie[452],ne([11]),{}),define(ie[453],ne([11]),{}),define(ie[454],ne([11]),{}),define(ie[455],ne([11]),{}),define(ie[456],ne([11]),{}),define(ie[457],ne([11]),{}),define(ie[458],ne([11]),{}),define(ie[459],ne([11]),{}),define(ie[460],ne([11]),{}),define(ie[461],ne([11]),{}),define(ie[462],ne([11]),{}),define(ie[463],ne([11]),{}),define(ie[464],ne([11]),{}),define(ie[465],ne([11]),{}),define(ie[466],ne([11]),{}),define(ie[467],ne([11]),{}),define(ie[468],ne([11]),{}),define(ie[469],ne([11]),{}),define(ie[470],ne([11]),{}),define(ie[471],ne([11]),{}),define(ie[472],ne([11]),{}),define(ie[473],ne([11]),{}),define(ie[474],ne([11]),{}),define(ie[475],ne([11]),{}),define(ie[476],ne([11]),{}),define(ie[477],ne([11]),{}),define(ie[478],ne([11]),{}),define(ie[479],ne([11]),{}),define(ie[480],ne([11]),{}),define(ie[481],ne([11]),{}),define(ie[482],ne([11]),{}),define(ie[483],ne([11]),{}),define(ie[484],ne([11]),{}),define(ie[485],ne([11]),{}),define(ie[220],ne([11]),{}),define(ie[486],ne([11]),{}),define(ie[487],ne([11]),{}),define(ie[488],ne([11]),{}),define(ie[489],ne([11]),{}),define(ie[490],ne([11]),{}),define(ie[491],ne([11]),{}),define(ie[492],ne([11]),{}),define(ie[493],ne([11]),{}),define(ie[221],ne([11]),{}),define(ie[494],ne([11]),{}),define(ie[495],ne([11]),{}),define(ie[496],ne([11]),{}),define(ie[497],ne([11]),{}),define(ie[498],ne([11]),{}),define(ie[499],ne([11]),{}),define(ie[500],ne([11]),{}),define(ie[501],ne([11]),{}),define(ie[502],ne([11]),{}),define(ie[503],ne([11]),{}),define(ie[504],ne([11]),{}),define(ie[505],ne([11]),{}),define(ie[506],ne([11]),{}),define(ie[507],ne([11]),{}),define(ie[508],ne([11]),{}),define(ie[509],ne([11]),{}),define(ie[510],ne([11]),{}),define(ie[511],ne([11]),{}),define(ie[512],ne([11]),{}),define(ie[513],ne([11]),{}),define(ie[514],ne([11]),{}),define(ie[515],ne([11]),{}),define(ie[516],ne([11]),{}),define(ie[517],ne([11]),{}),define(ie[298],ne([11]),{}),define(ie[518],ne([11]),{}),define(ie[519],ne([11]),{}),define(ie[222],ne([11]),{}),define(ie[520],ne([11]),{}),define(ie[71],ne([1,0,40]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyFontInfo=k;function k(E,D){E instanceof f.FastDomNode?(E.setFontFamily(D.getMassagedFontFamily()),E.setFontWeight(D.fontWeight),E.setFontSize(D.fontSize),E.setFontFeatureSettings(D.fontFeatureSettings),E.setFontVariationSettings(D.fontVariationSettings),E.setLineHeight(D.lineHeight),E.setLetterSpacing(D.letterSpacing)):(E.style.fontFamily=D.getMassagedFontFamily(),E.style.fontWeight=D.fontWeight,E.style.fontSize=D.fontSize+"px",E.style.fontFeatureSettings=D.fontFeatureSettings,E.style.fontVariationSettings=D.fontVariationSettings,E.style.lineHeight=D.lineHeight+"px",E.style.letterSpacing=D.letterSpacing+"px")}}),define(ie[521],ne([1,0,71]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CharWidthRequest=void 0,e.readCharWidths=D;class k{constructor(p,w){this.chr=p,this.type=w,this.width=0}fulfill(p){this.width=p}}e.CharWidthRequest=k;class E{constructor(p,w){this._bareFontInfo=p,this._requests=w,this._container=null,this._testElements=null}read(p){this._createDomElements(),
`,o+1))!==-1;)C++;return[p,b*w.length,C]}static deduceInput(p,w,b){if(!p)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};e._debugComposition&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${p.toString()}`),console.log(`CURRENT STATE: ${w.toString()}`));const C=Math.min(f.commonPrefixLength(p.value,w.value),p.selectionStart,w.selectionStart),o=Math.min(f.commonSuffixLength(p.value,w.value),p.value.length-p.selectionEnd,w.value.length-w.selectionEnd),s=p.value.substring(C,p.value.length-o),i=w.value.substring(C,w.value.length-o),t=p.selectionStart-C,n=p.selectionEnd-C,c=w.selectionStart-C,m=w.selectionEnd-C;if(e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${s}>, selectionStart: ${t}, selectionEnd: ${n}`),console.log(`AFTER DIFFING CURRENT STATE: <${i}>, selectionStart: ${c}, selectionEnd: ${m}`)),c===m){const r=p.selectionStart-C;return e._debugComposition&&console.log(`REMOVE PREVIOUS: ${r} chars`),{text:i,replacePrevCharCnt:r,replaceNextCharCnt:0,positionDelta:0}}const u=n-t;return{text:i,replacePrevCharCnt:u,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(p,w){if(!p)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(e._debugComposition&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${p.toString()}`),console.log(`CURRENT STATE: ${w.toString()}`)),p.value===w.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:w.selectionEnd-p.selectionEnd};const b=Math.min(f.commonPrefixLength(p.value,w.value),p.selectionEnd),C=Math.min(f.commonSuffixLength(p.value,w.value),p.value.length-p.selectionEnd),o=p.value.substring(b,p.value.length-C),s=w.value.substring(b,w.value.length-C),i=p.selectionStart-b,t=p.selectionEnd-b,n=w.selectionStart-b,c=w.selectionEnd-b;return e._debugComposition&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${o}>, selectionStart: ${i}, selectionEnd: ${t}`),console.log(`AFTER DIFFING CURRENT STATE: <${s}>, selectionStart: ${n}, selectionEnd: ${c}`)),{text:s,replacePrevCharCnt:t,replaceNextCharCnt:o.length-t,positionDelta:c-s.length}}}e.TextAreaState=E,E.EMPTY=new E("",0,0,null,void 0);class D{static _getPageOfLine(p,w){return Math.floor((p-1)/w)}static _getRangeForPage(p,w){const b=p*w,C=b+1,o=b+w;return new k.Range(C,1,o+1,1)}static fromEditorSelection(p,w,b,C){const s=D._getPageOfLine(w.startLineNumber,b),i=D._getRangeForPage(s,b),t=D._getPageOfLine(w.endLineNumber,b),n=D._getRangeForPage(t,b);let c=i.intersectRanges(new k.Range(1,1,w.startLineNumber,w.startColumn));if(C&&p.getValueLengthInRange(c,1)>500){const g=p.modifyPosition(c.getEndPosition(),-500);c=k.Range.fromPositions(g,c.getEndPosition())}const m=p.getValueInRange(c,1),u=p.getLineCount(),r=p.getLineMaxColumn(u);let a=n.intersectRanges(new k.Range(w.endLineNumber,w.endColumn,u,r));if(C&&p.getValueLengthInRange(a,1)>500){const g=p.modifyPosition(a.getStartPosition(),500);a=k.Range.fromPositions(a.getStartPosition(),g)}const h=p.getValueInRange(a,1);let l;if(s===t||s+1===t)l=p.getValueInRange(w,1);else{const g=i.intersectRanges(w),d=n.intersectRanges(w);l=p.getValueInRange(g,1)+"\u2026"+p.getValueInRange(d,1)}return C&&l.length>2*500&&(l=l.substring(0,500)+"\u2026"+l.substring(l.length-500,l.length)),new E(m+l+h,m.length,m.length+l.length,w,c.endLineNumber-c.startLineNumber)}}e.PagedScreenReaderStrategy=D}),define(ie[72],ne([1,0,5]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditOperation=void 0;class k{static insert(D,y){return{range:new f.Range(D.lineNumber,D.column,D.lineNumber,D.column),text:y,forceMoveMarkers:!0}}static delete(D){return{range:D,text:null}}static replace(D,y){return{range:D,text:y}}static replaceMove(D,y){return{range:D,text:y,forceMoveMarkers:!0}}}e.EditOperation=k}),define(ie[531],ne([1,0,12,72,5]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrimTrailingWhitespaceCommand=void 0,e.trimTrailingWhitespace=y;class D{constructor(w,b,C){this._selection
`?(p++,w=0):w++;return new E(p,w)}constructor(y,p){this.lineCount=y,this.columnCount=p}isGreaterThanOrEqualTo(y){return this.lineCount!==y.lineCount?this.lineCount>y.lineCount:this.columnCount>=y.columnCount}createRange(y){return this.lineCount===0?new k.Range(y.lineNumber,y.column,y.lineNumber,y.column+this.columnCount):new k.Range(y.lineNumber,y.column,y.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(y){return this.lineCount===0?new f.Position(y.lineNumber,y.column+this.columnCount):new f.Position(y.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}e.TextLength=E,E.zero=new E(0,0)}),define(ie[533],ne([1,0,65,108]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PositionOffsetTransformer=void 0;class E{constructor(y){this.text=y,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let p=0;p<y.length;p++)y.charAt(p)===`
`&&this.lineStartOffsetByLineIdx.push(p+1)}getOffset(y){return this.lineStartOffsetByLineIdx[y.lineNumber-1]+y.column-1}getOffsetRange(y){return new f.OffsetRange(this.getOffset(y.getStartPosition()),this.getOffset(y.getEndPosition()))}get textLength(){const y=this.lineStartOffsetByLineIdx.length-1;return new k.TextLength(y,this.text.length-this.lineStartOffsetByLineIdx[y])}}e.PositionOffsetTransformer=E}),define(ie[109],ne([1,0,87,10,9,533,5,108]),function(Q,e,f,k,E,D,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringText=e.AbstractText=e.SingleTextEdit=e.TextEdit=void 0;class w{constructor(t){this.edits=t,(0,f.assertFn)(()=>(0,f.checkAdjacentItems)(t,(n,c)=>n.range.getEndPosition().isBeforeOrEqual(c.range.getStartPosition())))}apply(t){let n="",c=new E.Position(1,1);for(const u of this.edits){const r=u.range,a=r.getStartPosition(),h=r.getEndPosition(),l=C(c,a);l.isEmpty()||(n+=t.getValueOfRange(l)),n+=u.text,c=h}const m=C(c,t.endPositionExclusive);return m.isEmpty()||(n+=t.getValueOfRange(m)),n}applyToString(t){const n=new s(t);return this.apply(n)}getNewRanges(){const t=[];let n=0,c=0,m=0;for(const u of this.edits){const r=p.TextLength.ofText(u.text),a=E.Position.lift({lineNumber:u.range.startLineNumber+c,column:u.range.startColumn+(u.range.startLineNumber===n?m:0)}),h=r.createRange(a);t.push(h),c=h.endLineNumber-u.range.endLineNumber,m=h.endColumn-u.range.endColumn,n=u.range.endLineNumber}return t}}e.TextEdit=w;class b{constructor(t,n){this.range=t,this.text=n}}e.SingleTextEdit=b;function C(i,t){if(i.lineNumber===t.lineNumber&&i.column===Number.MAX_SAFE_INTEGER)return y.Range.fromPositions(t,t);if(!i.isBeforeOrEqual(t))throw new k.BugIndicatingError("start must be before end");return new y.Range(i.lineNumber,i.column,t.lineNumber,t.column)}class o{get endPositionExclusive(){return this.length.addToPosition(new E.Position(1,1))}}e.AbstractText=o;class s extends o{constructor(t){super(),this.value=t,this._t=new D.PositionOffsetTransformer(this.value)}getValueOfRange(t){return this._t.getOffsetRange(t).substring(this.value)}get length(){return this._t.textLength}}e.StringText=s}),define(ie[191],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EDITOR_MODEL_DEFAULTS=void 0,e.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}}),define(ie[161],ne([1,0,45,139]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordCharacterClassifier=void 0,e.getMapForWordSeparators=y;class E extends k.CharacterClassifier{constructor(w,b){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=b,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let C=0,o=w.length;C<o;C++)this.set(w.charCodeAt(C),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(w,b){let C=null;for(const o of this._getIntlSegmenterWordsOnLine(w)){if(o.index>b)break;C=o}return C}findNextIntlWordAtOrAfterOffset(w,b){for(const C of this._getIntlSegmenterWordsOnLine(w))if(!(C.index<b))return C;return null}_getIntlSegmenterWordsOnLine(w){return this._segmenter?this._cachedLine===w?this._cachedSegments:(this._cachedLine=w,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(w)),this._cachedSegments):[]}_filterWordSegments(w){const b=[];for(const C of w)this._isWordLike(C)&&b.push(C);return b}_isWordLike(w){return!!w.isWordLike}}e.WordCharacterClassifier=E;const D=new f.LRUCache(10);function y(p,w){const b=`${p}/${w.join(",")}`;let C=D.get(b);return C||(C=new E(p,w),D.set(b,C)),C}}),define(ie[162],ne([1,0,54,70]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_WORD_REGEXP=e.USUAL_WORD_SEPARATORS=void 0,e.ensureValidWordDefinition=D,e.getWordAtText=p,e.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function E
`)}isStronglyEqual(D,y){return this.lines[D]===this.lines[y]}}e.LineSequence=f;function k(E){let D=0;for(;D<E.length&&(E.charCodeAt(D)===32||E.charCodeAt(D)===9);)D++;return D}}),define(ie[225],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineRangeFragment=e.Array2D=void 0,e.isSpace=k;class f{constructor(y,p){this.width=y,this.height=p,this.array=[],this.array=new Array(y*p)}get(y,p){return this.array[y+p*this.width]}set(y,p,w){this.array[y+p*this.width]=w}}e.Array2D=f;function k(D){return D===32||D===9}class E{static getKey(y){let p=this.chrKeys.get(y);return p===void 0&&(p=this.chrKeys.size,this.chrKeys.set(y,p)),p}constructor(y,p,w){this.range=y,this.lines=p,this.source=w,this.histogram=[];let b=0;for(let C=y.startLineNumber-1;C<y.endLineNumberExclusive-1;C++){const o=p[C];for(let i=0;i<o.length;i++){b++;const t=o[i],n=E.getKey(t);this.histogram[n]=(this.histogram[n]||0)+1}b++;const s=E.getKey(`
`);this.histogram[s]=(this.histogram[s]||0)+1}this.totalCount=b}computeSimilarity(y){var p,w;let b=0;const C=Math.max(this.histogram.length,y.histogram.length);for(let o=0;o<C;o++)b+=Math.abs(((p=this.histogram[o])!==null&&p!==void 0?p:0)-((w=y.histogram[o])!==null&&w!==void 0?w:0));return 1-b/(this.totalCount+y.totalCount)}}e.LineRangeFragment=E,E.chrKeys=new Map}),define(ie[536],ne([1,0,65,163,225]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicProgrammingDiffing=void 0;class D{compute(p,w,b=k.InfiniteTimeout.instance,C){if(p.length===0||w.length===0)return k.DiffAlgorithmResult.trivial(p,w);const o=new E.Array2D(p.length,w.length),s=new E.Array2D(p.length,w.length),i=new E.Array2D(p.length,w.length);for(let a=0;a<p.length;a++)for(let h=0;h<w.length;h++){if(!b.isValid())return k.DiffAlgorithmResult.trivialTimedOut(p,w);const l=a===0?0:o.get(a-1,h),g=h===0?0:o.get(a,h-1);let d;p.getElement(a)===w.getElement(h)?(a===0||h===0?d=0:d=o.get(a-1,h-1),a>0&&h>0&&s.get(a-1,h-1)===3&&(d+=i.get(a-1,h-1)),d+=C?C(a,h):1):d=-1;const v=Math.max(l,g,d);if(v===d){const _=a>0&&h>0?i.get(a-1,h-1):0;i.set(a,h,_+1),s.set(a,h,3)}else v===l?(i.set(a,h,0),s.set(a,h,1)):v===g&&(i.set(a,h,0),s.set(a,h,2));o.set(a,h,v)}const t=[];let n=p.length,c=w.length;function m(a,h){(a+1!==n||h+1!==c)&&t.push(new k.SequenceDiff(new f.OffsetRange(a+1,n),new f.OffsetRange(h+1,c))),n=a,c=h}let u=p.length-1,r=w.length-1;for(;u>=0&&r>=0;)s.get(u,r)===3?(m(u,r),u--,r--):s.get(u,r)===1?u--:r--;return m(-1,-1),t.reverse(),new k.DiffAlgorithmResult(t,!1)}}e.DynamicProgrammingDiffing=D}),define(ie[307],ne([1,0,67,65,9,5,225]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinesSliceCharSequence=void 0;class p{constructor(i,t,n){this.lines=i,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let c=!1;t.start>0&&t.endExclusive>=i.length&&(t=new k.OffsetRange(t.start-1,t.endExclusive),c=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let m=this.lineRange.start;m<this.lineRange.endExclusive;m++){let u=i[m],r=0;if(c)r=u.length,u="",c=!1;else if(!n){const a=u.trimStart();r=u.length-a.length,u=a.trimEnd()}this.additionalOffsetByLine.push(r);for(let a=0;a<u.length;a++)this.elements.push(u.charCodeAt(a));m<i.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[m-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new k.OffsetRange(0,this.length))}getText(i){return this.elements.slice(i.start,i.endExclusive).map(t=>String.fromCharCode(t)).join("")}getElement(i){return this.elements[i]}get length(){return this.elements.length}getBoundaryScore(i){const t=o(i>0?this.elements[i-1]:-1),n=o(i<this.elements.length?this.elements[i]:-1);if(t===7&&n===8)return 0;if(t===8)return 150;let c=0;return t!==n&&(c+=10,t===0&&n===1&&(c+=1)),c+=C(t),c+=C(n),c}translateOffset(i){if(this.lineRange.isEmpty)return new E.Position(this.lineRange.start+1,1);const t=(0,f.findLastIdxMonotonous)(this.firstCharOffsetByLine,n=>n<=i);return new E.Position(this.lineRange.start+t+1,i-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(i){return D.Range.fromPositions(this.translateOffset(i.start),this.translateOffset(i.endExclusive))}findWordContaining(i){if(i<0||i>=this.elements.length||!w(this.elements[i]))return;let t=i;for(;t>0&&w(this.elements[t-1]);)t--;let n=i;for(;n<this.elements.length&&w(this.elements[n]);)n++;return new k.OffsetRange(t,n)}countLinesIn(i){return this.translateOffset(i.endExclusive).lineNumber-this.translateOffset(i.start).lineNumber}isStronglyEqual(i,t){return this.elements[i]===this.elements[t]}extendToFullLines(i){var t,n;const c=(t=(0,f.findLastMonotonous)(this.firstCharOffsetByLine,u=>u<=i.start))!==null&&t!==void 0?t:0,m=(n=(0,f.findFirstMonotonous)(this.firstCharOffsetByLine,u=>i.endExclusive<=u))!==null&&n!==void 0?n:this.elements.length;return new k.OffsetRange(c,m)}}e.LinesSliceCharSequence
`).length>=15&&i(T,A=>A.length>=2)>=2}),v=u(r,v),v}function i(r,a){let h=0;for(const l of r)a(l)&&h++;return h}function t(r,a,h,l){const g=[],d=r.filter(S=>S.modified.isEmpty&&S.original.length>=3).map(S=>new C.LineRangeFragment(S.original,a,S)),v=new Set(r.filter(S=>S.original.isEmpty&&S.modified.length>=3).map(S=>new C.LineRangeFragment(S.modified,h,S))),_=new Set;for(const S of d){let L=-1,I;for(const T of v){const N=S.computeSimilarity(T);N>L&&(L=N,I=T)}if(L>.9&&I&&(v.delete(I),g.push(new k.LineRangeMapping(S.range,I.range)),_.add(S.source),_.add(I.source)),!l.isValid())return{moves:g,excludedChanges:_}}return{moves:g,excludedChanges:_}}function n(r,a,h,l,g,d){const v=[],_=new y.SetMap;for(const N of r)for(let A=N.original.startLineNumber;A<N.original.endLineNumberExclusive-2;A++){const O=`${a[A-1]}:${a[A+1-1]}:${a[A+2-1]}`;_.add(O,{range:new p.LineRange(A,A+3)})}const S=[];r.sort((0,E.compareBy)(N=>N.modified.startLineNumber,E.numberComparator));for(const N of r){let A=[];for(let O=N.modified.startLineNumber;O<N.modified.endLineNumberExclusive-2;O++){const M=`${h[O-1]}:${h[O+1-1]}:${h[O+2-1]}`,R=new p.LineRange(O,O+3),x=[];_.forEach(M,({range:F})=>{for(const H of A)if(H.originalLineRange.endLineNumberExclusive+1===F.endLineNumberExclusive&&H.modifiedLineRange.endLineNumberExclusive+1===R.endLineNumberExclusive){H.originalLineRange=new p.LineRange(H.originalLineRange.startLineNumber,F.endLineNumberExclusive),H.modifiedLineRange=new p.LineRange(H.modifiedLineRange.startLineNumber,R.endLineNumberExclusive),x.push(H);return}const W={modifiedLineRange:R,originalLineRange:F};S.push(W),x.push(W)}),A=x}if(!d.isValid())return[]}S.sort((0,E.reverseOrder)((0,E.compareBy)(N=>N.modifiedLineRange.length,E.numberComparator)));const L=new p.LineRangeSet,I=new p.LineRangeSet;for(const N of S){const A=N.modifiedLineRange.startLineNumber-N.originalLineRange.startLineNumber,O=L.subtractFrom(N.modifiedLineRange),M=I.subtractFrom(N.originalLineRange).getWithDelta(A),R=O.getIntersection(M);for(const x of R.ranges){if(x.length<3)continue;const F=x,W=x.delta(-A);v.push(new k.LineRangeMapping(W,F)),L.addRange(F),I.addRange(W)}}v.sort((0,E.compareBy)(N=>N.original.startLineNumber,E.numberComparator));const T=new D.MonotonousArray(r);for(let N=0;N<v.length;N++){const A=v[N],O=T.findLastMonotonous(j=>j.original.startLineNumber<=A.original.startLineNumber),M=(0,D.findLastMonotonous)(r,j=>j.modified.startLineNumber<=A.modified.startLineNumber),R=Math.max(A.original.startLineNumber-O.original.startLineNumber,A.modified.startLineNumber-M.modified.startLineNumber),x=T.findLastMonotonous(j=>j.original.startLineNumber<A.original.endLineNumberExclusive),F=(0,D.findLastMonotonous)(r,j=>j.modified.startLineNumber<A.modified.endLineNumberExclusive),W=Math.max(x.original.endLineNumberExclusive-A.original.endLineNumberExclusive,F.modified.endLineNumberExclusive-A.modified.endLineNumberExclusive);let H;for(H=0;H<R;H++){const j=A.original.startLineNumber-H-1,K=A.modified.startLineNumber-H-1;if(j>l.length||K>g.length||L.contains(K)||I.contains(j)||!c(l[j-1],g[K-1],d))break}H>0&&(I.addRange(new p.LineRange(A.original.startLineNumber-H,A.original.startLineNumber)),L.addRange(new p.LineRange(A.modified.startLineNumber-H,A.modified.startLineNumber)));let z;for(z=0;z<W;z++){const j=A.original.endLineNumberExclusive+z,K=A.modified.endLineNumberExclusive+z;if(j>l.length||K>g.length||L.contains(K)||I.contains(j)||!c(l[j-1],g[K-1],d))break}z>0&&(I.addRange(new p.LineRange(A.original.endLineNumberExclusive,A.original.endLineNumberExclusive+z)),L.addRange(new p.LineRange(A.modified.endLineNumberExclusive,A.modified.endLineNumberExclusive+z))),(H>0||z>0)&&(v[N]=new k.LineRangeMapping(new p.LineRange(A.original.startLineNumber-H,A.original.endLineNumberExclusive+z),new p.LineRange(A.modified.startLineNumber-H,A.modified.endLineNumberExclusive+z)))}return v}function c(r,a,h){if(r.trim()===a.trim())return!0;if(r.length>300&&a.length>300)return!1;const g=new o.MyersDiffAlgorithm().compute(new b.LinesSliceCharSequence([r],new w.OffsetRange(0,1),!1),new b.LinesSliceCharSequenc
* 'to': A mandatory logical position value providing where to move the cursor.
\`\`\`
'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',
'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:o,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","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}}}}]},C.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},C.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function s(i){if(!i.to)return null;let t;switch(i.to){case C.RawDirection.Left:t=0;break;case C.RawDirection.Right:t=1;break;case C.RawDirection.Up:t=2;break;case C.RawDirection.Down:t=3;break;case C.RawDirection.PrevBlankLine:t=4;break;case C.RawDirection.NextBlankLine:t=5;break;case C.RawDirection.WrappedLineStart:t=6;break;case C.RawDirection.WrappedLineFirstNonWhitespaceCharacter:t=7;break;case C.RawDirection.WrappedLineColumnCenter:t=8;break;case C.RawDirection.WrappedLineEnd:t=9;break;case C.RawDirection.WrappedLineLastNonWhitespaceCharacter:t=10;break;case C.RawDirection.ViewPortTop:t=11;break;case C.RawDirection.ViewPortBottom:t=13;break;case C.RawDirection.ViewPortCenter:t=12;break;case C.RawDirection.ViewPortIfOutside:t=14;break;default:return null}let n=0;switch(i.by){case C.RawUnit.Line:n=1;break;case C.RawUnit.WrappedLine:n=2;break;case C.RawUnit.Character:n=3;break;case C.RawUnit.HalfLine:n=4;break}return{direction:t,unit:n,select:!!i.select,value:i.value||1}}C.parse=s})(b||(e.CursorMove=b={}))}),define(ie[544],ne([1,0,79,9,5,24]),function(Q,e,f,k,E,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cursor=void 0;class y{constructor(w){this._selTrackedRange=null,this._trackSelection=!0,this._setState(w,new f.SingleCursorState(new E.Range(1,1,1,1),0,0,new k.Position(1,1),0),new f.SingleCursorState(new E.Range(1,1,1,1),0,0,new k.Position(1,1),0))}dispose(w){this._removeTrackedRange(w)}startTrackingSelection(w){this._trackSelection=!0,this._updateTrackedRange(w)}stopTrackingSelection(w){this._trackSelection=!1,this._removeTrackedRange(w)}_updateTrackedRange(w){this._trackSelection&&(this._selTrackedRange=w.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(w){this._selTrackedRange=w.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new f.CursorState(this.modelState,this.viewState)}readSelectionFromMarkers(w){const b=w.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!b.isEmpty()?D.Selection.fromRange(b.collapseToEnd(),this.modelState.selection.getDirection()):D.Selection.fromRange(b,this.modelState.selection.getDirection())}ensureValidState(w){this._setState(w,this.modelState,this.viewState)}setState(w,b,C){this._setState(w,b,C)}static _validatePositionWithCache(w,b,C,o){return b.equals(C)?o:w.normalizePosition(b,2)}static _validateViewState(w,b){const C=b.position,o=b.selectionStart.getStartPosition(),s=b.selectionStart.getEndPosition(),i=w.normalizePosition(C,2),t=this._validatePositionWithCache(w,o,C,i),n=this._validatePositionWithCache(w,s,o,t);return C.equals(i)&&o.equals(t)&&s.equals(n)?b:new f.SingleCursorState(E.Range.fromPositions(t,n),b.selectionStartKind,b.selectionStartLeftoverVisibleColumns+o.column-t.column,i,b.leftoverVisibleColumns+C.column-i.column)}_setState(w,b,C){if(C&&(C=y._validateViewState(w.viewModel,C)),b){const o=w.model.validateRange(b.selectionStart),s=
`,k.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])>
`}),define(ie[547],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentRulesSupport=void 0;function f(E){return E.global&&(E.lastIndex=0),!0}class k{constructor(D){this._indentationRules=D}shouldIncrease(D){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&f(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(D))}shouldDecrease(D){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&f(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(D))}shouldIndentNextLine(D){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&f(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(D))}shouldIgnore(D){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&f(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(D))}getIndentMetadata(D){let y=0;return this.shouldIncrease(D)&&(y+=1),this.shouldDecrease(D)&&(y+=2),this.shouldIndentNextLine(D)&&(y+=4),this.shouldIgnore(D)&&(y+=8),y}}e.IndentRulesSupport=k}),define(ie[548],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicInplaceReplace=void 0;class f{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(E,D,y,p,w){if(E&&D){const b=this.doNavigateValueSet(D,w);if(b)return{range:E,value:b}}if(y&&p){const b=this.doNavigateValueSet(p,w);if(b)return{range:y,value:b}}return null}doNavigateValueSet(E,D){const y=this.numberReplace(E,D);return y!==null?y:this.textReplace(E,D)}numberReplace(E,D){const y=Math.pow(10,E.length-(E.lastIndexOf(".")+1));let p=Number(E);const w=parseFloat(E);return!isNaN(p)&&!isNaN(w)&&p===w?p===0&&!D?null:(p=Math.floor(p*y),p+=D?y:-y,String(p/y)):null}textReplace(E,D){return this.valueSetsReplace(this._defaultValueSet,E,D)}valueSetsReplace(E,D,y){let p=null;for(let w=0,b=E.length;p===null&&w<b;w++)p=this.valueSetReplace(E[w],D,y);return p}valueSetReplace(E,D,y){let p=E.indexOf(D);return p>=0?(p+=y?1:-1,p<0?p=E.length-1:p%=E.length,E[p]):null}}e.BasicInplaceReplace=f,f.INSTANCE=new f}),define(ie[549],ne([1,0,288]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClosingBracketKind=e.OpeningBracketKind=e.BracketKindBase=e.LanguageBracketsConfiguration=void 0;class k{constructor(b,C){this.languageId=b;const o=C.brackets?E(C.brackets):[],s=new f.CachedFunction(n=>{const c=new Set;return{info:new y(this,n,c),closing:c}}),i=new f.CachedFunction(n=>{const c=new Set,m=new Set;return{info:new p(this,n,c,m),opening:c,openingColorized:m}});for(const[n,c]of o){const m=s.get(n),u=i.get(c);m.closing.add(u.info),u.opening.add(m.info)}const t=C.colorizedBracketPairs?E(C.colorizedBracketPairs):o.filter(n=>!(n[0]==="<"&&n[1]===">"));for(const[n,c]of t){const m=s.get(n),u=i.get(c);m.closing.add(u.info),u.openingColorized.add(m.info),u.opening.add(m.info)}this._openingBrackets=new Map([...s.cachedValues].map(([n,c])=>[n,c.info])),this._closingBrackets=new Map([...i.cachedValues].map(([n,c])=>[n,c.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(b){return this._openingBrackets.get(b)}getClosingBracketInfo(b){return this._closingBrackets.get(b)}getBracketInfo(b){return this.getOpeningBracketInfo(b)||this.getClosingBracketInfo(b)}}e.LanguageBracketsConfiguration=k;function E(w){return w.filter(([b,C])=>b!==""&&C!=="")}class D{constructor(b,C){this.config=b,this.bracketText=C}get languageId(){return this.config.languageId}}e.BracketKindBase=D;class y extends D{constructor(b,C,o){super(b,C),this.openedBrackets=o,this.isOpeningBracket=!0}}e.OpeningBracketKind=y;class p extends D{constructor(b,C,o,s){super(b,C),this.openingBrackets=o,this.openingColorizedBra
`)}}),define(ie[42],ne([1,0,55]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplyEditsResult=e.SearchData=e.ValidAnnotatedEditOperation=e.FindMatch=e.TextModelResolvedOptions=e.InjectedTextCursorStops=e.GlyphMarginLane=e.OverviewRulerLane=void 0,e.isITextSnapshot=w,e.shouldSynchronizeModel=s;var k;(function(i){i[i.Left=1]="Left",i[i.Center=2]="Center",i[i.Right=4]="Right",i[i.Full=7]="Full"})(k||(e.OverviewRulerLane=k={}));var E;(function(i){i[i.Left=1]="Left",i[i.Center=2]="Center",i[i.Right=3]="Right"})(E||(e.GlyphMarginLane=E={}));var D;(function(i){i[i.Both=0]="Both",i[i.Right=1]="Right",i[i.Left=2]="Left",i[i.None=3]="None"})(D||(e.InjectedTextCursorStops=D={}));class y{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(t){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,t.tabSize|0),t.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,t.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!t.insertSpaces,this.defaultEOL=t.defaultEOL|0,this.trimAutoWhitespace=!!t.trimAutoWhitespace,this.bracketPairColorizationOptions=t.bracketPairColorizationOptions}equals(t){return this.tabSize===t.tabSize&&this._indentSizeIsTabSize===t._indentSizeIsTabSize&&this.indentSize===t.indentSize&&this.insertSpaces===t.insertSpaces&&this.defaultEOL===t.defaultEOL&&this.trimAutoWhitespace===t.trimAutoWhitespace&&(0,f.equals)(this.bracketPairColorizationOptions,t.bracketPairColorizationOptions)}createChangeEvent(t){return{tabSize:this.tabSize!==t.tabSize,indentSize:this.indentSize!==t.indentSize,insertSpaces:this.insertSpaces!==t.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==t.trimAutoWhitespace}}}e.TextModelResolvedOptions=y;class p{constructor(t,n){this._findMatchBrand=void 0,this.range=t,this.matches=n}}e.FindMatch=p;function w(i){return i&&typeof i.read=="function"}class b{constructor(t,n,c,m,u,r){this.identifier=t,this.range=n,this.text=c,this.forceMoveMarkers=m,this.isAutoWhitespaceEdit=u,this._isTracked=r}}e.ValidAnnotatedEditOperation=b;class C{constructor(t,n,c){this.regex=t,this.wordSeparators=n,this.simpleSearch=c}}e.SearchData=C;class o{constructor(t,n,c){this.reverseEdits=t,this.changes=n,this.trimAutoWhitespaceLineNumbers=c}}e.ApplyEditsResult=o;function s(i){return!i.isTooLargeForSyncing()&&!i.isForSimpleWidget}}),define(ie[101],ne([1,0,12,5,108]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lengthZero=void 0,e.lengthDiff=D,e.lengthIsZero=y,e.toLength=w,e.lengthToObj=b,e.lengthGetLineCount=C,e.lengthGetColumnCountIfZeroLineCount=o,e.lengthAdd=s,e.sumLengths=i,e.lengthEquals=t,e.lengthDiffNonNegative=n,e.lengthLessThan=c,e.lengthLessThanEqual=m,e.lengthGreaterThanEqual=u,e.positionToLength=r,e.lengthsToRange=a,e.lengthOfString=h;function D(l,g,d,v){return l!==d?w(d-l,v):w(0,v-g)}e.lengthZero=0;function y(l){return l===0}const p=2**26;function w(l,g){return l*p+g}function b(l){const g=l,d=Math.floor(g/p),v=g-d*p;return new E.TextLength(d,v)}function C(l){return Math.floor(l/p)}function o(l){return l}function s(l,g){let d=l+g;return g>=p&&(d=d-l%p),d}function i(l,g){return l.reduce((d,v)=>s(d,g(v)),e.lengthZero)}function t(l,g){return l===g}function n(l,g){const d=l,v=g;if(v-d<=0)return e.lengthZero;const S=Math.floor(d/p),L=Math.floor(v/p),I=v-L*p;if(S===L){const T=d-S*p;return w(0,I-T)}else return w(L-S,I)}function c(l,g){return l<g}function m(l,g){return l<=g}function u(l,g){return l>=g}function r(l){return w(l.lineNumber-1,l.column-1)}function a(l,g){const d=l,v=Math.floor(d/p),_=d-v*p,S=g,L=Math.floor(S/p),I=S-L*p;return new k.Range(v+1,_+1,L+1,I+1)}function h(l){const g=(0,f.splitLines)(l);return w(g.length-1,g[g.length-1].length)}}),define(ie[194],ne([1,0,5,101]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BeforeEditPositionMapper=e.TextEditInfo=void 0;class E{static fromModelContentChanges(w){return w.map(C=>{const o=f.Range.lift(C.range);return new E((0,k.positionTo
`,"gi"):null,c=[];let m,u=0,r=0,a=0,h=0;const l=[];for(let v=0;v<60;v++)l.push(new p((0,D.toLength)(0,v),0,-1,y.SmallImmutableSet.getEmpty(),new E.TextAstNode((0,D.toLength)(0,v))));const g=[];for(let v=0;v<60;v++)g.push(new p((0,D.toLength)(1,v),0,-1,y.SmallImmutableSet.getEmpty(),new E.TextAstNode((0,D.toLength)(1,v))));if(n)for(n.lastIndex=0;(m=n.exec(s))!==null;){const v=m.index,_=m[0];if(_===`
`)u++,r=v+1;else{if(a!==v){let S;if(h===u){const L=v-a;if(L<l.length)S=l[L];else{const I=(0,D.toLength)(0,L);S=new p(I,0,-1,y.SmallImmutableSet.getEmpty(),new E.TextAstNode(I))}}else{const L=u-h,I=v-r;if(L===1&&I<g.length)S=g[I];else{const T=(0,D.toLength)(L,I);S=new p(T,0,-1,y.SmallImmutableSet.getEmpty(),new E.TextAstNode(T))}}c.push(S)}c.push(i.getToken(_)),a=v+_.length,h=u}}const d=s.length;if(a!==d){const v=h===u?(0,D.toLength)(0,d-a):(0,D.toLength)(u-h,d-r);c.push(new p(v,0,-1,y.SmallImmutableSet.getEmpty(),new E.TextAstNode(v)))}this.length=(0,D.toLength)(u,d-r),this.tokens=c}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(s){throw new f.NotSupportedError}}e.FastTokenizer=C}),define(ie[312],ne([1,0,12,195,101,145,230]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageAgnosticBracketTokens=e.BracketTokens=void 0;class p{static createFromLanguage(o,s){function i(n){return s.getKey(`${n.languageId}:::${n.bracketText}`)}const t=new Map;for(const n of o.bracketsNew.openingBrackets){const c=(0,E.toLength)(0,n.bracketText.length),m=i(n),u=D.SmallImmutableSet.getEmpty().add(m,D.identityKeyProvider);t.set(n.bracketText,new y.Token(c,1,m,u,k.BracketAstNode.create(c,n,u)))}for(const n of o.bracketsNew.closingBrackets){const c=(0,E.toLength)(0,n.bracketText.length);let m=D.SmallImmutableSet.getEmpty();const u=n.getOpeningBrackets();for(const r of u)m=m.add(i(r),D.identityKeyProvider);t.set(n.bracketText,new y.Token(c,2,i(u[0]),m,k.BracketAstNode.create(c,n,m)))}return new p(t)}constructor(o){this.map=o,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const o=[...this.map.keys()];return o.sort(),o.reverse(),o.map(s=>w(s)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const o=this.getRegExpStr();this._regExpGlobal=o?new RegExp(o,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(o){return this.map.get(o.toLowerCase())}findClosingTokenText(o){for(const[s,i]of this.map)if(i.kind===2&&i.bracketIds.intersects(o))return s}get isEmpty(){return this.map.size===0}}e.BracketTokens=p;function w(C){let o=(0,f.escapeRegExpCharacters)(C);return/^[\w ]+/.test(C)&&(o=`\\b${o}`),/[\w ]+$/.test(C)&&(o=`${o}\\b`),o}class b{constructor(o,s){this.denseKeyProvider=o,this.getLanguageConfiguration=s,this.languageIdToBracketTokens=new Map}didLanguageChange(o){return this.languageIdToBracketTokens.has(o)}getSingleLanguageBracketTokens(o){let s=this.languageIdToBracketTokens.get(o);return s||(s=p.createFromLanguage(this.getLanguageConfiguration(o),this.denseKeyProvider),this.languageIdToBracketTokens.set(o,s)),s}}e.LanguageAgnosticBracketTokens=b}),define(ie[554],ne([1,0,312,101,311,145,230]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fixBracketsInLine=p;function p(b,C){const o=new D.DenseKeyProvider,s=new f.LanguageAgnosticBracketTokens(o,u=>C.getLanguageConfiguration(u)),i=new y.TextBufferTokenizer(new w([b]),s),t=(0,E.parseDocument)(i,[],void 0,!0);let n="";const c=b.getLineContent();function m(u,r){if(u.kind===2)if(m(u.openingBracket,r),r=(0,k.lengthAdd)(r,u.openingBracket.length),u.child&&(m(u.child,r),r=(0,k.lengthAdd)(r,u.child.length)),u.closingBracket)m(u.closingBracket,r),r=(0,k.lengthAdd)(r,u.closingBracket.length);else{const h=s.getSingleLanguageBracketTokens(u.openingBracket.languageId).findClosingTokenText(u.openingBracket.bracketIds);n+=h}else if(u.kind!==3){if(u.kind===0||u.kind===1)n+=c.substring((0,k.lengthGetColumnCountIfZeroLineCount)(r),(0,k.lengthGetColumnCountIfZeroLineCount)((0,k.lengthAdd)(r,u.length)));else if(u.kind===4)for(const a of u.children)m(a,r),r=(0,k.lengthAdd)(r,a.length)}}return m(t,k.lengthZero),n}class w{constructor(C){this.lines=C,this.tokenization={getLineTokens:o=>this.lines[o-1]}}getLineCount(){return this.lines.length}getLineLength(C){return this.lines[C-1].getLineContent().length}}}),define(ie[555],ne([1,0,13]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e
`)>=0;let r=null;try{r=f.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:u,global:!0,unicode:!0})}catch{return null}if(!r)return null;let a=!this.isRegex&&!u;return a&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(a=this.matchCase),new y.SearchData(r,this.wordSeparators?(0,k.getMapForWordSeparators)(this.wordSeparators,[]):null,a?this.searchString:null)}}e.SearchParams=w;function b(m){if(!m||m.length===0)return!1;for(let u=0,r=m.length;u<r;u++){const a=m.charCodeAt(u);if(a===10)return!0;if(a===92){if(u++,u>=r)break;const h=m.charCodeAt(u);if(h===110||h===114||h===87)return!0}}return!1}function C(m,u,r){if(!r)return new y.FindMatch(m,null);const a=[];for(let h=0,l=u.length;h<l;h++)a[h]=u[h];return new y.FindMatch(m,a)}class o{constructor(u){const r=[];let a=0;for(let h=0,l=u.length;h<l;h++)u.charCodeAt(h)===10&&(r[a++]=h);this._lineFeedsOffsets=r}findLineFeedCountBeforeOffset(u){const r=this._lineFeedsOffsets;let a=0,h=r.length-1;if(h===-1||u<=r[0])return 0;for(;a<h;){const l=a+((h-a)/2>>0);r[l]>=u?h=l-1:r[l+1]>=u?(a=l,h=l):a=l+1}return a+1}}class s{static findMatches(u,r,a,h,l){const g=r.parseSearchRequest();return g?g.regex.multiline?this._doFindMatchesMultiline(u,a,new c(g.wordSeparators,g.regex),h,l):this._doFindMatchesLineByLine(u,a,g,h,l):[]}static _getMultilineMatchRange(u,r,a,h,l,g){let d,v=0;h?(v=h.findLineFeedCountBeforeOffset(l),d=r+l+v):d=r+l;let _;if(h){const T=h.findLineFeedCountBeforeOffset(l+g.length)-v;_=d+g.length+T}else _=d+g.length;const S=u.getPositionAt(d),L=u.getPositionAt(_);return new D.Range(S.lineNumber,S.column,L.lineNumber,L.column)}static _doFindMatchesMultiline(u,r,a,h,l){const g=u.getOffsetAt(r.getStartPosition()),d=u.getValueInRange(r,1),v=u.getEOL()===`\r
`?new o(d):null,_=[];let S=0,L;for(a.reset(0);L=a.next(d);)if(_[S++]=C(this._getMultilineMatchRange(u,g,d,v,L.index,L[0]),L,h),S>=l)return _;return _}static _doFindMatchesLineByLine(u,r,a,h,l){const g=[];let d=0;if(r.startLineNumber===r.endLineNumber){const _=u.getLineContent(r.startLineNumber).substring(r.startColumn-1,r.endColumn-1);return d=this._findMatchesInLine(a,_,r.startLineNumber,r.startColumn-1,d,g,h,l),g}const v=u.getLineContent(r.startLineNumber).substring(r.startColumn-1);d=this._findMatchesInLine(a,v,r.startLineNumber,r.startColumn-1,d,g,h,l);for(let _=r.startLineNumber+1;_<r.endLineNumber&&d<l;_++)d=this._findMatchesInLine(a,u.getLineContent(_),_,0,d,g,h,l);if(d<l){const _=u.getLineContent(r.endLineNumber).substring(0,r.endColumn-1);d=this._findMatchesInLine(a,_,r.endLineNumber,0,d,g,h,l)}return g}static _findMatchesInLine(u,r,a,h,l,g,d,v){const _=u.wordSeparators;if(!d&&u.simpleSearch){const I=u.simpleSearch,T=I.length,N=r.length;let A=-T;for(;(A=r.indexOf(I,A+T))!==-1;)if((!_||n(_,r,N,A,T))&&(g[l++]=new y.FindMatch(new D.Range(a,A+1+h,a,A+1+T+h),null),l>=v))return l;return l}const S=new c(u.wordSeparators,u.regex);let L;S.reset(0);do if(L=S.next(r),L&&(g[l++]=C(new D.Range(a,L.index+1+h,a,L.index+1+L[0].length+h),L,d),l>=v))return l;while(L);return l}static findNextMatch(u,r,a,h){const l=r.parseSearchRequest();if(!l)return null;const g=new c(l.wordSeparators,l.regex);return l.regex.multiline?this._doFindNextMatchMultiline(u,a,g,h):this._doFindNextMatchLineByLine(u,a,g,h)}static _doFindNextMatchMultiline(u,r,a,h){const l=new E.Position(r.lineNumber,1),g=u.getOffsetAt(l),d=u.getLineCount(),v=u.getValueInRange(new D.Range(l.lineNumber,l.column,d,u.getLineMaxColumn(d)),1),_=u.getEOL()===`\r
`?new o(v):null;a.reset(r.column-1);const S=a.next(v);return S?C(this._getMultilineMatchRange(u,g,v,_,S.index,S[0]),S,h):r.lineNumber!==1||r.column!==1?this._doFindNextMatchMultiline(u,new E.Position(1,1),a,h):null}static _doFindNextMatchLineByLine(u,r,a,h){const l=u.getLineCount(),g=r.lineNumber,d=u.getLineContent(g),v=this._findFirstMatchInLine(a,d,g,r.column,h);if(v)return v;for(let _=1;_<=l;_++){const S=(g+_-1)%l,L=u.getLineContent(S+1),I=this._findFirstMatchInLine(a,L,S+1,1,h);if(I)return I}return null}static _findFirstMatchInLine(u,r,a,h,l){u.reset(h-1);const g=u.next(r);return g?C(new D.Range(a,g.index+1,a,g.index+1+g[0].length),g,l):null}static findPreviousMatch(u,r,a,h){const l=r.parseSearchRequest();if(!l)return null;const g=new c(l.wordSeparators,l.regex);return l.regex.multiline?this._doFindPreviousMatchMultiline(u,a,g,h):this._doFindPreviousMatchLineByLine(u,a,g,h)}static _doFindPreviousMatchMultiline(u,r,a,h){const l=this._doFindMatchesMultiline(u,new D.Range(1,1,r.lineNumber,r.column),a,h,10*p);if(l.length>0)return l[l.length-1];const g=u.getLineCount();return r.lineNumber!==g||r.column!==u.getLineMaxColumn(g)?this._doFindPreviousMatchMultiline(u,new E.Position(g,u.getLineMaxColumn(g)),a,h):null}static _doFindPreviousMatchLineByLine(u,r,a,h){const l=u.getLineCount(),g=r.lineNumber,d=u.getLineContent(g).substring(0,r.column-1),v=this._findLastMatchInLine(a,d,g,h);if(v)return v;for(let _=1;_<=l;_++){const S=(l+g-_-1)%l,L=u.getLineContent(S+1),I=this._findLastMatchInLine(a,L,S+1,h);if(I)return I}return null}static _findLastMatchInLine(u,r,a,h){let l=null,g;for(u.reset(0);g=u.next(r);)l=C(new D.Range(a,g.index+1,a,g.index+1+g[0].length),g,h);return l}}e.TextModelSearch=s;function i(m,u,r,a,h){if(a===0)return!0;const l=u.charCodeAt(a-1);if(m.get(l)!==0||l===13||l===10)return!0;if(h>0){const g=u.charCodeAt(a);if(m.get(g)!==0)return!0}return!1}function t(m,u,r,a,h){if(a+h===r)return!0;const l=u.charCodeAt(a+h);if(m.get(l)!==0||l===13||l===10)return!0;if(h>0){const g=u.charCodeAt(a+h-1);if(m.get(g)!==0)return!0}return!1}function n(m,u,r,a,h){return i(m,u,r,a,h)&&t(m,u,r,a,h)}class c{constructor(u,r){this._wordSeparators=u,this._searchRegex=r,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(u){this._searchRegex.lastIndex=u,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(u){const r=u.length;let a;do{if(this._prevMatchStartIndex+this._prevMatchLength===r||(a=this._searchRegex.exec(u),!a))return null;const h=a.index,l=a[0].length;if(h===this._prevMatchStartIndex&&l===this._prevMatchLength){if(l===0){f.getNextCodePoint(u,r,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=h,this._prevMatchLength=l,!this._wordSeparators||n(this._wordSeparators,u,r,h,l))return a}while(a);return null}}e.Searcher=c}),define(ie[315],ne([1,0,9,5,42,558,196]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieceTreeBase=e.StringBuffer=e.Piece=void 0,e.createLineStartsFast=C,e.createLineStarts=o;const p=65535;function w(m){let u;return m[m.length-1]<65536?u=new Uint16Array(m.length):u=new Uint32Array(m.length),u.set(m,0),u}class b{constructor(u,r,a,h,l){this.lineStarts=u,this.cr=r,this.lf=a,this.crlf=h,this.isBasicASCII=l}}function C(m,u=!0){const r=[0];let a=1;for(let h=0,l=m.length;h<l;h++){const g=m.charCodeAt(h);g===13?h+1<l&&m.charCodeAt(h+1)===10?(r[a++]=h+2,h++):r[a++]=h+1:g===10&&(r[a++]=h+1)}return u?w(r):r}function o(m,u){m.length=0,m[0]=0;let r=1,a=0,h=0,l=0,g=!0;for(let v=0,_=u.length;v<_;v++){const S=u.charCodeAt(v);S===13?v+1<_&&u.charCodeAt(v+1)===10?(l++,m[r++]=v+2,v++):(a++,m[r++]=v+1):S===10?(h++,m[r++]=v+1):g&&S!==9&&(S<32||S>126)&&(g=!1)}const d=new b(w(m),a,h,l,g);return m.length=0,d}class s{constructor(u,r,a,h,l){this.bufferIndex=u,this.start=r,this.end=a,this.lineFeedCnt=h,this.length=l}}e.Piece=s;class i{constructor(u,r){this.buffer=u,this.lineStarts=r}}e.StringBuffer=i;class t{constructor(u,r){this._pieces=[],this._tree=u,this._BOM=r,this._index=0,u.root!==D.SENTI
`}if(this.shouldCheckCRLF()&&this.startWithLF(r))if(this.nodeCharCodeAt(h,l-1)===13){const A=this.positionInBuffer(h,l-1);this.deleteNodeTail(h,A),r="\r"+r,h.piece.length===0&&S.push(h)}else this.deleteNodeTail(h,_);else this.deleteNodeTail(h,_);const I=this.createNewPieces(r);L.length>0&&this.rbInsertRight(h,L);let T=h;for(let N=0;N<I.length;N++)T=this.rbInsertRight(T,I[N]);this.deleteNodes(S)}else this.insertContentToNodeRight(r,h)}else{const h=this.createNewPieces(r);let l=this.rbInsertLeft(null,h[0]);for(let g=1;g<h.length;g++)l=this.rbInsertRight(l,h[g])}this.computeBufferMetadata()}delete(u,r){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",r<=0||this.root===D.SENTINEL)return;const a=this.nodeAt(u),h=this.nodeAt(u+r),l=a.node,g=h.node;if(l===g){const I=this.positionInBuffer(l,a.remainder),T=this.positionInBuffer(l,h.remainder);if(a.nodeStartOffset===u){if(r===l.piece.length){const N=l.next();(0,D.rbDelete)(this,l),this.validateCRLFWithPrevNode(N),this.computeBufferMetadata();return}this.deleteNodeHead(l,T),this._searchCache.validate(u),this.validateCRLFWithPrevNode(l),this.computeBufferMetadata();return}if(a.nodeStartOffset+l.piece.length===u+r){this.deleteNodeTail(l,I),this.validateCRLFWithNextNode(l),this.computeBufferMetadata();return}this.shrinkNode(l,I,T),this.computeBufferMetadata();return}const d=[],v=this.positionInBuffer(l,a.remainder);this.deleteNodeTail(l,v),this._searchCache.validate(u),l.piece.length===0&&d.push(l);const _=this.positionInBuffer(g,h.remainder);this.deleteNodeHead(g,_),g.piece.length===0&&d.push(g);const S=l.next();for(let I=S;I!==D.SENTINEL&&I!==g;I=I.next())d.push(I);const L=l.piece.length===0?l.prev():l;this.deleteNodes(d),this.validateCRLFWithNextNode(L),this.computeBufferMetadata()}insertContentToNodeLeft(u,r){const a=[];if(this.shouldCheckCRLF()&&this.endWithCR(u)&&this.startWithLF(r)){const g=r.piece,d={line:g.start.line+1,column:0},v=new s(g.bufferIndex,d,g.end,this.getLineFeedCnt(g.bufferIndex,d,g.end),g.length-1);r.piece=v,u+=`
`,(0,D.updateTreeMetadata)(this,r,-1,-1),r.piece.length===0&&a.push(r)}const h=this.createNewPieces(u);let l=this.rbInsertLeft(r,h[h.length-1]);for(let g=h.length-2;g>=0;g--)l=this.rbInsertLeft(l,h[g]);this.validateCRLFWithPrevNode(l),this.deleteNodes(a)}insertContentToNodeRight(u,r){this.adjustCarriageReturnFromNext(u,r)&&(u+=`
`);const a=this.createNewPieces(u),h=this.rbInsertRight(r,a[0]);let l=h;for(let g=1;g<a.length;g++)l=this.rbInsertRight(l,a[g]);this.validateCRLFWithPrevNode(h)}positionInBuffer(u,r,a){const h=u.piece,l=u.piece.bufferIndex,g=this._buffers[l].lineStarts,v=g[h.start.line]+h.start.column+r;let _=h.start.line,S=h.end.line,L=0,I=0,T=0;for(;_<=S&&(L=_+(S-_)/2|0,T=g[L],L!==S);)if(I=g[L+1],v<T)S=L-1;else if(v>=I)_=L+1;else break;return a?(a.line=L,a.column=v-T,null):{line:L,column:v-T}}getLineFeedCnt(u,r,a){if(a.column===0)return a.line-r.line;const h=this._buffers[u].lineStarts;if(a.line===h.length-1)return a.line-r.line;const l=h[a.line+1],g=h[a.line]+a.column;if(l>g+1)return a.line-r.line;const d=g-1;return this._buffers[u].buffer.charCodeAt(d)===13?a.line-r.line+1:a.line-r.line}offsetInBuffer(u,r){return this._buffers[u].lineStarts[r.line]+r.column}deleteNodes(u){for(let r=0;r<u.length;r++)(0,D.rbDelete)(this,u[r])}createNewPieces(u){if(u.length>p){const S=[];for(;u.length>p;){const I=u.charCodeAt(p-1);let T;I===13||I>=55296&&I<=56319?(T=u.substring(0,p-1),u=u.substring(p-1)):(T=u.substring(0,p),u=u.substring(p));const N=C(T);S.push(new s(this._buffers.length,{line:0,column:0},{line:N.length-1,column:T.length-N[N.length-1]},N.length-1,T.length)),this._buffers.push(new i(T,N))}const L=C(u);return S.push(new s(this._buffers.length,{line:0,column:0},{line:L.length-1,column:u.length-L[L.length-1]},L.length-1,u.length)),this._buffers.push(new i(u,L)),S}let r=this._buffers[0].buffer.length;const a=C(u,!1);let h=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===r&&r!==0&&this.startWithLF(u)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},h=this._lastChangeBufferPos;for(let S=0;S<a.length;S++)a[S]+=r+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+="_"+u,r+=1}else{if(r!==0)for(let S=0;S<a.length;S++)a[S]+=r;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+=u}const l=this._buffers[0].buffer.length,g=this._buffers[0].lineStarts.length-1,d=l-this._buffers[0].lineStarts[g],v={line:g,column:d},_=new s(0,h,v,this.getLineFeedCnt(0,h,v),l-r);return this._lastChangeBufferPos=v,[_]}getLineRawContent(u,r=0){let a=this.root,h="";const l=this._searchCache.get2(u);if(l){a=l.node;const g=this.getAccumulatedValue(a,u-l.nodeStartLineNumber-1),d=this._buffers[a.piece.bufferIndex].buffer,v=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);if(l.nodeStartLineNumber+a.piece.lineFeedCnt===u)h=d.substring(v+g,v+a.piece.length);else{const _=this.getAccumulatedValue(a,u-l.nodeStartLineNumber);return d.substring(v+g,v+_-r)}}else{let g=0;const d=u;for(;a!==D.SENTINEL;)if(a.left!==D.SENTINEL&&a.lf_left>=u-1)a=a.left;else if(a.lf_left+a.piece.lineFeedCnt>u-1){const v=this.getAccumulatedValue(a,u-a.lf_left-2),_=this.getAccumulatedValue(a,u-a.lf_left-1),S=this._buffers[a.piece.bufferIndex].buffer,L=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return g+=a.size_left,this._searchCache.set({node:a,nodeStartOffset:g,nodeStartLineNumber:d-(u-1-a.lf_left)}),S.substring(L+v,L+_-r)}else if(a.lf_left+a.piece.lineFeedCnt===u-1){const v=this.getAccumulatedValue(a,u-a.lf_left-2),_=this._buffers[a.piece.bufferIndex].buffer,S=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);h=_.substring(S+v,S+a.piece.length);break}else u-=a.lf_left+a.piece.lineFeedCnt,g+=a.size_left+a.piece.length,a=a.right}for(a=a.next();a!==D.SENTINEL;){const g=this._buffers[a.piece.bufferIndex].buffer;if(a.piece.lineFeedCnt>0){const d=this.getAccumulatedValue(a,0),v=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);return h+=g.substring(v,v+d-r),h}else{const d=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);h+=g.substr(d,a.piece.length)}a=a.next()}return h}computeBufferMetadata(){let u=this.root,r=1,a=0;for(;u!==D.SENTINEL;)r+=u.lf_left+u.piece.lineFeedCnt,a+=u.size_left+u.piece.length,u=u.right;this._lineCnt=r,this._length=a,thi
`);const a=this.shouldCheckCRLF()&&this.startWithLF(r)&&this.endWithCR(u),h=this._buffers[0].buffer.length;this._buffers[0].buffer+=r;const l=C(r,!1);for(let T=0;T<l.length;T++)l[T]+=h;if(a){const T=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:h-T}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(l.slice(1));const g=this._buffers[0].lineStarts.length-1,d=this._buffers[0].buffer.length-this._buffers[0].lineStarts[g],v={line:g,column:d},_=u.piece.length+r.length,S=u.piece.lineFeedCnt,L=this.getLineFeedCnt(0,u.piece.start,v),I=L-S;u.piece=new s(u.piece.bufferIndex,u.piece.start,v,L,_),this._lastChangeBufferPos=v,(0,D.updateTreeMetadata)(this,u,r.length,I)}nodeAt(u){let r=this.root;const a=this._searchCache.get(u);if(a)return{node:a.node,nodeStartOffset:a.nodeStartOffset,remainder:u-a.nodeStartOffset};let h=0;for(;r!==D.SENTINEL;)if(r.size_left>u)r=r.left;else if(r.size_left+r.piece.length>=u){h+=r.size_left;const l={node:r,remainder:u-r.size_left,nodeStartOffset:h};return this._searchCache.set(l),l}else u-=r.size_left+r.piece.length,h+=r.size_left+r.piece.length,r=r.right;return null}nodeAt2(u,r){let a=this.root,h=0;for(;a!==D.SENTINEL;)if(a.left!==D.SENTINEL&&a.lf_left>=u-1)a=a.left;else if(a.lf_left+a.piece.lineFeedCnt>u-1){const l=this.getAccumulatedValue(a,u-a.lf_left-2),g=this.getAccumulatedValue(a,u-a.lf_left-1);return h+=a.size_left,{node:a,remainder:Math.min(l+r-1,g),nodeStartOffset:h}}else if(a.lf_left+a.piece.lineFeedCnt===u-1){const l=this.getAccumulatedValue(a,u-a.lf_left-2);if(l+r-1<=a.piece.length)return{node:a,remainder:l+r-1,nodeStartOffset:h};r-=a.piece.length-l;break}else u-=a.lf_left+a.piece.lineFeedCnt,h+=a.size_left+a.piece.length,a=a.right;for(a=a.next();a!==D.SENTINEL;){if(a.piece.lineFeedCnt>0){const l=this.getAccumulatedValue(a,0),g=this.offsetOfNode(a);return{node:a,remainder:Math.min(r-1,l),nodeStartOffset:g}}else if(a.piece.length>=r-1){const l=this.offsetOfNode(a);return{node:a,remainder:r-1,nodeStartOffset:l}}else r-=a.piece.length;a=a.next()}return null}nodeCharCodeAt(u,r){if(u.piece.lineFeedCnt<1)return-1;const a=this._buffers[u.piece.bufferIndex],h=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start)+r;return a.buffer.charCodeAt(h)}offsetOfNode(u){if(!u)return 0;let r=u.size_left;for(;u!==this.root;)u.parent.right===u&&(r+=u.parent.size_left+u.parent.piece.length),u=u.parent;return r}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===`
`)}startWithLF(u){if(typeof u=="string")return u.charCodeAt(0)===10;if(u===D.SENTINEL||u.piece.lineFeedCnt===0)return!1;const r=u.piece,a=this._buffers[r.bufferIndex].lineStarts,h=r.start.line,l=a[h]+r.start.column;return h===a.length-1||a[h+1]>l+1?!1:this._buffers[r.bufferIndex].buffer.charCodeAt(l)===10}endWithCR(u){return typeof u=="string"?u.charCodeAt(u.length-1)===13:u===D.SENTINEL||u.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(u,u.piece.length-1)===13}validateCRLFWithPrevNode(u){if(this.shouldCheckCRLF()&&this.startWithLF(u)){const r=u.prev();this.endWithCR(r)&&this.fixCRLF(r,u)}}validateCRLFWithNextNode(u){if(this.shouldCheckCRLF()&&this.endWithCR(u)){const r=u.next();this.startWithLF(r)&&this.fixCRLF(u,r)}}fixCRLF(u,r){const a=[],h=this._buffers[u.piece.bufferIndex].lineStarts;let l;u.piece.end.column===0?l={line:u.piece.end.line-1,column:h[u.piece.end.line]-h[u.piece.end.line-1]-1}:l={line:u.piece.end.line,column:u.piece.end.column-1};const g=u.piece.length-1,d=u.piece.lineFeedCnt-1;u.piece=new s(u.piece.bufferIndex,u.piece.start,l,d,g),(0,D.updateTreeMetadata)(this,u,-1,-1),u.piece.length===0&&a.push(u);const v={line:r.piece.start.line+1,column:0},_=r.piece.length-1,S=this.getLineFeedCnt(r.piece.bufferIndex,v,r.piece.end);r.piece=new s(r.piece.bufferIndex,v,r.piece.end,S,_),(0,D.updateTreeMetadata)(this,r,-1,-1),r.piece.length===0&&a.push(r);const L=this.createNewPieces(`\r
`);this.rbInsertRight(u,L[0]);for(let I=0;I<a.length;I++)(0,D.rbDelete)(this,a[I])}adjustCarriageReturnFromNext(u,r){if(this.shouldCheckCRLF()&&this.endWithCR(u)){const a=r.next();if(this.startWithLF(a)){if(u+=`
`,a.piece.length===1)(0,D.rbDelete)(this,a);else{const h=a.piece,l={line:h.start.line+1,column:0},g=h.length-1,d=this.getLineFeedCnt(h.bufferIndex,l,h.end);a.piece=new s(h.bufferIndex,l,h.end,d,g),(0,D.updateTreeMetadata)(this,a,-1,-1)}return!0}}return!1}iterate(u,r){if(u===D.SENTINEL)return r(D.SENTINEL);const a=this.iterate(u.left,r);return a&&r(u)&&this.iterate(u.right,r)}getNodeContent(u){if(u===D.SENTINEL)return"";const r=this._buffers[u.piece.bufferIndex],a=u.piece,h=this.offsetInBuffer(a.bufferIndex,a.start),l=this.offsetInBuffer(a.bufferIndex,a.end);return r.buffer.substring(h,l)}getPieceContent(u){const r=this._buffers[u.bufferIndex],a=this.offsetInBuffer(u.bufferIndex,u.start),h=this.offsetInBuffer(u.bufferIndex,u.end);return r.buffer.substring(a,h)}rbInsertRight(u,r){const a=new D.TreeNode(r,1);if(a.left=D.SENTINEL,a.right=D.SENTINEL,a.parent=D.SENTINEL,a.size_left=0,a.lf_left=0,this.root===D.SENTINEL)this.root=a,a.color=0;else if(u.right===D.SENTINEL)u.right=a,a.parent=u;else{const l=(0,D.leftest)(u.right);l.left=a,a.parent=l}return(0,D.fixInsert)(this,a),a}rbInsertLeft(u,r){const a=new D.TreeNode(r,1);if(a.left=D.SENTINEL,a.right=D.SENTINEL,a.parent=D.SENTINEL,a.size_left=0,a.lf_left=0,this.root===D.SENTINEL)this.root=a,a.color=0;else if(u.left===D.SENTINEL)u.left=a,a.parent=u;else{const h=(0,D.righttest)(u.left);h.right=a,a.parent=h}return(0,D.fixInsert)(this,a),a}}e.PieceTreeBase=c}),define(ie[560],ne([1,0,109,108]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextModelText=void 0;class E extends f.AbstractText{constructor(y){super(),this._textModel=y}getValueOfRange(y){return this._textModel.getValueInRange(y)}get length(){const y=this._textModel.getLineCount(),p=this._textModel.getLineLength(y);return new k.TextLength(y-1,p)}}e.TextModelText=E}),define(ie[231],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeIndentLevel=f;function f(k,E){let D=0,y=0;const p=k.length;for(;y<p;){const w=k.charCodeAt(y);if(w===32)D++;else if(w===9)D=D-D%E+E;else break;y++}return y===p?-1:D}}),define(ie[316],ne([1,0,87,9,42]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutputPosition=e.InjectedText=e.ModelLineProjectionData=void 0;class D{constructor(o,s,i,t,n){this.injectionOffsets=o,this.injectionOptions=s,this.breakOffsets=i,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=n}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(o){return o>0?this.wrappedTextIndentLength:0}getLineLength(o){const s=o>0?this.breakOffsets[o-1]:0;let t=this.breakOffsets[o]-s;return o>0&&(t+=this.wrappedTextIndentLength),t}getMaxOutputOffset(o){return this.getLineLength(o)}translateToInputOffset(o,s){o>0&&(s=Math.max(0,s-this.wrappedTextIndentLength));let t=o===0?s:this.breakOffsets[o-1]+s;if(this.injectionOffsets!==null)for(let n=0;n<this.injectionOffsets.length&&t>this.injectionOffsets[n];n++)t<this.injectionOffsets[n]+this.injectionOptions[n].content.length?t=this.injectionOffsets[n]:t-=this.injectionOptions[n].content.length;return t}translateToOutputPosition(o,s=2){let i=o;if(this.injectionOffsets!==null)for(let t=0;t<this.injectionOffsets.length&&!(o<this.injectionOffsets[t]||s!==1&&o===this.injectionOffsets[t]);t++)i+=this.injectionOptions[t].content.length;return this.offsetInInputWithInjectionsToOutputPosition(i,s)}offsetInInputWithInjectionsToOutputPosition(o,s=2){let i=0,t=this.breakOffsets.length-1,n=0,c=0;for(;i<=t;){n=i+(t-i)/2|0;const u=this.breakOffsets[n];if(c=n>0?this.breakOffsets[n-1]:0,s===0)if(o<=c)t=n-1;else if(o>u)i=n+1;else break;else if(o<c)t=n-1;else if(o>=u)i=n+1;else break}let m=o-c;return n>0&&(m+=this.wrappedTextIndentLength),new b(n,m)}normalizeOutputPosition(o,s,i){if(this.injectionOffsets!==null){const t=this.outputPositionToOffsetInInputWithInjections(o,s),n=this.normalizeOffsetInInputWithInjectionsAroundInjections(t,i);if(n!==t)return this.offsetInInputWithInjectionsToOutputPosition(n,i)}if(i===0){if(o>0&&s===this.getMinOutputOffset(o))return new b(o-1,this.
`||o===" "}}),define(ie[232],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WrappingIndent=e.TrackedRangeStickiness=e.TextEditorCursorStyle=e.TextEditorCursorBlinkingStyle=e.SymbolTag=e.SymbolKind=e.SignatureHelpTriggerKind=e.ShowLightbulbIconMode=e.SelectionDirection=e.ScrollbarVisibility=e.ScrollType=e.RenderMinimap=e.RenderLineNumbersType=e.PositionAffinity=e.PartialAcceptTriggerKind=e.OverviewRulerLane=e.OverlayWidgetPositionPreference=e.NewSymbolNameTriggerKind=e.NewSymbolNameTag=e.MouseTargetType=e.MinimapSectionHeaderStyle=e.MinimapPosition=e.MarkerTag=e.MarkerSeverity=e.KeyCode=e.InlineEditTriggerKind=e.InlineCompletionTriggerKind=e.InlayHintKind=e.InjectedTextCursorStops=e.IndentAction=e.HoverVerbosityAction=e.GlyphMarginLane=e.EndOfLineSequence=e.EndOfLinePreference=e.EditorOption=e.EditorAutoIndentStrategy=e.DocumentHighlightKind=e.DefaultEndOfLine=e.CursorChangeReason=e.ContentWidgetPositionPreference=e.CompletionTriggerKind=e.CompletionItemTag=e.CompletionItemKind=e.CompletionItemInsertTextRule=e.CodeActionTriggerType=e.AccessibilitySupport=void 0;var f;(function(P){P[P.Unknown=0]="Unknown",P[P.Disabled=1]="Disabled",P[P.Enabled=2]="Enabled"})(f||(e.AccessibilitySupport=f={}));var k;(function(P){P[P.Invoke=1]="Invoke",P[P.Auto=2]="Auto"})(k||(e.CodeActionTriggerType=k={}));var E;(function(P){P[P.None=0]="None",P[P.KeepWhitespace=1]="KeepWhitespace",P[P.InsertAsSnippet=4]="InsertAsSnippet"})(E||(e.CompletionItemInsertTextRule=E={}));var D;(function(P){P[P.Method=0]="Method",P[P.Function=1]="Function",P[P.Constructor=2]="Constructor",P[P.Field=3]="Field",P[P.Variable=4]="Variable",P[P.Class=5]="Class",P[P.Struct=6]="Struct",P[P.Interface=7]="Interface",P[P.Module=8]="Module",P[P.Property=9]="Property",P[P.Event=10]="Event",P[P.Operator=11]="Operator",P[P.Unit=12]="Unit",P[P.Value=13]="Value",P[P.Constant=14]="Constant",P[P.Enum=15]="Enum",P[P.EnumMember=16]="EnumMember",P[P.Keyword=17]="Keyword",P[P.Text=18]="Text",P[P.Color=19]="Color",P[P.File=20]="File",P[P.Reference=21]="Reference",P[P.Customcolor=22]="Customcolor",P[P.Folder=23]="Folder",P[P.TypeParameter=24]="TypeParameter",P[P.User=25]="User",P[P.Issue=26]="Issue",P[P.Snippet=27]="Snippet"})(D||(e.CompletionItemKind=D={}));var y;(function(P){P[P.Deprecated=1]="Deprecated"})(y||(e.CompletionItemTag=y={}));var p;(function(P){P[P.Invoke=0]="Invoke",P[P.TriggerCharacter=1]="TriggerCharacter",P[P.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(p||(e.CompletionTriggerKind=p={}));var w;(function(P){P[P.EXACT=0]="EXACT",P[P.ABOVE=1]="ABOVE",P[P.BELOW=2]="BELOW"})(w||(e.ContentWidgetPositionPreference=w={}));var b;(function(P){P[P.NotSet=0]="NotSet",P[P.ContentFlush=1]="ContentFlush",P[P.RecoverFromMarkers=2]="RecoverFromMarkers",P[P.Explicit=3]="Explicit",P[P.Paste=4]="Paste",P[P.Undo=5]="Undo",P[P.Redo=6]="Redo"})(b||(e.CursorChangeReason=b={}));var C;(function(P){P[P.LF=1]="LF",P[P.CRLF=2]="CRLF"})(C||(e.DefaultEndOfLine=C={}));var o;(function(P){P[P.Text=0]="Text",P[P.Read=1]="Read",P[P.Write=2]="Write"})(o||(e.DocumentHighlightKind=o={}));var s;(function(P){P[P.None=0]="None",P[P.Keep=1]="Keep",P[P.Brackets=2]="Brackets",P[P.Advanced=3]="Advanced",P[P.Full=4]="Full"})(s||(e.EditorAutoIndentStrategy=s={}));var i;(function(P){P[P.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",P[P.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",P[P.accessibilitySupport=2]="accessibilitySupport",P[P.accessibilityPageSize=3]="accessibilityPageSize",P[P.ariaLabel=4]="ariaLabel",P[P.ariaRequired=5]="ariaRequired",P[P.autoClosingBrackets=6]="autoClosingBrackets",P[P.autoClosingComments=7]="autoClosingComments",P[P.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",P[P.autoClosingDelete=9]="autoClosingDelete",P[P.autoClosingOvertype=10]="autoClosingOvertype",P[P.autoClosingQuotes=11]="autoClosingQuotes",P[P.autoIndent=12]="autoIndent",P[P.automaticLayout=13]="automaticLayout",P[P.autoSurround=14]="autoSurround",P[P.bracketPairColorization=15]="bracketPairColori
`),this._selectionId=o.trackSelection(s);return}s.startLineNumber<s.endLineNumber&&s.endColumn===1&&(this._moveEndPositionDown=!0,s=s.setEndPosition(s.endLineNumber-1,C.getLineMaxColumn(s.endLineNumber-1)));const i=w._gatherPreflightData(this._type,this._insertSpace,C,s.startLineNumber,s.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return i.supported?this._executeLineComments(C,o,i,s):this._executeBlockComment(C,o,s)}computeCursorState(C,o){let s=o.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(s=s.setEndPosition(s.endLineNumber+1,1)),new y.Selection(s.selectionStartLineNumber,s.selectionStartColumn+this._deltaColumn,s.positionLineNumber,s.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(C,o){const s=[];for(let i=0,t=C.length;i<t;i++){const n=C[i];n.ignore||s.push(k.EditOperation.delete(new D.Range(o+i,n.commentStrOffset+1,o+i,n.commentStrOffset+n.commentStrLength+1)))}return s}_createAddLineCommentsOperations(C,o){const s=[],i=this._insertSpace?" ":"";for(let t=0,n=C.length;t<n;t++){const c=C[t];c.ignore||s.push(k.EditOperation.insert(new E.Position(o+t,c.commentStrOffset+1),c.commentStr+i))}return s}static nextVisibleColumn(C,o,s,i){return s?C+(o-C%o):C+i}static _normalizeInsertionPoint(C,o,s,i){let t=1073741824,n,c;for(let m=0,u=o.length;m<u;m++){if(o[m].ignore)continue;const r=C.getLineContent(s+m);let a=0;for(let h=0,l=o[m].commentStrOffset;a<t&&h<l;h++)a=w.nextVisibleColumn(a,i,r.charCodeAt(h)===9,1);a<t&&(t=a)}t=Math.floor(t/i)*i;for(let m=0,u=o.length;m<u;m++){if(o[m].ignore)continue;const r=C.getLineContent(s+m);let a=0;for(n=0,c=o[m].commentStrOffset;a<t&&n<c;n++)a=w.nextVisibleColumn(a,i,r.charCodeAt(n)===9,1);a>t?o[m].commentStrOffset=n-1:o[m].commentStrOffset=n}}}e.LineCommentCommand=w}),define(ie[589],ne([1,0,5,24]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DragAndDropCommand=void 0;class E{constructor(y,p,w){this.selection=y,this.targetPosition=p,this.copy=w,this.targetSelection=null}getEditOperations(y,p){const w=y.getValueInRange(this.selection);if(this.copy||p.addEditOperation(this.selection,null),p.addEditOperation(new f.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),w),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new k.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new k.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new k.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new k.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endCo
`,s+1);break;case 116:o.emitUnchanged(s-1),o.emitStatic(" ",s+1);break;case 117:case 85:case 108:case 76:o.emitUnchanged(s-1),o.emitStatic("",s+1),C.push(String.fromCharCode(n));break}continue}if(t===36){if(s++,s>=i)break;const n=b.charCodeAt(s);if(n===36){o.emitUnchanged(s-1),o.emitStatic("$",s+1);continue}if(n===48||n===38){o.emitUnchanged(s-1),o.emitMatchIndex(0,s+1,C),C.length=0;continue}if(49<=n&&n<=57){let c=n-48;if(s+1<i){const m=b.charCodeAt(s+1);if(48<=m&&m<=57){s++,c=c*10+(m-48),o.emitUnchanged(s-2),o.emitMatchIndex(c,s+1,C),C.length=0;continue}}o.emitUnchanged(s-1),o.emitMatchIndex(c,s+1,C),C.length=0;continue}}}return o.finalize()}}),define(ie[197],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRegion=e.FoldingRegions=e.MAX_LINE_NUMBER=e.MAX_FOLDING_REGIONS=e.foldSourceAbbr=void 0,e.foldSourceAbbr={0:" ",1:"u",2:"r"},e.MAX_FOLDING_REGIONS=65535,e.MAX_LINE_NUMBER=16777215;const f=4278190080;class k{constructor(p){const w=Math.ceil(p/32);this._states=new Uint32Array(w)}get(p){const w=p/32|0,b=p%32;return(this._states[w]&1<<b)!==0}set(p,w){const b=p/32|0,C=p%32,o=this._states[b];w?this._states[b]=o|1<<C:this._states[b]=o&~(1<<C)}}class E{constructor(p,w,b){if(p.length!==w.length||p.length>e.MAX_FOLDING_REGIONS)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=p,this._endIndexes=w,this._collapseStates=new k(p.length),this._userDefinedStates=new k(p.length),this._recoveredStates=new k(p.length),this._types=b,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const p=[],w=(b,C)=>{const o=p[p.length-1];return this.getStartLineNumber(o)<=b&&this.getEndLineNumber(o)>=C};for(let b=0,C=this._startIndexes.length;b<C;b++){const o=this._startIndexes[b],s=this._endIndexes[b];if(o>e.MAX_LINE_NUMBER||s>e.MAX_LINE_NUMBER)throw new Error("startLineNumber or endLineNumber must not exceed "+e.MAX_LINE_NUMBER);for(;p.length>0&&!w(o,s);)p.pop();const i=p.length>0?p[p.length-1]:-1;p.push(b),this._startIndexes[b]=o+((i&255)<<24),this._endIndexes[b]=s+((i&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(p){return this._startIndexes[p]&e.MAX_LINE_NUMBER}getEndLineNumber(p){return this._endIndexes[p]&e.MAX_LINE_NUMBER}getType(p){return this._types?this._types[p]:void 0}hasTypes(){return!!this._types}isCollapsed(p){return this._collapseStates.get(p)}setCollapsed(p,w){this._collapseStates.set(p,w)}isUserDefined(p){return this._userDefinedStates.get(p)}setUserDefined(p,w){return this._userDefinedStates.set(p,w)}isRecovered(p){return this._recoveredStates.get(p)}setRecovered(p,w){return this._recoveredStates.set(p,w)}getSource(p){return this.isUserDefined(p)?1:this.isRecovered(p)?2:0}setSource(p,w){w===1?(this.setUserDefined(p,!0),this.setRecovered(p,!1)):w===2?(this.setUserDefined(p,!1),this.setRecovered(p,!0)):(this.setUserDefined(p,!1),this.setRecovered(p,!1))}setCollapsedAllOfType(p,w){let b=!1;if(this._types)for(let C=0;C<this._types.length;C++)this._types[C]===p&&(this.setCollapsed(C,w),b=!0);return b}toRegion(p){return new D(this,p)}getParentIndex(p){this.ensureParentIndices();const w=((this._startIndexes[p]&f)>>>24)+((this._endIndexes[p]&f)>>>16);return w===e.MAX_FOLDING_REGIONS?-1:w}contains(p,w){return this.getStartLineNumber(p)<=w&&this.getEndLineNumber(p)>=w}findIndex(p){let w=0,b=this._startIndexes.length;if(b===0)return-1;for(;w<b;){const C=Math.floor((w+b)/2);p<this.getStartLineNumber(C)?b=C:w=C+1}return w-1}findRange(p){let w=this.findIndex(p);if(w>=0){if(this.getEndLineNumber(w)>=p)return w;for(w=this.getParentIndex(w);w!==-1;){if(this.contains(w,p))return w;w=this.getParentIndex(w)}}return-1}toString(){const p=[];for(let w=0;w<this.length;w++)p[w]=`[${e.foldSourceAbbr[this.getSource(w)]}${this.isCollapsed(w)?"+":"-"}] ${this.getStartLineNumber(w)}/${this.getEndLineNumber(w)}`;return p.join(", ")}toFoldRange(p){return{startLineNumber:this._startIndexes[p]&e.MAX_LINE_NUMBER,endLineNumber:this._endIndexes[p]&e.MAX_LINE_NUMBER,type:this._types?this._types[p]:void 0,isCollaps
`)))]).applyToString(n).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(i=>i.lines.length===0)}get lineCount(){return 1+this.parts.reduce((i,t)=>i+t.lines.length-1,0)}}e.GhostText=p;class w{constructor(i,t,n){this.column=i,this.text=t,this.preview=n,this.lines=(0,k.splitLines)(this.text)}equals(i){return this.column===i.column&&this.lines.length===i.lines.length&&this.lines.every((t,n)=>t===i.lines[n])}}e.GhostTextPart=w;class b{constructor(i,t,n,c=0){this.lineNumber=i,this.columnRange=t,this.text=n,this.additionalReservedLineCount=c,this.parts=[new w(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,k.splitLines)(this.text)}renderForScreenReader(i){return this.newLines.join(`
`)}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every(i=>i.lines.length===0)}equals(i){return this.lineNumber===i.lineNumber&&this.columnRange.equals(i.columnRange)&&this.newLines.length===i.newLines.length&&this.newLines.every((t,n)=>t===i.newLines[n])&&this.additionalReservedLineCount===i.additionalReservedLineCount}}e.GhostTextReplacement=b;function C(s,i){return(0,f.equals)(s,i,o)}function o(s,i){return s===i?!0:!s||!i?!1:s instanceof p&&i instanceof p||s instanceof b&&i instanceof b?s.equals(i):!1}}),define(ie[239],ne([1,0,185,12,5,108,109,198]),function(Q,e,f,k,E,D,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.singleTextRemoveCommonPrefix=w,e.singleTextEditAugments=b,e.computeGhostText=C;function w(c,m,u){const r=u?c.range.intersectRanges(u):c.range;if(!r)return c;const a=m.getValueInRange(r,1),h=(0,k.commonPrefixLength)(a,c.text),l=D.TextLength.ofText(a.substring(0,h)).addToPosition(c.range.getStartPosition()),g=c.text.substring(h),d=E.Range.fromPositions(l,c.range.getEndPosition());return new y.SingleTextEdit(d,g)}function b(c,m){return c.text.startsWith(m.text)&&o(c.range,m.range)}function C(c,m,u,r,a=0){let h=w(c,m);if(h.range.endLineNumber!==h.range.startLineNumber)return;const l=m.getLineContent(h.range.startLineNumber),g=(0,k.getLeadingWhitespace)(l).length;if(h.range.startColumn-1<=g){const T=(0,k.getLeadingWhitespace)(h.text).length,N=l.substring(h.range.startColumn-1,g),[A,O]=[h.range.getStartPosition(),h.range.getEndPosition()],M=A.column+N.length<=O.column?A.delta(0,N.length):O,R=E.Range.fromPositions(M,O),x=h.text.startsWith(N)?h.text.substring(N.length):h.text.substring(T);h=new y.SingleTextEdit(R,x)}const v=m.getValueInRange(h.range),_=i(v,h.text);if(!_)return;const S=h.range.startLineNumber,L=new Array;if(u==="prefix"){const T=_.filter(N=>N.originalLength===0);if(T.length>1||T.length===1&&T[0].originalStart!==v.length)return}const I=h.text.length-a;for(const T of _){const N=h.range.startColumn+T.originalStart+T.originalLength;if(u==="subwordSmart"&&r&&r.lineNumber===h.range.startLineNumber&&N<r.column||T.originalLength>0)return;if(T.modifiedLength===0)continue;const A=T.modifiedStart+T.modifiedLength,O=Math.max(T.modifiedStart,Math.min(A,I)),M=h.text.substring(T.modifiedStart,O),R=h.text.substring(O,Math.max(T.modifiedStart,A));M.length>0&&L.push(new p.GhostTextPart(N,M,!1)),R.length>0&&L.push(new p.GhostTextPart(N,R,!0))}return new p.GhostText(S,L)}function o(c,m){return m.getStartPosition().equals(c.getStartPosition())&&m.getEndPosition().isBeforeOrEqual(c.getEndPosition())}let s;function i(c,m){if(s?.originalValue===c&&s?.newValue===m)return s?.changes;{let u=n(c,m,!0);if(u){const r=t(u);if(r>0){const a=n(c,m,!1);a&&t(a)<r&&(u=a)}}return s={originalValue:c,newValue:m,changes:u},u}}function t(c){let m=0;for(const u of c)m+=u.originalLength;return m}function n(c,m,u){if(c.length>5e3||m.length>5e3)return;function r(v){let _=0;for(let S=0,L=v.length;S<L;S++){const I=v.charCodeAt(S);I>_&&(_=I)}return _}const a=Math.max(r(c),r(m));function h(v){if(v<0)throw new Error("unexpected");return a+v+1}function l(v){let _=0,S=0;const L=new Int32Array(v.length);for(let I=0,T=v.length;I<T;I++)if(u&&v[I]==="("){const N=S*100+_;L[I]=h(2*N),_++}else if(u&&v[I]===")"){_=Math.max(_-1,0);const N=S*100+_;L[I]=h(2*N+1),_===0&&S++}else L[I]=v.charCodeAt(I);return L}const g=l(c),d=l(m);return new f.LcsDiff({getElements:()=>g},{getElements:()=>d}).ComputeDiff(!1).changes}}),define(ie[199],ne([1,0,10,2,30,9,5]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnRange=void 0,e.getReadonlyEmptyArray=w,e.applyObservableDecorations=C,e.addPositions=o,e.subtractPositions=s;const p=[];function w(){return p}class b{constructor(t,n){if(this.startColumn=t,this.endColumnExclusive=n,t>n)throw new f.BugIndicatingError(`startColumn ${t} cannot be after endColumnExclusive ${n}`)}toRange(t){return new y.Range(t,this.startColumn,t,this.endColumnExclusive)}equals(t){return this.startColumn===t.startColumn&&this.endColumnExclusive===t.endColumnExclus
`);C===""&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?p.addEditOperation(new f.Range(w.endLineNumber,y.getLineMaxColumn(w.endLineNumber),w.endLineNumber+1,1),w.endLineNumber===y.getLineCount()?"":`
`):this._isCopyingDown?p.addEditOperation(new f.Range(w.startLineNumber,1,w.startLineNumber,1),C+`
`):p.addEditOperation(new f.Range(w.endLineNumber,y.getLineMaxColumn(w.endLineNumber),w.endLineNumber,y.getLineMaxColumn(w.endLineNumber)),`
`+C),this._selectionId=p.trackSelection(w),this._selectionDirection=this._selection.getDirection()}computeCursorState(y,p){let w=p.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let b=w.startLineNumber,C=w.startColumn,o=w.endLineNumber,s=w.endColumn;this._startLineNumberDelta!==0&&(b=b+this._startLineNumberDelta,C=1),this._endLineNumberDelta!==0&&(o=o+this._endLineNumberDelta,s=1),w=k.Selection.createWithDirection(b,C,o,s,this._selectionDirection)}return w}}e.CopyLinesCommand=E}),define(ie[597],ne([1,0,72,5]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SortLinesCommand=void 0;class E{static getCollator(){return E._COLLATOR||(E._COLLATOR=new Intl.Collator),E._COLLATOR}constructor(w,b){this.selection=w,this.descending=b,this.selectionId=null}getEditOperations(w,b){const C=y(w,this.selection,this.descending);C&&b.addEditOperation(C.range,C.text),this.selectionId=b.trackSelection(this.selection)}computeCursorState(w,b){return b.getTrackedSelection(this.selectionId)}static canRun(w,b,C){if(w===null)return!1;const o=D(w,b,C);if(!o)return!1;for(let s=0,i=o.before.length;s<i;s++)if(o.before[s]!==o.after[s])return!0;return!1}}e.SortLinesCommand=E,E._COLLATOR=null;function D(p,w,b){const C=w.startLineNumber;let o=w.endLineNumber;if(w.endColumn===1&&o--,C>=o)return null;const s=[];for(let t=C;t<=o;t++)s.push(p.getLineContent(t));let i=s.slice(0);return i.sort(E.getCollator().compare),b===!0&&(i=i.reverse()),{startLineNumber:C,endLineNumber:o,before:s,after:i}}function y(p,w,b){const C=D(p,w,b);return C?f.EditOperation.replace(new k.Range(C.startLineNumber,1,C.endLineNumber,p.getLineMaxColumn(C.endLineNumber)),C.after.join(`
`)):null}}),define(ie[329],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SEMANTIC_HIGHLIGHTING_SETTING_ID=void 0,e.isSemanticColoringEnabled=f,e.SEMANTIC_HIGHLIGHTING_SETTING_ID="editor.semanticHighlighting";function f(k,E,D){var y;const p=(y=D.getValue(e.SEMANTIC_HIGHLIGHTING_SETTING_ID,{overrideIdentifier:k.getLanguageId(),resource:k.uri}))===null||y===void 0?void 0:y.enabled;return typeof p=="boolean"?p:E.getColorTheme().semanticHighlighting}}),define(ie[330],ne([1,0,70,9,5]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BracketSelectionRangeProvider=void 0;class D{async provideSelectionRanges(p,w){const b=[];for(const C of w){const o=[];b.push(o);const s=new Map;await new Promise(i=>D._bracketsRightYield(i,0,p,C,s)),await new Promise(i=>D._bracketsLeftYield(i,0,p,C,s,o))}return b}static _bracketsRightYield(p,w,b,C,o){const s=new Map,i=Date.now();for(;;){if(w>=D._maxRounds){p();break}if(!C){p();break}const t=b.bracketPairs.findNextBracket(C);if(!t){p();break}if(Date.now()-i>D._maxDuration){setTimeout(()=>D._bracketsRightYield(p,w+1,b,C,o));break}if(t.bracketInfo.isOpeningBracket){const c=t.bracketInfo.bracketText,m=s.has(c)?s.get(c):0;s.set(c,m+1)}else{const c=t.bracketInfo.getOpeningBrackets()[0].bracketText;let m=s.has(c)?s.get(c):0;if(m-=1,s.set(c,Math.max(0,m)),m<0){let u=o.get(c);u||(u=new f.LinkedList,o.set(c,u)),u.push(t.range)}}C=t.range.getEndPosition()}}static _bracketsLeftYield(p,w,b,C,o,s){const i=new Map,t=Date.now();for(;;){if(w>=D._maxRounds&&o.size===0){p();break}if(!C){p();break}const n=b.bracketPairs.findPrevBracket(C);if(!n){p();break}if(Date.now()-t>D._maxDuration){setTimeout(()=>D._bracketsLeftYield(p,w+1,b,C,o,s));break}if(n.bracketInfo.isOpeningBracket){const m=n.bracketInfo.bracketText;let u=i.has(m)?i.get(m):0;if(u-=1,i.set(m,Math.max(0,u)),u<0){const r=o.get(m);if(r){const a=r.shift();r.size===0&&o.delete(m);const h=E.Range.fromPositions(n.range.getEndPosition(),a.getStartPosition()),l=E.Range.fromPositions(n.range.getStartPosition(),a.getEndPosition());s.push({range:h}),s.push({range:l}),D._addBracketLeading(b,l,s)}}}else{const m=n.bracketInfo.getOpeningBrackets()[0].bracketText,u=i.has(m)?i.get(m):0;i.set(m,u+1)}C=n.range.getStartPosition()}}static _addBracketLeading(p,w,b){if(w.startLineNumber===w.endLineNumber)return;const C=w.startLineNumber,o=p.getLineFirstNonWhitespaceColumn(C);o!==0&&o!==w.startColumn&&(b.push({range:E.Range.fromPositions(new k.Position(C,o),w.getEndPosition())}),b.push({range:E.Range.fromPositions(new k.Position(C,1),w.getEndPosition())}));const s=C-1;if(s>0){const i=p.getLineFirstNonWhitespaceColumn(s);i===w.startColumn&&i!==p.getLineLastNonWhitespaceColumn(s)&&(b.push({range:E.Range.fromPositions(new k.Position(s,i),w.getEndPosition())}),b.push({range:E.Range.fromPositions(new k.Position(s,1),w.getEndPosition())}))}}}e.BracketSelectionRangeProvider=D,D._maxDuration=30,D._maxRounds=2}),define(ie[598],ne([1,0,12,5]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordSelectionRangeProvider=void 0;class E{constructor(y=!0){this.selectSubwords=y}provideSelectionRanges(y,p){const w=[];for(const b of p){const C=[];w.push(C),this.selectSubwords&&this._addInWordRanges(C,y,b),this._addWordRanges(C,y,b),this._addWhitespaceLine(C,y,b),C.push({range:y.getFullModelRange()})}return w}_addInWordRanges(y,p,w){const b=p.getWordAtPosition(w);if(!b)return;const{word:C,startColumn:o}=b,s=w.column-o;let i=s,t=s,n=0;for(;i>=0;i--){const c=C.charCodeAt(i);if(i!==s&&(c===95||c===45))break;if((0,f.isLowerAsciiLetter)(c)&&(0,f.isUpperAsciiLetter)(n))break;n=c}for(i+=1;t<C.length;t++){const c=C.charCodeAt(t);if((0,f.isUpperAsciiLetter)(c)&&(0,f.isLowerAsciiLetter)(n))break;if(c===95||c===45)break;n=c}i<t&&y.push({range:new k.Range(w.lineNumber,o+i,w.lineNumber,o+t)})}_addWordRanges(y,p,w){const b=p.getWordAtPosition(w);b&&y.push({range:new k.Range(w.lineNumber,b.startColumn,w.lineNumber,b.endColumn)})}_addWhitespaceLine(y,p,w){p.getLineLength(w.lineNumber)>0&&p.getLineFirstNonWh
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof h.open=="string"&&typeof h.token=="string"&&typeof h.close=="string")r.push({token:h.token+c.tokenPostfix,open:f.fixCase(c,h.open),close:f.fixCase(c,h.close)});else throw f.createError(c,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return c.brackets=r,c.noThrow=!0,c}}),define(ie[602],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/actionbar/actionViewItems",e)}),define(ie[603],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/findinput/findInput",e)}),define(ie[604],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/findinput/findInputToggles",e)}),define(ie[605],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/findinput/replaceInput",e)}),define(ie[606],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/hover/hoverWidget",e)}),define(ie[607],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/inputbox/inputBox",e)}),define(ie[608],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/keybindingLabel/keybindingLabel",e)}),define(ie[609],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/selectBox/selectBoxCustom",e)}),define(ie[610],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/toolbar/toolbar",e)}),define(ie[611],ne([3,4]),function(Q,e){return Q.create("vs/base/browser/ui/tree/abstractTree",e)}),define(ie[612],ne([3,4]),function(Q,e){return Q.create("vs/base/common/actions",e)}),define(ie[41],ne([1,0,7,2,612]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptySubmenuAction=e.SubmenuAction=e.Separator=e.ActionRunner=e.Action=void 0,e.toAction=C;class D extends k.Disposable{constructor(s,i="",t="",n=!0,c){super(),this._onDidChange=this._register(new f.Emitter),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=s,this._label=i,this._cssClass=t,this._enabled=n,this._actionCallback=c}get id(){return this._id}get label(){return this._label}set label(s){this._setLabel(s)}_setLabel(s){this._label!==s&&(this._label=s,this._onDidChange.fire({label:s}))}get tooltip(){return this._tooltip||""}set tooltip(s){this._setTooltip(s)}_setTooltip(s){this._tooltip!==s&&(this._tooltip=s,this._onDidChange.fire({tooltip:s}))}get class(){return this._cssClass}set class(s){this._setClass(s)}_setClass(s){this._cssClass!==s&&(this._cssClass=s,this._onDidChange.fire({class:s}))}get enabled(){return this._enabled}set enabled(s){this._setEnabled(s)}_setEnabled(s){this._enabled!==s&&(this._enabled=s,this._onDidChange.fire({enabled:s}))}get checked(){return this._checked}set checked(s){this._setChecked(s)}_setChecked(s){this._checked!==s&&(this._checked=s,this._onDidChange.fire({checked:s}))}async run(s,i){this._actionCallback&&await this._actionCallback(s)}}e.Action=D;class y extends k.Disposable{constructor(){super(...arguments),this._onWillRun=this._register(new f.Emitter),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new f.Emitter),this.onDidRun=this._onDidRun.event}async run(s,i){if(!s.enabled)return;this._onWillRun.fire({action:s});let t;try{await this.runAction(s,i)}catch(n){t=n}this._onDidRun.fire({action:s,error:t})}async runAction(s,i){await s.run(i)}}e.ActionRunner=y;class p{constructor(){this.id=p.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...s){let i=[];for(const t of s)t.length&&(i.length?i=[...i,new p,...t]:i=t);return i}async run(){}}e.Separator=p,p.ID="vs.actions.separator";class w{get actions(){return this._actions}constructor(s,i,t,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=s,this.label=i,this.class=n,this._actions=t}async run(){}}e.SubmenuAction=w;class b extends D{constructor(){super(b.ID,E.localize(0,null),void 0,!1)}}e.EmptySubmenuAction=b,b.ID="vs.actions.empty";function C(o){var s;return{id:o.id,label:o.label,class:o.class,enabled:(s=o.enabled)!==null&&s!==void 0?s:!0,checked:o.checked,run:async(...i)=>o.run(...i),tooltip:o.label}}}),define(ie[335],ne([1,0,41]
`):b}function p(b){return b.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${b.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof b.code=="string"&&typeof b.errno=="number"&&typeof b.syscall=="string"?E.localize(1,null,b.message):b.message||E.localize(2,null)}function w(b=null,C=!1){if(!b)return E.localize(3,null);if(Array.isArray(b)){const o=f.coalesce(b),s=w(o[0],C);return o.length>1?E.localize(4,null,s,o.length):s}if(k.isString(b))return b;if(b.detail){const o=b.detail;if(o.error)return D(o.error,C);if(o.exception)return D(o.exception,C)}return b.stack?D(b,C):b.message?b.message:E.localize(5,null)}}),define(ie[615],ne([3,4]),function(Q,e){return Q.create("vs/base/common/keybindingLabels",e)}),define(ie[240],ne([1,0,615]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserSettingsLabelProvider=e.ElectronAcceleratorLabelProvider=e.AriaLabelProvider=e.UILabelProvider=e.ModifierLabelProvider=void 0;class k{constructor(y,p,w=p){this.modifierLabels=[null],this.modifierLabels[2]=y,this.modifierLabels[1]=p,this.modifierLabels[3]=w}toLabel(y,p,w){if(p.length===0)return null;const b=[];for(let C=0,o=p.length;C<o;C++){const s=p[C],i=w(s);if(i===null)return null;b[C]=E(s,i,this.modifierLabels[y])}return b.join(" ")}}e.ModifierLabelProvider=k,e.UILabelProvider=new k({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:f.localize(0,null),shiftKey:f.localize(1,null),altKey:f.localize(2,null),metaKey:f.localize(3,null),separator:"+"},{ctrlKey:f.localize(4,null),shiftKey:f.localize(5,null),altKey:f.localize(6,null),metaKey:f.localize(7,null),separator:"+"}),e.AriaLabelProvider=new k({ctrlKey:f.localize(8,null),shiftKey:f.localize(9,null),altKey:f.localize(10,null),metaKey:f.localize(11,null),separator:"+"},{ctrlKey:f.localize(12,null),shiftKey:f.localize(13,null),altKey:f.localize(14,null),metaKey:f.localize(15,null),separator:"+"},{ctrlKey:f.localize(16,null),shiftKey:f.localize(17,null),altKey:f.localize(18,null),metaKey:f.localize(19,null),separator:"+"}),e.ElectronAcceleratorLabelProvider=new k({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),e.UserSettingsLabelProvider=new k({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"});function E(D,y,p){if(y===null)return"";const w=[];return D.ctrlKey&&w.push(p.ctrlKey),D.shiftKey&&w.push(p.shiftKey),D.altKey&&w.push(p.altKey),D.metaKey&&w.push(p.metaKey),y!==""&&w.push(y),w.join(p.separator)}}),define(ie[616],ne([3,4]),function(Q,e){return Q.create("vs/base/common/platform",e)}),define(ie[17],ne([1,0,616]),function(Q,e,f){"use strict";var k,E;Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.OS=e.setTimeout0=e.setTimeout0IsFaster=e.language=e.userAgent=e.isMobile=e.isIOS=e.webWorkerOrigin=e.isWebWorker=e.isWeb=e.isNative=e.isLinux=e.isMacintosh=e.isWindows=e.LANGUAGE_DEFAULT=void 0,e.isLittleEndian=S,e.LANGUAGE_DEFAULT="en";let D=!1,y=!1,p=!1,w=!1,b=!1,C=!1,o=!1,s=!1,i=!1,t=!1,n,c=e.LANGUAGE_DEFAULT,m=e.LANGUAGE_DEFAULT,u,r;const a=globalThis;let h;typeof a.vscode<"u"&&typeof a.vscode.process<"u"?h=a.vscode.process:typeof process<"u"&&typeof((k=process==null?void 0:process.versions)===null||k===void 0?void 0:k.node)=="string"&&(h=process);const l=typeof((E=h?.versions)===null||E===void 0?void 0:E.electron)=="string",g=l&&h?.type==="renderer";if(typeof h=="object"){D=h.platform==="win32",y=h.platform==="darwin",p=h.platform==="linux",w=p&&!!h.env.SNAP&&!!h.env.SNAP_REVISION,o=l,i=!!h.env.CI||!!h.env.BUILD_ARTIFACTSTAGINGDIRECTORY,n=e.LANGUAGE_DEFAULT,c=e.LANGUAGE_DEFAULT;const L=h.env.VSCODE_NLS_CONFIG;if(L)try{const I=JSON.parse(L),T=I.availableLanguages["*"];n=I.locale,m=I.osLocale,c=T||e.LANGUAGE_DEFAULT,u=I._translationsConfigFile}catch{}b=!0}els
`)n.type===2&&(n=c.pop()),n.children.push({type:8});else if(n.type!==2){const a={type:2,content:u};n.children.push(a),c.push(n),n=a}else n.content+=u}return n.type===2&&(n=c.pop()),c.length,i}function b(o,s){return C(o,s)!==0}function C(o,s){switch(o){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return s?7:0;default:return 0}}}),define(ie[166],ne([1,0,6,2]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalPointerMoveMonitor=void 0;class E{constructor(){this._hooks=new k.DisposableStore,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(y,p){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const w=this._onStopCallback;this._onStopCallback=null,y&&w&&w(p)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(y,p,w,b,C){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=b,this._onStopCallback=C;let o=y;try{y.setPointerCapture(p),this._hooks.add((0,k.toDisposable)(()=>{try{y.releasePointerCapture(p)}catch{}}))}catch{o=f.getWindow(y)}this._hooks.add(f.addDisposableListener(o,f.EventType.POINTER_MOVE,s=>{if(s.buttons!==w){this.stopMonitoring(!0);return}s.preventDefault(),this._pointerMoveCallback(s)})),this._hooks.add(f.addDisposableListener(o,f.EventType.POINTER_UP,s=>this.stopMonitoring(!0)))}}e.GlobalPointerMoveMonitor=E}),define(ie[246],ne([1,0,6,7,2]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PixelRatio=void 0;class D extends E.Disposable{constructor(b){super(),this._onDidChange=this._register(new k.Emitter),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(b,!0),this._mediaQueryList=null,this._handleChange(b,!1)}_handleChange(b,C){var o;(o=this._mediaQueryList)===null||o===void 0||o.removeEventListener("change",this._listener),this._mediaQueryList=b.matchMedia(`(resolution: ${b.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),C&&this._onDidChange.fire()}}class y extends E.Disposable{get value(){return this._value}constructor(b){super(),this._onDidChange=this._register(new k.Emitter),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(b);const C=this._register(new D(b));this._register(C.onDidChange(()=>{this._value=this._getPixelRatio(b),this._onDidChange.fire(this._value)}))}_getPixelRatio(b){const C=document.createElement("canvas").getContext("2d"),o=b.devicePixelRatio||1,s=C.webkitBackingStorePixelRatio||C.mozBackingStorePixelRatio||C.msBackingStorePixelRatio||C.oBackingStorePixelRatio||C.backingStorePixelRatio||1;return o/s}}class p{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(b){const C=(0,f.getWindowId)(b);let o=this.mapWindowIdToPixelRatioMonitor.get(C);return o||(o=(0,E.markAsSingleton)(new y(b)),this.mapWindowIdToPixelRatioMonitor.set(C,o),(0,E.markAsSingleton)(k.Event.once(f.onDidUnregisterWindow)(({vscodeWindowId:s})=>{s===C&&(o?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(C))}))),o}getInstance(b){return this._getOrCreatePixelRatioMonitor(b)}}e.PixelRatio=new p}),define(ie[68],ne([1,0,6,52,13,121,7,2,70]),function(Q,e,f,k,E,D,y,p,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gesture=e.EventType=void 0;var b;(function(o){o.Tap="-monaco-gesturetap",o.Change="-monaco-gesturechange",o.Start="-monaco-gesturestart",o.End="-monaco-gesturesend",o.Contextmenu="-monaco-gesturecontextmenu"})(b||(e.EventType=b={}));class C extends p.Disposable{constructor(){super(),this.dispatched=!1,this.targets=new w.LinkedList,this.ignoreTargets=new w.LinkedList,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(y.Event.runAndSubscribe(f.onDidRegisterWindow,({window:s,disposables:i})=>{i.add(f.addDisposableListener(s.document,"touchstart",t=>this.onTouchStart(t),{passive:!1})),i.add(f.addDisposableListener(s.document,"touchend",t=>this.onTouchEnd(s,t))),i.add(f.addDisposableListener(s.document,"tou
:host {
all: initial; /* 1st rule so subsequent properties are reset. */
}
.codicon[class*='codicon-'] {
font: normal normal normal 16px/1 codicon;
display: inline-block;
text-decoration: none;
text-rendering: auto;
text-align: center;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
:host {
font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;
}
:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }
:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }
:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
`}),define(ie[341],ne([1,0,6,12,442]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CountBadge=void 0;class E{constructor(y,p,w){this.options=p,this.styles=w,this.count=0,this.element=(0,f.append)(y,(0,f.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(y){this.count=y,this.render()}setTitleFormat(y){this.titleFormat=y,this.render()}render(){var y,p;this.element.textContent=(0,k.format)(this.countFormat,this.count),this.element.title=(0,k.format)(this.titleFormat,this.count),this.element.style.backgroundColor=(y=this.styles.badgeBackground)!==null&&y!==void 0?y:"",this.element.style.color=(p=this.styles.badgeForeground)!==null&&p!==void 0?p:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}e.CountBadge=E}),define(ie[623],ne([1,0,6,46,68,41,7,295]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownMenu=void 0;class p extends D.ActionRunner{constructor(C,o){super(),this._onDidChangeVisibility=this._register(new y.Emitter),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,f.append)(C,(0,f.$)(".monaco-dropdown")),this._label=(0,f.append)(this._element,(0,f.$)(".dropdown-label"));let s=o.labelRenderer;s||(s=t=>(t.textContent=o.label||"",null));for(const t of[f.EventType.CLICK,f.EventType.MOUSE_DOWN,E.EventType.Tap])this._register((0,f.addDisposableListener)(this.element,t,n=>f.EventHelper.stop(n,!0)));for(const t of[f.EventType.MOUSE_DOWN,E.EventType.Tap])this._register((0,f.addDisposableListener)(this._label,t,n=>{(0,f.isMouseEvent)(n)&&(n.detail>1||n.button!==0)||(this.visible?this.hide():this.show())}));this._register((0,f.addDisposableListener)(this._label,f.EventType.KEY_UP,t=>{const n=new k.StandardKeyboardEvent(t);(n.equals(3)||n.equals(10))&&(f.EventHelper.stop(t,!0),this.visible?this.hide():this.show())}));const i=s(this._label);i&&this._register(i),this._register(E.Gesture.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class w extends p{constructor(C,o){super(C,o),this._options=o,this._actions=[],this.actions=o.actions||[]}set menuOptions(C){this._menuOptions=C}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(C){this._actions=C}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(C,o)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(C,o):void 0,getKeyBinding:C=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(C):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}e.DropdownMenu=w}),define(ie[110],ne([1,0,6,31]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderLabelWithIcons=D,e.renderIcon=y;const E=new RegExp(`(\\\\)?\\$\\((${k.ThemeIcon.iconNameExpression}(?:${k.ThemeIcon.iconModifierExpression})?)\\)`,"g");function D(p){const w=new Array;let b,C=0,o=0;for(;(b=E.exec(p))!==null;){o=b.index
`?-1:0,n+=s;for(const c of o)c.end<=n||(c.start>=n&&(c.start+=i),c.end>=n&&(c.end+=i));return s+=i,"\u23CE"})}}e.HighlightedLabel=w}),define(ie[247],ne([1,0,6,342,2,55,184,44,77,20,137,444]),function(Q,e,f,k,E,D,y,p,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IconLabel=void 0;class o{constructor(m){this._element=m}get element(){return this._element}set textContent(m){this.disposed||m===this._textContent||(this._textContent=m,this._element.textContent=m)}set className(m){this.disposed||m===this._className||(this._className=m,this._element.className=m)}set empty(m){this.disposed||m===this._empty||(this._empty=m,this._element.style.marginLeft=m?"0":"")}dispose(){this.disposed=!0}}class s extends E.Disposable{constructor(m,u){var r;super(),this.customHovers=new Map,this.creationOptions=u,this.domNode=this._register(new o(f.append(m,f.$(".monaco-icon-label")))),this.labelContainer=f.append(this.domNode.element,f.$(".monaco-icon-label-container")),this.nameContainer=f.append(this.labelContainer,f.$("span.monaco-icon-name-container")),u?.supportHighlights||u?.supportIcons?this.nameNode=this._register(new n(this.nameContainer,!!u.supportIcons)):this.nameNode=new i(this.nameContainer),this.hoverDelegate=(r=u?.hoverDelegate)!==null&&r!==void 0?r:(0,p.getDefaultHoverDelegate)("mouse")}get element(){return this.domNode.element}setLabel(m,u,r){var a;const h=["monaco-icon-label"],l=["monaco-icon-label-container"];let g="";if(r&&(r.extraClasses&&h.push(...r.extraClasses),r.italic&&h.push("italic"),r.strikethrough&&h.push("strikethrough"),r.disabledCommand&&l.push("disabled"),r.title&&(typeof r.title=="string"?g+=r.title:g+=m)),this.domNode.className=h.join(" "),this.domNode.element.setAttribute("aria-label",g),this.labelContainer.className=l.join(" "),this.setupHover(r?.descriptionTitle?this.labelContainer:this.element,r?.title),this.nameNode.setLabel(m,r),u||this.descriptionNode){const d=this.getOrCreateDescriptionNode();d instanceof k.HighlightedLabel?(d.set(u||"",r?r.descriptionMatches:void 0,void 0,r?.labelEscapeNewLines),this.setupHover(d.element,r?.descriptionTitle)):(d.textContent=u&&r?.labelEscapeNewLines?k.HighlightedLabel.escapeNewLines(u,[]):u||"",this.setupHover(d.element,r?.descriptionTitle||""),d.empty=!u)}if(r?.suffix||this.suffixNode){const d=this.getOrCreateSuffixNode();d.textContent=(a=r?.suffix)!==null&&a!==void 0?a:""}}setupHover(m,u){const r=this.customHovers.get(m);if(r&&(r.dispose(),this.customHovers.delete(m)),!u){m.removeAttribute("title");return}if(this.hoverDelegate.showNativeHover)(function(h,l){(0,b.isString)(l)?h.title=(0,C.stripIcons)(l):l?.markdownNotSupportedFallback?h.title=l.markdownNotSupportedFallback:h.removeAttribute("title")})(m,u);else{const a=(0,w.getBaseLayerHoverDelegate)().setupUpdatableHover(this.hoverDelegate,m,u);a&&this.customHovers.set(m,a)}}dispose(){super.dispose();for(const m of this.customHovers.values())m.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const m=this._register(new o(f.after(this.nameContainer,f.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new o(f.append(m.element,f.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var m;if(!this.descriptionNode){const u=this._register(new o(f.append(this.labelContainer,f.$("span.monaco-icon-description-container"))));!((m=this.creationOptions)===null||m===void 0)&&m.supportDescriptionHighlights?this.descriptionNode=this._register(new k.HighlightedLabel(f.append(u.element,f.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new o(f.append(u.element,f.$("span.label-description"))))}return this.descriptionNode}}e.IconLabel=s;class i{constructor(m){this.container=m,this.label=void 0,this.singleLabel=void 0}setLabel(m,u){if(!(this.label===m&&(0,D.equals)(this.options,u)))if(this.label=m,this.options=u,typeof m=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=f.append(this.container,f.$("a.l
.monaco-drag-image,
.monaco-list${B}:focus .monaco-list-row.selected.focused { background-color: ${X.listFocusAndSelectionBackground}; }
`),X.listFocusAndSelectionForeground&&q.push(`
.monaco-drag-image,
.monaco-list${B}:focus .monaco-list-row.selected.focused { color: ${X.listFocusAndSelectionForeground}; }
`),X.listInactiveFocusForeground&&(q.push(`.monaco-list${B} .monaco-list-row.focused { color: ${X.listInactiveFocusForeground}; }`),q.push(`.monaco-list${B} .monaco-list-row.focused:hover { color: ${X.listInactiveFocusForeground}; }`)),X.listInactiveSelectionIconForeground&&q.push(`.monaco-list${B} .monaco-list-row.focused .codicon { color: ${X.listInactiveSelectionIconForeground}; }`),X.listInactiveFocusBackground&&(q.push(`.monaco-list${B} .monaco-list-row.focused { background-color: ${X.listInactiveFocusBackground}; }`),q.push(`.monaco-list${B} .monaco-list-row.focused:hover { background-color: ${X.listInactiveFocusBackground}; }`)),X.listInactiveSelectionBackground&&(q.push(`.monaco-list${B} .monaco-list-row.selected { background-color: ${X.listInactiveSelectionBackground}; }`),q.push(`.monaco-list${B} .monaco-list-row.selected:hover { background-color: ${X.listInactiveSelectionBackground}; }`)),X.listInactiveSelectionForeground&&q.push(`.monaco-list${B} .monaco-list-row.selected { color: ${X.listInactiveSelectionForeground}; }`),X.listHoverBackground&&q.push(`.monaco-list${B}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${X.listHoverBackground}; }`),X.listHoverForeground&&q.push(`.monaco-list${B}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${X.listHoverForeground}; }`);const V=(0,f.asCssValueWithDefault)(X.listFocusAndSelectionOutline,(0,f.asCssValueWithDefault)(X.listSelectionOutline,(ae=X.listFocusOutline)!==null&&ae!==void 0?ae:""));V&&q.push(`.monaco-list${B}:focus .monaco-list-row.focused.selected { outline: 1px solid ${V}; outline-offset: -1px;}`),X.listFocusOutline&&q.push(`
.monaco-drag-image,
.monaco-list${B}:focus .monaco-list-row.focused { outline: 1px solid ${X.listFocusOutline}; outline-offset: -1px; }
.monaco-workbench.context-menu-visible .monaco-list${B}.last-focused .monaco-list-row.focused { outline: 1px solid ${X.listFocusOutline}; outline-offset: -1px; }
`);const $=(0,f.asCssValueWithDefault)(X.listSelectionOutline,(oe=X.listInactiveFocusOutline)!==null&&oe!==void 0?oe:"");$&&q.push(`.monaco-list${B} .monaco-list-row.focused.selected { outline: 1px dotted ${$}; outline-offset: -1px; }`),X.listSelectionOutline&&q.push(`.monaco-list${B} .monaco-list-row.selected { outline: 1px dotted ${X.listSelectionOutline}; outline-offset: -1px; }`),X.listInactiveFocusOutline&&q.push(`.monaco-list${B} .monaco-list-row.focused { outline: 1px dotted ${X.listInactiveFocusOutline}; outline-offset: -1px; }`),X.listHoverOutline&&q.push(`.monaco-list${B} .monaco-list-row:hover { outline: 1px dashed ${X.listHoverOutline}; outline-offset: -1px; }`),X.listDropOverBackground&&q.push(`
.monaco-list${B}.drop-target,
.monaco-list${B} .monaco-list-rows.drop-target,
.monaco-list${B} .monaco-list-row.drop-target { background-color: ${X.listDropOverBackground} !important; color: inherit !important; }
`),X.listDropBetweenBackground&&(q.push(`
.monaco-list${B} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,
.monaco-list${B} .monaco-list-row.drop-target-before::before {
content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;
background-color: ${X.listDropBetweenBackground};
}`),q.push(`
.monaco-list${B} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,
.monaco-list${B} .monaco-list-row.drop-target-after::after {
content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;
background-color: ${X.listDropBetweenBackground};
}`)),X.tableColumnsBorder&&q.push(`
.monaco-table > .monaco-split-view2,
.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,
.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,
.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
border-color: ${X.tableColumnsBorder};
}
.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,
.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {
border-color: transparent;
}
`),X.tableOddRowsBackgroundColor&&q.push(`
.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,
.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,
.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {
background-color: ${X.tableOddRowsBackgroundColor};
}
`),this.styleElement.textContent=q.join(`
`)}}e.DefaultStyleController=G,e.unthemedListStyles={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:C.Color.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:C.Color.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:C.Color.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0};const te={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}};function ee(ge,X){const ae=ge.indexOf(X);if(ae===-1)return[];const oe=[];let B=ae-1;for(;B>=0&&ge[B]===X-(ae-B);)oe.push(ge[B--]);for(oe.reverse(),B=ae;B<ge.length&&ge[B]===X+(B-ae);)oe.push(ge[B++]);return oe}function Y(ge,X){const ae=[];let oe=0,B=0;for(;oe<ge.length||B<X.length;)if(oe>=ge.length)ae.push(X[B++]);else if(B>=X.length)ae.push(ge[oe++]);else if(ge[oe]===X[B]){ae.push(ge[oe]),oe++,B++;continue}else ge[oe]<X[B]?ae.push(ge[oe++]):ae.push(X[B++]);return ae}function P(ge,X){const ae=[];let oe=0,B=0;for(;oe<ge.length||B<X.length;)if(oe>=ge.length)ae.push(X[B++]);else if(B>=X.length)ae.push(ge[oe++]);else if(ge[oe]===X[B]){oe++,B++;continue}else ge[oe]<X[B]?ae.push(ge[oe++]):B++;return ae}const Z=(ge,X)=>ge-X;class re{constructor(X,ae){this._templateId=X,this.renderers=ae}get templateId(){return this._templateId}renderTemplate(X){return this.renderers.map(ae=>ae.renderTemplate(X))}renderElement(X,ae,oe,B){let q=0;for(const V of this.renderers)V.renderElement(X,ae,oe[q++],B)}disposeElement(X,ae,oe,B){var q;let V=0;for(const $ of this.renderers)(q=$.disposeElement)===null||q===void 0||q.call($,X,ae,oe[V],B),V+=1}disposeTemplate(X){let ae=0;for(const oe of this.renderers)oe.disposeTemplate(X[ae++])}}class ce{constructor(X){this.accessibilityProvider=X,this.templateId="a18n"}renderTemplate(X){return{container:X,disposables:new t.DisposableStore}}renderElement(X,ae,oe){const B=this.accessibilityProvider.getAriaLabel(X),q=B&&typeof B!="string"?B:(0,h.constObservable)(B);oe.disposables.add((0,h.autorun)($=>{this.setAriaLabel($.readObservable(q),oe.container)}));const V=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(X);typeof V=="number"?oe.container.setAttribute("aria-level",`${V}`):oe.container.removeAttribute("aria-level")}setAriaLabel(X,ae){X?ae.setAttribute("aria-label",X):ae.removeAttribute("aria-label")}disposeElement(X,ae,oe,B){oe.disposables.clear()}disposeTemplate(X){X.disposables.dispose()}}class he{constructor(X,ae){this.list=X,this.dnd=ae}getDragElements(X){const ae=this.list.getSelectedElements();return ae.indexOf(X)>-1?ae:[X]}getDragURI(X){return this.dnd.getDragURI(X)}getDragLabel(X,ae){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(X,ae)}onDragStart(X,ae){var oe,B;(B=(oe=this.dnd).onDragStart)===null||B===void 0||B.call(oe,X,ae)}onDragOver(X,ae,oe,B,q){return this.dnd.onDragOver(X,ae,oe,B,q)}onDragLeave(X,ae,oe,B){var q,V;(V=(q=this.dnd).onDragLeave)===null||V===void 0||V.call(q,X,ae,oe,B)}onDragEnd(X){var ae,oe;(oe=(ae=this.dnd).onDragEnd)===null||oe===void 0||oe.call(ae,X)}drop(X,ae,oe,B,q){this.dnd.drop(X,ae,oe,B,q)}dispose(){this.dnd.dispose()}}class pe{get onDidChangeFocus(){return s.Event.map(this.eventBufferer.wrapEvent(this.focus.onChan
top: ${this.virtualDelegate.headerRowHeight+1}px;
height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
}`),this.styleElement.textContent=n.join(`
`),this.list.style(t)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}e.Table=s,s.InstanceCount=0}),define(ie[169],ne([1,0,80,31,7,44,77,455]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Toggle=e.unthemedToggleStyles=void 0,e.unthemedToggleStyles={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class p extends f.Widget{constructor(b){var C;super(),this._onChange=this._register(new E.Emitter),this.onChange=this._onChange.event,this._onKeyDown=this._register(new E.Emitter),this.onKeyDown=this._onKeyDown.event,this._opts=b,this._checked=this._opts.isChecked;const o=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,o.push(...k.ThemeIcon.asClassNameArray(this._icon))),this._opts.actionClassName&&o.push(...this._opts.actionClassName.split(" ")),this._checked&&o.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,y.getBaseLayerHoverDelegate)().setupUpdatableHover((C=b.hoverDelegate)!==null&&C!==void 0?C:(0,D.getDefaultHoverDelegate)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...o),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,s=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),s.preventDefault())}),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,s=>{if(s.keyCode===10||s.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),s.preventDefault(),s.stopPropagation();return}this._onKeyDown.fire(s)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(b){this._checked=b,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}e.Toggle=p}),define(ie[345],ne([1,0,44,169,26,604]),function(Q,e,f,k,E,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegexToggle=e.WholeWordsToggle=e.CaseSensitiveToggle=void 0;const y=D.localize(0,null),p=D.localize(1,null),w=D.localize(2,null);class b extends k.Toggle{constructor(i){var t;super({icon:E.Codicon.caseSensitive,title:y+i.appendTitle,isChecked:i.isChecked,hoverDelegate:(t=i.hoverDelegate)!==null&&t!==void 0?t:(0,f.getDefaultHoverDelegate)("element"),inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}}e.CaseSensitiveToggle=b;class C extends k.Toggle{constructor(i){var t;super({icon:E.Codicon.wholeWord,title:p+i.appendTitle,isChecked:i.isChecked,hoverDelegate:(t=i.hoverDelegate)!==null&&t!==void 0?t:(0,f.getDefaultHoverDelegate)("element"),inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBackground:i.inputActiveOptionBackground})}}e.WholeWordsToggle=C;class o extends k.Toggle{constructor(i){var t;super({icon:E.Codicon.regex,title:w+i.appendTitle,isChecked:i.isChecked,hoverDelegate:(t=i.hoverDelegate)!==null&&t!==void 0?t:(0,f.getDefaultHoverDelegate)("element"),inputActiveOptionBorder:i.inputActiveOptionBorder,inputActiveOptionForeground:i.inputActiveOptionForeground,inputActiveOptionBac
`:`
`),this}appendMarkdown(m){return this.value+=m,this}appendCodeblock(m,u){return this.value+=`
${s(u,m)}
`,this}appendLink(m,u,r){return this.value+="[",this.value+=this._escape(u,"]"),this.value+="](",this.value+=this._escape(String(m),")"),r&&(this.value+=` "${this._escape(this._escape(r,'"'),")")}"`),this.value+=")",this}_escape(m,u){const r=new RegExp((0,D.escapeRegExpCharacters)(u),"g");return m.replace(r,(a,h)=>m.charAt(h-1)!=="\\"?`\\${a}`:a)}}e.MarkdownString=p;function w(c){return b(c)?!c.value:Array.isArray(c)?c.every(w):!0}function b(c){return c instanceof p?!0:c&&typeof c=="object"?typeof c.value=="string"&&(typeof c.isTrusted=="boolean"||typeof c.isTrusted=="object"||c.isTrusted===void 0)&&(typeof c.supportThemeIcons=="boolean"||c.supportThemeIcons===void 0):!1}function C(c,m){return c===m?!0:!c||!m?!1:c.value===m.value&&c.isTrusted===m.isTrusted&&c.supportThemeIcons===m.supportThemeIcons&&c.supportHtml===m.supportHtml&&(c.baseUri===m.baseUri||!!c.baseUri&&!!m.baseUri&&(0,E.isEqual)(y.URI.from(c.baseUri),y.URI.from(m.baseUri)))}function o(c){return c.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function s(c,m){var u,r;const a=(r=(u=c.match(/^`+/gm))===null||u===void 0?void 0:u.reduce((l,g)=>l.length>g.length?l:g).length)!==null&&r!==void 0?r:0,h=a>=3?a+1:3;return[`${"`".repeat(h)}${m}`,c,`${"`".repeat(h)}`].join(`
`)}function i(c){return c.replace(/"/g,"&quot;")}function t(c){return c&&c.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}function n(c){const m=[],u=c.split("|").map(a=>a.trim());c=u[0];const r=u[1];if(r){const a=/height=(\d+)/.exec(r),h=/width=(\d+)/.exec(r),l=a?a[1]:"",g=h?h[1]:"",d=isFinite(parseInt(g)),v=isFinite(parseInt(l));d&&m.push(`width="${g}"`),v&&m.push(`height="${l}"`)}return{href:c,dimensions:m}}}),define(ie[201],ne([1,0,6,338,89,339,46,73,110,10,7,57,137,181,95,2,428,245,49,55,50,12,22]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m,u,r,a,h,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.allowedMarkdownAttr=void 0,e.renderMarkdown=d,e.renderStringAsPlaintext=I,e.renderMarkdownAsPlaintext=T,e.fillInIncompleteTokens=x;const g=Object.freeze({image:(P,Z,re)=>{let ce=[],he=[];return P&&({href:P,dimensions:ce}=(0,o.parseHrefAndDimensions)(P),he.push(`src="${(0,o.escapeDoubleQuotes)(P)}"`)),re&&he.push(`alt="${(0,o.escapeDoubleQuotes)(re)}"`),Z&&he.push(`title="${(0,o.escapeDoubleQuotes)(Z)}"`),ce.length&&(he=he.concat(ce)),"<img "+he.join(" ")+">"},paragraph:P=>`<p>${P}</p>`,link:(P,Z,re)=>typeof P!="string"?"":(P===re&&(re=(0,o.removeMarkdownEscapes)(re)),Z=typeof Z=="string"?(0,o.escapeDoubleQuotes)((0,o.removeMarkdownEscapes)(Z)):"",P=(0,o.removeMarkdownEscapes)(P),P=P.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),`<a href="${P}" title="${Z||P}" draggable="false">${re}</a>`)});function d(P,Z={},re={}){var ce,he;const pe=new n.DisposableStore;let ge=!1;const X=(0,D.createElement)(Z),ae=function(le){let fe;try{fe=(0,m.parse)(decodeURIComponent(le))}catch{}return fe?(fe=(0,r.cloneAndChange)(fe,ve=>{if(P.uris&&P.uris[ve])return l.URI.revive(P.uris[ve])}),encodeURIComponent(JSON.stringify(fe))):le},oe=function(le,fe){const ve=P.uris&&P.uris[le];let Ce=l.URI.revive(ve);return fe?le.startsWith(u.Schemas.data+":")?le:(Ce||(Ce=l.URI.parse(le)),u.FileAccess.uriToBrowserUri(Ce).toString(!0)):!Ce||l.URI.parse(le).toString()===Ce.toString()?le:(Ce.query&&(Ce=Ce.with({query:ae(Ce.query)})),Ce.toString())},B=new c.marked.Renderer;B.image=g.image,B.link=g.link,B.paragraph=g.paragraph;const q=[],V=[];if(Z.codeBlockRendererSync?B.code=(le,fe)=>{const ve=i.defaultGenerator.nextId(),Ce=Z.codeBlockRendererSync(v(fe),le);return V.push([ve,Ce]),`<div class="code" data-code="${ve}">${(0,h.escape)(le)}</div>`}:Z.codeBlockRenderer&&(B.code=(le,fe)=>{const ve=i.defaultGenerator.nextId(),Ce=Z.codeBlockRenderer(v(fe),le);return q.push(Ce.then(Se=>[ve,Se])),`<div class="code" data-code="${ve}">${(0,h.escape)(le)}</div>`}),Z.actionHandler){const le=function(Ce){let Se=Ce.target;if(!(Se.tagName!=="A"&&(Se=Se.parentElement,!Se||Se.tagName!=="A")))try{let _e=Se.dataset.href;_e&&(P.baseUri&&(_e=_(l.URI.from(P.baseUri),_e)),Z.actionHandler.callback(_e,Ce))}catch(_e){(0,b.onUnexpectedError)(_e)}finally{Ce.preventDefault()}},fe=Z.actionHandler.disposables.add(new E.DomEmitter(X,"click")),ve=Z.actionHandler.disposables.add(new E.DomEmitter(X,"auxclick"));Z.actionHandler.disposables.add(C.Event.any(fe.event,ve.event)(Ce=>{const Se=new p.StandardMouseEvent(f.getWindow(X),Ce);!Se.leftButton&&!Se.middleButton||le(Se)})),Z.actionHandler.disposables.add(f.addDisposableListener(X,"keydown",Ce=>{const Se=new y.StandardKeyboardEvent(Ce);!Se.equals(10)&&!Se.equals(3)||le(Se)}))}P.supportHtml||(re.sanitizer=le=>(P.isTrusted?le.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?le:"",re.sanitize=!0,re.silent=!0),re.renderer=B;let $=(ce=P.value)!==null&&ce!==void 0?ce:"";$.length>1e5&&($=`${$.substr(0,1e5)}\u2026`),P.supportThemeIcons&&($=(0,s.markdownEscapeEscapedIcons)($));let J;if(Z.fillInIncompleteTokens){const le={...c.marked.defaults,...re},fe=c.marked.lexer($,le),ve=x(fe);J=c.marked.parser(ve,le)}else J=c.marked.parse($,re);P.supportThemeIcons&&(J=(0,w.renderLabelWithIcons)(J).map(fe=>typeof fe=="string"?fe:fe.outerHTML).join(""));const de=new DOMParser().parseFromString(S(P,J),"text/html");if(de.body.querySelectorAll("img, audio, video, source").forEach(le=>{const fe=le.getAttrib
`,P.hr=()=>"",P.list=(Z,re)=>Z,P.listitem=Z=>Z+`
`,P.paragraph=Z=>Z+`
`,P.table=(Z,re)=>Z+re+`
`,P.tablerow=Z=>Z,P.tablecell=(Z,re)=>Z+" ",P.strong=Z=>Z,P.em=Z=>Z,P.codespan=Z=>Z,P.br=()=>`
`,P.del=Z=>Z,P.image=(Z,re,ce)=>"",P.text=Z=>Z,P.link=(Z,re,ce)=>ce,P});function O(P){let Z="";return P.forEach(re=>{Z+=re.raw}),Z}function M(P){var Z,re;for(let ce=0;ce<P.tokens.length;ce++){const he=P.tokens[ce];if(he.type==="text"){const pe=he.raw.split(`
`),ge=pe[pe.length-1];if(ge.includes("`"))return W(P);if(ge.includes("**"))return G(P);if(ge.match(/\*\w/))return H(P);if(ge.match(/(^|\s)__\w/))return te(P);if(ge.match(/(^|\s)_\w/))return z(P);if(ge.match(/(^|\s)\[.*\]\(\w*/)){const X=P.tokens.slice(ce+1);return((Z=X[0])===null||Z===void 0?void 0:Z.type)==="link"&&((re=X[1])===null||re===void 0?void 0:re.type)==="text"&&X[1].raw.match(/^ *"[^"]*$/)?K(P):j(P)}else{if(R(ge))return j(P);if(ge.match(/(^|\s)\[\w/)&&!P.tokens.slice(ce+1).some(X=>R(X.raw)))return U(P)}}}}function R(P){return!!P.match(/^[^\[]*\]\([^\)]*$/)}function x(P){let Z,re;for(Z=0;Z<P.length;Z++){const ce=P[Z];let he;if(ce.type==="paragraph"&&(he=ce.raw.match(/(\n|^)(````*)/))){const pe=he[2];re=F(P.slice(Z),pe);break}if(ce.type==="paragraph"&&ce.raw.match(/(\n|^)\|/)){re=Y(P.slice(Z));break}if(Z===P.length-1&&ce.type==="paragraph"){const pe=M(ce);if(pe){re=[pe];break}}}if(re){const ce=[...P.slice(0,Z),...re];return ce.links=P.links,ce}return P}function F(P,Z){const re=O(P);return c.marked.lexer(re+`
${Z}`)}function W(P){return ee(P,"`")}function H(P){return ee(P,"*")}function z(P){return ee(P,"_")}function j(P){return ee(P,")")}function K(P){return ee(P,'")')}function U(P){return ee(P,"](about:blank)")}function G(P){return ee(P,"**")}function te(P){return ee(P,"__")}function ee(P,Z){const re=O(Array.isArray(P)?P:[P]);return c.marked.lexer(re+Z)[0]}function Y(P){const Z=O(P),re=Z.split(`
`);let ce,he=!1;for(let pe=0;pe<re.length;pe++){const ge=re[pe].trim();if(typeof ce>"u"&&ge.match(/^\s*\|/)){const X=ge.match(/(\|[^\|]+)(?=\||$)/g);X&&(ce=X.length)}else if(typeof ce=="number")if(ge.match(/^\s*\|/)){if(pe!==re.length-1)return;he=!0}else return}if(typeof ce=="number"&&ce>0){const pe=he?re.slice(0,-1).join(`
`):Z,ge=!!pe.match(/\|\s*$/),X=pe+(ge?"":"|")+`
|${" --- |".repeat(ce)}`;return c.marked.lexer(X)}}}),define(ie[251],ne([1,0,6,338,46,201,68,44,110,35,7,57,2,31,77,438]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Button=e.unthemedButtonStyles=void 0,e.unthemedButtonStyles={buttonBackground:"#0E639C",buttonHoverBackground:"#006BB3",buttonSeparator:b.Color.white.toString(),buttonForeground:b.Color.white.toString(),buttonBorder:void 0,buttonSecondaryBackground:void 0,buttonSecondaryForeground:void 0,buttonSecondaryHoverBackground:void 0};class n extends s.Disposable{get onDidClick(){return this._onDidClick.event}constructor(m,u){super(),this._label="",this._onDidClick=this._register(new C.Emitter),this._onDidEscape=this._register(new C.Emitter),this.options=u,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!u.secondary);const r=u.secondary?u.buttonSecondaryBackground:u.buttonBackground,a=u.secondary?u.buttonSecondaryForeground:u.buttonForeground;this._element.style.color=a||"",this._element.style.backgroundColor=r||"",u.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),typeof u.title=="string"&&this.setTitle(u.title),typeof u.ariaLabel=="string"&&this._element.setAttribute("aria-label",u.ariaLabel),m.appendChild(this._element),this._register(y.Gesture.addTarget(this._element)),[f.EventType.CLICK,y.EventType.Tap].forEach(h=>{this._register((0,f.addDisposableListener)(this._element,h,l=>{if(!this.enabled){f.EventHelper.stop(l);return}this._onDidClick.fire(l)}))}),this._register((0,f.addDisposableListener)(this._element,f.EventType.KEY_DOWN,h=>{const l=new E.StandardKeyboardEvent(h);let g=!1;this.enabled&&(l.equals(3)||l.equals(10))?(this._onDidClick.fire(h),g=!0):l.equals(9)&&(this._onDidEscape.fire(h),this._element.blur(),g=!0),g&&f.EventHelper.stop(l,!0)})),this._register((0,f.addDisposableListener)(this._element,f.EventType.MOUSE_OVER,h=>{this._element.classList.contains("disabled")||this.updateBackground(!0)})),this._register((0,f.addDisposableListener)(this._element,f.EventType.MOUSE_OUT,h=>{this.updateBackground(!1)})),this.focusTracker=this._register((0,f.trackFocus)(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.updateBackground(!0)})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.updateBackground(!1)}))}dispose(){super.dispose(),this._element.remove()}getContentElements(m){const u=[];for(let r of(0,w.renderLabelWithIcons)(m))if(typeof r=="string"){if(r=r.trim(),r==="")continue;const a=document.createElement("span");a.textContent=r,u.push(a)}else u.push(r);return u}updateBackground(m){let u;this.options.secondary?u=m?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:u=m?this.options.buttonHoverBackground:this.options.buttonBackground,u&&(this._element.style.backgroundColor=u)}get element(){return this._element}set label(m){var u;if(this._label===m||(0,o.isMarkdownString)(this._label)&&(0,o.isMarkdownString)(m)&&(0,o.markdownStringEqual)(this._label,m))return;this._element.classList.add("monaco-text-button");const r=this.options.supportShortLabel?this._labelElement:this._element;if((0,o.isMarkdownString)(m)){const h=(0,D.renderMarkdown)(m,{inline:!0});h.dispose();const l=(u=h.element.querySelector("p"))===null||u===void 0?void 0:u.innerHTML;if(l){const g=(0,k.sanitize)(l,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});r.innerHTML=g}else(0,f.reset)(r)}else this.options.supportIcons?(0,f.reset)(r,...this.getContentElements(m)):r.textContent=m;let a="";typeof this.options.title=
`)}styleSelectElement(){var a,h,l;const g=(a=this.styles.selectBackground)!==null&&a!==void 0?a:"",d=(h=this.styles.selectForeground)!==null&&h!==void 0?h:"",v=(l=this.styles.selectBorder)!==null&&l!==void 0?l:"";this.selectElement.style.backgroundColor=g,this.selectElement.style.color=d,this.selectElement.style.borderColor=v}styleList(){var a,h;const l=(a=this.styles.selectBackground)!==null&&a!==void 0?a:"",g=f.asCssValueWithDefault(this.styles.selectListBackground,l);this.selectDropDownListContainer.style.backgroundColor=g,this.selectionDetailsPane.style.backgroundColor=g;const d=(h=this.styles.focusBorder)!==null&&h!==void 0?h:"";this.selectDropDownContainer.style.outlineColor=d,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(a,h,l){const g=document.createElement("option");return g.value=a,g.text=a,g.disabled=!!l,g}showSelectDropDown(){this.selectionDetailsPane.innerText="",!(!this.contextViewProvider||this._isVisible)&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:a=>this.renderSelectDropDown(a,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:a=>this.renderSelectDropDown(a),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(a){!this.contextViewProvider||!this._isVisible||(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),a&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(a,h){return a.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(h),{dispose:()=>{try{a.removeChild(this.selectDropDownContainer)}catch{}}}}measureMaxDetailsHeight(){let a=0;return this.options.forEach((h,l)=>{this.updateDetail(l),this.selectionDetailsPane.offsetHeight>a&&(a=this.selectionDetailsPane.offsetHeight)}),a}layoutSelectDropDown(a){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const h=f.getWindow(this.selectElement),l=f.getDomNodePagePosition(this.selectElement),g=f.getWindow(this.selectElement).getComputedStyle(this.selectElement),d=parseFloat(g.getPropertyValue("--dropdown-padding-top"))+parseFloat(g.getPropertyValue("--dropdown-padding-bottom")),v=h.innerHeight-l.top-l.height-(this.selectBoxOptions.minBottomMargin||0),_=l.top-u.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,S=this.selectElement.offsetWidth,L=this.setWidthControlElement(this.widthControlElement),I=Math.max(L,Math.round(S)).toString()+"px";this.selectDropDownContainer.style.width=I,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let T=this.selectList.contentHeight;this._hasDetails&&this._cachedMaxDetailsHeight===void 0&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const N=this._hasDetails?this._cachedMaxDetailsHeight:0,A=T+d+N,O=Math.floor((v-d-N)/this.getHeight()),M=Math.floor((_-d-N)/this.getHeight());if(a)return l.top+l.height>h.innerHeight-22||l.top<u.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||O<1&&M<1?!1:(O<u.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&M>O&&this.options.length>O?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.sele
.monaco-menu {
font-size: 13px;
border-radius: 5px;
min-width: 160px;
}
${S(i.Codicon.menuSelection)}
${S(i.Codicon.menuSubmenu)}
.monaco-menu .monaco-action-bar {
text-align: right;
overflow: hidden;
white-space: nowrap;
}
.monaco-menu .monaco-action-bar .actions-container {
display: flex;
margin: 0 auto;
padding: 0;
width: 100%;
justify-content: flex-end;
}
.monaco-menu .monaco-action-bar.vertical .actions-container {
display: inline-block;
}
.monaco-menu .monaco-action-bar.reverse .actions-container {
flex-direction: row-reverse;
}
.monaco-menu .monaco-action-bar .action-item {
cursor: pointer;
display: inline-block;
transition: transform 50ms ease;
position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */
}
.monaco-menu .monaco-action-bar .action-item.disabled {
cursor: default;
}
.monaco-menu .monaco-action-bar .action-item .icon,
.monaco-menu .monaco-action-bar .action-item .codicon {
display: inline-block;
}
.monaco-menu .monaco-action-bar .action-item .codicon {
display: flex;
align-items: center;
}
.monaco-menu .monaco-action-bar .action-label {
font-size: 11px;
margin-right: 4px;
}
.monaco-menu .monaco-action-bar .action-item.disabled .action-label,
.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {
color: var(--vscode-disabledForeground);
}
/* Vertical actions */
.monaco-menu .monaco-action-bar.vertical {
text-align: left;
}
.monaco-menu .monaco-action-bar.vertical .action-item {
display: block;
}
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
display: block;
border-bottom: 1px solid var(--vscode-menu-separatorBackground);
padding-top: 1px;
padding: 30px;
}
.monaco-menu .secondary-actions .monaco-action-bar .action-label {
margin-left: 6px;
}
/* Action Items */
.monaco-menu .monaco-action-bar .action-item.select-container {
overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */
flex: 1;
max-width: 170px;
min-width: 60px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
.monaco-menu .monaco-action-bar.vertical {
margin-left: 0;
overflow: visible;
}
.monaco-menu .monaco-action-bar.vertical .actions-container {
display: block;
}
.monaco-menu .monaco-action-bar.vertical .action-item {
padding: 0;
transform: none;
display: flex;
}
.monaco-menu .monaco-action-bar.vertical .action-item.active {
transform: none;
}
.monaco-menu .monaco-action-bar.vertical .action-menu-item {
flex: 1 1 auto;
display: flex;
height: 2em;
align-items: center;
position: relative;
margin: 0 4px;
border-radius: 4px;
}
.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,
.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {
opacity: unset;
}
.monaco-menu .monaco-action-bar.vertical .action-label {
flex: 1 1 auto;
text-decoration: none;
padding: 0 1em;
background: none;
font-size: 12px;
line-height: 1;
}
.monaco-menu .monaco-action-bar.vertical .keybinding,
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
display: inline-block;
flex: 2 1 auto;
padding: 0 1em;
text-align: right;
font-size: 12px;
line-height: 1;
}
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
height: 100%;
}
.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {
font-size: 16px !important;
display: flex;
align-items: center;
}
.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {
margin-left: auto;
margin-right: -20px;
}
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {
opacity: 0.4;
}
.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {
display: inline-block;
box-sizing: border-box;
margin: 0;
}
.monaco-menu .monaco-action-bar.vertical .action-item {
position: static;
overflow: visible;
}
.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {
position: absolute;
}
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
width: 100%;
height: 0px !important;
opacity: 1;
}
.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {
padding: 0.7em 1em 0.1em 1em;
font-weight: bold;
opacity: 1;
}
.monaco-menu .monaco-action-bar.vertical .action-label:hover {
color: inherit;
}
.monaco-menu .monaco-action-bar.vertical .menu-item-check {
position: absolute;
visibility: hidden;
width: 1em;
height: 100%;
}
.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {
visibility: visible;
display: flex;
align-items: center;
justify-content: center;
}
/* Context Menu */
.context-view.monaco-menu-container {
outline: 0;
border: none;
animation: fadeIn 0.083s linear;
-webkit-app-region: no-drag;
}
.context-view.monaco-menu-container :focus,
.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,
.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {
outline: 0;
}
.hc-black .context-view.monaco-menu-container,
.hc-light .context-view.monaco-menu-container,
:host-context(.hc-black) .context-view.monaco-menu-container,
:host-context(.hc-light) .context-view.monaco-menu-container {
box-shadow: none;
}
.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,
.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,
:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,
:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {
background: none;
}
/* Vertical Action Bar Styles */
.monaco-menu .monaco-action-bar.vertical {
padding: 4px 0;
}
.monaco-menu .monaco-action-bar.vertical .action-menu-item {
height: 2em;
}
.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),
.monaco-menu .monaco-action-bar.vertical .keybinding {
font-size: inherit;
padding: 0 2em;
max-height: 100%;
}
.monaco-menu .monaco-action-bar.vertical .menu-item-check {
font-size: inherit;
width: 2em;
}
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
font-size: inherit;
margin: 5px 0 !important;
padding: 0;
border-radius: 0;
}
.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {
margin-left: 0;
margin-right: 0;
}
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
font-size: 60%;
padding: 0 1.8em;
}
.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
height: 100%;
mask-size: 10px 10px;
-webkit-mask-size: 10px 10px;
}
.monaco-menu .action-item {
cursor: default;
}`;if(T){N+=`
/* Arrows */
.monaco-scrollable-element > .scrollbar > .scra {
cursor: pointer;
font-size: 11px !important;
}
.monaco-scrollable-element > .visible {
opacity: 1;
/* Background rule added for IE9 - to allow clicks on dom node */
background:rgba(0,0,0,0);
transition: opacity 100ms linear;
}
.monaco-scrollable-element > .invisible {
opacity: 0;
pointer-events: none;
}
.monaco-scrollable-element > .invisible.fade {
transition: opacity 800ms linear;
}
/* Scrollable Content Inset Shadow */
.monaco-scrollable-element > .shadow {
position: absolute;
display: none;
}
.monaco-scrollable-element > .shadow.top {
display: block;
top: 0;
left: 3px;
height: 3px;
width: 100%;
}
.monaco-scrollable-element > .shadow.left {
display: block;
top: 3px;
left: 0;
height: 100%;
width: 3px;
}
.monaco-scrollable-element > .shadow.top-left-corner {
display: block;
top: 0;
left: 0;
height: 3px;
width: 3px;
}
`;const A=I.scrollbarShadow;A&&(N+=`
.monaco-scrollable-element > .shadow.top {
box-shadow: ${A} 0 6px 6px -6px inset;
}
.monaco-scrollable-element > .shadow.left {
box-shadow: ${A} 6px 0 6px -6px inset;
}
.monaco-scrollable-element > .shadow.top.left {
box-shadow: ${A} 6px 6px 6px -6px inset;
}
`);const O=I.scrollbarSliderBackground;O&&(N+=`
.monaco-scrollable-element > .scrollbar > .slider {
background: ${O};
}
`);const M=I.scrollbarSliderHoverBackground;M&&(N+=`
.monaco-scrollable-element > .scrollbar > .slider:hover {
background: ${M};
}
`);const R=I.scrollbarSliderActiveBackground;R&&(N+=`
.monaco-scrollable-element > .scrollbar > .slider.active {
background: ${R};
}
`)}return N}}),define(ie[635],ne([1,0,82,346,41,26,31,7,2,610,44,456]),function(Q,e,f,k,E,D,y,p,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleMenuAction=e.ToolBar=void 0;class o extends w.Disposable{constructor(t,n,c={orientation:0}){var m;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new p.EventMultiplexer),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new w.DisposableStore),c.hoverDelegate=(m=c.hoverDelegate)!==null&&m!==void 0?m:this._register((0,C.createInstantHoverDelegate)()),this.options=c,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new s(()=>{var u;return(u=this.toggleMenuActionViewItem)===null||u===void 0?void 0:u.show()},c.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",t.appendChild(this.element),this.actionBar=this._register(new f.ActionBar(this.element,{orientation:c.orientation,ariaLabel:c.ariaLabel,actionRunner:c.actionRunner,allowContextMenu:c.allowContextMenu,highlightToggledItems:c.highlightToggledItems,hoverDelegate:c.hoverDelegate,actionViewItemProvider:(u,r)=>{var a;if(u.id===s.ID)return this.toggleMenuActionViewItem=new k.DropdownMenuActionViewItem(u,u.menuActions,n,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:y.ThemeIcon.asClassNameArray((a=c.moreIcon)!==null&&a!==void 0?a:D.Codicon.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(c.actionViewItemProvider){const h=c.actionViewItemProvider(u,r);if(h)return h}if(u instanceof E.SubmenuAction){const h=new k.DropdownMenuActionViewItem(u,u.actions,n,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:u.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return h.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(h),this.disposables.add(this._onDidChangeDropdownVisibility.add(h.onDidChangeVisibility)),h}}}))}set actionRunner(t){this.actionBar.actionRunner=t}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(t){return this.actionBar.getAction(t)}setActions(t,n){this.clear();const c=t?t.slice(0):[];this.hasSecondaryActions=!!(n&&n.length>0),this.hasSecondaryActions&&n&&(this.toggleMenuAction.menuActions=n.slice(0),c.push(this.toggleMenuAction)),c.forEach(m=>{this.actionBar.push(m,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(m)})})}getKeybindingLabel(t){var n,c,m;const u=this.lookupKeybindings?(c=(n=this.options).getKeyBinding)===null||c===void 0?void 0:c.call(n,t):void 0;return(m=u?.getLabel())!==null&&m!==void 0?m:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}e.ToolBar=o;class s extends E.Action{constructor(t,n){n=n||b.localize(0,null),super(s.ID,n,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=t}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(t){this._menuActions=t}}e.ToggleMenuAction=s,s.ID="toolbar.toggle.more"}),define(ie[170],ne([1,0,6,89,46,82,253,252,250,111,169,242,154,41,13,15,26,31,45,7,78,2,136,20,611,44,30,457]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m,u,r,a,h,l,g,d,v,_){"use st
`),this.view.style(B)}getParentElement(B){const q=this.model.getParentNodeLocation(B);return this.model.getNode(q).element}getFirstElementChild(B){return this.model.getFirstElementChild(B)}getNode(B){return this.model.getNode(B)}getNodeLocation(B){return this.model.getNodeLocation(B)}collapse(B,q=!1){return this.model.setCollapsed(B,!0,q)}expand(B,q=!1){return this.model.setCollapsed(B,!1,q)}toggleCollapsed(B,q=!1){return this.model.setCollapsed(B,void 0,q)}isCollapsible(B){return this.model.isCollapsible(B)}setCollapsible(B,q){return this.model.setCollapsible(B,q)}isCollapsed(B){return this.model.isCollapsed(B)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(B,q){this.eventBufferer.bufferEvents(()=>{const V=B.map(J=>this.model.getNode(J));this.selection.set(V,q);const $=B.map(J=>this.model.getListIndex(J)).filter(J=>J>-1);this.view.setSelection($,q,!0)})}getSelection(){return this.selection.get()}setFocus(B,q){this.eventBufferer.bufferEvents(()=>{const V=B.map(J=>this.model.getNode(J));this.focus.set(V,q);const $=B.map(J=>this.model.getListIndex(J)).filter(J=>J>-1);this.view.setFocus($,q,!0)})}focusNext(B=1,q=!1,V,$=(0,f.isKeyboardEvent)(V)&&V.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(B,q,V,$)}focusPrevious(B=1,q=!1,V,$=(0,f.isKeyboardEvent)(V)&&V.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(B,q,V,$)}focusNextPage(B,q=(0,f.isKeyboardEvent)(B)&&B.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(B,q)}focusPreviousPage(B,q=(0,f.isKeyboardEvent)(B)&&B.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(B,q,()=>{var V,$;return($=(V=this.stickyScrollController)===null||V===void 0?void 0:V.height)!==null&&$!==void 0?$:0})}focusFirst(B,q=(0,f.isKeyboardEvent)(B)&&B.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(B,q)}getFocus(){return this.focus.get()}reveal(B,q){this.model.expandTo(B);const V=this.model.getListIndex(B);if(V!==-1)if(!this.stickyScrollController)this.view.reveal(V,q);else{const $=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(B));this.view.reveal(V,q,$)}}onLeftArrow(B){B.preventDefault(),B.stopPropagation();const q=this.view.getFocusedElements();if(q.length===0)return;const V=q[0],$=this.model.getNodeLocation(V);if(!this.model.setCollapsed($,!0)){const se=this.model.getParentNodeLocation($);if(!se)return;const de=this.model.getListIndex(se);this.view.reveal(de),this.view.setFocus([de])}}onRightArrow(B){B.preventDefault(),B.stopPropagation();const q=this.view.getFocusedElements();if(q.length===0)return;const V=q[0],$=this.model.getNodeLocation(V);if(!this.model.setCollapsed($,!1)){if(!V.children.some(le=>le.visible))return;const[se]=this.view.getFocus(),de=se+1;this.view.reveal(de),this.view.setFocus([de])}}onSpace(B){B.preventDefault(),B.stopPropagation();const q=this.view.getFocusedElements();if(q.length===0)return;const V=q[0],$=this.model.getNodeLocation(V),J=B.browserEvent.altKey;this.model.setCollapsed($,void 0,J)}dispose(){var B;(0,h.dispose)(this.disposables),(B=this.stickyScrollController)===null||B===void 0||B.dispose(),this.view.dispose()}}e.AbstractTree=ae}),define(ie[636],ne([1,0,170,243]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataTree=void 0;class E extends f.AbstractTree{constructor(y,p,w,b,C,o={}){super(y,p,w,b,o),this.user=y,this.dataSource=C,this.identityProvider=o.identityProvider}createModel(y,p,w){return new k.ObjectTreeModel(y,p,w)}}e.DataTree=E}),define(ie[347],ne([1,0,170,619,243,121,54]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompressibleObjectTree=e.ObjectTree=void 0;class p extends f.AbstractTree{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(i,t,n,c,m={}){super(i,t,n,c,m),this.user=i}setChildren(i,t=y.Iterable.empty(),n){this.model.setChildren(i,t,n)}rerender(i){if(i===void 0){this.view.rerender();return}this.model.rerender(i)}hasElement(i){return this.model.has(i)}createModel(i,t,n){return new E.Obj
`;case 2:return`\r
`;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(s){this._pieceTree.setEOL(s)}applyEdits(s,i,t){let n=this._mightContainRTL,c=this._mightContainUnusualLineTerminators,m=this._mightContainNonBasicASCII,u=!0,r=[];for(let _=0;_<s.length;_++){const S=s[_];u&&S._isTracked&&(u=!1);const L=S.range;if(S.text){let O=!0;m||(O=!k.isBasicASCII(S.text),m=O),!n&&O&&(n=k.containsRTL(S.text)),!c&&O&&(c=k.containsUnusualLineTerminators(S.text))}let I="",T=0,N=0,A=0;if(S.text){let O;[T,N,A,O]=(0,p.countEOL)(S.text);const M=this.getEOL();O===0||O===(M===`\r
`?2:1)?I=S.text:I=S.text.replace(/\r\n|\r|\n/g,M)}r[_]={sortIndex:_,identifier:S.identifier||null,range:L,rangeOffset:this.getOffsetAt(L.startLineNumber,L.startColumn),rangeLength:this.getValueLengthInRange(L),text:I,eolCount:T,firstLineLength:N,lastLineLength:A,forceMoveMarkers:!!S.forceMoveMarkers,isAutoWhitespaceEdit:S.isAutoWhitespaceEdit||!1}}r.sort(C._sortOpsAscending);let a=!1;for(let _=0,S=r.length-1;_<S;_++){const L=r[_].range.getEndPosition(),I=r[_+1].range.getStartPosition();if(I.isBeforeOrEqual(L)){if(I.isBefore(L))throw new Error("Overlapping ranges are not allowed!");a=!0}}u&&(r=this._reduceOperations(r));const h=t||i?C._getInverseEditRanges(r):[],l=[];if(i)for(let _=0;_<r.length;_++){const S=r[_],L=h[_];if(S.isAutoWhitespaceEdit&&S.range.isEmpty())for(let I=L.startLineNumber;I<=L.endLineNumber;I++){let T="";I===L.startLineNumber&&(T=this.getLineContent(S.range.startLineNumber),k.firstNonWhitespaceIndex(T)!==-1)||l.push({lineNumber:I,oldContent:T})}}let g=null;if(t){let _=0;g=[];for(let S=0;S<r.length;S++){const L=r[S],I=h[S],T=this.getValueInRange(L.range),N=L.rangeOffset+_;_+=L.text.length-T.length,g[S]={sortIndex:L.sortIndex,identifier:L.identifier,range:I,text:T,textChange:new w.TextChange(L.rangeOffset,T,N,L.text)}}a||g.sort((S,L)=>S.sortIndex-L.sortIndex)}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=c,this._mightContainNonBasicASCII=m;const d=this._doApplyEdits(r);let v=null;if(i&&l.length>0){l.sort((_,S)=>S.lineNumber-_.lineNumber),v=[];for(let _=0,S=l.length;_<S;_++){const L=l[_].lineNumber;if(_>0&&l[_-1].lineNumber===L)continue;const I=l[_].oldContent,T=this.getLineContent(L);T.length===0||T===I||k.firstNonWhitespaceIndex(T)!==-1||v.push(L)}}return this._onDidChangeContent.fire(),new D.ApplyEditsResult(g,d,v)}_reduceOperations(s){return s.length<1e3?s:[this._toSingleEditOperation(s)]}_toSingleEditOperation(s){let i=!1;const t=s[0].range,n=s[s.length-1].range,c=new E.Range(t.startLineNumber,t.startColumn,n.endLineNumber,n.endColumn);let m=t.startLineNumber,u=t.startColumn;const r=[];for(let d=0,v=s.length;d<v;d++){const _=s[d],S=_.range;i=i||_.forceMoveMarkers,r.push(this.getValueInRange(new E.Range(m,u,S.startLineNumber,S.startColumn))),_.text.length>0&&r.push(_.text),m=S.endLineNumber,u=S.endColumn}const a=r.join(""),[h,l,g]=(0,p.countEOL)(a);return{sortIndex:0,identifier:s[0].identifier,range:c,rangeOffset:this.getOffsetAt(c.startLineNumber,c.startColumn),rangeLength:this.getValueLengthInRange(c,0),text:a,eolCount:h,firstLineLength:l,lastLineLength:g,forceMoveMarkers:i,isAutoWhitespaceEdit:!1}}_doApplyEdits(s){s.sort(C._sortOpsDescending);const i=[];for(let t=0;t<s.length;t++){const n=s[t],c=n.range.startLineNumber,m=n.range.startColumn,u=n.range.endLineNumber,r=n.range.endColumn;if(c===u&&m===r&&n.text.length===0)continue;n.text?(this._pieceTree.delete(n.rangeOffset,n.rangeLength),this._pieceTree.insert(n.rangeOffset,n.text,!0)):this._pieceTree.delete(n.rangeOffset,n.rangeLength);const a=new E.Range(c,m,u,r);i.push({range:a,rangeLength:n.rangeLength,text:n.text,rangeOffset:n.rangeOffset,forceMoveMarkers:n.forceMoveMarkers})}return i}findMatchesLineByLine(s,i,t,n){return this._pieceTree.findMatchesLineByLine(s,i,t,n)}static _getInverseEditRanges(s){const i=[];let t=0,n=0,c=null;for(let m=0,u=s.length;m<u;m++){const r=s[m];let a,h;c?c.range.endLineNumber===r.range.startLineNumber?(a=t,h=n+(r.range.startColumn-c.range.endColumn)):(a=t+(r.range.startLineNumber-c.range.endLineNumber),h=r.range.startColumn):(a=r.range.startLineNumber,h=r.range.startColumn);let l;if(r.text.length>0){const g=r.eolCount+1;g===1?l=new E.Range(a,h,a,h+r.firstLineLength):l=new E.Range(a,h,a+g-1,r.lastLineLength+1)}else l=new E.Range(a,h,a,h);t=l.endLineNumber,n=l.endColumn,i.push(l),c=r}return i}static _sortOpsAscending(s,i){const t=E.Range.compareRangesUsingEnds(s.range,i.range);return t===0?s.sortIndex-i.sortIndex:t}static _sortOpsDescending(s,i){const t=E.Range.compareRangesUsingEnds(s.range,i.range);return t===0?i.sortIndex-s.sortIndex:-t}}e.PieceTreeTextBuffer=C}),define(ie[650],ne([1,0,12,315,352]
`:`\r
`:C>b/2?`\r
`:`
`}create(w){const b=this._getEOL(w),C=this._chunks;if(this._normalizeEOL&&(b===`\r
`&&(this._cr>0||this._lf>0)||b===`
`&&(this._cr>0||this._crlf>0)))for(let s=0,i=C.length;s<i;s++){const t=C[s].buffer.replace(/\r\n|\r|\n/g,b),n=(0,k.createLineStartsFast)(t);C[s]=new k.StringBuffer(t,n)}const o=new E.PieceTreeTextBuffer(C,this._bom,b,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:o,disposable:o}}}class y{constructor(){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.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(w){if(w.length===0)return;this.chunks.length===0&&f.startsWithUTF8BOM(w)&&(this.BOM=f.UTF8_BOM_CHARACTER,w=w.substr(1));const b=w.charCodeAt(w.length-1);b===13||b>=55296&&b<=56319?(this._acceptChunk1(w.substr(0,w.length-1),!1),this._hasPreviousChar=!0,this._previousChar=b):(this._acceptChunk1(w,!1),this._hasPreviousChar=!1,this._previousChar=b)}_acceptChunk1(w,b){!b&&w.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+w):this._acceptChunk2(w))}_acceptChunk2(w){const b=(0,k.createLineStarts)(this._tmpLineStarts,w);this.chunks.push(new k.StringBuffer(w,b.lineStarts)),this.cr+=b.cr,this.lf+=b.lf,this.crlf+=b.crlf,b.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=f.containsRTL(w)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=f.containsUnusualLineTerminators(w)))}finish(w=!0){return this._finish(),new D(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,w)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const w=this.chunks[this.chunks.length-1];w.buffer+=String.fromCharCode(this._previousChar);const b=(0,k.createLineStartsFast)(w.buffer);w.lineStarts=b,this._previousChar===13&&this.cr++}}}e.PieceTreeTextBufferBuilder=y}),define(ie[651],ne([1,0,156,17]),function(Q,e,f,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeSemanticTokensDto=y;function E(w){for(let b=0,C=w.length;b<C;b+=4){const o=w[b+0],s=w[b+1],i=w[b+2],t=w[b+3];w[b+0]=t,w[b+1]=i,w[b+2]=s,w[b+3]=o}}function D(w){const b=new Uint8Array(w.buffer,w.byteOffset,w.length*4);return k.isLittleEndian()||E(b),f.VSBuffer.wrap(b)}function y(w){const b=new Uint32Array(p(w));let C=0;if(b[C++]=w.id,w.type==="full")b[C++]=1,b[C++]=w.data.length,b.set(w.data,C),C+=w.data.length;else{b[C++]=2,b[C++]=w.deltas.length;for(const o of w.deltas)b[C++]=o.start,b[C++]=o.deleteCount,o.data?(b[C++]=o.data.length,b.set(o.data,C),C+=o.data.length):b[C++]=0}return D(b)}function p(w){let b=0;if(b+=2,w.type==="full")b+=1+w.data.length;else{b+=1,b+=3*w.deltas.length;for(const C of w.deltas)C.data&&(b+=C.data.length)}return b}}),define(ie[202],ne([1,0,7,2,17]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClickLinkGesture=e.ClickLinkOptions=e.ClickLinkKeyboardEvent=e.ClickLinkMouseEvent=void 0;function D(o,s){return!!o[s]}class y{constructor(s,i){this.target=s.target,this.isLeftClick=s.event.leftButton,this.isMiddleClick=s.event.middleButton,this.isRightClick=s.event.rightButton,this.hasTriggerModifier=D(s.event,i.triggerModifier),this.hasSideBySideModifier=D(s.event,i.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=s.event.detail<=1}}e.ClickLinkMouseEvent=y;class p{constructor(s,i){this.keyCodeIsTriggerKey=s.keyCode===i.triggerKey,this.keyCodeIsSideBySideKey=s.keyCode===i.triggerSideBySideKey,this.hasTriggerModifier=D(s,i.triggerModifier)}}e.ClickLinkKeyboardEvent=p;class w{constructor(s,i,t,n){this.triggerKey=s,this.triggerModifier=i,this.triggerSideBySideKey=t,this.triggerSideBySideModifier=n}equals(s){return this.triggerKey===s.triggerKey&&this.triggerModifier===s.triggerModifier&&this.triggerSideBySideKey===s.triggerSideBySideKey&&this.triggerSideBySideModifier===s.triggerSideBySideModifier}}e.ClickLinkOptions=w;function b(o){return o==="altKey"?E.isMacintosh?new w(57,"metaKey",6,"altKey"):new w(5,"ctrlKey",6,"altKey"):E.isMac
`),h=u.replace(/\r\n|\r/g,`
`)}withRange(u){return new t(this.filterText,this.command,u,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}e.InlineCompletionItem=t;function n(m,u){const r=u.getWordAtPosition(m),a=u.getLineMaxColumn(m.lineNumber);return r?new p.Range(m.lineNumber,r.startColumn,m.lineNumber,a):p.Range.fromPositions(m,m.with(void 0,a))}function c(m,u,r,a){const l=r.getLineContent(u.lineNumber).substring(0,u.column-1)+m,g=r.tokenization.tokenizeLineWithEdit(u,l.length-(u.column-1),m),d=g?.sliceAndInflate(u.column-1,l.length,0);return d?(0,w.fixBracketsInLine)(d,a):m}}),define(ie[656],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/controller/textAreaHandler",e)}),define(ie[657],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/coreCommands",e)}),define(ie[658],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/editorExtensions",e)}),define(ie[659],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/services/hoverService/hoverWidget",e)}),define(ie[660],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/services/hoverService/updatableHoverWidget",e)}),define(ie[661],ne([1,0,19,57,20,660]),function(Q,e,f,k,E,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UpdatableHoverWidget=void 0;class y{constructor(w,b,C){this.hoverDelegate=w,this.target=b,this.fadeInAnimation=C}async update(w,b,C){var o;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let s;if(w===void 0||(0,E.isString)(w)||w instanceof HTMLElement)s=w;else if(!(0,E.isFunction)(w.markdown))s=(o=w.markdown)!==null&&o!==void 0?o:w.markdownNotSupportedFallback;else{this._hoverWidget||this.show((0,D.localize)(0,null),b),this._cancellationTokenSource=new f.CancellationTokenSource;const i=this._cancellationTokenSource.token;if(s=await w.markdown(i),s===void 0&&(s=w.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}this.show(s,b,C)}show(w,b,C){const o=this._hoverWidget;if(this.hasContent(w)){const s={content:w,target:this.target,appearance:{showPointer:this.hoverDelegate.placement==="element",skipFadeInAnimation:!this.fadeInAnimation||!!o},position:{hoverPosition:2},...C};this._hoverWidget=this.hoverDelegate.showHover(s,b)}o?.dispose()}hasContent(w){return w?(0,k.isMarkdownString)(w)?!!w.value:!0:!1}get isDisposed(){var w;return(w=this._hoverWidget)===null||w===void 0?void 0:w.isDisposed}dispose(){var w,b;(w=this._hoverWidget)===null||w===void 0||w.dispose(),(b=this._cancellationTokenSource)===null||b===void 0||b.dispose(!0),this._cancellationTokenSource=void 0}}e.UpdatableHoverWidget=y}),define(ie[662],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/widget/codeEditor/codeEditorWidget",e)}),define(ie[663],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/widget/diffEditor/commands",e)}),define(ie[664],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer",e)}),define(ie[665],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/widget/diffEditor/components/diffEditorEditors",e)}),define(ie[666],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin",e)}),define(ie[667],ne([1,0,6,41,26,2,17,31,666]),function(Q,e,f,k,E,D,y,p,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineDiffDeletedCodeMargin=void 0;class b extends D.Disposable{get visibility(){return this._visibility}set visibility(o){this._visibility!==o&&(this._visibility=o,this._diffActions.style.visibility=o?"visible":"hidden")}constructor(o,s,i,t,n,c,m,u,r){super(),this._getViewZoneId=o,this._marginDomNode=s,this._modifiedEditor=i,this._diff=t,this._editor=n,this._viewLineCounts=c,this._originalTextModel=m,this._contextMenuService=u,this._clipboardService=r,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document
`:`\r
`),await this._clipboardService.writeText(T)})),i.getOption(91)||S.push(new k.Action("diff.inline.revertChange",(0,w.localize)(6,null),void 0,!0,async()=>{this._editor.revert(this._diff)})),S},autoSelectFirstItem:!0})};this._register((0,f.addStandardDisposableListener)(this._diffActions,"mousedown",d=>{if(!d.leftButton)return;const{top:v,height:_}=(0,f.getDomNodePagePosition)(this._diffActions),S=Math.floor(a/3);d.preventDefault(),g(d.posx,v+_+S)})),this._register(i.onMouseMove(d=>{(d.target.type===8||d.target.type===5)&&d.target.detail.viewZoneId===this._getViewZoneId()?(h=this._updateLightBulbPosition(this._marginDomNode,d.event.browserEvent.y,a),this.visibility=!0):this.visibility=!1})),this._register(i.onMouseDown(d=>{d.event.leftButton&&(d.target.type===8||d.target.type===5)&&d.target.detail.viewZoneId===this._getViewZoneId()&&(d.event.preventDefault(),h=this._updateLightBulbPosition(this._marginDomNode,d.event.browserEvent.y,a),g(d.event.posx,d.event.posy+a))}))}_updateLightBulbPosition(o,s,i){const{top:t}=(0,f.getDomNodePagePosition)(o),n=s-t,c=Math.floor(n/i),m=c*i;if(this._diffActions.style.top=`${m}px`,this._viewLineCounts){let u=0;for(let r=0;r<this._viewLineCounts.length;r++)if(u+=this._viewLineCounts[r],c<u)return r}return c}}e.InlineDiffDeletedCodeMargin=b}),define(ie[668],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/widget/diffEditor/diffEditor.contribution",e)}),define(ie[669],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature",e)}),define(ie[670],ne([3,4]),function(Q,e){return Q.create("vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature",e)}),define(ie[355],ne([1,0,6,82,41,13,67,26,2,30,31,83,65,670]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MovedBlocksLinesFeature=void 0;class t extends w.Disposable{constructor(u,r,a,h,l){super(),this._rootElement=u,this._diffModel=r,this._originalEditorLayoutInfo=a,this._modifiedEditorLayoutInfo=h,this._editors=l,this._originalScrollTop=(0,b.observableFromEvent)(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=(0,b.observableFromEvent)(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=(0,b.observableSignalFromEvent)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,b.observableValue)(this,0),this._modifiedViewZonesChangedSignal=(0,b.observableSignalFromEvent)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,b.observableSignalFromEvent)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,b.derivedWithStore)(this,(S,L)=>{var I;this._element.replaceChildren();const T=this._diffModel.read(S),N=(I=T?.diff.read(S))===null||I===void 0?void 0:I.movedTexts;if(!N||N.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(S);const A=this._originalEditorLayoutInfo.read(S),O=this._modifiedEditorLayoutInfo.read(S);if(!A||!O){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(S),this._originalViewZonesChangedSignal.read(S);const M=N.map(j=>{function K(ce,he){const pe=he.getTopForLineNumber(ce.startLineNumber,!0),ge=he.getTopForLineNumber(ce.endLineNumberExclusive,!0);return(pe+ge)/2}const U=K(j.lineRangeMapping.original,this._editors.original),G=this._originalScrollTop.read(S),te=K(j.lineRangeMapping.modified,this._editors.modified),ee=this._modifiedScrollTop.read(S),Y=U-G,P=te-ee,Z=Math.min(U,te),re=Math.max(U,te);return{range:new s.OffsetRange(Z,re),from:Y,to:P,fromWithoutScroll:U,toWithoutScroll:te,move:j}});M.sort((0,D.tieBreakComparators)((0,D.compareBy)(j=>j.fromWithoutScroll>j.toWithoutScroll,D.booleanComparator),(0,D.compareBy)(j=>j.fromWithoutScroll>j.toWithoutScroll?j.fromWithoutScroll:-j.toWithoutScroll,D.numberComparator)));const R=n.compute(M.map(j=>j.range)),x=10,F=A.verticalScrollbarWidth,W=(R.getTrackCount()-1)*10+x*2,H=F+W+
`?0:1}function t(c){return c?c instanceof o||c instanceof s:!1}class n{constructor(m,u){this._model=m,this._undoRedoService=u}pushStackElement(){const m=this._undoRedoService.getLastElement(this._model.uri);t(m)&&m.close()}popStackElement(){const m=this._undoRedoService.getLastElement(this._model.uri);t(m)&&m.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(m,u){const r=this._undoRedoService.getLastElement(this._model.uri);if(t(r)&&r.canAppend(this._model))return r;const a=new o(f.localize(0,null),"undoredo.textBufferEdit",this._model,m);return this._undoRedoService.pushElement(a,u),a}pushEOL(m){const u=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(m),u.append(this._model,[],i(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(m,u,r,a){const h=this._getOrCreateEditStackElement(m,a),l=this._model.applyEdits(u,!0),g=n._computeCursorState(r,l),d=l.map((v,_)=>({index:_,textChange:v.textChange}));return d.sort((v,_)=>v.textChange.oldPosition===_.textChange.oldPosition?v.index-_.index:v.textChange.oldPosition-_.textChange.oldPosition),h.append(this._model,d.map(v=>v.textChange),i(this._model),this._model.getAlternativeVersionId(),g),g}static _computeCursorState(m,u){try{return m?m(u):null}catch(r){return(0,k.onUnexpectedError)(r),null}}}e.EditStack=n}),define(ie[686],ne([3,4]),function(Q,e){return Q.create("vs/editor/common/standaloneStrings",e)}),define(ie[103],ne([1,0,686]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServicesNLS=e.ToggleHighContrastNLS=e.StandaloneCodeEditorNLS=e.QuickOutlineNLS=e.QuickCommandNLS=e.QuickHelpNLS=e.GoToLineNLS=e.InspectTokensNLS=void 0;var k;(function(o){o.inspectTokensAction=f.localize(0,null)})(k||(e.InspectTokensNLS=k={}));var E;(function(o){o.gotoLineActionLabel=f.localize(1,null)})(E||(e.GoToLineNLS=E={}));var D;(function(o){o.helpQuickAccessActionLabel=f.localize(2,null)})(D||(e.QuickHelpNLS=D={}));var y;(function(o){o.quickCommandActionLabel=f.localize(3,null),o.quickCommandHelp=f.localize(4,null)})(y||(e.QuickCommandNLS=y={}));var p;(function(o){o.quickOutlineActionLabel=f.localize(5,null),o.quickOutlineByCategoryActionLabel=f.localize(6,null)})(p||(e.QuickOutlineNLS=p={}));var w;(function(o){o.editorViewAccessibleLabel=f.localize(7,null),o.accessibilityHelpMessage=f.localize(8,null)})(w||(e.StandaloneCodeEditorNLS=w={}));var b;(function(o){o.toggleHighContrast=f.localize(9,null)})(b||(e.ToggleHighContrastNLS=b={}));var C;(function(o){o.bulkEditServiceSummary=f.localize(10,null)})(C||(e.StandaloneServicesNLS=C={}))}),define(ie[687],ne([3,4]),function(Q,e){return Q.create("vs/editor/common/viewLayout/viewLineRenderer",e)}),define(ie[131],ne([1,0,687,12,112,146,577]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenderLineOutput2=e.RenderLineOutput=e.CharacterMapping=e.DomPosition=e.RenderLineInput=e.LineRange=void 0,e.renderViewLine=s,e.renderViewLine2=t;class p{constructor(S,L){this.startOffset=S,this.endOffset=L}equals(S){return this.startOffset===S.startOffset&&this.endOffset===S.endOffset}}e.LineRange=p;class w{constructor(S,L,I,T,N,A,O,M,R,x,F,W,H,z,j,K,U,G,te){this.useMonospaceOptimizations=S,this.canUseHalfwidthRightwardsArrow=L,this.lineContent=I,this.continuesWithWrappedLine=T,this.isBasicASCII=N,this.containsRTL=A,this.fauxIndentLength=O,this.lineTokens=M,this.lineDecorations=R.sort(D.LineDecoration.compare),this.tabSize=x,this.startVisibleColumn=F,this.spaceWidth=W,this.stopRenderingLineAfter=j,this.renderWhitespace=K==="all"?4:K==="boundary"?1:K==="selection"?2:K==="trailing"?3:0,this.renderControlCharacters=U,this.fontLigatures=G,this.selectionsOnLine=te&&te.sort((P,Z)=>P.startOffset<Z.startOffset?-1:1);const ee=Math.abs(z-W),Y=Math.abs(H-W);ee<Y?(this.renderSpaceWidth=z,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=H,this.renderSpaceCharCode=183)}sameSelection(S){if(this.selectionsOnLine===null)return S===null;if(S===null||S.length!==this.selectionsOnLine.length)return!1;for(let L=0;L<
(-> incoming)[${[...p.incoming.keys()].join(", ")}]
(outgoing ->)[${[...p.outgoing.keys()].join(",")}]
`);return D.join(`
`)}findCycleSlow(){for(const[D,y]of this._nodes){const p=new Set([D]),w=this._findCycle(y,p);if(w)return w}}_findCycle(D,y){for(const[p,w]of D.outgoing){if(y.has(p))return[...y,p].join(" -> ");y.add(p);const b=this._findCycle(w,y);if(b)return b;y.delete(p)}}}e.Graph=k}),define(ie[8],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IInstantiationService=e._util=void 0,e.createDecorator=E;var f;(function(D){D.serviceIds=new Map,D.DI_TARGET="$di$target",D.DI_DEPENDENCIES="$di$dependencies";function y(p){return p[D.DI_DEPENDENCIES]||[]}D.getServiceDependencies=y})(f||(e._util=f={})),e.IInstantiationService=E("instantiationService");function k(D,y,p){y[f.DI_TARGET]===y?y[f.DI_DEPENDENCIES].push({id:D,index:p}):(y[f.DI_DEPENDENCIES]=[{id:D,index:p}],y[f.DI_TARGET]=y)}function E(D){if(f.serviceIds.has(D))return f.serviceIds.get(D);const y=function(p,w,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");k(y,p,b)};return y.toString=()=>D,f.serviceIds.set(D,y),y}}),define(ie[148],ne([1,0,8,22,20]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceFileEdit=e.ResourceTextEdit=e.ResourceEdit=e.IBulkEditService=void 0,e.IBulkEditService=(0,f.createDecorator)("IWorkspaceEditService");class D{constructor(b){this.metadata=b}static convert(b){return b.edits.map(C=>{if(y.is(C))return y.lift(C);if(p.is(C))return p.lift(C);throw new Error("Unsupported edit")})}}e.ResourceEdit=D;class y extends D{static is(b){return b instanceof y?!0:(0,E.isObject)(b)&&k.URI.isUri(b.resource)&&(0,E.isObject)(b.textEdit)}static lift(b){return b instanceof y?b:new y(b.resource,b.textEdit,b.versionId,b.metadata)}constructor(b,C,o=void 0,s){super(s),this.resource=b,this.textEdit=C,this.versionId=o}}e.ResourceTextEdit=y;class p extends D{static is(b){return b instanceof p?!0:(0,E.isObject)(b)&&(!!b.newResource||!!b.oldResource)}static lift(b){return b instanceof p?b:new p(b.oldResource,b.newResource,b.options,b.metadata)}constructor(b,C,o={},s){super(s),this.oldResource=b,this.newResource=C,this.options=o}}e.ResourceFileEdit=p}),define(ie[36],ne([1,0,8]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICodeEditorService=void 0,e.ICodeEditorService=(0,f.createDecorator)("codeEditorService")});var ue=this&&this.__param||function(Q,e){return function(f,k){e(f,k,Q)}};define(ie[365],ne([1,0,6,110,26,57,2,30,183,31,20,83,59,9,5,28,669,8]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m){"use strict";var u;Object.defineProperty(e,"__esModule",{value:!0}),e.HideUnchangedRegionsFeature=void 0;let r=u=class extends y.Disposable{static setBreadcrumbsSourceFactory(l){this._breadcrumbsSourceFactory.set(l,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(l,g,d,v){super(),this._editors=l,this._diffModel=g,this._options=d,this._instantiationService=v,this._modifiedOutlineSource=(0,w.derivedDisposable)(this,I=>{const T=this._editors.modifiedModel.read(I),N=u._breadcrumbsSourceFactory.read(I);return!T||!N?void 0:N(T,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(I=>{if(I.reason===1)return;const T=this._diffModel.get();(0,p.transaction)(N=>{for(const A of this._editors.original.getSelections()||[])T?.ensureOriginalLineIsVisible(A.getStartPosition().lineNumber,0,N),T?.ensureOriginalLineIsVisible(A.getEndPosition().lineNumber,0,N)})})),this._register(this._editors.modified.onDidChangeCursorPosition(I=>{if(I.reason===1)return;const T=this._diffModel.get();(0,p.transaction)(N=>{for(const A of this._editors.modified.getSelections()||[])T?.ensureModifiedLineIsVisible(A.getStartPosition().lineNumber,0,N),T?.ensureModifiedLineIsVisible(A.getEndPosition().lineNumber,0,N)})}));const _=this._diffModel.map((I,T)=>{var N,A;const O=(N=I?.unchangedRegions.read(T))!==null&&N!==void 0?N:[];return O.length===1&&O[0].modifiedLineNumber===1&&O[0].lineCount===((A=this._editors.modifiedModel.read(T))===null||A===void 0?void 0:A.
`:r,_=v.length;let S=h.embeddedLanguageData,L=h.stack,I=0,T=null,N=!0;for(;N||I<_;){const A=I,O=L.depth,M=T?T.groups.length:0,R=L.state;let x=null,F=null,W=null,H=null,z=null;if(T){x=T.matches;const U=T.groups.shift();F=U.matched,W=U.action,H=T.rule,T.groups.length===0&&(T=null)}else{if(!N&&I>=_)break;N=!1;let U=this._lexer.tokenizer[R];if(!U&&(U=D.findRules(this._lexer,R),!U))throw D.createError(this._lexer,"tokenizer state is not defined: "+R);const G=v.substr(I);for(const te of U)if((I===0||!te.matchOnlyAtLineStart)&&(x=G.match(te.resolveRegex(R)),x)){F=x[0],W=te.action;break}}if(x||(x=[""],F=""),W||(I<_&&(x=[v.charAt(I)],F=x[0]),W=this._lexer.defaultToken),F===null)break;for(I+=F.length;D.isFuzzyAction(W)&&D.isIAction(W)&&W.test;)W=W.test(F,x,R,I===_);let j=null;if(typeof W=="string"||Array.isArray(W))j=W;else if(W.group)j=W.group;else if(W.token!==null&&W.token!==void 0){if(W.tokenSubst?j=D.substituteMatches(this._lexer,W.token,F,x,R):j=W.token,W.nextEmbedded)if(W.nextEmbedded==="@pop"){if(!S)throw D.createError(this._lexer,"cannot pop embedded language if not inside one");S=null}else{if(S)throw D.createError(this._lexer,"cannot enter embedded language from within an embedded language");z=D.substituteMatches(this._lexer,W.nextEmbedded,F,x,R)}if(W.goBack&&(I=Math.max(0,I-W.goBack)),W.switchTo&&typeof W.switchTo=="string"){let U=D.substituteMatches(this._lexer,W.switchTo,F,x,R);if(U[0]==="@"&&(U=U.substr(1)),D.findRules(this._lexer,U))L=L.switchTo(U);else throw D.createError(this._lexer,"trying to switch to a state '"+U+"' that is undefined in rule: "+this._safeRuleName(H))}else{if(W.transform&&typeof W.transform=="function")throw D.createError(this._lexer,"action.transform not supported");if(W.next)if(W.next==="@push"){if(L.depth>=this._lexer.maxStack)throw D.createError(this._lexer,"maximum tokenizer stack size reached: ["+L.state+","+L.parent.state+",...]");L=L.push(R)}else if(W.next==="@pop"){if(L.depth<=1)throw D.createError(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(H));L=L.pop()}else if(W.next==="@popall")L=L.popall();else{let U=D.substituteMatches(this._lexer,W.next,F,x,R);if(U[0]==="@"&&(U=U.substr(1)),D.findRules(this._lexer,U))L=L.push(U);else throw D.createError(this._lexer,"trying to set a next state '"+U+"' that is undefined in rule: "+this._safeRuleName(H))}}W.log&&typeof W.log=="string"&&D.log(this._lexer,this._lexer.languageId+": "+D.substituteMatches(this._lexer,W.log,F,x,R))}if(j===null)throw D.createError(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(H));const K=U=>{const G=this._languageService.getLanguageIdByLanguageName(U)||this._languageService.getLanguageIdByMimeType(U)||U,te=this._getNestedEmbeddedLanguageData(G);if(I<_){const ee=r.substr(I);return this._nestedTokenize(ee,a,s.create(L,te),l+I,g)}else return s.create(L,te)};if(Array.isArray(j)){if(T&&T.groups.length>0)throw D.createError(this._lexer,"groups cannot be nested: "+this._safeRuleName(H));if(x.length!==j.length+1)throw D.createError(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(H));let U=0;for(let G=1;G<x.length;G++)U+=x[G].length;if(U!==F.length)throw D.createError(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(H));T={rule:H,matches:x,groups:[]};for(let G=0;G<j.length;G++)T.groups[G]={action:j[G],matched:x[G+1]};I-=F.length;continue}else{if(j==="@rematch"&&(I-=F.length,F="",x=null,j="",z!==null))return K(z);if(F.length===0){if(_===0||O!==L.depth||R!==L.state||(T?T.groups.length:0)!==M)continue;throw D.createError(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(H))}let U=null;if(D.isString(j)&&j.indexOf("@brackets")===0){const G=j.substr(9),te=m(this._lexer,F);if(!te)throw D.createError(this._lexer,"@brackets token returned but no bracket defined as: "+F);U=D.sanitize(te.token+G)}else{const G=j===""?"":j+this._lexer.tokenPostfix;U=D.sanitize(G)}A<d&&g.emit(A+l,U)}if(z!==null)return K(z)}return s.create(L,S)}_getNestedEmbeddedLan
| KEY '=~' REGEX
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const Y=this._peek();switch(Y.type){case 17:case 18:return this._advance(),Y.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(Y){return Y.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(Y){return this._check(Y)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(Y,P){if(this._check(Y))return this._advance();throw this._errExpectedButGot(P,this._peek())}_errExpectedButGot(Y,P,Z){const re=(0,y.localize)(8,null,Y,E.Scanner.getLexeme(P)),ce=P.offset,he=E.Scanner.getLexeme(P);return this._parsingErrors.push({message:re,offset:ce,lexeme:he,additionalInfo:Z}),u._parseError}_check(Y){return this._peek().type===Y}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}}e.Parser=u,u._parseError=new Error;class r{static false(){return l.INSTANCE}static true(){return g.INSTANCE}static has(Y){return d.create(Y)}static equals(Y,P){return v.create(Y,P)}static notEquals(Y,P){return L.create(Y,P)}static regex(Y,P){return R.create(Y,P)}static in(Y,P){return _.create(Y,P)}static notIn(Y,P){return S.create(Y,P)}static not(Y){return I.create(Y)}static and(...Y){return W.create(Y,null,!0)}static or(...Y){return H.create(Y,null,!0)}static deserialize(Y){return Y==null?void 0:this._parser.parse(Y)}}e.ContextKeyExpr=r,r._parser=new u({regexParsingWithErrorRecovery:!1});function a(ee,Y){const P=ee?ee.substituteConstants():void 0,Z=Y?Y.substituteConstants():void 0;return!P&&!Z?!0:!P||!Z?!1:P.equals(Z)}function h(ee,Y){return ee.cmp(Y)}class l{constructor(){this.type=0}cmp(Y){return this.type-Y.type}equals(Y){return Y.type===this.type}substituteConstants(){return this}evaluate(Y){return!1}serialize(){return"false"}keys(){return[]}negate(){return g.INSTANCE}}e.ContextKeyFalseExpr=l,l.INSTANCE=new l;class g{constructor(){this.type=1}cmp(Y){return this.type-Y.type}equals(Y){return Y.type===this.type}substituteConstants(){return this}evaluate(Y){return!0}serialize(){return"true"}keys(){return[]}negate(){return l.INSTANCE}}e.ContextKeyTrueExpr=g,g.INSTANCE=new g;class d{static create(Y,P=null){const Z=p.get(Y);return typeof Z=="boolean"?Z?g.INSTANCE:l.INSTANCE:new d(Y,P)}constructor(Y,P){this.key=Y,this.negated=P,this.type=2}cmp(Y){return Y.type!==this.type?this.type-Y.type:j(this.key,Y.key)}equals(Y){return Y.type===this.type?this.key===Y.key:!1}substituteConstants(){const Y=p.get(this.key);return typeof Y=="boolean"?Y?g.INSTANCE:l.INSTANCE:this}evaluate(Y){return!!Y.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}e.ContextKeyDefinedExpr=d;class v{static create(Y,P,Z=null){if(typeof P=="boolean")return P?d.create(Y,Z):I.create(Y,Z);const re=p.get(Y);return typeof re=="boolean"?P===(re?"true":"false")?g.INSTANCE:l.INSTANCE:new v(Y,P,Z)}constructor(Y,P,Z){this.key=Y,this.value=P,this.negated=Z,this.type=4}cmp(Y){return Y.type!==this.type?this.type-Y.type:K(this.key,this.value,Y.key,Y.value)}equals(Y){return Y.type===this.type?this.key===Y.key&&this.value===Y.value:!1}substituteConstants(){const Y=p.get(this.key);if(typeof Y=="boolean"){const P=Y?"true":"false";return this.value===P?g.INSTANCE:l.INSTANCE}return this}evaluate(Y){return Y.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this.key,this.value,this)),this.negated}}e.ContextKeyEqualsExpr=v;class _{static create(Y,P){return new _(Y,P)}constructor(Y,P){this.key=Y,this.valueKey=P,this.type=10,this.negated=null}cmp(Y){return Y.type!==this.type?this.type-Y.type:K(this.key,this.valueKey,Y.key,Y.valueKey)}equals(Y){return Y.type===this.type?this.key===Y.key&&this.valueKey===Y.valueKey:!1}substituteConstants(){return this}evaluate(Y){const P=Y.getValue(this.valueKey),Z=Y.getV
${n.toString()}`}}class s{constructor(n=new w.ServiceCollection,c=!1,m,u=C){var r;this._services=n,this._strict=c,this._parent=m,this._enableTracing=u,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(p.IInstantiationService,this),this._globalGraph=u?(r=m?._globalGraph)!==null&&r!==void 0?r:new y.Graph(a=>a):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,(0,E.dispose)(this._children),this._children.clear();for(const n of this._servicesToMaybeDispose)(0,E.isDisposable)(n)&&n.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(n){this._throwIfDisposed();const c=new class extends s{dispose(){this._children.delete(c),super.dispose()}}(n,this._strict,this,this._enableTracing);return this._children.add(c),c}invokeFunction(n,...c){this._throwIfDisposed();const m=i.traceInvocation(this._enableTracing,n);let u=!1;try{return n({get:a=>{if(u)throw(0,k.illegalState)("service accessor is only valid during the invocation of its target method");const h=this._getOrCreateServiceInstance(a,m);if(!h)throw new Error(`[invokeFunction] unknown service '${a}'`);return h}},...c)}finally{u=!0,m.stop()}}createInstance(n,...c){this._throwIfDisposed();let m,u;return n instanceof D.SyncDescriptor?(m=i.traceCreation(this._enableTracing,n.ctor),u=this._createInstance(n.ctor,n.staticArguments.concat(c),m)):(m=i.traceCreation(this._enableTracing,n),u=this._createInstance(n,c,m)),m.stop(),u}_createInstance(n,c=[],m){const u=p._util.getServiceDependencies(n).sort((h,l)=>h.index-l.index),r=[];for(const h of u){const l=this._getOrCreateServiceInstance(h.id,m);l||this._throwIfStrict(`[createInstance] ${n.name} depends on UNKNOWN service ${h.id}.`,!1),r.push(l)}const a=u.length>0?u[0].index:c.length;if(c.length!==a){console.trace(`[createInstance] First service dependency of ${n.name} at position ${a+1} conflicts with ${c.length} static arguments`);const h=a-c.length;h>0?c=c.concat(new Array(h)):c=c.slice(0,a)}return Reflect.construct(n,c.concat(r))}_setCreatedServiceInstance(n,c){if(this._services.get(n)instanceof D.SyncDescriptor)this._services.set(n,c);else if(this._parent)this._parent._setCreatedServiceInstance(n,c);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(n){const c=this._services.get(n);return!c&&this._parent?this._parent._getServiceInstanceOrDescriptor(n):c}_getOrCreateServiceInstance(n,c){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(n));const m=this._getServiceInstanceOrDescriptor(n);return m instanceof D.SyncDescriptor?this._safeCreateAndCacheServiceInstance(n,m,c.branch(n,!0)):(c.branch(n,!1),m)}_safeCreateAndCacheServiceInstance(n,c,m){if(this._activeInstantiations.has(n))throw new Error(`illegal state - RECURSIVELY instantiating service '${n}'`);this._activeInstantiations.add(n);try{return this._createAndCacheServiceInstance(n,c,m)}finally{this._activeInstantiations.delete(n)}}_createAndCacheServiceInstance(n,c,m){var u;const r=new y.Graph(l=>l.id.toString());let a=0;const h=[{id:n,desc:c,_trace:m}];for(;h.length;){const l=h.pop();if(r.lookupOrInsertNode(l),a++>1e3)throw new o(r);for(const g of p._util.getServiceDependencies(l.desc.ctor)){const d=this._getServiceInstanceOrDescriptor(g.id);if(d||this._throwIfStrict(`[createInstance] ${n} depends on ${g.id} which is NOT registered.`,!0),(u=this._globalGraph)===null||u===void 0||u.insertEdge(String(l.id),String(g.id)),d instanceof D.SyncDescriptor){const v={id:g.id,desc:d,_trace:l._trace.branch(g.id,!0)};r.insertEdge(l,v),h.push(v)}}}for(;;){const l=r.roots();if(l.length===0){if(!r.isEmpty())throw new o(r);break}for(const{data:g}of l){if(this._getServiceInstanceOrDescriptor(g.id)instanceof D.SyncDescriptor){const v=this._createServiceInstanceWithOwner(g.id,g.desc.ctor,g.desc.staticArguments,g.desc.supportsDelayedInstantiation,g._trace);this._setCreatedService
`).slice(3,4).join(`
`)):i._None}static traceCreation(n,c){return n?new i(1,c.name):i._None}constructor(n,c){this.type=n,this.name=c,this._start=Date.now(),this._dep=[]}branch(n,c){const m=new i(3,n.toString());return this._dep.push([n,c,m]),m}stop(){const n=Date.now()-this._start;i._totals+=n;let c=!1;function m(r,a){const h=[],l=new Array(r+1).join(" ");for(const[g,d,v]of a._dep)if(d&&v){c=!0,h.push(`${l}CREATES -> ${g}`);const _=m(r+1,v);_&&h.push(_)}else h.push(`${l}uses -> ${g}`);return h.join(`
`)}const u=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${m(1,this)}`,`DONE, took ${n.toFixed(2)}ms (grand total ${i._totals.toFixed(2)}ms)`];(n>2||c)&&i.all.add(u.join(`
`))}}e.Trace=i,i.all=new Set,i._None=new class extends i{constructor(){super(0,null)}stop(){}branch(){return this}},i._totals=0}),define(ie[822],ne([1,0,10,240,135]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseResolvedKeybinding=void 0;class D extends E.ResolvedKeybinding{constructor(p,w){if(super(),w.length===0)throw(0,f.illegalArgument)("chords");this._os=p,this._chords=w}getLabel(){return k.UILabelProvider.toLabel(this._os,this._chords,p=>this._getLabel(p))}getAriaLabel(){return k.AriaLabelProvider.toLabel(this._os,this._chords,p=>this._getAriaLabel(p))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:k.ElectronAcceleratorLabelProvider.toLabel(this._os,this._chords,p=>this._getElectronAccelerator(p))}getUserSettingsLabel(){return k.UserSettingsLabelProvider.toLabel(this._os,this._chords,p=>this._getUserSettingsLabel(p))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(p=>this._getChord(p))}_getChord(p){return new E.ResolvedChord(p.ctrlKey,p.shiftKey,p.altKey,p.metaKey,this._getLabel(p),this._getAriaLabel(p))}getDispatchChords(){return this._chords.map(p=>this._getChordDispatch(p))}getSingleModifierDispatchChords(){return this._chords.map(p=>this._getSingleModifierChordDispatch(p))}}e.BaseResolvedKeybinding=D}),define(ie[32],ne([1,0,8]),function(Q,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,f.createDecorator)("keybindingService")}),define(ie[370],ne([1,0,6,251,41,7,2,148,260,14,58,8,32,487]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.PostEditWidgetManager=void 0;let t=i=class extends y.Disposable{constructor(m,u,r,a,h,l,g,d,v,_){super(),this.typeId=m,this.editor=u,this.showCommand=a,this.range=h,this.edits=l,this.onSelectNewEdit=g,this._contextMenuService=d,this._keybindingService=_,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=r.bindTo(v),this.visibleContext.set(!0),this._register((0,y.toDisposable)(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,y.toDisposable)(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(S=>{h.containsPosition(S.position)||this.dispose()})),this._register(D.Event.runAndSubscribe(_.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var m;const u=(m=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||m===void 0?void 0:m.getLabel();this.button.element.title=this.showCommand.label+(u?` (${u})`:"")}create(){this.domNode=f.$(".post-edit-widget"),this.button=this._register(new k.Button(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(f.addDisposableListener(this.domNode,f.EventType.CLICK,()=>this.showSelector()))}getId(){return i.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const m=f.getDomNodePagePosition(this.button.element);return{x:m.left+m.width,y:m.top+m.height}},getActions:()=>this.edits.allEdits.map((m,u)=>(0,E.toAction)({id:"",label:m.title,checked:u===this.edits.activeEditIndex,run:()=>{if(u!==this.edits.activeEditIndex)return this.onSelectNewEdit(u)}}))})}};t.baseId="editor.widget.postEditWidget",t=i=Ie([ue(7,C.IContextMenuService),ue(8,b.IContextKeyService),ue(9,s.IKeybindingService)],t);let n=class extends y.Disposable{constructor(m,u,r,a,h,l){super(),this._id=m,this._editor=u,this._visibleContext=r,this._showCommand=a,this._instantiationService=h,this._bulkEditService=l,this._currentWidget=this._register(new y.MutableDisposable),this._register(D.Event.any(u.onDidChangeModel,u.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(m,u,r,a,h){const l=this._editor.getModel();if(!l||!m.length)return;const g=u.allEd
`):g.text,d),l.preventDefault(),l.clipboardData&&e.ClipboardEventUtils.setTextData(l.clipboardData,g.text,g.html,d)}};e.TextAreaInput=r,e.TextAreaInput=r=Ie([ue(4,t.IAccessibilityService),ue(5,n.ILogService)],r),e.ClipboardEventUtils={getTextData(h){const l=h.getData(C.Mimes.text);let g=null;const d=h.getData("vscode-editor-data");if(typeof d=="string")try{g=JSON.parse(d),g.version!==1&&(g=null)}catch{}return l.length===0&&g===null&&h.files.length>0?[Array.prototype.slice.call(h.files,0).map(_=>_.name).join(`
`),null]:[l,g]},setTextData(h,l,g,d){h.setData(C.Mimes.text,l),typeof g=="string"&&h.setData("text/html",g),h.setData("vscode-editor-data",JSON.stringify(d))}};class a extends b.Disposable{get ownerDocument(){return this._actual.ownerDocument}constructor(l){super(),this._actual=l,this.onKeyDown=this._register(new E.DomEmitter(this._actual,"keydown")).event,this.onKeyUp=this._register(new E.DomEmitter(this._actual,"keyup")).event,this.onCompositionStart=this._register(new E.DomEmitter(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new E.DomEmitter(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new E.DomEmitter(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new E.DomEmitter(this._actual,"beforeinput")).event,this.onInput=this._register(new E.DomEmitter(this._actual,"input")).event,this.onCut=this._register(new E.DomEmitter(this._actual,"cut")).event,this.onCopy=this._register(new E.DomEmitter(this._actual,"copy")).event,this.onPaste=this._register(new E.DomEmitter(this._actual,"paste")).event,this.onFocus=this._register(new E.DomEmitter(this._actual,"focus")).event,this.onBlur=this._register(new E.DomEmitter(this._actual,"blur")).event,this._onSyntheticTap=this._register(new w.Emitter),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown(()=>y.inputLatency.onKeyDown())),this._register(this.onBeforeInput(()=>y.inputLatency.onBeforeInput())),this._register(this.onInput(()=>y.inputLatency.onInput())),this._register(this.onKeyUp(()=>y.inputLatency.onKeyUp())),this._register(k.addDisposableListener(this._actual,c.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const l=k.getShadowRoot(this._actual);return l?l.activeElement===this._actual:this._actual.isConnected?k.getActiveElement()===this._actual:!1}setIgnoreSelectionChangeTime(l){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(l,g){const d=this._actual;d.value!==g&&(this.setIgnoreSelectionChangeTime("setValue"),d.value=g)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(l,g,d){const v=this._actual;let _=null;const S=k.getShadowRoot(v);S?_=S.activeElement:_=k.getActiveElement();const L=k.getWindow(_),I=_===v,T=v.selectionStart,N=v.selectionEnd;if(I&&T===g&&N===d){f.isFirefox&&L.parent!==L&&v.focus();return}if(I){this.setIgnoreSelectionChangeTime("setSelectionRange"),v.setSelectionRange(g,d),f.isFirefox&&L.parent!==L&&v.focus();return}try{const A=k.saveParentsScrollTop(v);this.setIgnoreSelectionChangeTime("setSelectionRange"),v.focus(),v.setSelectionRange(g,d),k.restoreParentsScrollTop(v,A)}catch{}}}e.TextAreaWrapper=a}),define(ie[84],ne([1,0,125,45,136,263,48,8,60,49]),function(Q,e,f,k,E,D,y,p,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageFeatureDebounceService=e.ILanguageFeatureDebounceService=void 0,e.ILanguageFeatureDebounceService=(0,p.createDecorator)("ILanguageFeatureDebounceService");var C;(function(t){const n=new WeakMap;let c=0;function m(u){let r=n.get(u);return r===void 0&&(r=++c,n.set(u,r)),r}t.of=m})(C||(C={}));class o{constructor(n){this._default=n}get(n){return this._default}update(n,c){return this._default}default(){return this._default}}class s{constructor(n,c,m,u,r,a){this._logService=n,this._name=c,this._registry=m,this._default=u,this._min=r,this._max=a,this._cache=new k.LRUCache(50,.7)}_key(n){return n.id+this._registry.all(n).reduce((c,m)=>(0,f.doHash)(C.of(m),c),0)}get(n){const c=this._key(n),m=this._cache.get(c);return m?(0,E.clamp)(m.value,this._min,this._max):this.default()}update(n,c){const m=this._key(n);let u=this._cache.get(m);u||(u=new E.SlidingWindowAverage(6),this._cache.set(m,u));cons
`)!==S.length-1&&(L=!1),L){const M=new b.Range(O.lineNumber,1,O.lineNumber,1);I[T]=new E.ReplaceCommandThatPreservesSelection(M,S,A,!0)}else I[T]=new E.ReplaceCommand(A,S)}return new p.EditOperationResult(0,I,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(d,v,_,S,L){if(S||v.length===1)return null;if(L&&L.length===v.length)return L;if(d.multiCursorPaste==="spread"){_.charCodeAt(_.length-1)===10&&(_=_.substr(0,_.length-1)),_.charCodeAt(_.length-1)===13&&(_=_.substr(0,_.length-1));const I=k.splitLines(_);if(I.length===v.length)return I}return null}static paste(d,v,_,S,L,I){const T=this._distributePasteToCursors(d,_,S,L,I);return T?(_=_.sort(b.Range.compareRangesUsingStarts),this._distributedPaste(d,v,_,T)):this._simplePaste(d,v,_,S,L)}static _goodIndentForLine(d,v,_){let S=null,L="";const I=(0,t.getInheritIndentForLine)(d.autoIndent,v,_,!1,d.languageConfigurationService);if(I)S=I.action,L=I.indentation;else if(_>1){let T;for(T=_-1;T>=1;T--){const O=v.getLineContent(T);if(k.lastNonWhitespaceIndex(O)>=0)break}if(T<1)return null;const N=v.getLineMaxColumn(T),A=(0,n.getEnterAction)(d.autoIndent,v,new b.Range(T,N,T,N),d.languageConfigurationService);A&&(L=A.indentation+A.appendText)}return S&&(S===o.IndentAction.Indent&&(L=c.shiftIndent(d,L)),S===o.IndentAction.Outdent&&(L=c.unshiftIndent(d,L)),L=d.normalizeIndentation(L)),L||null}static _replaceJumpToNextIndent(d,v,_,S){let L="";const I=_.getStartPosition();if(d.insertSpaces){const T=d.visibleColumnFromColumn(v,I),N=d.indentSize,A=N-T%N;for(let O=0;O<A;O++)L+=" "}else L=" ";return new E.ReplaceCommand(_,L,S)}static tab(d,v,_){const S=[];for(let L=0,I=_.length;L<I;L++){const T=_[L];if(T.isEmpty()){const N=v.getLineContent(T.startLineNumber);if(/^\s*$/.test(N)&&v.tokenization.isCheapToTokenize(T.startLineNumber)){let A=this._goodIndentForLine(d,v,T.startLineNumber);A=A||" ";const O=d.normalizeIndentation(A);if(!N.startsWith(O)){S[L]=new E.ReplaceCommand(new b.Range(T.startLineNumber,1,T.startLineNumber,N.length+1),O,!0);continue}}S[L]=this._replaceJumpToNextIndent(d,v,T,!0)}else{if(T.startLineNumber===T.endLineNumber){const N=v.getLineMaxColumn(T.startLineNumber);if(T.startColumn!==1||T.endColumn!==N){S[L]=this._replaceJumpToNextIndent(d,v,T,!1);continue}}S[L]=new D.ShiftCommand(T,{isUnshift:!1,tabSize:d.tabSize,indentSize:d.indentSize,insertSpaces:d.insertSpaces,useTabStops:d.useTabStops,autoIndent:d.autoIndent},d.languageConfigurationService)}}return S}static compositionType(d,v,_,S,L,I,T,N){const A=S.map(O=>this._compositionType(_,O,L,I,T,N));return new p.EditOperationResult(4,A,{shouldPushStackElementBefore:a(d,4),shouldPushStackElementAfter:!1})}static _compositionType(d,v,_,S,L,I){if(!v.isEmpty())return null;const T=v.getPosition(),N=Math.max(1,T.column-S),A=Math.min(d.getLineMaxColumn(T.lineNumber),T.column+L),O=new b.Range(T.lineNumber,N,T.lineNumber,A);return d.getValueInRange(O)===_&&I===0?null:new E.ReplaceCommandWithOffsetCursorState(O,_,0,I)}static _typeCommand(d,v,_){return _?new E.ReplaceCommandWithoutChangingPosition(d,v,!0):new E.ReplaceCommand(d,v,!0)}static _enter(d,v,_,S){if(d.autoIndent===0)return c._typeCommand(S,`
`,_);if(!v.tokenization.isCheapToTokenize(S.getStartPosition().lineNumber)||d.autoIndent===1){const N=v.getLineContent(S.startLineNumber),A=k.getLeadingWhitespace(N).substring(0,S.startColumn-1);return c._typeCommand(S,`
`+d.normalizeIndentation(A),_)}const L=(0,n.getEnterAction)(d.autoIndent,v,S,d.languageConfigurationService);if(L){if(L.indentAction===o.IndentAction.None)return c._typeCommand(S,`
`+d.normalizeIndentation(L.indentation+L.appendText),_);if(L.indentAction===o.IndentAction.Indent)return c._typeCommand(S,`
`+d.normalizeIndentation(L.indentation+L.appendText),_);if(L.indentAction===o.IndentAction.IndentOutdent){const N=d.normalizeIndentation(L.indentation),A=d.normalizeIndentation(L.indentation+L.appendText),O=`
`+A+`
`+N;return _?new E.ReplaceCommandWithoutChangingPosition(S,O,!0):new E.ReplaceCommandWithOffsetCursorState(S,O,-1,A.length-N.length,!0)}else if(L.indentAction===o.IndentAction.Outdent){const N=c.unshiftIndent(d,L.indentation);return c._typeCommand(S,`
`+d.normalizeIndentation(N+L.appendText),_)}}const I=v.getLineContent(S.startLineNumber),T=k.getLeadingWhitespace(I).substring(0,S.startColumn-1);if(d.autoIndent>=4){const N=(0,t.getIndentForEnter)(d.autoIndent,v,S,{unshiftIndent:A=>c.unshiftIndent(d,A),shiftIndent:A=>c.shiftIndent(d,A),normalizeIndentation:A=>d.normalizeIndentation(A)},d.languageConfigurationService);if(N){let A=d.visibleColumnFromColumn(v,S.getEndPosition());const O=S.endColumn,M=v.getLineContent(S.endLineNumber),R=k.firstNonWhitespaceIndex(M);if(R>=0?S=S.setEndPosition(S.endLineNumber,Math.max(S.endColumn,R+1)):S=S.setEndPosition(S.endLineNumber,v.getLineMaxColumn(S.endLineNumber)),_)return new E.ReplaceCommandWithoutChangingPosition(S,`
`+d.normalizeIndentation(N.afterEnter),!0);{let x=0;return O<=R+1&&(d.insertSpaces||(A=Math.ceil(A/d.indentSize)),x=Math.min(A+1-d.normalizeIndentation(N.afterEnter).length-1,0)),new E.ReplaceCommandWithOffsetCursorState(S,`
`+d.normalizeIndentation(N.afterEnter),0,x,!0)}}}return c._typeCommand(S,`
`+d.normalizeIndentation(T),_)}static _isAutoIndentType(d,v,_){if(d.autoIndent<4)return!1;for(let S=0,L=_.length;S<L;S++)if(!v.tokenization.isCheapToTokenize(_[S].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(d,v,_,S){const L=(0,s.getIndentationAtPosition)(v,_.startLineNumber,_.startColumn),I=(0,t.getIndentActionForType)(d.autoIndent,v,_,S,{shiftIndent:T=>c.shiftIndent(d,T),unshiftIndent:T=>c.unshiftIndent(d,T)},d.languageConfigurationService);if(I===null)return null;if(I!==d.normalizeIndentation(L)){const T=v.getLineFirstNonWhitespaceColumn(_.startLineNumber);return T===0?c._typeCommand(new b.Range(_.startLineNumber,1,_.endLineNumber,_.endColumn),d.normalizeIndentation(I)+S,!1):c._typeCommand(new b.Range(_.startLineNumber,1,_.endLineNumber,_.endColumn),d.normalizeIndentation(I)+v.getLineContent(_.startLineNumber).substring(T-1,_.startColumn-1)+S,!1)}return null}static _isAutoClosingOvertype(d,v,_,S,L){if(d.autoClosingOvertype==="never"||!d.autoClosingPairs.autoClosingPairsCloseSingleChar.has(L))return!1;for(let I=0,T=_.length;I<T;I++){const N=_[I];if(!N.isEmpty())return!1;const A=N.getPosition(),O=v.getLineContent(A.lineNumber);if(O.charAt(A.column-1)!==L)return!1;const R=(0,p.isQuote)(L);if((A.column>2?O.charCodeAt(A.column-2):0)===92&&R)return!1;if(d.autoClosingOvertype==="auto"){let F=!1;for(let W=0,H=S.length;W<H;W++){const z=S[W];if(A.lineNumber===z.startLineNumber&&A.column===z.startColumn){F=!0;break}}if(!F)return!1}}return!0}static _runAutoClosingOvertype(d,v,_,S,L){const I=[];for(let T=0,N=S.length;T<N;T++){const O=S[T].getPosition(),M=new b.Range(O.lineNumber,O.column,O.lineNumber,O.column+1);I[T]=new E.ReplaceCommand(M,L)}return new p.EditOperationResult(4,I,{shouldPushStackElementBefore:a(d,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(d,v){const _=v.charAt(0),S=d.autoClosingPairs.autoClosingPairsOpenByStart.get(_)||[],L=d.autoClosingPairs.autoClosingPairsCloseByStart.get(_)||[],I=S.some(N=>v.startsWith(N.open)),T=L.some(N=>v.startsWith(N.close));return!I&&T}static _findAutoClosingPairOpen(d,v,_,S){const L=d.autoClosingPairs.autoClosingPairsOpenByEnd.get(S);if(!L)return null;let I=null;for(const T of L)if(I===null||T.open.length>I.open.length){let N=!0;for(const A of _)if(v.getValueInRange(new b.Range(A.lineNumber,A.column-T.open.length+1,A.lineNumber,A.column))+S!==T.open){N=!1;break}N&&(I=T)}return I}static _findContainedAutoClosingPair(d,v){if(v.open.length<=1)return null;const _=v.close.charAt(v.close.length-1),S=d.autoClosingPairs.autoClosingPairsCloseByEnd.get(_)||[];let L=null;for(const I of S)I.open!==v.open&&v.open.includes(I.open)&&v.close.endsWith(I.close)&&(!L||I.open.length>L.open.length)&&(L=I);return L}static _getAutoClosingPairClose(d,v,_,S,L){for(const F of _)if(!F.isEmpty())return null;const I=_.map(F=>{const W=F.getPosition();return L?{lineNumber:W.lineNumber,beforeColumn:W.column-S.length,afterColumn:W.column}:{lineNumber:W.lineNumber,beforeColumn:W.column,afterColumn:W.column}}),T=this._findAutoClosingPairOpen(d,v,I.map(F=>new C.Position(F.lineNumber,F.beforeColumn)),S);if(!T)return null;let N,A;if((0,p.isQuote)(S)?(N=d.autoClosingQuotes,A=d.shouldAutoCloseBefore.quote):(d.blockCommentStartToken?T.open.includes(d.blockCommentStartToken):!1)?(N=d.autoClosingComments,A=d.shouldAutoCloseBefore.comment):(N=d.autoClosingBrackets,A=d.shouldAutoCloseBefore.bracket),N==="never")return null;const M=this._findContainedAutoClosingPair(d,T),R=M?M.close:"";let x=!0;for(const F of I){const{lineNumber:W,beforeColumn:H,afterColumn:z}=F,j=v.getLineContent(W),K=j.substring(0,H-1),U=j.substring(z-1);if(U.startsWith(R)||(x=!1),U.length>0){const Y=U.charAt(0);if(!c._isBeforeClosingBrace(d,U)&&!A(Y))return null}if(T.open.length===1&&(S==="'"||S==='"')&&N!=="always"){const Y=(0,w.getMapForWordSeparators)(d.wordSeparators,[]);if(K.length>0){const P=K.charCodeAt(K.length-1);if(Y.get(P)===0)return null}}if(!v.tokenization.isCheapToTokenize(W))return null;v.tokenization.forceTokenization(W);const G=v.tokenization.getLineTokens(W),te=(0,i.createScopedLineTokens)(G,H-1)
`){const O=[];for(let M=0,R=L.length;M<R;M++)O[M]=c._enter(_,S,!1,L[M]);return new p.EditOperationResult(4,O,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!d&&this._isAutoIndentType(_,S,L)){const O=[];let M=!1;for(let R=0,x=L.length;R<x;R++)if(O[R]=this._runAutoIndentType(_,S,L[R],T),!O[R]){M=!0;break}if(!M)return new p.EditOperationResult(4,O,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(_,S,L,I,T))return this._runAutoClosingOvertype(v,_,S,L,T);if(!d){const O=this._getAutoClosingPairClose(_,S,L,T,!1);if(O)return this._runAutoClosingOpenCharType(v,_,S,L,T,!1,O)}if(!d&&this._isSurroundSelectionType(_,S,L,T))return this._runSurroundSelectionType(v,_,S,L,T);if(!d&&this._isTypeInterceptorElectricChar(_,S,L)){const O=this._typeInterceptorElectricChar(v,_,S,L[0],T);if(O)return O}const N=[];for(let O=0,M=L.length;O<M;O++)N[O]=new E.ReplaceCommand(L[O],T);const A=r(T,v);return new p.EditOperationResult(A,N,{shouldPushStackElementBefore:a(v,A),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(d,v,_,S,L){const I=[];for(let N=0,A=S.length;N<A;N++)I[N]=new E.ReplaceCommand(S[N],L);const T=r(L,d);return new p.EditOperationResult(T,I,{shouldPushStackElementBefore:a(d,T),shouldPushStackElementAfter:!1})}static lineInsertBefore(d,v,_){if(v===null||_===null)return[];const S=[];for(let L=0,I=_.length;L<I;L++){let T=_[L].positionLineNumber;if(T===1)S[L]=new E.ReplaceCommandWithoutChangingPosition(new b.Range(1,1,1,1),`
`);else{T--;const N=v.getLineMaxColumn(T);S[L]=this._enter(d,v,!1,new b.Range(T,N,T,N))}}return S}static lineInsertAfter(d,v,_){if(v===null||_===null)return[];const S=[];for(let L=0,I=_.length;L<I;L++){const T=_[L].positionLineNumber,N=v.getLineMaxColumn(T);S[L]=this._enter(d,v,!1,new b.Range(T,N,T,N))}return S}static lineBreakInsert(d,v,_){const S=[];for(let L=0,I=_.length;L<I;L++)S[L]=this._enter(d,v,!0,_[L]);return S}}e.TypeOperations=c;class m extends E.ReplaceCommandWithOffsetCursorState{constructor(d,v,_,S){super(d,(_?v:"")+S,0,-S.length),this._openCharacter=v,this._closeCharacter=S,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(d,v){const S=v.getInverseEditOperations()[0].range;return this.closeCharacterRange=new b.Range(S.startLineNumber,S.endColumn-this._closeCharacter.length,S.endLineNumber,S.endColumn),this.enclosingRange=new b.Range(S.startLineNumber,S.endColumn-this._openCharacter.length-this._closeCharacter.length,S.endLineNumber,S.endColumn),super.computeCursorState(d,v)}}e.TypeWithAutoClosingCommand=m;class u{constructor(d,v,_,S,L,I){this.deletedText=d,this.deletedSelectionStart=v,this.deletedSelectionEnd=_,this.insertedText=S,this.insertedSelectionStart=L,this.insertedSelectionEnd=I}}e.CompositionOutcome=u;function r(g,d){return g===" "?d===5||d===6?6:5:4}function a(g,d){return l(g)&&!l(d)?!0:g===5?!1:h(g)!==h(d)}function h(g){return g===6||g===5?"space":g}function l(g){return g===4||g===5||g===6}}),define(ie[838],ne([1,0,10,12,545,79,534,228,269,5,24,127,235,2,236]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CursorsController=void 0;class n extends i.Disposable{constructor(l,g,d,v){super(),this._model=l,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=g,this._coordinatesConverter=d,this.context=new y.CursorContext(this._model,this._viewModel,this._coordinatesConverter,v),this._cursors=new E.CursorCollection(this.context),this._hasFocus=!1,this._isHandling=!1,this._compositionState=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,i.dispose)(this._autoClosedActions),super.dispose()}updateConfiguration(l){this.context=new y.CursorContext(this._model,this._viewModel,this._coordinatesConverter,l),this._cursors.updateContext(this.context)}onLineMappingChanged(l){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(l,"viewModel",0,this.getCursorStates())}setHasFocus(l){this._hasFocus=l}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){const l=this._cursors.getSelections();for(let g=0;g<this._autoClosedActions.length;g++){const d=this._autoClosedActions[g];d.isValid(l)||(d.dispose(),this._autoClosedActions.splice(g,1),g--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(l,g,d,v){let _=!1;const S=this.context.cursorConfig.multiCursorLimit;v!==null&&v.length>S&&(v=v.slice(0,S),_=!0);const L=c.from(this._model,this);return this._cursors.setStates(v),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(l,g,d,L,_)}setCursorColumnSelectData(l){this._columnSelectData=l}revealAll(l,g,d,v,_,S){const L=this._cursors.getViewPositions();let I=null,T=null;L.length>1?T=this._cursors.getViewSelections():I=b.Range.fromPositions(L[0],L[0]),l.emitViewEvent(new s.ViewRevealRangeRequestEvent(g,d,I,T,v,_,S))}revealPrimary(l,g,d,v,_,S){const I=[this._cursors.getPrimaryCursor().viewState.selection];l.emitViewEvent(new s.ViewRevealRangeRequestEvent(g,d,null,I,v,_,S))}saveState(){const l=[],g=this._cursors.getSelections();for(let d=0,v=g.length;d<v;d++){const _=g[d];l.push({inSelectionMode:!_.isEmpty(),selectionStart:{lineNumber:_.selectionStartLineNumber,column:_.selectionStartColumn},position:{lineNumber:_.positionLineNumber,column:_.positionColumn}})}return l}restoreState(l,g){c
`)>=0)return null;const S=_.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!S)return null;const L=S[1],I=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(L);if(!I||I.length!==1)return null;const T=I[0].open,N=_.text.length-S[2].length-1,A=_.text.lastIndexOf(T,N-1);if(A===-1)return null;g.push([A,N])}return g}executeEdits(l,g,d,v){let _=null;g==="snippet"&&(_=this._findAutoClosingPairs(d)),_&&(d[0]._isTracked=!0);const S=[],L=[],I=this._model.pushEditOperations(this.getSelections(),d,T=>{if(_)for(let A=0,O=_.length;A<O;A++){const[M,R]=_[A],x=T[A],F=x.range.startLineNumber,W=x.range.startColumn-1+M,H=x.range.startColumn-1+R;S.push(new b.Range(F,H+1,F,H+2)),L.push(new b.Range(F,W+1,F,H+2))}const N=v(T);return N&&(this._isHandling=!0),N});I&&(this._isHandling=!1,this.setSelections(l,g,I,0)),S.length>0&&this._pushAutoClosedAction(S,L)}_executeEdit(l,g,d,v=0){if(this.context.cursorConfig.readOnly)return;const _=c.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),l()}catch(S){(0,f.onUnexpectedError)(S)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(g,d,v,_,!1)&&this.revealAll(g,d,!1,0,!0,0)}getAutoClosedCharacters(){return m.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(l){this._compositionState=new a(this._model,this.getSelections())}endComposition(l,g){const d=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{g==="keyboard"&&this._executeEditOperation(w.TypeOperations.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,d,this.getSelections(),this.getAutoClosedCharacters()))},l,g)}type(l,g,d){this._executeEdit(()=>{if(d==="keyboard"){const v=g.length;let _=0;for(;_<v;){const S=k.nextCharLength(g,_),L=g.substr(_,S);this._executeEditOperation(w.TypeOperations.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),L)),_+=S}}else this._executeEditOperation(w.TypeOperations.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),g))},l,d)}compositionType(l,g,d,v,_,S){if(g.length===0&&d===0&&v===0){if(_!==0){const L=this.getSelections().map(I=>{const T=I.getPosition();return new C.Selection(T.lineNumber,T.column+_,T.lineNumber,T.column+_)});this.setSelections(l,S,L,0)}return}this._executeEdit(()=>{this._executeEditOperation(w.TypeOperations.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),g,d,v,_))},l,S)}paste(l,g,d,v,_){this._executeEdit(()=>{this._executeEditOperation(w.TypeOperations.paste(this.context.cursorConfig,this._model,this.getSelections(),g,d,v||[]))},l,_,4)}cut(l,g){this._executeEdit(()=>{this._executeEditOperation(p.DeleteOperations.cut(this.context.cursorConfig,this._model,this.getSelections()))},l,g)}executeCommand(l,g,d){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new D.EditOperationResult(0,[g],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},l,d)}executeCommands(l,g,d){this._executeEdit(()=>{this._executeEditOperation(new D.EditOperationResult(0,g,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},l,d)}}e.CursorsController=n;class c{static from(l,g){return new c(l.getVersionId(),g.getCursorStates())}constructor(l,g){this.modelVersionId=l,this.cursorState=g}equals(l){if(!l||this.modelVersionId!==l.modelVersionId||this.cursorState.length!==l.cursorState.length)return!1;for(let g=0,d=this.cursorState.length;g<d;g++)if(!this.cursorState[g].equals(l.cursorState[g]))return!1;return!0}}class m{static getAllAutoClosedCharacters(l){let g=[];for(const d of l)g=g.concat(d.getAutoClosedCharactersRanges());return g}constructor(l,g,d){this._model=l,this._autoClosedCharactersDecorations=g,this._au
`);const _=this.matchEnterRuleMovingDown(i,a,m,c.startLineNumber,l,d);if(_!==null)_!==0&&this.getIndentEditsOfMovingBlock(i,t,c,m,r,_);else{h.getLineContent=L=>L===c.startLineNumber?d:L>=c.startLineNumber+1&&L<=c.endLineNumber+1?i.getLineContent(L-1):i.getLineContent(L);const S=(0,b.getGoodIndentForLine)(this._autoIndent,h,i.getLanguageIdAtPosition(l,1),c.startLineNumber+1,a,this._languageConfigurationService);if(S!==null){const L=f.getLeadingWhitespace(i.getLineContent(c.startLineNumber)),I=w.getSpaceCnt(S,m),T=w.getSpaceCnt(L,m);if(I!==T){const N=I-T;this.getIndentEditsOfMovingBlock(i,t,c,m,r,N)}}}}else t.addEditOperation(new E.Range(c.startLineNumber,1,c.startLineNumber,1),d+`
`)}else if(l=c.startLineNumber-1,g=i.getLineContent(l),t.addEditOperation(new E.Range(l,1,l+1,1),null),t.addEditOperation(new E.Range(c.endLineNumber,i.getLineMaxColumn(c.endLineNumber),c.endLineNumber,i.getLineMaxColumn(c.endLineNumber)),`
`+g),this.shouldAutoIndent(i,c)){h.getLineContent=v=>v===l?i.getLineContent(c.startLineNumber):i.getLineContent(v);const d=this.matchEnterRule(i,a,m,c.startLineNumber,c.startLineNumber-2);if(d!==null)d!==0&&this.getIndentEditsOfMovingBlock(i,t,c,m,r,d);else{const v=(0,b.getGoodIndentForLine)(this._autoIndent,h,i.getLanguageIdAtPosition(c.startLineNumber,1),l,a,this._languageConfigurationService);if(v!==null){const _=f.getLeadingWhitespace(i.getLineContent(c.startLineNumber)),S=w.getSpaceCnt(v,m),L=w.getSpaceCnt(_,m);if(S!==L){const I=S-L;this.getIndentEditsOfMovingBlock(i,t,c,m,r,I)}}}}}this._selectionId=t.trackSelection(c)}buildIndentConverter(i,t,n){return{shiftIndent:c=>k.ShiftCommand.shiftIndent(c,c.length+1,i,t,n),unshiftIndent:c=>k.ShiftCommand.unshiftIndent(c,c.length+1,i,t,n)}}parseEnterResult(i,t,n,c,m){if(m){let u=m.indentation;m.indentAction===y.IndentAction.None||m.indentAction===y.IndentAction.Indent?u=m.indentation+m.appendText:m.indentAction===y.IndentAction.IndentOutdent?u=m.indentation:m.indentAction===y.IndentAction.Outdent&&(u=t.unshiftIndent(m.indentation)+m.appendText);const r=i.getLineContent(c);if(this.trimStart(r).indexOf(this.trimStart(u))>=0){const a=f.getLeadingWhitespace(i.getLineContent(c));let h=f.getLeadingWhitespace(u);const l=(0,b.getIndentMetadata)(i,c,this._languageConfigurationService);l!==null&&l&2&&(h=t.unshiftIndent(h));const g=w.getSpaceCnt(h,n),d=w.getSpaceCnt(a,n);return g-d}}return null}matchEnterRuleMovingDown(i,t,n,c,m,u){if(f.lastNonWhitespaceIndex(u)>=0){const r=i.getLineMaxColumn(m),a=(0,C.getEnterAction)(this._autoIndent,i,new E.Range(m,r,m,r),this._languageConfigurationService);return this.parseEnterResult(i,t,n,c,a)}else{let r=c-1;for(;r>=1;){const l=i.getLineContent(r);if(f.lastNonWhitespaceIndex(l)>=0)break;r--}if(r<1||c>i.getLineCount())return null;const a=i.getLineMaxColumn(r),h=(0,C.getEnterAction)(this._autoIndent,i,new E.Range(r,a,r,a),this._languageConfigurationService);return this.parseEnterResult(i,t,n,c,h)}}matchEnterRule(i,t,n,c,m,u){let r=m;for(;r>=1;){let l;if(r===m&&u!==void 0?l=u:l=i.getLineContent(r),f.lastNonWhitespaceIndex(l)>=0)break;r--}if(r<1||c>i.getLineCount())return null;const a=i.getLineMaxColumn(r),h=(0,C.getEnterAction)(this._autoIndent,i,new E.Range(r,a,r,a),this._languageConfigurationService);return this.parseEnterResult(i,t,n,c,h)}trimStart(i){return i.replace(/^\s+/,"")}shouldAutoIndent(i,t){if(this._autoIndent<4||!i.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const n=i.getLanguageIdAtPosition(t.startLineNumber,1),c=i.getLanguageIdAtPosition(t.endLineNumber,1);return!(n!==c||this._languageConfigurationService.getLanguageConfiguration(n).indentRulesSupport===null)}getIndentEditsOfMovingBlock(i,t,n,c,m,u){for(let r=n.startLineNumber;r<=n.endLineNumber;r++){const a=i.getLineContent(r),h=f.getLeadingWhitespace(a),g=w.getSpaceCnt(h,c)+u,d=w.generateIndent(g,c,m);d!==h&&(t.addEditOperation(new E.Range(r,1,r,h.length+1),d),r===n.endLineNumber&&n.endColumn<=h.length+1&&d===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(i,t){let n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n}};e.MoveLinesCommand=o,e.MoveLinesCommand=o=Ie([ue(3,p.ILanguageConfigurationService)],o)}),define(ie[382],ne([1,0,6,81,26,31,7,57,2,117,248,758,8]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestDetailsOverlay=e.SuggestDetailsWidget=void 0,e.canExpandCompletionItem=i;function i(c){return!!c&&!!(c.completion.documentation||c.completion.detail&&c.completion.detail!==c.completion.label)}let t=class{constructor(m,u){this._editor=m,this._onDidClose=new y.Emitter,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new y.Emitter,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new w.DisposableStore,this._renderDisposeable=new w.DisposableStore,this._borderWidth=1,this._size=n
`,g+=`prefix: ${(r=m.word)!==null&&r!==void 0?r:"(no prefix)"}
`,g+=`word: ${m.completion.filterText?m.completion.filterText+" (filterText)":m.textLabel}
`,g+=`distance: ${m.distance} (localityBonus-setting)
`,g+=`index: ${m.idx}, based on ${m.completion.sortText&&`sortText: "${m.completion.sortText}"`||"label"}
`,g+=`commit_chars: ${(a=m.completion.commitCharacters)===null||a===void 0?void 0:a.join("")}
`,l=new p.MarkdownString().appendCodeblock("empty",g),h=`Provider: ${m.provider._debugDisplayName}`}if(!u&&!i(m)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),h){const g=h.length>1e5?`${h.substr(0,1e5)}\u2026`:h;this._type.textContent=g,this._type.title=g,f.show(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(g))}else f.clearNode(this._type),this._type.title="",f.hide(this._type),this.domNode.classList.add("no-type");if(f.clearNode(this._docs),typeof l=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=l;else if(l){this._docs.classList.add("markdown-docs"),f.clearNode(this._docs);const g=this._markdownRenderer.render(l);this._docs.appendChild(g.element),this._renderDisposeable.add(g),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=g=>{g.preventDefault(),g.stopPropagation()},this._close.onclick=g=>{g.preventDefault(),g.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(m,u){const r=new f.Dimension(m,u);f.Dimension.equals(r,this._size)||(this._size=r,f.size(this.domNode,m,u)),this._scrollbar.scanDomNode()}scrollDown(m=8){this._body.scrollTop+=m}scrollUp(m=8){this._body.scrollTop-=m}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(m){this._borderWidth=m}get borderWidth(){return this._borderWidth}};e.SuggestDetailsWidget=t,e.SuggestDetailsWidget=t=Ie([ue(1,s.IInstantiationService)],t);class n{constructor(m,u){this.widget=m,this._editor=u,this.allowEditorOverflow=!0,this._disposables=new w.DisposableStore,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new C.ResizableHTMLElement,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(m.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let r,a,h=0,l=0;this._disposables.add(this._resizable.onDidWillResize(()=>{r=this._topLeft,a=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(g=>{if(r&&a){this.widget.layout(g.dimension.width,g.dimension.height);let d=!1;g.west&&(l=a.width-g.dimension.width,d=!0),g.north&&(h=a.height-g.dimension.height,d=!0),d&&this._applyTopLeft({top:r.top+h,left:r.left+l})}g.done&&(r=void 0,a=void 0,h=0,l=0,this._userSize=g.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var g;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(g=this._userSize)!==null&&g!==void 0?g:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(m=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),m&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(m,u){var r;const a=m.getBoundingClientRect();this._anchorBox=a,this._preferAlignAtTop=u,this._placeAtAnchor(this._anchorBox,(r=this._userSize)!==null&&r!==void 0?r:this.widget.size,u)}_placeAtAnchor(m,u,r){var a;const h=f.getClientArea(this.getDomNode().ownerDocument.body),l=this.widget.getLayoutInfo(),g=new f.Dimension(220,2*l.lineHeight),d=m.top,v=function(){const W=h.width-(m.left+m.width+l.borderWidth+l.horizontalPadding),H=-l.borderWidth+m.left+m.width,z=new f.Dimension(
`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const l of m.keys)this.affectedKeys.add(l);for(const[,l]of m.overrides)for(const g of l)this.affectedKeys.add(g);this._affectsConfigStr=this._marker;for(const l of this.affectedKeys)this._affectsConfigStr+=l+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=t.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(m,u){var r;const a=this._marker+m,h=this._affectsConfigStr.indexOf(a);if(h<0)return!1;const l=h+a.length;if(l>=this._affectsConfigStr.length)return!1;const g=this._affectsConfigStr.charCodeAt(l);if(g!==this._markerCode1&&g!==this._markerCode2)return!1;if(u){const d=this.previousConfiguration?this.previousConfiguration.getValue(m,u,(r=this.previous)===null||r===void 0?void 0:r.workspace):void 0,v=this.currentConfiguraiton.getValue(m,u,this.currentWorkspace);return!E.equals(d,v)}return!0}}e.ConfigurationChangeEvent=n}),define(ie[847],ne([1,0,2,383,105,39]),function(Q,e,f,k,E,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultConfiguration=void 0;class y extends f.Disposable{get configurationModel(){return this._configurationModel}constructor(w){super(),this.logService=w,this._configurationModel=k.ConfigurationModel.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=k.ConfigurationModel.createEmptyModel(this.logService);const w=D.Registry.as(E.Extensions.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(w),w)}updateConfigurationModel(w,b){const C=this.getConfigurationDefaultOverrides();for(const o of w){const s=C[o],i=b[o];s!==void 0?this._configurationModel.addValue(o,s):i?this._configurationModel.addValue(o,i.default):this._configurationModel.removeValue(o)}}}e.DefaultConfiguration=y}),define(ie[133],ne([1,0,135,17,25,39,2,70]),function(Q,e,f,k,E,D,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=e.KeybindingsRegistry=void 0;class w{constructor(){this._coreKeybindings=new p.LinkedList,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(o){if(k.OS===1){if(o&&o.win)return o.win}else if(k.OS===2){if(o&&o.mac)return o.mac}else if(o&&o.linux)return o.linux;return o}registerKeybindingRule(o){const s=w.bindToCurrentPlatform(o),i=new y.DisposableStore;if(s&&s.primary){const t=(0,f.decodeKeybinding)(s.primary,k.OS);t&&i.add(this._registerDefaultKeybinding(t,o.id,o.args,o.weight,0,o.when))}if(s&&Array.isArray(s.secondary))for(let t=0,n=s.secondary.length;t<n;t++){const c=s.secondary[t],m=(0,f.decodeKeybinding)(c,k.OS);m&&i.add(this._registerDefaultKeybinding(m,o.id,o.args,o.weight,-t-1,o.when))}return i}registerCommandAndKeybindingRule(o){return(0,y.combinedDisposable)(this.registerKeybindingRule(o),E.CommandsRegistry.registerCommand(o))}_registerDefaultKeybinding(o,s,i,t,n,c){const m=this._coreKeybindings.push({keybinding:o,command:s,commandArgs:i,when:c,weight1:t,weight2:n,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,(0,y.toDisposable)(()=>{m(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(b)),this._cachedMergedKeybindings.slice(0)}}e.KeybindingsRegistry=new w,e.Extensions={EditorModes:"platform.keybindingsRegistry"},D.Registry.add(e.Extensions.EditorModes,e.KeybindingsRegistry);function b(C,o){if(C.weight1!==o.weight1)return C.weight1-o.weight1;if(C.command&&o.command){if(C.command<o.command)return-1;if(C.command>o.command)return 1}return C.weight2-o.weight2}}),define(ie[29],ne([1,0,41,31,7,2,70,25,14,8,133]),function(Q,e,f,k,E,D,y,p,w,b,C){"use strict";var o;Object.defineProperty(e,"_
`))),ae.push(le),oe+=V.endLineNumber-V.startLineNumber+1-J.length}pe.pushUndoStop(),pe.executeEdits(this.id,X,B?ae:void 0),pe.pushUndoStop()}}e.DeleteDuplicateLinesAction=T;class N extends E.EditorAction{constructor(){super({id:N.ID,label:c.localize(13,null),alias:"Trim Trailing Whitespace",precondition:s.EditorContextKeys.writable,kbOpts:{kbExpr:s.EditorContextKeys.editorTextFocus,primary:(0,f.KeyChord)(2089,2102),weight:100}})}run(he,pe,ge){let X=[];ge.reason==="auto-save"&&(X=(pe.getSelections()||[]).map($=>new b.Position($.positionLineNumber,$.positionColumn)));const ae=pe.getSelection();if(ae===null)return;const oe=he.get(r.IConfigurationService),B=pe.getModel(),q=oe.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:B?.getLanguageId(),resource:B?.uri}),V=new y.TrimTrailingWhitespaceCommand(ae,X,q);pe.pushUndoStop(),pe.executeCommands(this.id,[V]),pe.pushUndoStop()}}e.TrimTrailingWhitespaceAction=N,N.ID="editor.action.trimTrailingWhitespace";class A extends E.EditorAction{constructor(){super({id:"editor.action.deleteLines",label:c.localize(14,null),alias:"Delete Line",precondition:s.EditorContextKeys.writable,kbOpts:{kbExpr:s.EditorContextKeys.textInputFocus,primary:3113,weight:100}})}run(he,pe){if(!pe.hasModel())return;const ge=this._getLinesToRemove(pe),X=pe.getModel();if(X.getLineCount()===1&&X.getLineMaxColumn(1)===1)return;let ae=0;const oe=[],B=[];for(let q=0,V=ge.length;q<V;q++){const $=ge[q];let J=$.startLineNumber,se=$.endLineNumber,de=1,le=X.getLineMaxColumn(se);se<X.getLineCount()?(se+=1,le=1):J>1&&(J-=1,de=X.getLineMaxColumn(J)),oe.push(w.EditOperation.replace(new o.Selection(J,de,se,le),"")),B.push(new o.Selection(J-ae,$.positionColumn,J-ae,$.positionColumn)),ae+=$.endLineNumber-$.startLineNumber+1}pe.pushUndoStop(),pe.executeEdits(this.id,oe,B),pe.pushUndoStop()}_getLinesToRemove(he){const pe=he.getSelections().map(ae=>{let oe=ae.endLineNumber;return ae.startLineNumber<ae.endLineNumber&&ae.endColumn===1&&(oe-=1),{startLineNumber:ae.startLineNumber,selectionStartColumn:ae.selectionStartColumn,endLineNumber:oe,positionColumn:ae.positionColumn}});pe.sort((ae,oe)=>ae.startLineNumber===oe.startLineNumber?ae.endLineNumber-oe.endLineNumber:ae.startLineNumber-oe.startLineNumber);const ge=[];let X=pe[0];for(let ae=1;ae<pe.length;ae++)X.endLineNumber+1>=pe[ae].startLineNumber?X.endLineNumber=pe[ae].endLineNumber:(ge.push(X),X=pe[ae]);return ge.push(X),ge}}e.DeleteLinesAction=A;class O extends E.EditorAction{constructor(){super({id:"editor.action.indentLines",label:c.localize(15,null),alias:"Indent Line",precondition:s.EditorContextKeys.writable,kbOpts:{kbExpr:s.EditorContextKeys.editorTextFocus,primary:2142,weight:100}})}run(he,pe){const ge=pe._getViewModel();ge&&(pe.pushUndoStop(),pe.executeCommands(this.id,p.TypeOperations.indent(ge.cursorConfig,pe.getModel(),pe.getSelections())),pe.pushUndoStop())}}e.IndentLinesAction=O;class M extends E.EditorAction{constructor(){super({id:"editor.action.outdentLines",label:c.localize(16,null),alias:"Outdent Line",precondition:s.EditorContextKeys.writable,kbOpts:{kbExpr:s.EditorContextKeys.editorTextFocus,primary:2140,weight:100}})}run(he,pe){k.CoreEditingCommands.Outdent.runEditorCommand(he,pe,null)}}class R extends E.EditorAction{constructor(){super({id:"editor.action.insertLineBefore",label:c.localize(17,null),alias:"Insert Line Above",precondition:s.EditorContextKeys.writable,kbOpts:{kbExpr:s.EditorContextKeys.editorTextFocus,primary:3075,weight:100}})}run(he,pe){const ge=pe._getViewModel();ge&&(pe.pushUndoStop(),pe.executeCommands(this.id,p.TypeOperations.lineInsertBefore(ge.cursorConfig,pe.getModel(),pe.getSelections())))}}e.InsertLineBeforeAction=R;class x extends E.EditorAction{constructor(){super({id:"editor.action.insertLineAfter",label:c.localize(18,null),alias:"Insert Line Below",precondition:s.EditorContextKeys.writable,kbOpts:{kbExpr:s.EditorContextKeys.editorTextFocus,primary:2051,weight:100}})}run(he,pe){const ge=pe._getViewModel();ge&&(pe.pushUndoStop(),pe.executeCommands(this.id,p.TypeOperations.lineInsertAfter(ge.cursorConfig,pe.
`)}}const s=new o;p.Registry.add(e.Extensions.ColorContribution,s);function i(d,v,_,S,L){return s.registerColor(d,v,_,S,L)}function t(d,v){var _,S,L,I;switch(d.op){case 0:return(_=h(d.value,v))===null||_===void 0?void 0:_.darken(d.factor);case 1:return(S=h(d.value,v))===null||S===void 0?void 0:S.lighten(d.factor);case 2:return(L=h(d.value,v))===null||L===void 0?void 0:L.transparent(d.factor);case 3:{const T=h(d.background,v);return T?(I=h(d.value,v))===null||I===void 0?void 0:I.makeOpaque(T):h(d.value,v)}case 4:for(const T of d.values){const N=h(T,v);if(N)return N}return;case 6:return h(v.defines(d.if)?d.then:d.else,v);case 5:{const T=h(d.value,v);if(!T)return;const N=h(d.background,v);return N?T.isDarkerThan(N)?E.Color.getLighterColor(T,N,d.factor).transparent(d.transparency):E.Color.getDarkerColor(T,N,d.factor).transparent(d.transparency):T.transparent(d.factor*d.transparency)}default:throw(0,f.assertNever)(d)}}function n(d,v){return{op:0,value:d,factor:v}}function c(d,v){return{op:1,value:d,factor:v}}function m(d,v){return{op:2,value:d,factor:v}}function u(...d){return{op:4,values:d}}function r(d,v,_){return{op:6,if:d,then:v,else:_}}function a(d,v,_,S){return{op:5,value:d,background:v,factor:_,transparency:S}}function h(d,v){if(d!==null){if(typeof d=="string")return d[0]==="#"?E.Color.fromHex(d):v.getColor(d);if(d instanceof E.Color)return d;if(typeof d=="object")return t(d,v)}}e.workbenchColorsSchemaId="vscode://schemas/workbench-colors";const l=p.Registry.as(y.Extensions.JSONContribution);l.registerSchema(e.workbenchColorsSchemaId,s.getColorSchema());const g=new k.RunOnceScheduler(()=>l.notifySchemaChanged(e.workbenchColorsSchemaId),200);s.onDidChangeSchema(()=>{g.isScheduled()||g.schedule()})}),define(ie[119],ne([1,0,791,35,93]),function(Q,e,f,k,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.textCodeBlockBackground=e.textBlockQuoteBorder=e.textBlockQuoteBackground=e.textPreformatBackground=e.textPreformatForeground=e.textSeparatorForeground=e.textLinkActiveForeground=e.textLinkForeground=e.selectionBackground=e.activeContrastBorder=e.contrastBorder=e.focusBorder=e.iconForeground=e.descriptionForeground=e.errorForeground=e.disabledForeground=e.foreground=void 0,e.foreground=(0,E.registerColor)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},f.localize(0,null)),e.disabledForeground=(0,E.registerColor)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},f.localize(1,null)),e.errorForeground=(0,E.registerColor)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},f.localize(2,null)),e.descriptionForeground=(0,E.registerColor)("descriptionForeground",{light:"#717171",dark:(0,E.transparent)(e.foreground,.7),hcDark:(0,E.transparent)(e.foreground,.7),hcLight:(0,E.transparent)(e.foreground,.7)},f.localize(3,null)),e.iconForeground=(0,E.registerColor)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},f.localize(4,null)),e.focusBorder=(0,E.registerColor)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},f.localize(5,null)),e.contrastBorder=(0,E.registerColor)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},f.localize(6,null)),e.activeContrastBorder=(0,E.registerColor)("contrastActiveBorder",{light:null,dark:null,hcDark:e.focusBorder,hcLight:e.focusBorder},f.localize(7,null)),e.selectionBackground=(0,E.registerColor)("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},f.localize(8,null)),e.textLinkForeground=(0,E.registerColor)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},f.localize(9,null)),e.textLinkActiveForeground=(0,E.registerColor)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},f.localize(10,null)),e.textSeparatorForeground=(0,E.registerColor)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:k.Color.black,hcLight:"#292929"},f.localize(11,null)),e.textPreformatForeground=
${L}: ${S};`}return d+=`
}`,d}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function a(h){return h.replace(/(^[A-Z])/,([l])=>l.toLowerCase()).replace(/([A-Z])/g,([l])=>`-${l.toLowerCase()}`)}}),define(ie[885],ne([1,0,6,40,166,2,17,12,254,56,38,5,303,360,91,33,24,68,528,122,45,617,470]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m,u,r,a,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Minimap=void 0;const l=140,g=2;class d{constructor(M,R,x){const F=M.options,W=F.get(143),H=F.get(145),z=H.minimap,j=F.get(50),K=F.get(73);this.renderMinimap=z.renderMinimap,this.size=K.size,this.minimapHeightIsEditorHeight=z.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=F.get(105),this.paddingTop=F.get(84).top,this.paddingBottom=F.get(84).bottom,this.showSlider=K.showSlider,this.autohide=K.autohide,this.pixelRatio=W,this.typicalHalfwidthCharacterWidth=j.typicalHalfwidthCharacterWidth,this.lineHeight=F.get(67),this.minimapLeft=z.minimapLeft,this.minimapWidth=z.minimapWidth,this.minimapHeight=H.height,this.canvasInnerWidth=z.minimapCanvasInnerWidth,this.canvasInnerHeight=z.minimapCanvasInnerHeight,this.canvasOuterWidth=z.minimapCanvasOuterWidth,this.canvasOuterHeight=z.minimapCanvasOuterHeight,this.isSampling=z.minimapIsSampling,this.editorHeight=H.height,this.fontScale=z.minimapScale,this.minimapLineHeight=z.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.sectionHeaderFontFamily=h.DEFAULT_FONT_FAMILY,this.sectionHeaderFontSize=K.sectionHeaderFontSize*W,this.sectionHeaderFontColor=d._getSectionHeaderColor(R,x.getColor(1)),this.charRenderer=(0,r.createSingleCallFunction)(()=>u.MinimapCharRendererFactory.create(this.fontScale,j.fontFamily)),this.defaultBackgroundColor=x.getColor(2),this.backgroundColor=d._getMinimapBackground(R,this.defaultBackgroundColor),this.foregroundAlpha=d._getMinimapForegroundOpacity(R)}static _getMinimapBackground(M,R){const x=M.getColor(n.minimapBackground);return x?new s.RGBA8(x.rgba.r,x.rgba.g,x.rgba.b,Math.round(255*x.rgba.a)):R}static _getMinimapForegroundOpacity(M){const R=M.getColor(n.minimapForegroundOpacity);return R?s.RGBA8._clamp(Math.round(255*R.rgba.a)):255}static _getSectionHeaderColor(M,R){const x=M.getColor(n.editorForeground);return x?new s.RGBA8(x.rgba.r,x.rgba.g,x.rgba.b,Math.round(255*x.rgba.a)):R}equals(M){return this.renderMinimap===M.renderMinimap&&this.size===M.size&&this.minimapHeightIsEditorHeight===M.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===M.scrollBeyondLastLine&&this.paddingTop===M.paddingTop&&this.paddingBottom===M.paddingBottom&&this.showSlider===M.showSlider&&this.autohide===M.autohide&&this.pixelRatio===M.pixelRatio&&this.typicalHalfwidthCharacterWidth===M.typicalHalfwidthCharacterWidth&&this.lineHeight===M.lineHeight&&this.minimapLeft===M.minimapLeft&&this.minimapWidth===M.minimapWidth&&this.minimapHeight===M.minimapHeight&&this.canvasInnerWidth===M.canvasInnerWidth&&this.canvasInnerHeight===M.canvasInnerHeight&&this.canvasOuterWidth===M.canvasOuterWidth&&this.canvasOuterHeight===M.canvasOuterHeight&&this.isSampling===M.isSampling&&this.editorHeight===M.editorHeight&&this.fontScale===M.fontScale&&this.minimapLineHeight===M.minimapLineHeight&&this.minimapCharWidth===M.minimapCharWidth&&this.sectionHeaderFontSize===M.sectionHeaderFontSize&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(M.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(M.backgroundColor)&&this.foregroundAlpha===M.foregroundAlpha}}class v{constructor(M,R,x,F,W,H,z,j,K){this.scrollTop=M,this.scrollHeight=R,this.sliderNeeded=x,this._computedSliderRatio=F,this.sliderTop=W,this.sliderHeight=H,this.topPaddingLineCount=z,this.startLineNumber=j,this.endLineNumber=K}getDesiredScrollTopFromDelta(M){return Math.round(this.scrollTop+M/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(M){return Math.round((M-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(M){const R=Ma
`)}}const n=new t;o.Registry.add(e.Extensions.IconContribution,n);function c(h,l,g,d){return n.registerIcon(h,l,g,d)}function m(){return n}function u(){const h=(0,E.getCodiconFontCharacters)();for(const l in h){const g="\\"+h[l].toString(16);n.registerIcon(l,{fontCharacter:g})}}u(),e.iconsSchemaId="vscode://schemas/icons";const r=o.Registry.as(C.Extensions.JSONContribution);r.registerSchema(e.iconsSchemaId,n.getIconSchema());const a=new f.RunOnceScheduler(()=>r.notifySchemaChanged(e.iconsSchemaId),200);n.onDidChange(()=>{a.isScheduled()||a.schedule()}),e.widgetClose=c("widget-close",k.Codicon.close,(0,b.localize)(2,null)),e.gotoPreviousLocation=c("goto-previous-location",k.Codicon.arrowUp,(0,b.localize)(3,null)),e.gotoNextLocation=c("goto-next-location",k.Codicon.arrowDown,(0,b.localize)(4,null)),e.syncing=D.ThemeIcon.modify(k.Codicon.sync,"spin"),e.spinningLoading=D.ThemeIcon.modify(k.Codicon.loading,"spin")}),define(ie[892],ne([1,0,6,99,82,81,41,13,26,2,30,31,71,83,38,59,65,9,5,100,43,102,131,91,664,132,8,76,478]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m,u,r,a,h,l,g,d,v,_,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessibleDiffViewerModelFromEditors=e.AccessibleDiffViewer=void 0;const L=(0,S.registerIcon)("diff-review-insert",w.Codicon.add,(0,d.localize)(0,null)),I=(0,S.registerIcon)("diff-review-remove",w.Codicon.remove,(0,d.localize)(1,null)),T=(0,S.registerIcon)("diff-review-close",w.Codicon.close,(0,d.localize)(2,null));let N=class extends b.Disposable{constructor(G,te,ee,Y,P,Z,re,ce,he){super(),this._parentNode=G,this._visible=te,this._setVisible=ee,this._canClose=Y,this._width=P,this._height=Z,this._diffs=re,this._models=ce,this._instantiationService=he,this._state=(0,C.derivedWithStore)(this,(pe,ge)=>{const X=this._visible.read(pe);if(this._parentNode.style.visibility=X?"visible":"hidden",!X)return null;const ae=ge.add(this._instantiationService.createInstance(A,this._diffs,this._models,this._setVisible,this._canClose)),oe=ge.add(this._instantiationService.createInstance(j,this._parentNode,ae,this._width,this._height,this._models));return{model:ae,view:oe}}).recomputeInitiallyAndOnChange(this._store)}next(){(0,C.transaction)(G=>{const te=this._visible.get();this._setVisible(!0,G),te&&this._state.get().model.nextGroup(G)})}prev(){(0,C.transaction)(G=>{this._setVisible(!0,G),this._state.get().model.previousGroup(G)})}close(){(0,C.transaction)(G=>{this._setVisible(!1,G)})}};e.AccessibleDiffViewer=N,N._ttPolicy=(0,k.createTrustedTypesPolicy)("diffReview",{createHTML:U=>U}),e.AccessibleDiffViewer=N=Ie([ue(8,_.IInstantiationService)],N);let A=class extends b.Disposable{constructor(G,te,ee,Y,P){super(),this._diffs=G,this._models=te,this._setVisible=ee,this.canClose=Y,this._accessibilitySignalService=P,this._groups=(0,C.observableValue)(this,[]),this._currentGroupIdx=(0,C.observableValue)(this,0),this._currentElementIdx=(0,C.observableValue)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map((Z,re)=>this._groups.read(re)[Z]),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map((Z,re)=>{var ce;return(ce=this.currentGroup.read(re))===null||ce===void 0?void 0:ce.lines[Z]}),this._register((0,C.autorun)(Z=>{const re=this._diffs.read(Z);if(!re){this._groups.set([],void 0);return}const ce=M(re,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,C.transaction)(he=>{const pe=this._models.getModifiedPosition();if(pe){const ge=ce.findIndex(X=>pe?.lineNumber<X.range.modified.endLineNumberExclusive);ge!==-1&&this._currentGroupIdx.set(ge,he)}this._groups.set(ce,he)})})),this._register((0,C.autorun)(Z=>{const re=this.currentElement.read(Z);re?.type===R.Deleted?this._accessibilitySignalService.playSignal(v.AccessibilitySignal.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):re?.type===R.Added&&this._accessibilitySignalService.playSignal(v.AccessibilitySignal.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})})),this._register((0,C.autorun)(Z=>{var re;con
`)}}}class w{getIcon(C){const o=(0,y.getIconRegistry)();let s=C.defaults;for(;D.ThemeIcon.isThemeIcon(s);){const i=o.getIcon(s.id);if(!i)return;s=i.defaults}return s}}e.UnthemedProductIconTheme=w}),define(ie[94],ne([1,0]),function(Q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorScheme=void 0,e.isHighContrast=k,e.isDark=E;var f;(function(D){D.DARK="dark",D.LIGHT="light",D.HIGH_CONTRAST_DARK="hcDark",D.HIGH_CONTRAST_LIGHT="hcLight"})(f||(e.ColorScheme=f={}));function k(D){return D===f.HIGH_CONTRAST_DARK||D===f.HIGH_CONTRAST_LIGHT}function E(D){return D===f.DARK||D===f.HIGH_CONTRAST_DARK}}),define(ie[274],ne([1,0,63,40,17,525,159,146,131,94,38]),function(Q,e,f,k,E,D,y,p,w,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewLine=e.ViewLineOptions=void 0,e.getColumnOfNodeOffset=h;const o=function(){return E.isNative?!0:!(E.isLinux||f.isFirefox||f.isSafari)}();let s=!0;class i{constructor(g,d){this.themeType=d;const v=g.options,_=v.get(50);v.get(38)==="off"?this.renderWhitespace=v.get(99):this.renderWhitespace="none",this.renderControlCharacters=v.get(94),this.spaceWidth=_.spaceWidth,this.middotWidth=_.middotWidth,this.wsmiddotWidth=_.wsmiddotWidth,this.useMonospaceOptimizations=_.isMonospace&&!v.get(33),this.canUseHalfwidthRightwardsArrow=_.canUseHalfwidthRightwardsArrow,this.lineHeight=v.get(67),this.stopRenderingLineAfter=v.get(117),this.fontLigatures=v.get(51)}equals(g){return this.themeType===g.themeType&&this.renderWhitespace===g.renderWhitespace&&this.renderControlCharacters===g.renderControlCharacters&&this.spaceWidth===g.spaceWidth&&this.middotWidth===g.middotWidth&&this.wsmiddotWidth===g.wsmiddotWidth&&this.useMonospaceOptimizations===g.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===g.canUseHalfwidthRightwardsArrow&&this.lineHeight===g.lineHeight&&this.stopRenderingLineAfter===g.stopRenderingLineAfter&&this.fontLigatures===g.fontLigatures}}e.ViewLineOptions=i;class t{constructor(g){this._options=g,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(g){if(this._renderedViewLine)this._renderedViewLine.domNode=(0,k.createFastDomNode)(g);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(g){this._isMaybeInvalid=!0,this._options=g}onSelectionChanged(){return(0,b.isHighContrast)(this._options.themeType)||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(g,d,v,_,S){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const L=_.getViewLineRenderingData(g),I=this._options,T=p.LineDecoration.filter(L.inlineDecorations,g,L.minColumn,L.maxColumn);let N=null;if((0,b.isHighContrast)(I.themeType)||this._options.renderWhitespace==="selection"){const R=_.selections;for(const x of R){if(x.endLineNumber<g||x.startLineNumber>g)continue;const F=x.startLineNumber===g?x.startColumn:L.minColumn,W=x.endLineNumber===g?x.endColumn:L.maxColumn;F<W&&((0,b.isHighContrast)(I.themeType)&&T.push(new p.LineDecoration(F,W,"inline-selected-text",0)),this._options.renderWhitespace==="selection"&&(N||(N=[]),N.push(new w.LineRange(F-1,W-1))))}}const A=new w.RenderLineInput(I.useMonospaceOptimizations,I.canUseHalfwidthRightwardsArrow,L.content,L.continuesWithWrappedLine,L.isBasicASCII,L.containsRTL,L.minColumn-1,L.tokens,T,L.tabSize,L.startVisibleColumn,I.spaceWidth,I.middotWidth,I.wsmiddotWidth,I.stopRenderingLineAfter,I.renderWhitespace,I.renderControlCharacters,I.fontLigatures!==C.EditorFontLigatures.OFF,N);if(this._renderedViewLine&&this._renderedViewLine.input.equals(A))return!1;S.appendString('<div style="top:'),S.appendString(String(d)),S.appendString("px;height:"),S.appendString(String(v)),S.appendString('px;" class="'),S.appendString(t.CLASS_NAME),S.appendString('">');const O=(0,w.renderViewLine)(A,S);S.appendString("</div>");let M=nul
target: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&this.hitTestResult.value.hitTarget!==null&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(_=null){return _&&_.column<this._ctx.viewModel.getLineMaxColumn(_.lineNumber)?p.CursorColumns.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(_.lineNumber),_.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(_=null){return n.createUnknown(this.target,this._getMouseColumn(_),_)}fulfillTextarea(){return n.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(_,S,L,I){return n.createMargin(_,this.target,this._getMouseColumn(S),S,L,I)}fulfillViewZone(_,S,L){return n.createViewZone(_,this.target,this._getMouseColumn(S),S,L)}fulfillContentText(_,S,L){return n.createContentText(this.target,this._getMouseColumn(_),_,S,L)}fulfillContentEmpty(_,S){return n.createContentEmpty(this.target,this._getMouseColumn(_),_,S)}fulfillContentWidget(_){return n.createContentWidget(this.target,this._getMouseColumn(),_)}fulfillScrollbar(_){return n.createScrollbar(this.target,this._getMouseColumn(_),_)}fulfillOverlayWidget(_){return n.createOverlayWidget(this.target,this._getMouseColumn(),_)}}const a={isAfterLines:!0};function h(v){return{isAfterLines:!1,horizontalDistanceToText:v}}class l{constructor(_,S){this._context=_,this._viewHelper=S}mouseTargetIsWidget(_){const S=_.target,L=k.PartFingerprints.collect(S,this._viewHelper.viewDomNode);return!!(c.isChildOfContentWidgets(L)||c.isChildOfOverflowingContentWidgets(L)||c.isChildOfOverlayWidgets(L)||c.isChildOfOverflowingOverlayWidgets(L))}createMouseTarget(_,S,L,I,T){const N=new m(this._context,this._viewHelper,_),A=new r(N,S,L,I,T);try{const O=l._createMouseTarget(N,A);if(O.type===6&&N.stickyTabStops&&O.position!==null){const M=l._snapToSoftTabBoundary(O.position,N.viewModel),R=y.Range.fromPositions(M,M).plusRange(O.range);return A.fulfillContentText(M,R,O.detail)}return O}catch{return A.fulfillUnknown()}}static _createMouseTarget(_,S){if(S.target===null)return S.fulfillUnknown();const L=S;let I=null;return!c.isChildOfOverflowGuard(S.targetPath)&&!c.isChildOfOverflowingContentWidgets(S.targetPath)&&!c.isChildOfOverflowingOverlayWidgets(S.targetPath)&&(I=I||S.fulfillUnknown()),I=I||l._hitTestContentWidget(_,L),I=I||l._hitTestOverlayWidget(_,L),I=I||l._hitTestMinimap(_,L),I=I||l._hitTestScrollbarSlider(_,L),I=I||l._hitTestViewZone(_,L),I=I||l._hitTestMargin(_,L),I=I||l._hitTestViewCursor(_,L),I=I||l._hitTestTextArea(_,L),I=I||l._hitTestViewLines(_,L),I=I||l._hitTestScrollbar(_,L),I||S.fulfillUnknown()}static _hitTestContentWidget(_,S){if(c.isChildOfContentWidgets(S.targetPath)||c.isChildOfOverflowingContentWidgets(S.targetPath)){const L=_.findAttribute(S.target,"widgetId");return L?S.fulfillContentWidget(L):S.fulfillUnknown()}return null}static _hitTestOverlayWidget(_,S){if(c.isChildOfOverlayWidgets(S.targetPath)||c.isChildOfOverflowingOverlayWidgets(S.targetPath)){const L=_.findAttribute(S.target,"widgetId");return L?S.fulfillOverlayWidget(L):S.fulfillUnknown()}return null}static _hitTestViewCursor(_,S){if(S.target){const L=_.lastRenderData.lastViewCursorsRenderData;for(const I of L)if(S.target===I.domNode)return S.fulfillContentText(I.position,null,{mightBeForeignElement:!1,injectedText:null})}if(S.isInContentArea){const L=_.lastRenderData.lastViewCursorsRenderData,I=S.mouseContentHorizontalOffset,T=S.mouseVerticalOffset;for(const N of L){if(I<N.contentLeft||I>N.contentLeft+N.width)continue;const A=_.getVerticalOffsetForLineNumber(N.position.lineNumber);if(A<=T&&T<=A+N.height)return S.fulfillContentText(N.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(_,S){const L=_.getZoneAtCoord(S.mouseVerticalOffset);if(L){const I=S.isInContentArea?8:5;return S.fulfillViewZone(I,L.position,L)}return null}static _hitTestTextArea(_,S){return c.isTextArea(S.targetPath)?_.lastRenderData.lastTextareaPosition?S.fulfillContentTex
`),P=ee.substring(Y+1),Z=P.lastIndexOf(" "),re=P.length-Z-1,ce=K.getStartPosition(),he=Math.min(ce.column-1,re),pe=ce.column-1-he,ge=P.substring(0,P.length-he),{tabSize:X}=this._context.viewModel.model.getOptions(),ae=S(this.textArea.domNode.ownerDocument,ge,this._fontInfo,X);return{distanceToModelLineStart:pe,widthOfHiddenTextBefore:ae}})(),{distanceToModelLineEnd:te}=(()=>{const ee=j.value.substring(Math.max(j.selectionStart,j.selectionEnd)),Y=ee.indexOf(`
`),P=Y===-1?ee:ee.substring(0,Y),Z=P.indexOf(" "),re=Z===-1?P.length:P.length-Z-1,ce=K.getEndPosition(),he=Math.min(this._context.viewModel.model.getLineMaxColumn(ce.lineNumber)-ce.column,re);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(ce.lineNumber)-ce.column-he}})();this._context.viewModel.revealRange("keyboard",!0,c.Range.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new d(this._context,K.startLineNumber,U,G,te),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${u.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(z=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${u.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)})),this._register(h.IME.onDidChange(()=>{this._ensureReadOnlyAttribute()}))}writeScreenReaderContent(I){this._textAreaInput.writeNativeTextAreaContent(I)}dispose(){super.dispose()}_getAndroidWordAtPosition(I){const T='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',N=this._context.viewModel.getLineContent(I.lineNumber),A=(0,t.getMapForWordSeparators)(T,[]);let O=!0,M=I.column,R=!0,x=I.column,F=0;for(;F<50&&(O||R);){if(O&&M<=1&&(O=!1),O){const W=N.charCodeAt(M-2);A.get(W)!==0?O=!1:M--}if(R&&x>N.length&&(R=!1),R){const W=N.charCodeAt(x-1);A.get(W)!==0?R=!1:x++}F++}return[N.substring(M-1,x-1),I.column-M]}_getWordBeforePosition(I){const T=this._context.viewModel.getLineContent(I.lineNumber),N=(0,t.getMapForWordSeparators)(this._context.configuration.options.get(131),[]);let A=I.column,O=0;for(;A>1;){const M=T.charCodeAt(A-2);if(N.get(M)!==0||O>50)return T.substring(A-1,I.column-1);O++,A--}return T.substring(0,I.column-1)}_getCharacterBeforePosition(I){if(I.column>1){const N=this._context.viewModel.getLineContent(I.lineNumber).charAt(I.column-2);if(!y.isHighSurrogate(N.charCodeAt(0)))return N}return""}_getAriaLabel(I){var T,N,A;if(I.get(2)===1){const M=(T=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))===null||T===void 0?void 0:T.getAriaLabel(),R=(N=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))===null||N===void 0?void 0:N.getAriaLabel(),x=(A=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))===null||A===void 0?void 0:A.getAriaLabel(),F=f.localize(1,null);return M?f.localize(2,null,F,M):R?f.localize(3,null,F,R):x?f.localize(4,null,F,x):F}return I.get(4)}_setAccessibilityOptions(I){this._accessibilitySupport=I.get(2);const T=I.get(3);this._accessibilitySupport===2&&T===i.EditorOptions.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=T;const A=I.get(145).wrappingColumn;if(A!==-1&&this._accessibilitySupport!==1){const O=I.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(A*O.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=v?0:1}onConfigurationChanged(I){const T=this._context.configuration.options,N=T.get(145);this._setAccessibilityOptions(T),this._contentLeft=N.contentLeft,this._contentWidth=N.contentWidth,this._contentHeight=N.height,this._fontInfo=T.get(50),this._lineHeight=T.get(67),this._emptySelectionClipboard=T.get(37),this._copyWithSyntaxHighlighting=T.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleT
`,N+1),N===-1)break;T++}while(!0);return T}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:v?0:1,useCover:!0})}_doRender(I){this._lastRenderPosition=I.lastRenderPosition;const T=this.textArea,N=this.textAreaCover;(0,p.applyFontInfo)(T,this._fontInfo),T.setTop(I.top),T.setLeft(I.left),T.setWidth(I.width),T.setHeight(I.height),T.setColor(I.color?a.Color.Format.CSS.formatHex(I.color):""),T.setFontStyle(I.italic?"italic":""),I.bold&&T.setFontWeight("bold"),T.setTextDecoration(`${I.underline?" underline":""}${I.strikethrough?" line-through":""}`),N.setTop(I.useCover?I.top:0),N.setLeft(I.useCover?I.left:0),N.setWidth(I.useCover?I.width:0),N.setHeight(I.useCover?I.height:0);const A=this._context.configuration.options;A.get(57)?N.setClassName("monaco-editor-background textAreaCover "+s.Margin.OUTER_CLASS_NAME):A.get(68).renderType!==0?N.setClassName("monaco-editor-background textAreaCover "+o.LineNumbersOverlay.CLASS_NAME):N.setClassName("monaco-editor-background textAreaCover")}};e.TextAreaHandler=_,e.TextAreaHandler=_=Ie([ue(3,l.IKeybindingService),ue(4,g.IInstantiationService)],_);function S(L,I,T,N){if(I.length===0)return 0;const A=L.createElement("div");A.style.position="absolute",A.style.top="-50000px",A.style.width="50000px";const O=L.createElement("span");(0,p.applyFontInfo)(O,T),O.style.whiteSpace="pre",O.style.tabSize=`${N*T.spaceWidth}px`,O.append(I),A.appendChild(O),L.body.appendChild(A);const M=O.offsetWidth;return L.body.removeChild(A),M}}),define(ie[909],ne([1,0,40,35,56,9,28,86,91,13]),function(Q,e,f,k,E,D,y,p,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecorationsOverviewRuler=void 0;class C{constructor(i,t){const n=i.options;this.lineHeight=n.get(67),this.pixelRatio=n.get(143),this.overviewRulerLanes=n.get(83),this.renderBorder=n.get(82);const c=t.getColor(p.editorOverviewRulerBorder);this.borderColor=c?c.toString():null,this.hideCursor=n.get(59);const m=t.getColor(p.editorCursorForeground);this.cursorColorSingle=m?m.transparent(.7).toString():null;const u=t.getColor(p.editorMultiCursorPrimaryForeground);this.cursorColorPrimary=u?u.transparent(.7).toString():null;const r=t.getColor(p.editorMultiCursorSecondaryForeground);this.cursorColorSecondary=r?r.transparent(.7).toString():null,this.themeType=t.type;const a=n.get(73),h=a.enabled,l=a.side,g=t.getColor(p.editorOverviewRulerBackground),d=y.TokenizationRegistry.getDefaultBackground();g?this.backgroundColor=g:h&&l==="right"?this.backgroundColor=d:this.backgroundColor=null;const _=n.get(145).overviewRuler;this.top=_.top,this.right=_.right,this.domWidth=_.width,this.domHeight=_.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[S,L]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=S,this.w=L}_initLanes(i,t,n){const c=t-i;if(n>=3){const m=Math.floor(c/3),u=Math.floor(c/3),r=c-m-u,a=i,h=a+m,l=a+m+r;return[[0,a,h,a,l,a,h,a],[0,m,r,m+r,u,m+r+u,r+u,m+r+u]]}else if(n===2){const m=Math.floor(c/2),u=c-m,r=i,a=r+m;return[[0,r,r,r,a,r,r,r],[0,m,m,m,u,m+u,m+u,m+u]]}else{const m=i,u=c;return[[0,m,m,m,m,m,m,m],[0,u,u,u,u,u,u,u]]}}equals(i){return this.lineHeight===i.lineHeight&&this.pixelRatio===i.pixelRatio&&this.overviewRulerLanes===i.overviewRulerLanes&&this.renderBorder===i.renderBorder&&this.borderColor===i.borderColor&&this.hideCursor===i.hideCursor&&this.cursorColorSingle===i.cursorColorSingle&&this.cursorColorPrimary===i.cursorColorPrimary&&this.cursorColorSecondary===i.cursorColorSecondary&&this.themeType===i.themeType&&k.Color.equals(this.backgroundColor,i.backgroundColor)&&this.top===i.top&&this.right===i.right&&this.domWidth===i.domWidth&&this.domHeight===i.domHeight&&this.canvasWidth===i.canvasWidth&&this.canvasHeight===i.canvasHeight}}class o extends E.ViewPart{constructor(i){super(i),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,f.createFastDomNode)(document.createElement("
`):void 0}:{range:t.Range.fromPositions(this.position),text:"",rejectReason:z.length>0?z.join(`
`):void 0}}async provideRenameEdits(H,z){return this._provideRenameEdits(H,this._providerRenameIdx,[],z)}async _provideRenameEdits(H,z,j,K){const U=this._providers[z];if(!U)return{edits:[],rejectReason:j.join(`
`)};const G=await U.provideRenameEdits(this.model,this.position,H,K);if(G){if(G.rejectReason)return this._provideRenameEdits(H,z+1,j.concat(G.rejectReason),K)}else return this._provideRenameEdits(H,z+1,j.concat(h.localize(0,null)),K);return G}}async function M(W,H,z,j){const K=new O(H,z,W),U=await K.resolveRenameLocation(E.CancellationToken.None);return U?.rejectReason?{edits:[],rejectReason:U.rejectReason}:K.provideRenameEdits(j,E.CancellationToken.None)}let R=A=class{static get(H){return H.getContribution(A.ID)}constructor(H,z,j,K,U,G,te,ee,Y){this.editor=H,this._instaService=z,this._notificationService=j,this._bulkEditService=K,this._progressService=U,this._logService=G,this._configService=te,this._languageFeaturesService=ee,this._telemetryService=Y,this._disposableStore=new p.DisposableStore,this._cts=new E.CancellationTokenSource,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(N.RenameWidget,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var H,z;const j=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new E.CancellationTokenSource,!this.editor.hasModel()){j("editor has no model");return}const K=this.editor.getPosition(),U=new O(this.editor.getModel(),K,this._languageFeaturesService.renameProvider);if(!U.hasProvider()){j("skeleton has no provider");return}const G=new r.EditorStateCancellationTokenSource(this.editor,5,void 0,this._cts.token);let te;try{j("resolving rename location");const ge=U.resolveRenameLocation(G.token);this._progressService.showWhile(ge,250),te=await ge,j("resolved rename location")}catch(ge){ge instanceof D.CancellationError?j("resolve rename location cancelled",JSON.stringify(ge,null," ")):(j("resolve rename location failed",ge instanceof Error?ge:JSON.stringify(ge,null," ")),(typeof ge=="string"||(0,y.isMarkdownString)(ge))&&((H=a.MessageController.get(this.editor))===null||H===void 0||H.showMessage(ge||h.localize(1,null),K)));return}finally{G.dispose()}if(!te){j("returning early - no loc");return}if(te.rejectReason){j(`returning early - rejected with reason: ${te.rejectReason}`,te.rejectReason),(z=a.MessageController.get(this.editor))===null||z===void 0||z.showMessage(te.rejectReason,K);return}if(G.token.isCancellationRequested){j("returning early - cts1 cancelled");return}const ee=new r.EditorStateCancellationTokenSource(this.editor,5,te.range,this._cts.token),Y=this.editor.getModel(),P=this._languageFeaturesService.newSymbolNamesProvider.all(Y),Z=await Promise.all(P.map(async ge=>{var X;return[ge,(X=await ge.supportsAutomaticNewSymbolNamesTriggerKind)!==null&&X!==void 0?X:!1]})),re=(ge,X)=>{let ae=Z.slice();return ge===c.NewSymbolNameTriggerKind.Automatic&&(ae=ae.filter(([oe,B])=>B)),ae.map(([oe])=>oe.provideNewSymbolNames(Y,te.range,ge,X))};j("creating rename input field and awaiting its result");const ce=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),he=await this._renameWidget.getInput(te.range,te.text,ce,P.length>0?re:void 0,ee);if(j("received response from rename input field"),P.length>0&&this._reportTelemetry(P.length,Y.getLanguageId(),he),typeof he=="boolean"){j(`returning early - rename input field response - ${he}`),he&&this.editor.focus(),ee.dispose();return}this.editor.focus(),j("requesting rename edits");const pe=(0,k.raceCancellation)(U.provideRenameEdits(he.newName,ee.token),ee.token).then(async ge=>{if(!ge){j("returning early - no rename edits result");return}if(!this.editor.hasModel()){j("returning early - no model after rename edits are provided");return}if(ge.rejectReason){j(`returning early - rejected with reason: ${ge.rejectReason}`),this._notificationService.info(ge.rejectReason);return}this.editor.setSelection(t.Range.fromPositions(this.editor.getSelection().getPosition())),j("applying edits"),this._bulkEditService.apply(ge,{editor:this.editor,showPreview:he.wantsPreview,label:h.localize(2,null,te?.text,he.newName),code
${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(e.VS_LIGHT_THEME_NAME),this._onOSSchemeChanged(),this._register(v.onDidChange(()=>{this._codiconCSS=v.getCSS(),this._updateCSS()})),(0,k.addMatchMediaChangeListener)(c.mainWindow,"(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(v){return f.isInShadowDOM(v)?this._registerShadowDomContainer(v):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=f.createStyleSheet(void 0,v=>{v.className="monaco-colors",v.textContent=this._allCSS}),this._styleElements.push(this._globalStyleElement)),i.Disposable.None}_registerShadowDomContainer(v){const _=f.createStyleSheet(v,S=>{S.className="monaco-colors",S.textContent=this._allCSS});return this._styleElements.push(_),{dispose:()=>{for(let S=0;S<this._styleElements.length;S++)if(this._styleElements[S]===_){this._styleElements.splice(S,1);return}}}}defineTheme(v,_){if(!/^[a-z0-9\-]+$/i.test(v))throw new Error("Illegal theme name!");if(!a(_.base)&&!a(v))throw new Error("Illegal theme base!");this._knownThemes.set(v,new r(v,_)),a(v)&&this._knownThemes.forEach(S=>{S.base===v&&S.notifyBaseUpdated()}),this._theme.themeName===v&&this.setTheme(v)}getColorTheme(){return this._theme}setColorMapOverride(v){this._colorMapOverride=v,this._updateThemeOrColorMap()}setTheme(v){let _;this._knownThemes.has(v)?_=this._knownThemes.get(v):_=this._knownThemes.get(e.VS_LIGHT_THEME_NAME),this._updateActualTheme(_)}_updateActualTheme(v){!v||this._theme===v||(this._theme=v,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const v=c.mainWindow.matchMedia("(forced-colors: active)").matches;if(v!==(0,t.isHighContrast)(this._theme.type)){let _;(0,t.isDark)(this._theme.type)?_=v?e.HC_BLACK_THEME_NAME:e.VS_DARK_THEME_NAME:_=v?e.HC_LIGHT_THEME_NAME:e.VS_LIGHT_THEME_NAME,this._updateActualTheme(this._knownThemes.get(_))}}}setAutoDetectHighContrast(v){this._autoDetectHighContrast=v,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const v=[],_={},S={addRule:T=>{_[T]||(v.push(T),_[T]=!0)}};u.getThemingParticipants().forEach(T=>T(this._theme,S,this._environment));const L=[];for(const T of m.getColors()){const N=this._theme.getColor(T.id,!0);N&&L.push(`${(0,o.asCssVariableName)(T.id)}: ${N.toString()};`)}S.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${L.join(`
`)} }`);const I=this._colorMapOverride||this._theme.tokenTheme.getColorMap();S.addRule((0,w.generateTokensCSSForColorMap)(I)),this._themeCSS=v.join(`
`),this._updateCSS(),y.TokenizationRegistry.setColorMap(I),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}
${this._themeCSS}`,this._styleElements.forEach(v=>v.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}e.StandaloneThemeService=g}),define(ie[926],ne([1,0,16,149,103,94,400]),function(Q,e,f,k,E,D,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class p extends f.EditorAction{constructor(){super({id:"editor.action.toggleHighContrast",label:E.ToggleHighContrastNLS.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(b,C){const o=b.get(k.IStandaloneThemeService),s=o.getColorTheme();(0,D.isHighContrast)(s.type)?(o.setTheme(this._originalThemeName||((0,D.isDark)(s.type)?y.VS_DARK_THEME_NAME:y.VS_LIGHT_THEME_NAME)),this._originalThemeName=null):(o.setTheme((0,D.isDark)(s.type)?y.HC_BLACK_THEME_NAME:y.HC_LIGHT_THEME_NAME),this._originalThemeName=s.themeName)}}(0,f.registerEditorAction)(p)}),define(ie[120],ne([1,0,6,46,147,346,41,240,2,17,773,29,363,14,58,8,32,51,98,23,31,94,20,33,106,66,518]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m,u,r,a,h,l,g,d,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownWithDefaultActionViewItem=e.SubmenuEntryActionViewItem=e.MenuEntryActionViewItem=void 0,e.createAndFillInContextMenuActions=_,e.createAndFillInActionBarActions=S,e.createActionViewItem=O;function _(M,R,x,F){const W=M.getActions(R),H=f.ModifierKeyEmitter.getInstance(),z=H.keyStatus.altKey||(b.isWindows||b.isLinux)&&H.keyStatus.shiftKey;L(W,x,z,F?j=>j===F:j=>j==="navigation")}function S(M,R,x,F,W,H){const z=M.getActions(R);L(z,x,!1,typeof F=="string"?K=>K===F:F,W,H)}function L(M,R,x,F=z=>z==="navigation",W=()=>!1,H=!1){let z,j;Array.isArray(R)?(z=R,j=R):(z=R.primary,j=R.secondary);const K=new Set;for(const[U,G]of M){let te;F(U)?(te=z,te.length>0&&H&&te.push(new y.Separator)):(te=j,te.length>0&&te.push(new y.Separator));for(let ee of G){x&&(ee=ee instanceof o.MenuItemAction&&ee.alt?ee.alt:ee);const Y=te.push(ee);ee instanceof y.SubmenuAction&&K.add({group:U,action:ee,index:Y-1})}}for(const{group:U,action:G,index:te}of K){const ee=F(U)?z:j,Y=G.actions;W(G,U,ee.length)&&ee.splice(te,1,...Y)}}let I=class extends E.ActionViewItem{constructor(R,x,F,W,H,z,j,K){super(void 0,R,{icon:!!(R.class||R.item.icon),label:!R.class&&!R.item.icon,draggable:x?.draggable,keybinding:x?.keybinding,hoverDelegate:x?.hoverDelegate}),this._keybindingService=F,this._notificationService=W,this._contextKeyService=H,this._themeService=z,this._contextMenuService=j,this._accessibilityService=K,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new w.MutableDisposable),this._altKey=f.ModifierKeyEmitter.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(R){R.preventDefault(),R.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(x){this._notificationService.error(x)}}render(R){if(super.render(R),R.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let x=!1;const F=()=>{var W;const H=!!(!((W=this._menuItemAction.alt)===null||W===void 0)&&W.enabled)&&(!this._accessibilityService.isMotionReduced()||x)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&x);H!==this._wantsAltCommand&&(this._wantsAltCommand=H,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(F)),this._register((0,f.addDisposableListener)(R,"mouseleave",W=>{x=!1,F()})),this._register((0,f.addDisposableListener)(R,"mouseenter",W=>{x=!0,F()})),F()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var R;const x=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),F=x&&x.getLabel(),W=this._commandAction.tooltip||this._commandAction.label;let H=F?(0,C.localize)(0,null,W,F):W;if(!this._wantsAltCommand&&(!((R=this._me
.monaco-editor .inline-edit-decoration,
.monaco-editor .inline-edit-decoration-preview,
.monaco-editor .inline-edit {
font-family: ${x};
}`)})),this._register(new n.InlineEditHintsWidget(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(d){var v;if(!this._currentEdit){this._isCursorAtInlineEditContext.set(!1);return}const _=(v=this._currentEdit.get())===null||v===void 0?void 0:v.edit;if(!_){this._isCursorAtInlineEditContext.set(!1);return}this._isCursorAtInlineEditContext.set(y.Range.containsPosition(_.range,d))}validateInlineEdit(d,v){var _,S;if(v.text.includes(`
`)&&v.range.startLineNumber!==v.range.endLineNumber&&v.range.startColumn!==v.range.endColumn){if(v.range.startColumn!==1)return!1;const I=v.range.endLineNumber,T=v.range.endColumn,N=(S=(_=d.getModel())===null||_===void 0?void 0:_.getLineLength(I))!==null&&S!==void 0?S:0;if(T!==N+1)return!1}return!0}async fetchInlineEdit(d,v){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const _=d.getModel();if(!_)return;const S=_.getVersionId(),L=this.languageFeaturesService.inlineEditProvider.all(_);if(L.length===0)return;const I=L[0];this._currentRequestCts=new s.CancellationTokenSource;const T=this._currentRequestCts.token,N=v?C.InlineEditTriggerKind.Automatic:C.InlineEditTriggerKind.Invoke;if(v&&await l(50,T),T.isCancellationRequested||_.isDisposed()||_.getVersionId()!==S)return;const O=await I.provideInlineEdit(_,{triggerKind:N},T);if(O&&!(T.isCancellationRequested||_.isDisposed()||_.getVersionId()!==S)&&this.validateInlineEdit(d,O))return O}async getInlineEdit(d,v){var _;this._isCursorAtInlineEditContext.set(!1),await this.clear();const S=await this.fetchInlineEdit(d,v);if(!S)return;const L=S.range.endLineNumber,I=S.range.endColumn,T=S.text.endsWith(`
`)&&!(S.range.startLineNumber===S.range.endLineNumber&&S.range.startColumn===S.range.endColumn)?S.text.slice(0,-1):S.text,N=new i.GhostText(L,[new i.GhostTextPart(I,T,!1)]),A=this.instantiationService.createInstance(p.GhostTextWidget,this.editor,{ghostText:(0,k.constObservable)(N),minReservedLineCount:(0,k.constObservable)(0),targetTextModel:(0,k.constObservable)((_=this.editor.getModel())!==null&&_!==void 0?_:void 0),range:(0,k.constObservable)(S.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new a(A,S),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var d;this._isAccepting.set(!0,void 0);const v=(d=this._currentEdit.get())===null||d===void 0?void 0:d.edit;if(!v)return;let _=v.text;v.text.startsWith(`
`)&&(_=v.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[E.EditOperation.replace(y.Range.lift(v.range),_)]),v.accepted&&await this._commandService.executeCommand(v.accepted.id,...v.accepted.arguments||[]).then(void 0,u.onUnexpectedExternalError),this.freeEdit(v),(0,k.transaction)(S=>{this._currentEdit.set(void 0,S),this._isAccepting.set(!1,S)})}jumpToCurrent(){var d,v;this._jumpBackPosition=(d=this.editor.getSelection())===null||d===void 0?void 0:d.getStartPosition();const _=(v=this._currentEdit.get())===null||v===void 0?void 0:v.edit;if(!_)return;const S=D.Position.lift({lineNumber:_.range.startLineNumber,column:_.range.startColumn});this.editor.setPosition(S),this.editor.revealPositionInCenterIfOutsideViewport(S)}async clear(d=!0){var v;const _=(v=this._currentEdit.get())===null||v===void 0?void 0:v.edit;_&&_?.rejected&&d&&await this._commandService.executeCommand(_.rejected.id,..._.rejected.arguments||[]).then(void 0,u.onUnexpectedExternalError),_&&this.freeEdit(_),this._currentEdit.set(void 0,void 0)}freeEdit(d){const v=this.editor.getModel();if(!v)return;const _=this.languageFeaturesService.inlineEditProvider.all(v);_.length!==0&&_[0].freeInlineEdit(d)}shouldShowHoverAt(d){const v=this._currentEdit.get();if(!v)return!1;const _=v.edit,S=v.widget.model;if(y.Range.containsPosition(_.range,d.getStartPosition())||y.Range.containsPosition(_.range,d.getEndPosition()))return!0;const I=S.ghostText.get();return I?I.parts.some(T=>d.containsPosition(new D.Position(I.lineNumber,T.column))):!1}shouldShowHoverAtViewZone(d){var v,_;return(_=(v=this._currentEdit.get())===null||v===void 0?void 0:v.widget.ownsViewZone(d))!==null&&_!==void 0?_:!1}};e.InlineEditController=h,h.ID="editor.contrib.inlineEditController",h.inlineEditVisibleKey="inlineEditVisible",h.inlineEditVisibleContext=new w.RawContextKey(r.inlineEditVisibleKey,!1),h.cursorAtInlineEditKey="cursorAtInlineEdit",h.cursorAtInlineEditContext=new w.RawContextKey(r.cursorAtInlineEditKey,!1),e.InlineEditController=h=r=Ie([ue(1,b.IInstantiationService),ue(2,w.IContextKeyService),ue(3,o.ILanguageFeaturesService),ue(4,t.ICommandService),ue(5,m.IConfigurationService)],h);function l(g,d){return new Promise(v=>{let _;const S=setTimeout(()=>{_&&_.dispose(),v()},g);d&&(_=d.onCancellationRequested(()=>{clearTimeout(S),_&&_.dispose(),v()}))})}}),define(ie[929],ne([1,0,16,21,595,277,29,14]),function(Q,e,f,k,E,D,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RejectInlineEdit=e.JumpBackInlineEdit=e.JumpToInlineEdit=e.TriggerInlineEdit=e.AcceptInlineEdit=void 0;class w extends f.EditorAction{constructor(){super({id:E.inlineEditAcceptId,label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:p.ContextKeyExpr.and(k.EditorContextKeys.writable,D.InlineEditController.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:p.ContextKeyExpr.and(k.EditorContextKeys.writable,D.InlineEditController.inlineEditVisibleContext,D.InlineEditController.cursorAtInlineEditContext)}],menuOpts:[{menuId:y.MenuId.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(t,n){const c=D.InlineEditController.get(n);await c?.accept()}}e.AcceptInlineEdit=w;class b extends f.EditorAction{constructor(){const t=p.ContextKeyExpr.and(k.EditorContextKeys.writable,p.ContextKeyExpr.not(D.InlineEditController.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:t,kbOpts:{weight:101,primary:2646,kbExpr:t}})}async run(t,n){const c=D.InlineEditController.get(n);c?.trigger()}}e.TriggerInlineEdit=b;class C extends f.EditorAction{constructor(){const t=p.ContextKeyExpr.and(k.EditorContextKeys.writable,D.InlineEditController.inlineEditVisibleContext,p.ContextKeyExpr.not(D.InlineEditController.cursorAtInlineEditKey));super({id:E.inlineEditJumpToId,label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:t,kbOpts:{weight:101,primary:2646,kbExpr:t},menuOpts:[{menuId:y.MenuId.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:t}]})}async
`);return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:_,skipFadeInAnimation:!0}}}};e.QuickInputHoverDelegate=l,e.QuickInputHoverDelegate=l=Ie([ue(0,c.IConfigurationService),ue(1,m.IHoverService)],l)}),define(ie[933],ne([1,0,6,82,251,341,625,19,7,2,107,788,75,835,403,116,52,8,402]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m,u){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputController=void 0;const a=f.$;let h=r=class extends b.Disposable{get container(){return this._container}constructor(g,d,v){super(),this.options=g,this.layoutService=d,this.instantiationService=v,this.enabled=!0,this.onDidAcceptEmitter=this._register(new w.Emitter),this.onDidCustomEmitter=this._register(new w.Emitter),this.onDidTriggerButtonEmitter=this._register(new w.Emitter),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new w.Emitter),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new w.Emitter),this.onHide=this.onHideEmitter.event,this.idPrefix=g.idPrefix,this._container=g.container,this.styles=g.styles,this._register(w.Event.runAndSubscribe(f.onDidRegisterWindow,({window:_,disposables:S})=>this.registerKeyModsListeners(_,S),{window:c.mainWindow,disposables:this._store})),this._register(f.onWillUnregisterWindow(_=>{this.ui&&f.getWindow(this.ui.container)===_&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))}))}registerKeyModsListeners(g,d){const v=_=>{this.keyMods.ctrlCmd=_.ctrlKey||_.metaKey,this.keyMods.alt=_.altKey};for(const _ of[f.EventType.KEY_DOWN,f.EventType.KEY_UP,f.EventType.MOUSE_DOWN])d.add(f.addDisposableListener(g,_,v,!0))}getUI(g){if(this.ui)return g&&f.getWindow(this._container)!==f.getWindow(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const d=f.append(this._container,a(".quick-input-widget.show-file-icons"));d.tabIndex=-1,d.style.display="none";const v=f.createStyleSheet(d),_=f.append(d,a(".quick-input-titlebar")),S=this._register(new k.ActionBar(_,{hoverDelegate:this.options.hoverDelegate}));S.domNode.classList.add("quick-input-left-action-bar");const L=f.append(_,a(".quick-input-title")),I=this._register(new k.ActionBar(_,{hoverDelegate:this.options.hoverDelegate}));I.domNode.classList.add("quick-input-right-action-bar");const T=f.append(d,a(".quick-input-header")),N=f.append(T,a("input.quick-input-check-all"));N.type="checkbox",N.setAttribute("aria-label",(0,o.localize)(0,null)),this._register(f.addStandardDisposableListener(N,f.EventType.CHANGE,ce=>{const he=N.checked;Z.setAllVisibleChecked(he)})),this._register(f.addDisposableListener(N,f.EventType.CLICK,ce=>{(ce.x||ce.y)&&R.setFocus()}));const A=f.append(T,a(".quick-input-description")),O=f.append(T,a(".quick-input-and-message")),M=f.append(O,a(".quick-input-filter")),R=this._register(new i.QuickInputBox(M,this.styles.inputBox,this.styles.toggle));R.setAttribute("aria-describedby",`${this.idPrefix}message`);const x=f.append(M,a(".quick-input-visible-count"));x.setAttribute("aria-live","polite"),x.setAttribute("aria-atomic","true");const F=new D.CountBadge(x,{countFormat:(0,o.localize)(1,null)},this.styles.countBadge),W=f.append(M,a(".quick-input-count"));W.setAttribute("aria-live","polite");const H=new D.CountBadge(W,{countFormat:(0,o.localize)(2,null)},this.styles.countBadge),z=f.append(T,a(".quick-input-action")),j=this._register(new E.Button(z,this.styles.button));j.label=(0,o.localize)(3,null),this._register(j.onDidClick(ce=>{this.onDidAcceptEmitter.fire()}));const K=f.append(T,a(".quick-input-action")),U=this._register(new E.Button(K,{...this.styles.button,supportIcons:!0}));U.label=(0,o.localize)(4,null),this._register(U.onDidClick(ce=>{this.onDidCustomEmitter.fire()}));const G=f.append(O,a(`#${this.idPrefix}message.quick-input-message`)),te=this._register(new y.ProgressBar(d,this.styles.
`);I!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=I)}}};e.QuickInputController=h,h.MAX_WIDTH=600,e.QuickInputController=h=r=Ie([ue(1,n.ILayoutService),ue(2,m.IInstantiationService)],h)}),define(ie[934],ne([1,0,19,7,14,8,116,61,851,106,33,23,403,933,27,6]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickInputService=void 0;let c=class extends o.Themable{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(w.QuickAccessController))),this._quickAccess}constructor(u,r,a,h,l){super(a),this.instantiationService=u,this.contextKeyService=r,this.layoutService=h,this.configurationService=l,this._onShow=this._register(new k.Emitter),this._onHide=this._register(new k.Emitter),this.contexts=new Map}createController(u=this.layoutService,r){const a={idPrefix:"quickInput_",container:u.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:l=>this.setContextKey(l),linkOpenerDelegate:l=>{this.instantiationService.invokeFunction(g=>{g.get(p.IOpenerService).open(l,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>u.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(s.QuickInputHoverDelegate))},h=this._register(this.instantiationService.createInstance(i.QuickInputController,{...a,...r}));return h.layout(u.activeContainerDimension,u.activeContainerOffset.quickPickTop),this._register(u.onDidLayoutActiveContainer(l=>{(0,n.getWindow)(u.activeContainer)===(0,n.getWindow)(h.container)&&h.layout(l,u.activeContainerOffset.quickPickTop)})),this._register(u.onDidChangeActiveContainer(()=>{h.isVisible()||h.layout(u.activeContainerDimension,u.activeContainerOffset.quickPickTop)})),this._register(h.onShow(()=>{this.resetContextKeys(),this._onShow.fire()})),this._register(h.onHide(()=>{this.resetContextKeys(),this._onHide.fire()})),h}setContextKey(u){let r;u&&(r=this.contexts.get(u),r||(r=new E.RawContextKey(u,!1).bindTo(this.contextKeyService),this.contexts.set(u,r))),!(r&&r.get())&&(this.resetContextKeys(),r?.set(!0))}resetContextKeys(){this.contexts.forEach(u=>{u.get()&&u.reset()})}pick(u,r={},a=f.CancellationToken.None){return this.controller.pick(u,r,a)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,C.asCssVariable)(C.quickInputBackground),quickInputForeground:(0,C.asCssVariable)(C.quickInputForeground),quickInputTitleBackground:(0,C.asCssVariable)(C.quickInputTitleBackground),widgetBorder:(0,C.asCssVariable)(C.widgetBorder),widgetShadow:(0,C.asCssVariable)(C.widgetShadow)},inputBox:b.defaultInputBoxStyles,toggle:b.defaultToggleStyles,countBadge:b.defaultCountBadgeStyles,button:b.defaultButtonStyles,progressBar:b.defaultProgressBarStyles,keybindingLabel:b.defaultKeybindingLabelStyles,list:(0,b.getListStyles)({listBackground:C.quickInputBackground,listFocusBackground:C.quickInputListFocusBackground,listFocusForeground:C.quickInputListFocusForeground,listInactiveFocusForeground:C.quickInputListFocusForeground,listInactiveSelectionIconForeground:C.quickInputListFocusIconForeground,listInactiveFocusBackground:C.quickInputListFocusBackground,listFocusOutline:C.activeContrastBorder,listInactiveFocusOutline:C.activeContrastBorder}),pickerGroup:{pickerGroupBorder:(0,C.asCssVariable)(C.pickerGroupBorder),pickerGroupForeground:(0,C.asCssVariable)(C.pickerGroupForeground)}}}};e.QuickInputService=c,e.QuickInputService=c=Ie([ue(0,D.IInstantiationService),ue(1,E.IContextKeyService),ue(2,o.IThemeService),ue(3,y.ILayoutService),ue(4,t.IConfigurationService)],c)}),define(ie[935],ne([1,0,7,16,23,19,8,14,375,36,934,122,27,516]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s){"use st
`,!1,!1,!0,!0);V.dispose(),this._buffer=V,this._bufferDisposable=y.Disposable.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(V,$){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent($),this._bracketPairs.handleDidChangeContent($),this._eventEmitter.fire(new I.InternalModelContentChangeEvent(V,$)))}setValue(V){if(this._assertNotDisposed(),V==null)throw(0,E.illegalArgument)();const{textBuffer:$,disposable:J}=M(V,this._options.defaultEOL);this._setValueFromTextBuffer($,J)}_createContentChanged2(V,$,J,se,de,le,fe,ve){return{changes:[{range:V,rangeOffset:$,rangeLength:J,text:se}],eol:this._buffer.getEOL(),isEolChange:ve,versionId:this.getVersionId(),isUndoing:de,isRedoing:le,isFlush:fe}}_setValueFromTextBuffer(V,$){this._assertNotDisposed();const J=this.getFullModelRange(),se=this.getValueLengthInRange(J),de=this.getLineCount(),le=this.getLineMaxColumn(de);this._buffer=V,this._bufferDisposable.dispose(),this._bufferDisposable=$,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new te,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new I.ModelRawContentChangedEvent([new I.ModelRawFlush],this._versionId,!1,!1),this._createContentChanged2(new i.Range(1,1,de,le),0,se,this.getValue(),!1,!1,!0,!1))}setEOL(V){this._assertNotDisposed();const $=V===1?`\r
`:`
`;if(this._buffer.getEOL()===$)return;const J=this.getFullModelRange(),se=this.getValueLengthInRange(J),de=this.getLineCount(),le=this.getLineMaxColumn(de);this._onBeforeEOLChange(),this._buffer.setEOL($),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new I.ModelRawContentChangedEvent([new I.ModelRawEOLChanged],this._versionId,!1,!1),this._createContentChanged2(new i.Range(1,1,de,le),0,se,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const V=this.getVersionId(),$=this._decorationsTree.collectNodesPostOrder();for(let J=0,se=$.length;J<se;J++){const de=$[J],le=de.range,fe=de.cachedAbsoluteStart-de.start,ve=this._buffer.getOffsetAt(le.startLineNumber,le.startColumn),Ce=this._buffer.getOffsetAt(le.endLineNumber,le.endColumn);de.cachedAbsoluteStart=ve,de.cachedAbsoluteEnd=Ce,de.cachedVersionId=V,de.start=ve-fe,de.end=Ce-fe,(0,d.recomputeMaxEnd)(de)}}onBeforeAttached(){return this._attachedEditorCount++,this._attachedEditorCount===1&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(V){this._attachedEditorCount--,this._attachedEditorCount===0&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(V)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let V=0,$=0;const J=this._buffer.getLineCount();for(let se=1;se<=J;se++){const de=this._buffer.getLineLength(se);de>=F?$+=de:V+=de}return $>V}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(V){this._assertNotDisposed();const $=typeof V.tabSize<"u"?V.tabSize:this._options.tabSize,J=typeof V.indentSize<"u"?V.indentSize:this._options.originalIndentSize,se=typeof V.insertSpaces<"u"?V.insertSpaces:this._options.insertSpaces,de=typeof V.trimAutoWhitespace<"u"?V.trimAutoWhitespace:this._options.trimAutoWhitespace,le=typeof V.bracketColorizationOptions<"u"?V.bracketColorizationOptions:this._options.bracketPairColorizationOptions,fe=new u.TextModelResolvedOptions({tabSize:$,indentSize:J,insertSpaces:se,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:de,bracketPairColorizationOptions:le});if(this._options.equals(fe))return;const ve=this._options.createChangeEvent(fe);this._options=fe,this._bracketPairs.handleDidChangeOptions(ve),this._decorationProvider.handleDidChangeOptions(ve),this._onDidChangeOptions.fire(ve)}detectIndentation(V,$){this._assertNotDisposed();const J=(0,g.guessIndentation)(this._buffer,$,V);this.updateOptions({insertSpaces:J.insertSpaces,tabSize:J.tabSize,indentSize:J.tabSize})}normalizeIndentation(V){return this._assertNotDisposed(),(0,C.normalizeIndentation)(V,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(V=null){const $=this.findMatches(p.UNUSUAL_LINE_TERMINATORS.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(V,$.map(J=>({range:J.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt
`?0:1}getLineMinColumn(V){return this._assertNotDisposed(),1}getLineMaxColumn(V){if(this._assertNotDisposed(),V<1||V>this.getLineCount())throw new E.BugIndicatingError("Illegal value for lineNumber");return this._buffer.getLineLength(V)+1}getLineFirstNonWhitespaceColumn(V){if(this._assertNotDisposed(),V<1||V>this.getLineCount())throw new E.BugIndicatingError("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(V)}getLineLastNonWhitespaceColumn(V){if(this._assertNotDisposed(),V<1||V>this.getLineCount())throw new E.BugIndicatingError("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(V)}_validateRangeRelaxedNoAllocations(V){const $=this._buffer.getLineCount(),J=V.startLineNumber,se=V.startColumn;let de=Math.floor(typeof J=="number"&&!isNaN(J)?J:1),le=Math.floor(typeof se=="number"&&!isNaN(se)?se:1);if(de<1)de=1,le=1;else if(de>$)de=$,le=this.getLineMaxColumn(de);else if(le<=1)le=1;else{const _e=this.getLineMaxColumn(de);le>=_e&&(le=_e)}const fe=V.endLineNumber,ve=V.endColumn;let Ce=Math.floor(typeof fe=="number"&&!isNaN(fe)?fe:1),Se=Math.floor(typeof ve=="number"&&!isNaN(ve)?ve:1);if(Ce<1)Ce=1,Se=1;else if(Ce>$)Ce=$,Se=this.getLineMaxColumn(Ce);else if(Se<=1)Se=1;else{const _e=this.getLineMaxColumn(Ce);Se>=_e&&(Se=_e)}return J===de&&se===le&&fe===Ce&&ve===Se&&V instanceof i.Range&&!(V instanceof t.Selection)?V:new i.Range(de,le,Ce,Se)}_isValidPosition(V,$,J){if(typeof V!="number"||typeof $!="number"||isNaN(V)||isNaN($)||V<1||$<1||(V|0)!==V||($|0)!==$)return!1;const se=this._buffer.getLineCount();if(V>se)return!1;if($===1)return!0;const de=this.getLineMaxColumn(V);if($>de)return!1;if(J===1){const le=this._buffer.getLineCharCode(V,$-2);if(p.isHighSurrogate(le))return!1}return!0}_validatePosition(V,$,J){const se=Math.floor(typeof V=="number"&&!isNaN(V)?V:1),de=Math.floor(typeof $=="number"&&!isNaN($)?$:1),le=this._buffer.getLineCount();if(se<1)return new s.Position(1,1);if(se>le)return new s.Position(le,this.getLineMaxColumn(le));if(de<=1)return new s.Position(se,1);const fe=this.getLineMaxColumn(se);if(de>=fe)return new s.Position(se,fe);if(J===1){const ve=this._buffer.getLineCharCode(se,de-2);if(p.isHighSurrogate(ve))return new s.Position(se,de-1)}return new s.Position(se,de)}validatePosition(V){return this._assertNotDisposed(),V instanceof s.Position&&this._isValidPosition(V.lineNumber,V.column,1)?V:this._validatePosition(V.lineNumber,V.column,1)}_isValidRange(V,$){const J=V.startLineNumber,se=V.startColumn,de=V.endLineNumber,le=V.endColumn;if(!this._isValidPosition(J,se,0)||!this._isValidPosition(de,le,0))return!1;if($===1){const fe=se>1?this._buffer.getLineCharCode(J,se-2):0,ve=le>1&&le<=this._buffer.getLineLength(de)?this._buffer.getLineCharCode(de,le-2):0,Ce=p.isHighSurrogate(fe),Se=p.isHighSurrogate(ve);return!Ce&&!Se}return!0}validateRange(V){if(this._assertNotDisposed(),V instanceof i.Range&&!(V instanceof t.Selection)&&this._isValidRange(V,1))return V;const J=this._validatePosition(V.startLineNumber,V.startColumn,0),se=this._validatePosition(V.endLineNumber,V.endColumn,0),de=J.lineNumber,le=J.column,fe=se.lineNumber,ve=se.column;{const Ce=le>1?this._buffer.getLineCharCode(de,le-2):0,Se=ve>1&&ve<=this._buffer.getLineLength(fe)?this._buffer.getLineCharCode(fe,ve-2):0,_e=p.isHighSurrogate(Ce),ke=p.isHighSurrogate(Se);return!_e&&!ke?new i.Range(de,le,fe,ve):de===fe&&le===ve?new i.Range(de,le-1,fe,ve-1):_e&&ke?new i.Range(de,le-1,fe,ve+1):_e?new i.Range(de,le-1,fe,ve):new i.Range(de,le,fe,ve+1)}return new i.Range(de,le,fe,ve)}modifyPosition(V,$){this._assertNotDisposed();const J=this.getOffsetAt(V)+$;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,J)))}getFullModelRange(){this._assertNotDisposed();const V=this.getLineCount();return new i.Range(1,1,V,this.getLineMaxColumn(V))}findMatchesLineByLine(V,$,J,se){return this._buffer.findMatchesLineByLine(V,$,J,se)}findMatches(V,$,J,se,de,le,fe=x){this._assertNotDisposed();let ve=null;$!==null&&(Array.isArray($)||($=[$]),$.every(_e=>i.Range.isIRange(_e))&&(ve=$.map(_e=>this.validateRange(_e))
`)<0){const ke=new S.SearchParams(V,J,se,de).parseSearchRequest();if(!ke)return[];Se=Ee=>this.findMatchesLineByLine(Ee,ke,le,fe)}else Se=_e=>S.TextModelSearch.findMatches(this,new S.SearchParams(V,J,se,de),_e,le,fe);return Ce.map(Se).reduce((_e,ke)=>_e.concat(ke),[])}findNextMatch(V,$,J,se,de,le){this._assertNotDisposed();const fe=this.validatePosition($);if(!J&&V.indexOf(`
`)<0){const Ce=new S.SearchParams(V,J,se,de).parseSearchRequest();if(!Ce)return null;const Se=this.getLineCount();let _e=new i.Range(fe.lineNumber,fe.column,Se,this.getLineMaxColumn(Se)),ke=this.findMatchesLineByLine(_e,Ce,le,1);return S.TextModelSearch.findNextMatch(this,new S.SearchParams(V,J,se,de),fe,le),ke.length>0||(_e=new i.Range(1,1,fe.lineNumber,this.getLineMaxColumn(fe.lineNumber)),ke=this.findMatchesLineByLine(_e,Ce,le,1),ke.length>0)?ke[0]:null}return S.TextModelSearch.findNextMatch(this,new S.SearchParams(V,J,se,de),fe,le)}findPreviousMatch(V,$,J,se,de,le){this._assertNotDisposed();const fe=this.validatePosition($);return S.TextModelSearch.findPreviousMatch(this,new S.SearchParams(V,J,se,de),fe,le)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(V){if((this.getEOL()===`
`?0:1)!==V)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(V)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(V){return V instanceof u.ValidAnnotatedEditOperation?V:new u.ValidAnnotatedEditOperation(V.identifier||null,this.validateRange(V.range),V.text,V.forceMoveMarkers||!1,V.isAutoWhitespaceEdit||!1,V._isTracked||!1)}_validateEditOperations(V){const $=[];for(let J=0,se=V.length;J<se;J++)$[J]=this._validateEditOperation(V[J]);return $}pushEditOperations(V,$,J,se){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(V,this._validateEditOperations($),J,se)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(V,$,J,se){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const de=$.map(fe=>({range:this.validateRange(fe.range),text:fe.text}));let le=!0;if(V)for(let fe=0,ve=V.length;fe<ve;fe++){const Ce=V[fe];let Se=!1;for(let _e=0,ke=de.length;_e<ke;_e++){const Ee=de[_e].range,Ae=Ee.startLineNumber>Ce.endLineNumber,xe=Ce.startLineNumber>Ee.endLineNumber;if(!Ae&&!xe){Se=!0;break}}if(!Se){le=!1;break}}if(le)for(let fe=0,ve=this._trimAutoWhitespaceLines.length;fe<ve;fe++){const Ce=this._trimAutoWhitespaceLines[fe],Se=this.getLineMaxColumn(Ce);let _e=!0;for(let ke=0,Ee=de.length;ke<Ee;ke++){const Ae=de[ke].range,xe=de[ke].text;if(!(Ce<Ae.startLineNumber||Ce>Ae.endLineNumber)&&!(Ce===Ae.startLineNumber&&Ae.startColumn===Se&&Ae.isEmpty()&&xe&&xe.length>0&&xe.charAt(0)===`
`)&&!(Ce===Ae.startLineNumber&&Ae.startColumn===1&&Ae.isEmpty()&&xe&&xe.length>0&&xe.charAt(xe.length-1)===`
`)){_e=!1;break}}if(_e){const ke=new i.Range(Ce,1,Ce,Se);$.push(new u.ValidAnnotatedEditOperation(null,ke,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(V,$,J,se)}_applyUndo(V,$,J,se){const de=V.map(le=>{const fe=this.getPositionAt(le.newPosition),ve=this.getPositionAt(le.newEnd);return{range:new i.Range(fe.lineNumber,fe.column,ve.lineNumber,ve.column),text:le.oldText}});this._applyUndoRedoEdits(de,$,!0,!1,J,se)}_applyRedo(V,$,J,se){const de=V.map(le=>{const fe=this.getPositionAt(le.oldPosition),ve=this.getPositionAt(le.oldEnd);return{range:new i.Range(fe.lineNumber,fe.column,ve.lineNumber,ve.column),text:le.newText}});this._applyUndoRedoEdits(de,$,!1,!0,J,se)}_applyUndoRedoEdits(V,$,J,se,de,le){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=J,this._isRedoing=se,this.applyEdits(V,!1),this.setEOL($),this._overwriteAlternativeVersionId(de)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(le),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(V,$=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const J=this._validateEditOperations(V);return this._doApplyEdits(J,$)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(V,$){const J=this._buffer.getLineCount(),se=this._buffer.applyEdits(V,this._options.trimAutoWhitespace,$),de=this._buffer.getLineCount(),le=se.changes;if(this._trimAutoWhitespaceLines=se.trimAutoWhitespaceLineNumbers,le.length!==0){for(let Ce=0,Se=le.length;Ce<Se;Ce++){const _e=le[Ce];this._decorationsTree.acceptReplace(_e.rangeOffset,_e.rangeLength,_e.text.length,_e.forceMoveMarkers)}const fe=[];this._increaseVersionId();let ve=J;for(let Ce=0,Se=le.length;Ce<Se;Ce++){const _e=le[Ce],[ke]=(0,b.countEOL)(_e.text);this._onDidChangeDecorations.fire();const Ee=_e.range.startLineNumber,Ae=_e.range.endLineNumber,xe=Ae-Ee,We=ke,Be=Math.min(xe,We),De=We-xe,Ne=de-ve-De+Ee,me=Ne,be=Ne+We,Re=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new s.Position(me,1)),this.getOffsetAt(new s.Position(be,this.getLineMaxColumn(be))),0),He=I.LineInjectedText.fromDecorations(Re),qe=new f.ArrayQueue(He);for(let Ue=Be;Ue>=0;Ue--){const Ze=Ee+Ue,et=Ne+Ue;qe.takeFromEndWhile(at=>at.lineNumber>et);const nt=qe.takeFromEndWhile(at=>at.lineNumber===et);fe.push(new I.ModelRawLineChanged(Ze,this.getLineContent(et),nt))}if(Be<xe){const Ue=Ee+Be;fe.push(new I.ModelRawLinesDeleted(Ue+1,Ae))}if(Be<We){const Ue=new f.ArrayQueue(He),Ze=Ee+Be,et=We-Be,nt=de-ve-et+Ze+1,at=[],ft=[];for(let tt=0;tt<et;tt++){const ht=nt+tt;ft[tt]=this.getLineContent(ht),Ue.takeWhile(ot=>ot.lineNumber<ht),at[tt]=Ue.takeWhile(ot=>ot.lineNumber===ht)}fe.push(new I.ModelRawLinesInserted(Ze+1,Ee+We,ft,at))}ve+=De}this._emitContentChangedEvent(new I.ModelRawContentChangedEvent(fe,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:le,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return se.reverseEdits===null?void 0:se.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(V){if(V===null||V.size===0)return;const J=Array.from(V).map(se=>new I.ModelRawLineChanged(se,this.getLineContent(se),this._getInjectedTextInLine(se)));this._onDidChangeInjectedText.fire(new I.ModelInjectedTextChangedEvent(J))}changeDecorations(V,$=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations($,V)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(V,$){const J={addDecoration:(de,le)=>this._deltaDecorationsImpl(V,[],[{range:de,op
`?N=2:A===`
`&&(N=1);let O=y.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace;v.editor&&typeof v.editor.trimAutoWhitespace<"u"&&(O=v.editor.trimAutoWhitespace==="false"?!1:!!v.editor.trimAutoWhitespace);let M=y.EDITOR_MODEL_DEFAULTS.detectIndentation;v.editor&&typeof v.editor.detectIndentation<"u"&&(M=v.editor.detectIndentation==="false"?!1:!!v.editor.detectIndentation);let R=y.EDITOR_MODEL_DEFAULTS.largeFileOptimizations;v.editor&&typeof v.editor.largeFileOptimizations<"u"&&(R=v.editor.largeFileOptimizations==="false"?!1:!!v.editor.largeFileOptimizations);let x=y.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions;return!((S=v.editor)===null||S===void 0)&&S.bracketPairColorization&&typeof v.editor.bracketPairColorization=="object"&&(x={enabled:!!v.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!v.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:_,tabSize:L,indentSize:I,insertSpaces:T,detectIndentation:M,defaultEOL:N,trimAutoWhitespace:O,largeFileOptimizations:R,bracketPairColorizationOptions:x}}_getEOL(v,_){if(v)return this._resourcePropertiesService.getEOL(v,_);const S=this._configurationService.getValue("files.eol",{overrideIdentifier:_});return S&&typeof S=="string"&&S!=="auto"?S:E.OS===3||E.OS===2?`
`:`\r
`}_shouldRestoreUndoStack(){const v=this._configurationService.getValue("files.restoreUndoStack");return typeof v=="boolean"?v:!0}getCreationOptions(v,_,S){const L=typeof v=="string"?v:v.languageId;let I=this._modelCreationOptionsByLanguageAndResource[L+_];if(!I){const T=this._configurationService.getValue("editor",{overrideIdentifier:L,resource:_}),N=this._getEOL(_,L);I=m._readModelOptions({editor:T,eol:N},S),this._modelCreationOptionsByLanguageAndResource[L+_]=I}return I}_updateModelOptions(v){const _=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const S=Object.keys(this._models);for(let L=0,I=S.length;L<I;L++){const T=S[L],N=this._models[T],A=N.model.getLanguageId(),O=N.model.uri;if(v&&!v.affectsConfiguration("editor",{overrideIdentifier:A,resource:O})&&!v.affectsConfiguration("files.eol",{overrideIdentifier:A,resource:O}))continue;const M=_[A+O],R=this.getCreationOptions(A,O,N.model.isForSimpleWidget);m._setModelOptionsForModel(N.model,R,M)}}static _setModelOptionsForModel(v,_,S){S&&S.defaultEOL!==_.defaultEOL&&v.getLineCount()===1&&v.setEOL(_.defaultEOL===1?0:1),!(S&&S.detectIndentation===_.detectIndentation&&S.insertSpaces===_.insertSpaces&&S.tabSize===_.tabSize&&S.indentSize===_.indentSize&&S.trimAutoWhitespace===_.trimAutoWhitespace&&(0,n.equals)(S.bracketPairColorizationOptions,_.bracketPairColorizationOptions))&&(_.detectIndentation?(v.detectIndentation(_.insertSpaces,_.tabSize),v.updateOptions({trimAutoWhitespace:_.trimAutoWhitespace,bracketColorizationOptions:_.bracketPairColorizationOptions})):v.updateOptions({insertSpaces:_.insertSpaces,tabSize:_.tabSize,indentSize:_.indentSize,trimAutoWhitespace:_.trimAutoWhitespace,bracketColorizationOptions:_.bracketPairColorizationOptions}))}_insertDisposedModel(v){this._disposedModels.set(u(v.uri),v),this._disposedModelsHeapSize+=v.heapSize}_removeDisposedModel(v){const _=this._disposedModels.get(u(v));return _&&(this._disposedModelsHeapSize-=_.heapSize),this._disposedModels.delete(u(v)),_}_ensureDisposedModelsHeapSize(v){if(this._disposedModelsHeapSize>v){const _=[];for(this._disposedModels.forEach(S=>{S.sharesUndoRedoStack||_.push(S)}),_.sort((S,L)=>S.time-L.time);_.length>0&&this._disposedModelsHeapSize>v;){const S=_.shift();this._removeDisposedModel(S.uri),S.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(S.initialUndoRedoSnapshot)}}}_createModelData(v,_,S,L){const I=this.getCreationOptions(_,S,L),T=new D.TextModel(v,_,I,S,this._undoRedoService,this._languageService,this._languageConfigurationService);if(S&&this._disposedModels.has(u(S))){const O=this._removeDisposedModel(S),M=this._undoRedoService.getElements(S),R=this._getSHA1Computer(),x=R.canComputeSHA1(T)?R.computeSHA1(T)===O.sha1:!1;if(x||O.sharesUndoRedoStack){for(const F of M.past)(0,i.isEditStackElement)(F)&&F.matchesResource(S)&&F.setModel(T);for(const F of M.future)(0,i.isEditStackElement)(F)&&F.matchesResource(S)&&F.setModel(T);this._undoRedoService.setElementsValidFlag(S,!0,F=>(0,i.isEditStackElement)(F)&&F.matchesResource(S)),x&&(T._overwriteVersionId(O.versionId),T._overwriteAlternativeVersionId(O.alternativeVersionId),T._overwriteInitialUndoRedoSnapshot(O.initialUndoRedoSnapshot))}else O.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(O.initialUndoRedoSnapshot)}const N=u(T.uri);if(this._models[N])throw new Error("ModelService: Cannot add model because it already exists!");const A=new r(T,O=>this._onWillDispose(O),(O,M)=>this._onDidChangeLanguage(O,M));return this._models[N]=A,A}createModel(v,_,S,L=!1){let I;return _?I=this._createModelData(v,_,S,L):I=this._createModelData(v,p.PLAINTEXT_LANGUAGE_ID,S,L),this._onModelAdded.fire(I.model),I.model}getModels(){const v=[],_=Object.keys(this._models);for(let S=0,L=_.length;S<L;S++){const I=_[S];v.push(this._models[I].model)}return v}getModel(v){const _=u(v),S=this._models[_];return S?S.model:null}_schemaShouldMaintainUndoRedoElements(v){return v.scheme===t.Schemas.file||v.scheme===t.Schemas.vscodeRemote||v.scheme===t.Schemas.vscodeUserData||v.s
`:this.model.getEOL();M=M.slice(0),M.sort(s.Range.compareRangesUsingStarts);let W=!1,H=!1;for(const j of M)j.isEmpty()?W=!0:H=!0;if(!H){if(!R)return"";const j=M.map(U=>U.startLineNumber);let K="";for(let U=0;U<j.length;U++)U>0&&j[U-1]===j[U]||(K+=this.model.getLineContent(j[U])+F);return K}if(W&&R){const j=[];let K=0;for(const U of M){const G=U.startLineNumber;U.isEmpty()?G!==K&&j.push(this.model.getLineContent(G)):j.push(this.model.getValueInRange(U,x?2:0)),K=G}return j.length===1?j[0]:j}const z=[];for(const j of M)j.isEmpty()||z.push(this.model.getValueInRange(j,x?2:0));return z.length===1?z[0]:z}getRichTextToCopy(M,R){const x=this.model.getLanguageId();if(x===n.PLAINTEXT_LANGUAGE_ID||M.length!==1)return null;let F=M[0];if(F.isEmpty()){if(!R)return null;const U=F.startLineNumber;F=new s.Range(U,this.model.getLineMinColumn(U),U,this.model.getLineMaxColumn(U))}const W=this._configuration.options.get(50),H=this._getColorMap(),j=/[:;\\\/<>]/.test(W.fontFamily)||W.fontFamily===w.EDITOR_FONT_DEFAULTS.fontFamily;let K;return j?K=w.EDITOR_FONT_DEFAULTS.fontFamily:(K=W.fontFamily,K=K.replace(/"/g,"'"),/[,']/.test(K)||/[+ ]/.test(K)&&(K=`'${K}'`),K=`${K}, ${w.EDITOR_FONT_DEFAULTS.fontFamily}`),{mode:x,html:`<div style="color: ${H[1]};background-color: ${H[2]};font-family: ${K};font-weight: ${W.fontWeight};font-size: ${W.fontSize}px;line-height: ${W.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(F,H)+"</div>"}}_getHTMLToCopy(M,R){const x=M.startLineNumber,F=M.startColumn,W=M.endLineNumber,H=M.endColumn,z=this.getTabSize();let j="";for(let K=x;K<=W;K++){const U=this.model.tokenization.getLineTokens(K),G=U.getLineContent(),te=K===x?F-1:0,ee=K===W?H-1:G.length;G===""?j+="<br>":j+=(0,c.tokenizeLineToHTML)(G,U.inflate(),R,te,ee,z,y.isWindows)}return j}_getColorMap(){const M=t.TokenizationRegistry.getColorMap(),R=["#000000"];if(M)for(let x=1,F=M.length;x<F;x++)R[x]=E.Color.Format.CSS.formatHex(M[x]);return R}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(M,R,x){return this._withViewEventsCollector(F=>this._cursor.setStates(F,M,R,x))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(M){this._cursor.setCursorColumnSelectData(M)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(M){this._cursor.setPrevEditOperationType(M)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(M,R,x=0){this._withViewEventsCollector(F=>this._cursor.setSelections(F,M,R,x))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(M){this._withViewEventsCollector(R=>this._cursor.restoreState(R,M))}_executeCursorEdit(M){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new l.ReadOnlyEditAttemptEvent);return}this._withViewEventsCollector(M)}executeEdits(M,R,x){this._executeCursorEdit(F=>this._cursor.executeEdits(F,M,R,x))}startComposition(){this._executeCursorEdit(M=>this._cursor.startComposition(M))}endComposition(M){this._executeCursorEdit(R=>this._cursor.endComposition(R,M))}type(M,R){this._executeCursorEdit(x=>this._cursor.type(x,M,R))}compositionType(M,R,x,F,W){this._executeCursorEdit(H=>this._cursor.compositionType(H,M,R,x,F,W))}paste(M,R,x,F){this._executeCursorEdit(W=>this._cursor.paste(W,M,R,x,F))}cut(M){this._executeCursorEdit(R=>this._cursor.cut(R,M))}executeCommand(M,R){this._executeCursorEdit(x=>this._cursor.executeCommand(x,M,R))}executeCommands(M,R){this._executeCursorEdit(x=>this._cursor.executeCommands(x,M,R))}revealAllCursors(M,R,x=!1){this._withViewEventsCollector(F=>this._cursor.revealAll(F,M,x,0,R,0))}revealPrimaryCursor(M,R,x=!1){this._withViewEventsCollector(F=>this._cursor.revealPrimary(F,M,x,0,R,0))}revealTo
`?V=1:B&&B.lineEnding&&B.lineEnding===`\r
`&&(V=2),this._modelData.model.getValue(V,q)}setValue(B){this._modelData&&this._modelData.model.setValue(B)}getModel(){return this._modelData?this._modelData.model:null}setModel(B=null){var q;const V=B;if(this._modelData===null&&V===null||this._modelData&&this._modelData.model===V)return;const $={oldModelUrl:((q=this._modelData)===null||q===void 0?void 0:q.model.uri)||null,newModelUrl:V?.uri||null};this._onWillChangeModel.fire($);const J=this.hasTextFocus(),se=this._detachModel();this._attachModel(V),J&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire($),this._postDetachModelCleanup(se),this._contributionsDisposable=this._contributions.onAfterModelAttached()}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const B in this._decorationTypeSubtypes){const q=this._decorationTypeSubtypes[B];for(const V in q)this._removeDecorationType(B+"-"+V)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(B,q,V,$){const J=B.model.validatePosition({lineNumber:q,column:V}),se=B.viewModel.coordinatesConverter.convertModelPositionToViewPosition(J);return B.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(se.lineNumber,$)}getTopForLineNumber(B,q=!1){return this._modelData?j._getVerticalOffsetForPosition(this._modelData,B,1,q):-1}getTopForPosition(B,q){return this._modelData?j._getVerticalOffsetForPosition(this._modelData,B,q,!1):-1}static _getVerticalOffsetForPosition(B,q,V,$=!1){const J=B.model.validatePosition({lineNumber:q,column:V}),se=B.viewModel.coordinatesConverter.convertModelPositionToViewPosition(J);return B.viewModel.viewLayout.getVerticalOffsetForLineNumber(se.lineNumber,$)}getBottomForLineNumber(B,q=!1){return this._modelData?j._getVerticalOffsetAfterPosition(this._modelData,B,1,q):-1}setHiddenAreas(B,q){var V;(V=this._modelData)===null||V===void 0||V.viewModel.setHiddenAreas(B.map($=>a.Range.lift($)),q)}getVisibleColumnFromPosition(B){if(!this._modelData)return B.column;const q=this._modelData.model.validatePosition(B),V=this._modelData.model.getOptions().tabSize;return m.CursorColumns.visibleColumnFromColumn(this._modelData.model.getLineContent(q.lineNumber),q.column,V)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(B,q="api"){if(this._modelData){if(!r.Position.isIPosition(B))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(q,[{selectionStartLineNumber:B.lineNumber,selectionStartColumn:B.column,positionLineNumber:B.lineNumber,positionColumn:B.column}])}}_sendRevealRange(B,q,V,$){if(!this._modelData)return;if(!a.Range.isIRange(B))throw new Error("Invalid arguments");const J=this._modelData.model.validateRange(B),se=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(J);this._modelData.viewModel.revealRange("api",V,se,q,$)}revealLine(B,q=0){this._revealLine(B,0,q)}revealLineInCenter(B,q=0){this._revealLine(B,1,q)}revealLineInCenterIfOutsideViewport(B,q=0){this._revealLine(B,2,q)}revealLineNearTop(B,q=0){this._revealLine(B,5,q)}_revealLine(B,q,V){if(typeof B!="number")throw new Error("Invalid arguments");this._sendRevealRange(new a.Range(B,1,B,1),q,!1,V)}revealPosition(B,q=0){this._revealPosition(B,0,!0,q)}revealPositionInCenter(B,q=0){this._revealPosition(B,1,!0,q)}revealPositionInCenterIfOutsideViewport(B,q=0){this._revealPosition(B,2,!0,q)}revealPositionNearTop(B,q=0){this._revealPosition(B,5,!0,q)}_revealPosition(B,q,V,$){if(!r.Position.isIPosition(B))throw new Error("Invalid arguments");this._sendRevealRange(new a.Range(B.lineNumber,B.column,B.lineNumber,B.column),q,V,$)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._model
`),X.preventDefault();return}if(X.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),X.preventDefault();return}if(X.equals(2066)){this._codeEditor.focus(),X.preventDefault();return}if(X.equals(16))return re(X,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(X.equals(18))return ce(X,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(X){if(X.equals(P|3))if(this._keybindingService.dispatchEvent(X,X.target)){X.preventDefault();return}else{o.isWindows&&o.isNative&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(n.localize(26,null)),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Y,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(`
`),X.preventDefault();return}if(X.equals(2)){this._findInput.focusOnCaseSensitive(),X.preventDefault();return}if(X.equals(1026)){this._findInput.focus(),X.preventDefault();return}if(X.equals(2066)){this._codeEditor.focus(),X.preventDefault();return}if(X.equals(16))return re(X,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(X.equals(18))return ce(X,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(X){return 0}_keybindingLabelFor(X){const ae=this._keybindingService.lookupKeybinding(X);return ae?` (${ae.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new c.ContextScopedFindInput(null,this._contextViewProvider,{width:G,label:T,placeholder:N,appendCaseSensitiveLabel:this._keybindingLabelFor(t.FIND_IDS.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(t.FIND_IDS.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(t.FIND_IDS.ToggleRegexCommand),validation:de=>{if(de.length===0||!this._findInput.getRegex())return null;try{return new RegExp(de,"gu"),null}catch(le){return{content:le.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>(0,m.showHistoryKeybindingHint)(this._keybindingService),inputBoxStyles:d.defaultInputBoxStyles,toggleStyles:d.defaultToggleStyles},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(de=>this._onFindInputKeyDown(de))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(de=>{de.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),de.preventDefault())})),this._register(this._findInput.onRegexKeyDown(de=>{de.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),de.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(de=>{this._tryUpdateHeight()&&this._showViewZone()})),o.isLinux&&this._register(this._findInput.onMouseDown(de=>this._onFindInputMouseDown(de))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const oe=this._register((0,v.createInstantHoverDelegate)());this._prevBtn=this._register(new pe({label:A+this._keybindingLabelFor(t.FIND_IDS.PreviousMatchFindAction),icon:e.findPreviousMatchIcon,hoverDelegate:oe,onTrigger:()=>{(0,g.assertIsDefined)(this._codeEditor.getAction(t.FIND_IDS.PreviousMatchFindAction)).run().then(void 0,b.onUnexpectedError)}},this._hoverService)),this._nextBtn=this._register(new pe({label:O+this._keybindingLabelFor(t.FIND_IDS.NextMatchFindAction),icon:e.findNextMatchIcon,hoverDelegate:oe,onTrigger:()=>{(0,g.assertIsDefined)(this._codeEditor.getAction(t.FIND_IDS.NextMatchFindAction)).run().then(void 0,b.onUnexpectedError)}},this._hoverService));const B=document.createElement("div");B.className="find-part",B.appendChild(this._findInput.domNode);const q=document.createElement("div");q.className="find-actions",B.appendChild(q),q.appendChild(this._matchesCount),q.appendChild(this._prevBtn.domNode),q.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new E.Toggle({icon:_,title:M+this._keybindingLabelFor(t.FIND_IDS.ToggleSearchScopeCommand),isChecked:!1,hoverDelegate:oe,inputActiveOptionBackground:(0,u.asCssVariable)(u.inputActiveOptionBackground),inputActiveOptionBorder:(0,u.asCssVariable)(u.inputActiveOptionBorder),inputActiveOptionForeground:(0,u.asCssVariable)(u.inputActiveOptionForeground)})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFin
* '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': Array of 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:x,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(ae,oe,B,q){const V=q&&q.levels||1,$=this.getLineNumbers(q,B);q&&q.direction==="up"?(0,t.setCollapseStateLevelsUp)(oe,!1,V,$):(0,t.setCollapseStateLevelsDown)(oe,!1,V,$)}}class W extends R{constructor(){super({id:"editor.unfoldRecursively",label:m.localize(1,null),alias:"Unfold Recursively",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2142),weight:100}})}invoke(ae,oe,B,q){(0,t.setCollapseStateLevelsDown)(oe,!1,Number.MAX_VALUE,this.getSelectedLines(B))}}class H extends R{constructor(){super({id:"editor.fold",label:m.localize(2,null),alias:"Fold",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{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': Array of 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:x,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(ae,oe,B,q){const V=this.getLineNumbers(q,B),$=q&&q.levels,J=q&&q.direction;typeof $!="number"&&typeof J!="string"?(0,t.setCollapseStateUp)(oe,!0,V):J==="up"?(0,t.setCollapseStateLevelsUp)(oe,!0,$||1,V):(0,t.setCollapseStateLevelsDown)(oe,!0,$||1,V)}}class z extends R{constructor(){super({id:"editor.toggleFold",label:m.localize(3,null),alias:"Toggle Fold",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2090),weight:100}})}invoke(ae,oe,B){const q=this.getSelectedLines(B);(0,t.toggleCollapseState)(oe,1,q)}}class j extends R{constructor(){super({id:"editor.foldRecursively",label:m.localize(4,null),alias:"Fold Recursively",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2140),weight:100}})}invoke(ae,oe,B){const q=this.getSelectedLines(B);(0,t.setCollapseStateLevelsDown)(oe,!0,Number.MAX_VALUE,q)}}class K extends R{constructor(){super({id:"editor.foldAllBlockComments",label:m.localize(5,null),alias:"Fold All Block Comments",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2138),weight:100}})}invoke(ae,oe,B,q,V){if(oe.regions.hasTypes())(0,t.setCollapseStateForType)(oe,s.FoldingRangeKind.Comment.value,!0);else{const $=B.getModel();if(!$)return;const J=V.getLanguageConfiguration($.getLanguageId()).comments;if(J&&J.blockCommentStartToken){const se=new RegExp("^\\s*"+(0,p.escapeRegExpCharacters)(J.blockCommentStartToken));(0,t.setCollapseStateForMatchingLines)(oe,se,!0)}}}}class U extends R{constructor(){super({id:"editor.foldAllMarkerRegions",label:m.localize(6,null),alias:"Fold All Regions",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2077),weight:100}})}invoke(ae,oe,B,q,V){if(oe.regions.hasTypes())(0,t.setCollapseStateForType)(oe,s.FoldingRangeKind.Region.value,!0);else{const $=B.getModel();if(!$)return;const J=V.getLanguageConfiguration($.getLanguageId()).foldingRules;if(J&&J.markers&&J.markers.start){const se=new RegExp(J.markers.start);(0,t.setCollapseStateForMatchingLines)(oe,se,!0)}}}}class G extends R{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:m.localize(7,null),alias:"Unfold All Regions",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2078),weight:100}})}invoke(ae,oe,B,q,V){if(oe.regions.hasTypes())(0,t.setCollapseStateForType)(oe,s.FoldingRangeKind.Region.value,!1);else{const $=B.getModel();if(!$)return;const J=V.getLanguageConfiguration($.getLanguageId()).foldingRules;if(J&&J.markers&&J.markers.start){const se=new RegExp(J.markers.start);(0,t.setCollapseStateForMatchingLines)(oe,se,!1)}}}}class te extends R{constructor(){super({id:"editor.foldAllExcept",label:m.localize(8,null),alias:"Fold All Except Selected",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2136),weight:100}})}invoke(ae,oe,B){const q=this.getSelectedLines(B);(0,t.setCollapseStateForRest)(oe,!0,q)}}class ee extends R{constructor(){super({id:"editor.unfoldAllExcept",label:m.localize(9,null),alias:"Unfold All Except Selected",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2134),weight:100}})}invoke(ae,oe,B){const q=this.getSelectedLines(B);(0,t.setCollapseStateForRest)(oe,!1,q)}}class Y extends R{constructor(){super({id:"editor.foldAll",label:m.localize(10,null),alias:"Fold All",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2069),weight:100}})}invoke(ae,oe,B){(0,t.setCollapseStateLevelsDown)(oe,!0)}}class P extends R{constructor(){super({id:"editor.unfoldAll",label:m.localize(11,null),alias:"Unfold All",precondition:A,kbOpts:{kbExpr:o.EditorContextKeys.editorTextFocus,primary:(0,D.KeyChord)(2089,2088),weight:100}})}invoke(ae,oe,B){(0,t.setCollapseStateLevelsDown)(oe,!1)}}class Z exten
`);return new _(K,U,te,re,ee,Y,ce)}constructor(K,U,G,te,ee,Y,P){this._editor=K,this.findController=U,this.isDisconnectedFromFindController=G,this.searchText=te,this.wholeWord=ee,this.matchCase=Y,this.currentMatch=P}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const K=this._getNextMatch();if(!K)return null;const U=this._editor.getSelections();return new v(U.concat(K),K,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const K=this._getNextMatch();if(!K)return null;const U=this._editor.getSelections();return new v(U.slice(0,U.length-1).concat(K),K,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const te=this.currentMatch;return this.currentMatch=null,te}this.findController.highlightFindOptions();const K=this._editor.getSelections(),U=K[K.length-1],G=this._editor.getModel().findNextMatch(this.searchText,U.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return G?new b.Selection(G.range.startLineNumber,G.range.startColumn,G.range.endLineNumber,G.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const K=this._getPreviousMatch();if(!K)return null;const U=this._editor.getSelections();return new v(U.concat(K),K,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const K=this._getPreviousMatch();if(!K)return null;const U=this._editor.getSelections();return new v(U.slice(0,U.length-1).concat(K),K,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const te=this.currentMatch;return this.currentMatch=null,te}this.findController.highlightFindOptions();const K=this._editor.getSelections(),U=K[K.length-1],G=this._editor.getModel().findPreviousMatch(this.searchText,U.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return G?new b.Selection(G.range.startLineNumber,G.range.startColumn,G.range.endLineNumber,G.range.endColumn):null}selectAll(K){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const U=this._editor.getModel();return K?U.findMatches(this.searchText,K,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824):U.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824)}}e.MultiCursorSession=_;class S extends D.Disposable{static get(K){return K.getContribution(S.ID)}constructor(K){super(),this._sessionDispose=this._register(new D.DisposableStore),this._editor=K,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(K){if(!this._session){const U=_.create(this._editor,K);if(!U)return;this._session=U;const G={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(G.wholeWordOverride=1,G.matchCaseOverride=1,G.isRegexOverride=2),K.getState().change(G,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(te=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(K.getState().onFindReplaceStateChange(te=>{(te.matchCase||te.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const K={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(K,!1)}this._session=null}_setSelections(K){this._ignoreSelectionChange=!0,this._editor.setSelections(K),this._ignoreSelectionChange=!1}_expandEmptyToWord(K,U){if(!U.isEmpty())return U;const G=this._editor.getConfiguredWordAtPosition(U.getStartPosition());return G?new b.Selection(U.startLineNumber,G.startColumn,U.startLineNumber,G.endColumn):U}_applySessionResult(K){K&&(this._setSelections(K.selections),K.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(K.revealRange,K.revealScrollType))}getSession(K){return this._session}addSelectionToNextFindMatch(K){if(this._editor.hasM
`)}get size(){return this.elements.size}has(d){return this.elements.has(d)}set(d,v){this.elements.set(d,v)}delete(d){return this.elements.delete(d)}}class m{constructor(d,v,_,S,L,I,T){this.id=++i,this.type=1,this.actual=d,this.label=d.label,this.confirmBeforeUndo=d.confirmBeforeUndo||!1,this.resourceLabels=v,this.strResources=_,this.groupId=S,this.groupOrder=L,this.sourceId=I,this.sourceOrder=T,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(d,v,_){this.removedResources||(this.removedResources=new c),this.removedResources.has(v)||this.removedResources.set(v,new n(d,_))}setValid(d,v,_){_?this.invalidatedResources&&(this.invalidatedResources.delete(v),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new c),this.invalidatedResources.has(v)||this.invalidatedResources.set(v,new n(d,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class u{constructor(d,v){this.resourceLabel=d,this.strResource=v,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const d of this._past)d.type===1&&d.removeResource(this.resourceLabel,this.strResource,0);for(const d of this._future)d.type===1&&d.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const d=[];d.push(`* ${this.strResource}:`);for(let v=0;v<this._past.length;v++)d.push(` * [UNDO] ${this._past[v]}`);for(let v=this._future.length-1;v>=0;v--)d.push(` * [REDO] ${this._future[v]}`);return d.join(`
`)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(d,v){d.type===1?d.setValid(this.resourceLabel,this.strResource,v):d.setValid(v)}setElementsValidFlag(d,v){for(const _ of this._past)v(_.actual)&&this._setElementValidFlag(_,d);for(const _ of this._future)v(_.actual)&&this._setElementValidFlag(_,d)}pushElement(d){for(const v of this._future)v.type===1&&v.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(d),this.versionId++}createSnapshot(d){const v=[];for(let _=0,S=this._past.length;_<S;_++)v.push(this._past[_].id);for(let _=this._future.length-1;_>=0;_--)v.push(this._future[_].id);return new C.ResourceEditStackSnapshot(d,v)}restoreSnapshot(d){const v=d.elements.length;let _=!0,S=0,L=-1;for(let T=0,N=this._past.length;T<N;T++,S++){const A=this._past[T];_&&(S>=v||A.id!==d.elements[S])&&(_=!1,L=0),!_&&A.type===1&&A.removeResource(this.resourceLabel,this.strResource,0)}let I=-1;for(let T=this._future.length-1;T>=0;T--,S++){const N=this._future[T];_&&(S>=v||N.id!==d.elements[S])&&(_=!1,I=T),!_&&N.type===1&&N.removeResource(this.resourceLabel,this.strResource,0)}L!==-1&&(this._past=this._past.slice(0,L)),I!==-1&&(this._future=this._future.slice(I+1)),this.versionId++}getElements(){const d=[],v=[];for(const _ of this._past)d.push(_.actual);for(const _ of this._future)v.push(_.actual);return{past:d,future:v}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(d,v){for(let _=this._past.length-1;_>=0;_--)if(this._past[_]===d){v.has(this.strResource)?this._past[_]=v.get(this.strResource):this._past.splice(_,1);break}this.versionId++}splitFutureWorkspaceElement(d,v){for(let _=this._future.length-1;_>=0;_--)if(this._future[_]===d){v.has(this.strResource)?this._future[_]=v.get(this.strResource):this._future.splice(_,1);break}this.versionId++}moveBackward(d){this._past.pop(),this._future.push(d),this.versionId++}moveForward(d){this._future.pop(),this._past.push(d),this.versionId++}}class r{constructor(d){this.editStacks=d,this._versionIds=[];for(let v=0,_=this.editStacks.length;v<_;v++)this._versionIds[v]=this.editStacks[v].versionId}isValid(){for(let d=0,v=this.editStacks.length;d<v;d++)if(this._versionIds[d]!==this.editStacks[d].versionId)return!1;return!0}}const a=new u("","");a.locked=!0;let h=class{constructor(d,v){this._dialogService=d,this._notificationService=v,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(d){for(const v of this._uriComparisonKeyComputers)if(v[0]===d.scheme)return v[1].getComparisonKey(d);return d.toString()}_print(d){console.log("------------------------------------"),console.log(`AFTER ${d}: `);const v=[];for(const _ of this._editStacks)v.push(_[1].toString());console.log(v.join(`
`))}pushElement(d,v=C.UndoRedoGroup.None,_=C.UndoRedoSource.None){if(d.type===0){const S=s(d.resource),L=this.getUriComparisonKey(d.resource);this._pushElement(new t(d,S,L,v.id,v.nextOrder(),_.id,_.nextOrder()))}else{const S=new Set,L=[],I=[];for(const T of d.resources){const N=s(T),A=this.getUriComparisonKey(T);S.has(A)||(S.add(A),L.push(N),I.push(A))}L.length===1?this._pushElement(new t(d,L[0],I[0],v.id,v.nextOrder(),_.id,_.nextOrder())):this._pushElement(new m(d,L,I,v.id,v.nextOrder(),_.id,_.nextOrder()))}o&&this._print("pushElement")}_pushElement(d){for(let v=0,_=d.strResources.length;v<_;v++){const S=d.resourceLabels[v],L=d.strResources[v];let I;this._editStacks.has(L)?I=this._editStacks.get(L):(I=new u(S,L),this._editStacks.set(L,I)),I.pushElement(d)}}getLastElement(d){const v=this.getUriComparisonKey(d);if(this._editStacks.has(v)){const _=this._editStacks.get(v);if(_.hasFutureElements())return null;const S=_.getClosestPastElement();return S?S.actual:null}return null}_splitPastWorkspaceElement(d,v){const _=d.actual.split(),S=new Map;for(const L of _){const I=s(L.resource),T=this.getUriComparisonKey(L.resource),N=new t(L,I,T,0,0,0,0);S.set(N.strResource,N)}for(const L of d.strResources){if(v&&v.has(L))continue;this._editStacks.get(L).splitPastWorkspaceElement(d,S)}}_splitFutureWorkspaceElement(d,v){const _=d.actual.split(),S=new Map;for(const L of _){const I=s(L.resource),T=this.getUriComparisonKey(L.resource),N=new t(L,I,T,0,0,0,0);S.set(N.strResource,N)}for(const L of d.strResources){if(v&&v.has(L))continue;this._editStacks.get(L).splitFutureWorkspaceElement(d,S)}}removeElements(d){const v=typeof d=="string"?d:this.getUriComparisonKey(d);this._editStacks.has(v)&&(this._editStacks.get(v).dispose(),this._editStacks.delete(v)),o&&this._print("removeElements")}setElementsValidFlag(d,v,_){const S=this.getUriComparisonKey(d);this._editStacks.has(S)&&this._editStacks.get(S).setElementsValidFlag(v,_),o&&this._print("setElementsValidFlag")}createSnapshot(d){const v=this.getUriComparisonKey(d);return this._editStacks.has(v)?this._editStacks.get(v).createSnapshot(d):new C.ResourceEditStackSnapshot(d,[])}restoreSnapshot(d){const v=this.getUriComparisonKey(d.resource);if(this._editStacks.has(v)){const _=this._editStacks.get(v);_.restoreSnapshot(d),!_.hasPastElements()&&!_.hasFutureElements()&&(_.dispose(),this._editStacks.delete(v))}o&&this._print("restoreSnapshot")}getElements(d){const v=this.getUriComparisonKey(d);return this._editStacks.has(v)?this._editStacks.get(v).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(d){if(!d)return[null,null];let v=null,_=null;for(const[S,L]of this._editStacks){const I=L.getClosestPastElement();I&&I.sourceId===d&&(!v||I.sourceOrder>v.sourceOrder)&&(v=I,_=S)}return[v,_]}canUndo(d){if(d instanceof C.UndoRedoSource){const[,_]=this._findClosestUndoElementWithSource(d.id);return!!_}const v=this.getUriComparisonKey(d);return this._editStacks.has(v)?this._editStacks.get(v).hasPastElements():!1}_onError(d,v){(0,f.onUnexpectedError)(d);for(const _ of v.strResources)this.removeElements(_);this._notificationService.error(d)}_acquireLocks(d){for(const v of d.editStacks)if(v.locked)throw new Error("Cannot acquire edit stack lock");for(const v of d.editStacks)v.locked=!0;return()=>{for(const v of d.editStacks)v.locked=!1}}_safeInvokeWithLocks(d,v,_,S,L){const I=this._acquireLocks(_);let T;try{T=v()}catch(N){return I(),S.dispose(),this._onError(N,d)}return T?T.then(()=>(I(),S.dispose(),L()),N=>(I(),S.dispose(),this._onError(N,d))):(I(),S.dispose(),L())}async _invokeWorkspacePrepare(d){if(typeof d.actual.prepareUndoRedo>"u")return k.Disposable.None;const v=d.actual.prepareUndoRedo();return typeof v>"u"?k.Disposable.None:v}_invokeResourcePrepare(d,v){if(d.actual.type!==1||typeof d.actual.prepareUndoRedo>"u")return v(k.Disposable.None);const _=d.actual.prepareUndoRedo();return _?(0,k.isDisposable)(_)?v(_):_.then(S=>v(S)):v(k.Disposable.None)}_getAffectedEditStacks(d){const v=[];for(const _ of d.strResources)v.push(this._editStacks.get(_)||a);return new r(v)}_tryToSplitAndUndo(d,v,_,S){if(v
Invalid subtraction between ${O.toString()} and ${R.toString()}`)),[];const H=L(A.text,W);return M.map(z=>{const j=(0,h.addPositions)((0,h.subtractPositions)(z,R),x),K=T.getValueInRange(s.Range.fromPositions(z,j)),U=(0,w.commonPrefixLength)(F,K),G=s.Range.fromPositions(z,z.delta(0,U));return new t.SingleTextEdit(G,H)})}function L(T,N){let A="";const O=(0,w.splitLinesIncludeSeparators)(T);for(let M=N.lineNumber-1;M<O.length;M++)A+=O[M].substring(M===N.lineNumber-1?N.column-1:0);return A}function I(T){const N=f.Permutation.createSortPermutation(T,(R,x)=>s.Range.compareRangesUsingStarts(R.range,x.range)),O=new t.TextEdit(N.apply(T)).getNewRanges();return N.inverse().apply(O).map(R=>R.getEndPosition())}}),define(ie[419],ne([1,0,15,19,10,7,2,12,24,113,333,114,27,14,60,62,332,150,18,78,20,261,215,263]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m,u,r,a,h,l,g){"use strict";var d;Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestModel=e.LineContext=void 0;class v{static shouldAutoTrigger(T){if(!T.hasModel())return!1;const N=T.getModel(),A=T.getPosition();N.tokenization.tokenizeIfCheap(A.lineNumber);const O=N.getWordAtPosition(A);return!(!O||O.endColumn!==A.column&&O.startColumn+1!==A.column||!isNaN(Number(O.word)))}constructor(T,N,A){this.leadingLineContent=T.getLineContent(N.lineNumber).substr(0,N.column-1),this.leadingWord=T.getWordUntilPosition(N),this.lineNumber=N.lineNumber,this.column=N.column,this.triggerOptions=A}}e.LineContext=v;function _(I,T,N){if(!T.getContextKeyValue(h.InlineCompletionContextKeys.inlineSuggestionVisible.key))return!0;const A=T.getContextKeyValue(h.InlineCompletionContextKeys.suppressSuggestions.key);return A!==void 0?!A:!I.getOption(62).suppressSuggestions}function S(I,T,N){if(!T.getContextKeyValue("inlineSuggestionVisible"))return!0;const A=T.getContextKeyValue(h.InlineCompletionContextKeys.suppressSuggestions.key);return A!==void 0?!A:!I.getOption(62).suppressSuggestions}let L=d=class{constructor(T,N,A,O,M,R,x,F,W){this._editor=T,this._editorWorkerService=N,this._clipboardService=A,this._telemetryService=O,this._logService=M,this._contextKeyService=R,this._configurationService=x,this._languageFeaturesService=F,this._envService=W,this._toDispose=new y.DisposableStore,this._triggerCharacterListener=new y.DisposableStore,this._triggerQuickSuggest=new f.TimeoutTimer,this._triggerState=void 0,this._completionDisposables=new y.DisposableStore,this._onDidCancel=new D.Emitter,this._onDidTrigger=new D.Emitter,this._onDidSuggest=new D.Emitter,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new w.Selection(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let H=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{H=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{H=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(z=>{H||this._onCursorChange(z)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!H&&this._triggerState!==void 0&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){(0,y.dispose)(this._triggerCharacterListener),(0,y.dispose)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(91)||!this._editor.hasModel()||!this._editor.getOption(121))return;const T=new Map;for(const A of this._languageFeaturesService.completion
.monaco-editor .ghost-text-decoration,
.monaco-editor .ghost-text-decoration-preview,
.monaco-editor .ghost-text {
font-family: ${Z};
}`)}));const te=P=>{var Z;return P.isUndoing?a.VersionIdChangeReason.Undo:P.isRedoing?a.VersionIdChangeReason.Redo:!((Z=this.model.get())===null||Z===void 0)&&Z.isAcceptingPartially?a.VersionIdChangeReason.AcceptWord:a.VersionIdChangeReason.Other};this._register(M.onDidChangeModelContent(P=>(0,w.transaction)(Z=>this.updateObservables(Z,te(P))))),this._register(M.onDidChangeCursorPosition(P=>(0,w.transaction)(Z=>{var re;this.updateObservables(Z,a.VersionIdChangeReason.Other),(P.reason===3||P.source==="api")&&((re=this.model.get())===null||re===void 0||re.stop(Z))}))),this._register(M.onDidType(()=>(0,w.transaction)(P=>{var Z;this.updateObservables(P,a.VersionIdChangeReason.Other),this._enabled.get()&&((Z=this.model.get())===null||Z===void 0||Z.trigger(P))}))),this._register(this._commandService.onDidExecuteCommand(P=>{new Set([s.CoreEditingCommands.Tab.id,s.CoreEditingCommands.DeleteLeft.id,s.CoreEditingCommands.DeleteRight.id,c.inlineSuggestCommitId,"acceptSelectedSuggestion"]).has(P.commandId)&&M.hasTextFocus()&&this._enabled.get()&&(0,w.transaction)(re=>{var ce;(ce=this.model.get())===null||ce===void 0||ce.trigger(re)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||M.getOption(62).keepOnBlur||r.InlineSuggestionHintsContentWidget.dropDownVisible||(0,w.transaction)(P=>{var Z;(Z=this.model.get())===null||Z===void 0||Z.stop(P)})})),this._register((0,w.autorun)(P=>{var Z;const re=(Z=this.model.read(P))===null||Z===void 0?void 0:Z.state.read(P);re?.suggestItem?re.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register((0,p.toDisposable)(()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}));const ee=this._register(new p.DisposableStore);let Y;this._register((0,w.autorunHandleChanges)({handleChange:(P,Z)=>(P.didChange(this._playAccessibilitySignal)&&(Y=void 0),!0)},async(P,Z)=>{this._playAccessibilitySignal.read(P);const re=this.model.read(P),ce=re?.state.read(P);if(!re||!ce||!ce.inlineCompletion){Y=void 0;return}if(ce.inlineCompletion.semanticId!==Y){ee.clear(),Y=ce.inlineCompletion.semanticId;const he=re.textModel.getLineContent(ce.primaryGhostText.lineNumber);await(0,E.timeout)(50,(0,D.cancelOnDispose)(ee)),await(0,w.waitForState)(this._suggestWidgetAdaptor.selectedItem,o.isUndefined,()=>!1,(0,D.cancelOnDispose)(ee)),await this._accessibilitySignalService.playSignal(d.AccessibilitySignal.inlineSuggestion),this.editor.getOption(8)&&this.provideScreenReaderUpdate(ce.primaryGhostText.renderForScreenReader(he))}})),this._register(new r.InlineCompletionsHintsWidget(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration(P=>{P.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(M){this._playAccessibilitySignal.trigger(M)}provideScreenReaderUpdate(M){const R=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),x=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let F;!R&&x&&this.editor.getOption(149)&&(F=(0,l.localize)(0,null,x.getAriaLabel())),F?(0,k.alert)(M+", "+F):(0,k.alert)(M)}updateObservables(M,R){var x,F,W;const H=this.editor.getModel();this._textModelVersionId.set((x=H?.getVersionId())!==null&&x!==void 0?x:-1,M,R),this._positions.set((W=(F=this.editor.getSelections())===null||F===void 0?void 0:F.map(z=>z.getPosition()))!==null&&W!==void 0?W:[new i.Position(1,1)],M)}shouldShowHoverAt(M){var R;const x=(R=this.model.get())===null||R===void 0?void 0:R.primaryGhostText.get();return x?x.parts.some(F=>M.containsPosition(new i.Position(x.lineNumber
`+Ve),me.mainWindow.confirm(Ke)}async prompt(Fe){var Ve,Ke;let Ge;if(this.doConfirm(Fe.message,Fe.detail)){const Je=[...(Ve=Fe.buttons)!==null&&Ve!==void 0?Ve:[]];Fe.cancelButton&&typeof Fe.cancelButton!="string"&&typeof Fe.cancelButton!="boolean"&&Je.push(Fe.cancelButton),Ge=await((Ke=Je[0])===null||Ke===void 0?void 0:Ke.run({checkboxChecked:!1}))}return{result:Ge}}async error(Fe,Ve){await this.prompt({type:b.default.Error,message:Fe,detail:Ve})}}class nt{info(Fe){return this.notify({severity:b.default.Info,message:Fe})}warn(Fe){return this.notify({severity:b.default.Warning,message:Fe})}error(Fe){return this.notify({severity:b.default.Error,message:Fe})}notify(Fe){switch(Fe.severity){case b.default.Error:console.error(Fe.message);break;case b.default.Warning:console.warn(Fe.message);break;default:console.log(Fe.message);break}return nt.NO_OP}prompt(Fe,Ve,Ke,Ge){return nt.NO_OP}status(Fe,Ve){return p.Disposable.None}}e.StandaloneNotificationService=nt,nt.NO_OP=new A.NoOpNotification;let at=class{constructor(Fe){this._onWillExecuteCommand=new D.Emitter,this._onDidExecuteCommand=new D.Emitter,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=Fe}executeCommand(Fe,...Ve){const Ke=r.CommandsRegistry.getCommand(Fe);if(!Ke)return Promise.reject(new Error(`command '${Fe}' not found`));try{this._onWillExecuteCommand.fire({commandId:Fe,args:Ve});const Ge=this._instantiationService.invokeFunction.apply(this._instantiationService,[Ke.handler,...Ve]);return this._onDidExecuteCommand.fire({commandId:Fe,args:Ve}),Promise.resolve(Ge)}catch(Ge){return Promise.reject(Ge)}}};e.StandaloneCommandService=at,e.StandaloneCommandService=at=Ie([ue(0,d.IInstantiationService)],at);let ft=class extends v.AbstractKeybindingService{constructor(Fe,Ve,Ke,Ge,it,Je){super(Fe,Ve,Ke,Ge,it),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const lt=dt=>{const yt=new p.DisposableStore;yt.add(k.addDisposableListener(dt,k.EventType.KEY_DOWN,Et=>{const Dt=new E.StandardKeyboardEvent(Et);this._dispatch(Dt,Dt.target)&&(Dt.preventDefault(),Dt.stopPropagation())})),yt.add(k.addDisposableListener(dt,k.EventType.KEY_UP,Et=>{const Dt=new E.StandardKeyboardEvent(Et);this._singleModifierDispatch(Dt,Dt.target)&&Dt.preventDefault()})),this._domNodeListeners.push(new tt(dt,yt))},st=dt=>{for(let yt=0;yt<this._domNodeListeners.length;yt++){const Et=this._domNodeListeners[yt];Et.domNode===dt&&(this._domNodeListeners.splice(yt,1),Et.dispose())}},rt=dt=>{dt.getOption(61)||lt(dt.getContainerDomNode())},ut=dt=>{dt.getOption(61)||st(dt.getContainerDomNode())};this._register(Je.onCodeEditorAdd(rt)),this._register(Je.onCodeEditorRemove(ut)),Je.listCodeEditors().forEach(rt);const ct=dt=>{lt(dt.getContainerDomNode())},Lt=dt=>{st(dt.getContainerDomNode())};this._register(Je.onDiffEditorAdd(ct)),this._register(Je.onDiffEditorRemove(Lt)),Je.listDiffEditors().forEach(ct)}addDynamicKeybinding(Fe,Ve,Ke,Ge){return(0,p.combinedDisposable)(r.CommandsRegistry.registerCommand(Fe,Ke),this.addDynamicKeybindings([{keybinding:Ve,command:Fe,when:Ge}]))}addDynamicKeybindings(Fe){const Ve=Fe.map(Ke=>{var Ge;return{keybinding:(0,y.decodeKeybinding)(Ke.keybinding,w.OS),command:(Ge=Ke.command)!==null&&Ge!==void 0?Ge:null,commandArgs:Ke.commandArgs,when:Ke.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this._dynamicKeybindings=this._dynamicKeybindings.concat(Ve),this.updateResolver(),(0,p.toDisposable)(()=>{for(let Ke=0;Ke<this._dynamicKeybindings.length;Ke++)if(this._dynamicKeybindings[Ke]===Ve[0]){this._dynamicKeybindings.splice(Ke,Ve.length),this.updateResolver();return}})}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const Fe=this._toNormalizedKeybindingItems(L.KeybindingsRegistry.getDefaultKeybindings(),!0),Ve=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new S.KeybindingResolver(Fe,Ve,Ke=>this._log(Ke))}return this._cachedResolver}_documentHasFocus(){return me.mainWindow.document.hasFocus()}_toNorm
`:`\r
`}};pt=Ie([ue(0,a.IConfigurationService)],pt);class ye{publicLog2(){}}class we{constructor(){const Fe=C.URI.from({scheme:we.SCHEME,authority:"model",path:"/"});this.workspace={id:R.STANDALONE_EDITOR_WORKSPACE_ID,folders:[new R.WorkspaceFolder({uri:Fe,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(Fe){return Fe&&Fe.scheme===we.SCHEME?this.workspace.folders[0]:null}}we.SCHEME="inmemory";function Me(Ye,Fe,Ve){if(!Fe||!(Ye instanceof ot))return;const Ke=[];Object.keys(Fe).forEach(Ge=>{(0,s.isEditorConfigurationKey)(Ge)&&Ke.push([`editor.${Ge}`,Fe[Ge]]),Ve&&(0,s.isDiffEditorConfigurationKey)(Ge)&&Ke.push([`diffEditor.${Ge}`,Fe[Ge]])}),Ke.length>0&&Ye.updateValues(Ke)}let Te=class{constructor(Fe){this._modelService=Fe}hasPreviewHandler(){return!1}async apply(Fe,Ve){const Ke=Array.isArray(Fe)?Fe:o.ResourceEdit.convert(Fe),Ge=new Map;for(const lt of Ke){if(!(lt instanceof o.ResourceTextEdit))throw new Error("bad edit - only text edits are supported");const st=this._modelService.getModel(lt.resource);if(!st)throw new Error("bad edit - model not found");if(typeof lt.versionId=="number"&&st.getVersionId()!==lt.versionId)throw new Error("bad state - model changed in the meantime");let rt=Ge.get(st);rt||(rt=[],Ge.set(st,rt)),rt.push(i.EditOperation.replaceMove(n.Range.lift(lt.textEdit.range),lt.textEdit.text))}let it=0,Je=0;for(const[lt,st]of Ge)lt.pushStackElement(),lt.pushEditOperations([],st,()=>[]),lt.pushStackElement(),Je+=1,it+=st.length;return{ariaSummary:f.format(F.StandaloneServicesNLS.bulkEditServiceSummary,it,Je),isApplied:it>0}}};Te=Ie([ue(0,c.IModelService)],Te);class Le{getUriLabel(Fe,Ve){return Fe.scheme==="file"?Fe.fsPath:Fe.path}getUriBasenameLabel(Fe){return(0,W.basename)(Fe)}}let Oe=class extends U.ContextViewService{constructor(Fe,Ve){super(Fe),this._codeEditorService=Ve}showContextView(Fe,Ve,Ke){if(!Ve){const Ge=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();Ge&&(Ve=Ge.getContainerDomNode())}return super.showContextView(Fe,Ve,Ke)}};Oe=Ie([ue(0,x.ILayoutService),ue(1,H.ICodeEditorService)],Oe);class Pe{constructor(){this._neverEmitter=new D.Emitter,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class ze extends G.LanguageService{constructor(){super()}}class je extends We.LogService{constructor(){super(new z.ConsoleLogger)}}let $e=class extends te.ContextMenuService{constructor(Fe,Ve,Ke,Ge,it,Je){super(Fe,Ve,Ke,Ge,it,Je),this.configure({blockMouse:!1})}};$e=Ie([ue(0,M.ITelemetryService),ue(1,A.INotificationService),ue(2,K.IContextViewService),ue(3,_.IKeybindingService),ue(4,q.IMenuService),ue(5,l.IContextKeyService)],$e);class Qe{async playSignal(Fe,Ve){}}(0,ee.registerSingleton)(z.ILogService,je,0),(0,ee.registerSingleton)(a.IConfigurationService,ot,0),(0,ee.registerSingleton)(u.ITextResourceConfigurationService,_t,0),(0,ee.registerSingleton)(u.ITextResourcePropertiesService,pt,0),(0,ee.registerSingleton)(R.IWorkspaceContextService,we,0),(0,ee.registerSingleton)(N.ILabelService,Le,0),(0,ee.registerSingleton)(M.ITelemetryService,ye,0),(0,ee.registerSingleton)(g.IDialogService,et,0),(0,ee.registerSingleton)(Ne.IEnvironmentService,Ze,0),(0,ee.registerSingleton)(A.INotificationService,nt,0),(0,ee.registerSingleton)(Ce.IMarkerService,Se.MarkerService,0),(0,ee.registerSingleton)(re.ILanguageService,ze,0),(0,ee.registerSingleton)(ae.IStandaloneThemeService,X.StandaloneThemeService,0),(0,ee.registerSingleton)(c.IModelService,pe.ModelService,0),(0,ee.registerSingleton)(he.IMarkerDecorationsService,ce.MarkerDecorationsService,0),(0,ee.registerSingleton)(l.IContextKeyService,se.ContextKeyService,0),(0,ee.registerSingleton)(O.IProgressService,Ue,0),(0,ee.registerSingleton)(O.IEditorProgressService,qe,0),(0,ee.registerSingleton)(Ee.IStorageService,Ee.InMemoryStorageService,0),(0,ee.registerSingleton)(P.IEditorWorkerService,Z.EditorWorkerService,0),(0,ee.registerSingleton)(o.IBulkEditService,Te,0),(0,ee.registerSingleton)(j.IWorkspaceTrustManagementService,Pe,0),(0,ee.registerSingleton)(m.ITextModelService,He,0),(0,ee.reg
`);let P=G;return Y!==-1&&(P=G.substring(0,Y)),j(K,G,U.createByFilepathOrFirstLine(ee||null,P),ee)}return j(K,G,U.createById(te),ee)}function j(K,U,G,te){return K.createModel(U,G,te)}}),define(ie[995],ne([1,0,52,2,12,22,356,16,36,837,38,160,256,192,28,43,34,85,171,42,53,232,814,994,286,149,29,25,14,32,104,61,944,517]),function(Q,e,f,k,E,D,y,p,w,b,C,o,s,i,t,n,c,m,u,r,a,h,l,g,d,v,_,S,L,I,T,N,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=O,e.onDidCreateEditor=M,e.onDidCreateDiffEditor=R,e.getEditors=x,e.getDiffEditors=F,e.createDiffEditor=W,e.createMultiFileDiffEditor=H,e.addCommand=z,e.addEditorAction=j,e.addKeybindingRule=K,e.addKeybindingRules=U,e.createModel=G,e.setModelLanguage=te,e.setModelMarkers=ee,e.removeAllMarkers=Y,e.getModelMarkers=P,e.onDidChangeMarkers=Z,e.getModel=re,e.getModels=ce,e.onDidCreateModel=he,e.onWillDisposeModel=pe,e.onDidChangeModelLanguage=ge,e.createWebWorker=X,e.colorizeElement=ae,e.colorize=oe,e.colorizeModelLine=B,e.tokenize=V,e.defineTheme=$,e.setTheme=J,e.remeasureFonts=se,e.registerCommand=de,e.registerLinkOpener=le,e.registerEditorOpener=fe,e.createMonacoEditorAPI=ve;function O(Ce,Se,_e){return d.StandaloneServices.initialize(_e||{}).createInstance(g.StandaloneEditor,Ce,Se)}function M(Ce){return d.StandaloneServices.get(w.ICodeEditorService).onCodeEditorAdd(_e=>{Ce(_e)})}function R(Ce){return d.StandaloneServices.get(w.ICodeEditorService).onDiffEditorAdd(_e=>{Ce(_e)})}function x(){return d.StandaloneServices.get(w.ICodeEditorService).listCodeEditors()}function F(){return d.StandaloneServices.get(w.ICodeEditorService).listDiffEditors()}function W(Ce,Se,_e){return d.StandaloneServices.initialize(_e||{}).createInstance(g.StandaloneDiffEditor2,Ce,Se)}function H(Ce,Se){const _e=d.StandaloneServices.initialize(Se||{});return new A.MultiDiffEditorWidget(Ce,{},_e)}function z(Ce){if(typeof Ce.id!="string"||typeof Ce.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return S.CommandsRegistry.registerCommand(Ce.id,Ce.run)}function j(Ce){if(typeof Ce.id!="string"||typeof Ce.label!="string"||typeof Ce.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const Se=L.ContextKeyExpr.deserialize(Ce.precondition),_e=(Ee,...Ae)=>p.EditorCommand.runEditorCommand(Ee,Ae,Se,(xe,We,Be)=>Promise.resolve(Ce.run(We,...Be))),ke=new k.DisposableStore;if(ke.add(S.CommandsRegistry.registerCommand(Ce.id,_e)),Ce.contextMenuGroupId){const Ee={command:{id:Ce.id,title:Ce.label},when:Se,group:Ce.contextMenuGroupId,order:Ce.contextMenuOrder||0};ke.add(_.MenuRegistry.appendMenuItem(_.MenuId.EditorContext,Ee))}if(Array.isArray(Ce.keybindings)){const Ee=d.StandaloneServices.get(I.IKeybindingService);if(!(Ee instanceof d.StandaloneKeybindingService))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const Ae=L.ContextKeyExpr.and(Se,L.ContextKeyExpr.deserialize(Ce.keybindingContext));ke.add(Ee.addDynamicKeybindings(Ce.keybindings.map(xe=>({keybinding:xe,command:Ce.id,when:Ae}))))}}return ke}function K(Ce){return U([Ce])}function U(Ce){const Se=d.StandaloneServices.get(I.IKeybindingService);return Se instanceof d.StandaloneKeybindingService?Se.addDynamicKeybindings(Ce.map(_e=>({keybinding:_e.keybinding,command:_e.command,commandArgs:_e.commandArgs,when:L.ContextKeyExpr.deserialize(_e.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),k.Disposable.None)}function G(Ce,Se,_e){const ke=d.StandaloneServices.get(n.ILanguageService),Ee=ke.getLanguageIdByMimeType(Se)||Se;return(0,g.createTextModel)(d.StandaloneServices.get(a.IModelService),ke,Ce,Ee,_e)}function te(Ce,Se){const _e=d.StandaloneServices.get(n.ILanguageService),ke=_e.getLanguageIdByMimeType(Se)||Se||m.PLAINTEXT_LANGUAGE_ID;Ce.setLanguage(_e.createById(ke))}function ee(Ce,Se,_e){Ce&&d.StandaloneServices.get(T.IMarkerService).changeOne(Se,Ce.uri,_e)}function Y(Ce){d.StandaloneServices.get(T.IMarkerService).ch
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
define("vs/basic-languages/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
"use strict";var moduleExports=(()=>{var y=Object.create;var g=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var a=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,s)=>(typeof require<"u"?require:r)[s]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var D=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var l=(e,r,s,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of q(r))!M.call(e,o)&&o!==s&&g(e,o,{get:()=>r[o],enumerable:!(n=x(r,o))||n.enumerable});return e},p=(e,r,s)=>(l(e,r,"default"),s&&l(s,r,"default")),c=(e,r,s)=>(s=e!=null?y(A(e)):{},l(r||!e||!e.__esModule?g(s,"default",{value:e,enumerable:!0}):s,e));var v=D((w,d)=>{var b=c(a("vs/editor/editor.api"));d.exports=b});var t={};p(t,c(v()));var f={},m={},u=class e{static getOrCreate(r){return m[r]||(m[r]=new e(r)),m[r]}constructor(r){this._languageId=r,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((s,n)=>{this._lazyLoadPromiseResolve=s,this._lazyLoadPromiseReject=n})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,f[this._languageId].loader().then(r=>this._lazyLoadPromiseResolve(r),r=>this._lazyLoadPromiseReject(r))),this._lazyLoadPromise}};function i(e){let r=e.id;f[r]=e,t.languages.register(e);let s=u.getOrCreate(r);t.languages.registerTokensProviderFactory(r,{create:async()=>(await s.load()).language}),t.languages.onLanguageEncountered(r,async()=>{let n=await s.load();t.languages.setLanguageConfiguration(r,n.conf)})}i({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/abap/abap"],e,r)})});i({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/apex/apex"],e,r)})});i({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/azcli/azcli"],e,r)})});i({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/bat/bat"],e,r)})});i({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/bicep/bicep"],e,r)})});i({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cameligo/cameligo"],e,r)})});i({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/clojure/clojure"],e,r)})});i({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/coffee/coffee"],e,r)})});i({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cpp/cpp"],e,r)})});i({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cpp/cpp"],e,r)})});i({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/csharp/csharp"],e,r)})});i({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/csp/csp"],e,r)})});i({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/css/css"],e,r)})});i({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/cypher/cypher"],e,r)})});i({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>new Promise((e,r)=>{a(["vs/basic-languages/dart/dart"],e,r)})});i({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>new Promise((e,r)=
return moduleExports;
});
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
define("vs/language/css/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
"use strict";var moduleExports=(()=>{var C=Object.create;var g=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var l=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,r)=>(typeof require<"u"?require:n)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var I=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),M=(e,n)=>{for(var r in n)g(e,r,{get:n[r],enumerable:!0})},s=(e,n,r,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of b(n))!h.call(e,t)&&t!==r&&g(e,t,{get:()=>n[t],enumerable:!(a=S(n,t))||a.enumerable});return e},y=(e,n,r)=>(s(e,n,"default"),r&&s(r,n,"default")),w=(e,n,r)=>(r=e!=null?C(x(e)):{},s(n||!e||!e.__esModule?g(r,"default",{value:e,enumerable:!0}):r,e)),P=e=>s(g({},"__esModule",{value:!0}),e);var v=I((k,D)=>{var O=w(l("vs/editor/editor.api"));D.exports=O});var R={};M(R,{cssDefaults:()=>p,lessDefaults:()=>f,scssDefaults:()=>c});var o={};y(o,w(v()));var i=class{constructor(n,r,a){this._onDidChange=new o.Emitter;this._languageId=n,this.setOptions(r),this.setModeConfiguration(a)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(n){this._options=n||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(n){this.setOptions(n)}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(this)}},d={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"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},u={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},p=new i("css",d,u),c=new i("scss",d,u),f=new i("less",d,u);o.languages.css={cssDefaults:p,lessDefaults:f,scssDefaults:c};function m(){return new Promise((e,n)=>{l(["vs/language/css/cssMode"],e,n)})}o.languages.onLanguage("less",()=>{m().then(e=>e.setupMode(f))});o.languages.onLanguage("scss",()=>{m().then(e=>e.setupMode(c))});o.languages.onLanguage("css",()=>{m().then(e=>e.setupMode(p))});return P(R);})();
return moduleExports;
});
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
define("vs/language/html/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
"use strict";var moduleExports=(()=>{var w=Object.create;var l=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var f=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,t)=>(typeof require<"u"?require:n)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var k=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),T=(e,n)=>{for(var t in n)l(e,t,{get:n[t],enumerable:!0})},d=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of H(n))!_.call(e,o)&&o!==t&&l(e,o,{get:()=>n[o],enumerable:!(r=R(n,o))||r.enumerable});return e},b=(e,n,t)=>(d(e,n,"default"),t&&d(t,n,"default")),v=(e,n,t)=>(t=e!=null?w(O(e)):{},d(n||!e||!e.__esModule?l(t,"default",{value:e,enumerable:!0}):t,e)),A=e=>d(l({},"__esModule",{value:!0}),e);var C=k((z,h)=>{var E=v(f("vs/editor/editor.api"));h.exports=E});var V={};T(V,{handlebarDefaults:()=>M,handlebarLanguageService:()=>m,htmlDefaults:()=>x,htmlLanguageService:()=>c,razorDefaults:()=>I,razorLanguageService:()=>y,registerHTMLLanguageService:()=>s});var a={};b(a,v(C()));var p=class{constructor(n,t,r){this._onDidChange=new a.Emitter;this._languageId=n,this.setOptions(t),this.setModeConfiguration(r)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(n){this._options=n||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(this)}},F={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},u={format:F,suggest:{},data:{useDefaultDataProvider:!0}};function g(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===i,documentFormattingEdits:e===i,documentRangeFormattingEdits:e===i}}var i="html",D="handlebars",L="razor",c=s(i,u,g(i)),x=c.defaults,m=s(D,u,g(D)),M=m.defaults,y=s(L,u,g(L)),I=y.defaults;a.languages.html={htmlDefaults:x,razorDefaults:I,handlebarDefaults:M,htmlLanguageService:c,handlebarLanguageService:m,razorLanguageService:y,registerHTMLLanguageService:s};function P(){return new Promise((e,n)=>{f(["vs/language/html/htmlMode"],e,n)})}function s(e,n=u,t=g(e)){let r=new p(e,n,t),o,S=a.languages.onLanguage(e,async()=>{o=(await P()).setupMode(r)});return{defaults:r,dispose(){S.dispose(),o?.dispose(),o=void 0}}}return A(V);})();
return moduleExports;
});
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
define("vs/language/json/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
"use strict";var moduleExports=(()=>{var y=Object.create;var i=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var s=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,o)=>(typeof require<"u"?require:n)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var O=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),v=(e,n)=>{for(var o in n)i(e,o,{get:n[o],enumerable:!0})},g=(e,n,o,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of h(n))!b.call(e,r)&&r!==o&&i(e,r,{get:()=>n[r],enumerable:!(a=f(n,r))||a.enumerable});return e};var m=(e,n,o)=>(o=e!=null?y(N(e)):{},g(n||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),x=e=>g(i({},"__esModule",{value:!0}),e);var u=O((J,c)=>{var A=m(s("vs/editor/editor.api"));c.exports=A});var C={};v(C,{getWorker:()=>S,jsonDefaults:()=>l});var t=m(u());var d=class{constructor(n,o,a){this._onDidChange=new t.Emitter;this._languageId=n,this.setDiagnosticsOptions(o),this.setModeConfiguration(a)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(n){this._diagnosticsOptions=n||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(n){this._modeConfiguration=n||Object.create(null),this._onDidChange.fire(this)}},T={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},D={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},l=new d("json",T,D),S=()=>p().then(e=>e.getWorker());t.languages.json={jsonDefaults:l,getWorker:S};function p(){return new Promise((e,n)=>{s(["vs/language/json/jsonMode"],e,n)})}t.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});t.languages.onLanguage("json",()=>{p().then(e=>e.setupMode(l))});return x(C);})();
return moduleExports;
});
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
define("vs/language/typescript/monaco.contribution", ["require","require","vs/editor/editor.api"],(require)=>{
"use strict";var moduleExports=(()=>{var N=Object.create;var d=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var c=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var w=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),A=(n,e)=>{for(var t in e)d(n,t,{get:e[t],enumerable:!0})},g=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of M(e))!F.call(n,r)&&r!==t&&d(n,r,{get:()=>e[r],enumerable:!(i=H(e,r))||i.enumerable});return n},D=(n,e,t)=>(g(n,e,"default"),t&&g(t,e,"default")),C=(n,e,t)=>(t=n!=null?N(R(n)):{},g(e||!n||!n.__esModule?d(t,"default",{value:n,enumerable:!0}):t,n)),W=n=>g(d({},"__esModule",{value:!0}),n);var _=w((B,E)=>{var V=C(c("vs/editor/editor.api"));E.exports=V});var T={};A(T,{JsxEmit:()=>f,ModuleKind:()=>b,ModuleResolutionKind:()=>O,NewLineKind:()=>y,ScriptTarget:()=>h,getJavaScriptWorker:()=>k,getTypeScriptWorker:()=>P,javascriptDefaults:()=>v,typescriptDefaults:()=>x,typescriptVersion:()=>I});var L="5.0.2";var l={};D(l,C(_()));var b=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))(b||{}),f=(a=>(a[a.None=0]="None",a[a.Preserve=1]="Preserve",a[a.React=2]="React",a[a.ReactNative=3]="ReactNative",a[a.ReactJSX=4]="ReactJSX",a[a.ReactJSXDev=5]="ReactJSXDev",a))(f||{}),y=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(y||{}),h=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(h||{}),O=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t))(O||{}),m=class{constructor(e,t,i,r,p){this._onDidChange=new l.Emitter;this._onDidExtraLibsChange=new l.Emitter;this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(r),this.setModeConfiguration(p),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(typeof t>"u"?i=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:i=t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[i]&&(r=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(r=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let p=this._extraLibs[i];p&&p.version===r&&(delete this._extraLibs[i],this._removedExtraLibs[i]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let i=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,r=t.content,p=1;this._removedExtraLibs[i]&&(p=this._removedExtraLibs[i]+1),this._extraLibs[i]={content:r,version:p}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnostic
return moduleExports;
});
define("vs/editor/editor.main", ["vs/editor/edcore.main","vs/basic-languages/monaco.contribution","vs/language/css/monaco.contribution","vs/language/html/monaco.contribution","vs/language/json/monaco.contribution","vs/language/typescript/monaco.contribution"], function(api) { return api; });
//# sourceMappingURL=../../../min-maps/vs/editor/editor.main.js.map