ruru
Version:
Grafast-flavoured GraphiQL distribution
1 lines • 245 kB
JavaScript
export const __webpack_esm_id__=1320;export const __webpack_esm_ids__=[1320];export const __webpack_esm_modules__={19031(e,t,n){n.r(t),n.d(t,{VSBuffer:()=>o,readUInt16LE:()=>a,readUInt32BE:()=>l,readUInt8:()=>c,writeUInt16LE:()=>h,writeUInt32BE:()=>d,writeUInt8:()=>u});var i=n(55003);const r="undefined"!=typeof Buffer;let s;new i.Lazy(()=>new Uint8Array(256));class o{static wrap(e){return r&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new o(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(0|e[t+0])>>>0|e[t+1]<<8>>>0}function h(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function l(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function d(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function c(e,t){return e[t]}function u(e,t,n){e[n]=t}},10492(e,t,n){n.r(t),n.d(t,{CursorColumns:()=>r});var i=n(60891);class r{static _nextVisibleColumn(e,t,n){return 9===e?r.nextRenderTabStop(t,n):i.isFullWidthCharacter(e)||i.isEmojiImprecise(e)?t+2:t+1}static visibleColumnFromColumn(e,t,n){const r=Math.min(t-1,e.length),s=e.substring(0,r),o=new i.GraphemeIterator(s);let a=0;for(;!o.eol();){const e=i.getNextCodePoint(s,r,o.offset);o.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,n)}return a}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const r=e.length,s=new i.GraphemeIterator(e);let o=0,a=1;for(;!s.eol();){const h=i.getNextCodePoint(e,r,s.offset);s.nextGraphemeLength();const l=this._nextVisibleColumn(h,o,n),d=s.offset+1;if(l>=t)return l-t<t-o?d:a;o=l,a=d}return r+1}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},41422(e,t,n){n.r(t),n.d(t,{deprecatedEditorActiveIndentGuides:()=>I,deprecatedEditorIndentGuides:()=>L,editorActiveIndentGuide1:()=>B,editorActiveIndentGuide2:()=>O,editorActiveIndentGuide3:()=>N,editorActiveIndentGuide4:()=>R,editorActiveIndentGuide5:()=>A,editorActiveIndentGuide6:()=>D,editorActiveLineNumber:()=>z,editorBracketHighlightingForeground1:()=>te,editorBracketHighlightingForeground2:()=>ne,editorBracketHighlightingForeground3:()=>ie,editorBracketHighlightingForeground4:()=>re,editorBracketHighlightingForeground5:()=>se,editorBracketHighlightingForeground6:()=>oe,editorBracketHighlightingUnexpectedBracketForeground:()=>ae,editorBracketMatchBackground:()=>U,editorBracketMatchBorder:()=>W,editorBracketPairGuideActiveBackground1:()=>fe,editorBracketPairGuideActiveBackground2:()=>_e,editorBracketPairGuideActiveBackground3:()=>pe,editorBracketPairGuideActiveBackground4:()=>me,editorBracketPairGuideActiveBackground5:()=>Ce,editorBracketPairGuideActiveBackground6:()=>ke,editorBracketPairGuideBackground1:()=>he,editorBracketPairGuideBackground2:()=>le,editorBracketPairGuideBackground3:()=>de,editorBracketPairGuideBackground4:()=>ce,editorBracketPairGuideBackground5:()=>ue,editorBracketPairGuideBackground6:()=>ge,editorCodeLensForeground:()=>F,editorCursorBackground:()=>f,editorCursorForeground:()=>g,editorDimmedLineNumber:()=>P,editorGutter:()=>V,editorIndentGuide1:()=>T,editorIndentGuide2:()=>S,editorIndentGuide3:()=>v,editorIndentGuide4:()=>x,editorIndentGuide5:()=>E,editorIndentGuide6:()=>w,editorLineHighlight:()=>a,editorLineHighlightBorder:()=>h,editorLineNumbers:()=>b,editorMultiCursorPrimaryBackground:()=>p,editorMultiCursorPrimaryForeground:()=>_,editorMultiCursorSecondaryBackground:()=>C,editorMultiCursorSecondaryForeground:()=>m,editorOverviewRulerBackground:()=>H,editorOverviewRulerBorder:()=>G,editorRangeHighlight:()=>l,editorRangeHighlightBorder:()=>d,editorRuler:()=>y,editorSymbolHighlight:()=>c,editorSymbolHighlightBorder:()=>u,editorUnicodeHighlightBackground:()=>Le,editorUnicodeHighlightBorder:()=>be,editorUnnecessaryCodeBorder:()=>j,editorUnnecessaryCodeOpacity:()=>q,editorWhitespaces:()=>k,ghostTextBackground:()=>K,ghostTextBorder:()=>$,ghostTextForeground:()=>Z,overviewRulerError:()=>Y,overviewRulerInfo:()=>ee,overviewRulerRangeHighlight:()=>Q,overviewRulerWarning:()=>J});var i=n(12003),r=n(63962),s=n(53698),o=n(19729);const a=(0,s.registerColor)("editor.lineHighlightBackground",null,i.localize("lineHighlight","Background color for the highlight of line at the cursor position.")),h=(0,s.registerColor)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.contrastBorder},i.localize("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=(0,s.registerColor)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},i.localize("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),d=(0,s.registerColor)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.activeContrastBorder,hcLight:s.activeContrastBorder},i.localize("rangeHighlightBorder","Background color of the border around highlighted ranges.")),c=(0,s.registerColor)("editor.symbolHighlightBackground",{dark:s.editorFindMatchHighlight,light:s.editorFindMatchHighlight,hcDark:null,hcLight:null},i.localize("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,s.registerColor)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.activeContrastBorder,hcLight:s.activeContrastBorder},i.localize("symbolHighlightBorder","Background color of the border around highlighted symbols.")),g=(0,s.registerColor)("editorCursor.foreground",{dark:"#AEAFAD",light:r.Color.black,hcDark:r.Color.white,hcLight:"#0F4A85"},i.localize("caret","Color of the editor cursor.")),f=(0,s.registerColor)("editorCursor.background",null,i.localize("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),_=(0,s.registerColor)("editorMultiCursor.primary.foreground",g,i.localize("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),p=(0,s.registerColor)("editorMultiCursor.primary.background",f,i.localize("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,s.registerColor)("editorMultiCursor.secondary.foreground",g,i.localize("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),C=(0,s.registerColor)("editorMultiCursor.secondary.background",f,i.localize("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),k=(0,s.registerColor)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},i.localize("editorWhitespaces","Color of whitespace characters in the editor.")),b=(0,s.registerColor)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:r.Color.white,hcLight:"#292929"},i.localize("editorLineNumbers","Color of editor line numbers.")),L=(0,s.registerColor)("editorIndentGuide.background",k,i.localize("editorIndentGuides","Color of the editor indentation guides."),!1,i.localize("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),I=(0,s.registerColor)("editorIndentGuide.activeBackground",k,i.localize("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,i.localize("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),T=(0,s.registerColor)("editorIndentGuide.background1",L,i.localize("editorIndentGuides1","Color of the editor indentation guides (1).")),S=(0,s.registerColor)("editorIndentGuide.background2","#00000000",i.localize("editorIndentGuides2","Color of the editor indentation guides (2).")),v=(0,s.registerColor)("editorIndentGuide.background3","#00000000",i.localize("editorIndentGuides3","Color of the editor indentation guides (3).")),x=(0,s.registerColor)("editorIndentGuide.background4","#00000000",i.localize("editorIndentGuides4","Color of the editor indentation guides (4).")),E=(0,s.registerColor)("editorIndentGuide.background5","#00000000",i.localize("editorIndentGuides5","Color of the editor indentation guides (5).")),w=(0,s.registerColor)("editorIndentGuide.background6","#00000000",i.localize("editorIndentGuides6","Color of the editor indentation guides (6).")),B=(0,s.registerColor)("editorIndentGuide.activeBackground1",I,i.localize("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),O=(0,s.registerColor)("editorIndentGuide.activeBackground2","#00000000",i.localize("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),N=(0,s.registerColor)("editorIndentGuide.activeBackground3","#00000000",i.localize("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),R=(0,s.registerColor)("editorIndentGuide.activeBackground4","#00000000",i.localize("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),A=(0,s.registerColor)("editorIndentGuide.activeBackground5","#00000000",i.localize("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),D=(0,s.registerColor)("editorIndentGuide.activeBackground6","#00000000",i.localize("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),M=(0,s.registerColor)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.activeContrastBorder,hcLight:s.activeContrastBorder},i.localize("editorActiveLineNumber","Color of editor active line number"),!1,i.localize("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),z=(0,s.registerColor)("editorLineNumber.activeForeground",M,i.localize("editorActiveLineNumber","Color of editor active line number")),P=(0,s.registerColor)("editorLineNumber.dimmedForeground",null,i.localize("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),y=(0,s.registerColor)("editorRuler.foreground",{dark:"#5A5A5A",light:r.Color.lightgrey,hcDark:r.Color.white,hcLight:"#292929"},i.localize("editorRuler","Color of the editor rulers.")),F=(0,s.registerColor)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},i.localize("editorCodeLensForeground","Foreground color of editor CodeLens")),U=(0,s.registerColor)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},i.localize("editorBracketMatchBackground","Background color behind matching brackets")),W=(0,s.registerColor)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.contrastBorder,hcLight:s.contrastBorder},i.localize("editorBracketMatchBorder","Color for matching brackets boxes")),G=(0,s.registerColor)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},i.localize("editorOverviewRulerBorder","Color of the overview ruler border.")),H=(0,s.registerColor)("editorOverviewRuler.background",null,i.localize("editorOverviewRulerBackground","Background color of the editor overview ruler.")),V=(0,s.registerColor)("editorGutter.background",s.editorBackground,i.localize("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),j=(0,s.registerColor)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:r.Color.fromHex("#fff").transparent(.8),hcLight:s.contrastBorder},i.localize("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),q=(0,s.registerColor)("editorUnnecessaryCode.opacity",{dark:r.Color.fromHex("#000a"),light:r.Color.fromHex("#0007"),hcDark:null,hcLight:null},i.localize("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),$=(0,s.registerColor)("editorGhostText.border",{dark:null,light:null,hcDark:r.Color.fromHex("#fff").transparent(.8),hcLight:r.Color.fromHex("#292929").transparent(.8)},i.localize("editorGhostTextBorder","Border color of ghost text in the editor.")),Z=(0,s.registerColor)("editorGhostText.foreground",{dark:r.Color.fromHex("#ffffff56"),light:r.Color.fromHex("#0007"),hcDark:null,hcLight:null},i.localize("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),K=(0,s.registerColor)("editorGhostText.background",null,i.localize("editorGhostTextBackground","Background color of the ghost text in the editor.")),X=new r.Color(new r.RGBA(0,122,204,.6)),Q=(0,s.registerColor)("editorOverviewRuler.rangeHighlightForeground",X,i.localize("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Y=(0,s.registerColor)("editorOverviewRuler.errorForeground",{dark:new r.Color(new r.RGBA(255,18,18,.7)),light:new r.Color(new r.RGBA(255,18,18,.7)),hcDark:new r.Color(new r.RGBA(255,50,50,1)),hcLight:"#B5200D"},i.localize("overviewRuleError","Overview ruler marker color for errors.")),J=(0,s.registerColor)("editorOverviewRuler.warningForeground",{dark:s.editorWarningForeground,light:s.editorWarningForeground,hcDark:s.editorWarningBorder,hcLight:s.editorWarningBorder},i.localize("overviewRuleWarning","Overview ruler marker color for warnings.")),ee=(0,s.registerColor)("editorOverviewRuler.infoForeground",{dark:s.editorInfoForeground,light:s.editorInfoForeground,hcDark:s.editorInfoBorder,hcLight:s.editorInfoBorder},i.localize("overviewRuleInfo","Overview ruler marker color for infos.")),te=(0,s.registerColor)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},i.localize("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),ne=(0,s.registerColor)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},i.localize("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),ie=(0,s.registerColor)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},i.localize("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),re=(0,s.registerColor)("editorBracketHighlight.foreground4","#00000000",i.localize("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),se=(0,s.registerColor)("editorBracketHighlight.foreground5","#00000000",i.localize("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),oe=(0,s.registerColor)("editorBracketHighlight.foreground6","#00000000",i.localize("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),ae=(0,s.registerColor)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new r.Color(new r.RGBA(255,18,18,.8)),light:new r.Color(new r.RGBA(255,18,18,.8)),hcDark:"new Color(new RGBA(255, 50, 50, 1))",hcLight:"#B5200D"},i.localize("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),he=(0,s.registerColor)("editorBracketPairGuide.background1","#00000000",i.localize("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),le=(0,s.registerColor)("editorBracketPairGuide.background2","#00000000",i.localize("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),de=(0,s.registerColor)("editorBracketPairGuide.background3","#00000000",i.localize("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),ce=(0,s.registerColor)("editorBracketPairGuide.background4","#00000000",i.localize("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),ue=(0,s.registerColor)("editorBracketPairGuide.background5","#00000000",i.localize("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ge=(0,s.registerColor)("editorBracketPairGuide.background6","#00000000",i.localize("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),fe=(0,s.registerColor)("editorBracketPairGuide.activeBackground1","#00000000",i.localize("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),_e=(0,s.registerColor)("editorBracketPairGuide.activeBackground2","#00000000",i.localize("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),pe=(0,s.registerColor)("editorBracketPairGuide.activeBackground3","#00000000",i.localize("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),me=(0,s.registerColor)("editorBracketPairGuide.activeBackground4","#00000000",i.localize("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),Ce=(0,s.registerColor)("editorBracketPairGuide.activeBackground5","#00000000",i.localize("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),ke=(0,s.registerColor)("editorBracketPairGuide.activeBackground6","#00000000",i.localize("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),be=(0,s.registerColor)("editorUnicodeHighlight.border",s.editorWarningForeground,i.localize("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),Le=(0,s.registerColor)("editorUnicodeHighlight.background",s.editorWarningBackground,i.localize("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,o.registerThemingParticipant)((e,t)=>{const n=e.getColor(s.editorBackground),i=e.getColor(a),r=i&&!i.isTransparent()?i:n;r&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${r}; }`)})},92802(e,t,n){n.r(t),n.d(t,{normalizeIndentation:()=>s});var i=n(60891),r=n(10492);function s(e,t,n){let s=i.firstNonWhitespaceIndex(e);return-1===s&&(s=e.length),function(e,t,n){let i=0;for(let n=0;n<e.length;n++)"\t"===e.charAt(n)?i=r.CursorColumns.nextIndentTabStop(i,t):i++;let s="";if(!n){const e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)s+="\t"}for(let e=0;e<i;e++)s+=" ";return s}(e.substring(0,s),t,n)+e.substring(s)}},15801(e,t,n){n.r(t),n.d(t,{StringBuilder:()=>u,decodeUTF16LE:()=>c,getPlatformTextDecoder:()=>d});var i=n(60891),r=n(69958),s=n(19031);let o,a,h;function l(){return o||(o=new TextDecoder("UTF-16LE")),o}function d(){return h||(h=r.isLittleEndian()?l():(a||(a=new TextDecoder("UTF-16BE")),a)),h}function c(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?function(e,t,n){const i=[];let r=0;for(let o=0;o<n;o++){const n=s.readUInt16LE(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}(e,t,n):l().decode(i)}class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return d().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||i.isHighSurrogate(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)}}},5870(e,t,n){n.r(t),n.d(t,{TextChange:()=>o,compressConsecutiveTextChanges:()=>a});var i=n(19031),r=n(15801);function s(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class o{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${s(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${s(this.oldText)}")`:`(replace@${this.oldPosition} "${s(this.oldText)}" with "${s(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;i.writeUInt32BE(e,r,n),n+=4;for(let s=0;s<r;s++)i.writeUInt16LE(e,t.charCodeAt(s),n),n+=2;return n}static _readString(e,t){const n=i.readUInt32BE(e,t);return t+=4,(0,r.decodeUTF16LE)(e,t,n)}writeSize(){return 8+o._writeStringSize(this.oldText)+o._writeStringSize(this.newText)}write(e,t){return i.writeUInt32BE(e,this.oldPosition,t),t+=4,i.writeUInt32BE(e,this.newPosition,t),t+=4,t=o._writeString(e,this.oldText,t),o._writeString(e,this.newText,t)}static read(e,t,n){const r=i.readUInt32BE(e,t);t+=4;const s=i.readUInt32BE(e,t);t+=4;const a=o._readString(e,t);t+=o._writeStringSize(a);const h=o._readString(e,t);return t+=o._writeStringSize(h),n.push(new o(r,a,s,h)),t}}function a(e,t){return null===e||0===e.length?t:new h(e,t).compress()}class h{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=h._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=h._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=h._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=h._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new o(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=h._merge(this._result);return h._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=h._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=h._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new o(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new o(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new o(e.oldPosition,e.oldText,e.newPosition,n),new o(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new o(e.oldPosition,n,e.newPosition,e.newText),new o(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;const t=[];let n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new o(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;const t=[];let n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}},33099(e,t,n){n.r(t),n.d(t,{EDITOR_MODEL_DEFAULTS:()=>i});const i={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},32125(e,t,n){var i;n.r(t),n.d(t,{AutoClosingPairs:()=>s,IndentAction:()=>i,StandardAutoClosingPairConditional:()=>r}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(i||(i={}));class r{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;const n=e.findTokenIndexAtOffset(t-2),i=e.getStandardTokenType(n);return this.isOK(i)}_findNeutralCharacterInRange(e,t){for(let n=e;n<=t;n++){const e=String.fromCharCode(n);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class s{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)o(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),o(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),o(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),o(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&o(this.autoClosingPairsCloseSingleChar,t.close,t)}}function o(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}},53439(e,t,n){n.d(t,{ILanguageConfigurationService:()=>O,LanguageConfigurationChangeEvent:()=>y,LanguageConfigurationRegistry:()=>F,LanguageConfigurationService:()=>N,LanguageConfigurationServiceChangeEvent:()=>B,ResolvedLanguageConfiguration:()=>U,getIndentationAtPosition:()=>D}),n.r(t);var i=n(22573),r=n(32293),s=n(60891),o=n(58561),a=n(32125);class h{static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t"}static{this.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t"}constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new a.StandardAutoClosingPairConditional(e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new a.StandardAutoClosingPairConditional({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.StandardAutoClosingPairConditional({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:h.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:h.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}var l=n(6995),d=n(94457),c=n(24979);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return(0,l.distinct)(e)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if((0,d.ignoreBracketsInToken)(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,n-1)+e,o=c.BracketsUtils.findPrevBracketInRange(r,1,s,0,s.length);if(!o)return null;const a=s.substring(o.startColumn-1,o.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const h=t.getActualLineContentBefore(o.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class f{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var _=n(73226);class p{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{const t=p._createOpenBracketRegExp(e[0]),n=p._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let e=0,r=this._regExpRules.length;e<r;e++){const r=this._regExpRules[e];if([{reg:r.beforeText,text:n},{reg:r.afterText,text:i},{reg:r.previousLineText,text:t}].every(e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text))))return r.action}if(e>=2&&n.length>0&&i.length>0)for(let e=0,t=this._brackets.length;e<t;e++){const t=this._brackets[e];if(t.openRegExp.test(n)&&t.closeRegExp.test(i))return{indentAction:a.IndentAction.IndentOutdent}}if(e>=2&&n.length>0)for(let e=0,t=this._brackets.length;e<t;e++)if(this._brackets[e].openRegExp.test(n))return{indentAction:a.IndentAction.Indent};return null}static _createOpenBracketRegExp(e){let t=s.escapeRegExpCharacters(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",p._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=s.escapeRegExpCharacters(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,p._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(e){return(0,_.onUnexpectedError)(e),null}}}var m=n(35184),C=n(64602),k=n(49471),b=n(17531),L=n(85838),I=n(97747);class T{constructor(e,t){this.languageId=e;const n=t.brackets?S(t.brackets):[],i=new I.CachedFunction(e=>{const t=new Set;return{info:new x(this,e,t),closing:t}}),r=new I.CachedFunction(e=>{const t=new Set,n=new Set;return{info:new E(this,e,t,n),opening:t,openingColorized:n}});for(const[e,t]of n){const n=i.get(e),s=r.get(t);n.closing.add(s.info),s.opening.add(n.info)}const s=t.colorizedBracketPairs?S(t.colorizedBracketPairs):n.filter(e=>!("<"===e[0]&&">"===e[1]));for(const[e,t]of s){const n=i.get(e),s=r.get(t);n.closing.add(s.info),s.openingColorized.add(n.info),s.opening.add(n.info)}this._openingBrackets=new Map([...i.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...r.cachedValues].map(([e,t])=>[e,t.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,c.createBracketOrRegExp)(t,e)}}function S(e){return e.filter(([e,t])=>""!==e&&""!==t)}class v{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class x extends v{constructor(e,t,n){super(e,t),this.openedBrackets=n,this.isOpeningBracket=!0}}class E extends v{constructor(e,t,n,i){super(e,t),this.openingBrackets=n,this.openingColorizedBrackets=i,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var w=function(e,t){return function(n,i){t(n,i,e)}};class B{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const O=(0,m.createDecorator)("languageConfigurationService");let N=class extends r.Disposable{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new F),this.onDidChangeEmitter=this._register(new i.Emitter),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(R));this._register(this.configurationService.onDidChangeConfiguration(e=>{const t=e.change.keys.some(e=>n.has(e)),i=e.change.overrides.filter(([e,t])=>t.some(e=>n.has(e))).map(([e])=>e);if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new B(void 0));else for(const e of i)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new B(e)))})),this._register(this._registry.onDidChange(e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new B(e.languageId))}))}register(e,t,n){return this._registry.register(e,t,n)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,n,i){let r=t.getLanguageConfiguration(e);if(!r){if(!i.isRegisteredLanguageId(e))return new U(e,{});r=new U(e,{})}const s=function(e,t){const n=t.getValue(R.brackets,{overrideIdentifier:e}),i=t.getValue(R.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:A(n),colorizedBracketPairs:A(i)}}(r.languageId,n),o=z([r.underlyingConfig,s]);return new U(r.languageId,o)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};N=function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}([w(0,C.IConfigurationService),w(1,k.ILanguageService)],N);const R={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function A(e){if(Array.isArray(e))return e.map(e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]}).filter(e=>!!e)}function D(e,t,n){const i=e.getLineContent(t);let r=s.getLeadingWhitespace(i);return r.length>n-1&&(r=r.substring(0,n-1)),r}class M{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new P(e,t,++this._order);return this._entries.push(n),this._resolved=null,(0,r.toDisposable)(()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}})}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new U(this.languageId,e))}return this._resolved}_resolve(){return 0===this._entries.length?null:(this._entries.sort(P.cmp),z(this._entries.map(e=>e.configuration)))}}function z(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const n of e)t={comments:n.comments||t.comments,brackets:n.brackets||t.brackets,wordPattern:n.wordPattern||t.wordPattern,indentationRules:n.indentationRules||t.indentationRules,onEnterRules:n.onEnterRules||t.onEnterRules,autoClosingPairs:n.autoClosingPairs||t.autoClosingPairs,surroundingPairs:n.surroundingPairs||t.surroundingPairs,autoCloseBefore:n.autoCloseBefore||t.autoCloseBefore,folding:n.folding||t.folding,colorizedBracketPairs:n.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:n.__electricCharacterSupport||t.__electricCharacterSupport};return t}class P{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class y{constructor(e){this.languageId=e}}class F extends r.Disposable{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new i.Emitter),this.onDidChange=this._onDidChange.event,this._register(this.register(L.PLAINTEXT_LANGUAGE_ID,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,n=0){let i=this._entries.get(e);i||(i=new M(e),this._entries.set(e,i));const s=i.register(t,n);return this._onDidChange.fire(new y(e)),(0,r.toDisposable)(()=>{s.dispose(),this._onDidChange.fire(new y(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class U{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new p(this.underlyingConfig):null,this.comments=U._handleComments(this.underlyingConfig),this.characterPair=new h(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||o.DEFAULT_WORD_REGEXP,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new f(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new T(e,this.underlyingConfig)}getWordDefinition(){return(0,o.ensureValidWordDefinition)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new c.RichEditBrackets(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}getAutoClosingPairs(){return new a.AutoClosingPairs(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){const[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}(0,b.registerSingleton)(O,N,1)},37229(e,t,n){n.r(t),n.d(t,{NullState:()=>r,nullTokenize:()=>s,nullTokenizeEncoded:()=>o});var i=n(51753);const r=new class{clone(){return this}equals(e){return this===e}};function s(e,t){return new i.TokenizationResult([new i.Token(0,"",e)],t)}function o(e,t){const n=new Uint32Array(2);return n[0]=0,n[1]=(32768|e|2<<24)>>>0,new i.EncodedTokenizationResult(n,null===t?r:t)}},94457(e,t,n){function i(e,t){const n=e.getCount(),i=e.findTokenIndexAtOffset(t),s=e.getLanguageId(i);let o=i;for(;o+1<n&&e.getLanguageId(o+1)===s;)o++;let a=i;for(;a>0&&e.getLanguageId(a-1)===s;)a--;return new r(e,s,a,o+1,e.getStartOffset(a),e.getEndOffset(o))}n.r(t),n.d(t,{ScopedLineTokens:()=>r,createScopedLineTokens:()=>i,ignoreBracketsInToken:()=>s});class r{constructor(e,t,n,i,r,s){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=s,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}function s(e){return!!(3&e)}},24979(e,t,n){n.r(t),n.d(t,{BracketsUtils:()=>f,RichEditBracket:()=>o,RichEditBrackets:()=>a,createBracketOrRegExp:()=>u});var i=n(60891),r=n(15801),s=n(81304);class o{constructor(e,t,n,i,r,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=s,this._openSet=o._toSet(this.open),this._closeSet=o._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const n=function(e){const t=e.length;e=e.map(e=>[e[0].toLowerCase(),e[1].toLowerCase()]);const n=[];for(let e=0;e<t;e++)n[e]=e;const i=(e,t)=>{const[n,i]=e,[r,s]=t;return n===r||n===s||i===r||i===s},r=(e,i)=>{const r=Math.min(e,i),s=Math.max(e,i);for(let e=0;e<t;e++)n[e]===s&&(n[e]=r)};for(let s=0;s<t;s++){const o=e[s];for(let a=s+1;a<t;a++)i(o,e[a])&&r(n[s],n[a])}const s=[];for(let i=0;i<t;i++){const r=[],o=[];for(let s=0;s<t;s++)if(n[s]===i){const[t,n]=e[s];r.push(t),o.push(n)}r.length>0&&s.push({open:r,close:o})}return s}(t);this.brackets=n.map((t,i)=>new o(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let e=0,t=r.length;e<t;e++)h(r[e],n,i,r);return r=d(r),r.sort(l),r.reverse(),u(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let e=0,t=r.length;e<t;e++)h(r[e],n,i,r);return r=d(r),r.sort(l),r.reverse(),u(r.map(g))}(t.open,t.close,n,i))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=d(t),u(t)}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=d(t),u(t.map(g))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const e of this.brackets){for(const t of e.open)this.textIsBracket[t]=e,this.textIsOpenBracket[t]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,t.length);for(const t of e.close)this.textIsBracket[t]=e,this.textIsOpenBracket[t]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,t.length)}}}function h(e,t,n,i){for(let r=0,s=t.length;r<s;r++){if(r===n)continue;const s=t[r];for(const t of s.open)t.indexOf(e)>=0&&i.push(t);for(const t of s.close)t.indexOf(e)>=0&&i.push(t)}}function l(e,t){return e.length-t.length}function d(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function c(e){const t=/^[\w ]+$/.test(e);return e=i.escapeRegExpCharacters(e),t?`\\b${e}\\b`:e}function u(e,t){const n=`(${e.map(c).join(")|(")})`;return i.createRegExp(n,!0,t)}const g=function(){let e=null,t=null;return function(n){return e!==n&&(e=n,t=function(e){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return r.getPlatformTextDecoder().decode(t)}(e)),t}}();class f{static _findPrevBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const o=n.length-(r.index||0),a=r[0].length,h=i+o;return new s.Range(t,h-a+1,t,h+1)}static findPrevBracketInRange(e,t,n,i,r){const s=g(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){const r=n.match(e);if(!r)return null;const o=r.index||0,a=r[0].length;if(0===a)return null;const h=i+o;return new s.Range(t,h+1,t,h+1+a)}static findNextBracketInRange(e,t,n,i,r){const s=n.substring(i,r);return this.findNextBracketInText(e,t,s,i)}}},26610(e,t,n){n.r(t),n.d(t,{BracketAstNode:()=>m,InvalidBracketAstNode:()=>C,ListAstNode:()=>l,PairAstNode:()=>h,TextAstNode:()=>p});var i=n(73226),r=n(10492),s=n(87440),o=n(969);class a{get length(){return this._length}constructor(e){this._length=e}}class h extends a{static create(e,t,n){let i=e.length;return t&&(i=(0,s.lengthAdd)(i,t.length)),n&&(i=(0,s.lengthAdd)(i,n.length)),new h(i,e,t,n,t?t.missingOpeningBracketIds:o.SmallImmutableSet.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,n,i,r){super(e),this.openingBracket=t,this.child=n,this.closingBracket=i,this.missingOpeningBracketIds=r}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new h(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,s.lengthAdd)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class l extends a{static create23(e,t,n,i=!1){let r=e.length,o=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(r=(0,s.lengthAdd)(r,t.length),o=o.merge(t.missingOpeningBracketIds),n){if(e.listHeight!==n.listHeight)throw new Error("Invalid list heights");r=(0,s.lengthAdd)(r,n.length),o=o.merge(n.missingOpeningBracketIds)}return i?new c(r,e.listHeight+1,e,t,n,o):new d(r,e.listHeight+1,e,t,n,o)}static getEmpty(){return new g(s.lengthZero,0,[],o.SmallImmutableSet.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,n){super(e),this.listHeight=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),n=4===t.kind?t.toMutable():t;return t!==n&&this.setChild(e-1,n),n}makeFirstElementMutable(){if(this.throwIfImmutable(),0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new i.BugIndicatingError;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,n=this.getChild(0).missingOpeningBracketIds;for(let i=1;i<e;i++){const e=this.getChild(i);t=(0,s.lengthAdd)(t,e.length),n=n.merge(e.missingOpeningBracketIds)}this._length=t,this._missingOpeningBracketIds=n,this.cachedMinIndentation=-1}computeMinIndentation(e,t){if(-1!==this.cachedMinIndentation)return this.cachedMinIndentation;let n=Number.MAX_SAFE_INTEGER,i=e;for(let e=0;e<this.childrenLength;e++){const r=this.getChild(e);r&&(n=Math.min(n,r.computeMinIndentation(i,t)),i=(0,s.lengthAdd)(i,r.length))}return this.cachedMinIndentation=n,n}}class d extends l{get childrenLength(){return null!==this._item3?3:2}getChild(e){switch(e){case 0:return this._item1;case 1:return this._item2;case