@rsdoctor/client 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/resource/js/{index.62094508.js → index.fc9559d0.js} +2 -2
  3. package/dist/resource/js/monaco-1.7ad7764f.js +369 -0
  4. package/dist/resource/js/{monaco-9.34b51cf9.js → monaco-10.4db28e1a.js} +1 -1
  5. package/dist/resource/js/monaco-11.18edf242.js +25 -0
  6. package/dist/resource/js/monaco-12.f2868e03.js +5 -0
  7. package/dist/resource/js/monaco-13.88108488.js +1 -0
  8. package/dist/resource/js/{monaco-13.c39a81c1.js → monaco-14.9ed23e83.js} +1 -1
  9. package/dist/resource/js/{monaco-1.7b4f9f8c.js → monaco-2.6895e134.js} +1 -1
  10. package/dist/resource/js/monaco-3.51c02ad7.js +31 -0
  11. package/dist/resource/js/monaco-4.2525ec7c.js +31 -0
  12. package/dist/resource/js/{monaco-4.12cd3f32.js → monaco-5.5bc856bc.js} +1 -1
  13. package/dist/resource/js/monaco-6.6e712e08.js +1 -0
  14. package/dist/resource/js/monaco-7.1fa8c3af.js +1 -0
  15. package/dist/resource/js/monaco-8.dcf3e8dc.js +38 -0
  16. package/dist/resource/js/{monaco-8.fa1080e5.js → monaco-9.7c59b09b.js} +1 -1
  17. package/package.json +3 -3
  18. package/dist/resource/js/monaco-10.3718b786.js +0 -25
  19. package/dist/resource/js/monaco-11.2ffe6be1.js +0 -369
  20. package/dist/resource/js/monaco-12.d0039040.js +0 -1
  21. package/dist/resource/js/monaco-14.ab3cfa3a.js +0 -31
  22. package/dist/resource/js/monaco-2.deeec9f1.js +0 -4
  23. package/dist/resource/js/monaco-3.09ebbb5b.js +0 -31
  24. package/dist/resource/js/monaco-5.59c23100.js +0 -2
  25. package/dist/resource/js/monaco-6.e7bfde98.js +0 -1
  26. package/dist/resource/js/monaco-7.020d48ca.js +0 -38
@@ -0,0 +1,31 @@
1
+ (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["786"],{94861:function(e,t,i){"use strict";i.d(t,{q:function(){return r}});var s=i("9737"),n=i("72740"),o=i("777");class r{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null==t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=s.R3(e,s.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",s){!e&&(e=""),s&&(e=r.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&o.fS(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){let e=[],t=0;for(let i of this.highlights){if(i.end===i.start)continue;if(t<i.start){let o=this.text.substring(t,i.start);e.push(s.$("span",void 0,...this.supportIcons?(0,n.T)(o):[o])),t=i.end}let o=this.text.substring(i.start,i.end),r=s.$("span.highlight",void 0,...this.supportIcons?(0,n.T)(o):[o]);i.extraClasses&&r.classList.add(...i.extraClasses),e.push(r),t=i.end}if(t<this.text.length){let i=this.text.substring(t);e.push(s.$("span",void 0,...this.supportIcons?(0,n.T)(i):[i]))}s.mc(this.domNode,...e),this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(e,t){let i=0,s=0;return e.replace(/\r\n|\r|\n/g,(e,n)=>{for(let o of(s="\r\n"===e?-1:0,n+=i,t))!(o.end<=n)&&(o.start>=n&&(o.start+=s),o.end>=n&&(o.end+=s));return i+=s,"\u23CE"})}}},47185:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var s=i("95832"),n=i("71628"),o=i("35271"),r=i("16904");i("78419");let a={inputActiveOptionBorder:o.Il.fromHex("#007ACC00"),inputActiveOptionForeground:o.Il.fromHex("#FFFFFF"),inputActiveOptionBackground:o.Il.fromHex("#0E639C50")};class l extends s.${constructor(e){super(),this._onChange=this._register(new r.Q5),this.onChange=this._onChange.event,this._onKeyDown=this._register(new r.Q5),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},a),e),this._checked=this._opts.isChecked;let t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...n.dT.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...t),!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,e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,e=>{if(10===e.keyCode||3===e.keyCode){this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),e.stopPropagation();return}this._onKeyDown.fire(e)})}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},88980:function(e,t,i){"use strict";var s,n;i.d(t,{H_:function(){return d},Vd:function(){return p},gx:function(){return _},kL:function(){return s}});class o{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let r=new o,a=new o,l=new o,d=Array(230),c={},h=[],u=Object.create(null),g=Object.create(null),p=[],m=[];for(let e=0;e<=193;e++)p[e]=-1;for(let e=0;e<=127;e++)m[e]=-1;function _(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){let e=[],t=[];for(let i of[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[0,1,1,"Hyper",0,"",0,"","",""],[0,1,2,"Super",0,"",0,"","",""],[0,1,3,"Fn",0,"",0,"","",""],[0,1,4,"FnLock",0,"",0,"","",""],[0,1,5,"Suspend",0,"",0,"","",""],[0,1,6,"Resume",0,"",0,"","",""],[0,1,7,"Turbo",0,"",0,"","",""],[0,1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[0,1,9,"WakeUp",0,"",0,"","",""],[31,0,10,"KeyA",31,"A",65,"VK_A","",""],[32,0,11,"KeyB",32,"B",66,"VK_B","",""],[33,0,12,"KeyC",33,"C",67,"VK_C","",""],[34,0,13,"KeyD",34,"D",68,"VK_D","",""],[35,0,14,"KeyE",35,"E",69,"VK_E","",""],[36,0,15,"KeyF",36,"F",70,"VK_F","",""],[37,0,16,"KeyG",37,"G",71,"VK_G","",""],[38,0,17,"KeyH",38,"H",72,"VK_H","",""],[39,0,18,"KeyI",39,"I",73,"VK_I","",""],[40,0,19,"KeyJ",40,"J",74,"VK_J","",""],[41,0,20,"KeyK",41,"K",75,"VK_K","",""],[42,0,21,"KeyL",42,"L",76,"VK_L","",""],[43,0,22,"KeyM",43,"M",77,"VK_M","",""],[44,0,23,"KeyN",44,"N",78,"VK_N","",""],[45,0,24,"KeyO",45,"O",79,"VK_O","",""],[46,0,25,"KeyP",46,"P",80,"VK_P","",""],[47,0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[48,0,27,"KeyR",48,"R",82,"VK_R","",""],[49,0,28,"KeyS",49,"S",83,"VK_S","",""],[50,0,29,"KeyT",50,"T",84,"VK_T","",""],[51,0,30,"KeyU",51,"U",85,"VK_U","",""],[52,0,31,"KeyV",52,"V",86,"VK_V","",""],[53,0,32,"KeyW",53,"W",87,"VK_W","",""],[54,0,33,"KeyX",54,"X",88,"VK_X","",""],[55,0,34,"KeyY",55,"Y",89,"VK_Y","",""],[56,0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[22,0,36,"Digit1",22,"1",49,"VK_1","",""],[23,0,37,"Digit2",23,"2",50,"VK_2","",""],[24,0,38,"Digit3",24,"3",51,"VK_3","",""],[25,0,39,"Digit4",25,"4",52,"VK_4","",""],[26,0,40,"Digit5",26,"5",53,"VK_5","",""],[27,0,41,"Digit6",27,"6",54,"VK_6","",""],[28,0,42,"Digit7",28,"7",55,"VK_7","",""],[29,0,43,"Digit8",29,"8",56,"VK_8","",""],[30,0,44,"Digit9",30,"9",57,"VK_9","",""],[21,0,45,"Digit0",21,"0",48,"VK_0","",""],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[2,1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[10,1,50,"Space",10,"Space",32,"VK_SPACE","",""],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,"",0,"","",""],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[59,1,64,"F1",59,"F1",112,"VK_F1","",""],[60,1,65,"F2",60,"F2",113,"VK_F2","",""],[61,1,66,"F3",61,"F3",114,"VK_F3","",""],[62,1,67,"F4",62,"F4",115,"VK_F4","",""],[63,1,68,"F5",63,"F5",116,"VK_F5","",""],[64,1,69,"F6",64,"F6",117,"VK_F6","",""],[65,1,70,"F7",65,"F7",118,"VK_F7","",""],[66,1,71,"F8",66,"F8",119,"VK_F8","",""],[67,1,72,"F9",67,"F9",120,"VK_F9","",""],[68,1,73,"F10",68,"F10",121,"VK_F10","",""],[69,1,74,"F11",69,"F11",122,"VK_F11","",""],[70,1,75,"F12",70,"F12",123,"VK_F12","",""],[0,1,76,"PrintScreen",0,"",0,"","",""],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL","",""],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[14,1,80,"Home",14,"Home",36,"VK_HOME","",""],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[13,1,83,"End",13,"End",35,"VK_END","",""],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK","",""],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE","",""],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD","",""],[3,1,94,"NumpadEnter",3,"",0,"","",""],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1","",""],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2","",""],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3","",""],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4","",""],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5","",""],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6","",""],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7","",""],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8","",""],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9","",""],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0","",""],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL","",""],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102","",""],[58,1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[0,1,108,"Power",0,"",0,"","",""],[0,1,109,"NumpadEqual",0,"",0,"","",""],[71,1,110,"F13",71,"F13",124,"VK_F13","",""],[72,1,111,"F14",72,"F14",125,"VK_F14","",""],[73,1,112,"F15",73,"F15",126,"VK_F15","",""],[74,1,113,"F16",74,"F16",127,"VK_F16","",""],[75,1,114,"F17",75,"F17",128,"VK_F17","",""],[76,1,115,"F18",76,"F18",129,"VK_F18","",""],[77,1,116,"F19",77,"F19",130,"VK_F19","",""],[0,1,117,"F20",0,"",0,"VK_F20","",""],[0,1,118,"F21",0,"",0,"VK_F21","",""],[0,1,119,"F22",0,"",0,"VK_F22","",""],[0,1,120,"F23",0,"",0,"VK_F23","",""],[0,1,121,"F24",0,"",0,"VK_F24","",""],[0,1,122,"Open",0,"",0,"","",""],[0,1,123,"Help",0,"",0,"","",""],[0,1,124,"Select",0,"",0,"","",""],[0,1,125,"Again",0,"",0,"","",""],[0,1,126,"Undo",0,"",0,"","",""],[0,1,127,"Cut",0,"",0,"","",""],[0,1,128,"Copy",0,"",0,"","",""],[0,1,129,"Paste",0,"",0,"","",""],[0,1,130,"Find",0,"",0,"","",""],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR","",""],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1","",""],[0,1,136,"KanaMode",0,"",0,"","",""],[0,0,137,"IntlYen",0,"",0,"","",""],[0,1,138,"Convert",0,"",0,"","",""],[0,1,139,"NonConvert",0,"",0,"","",""],[0,1,140,"Lang1",0,"",0,"","",""],[0,1,141,"Lang2",0,"",0,"","",""],[0,1,142,"Lang3",0,"",0,"","",""],[0,1,143,"Lang4",0,"",0,"","",""],[0,1,144,"Lang5",0,"",0,"","",""],[0,1,145,"Abort",0,"",0,"","",""],[0,1,146,"Props",0,"",0,"","",""],[0,1,147,"NumpadParenLeft",0,"",0,"","",""],[0,1,148,"NumpadParenRight",0,"",0,"","",""],[0,1,149,"NumpadBackspace",0,"",0,"","",""],[0,1,150,"NumpadMemoryStore",0,"",0,"","",""],[0,1,151,"NumpadMemoryRecall",0,"",0,"","",""],[0,1,152,"NumpadMemoryClear",0,"",0,"","",""],[0,1,153,"NumpadMemoryAdd",0,"",0,"","",""],[0,1,154,"NumpadMemorySubtract",0,"",0,"","",""],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR","",""],[0,1,156,"NumpadClearEntry",0,"",0,"","",""],[5,1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[4,1,0,"",4,"Shift",16,"VK_SHIFT","",""],[6,1,0,"",6,"Alt",18,"VK_MENU","",""],[57,1,0,"",57,"Meta",0,"VK_COMMAND","",""],[5,1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[4,1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[6,1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[57,1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[5,1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[4,1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[6,1,163,"AltRight",6,"",0,"VK_RMENU","",""],[57,1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[0,1,165,"BrightnessUp",0,"",0,"","",""],[0,1,166,"BrightnessDown",0,"",0,"","",""],[0,1,167,"MediaPlay",0,"",0,"","",""],[0,1,168,"MediaRecord",0,"",0,"","",""],[0,1,169,"MediaFastForward",0,"",0,"","",""],[0,1,170,"MediaRewind",0,"",0,"","",""],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP","",""],[0,1,174,"Eject",0,"",0,"","",""],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[0,1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[0,1,180,"SelectTask",0,"",0,"","",""],[0,1,181,"LaunchScreenSaver",0,"",0,"","",""],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME","",""],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK","",""],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[0,1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[0,1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[0,1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[0,1,189,"ZoomToggle",0,"",0,"","",""],[0,1,190,"MailReply",0,"",0,"","",""],[0,1,191,"MailForward",0,"",0,"","",""],[0,1,192,"MailSend",0,"",0,"","",""],[109,1,0,"",109,"KeyInComposition",229,"","",""],[111,1,0,"",111,"ABNT_C2",194,"VK_ABNT_C2","",""],[91,1,0,"",91,"OEM_8",223,"VK_OEM_8","",""],[0,1,0,"",0,"",0,"VK_KANA","",""],[0,1,0,"",0,"",0,"VK_HANGUL","",""],[0,1,0,"",0,"",0,"VK_JUNJA","",""],[0,1,0,"",0,"",0,"VK_FINAL","",""],[0,1,0,"",0,"",0,"VK_HANJA","",""],[0,1,0,"",0,"",0,"VK_KANJI","",""],[0,1,0,"",0,"",0,"VK_CONVERT","",""],[0,1,0,"",0,"",0,"VK_NONCONVERT","",""],[0,1,0,"",0,"",0,"VK_ACCEPT","",""],[0,1,0,"",0,"",0,"VK_MODECHANGE","",""],[0,1,0,"",0,"",0,"VK_SELECT","",""],[0,1,0,"",0,"",0,"VK_PRINT","",""],[0,1,0,"",0,"",0,"VK_EXECUTE","",""],[0,1,0,"",0,"",0,"VK_SNAPSHOT","",""],[0,1,0,"",0,"",0,"VK_HELP","",""],[0,1,0,"",0,"",0,"VK_APPS","",""],[0,1,0,"",0,"",0,"VK_PROCESSKEY","",""],[0,1,0,"",0,"",0,"VK_PACKET","",""],[0,1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[0,1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[0,1,0,"",0,"",0,"VK_ATTN","",""],[0,1,0,"",0,"",0,"VK_CRSEL","",""],[0,1,0,"",0,"",0,"VK_EXSEL","",""],[0,1,0,"",0,"",0,"VK_EREOF","",""],[0,1,0,"",0,"",0,"VK_PLAY","",""],[0,1,0,"",0,"",0,"VK_ZOOM","",""],[0,1,0,"",0,"",0,"VK_NONAME","",""],[0,1,0,"",0,"",0,"VK_PA1","",""],[0,1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[s,n,o,_,f,b,y,C,v,S]=i;if(!t[o]&&(t[o]=!0,h[o]=_,u[_]=o,g[_.toLowerCase()]=o,n&&(p[o]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(m[f]=o))),!e[f]){if(e[f]=!0,!b)throw Error(`String representation missing for key code ${f} around scan code ${_}`);r.define(f,b),a.define(f,v||b),l.define(f,S||v||b)}y&&(d[y]=f),C&&(c[C]=f)}m[3]=46}(),(n=s||(s={})).toString=function(e){return r.keyCodeToStr(e)},n.fromString=function(e){return r.strToKeyCode(e)},n.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},n.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},n.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},n.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return r.keyCodeToStr(e)}},10109:function(e,t,i){"use strict";i.d(t,{BQ:function(){return l},QC:function(){return r},X_:function(){return a},f1:function(){return d},gm:function(){return n}});var s=i("61111");function n(e,t){if(0===e)return null;let i=(65535&e)>>>0,s=(4294901760&e)>>>16;return 0!==s?new a([o(i,t),o(s,t)]):new a([o(i,t)])}function o(e,t){let i=!!(2048&e),s=!!(256&e),n=2===t?s:i,o=2===t?i:s;return new r(n,!!(1024&e),!!(512&e),o,255&e)}class r{constructor(e,t,i,s,n){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyCode=n}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new a([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,s.b1)("parts");this.parts=e}}class l{constructor(e,t,i,s,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=s,this.keyLabel=n,this.keyAriaLabel=o}}class d{}},35262:function(e,t,i){"use strict";i.d(t,{D:function(){return o}});var s=i("22000"),n=i("7875");function o(e,t=n.ED){return(0,s.oP)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null)},5019:function(e,t,i){"use strict";i.d(t,{R:function(){return s}});let s=function(){let e;if("object"==typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);"object"==typeof crypto&&"function"==typeof crypto.getRandomValues?e=crypto.getRandomValues.bind(crypto):e=function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};let t=new Uint8Array(16),i=[];for(let e=0;e<256;e++)i.push(e.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let s=0,n="";return n+=i[t[s++]]+i[t[s++]]+i[t[s++]]+i[t[s++]]+"-"+i[t[s++]]+i[t[s++]]+"-"+i[t[s++]]+i[t[s++]]+"-"+i[t[s++]]+i[t[s++]]+"-"+i[t[s++]]+i[t[s++]]+i[t[s++]]+i[t[s++]]+i[t[s++]]+i[t[s++]]}}()},93017:function(e,t,i){"use strict";i.d(t,{O:function(){return R}});var s=i("9737"),n=i("85763"),o=i("62880"),r=i("42072"),a=i("47975"),l=i("72740"),d=i("13876"),c=i("31453"),h=i("3868"),u=i("67518"),g=i("862"),p=i("71628"),m=i("16904"),_=i("19527"),f=i("7875"),b=i("96608"),y=i("44138"),C=i("86329"),v=i("43130");i("39910");var S=i("8339"),w=i("15015"),k=i("63368"),N=function(e,t,i,s){return new(i||(i=Promise))(function(n,o){function r(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})};let L=s.$,x={iconClass:p.lA.quickInputBack.classNames,tooltip:(0,S.NC)("quickInput.back","Back"),handle:-1};class E extends _.JT{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=E.noPromptMessage,this._severity=b.Z.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new m.Q5),this.onDidHideEmitter=this._register(new m.Q5),this.onDisposeEmitter=this._register(new m.Q5),this.visibleDisposables=this._register(new _.SL),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){let t=this._ignoreFocusOut!==e&&!f.gn;this._ignoreFocusOut=e&&!f.gn,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){!this.visible&&(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=v.Jq.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;let e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&"&nbsp;"!==this.ui.title.innerHTML&&(this.ui.title.innerText="\xa0");let t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new u._F,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();let e=this.buttons.filter(e=>e===x);this.ui.leftActionBar.push(e.map((e,t)=>{let i=new c.aU(`id-${t}`,"",e.iconClass||(0,C.Q)(e.iconPath),!0,()=>N(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(e)}));return i.tooltip=e.tooltip||"",i}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();let t=this.buttons.filter(e=>e!==x);this.ui.rightActionBar.push(t.map((e,t)=>{let i=new c.aU(`id-${t}`,"",e.iconClass||(0,C.Q)(e.iconPath),!0,()=>N(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(e)}));return i.tooltip=e.tooltip||"",i}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);let i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,s.mc(this.ui.message,...(0,l.T)(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,S.NC)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==b.Z.Ignore){let t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}E.noPromptMessage=(0,S.NC)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class I extends E{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new m.Q5),this.onWillAcceptEmitter=this._register(new m.Q5),this.onDidAcceptEmitter=this._register(new m.Q5),this.onDidCustomEmitter=this._register(new m.Q5),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?v.jG.NONE:v.jG.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new m.Q5),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new m.Q5),this.onDidTriggerItemButtonEmitter=this._register(new m.Q5),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,!t&&this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?v.X5:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&!this.canSelectMany&&this.ui.list.focus(k.og.First)}show(){!this.visible&&(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{!this.autoFocusOnList&&this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(k.og.Next),this.canSelectMany&&this.ui.list.domFocus(),s.zB.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(k.og.Previous):this.ui.list.focus(k.og.Last),this.canSelectMany&&this.ui.list.domFocus(),s.zB.stop(e,!0);break;case 12:this.ui.list.focus(k.og.NextPage),this.canSelectMany&&this.ui.list.domFocus(),s.zB.stop(e,!0);break;case 11:this.ui.list.focus(k.og.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),s.zB.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(k.og.First),s.zB.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(k.og.Last),s.zB.stop(e,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?!this.ui.list.getCheckedElements().length&&(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{if(!this.activeItemsUpdated)!(this.activeItemsToConfirm!==this._activeItems&&(0,h.fS)(e,this._activeItems,(e,t)=>e===t))&&(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}!(this.selectedItemsToConfirm!==this._selectedItems&&(0,h.fS)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&1===t.button))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{if(!!this.canSelectMany)!(this.selectedItemsToConfirm!==this._selectedItems&&(0,h.fS)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),!t&&this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return s.nm(this.ui.container,s.tw.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;let t=new n.y(e),i=t.keyCode;this._quickNavigate.keybindings.some(e=>{let[s,n]=e.getParts();if(n)return!1;if(s.shiftKey&&4===i)return!t.ctrlKey&&!t.altKey&&!t.metaKey&&!0;return!!s.altKey&&6===i||!!s.ctrlKey&&5===i||!!s.metaKey&&57===i||!1})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);let i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let s=this.ariaLabel;if(!s&&(s=this.placeholder||I.DEFAULT_ARIA_LABEL,this.title&&(s+=` - ${this.title}`)),this.ui.inputBox.ariaLabel!==s&&(this.ui.inputBox.ariaLabel=s),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case v.jG.NONE:this._itemActivation=v.jG.FIRST;break;case v.jG.SECOND:this.ui.list.focus(k.og.Second),this._itemActivation=v.jG.FIRST;break;case v.jG.LAST:this.ui.list.focus(k.og.Last),this._itemActivation=v.jG.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),!i.inputBox&&(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(k.og.First)),this.keepScrollPosition&&(this.scrollTop=e)}}I.DEFAULT_ARIA_LABEL=(0,S.NC)("quickInputBox.ariaLabel","Type to narrow down results.");class R extends _.JT{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new m.Q5),this.onDidCustomEmitter=this._register(new m.Q5),this.onDidTriggerButtonEmitter=this._register(new m.Q5),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new m.Q5),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new m.Q5),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){let e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(s.nm(window,s.tw.KEY_DOWN,e,!0)),this._register(s.nm(window,s.tw.KEY_UP,e,!0)),this._register(s.nm(window,s.tw.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;let e=s.R3(this.parentElement,L(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";let t=s.dS(e),i=s.R3(e,L(".quick-input-titlebar")),l=this._register(new o.o(i));l.domNode.classList.add("quick-input-left-action-bar");let c=s.R3(i,L(".quick-input-title")),h=this._register(new o.o(i));h.domNode.classList.add("quick-input-right-action-bar");let u=s.R3(e,L(".quick-input-description")),g=s.R3(e,L(".quick-input-header")),p=s.R3(g,L("input.quick-input-check-all"));p.type="checkbox",p.setAttribute("aria-label",(0,S.NC)("quickInput.checkAll","Toggle all checkboxes")),this._register(s.mu(p,s.tw.CHANGE,e=>{let t=p.checked;F.setAllVisibleChecked(t)})),this._register(s.nm(p,s.tw.CLICK,e=>{(e.x||e.y)&&b.setFocus()}));let m=s.R3(g,L(".quick-input-description")),_=s.R3(g,L(".quick-input-and-message")),f=s.R3(_,L(".quick-input-filter")),b=this._register(new w.z(f));b.setAttribute("aria-describedby",`${this.idPrefix}message`);let y=s.R3(f,L(".quick-input-visible-count"));y.setAttribute("aria-live","polite"),y.setAttribute("aria-atomic","true");let C=new a.Z(y,{countFormat:(0,S.NC)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),N=s.R3(f,L(".quick-input-count"));N.setAttribute("aria-live","polite");let x=new a.Z(N,{countFormat:(0,S.NC)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),E=s.R3(g,L(".quick-input-action")),R=new r.z(E);R.label=(0,S.NC)("ok","OK"),this._register(R.onDidClick(e=>{this.onDidAcceptEmitter.fire()}));let D=s.R3(g,L(".quick-input-action")),A=new r.z(D);A.label=(0,S.NC)("custom","Custom"),this._register(A.onDidClick(e=>{this.onDidCustomEmitter.fire()}));let T=s.R3(_,L(`#${this.idPrefix}message.quick-input-message`)),F=this._register(new k.xY(e,this.idPrefix+"list",this.options));this._register(F.onChangedAllVisibleChecked(e=>{p.checked=e})),this._register(F.onChangedVisibleCount(e=>{C.setCount(e)})),this._register(F.onChangedCheckedCount(e=>{x.setCount(e)})),this._register(F.onLeave(()=>{setTimeout(()=>{b.setFocus(),this.controller instanceof I&&this.controller.canSelectMany&&F.clearFocus()},0)})),this._register(F.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));let M=new d.k(e);M.getContainer().classList.add("quick-input-progress");let O=s.go(e);return this._register(O),this._register(s.nm(e,s.tw.FOCUS,e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0},!0)),this._register(O.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(v.Jq.Blur),this.previousFocusElement=void 0})),this._register(s.nm(e,s.tw.FOCUS,e=>{b.setFocus()})),this._register(s.nm(e,s.tw.KEY_DOWN,t=>{let i=new n.y(t);switch(i.keyCode){case 3:s.zB.stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:s.zB.stop(t,!0),this.hide(v.Jq.Gesture);break;case 2:if(!i.altKey&&!i.ctrlKey&&!i.metaKey){let n=[".action-label.codicon"];e.classList.contains("show-checkboxes")?n.push("input"):n.push("input[type=text]"),this.getUI().list.isDisplayed()&&n.push(".monaco-list");let o=e.querySelectorAll(n.join(", "));i.shiftKey&&i.target===o[0]?(s.zB.stop(t,!0),o[o.length-1].focus()):!i.shiftKey&&i.target===o[o.length-1]&&(s.zB.stop(t,!0),o[0].focus())}}})),this.ui={container:e,styleSheet:t,leftActionBar:l,titleBar:i,title:c,description1:u,description2:m,rightActionBar:h,checkAll:p,filterContainer:f,inputBox:b,visibleCountContainer:y,visibleCount:C,countContainer:N,count:x,okContainer:E,ok:R,message:T,customButtonContainer:D,customButton:A,list:F,progressBar:M,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},i=g.T.None){return new Promise((s,n)=>{let o,r=e=>{var i;r=s,null===(i=t.onKeyMods)||void 0===i||i.call(t,a.keyMods),s(e)};if(i.isCancellationRequested){r(void 0);return}let a=this.createQuickPick(),l=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{let e=a.activeItems[0];e&&(r(e),a.hide())}}),a.onDidChangeActive(e=>{let i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)}),a.onDidChangeSelection(e=>{if(!a.canSelectMany){let t=e[0];t&&(r(t),a.hide())}}),a.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{let t=a.items.indexOf(e.item);if(-1!==t){let e=a.items.slice(),i=e.splice(t,1),s=a.activeItems.filter(e=>e!==i[0]),n=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=e,s&&(a.activeItems=s),a.keepScrollPosition=n}}}))),a.onDidChangeValue(e=>{o&&!e&&(1!==a.activeItems.length||a.activeItems[0]!==o)&&(a.activeItems=[o])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{(0,_.B9)(l),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{o=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),o&&(a.activeItems=[o])}),a.show(),Promise.resolve(e).then(void 0,e=>{n(e),a.hide()})})}createQuickPick(){return new I(this.getUI())}show(e){let t=this.getUI();this.onShowEmitter.fire();let i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(b.Z.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),s.mc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";let n=this.options.backKeybindingLabel();x.tooltip=n?(0,S.NC)("quickInput.backWithKeybinding","Back ({0})",n):(0,S.NC)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){let t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){let t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){for(let t of(this.enabled=e,this.getUI().leftActionBar.viewItems))t.getAction().enabled=e;for(let t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;let i=this.controller;if(i){let s=!(null===(t=this.ui)||void 0===t?void 0:t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=(0,y.f6)(e.parentElement);(null==e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;let e=this.ui.container.style,t=Math.min(.62*this.dimension.width,R.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:s,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=s?`1px solid ${s}`:"",this.ui.container.style.boxShadow=n?`0 0 8px 2px ${n}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);let o=[];this.styles.list.pickerGroupBorder&&o.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&o.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(o.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&o.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&o.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&o.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&o.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&o.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),o.push("}"));let r=o.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}}R.MAX_WIDTH=600},81943:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return s},language:function(){return n}});var s={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}},30527:function(e,t,i){"use strict";(0,i("54606").H)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"28814"))})},73428:function(e,t,i){"use strict";(0,i("54606").H)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"33791"))})},19964:function(e,t,i){"use strict";(0,i("54606").H)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"10288"))})},89586:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return s},language:function(){return n}});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[["non-sealed","keyword.non-sealed"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}},73490:function(e,t,i){"use strict";(0,i("54606").H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"89218"))})},84917:function(e,t,i){"use strict";(0,i("54606").H)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"26542"))})},39278:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return s},language:function(){return n}});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:RegExp("^\\s*#region\\b"),end:RegExp("^\\s*#endregion\\b")}}},n={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}},7682:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return s},language:function(){return n}});var s={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},n={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}},37711:function(e,t,i){"use strict";i.d(t,{j:function(){return o}});var s=i("81099"),n=i("44138");function o(e,t,i){return new r(e,t,i)}class r extends s.Q8{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return!this._foreignProxy&&(this._foreignProxy=this._getProxy().then(e=>{let t=this._foreignModuleHost?n.$E(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;let i=(t,i)=>e.fmr(t,i),s=(e,t)=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let e of t)n[e]=s(e,i);return n})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}},31382:function(e,t,i){"use strict";i.d(t,{E:function(){return d}});var s=i("9737"),n=i("70758"),o=i("42401"),r=i("71956"),a=i("39703"),l=i("97085");class d extends r.E{constructor(e,t,i,l){super(e);let d=this._context.configuration.options,c=d.get(94),h=d.get(69),u=d.get(36),g=d.get(97),p={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,a.m6)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:c.vertical,horizontal:c.horizontal,verticalHasArrows:c.verticalHasArrows,horizontalHasArrows:c.horizontalHasArrows,verticalScrollbarSize:c.verticalScrollbarSize,verticalSliderSize:c.verticalSliderSize,horizontalScrollbarSize:c.horizontalScrollbarSize,horizontalSliderSize:c.horizontalSliderSize,handleMouseWheel:c.handleMouseWheel,alwaysConsumeMouseWheel:c.alwaysConsumeMouseWheel,arrowSize:c.arrowSize,mouseWheelScrollSensitivity:h,fastScrollSensitivity:u,scrollPredominantAxis:g,scrollByPage:c.scrollByPage};this.scrollbar=this._register(new o.$Z(t.domNode,p,this._context.viewLayout.getScrollable())),r.K.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=(0,n.X)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();let m=(e,t,i)=>{let s={};if(t){let t=e.scrollTop;t&&(s.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){let t=e.scrollLeft;t&&(s.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(s,1)};this._register(s.nm(i.domNode,"scroll",e=>m(i.domNode,!0,!0))),this._register(s.nm(t.domNode,"scroll",e=>m(t.domNode,!0,!1))),this._register(s.nm(l.domNode,"scroll",e=>m(l.domNode,!0,!1))),this._register(s.nm(this.scrollbarDomNode.domNode,"scroll",e=>m(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){let e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(67).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}onConfigurationChanged(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){let e=this._context.configuration.options,t=e.get(94),i=e.get(69),s=e.get(36),n=e.get(97),o={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:s,scrollPredominantAxis:n};this.scrollbar.updateOptions(o)}return e.hasChanged(133)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,a.m6)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}(0,a.Ic)((e,t)=>{let i=e.getColor(l._wn);i&&t.addRule(`
2
+ .monaco-scrollable-element > .shadow.top {
3
+ box-shadow: ${i} 0 6px 6px -6px inset;
4
+ }
5
+
6
+ .monaco-scrollable-element > .shadow.left {
7
+ box-shadow: ${i} 6px 0 6px -6px inset;
8
+ }
9
+
10
+ .monaco-scrollable-element > .shadow.top.left {
11
+ box-shadow: ${i} 6px 6px 6px -6px inset;
12
+ }
13
+ `);let s=e.getColor(l.etL);s&&t.addRule(`
14
+ .monaco-scrollable-element > .scrollbar > .slider {
15
+ background: ${s};
16
+ }
17
+ `);let n=e.getColor(l.ABB);n&&t.addRule(`
18
+ .monaco-scrollable-element > .scrollbar > .slider:hover {
19
+ background: ${n};
20
+ }
21
+ `);let o=e.getColor(l.ynu);o&&t.addRule(`
22
+ .monaco-scrollable-element > .scrollbar > .slider.active {
23
+ background: ${o};
24
+ }
25
+ `)})},13841:function(e,t,i){"use strict";i.d(t,{U:function(){return _}}),i("30660");var s=i("7875"),n=i("67518"),o=i("53120"),r=i("5532"),a=i("71956"),l=i("67268"),d=i("57938"),c=i("61045"),h=i("81468"),u=i("30813");class g{constructor(){this._currentVisibleRange=new c.e(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class p{constructor(e,t,i,s,n,o,r){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=s,this.startScrollTop=n,this.stopScrollTop=o,this.scrollType=r,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class m{constructor(e,t,i,s,n){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=s,this.scrollType=n,this.type="selections";let o=t[0].startLineNumber,r=t[0].endLineNumber;for(let e=1,i=t.length;e<i;e++){let i=t[e];o=Math.min(o,i.startLineNumber),r=Math.max(r,i.endLineNumber)}this.minLineNumber=o,this.maxLineNumber=r}}class _ extends a.E{constructor(e,t){super(e),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new r.G(this),this.domNode=this._visibleLines.domNode;let i=this._context.configuration,s=this._context.configuration.options,d=s.get(46),c=s.get(134),h=s.get(133);this._lineHeight=s.get(61),this._typicalHalfwidthCharacterWidth=d.typicalHalfwidthCharacterWidth,this._isViewportWrapping=c.isViewportWrapping,this._revealHorizontalRightPadding=s.get(91),this._horizontalScrollbarHeight=h.horizontalScrollbarHeight,this._cursorSurroundingLines=s.get(25),this._cursorSurroundingLinesStyle=s.get(26),this._canUseLayerHinting=!s.get(28),this._viewLineOptions=new l.ob(i,this._context.theme.type),a.K.write(this.domNode,7),this.domNode.setClassName(`view-lines ${u.S}`),(0,o.N)(this.domNode,d),this._maxLineWidth=0,this._asyncUpdateLineWidths=new n.pY(()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new n.pY(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new g,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new l.Nt(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(134)&&(this._maxLineWidth=0);let t=this._context.configuration.options,i=t.get(46),s=t.get(134),n=t.get(133);return this._lineHeight=t.get(61),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=s.isViewportWrapping,this._revealHorizontalRightPadding=t.get(91),this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),(0,o.N)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(133)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){let e=this._context.configuration,t=new l.ob(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;let e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++)this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){let t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),s=!1;for(let e=t;e<=i;e++)s=this._visibleLines.getVisibleLine(e).onSelectionChanged()||s;return s}onDecorationsChanged(e){{let e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){let t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){let t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new p(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new m(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;let s=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,s),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){let t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){let i=this._getViewLineDomNode(e);if(null===i)return null;let s=this._getLineNumberFor(i);if(-1===s||s<1||s>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(s))return new d.L(s,1);let n=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(s<n||s>o)return null;let r=this._visibleLines.getVisibleLine(s).getColumnOfNodeOffset(s,e,t),a=this._context.viewModel.getLineMinColumn(s);return r<a&&(r=a),new d.L(s,r)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===l.Nt.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){let t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let s=t;s<=i;s++)if(e===this._visibleLines.getVisibleLine(s).getDomNode())return s;return -1}getLineWidth(e){let t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();return e<t||e>i?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;let i=e.endLineNumber,s=c.e.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!s)return null;let n=[],o=0,r=new l.ZE(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new d.L(s.startLineNumber,1)).lineNumber);let u=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber();for(let e=s.startLineNumber;e<=s.endLineNumber;e++){if(e<u||e>g)continue;let l=e===s.startLineNumber?s.startColumn:1,c=e===s.endLineNumber?s.endColumn:this._context.viewModel.getLineMaxColumn(e),p=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,l,c,r);p&&(t&&e<i&&a!==(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new d.L(e+1,1)).lineNumber)&&(p.ranges[p.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth),n[o++]=new h.u7(p.outsideRenderedLine,e,h.yu.from(p.ranges)))}return 0===o?null:n}_visibleRangesForLineRange(e,t,i){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new l.ZE(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){let t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new h.D4(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){let t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),s=1,n=!0;for(let o=t;o<=i;o++){let t=this._visibleLines.getVisibleLine(o);if(e&&!t.getWidthIsFast()){n=!1;continue}s=Math.max(s,t.getWidth())}return n&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(s),n}_checkMonospaceFontAssumptions(){let e=-1,t=-1,i=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();for(let n=i;n<=s;n++){let i=this._visibleLines.getVisibleLine(n);if(i.needsMonospaceFontCheck()){let s=i.getWidth();s>t&&(t=s,e=n)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let e=i;e<=s;e++)this._visibleLines.getVisibleLine(e).onMonospaceAssumptionsInvalidated()}prepareRender(){throw Error("Not supported")}render(){throw Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){let t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();let e=this._computeScrollLeftToReveal(t);e&&(!this._isViewportWrapping&&this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(!this._updateLineWidthsFast()&&this._asyncUpdateLineWidths.schedule(),s.IJ&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){let e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");let t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){let t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,s,n,o){let r,a,l,d;let c=e.top,h=e.height,u=c+h;if(n&&n.length>0){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,s=n.length;i<s;i++){let s=n[i];e=Math.min(e,s.startLineNumber),t=Math.max(t,s.endLineNumber)}r=!1,a=this._context.viewLayout.getVerticalOffsetForLineNumber(e),l=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!s)return -1;r=!0,a=this._context.viewLayout.getVerticalOffsetForLineNumber(s.startLineNumber),l=this._context.viewLayout.getVerticalOffsetForLineNumber(s.endLineNumber)+this._lineHeight}if(("mouse"===t||i)&&"default"===this._cursorSurroundingLinesStyle)!i&&(a-=this._lineHeight);else{let e=Math.min(h/this._lineHeight/2,this._cursorSurroundingLines);a-=e*this._lineHeight,l+=Math.max(0,e-1)*this._lineHeight}if((0===o||4===o)&&(l+=i?this._horizontalScrollbarHeight:this._lineHeight),l-a>h){if(!r)return -1;d=a}else if(5===o||6===o){if(6===o&&c<=a&&l<=u)d=c;else{let e=a-Math.max(5*this._lineHeight,.2*h);d=Math.max(l-h,e)}}else d=1===o||2===o?2===o&&c<=a&&l<=u?c:Math.max(0,(a+l)/2-h/2):this._computeMinimumScrolling(c,u,a,l,3===o,4===o);return d}_computeScrollLeftToReveal(e){let t=this._context.viewLayout.getCurrentViewport(),i=t.left,s=i+t.width,n=1073741824,o=0;if("range"===e.type){let t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(let e of t.ranges)n=Math.min(n,Math.round(e.left)),o=Math.max(o,Math.round(e.left+e.width))}else for(let t of e.selections){if(t.startLineNumber!==t.endLineNumber)return null;let e=this._visibleRangesForLineRange(t.startLineNumber,t.startColumn,t.endColumn);if(!e)return null;for(let t of e.ranges)n=Math.min(n,Math.round(t.left)),o=Math.max(o,Math.round(t.left+t.width))}return(!e.minimalReveal&&(n=Math.max(0,n-_.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding),"selections"===e.type&&o-n>t.width)?null:{scrollLeft:this._computeMinimumScrolling(i,s,n,o),maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,i,s,n,o){e|=0,t|=0,i|=0,s|=0,n=!!n,o=!!o;let r=t-e;if(!(s-i<r))return i;if(n)return i;if(o)return Math.max(0,s-r);if(i<e)return i;if(s>t)return Math.max(0,s-r);return e}}_.HORIZONTAL_EXTRA_PX=30},21436:function(e,t,i){"use strict";i.d(t,{J:function(){return s},Y:function(){return n}});let s=(()=>{let e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})(),n=(e,t)=>{if((e-=32)<0||e>96)return t<=2?(e+96)%96:95;return e}},60075:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var s=i("70758"),n=i("80801"),o=i("48331");class r extends o.O{constructor(e,t){super(),this._context=e;let i=this._context.configuration.options;this._domNode=(0,s.X)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new n.Tj(e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;let e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),s=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,s,e),!0}_renderOneLane(e,t,i,s){let n=0,o=0,r=0;for(let a of t){let t=a.colorId,l=a.from,d=a.to;t!==n?(e.fillRect(0,o,s,r-o),n=t,e.fillStyle=i[n],o=l,r=d):r>=l?r=Math.max(r,d):(e.fillRect(0,o,s,r-o),o=l,r=d)}e.fillRect(0,o,s,r-o)}}},12880:function(e,t,i){"use strict";i.d(t,{K:function(){return c}}),i("98750");var s=i("7202"),n=i("97085"),o=i("39703");class r{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class a{constructor(e,t){this.lineNumber=e,this.ranges=t}}function l(e){return new r(e)}function d(e){return new a(e.lineNumber,e.ranges.map(l))}class c extends s.i{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;let t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++)if(e[t].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){let s=this._typicalHalfwidthCharacterWidth/4,n=null,o=null;if(i&&i.length>0&&t.length>0){let s=t[0].lineNumber;if(s===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===s&&(n=i[e].ranges[0]);let r=t[t.length-1].lineNumber;if(r===e.endLineNumber)for(let e=i.length-1;!o&&e>=0;e--)i[e].lineNumber===r&&(o=i[e].ranges[0]);n&&!n.startStyle&&(n=null),o&&!o.startStyle&&(o=null)}for(let e=0,i=t.length;e<i;e++){let r=t[e].ranges[0],a=r.left,l=r.left+r.width,d={top:0,bottom:0},c={top:0,bottom:0};if(e>0){let i=t[e-1].ranges[0].left,n=t[e-1].ranges[0].left+t[e-1].ranges[0].width;h(a-i)<s?d.top=2:a>i&&(d.top=1),h(l-n)<s?c.top=2:i<l&&l<n&&(c.top=1)}else n&&(d.top=n.startStyle.top,c.top=n.endStyle.top);if(e+1<i){let i=t[e+1].ranges[0].left,n=t[e+1].ranges[0].left+t[e+1].ranges[0].width;h(a-i)<s?d.bottom=2:i<a&&a<n&&(d.bottom=1),h(l-n)<s?c.bottom=2:l<n&&(c.bottom=1)}else o&&(d.bottom=o.startStyle.bottom,c.bottom=o.endStyle.bottom);r.startStyle=d,r.endStyle=c}}_getVisibleRangesWithStyle(e,t,i){let s=(t.linesVisibleRangesForRange(e,!0)||[]).map(d);return!this._visibleRangesHaveGaps(s)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,s,i),s}_createSelectionPiece(e,t,i,s,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;left:"+s.toString()+"px;width:"+n.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,i,s){if(0===s.length)return;let n=!!s[0].ranges[0].startStyle,o=this._lineHeight.toString(),r=(this._lineHeight-1).toString(),a=s[0].lineNumber,l=s[s.length-1].lineNumber;for(let d=0,h=s.length;d<h;d++){let h=s[d],u=h.lineNumber,g=u-t,p=i&&(u===l||u===a)?r:o,m=i&&u===a?1:0,_="",f="";for(let e=0,t=h.ranges.length;e<t;e++){let t=h.ranges[e];if(n){let e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){_+=this._createSelectionPiece(m,p,c.SELECTION_CLASS_NAME,t.left-c.ROUNDED_PIECE_WIDTH,c.ROUNDED_PIECE_WIDTH);let i=c.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+c.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+c.SELECTION_BOTTOM_RIGHT),_+=this._createSelectionPiece(m,p,i,t.left-c.ROUNDED_PIECE_WIDTH,c.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){_+=this._createSelectionPiece(m,p,c.SELECTION_CLASS_NAME,t.left+t.width,c.ROUNDED_PIECE_WIDTH);let e=c.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+c.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+c.SELECTION_BOTTOM_LEFT),_+=this._createSelectionPiece(m,p,e,t.left+t.width,c.ROUNDED_PIECE_WIDTH)}}let i=c.SELECTION_CLASS_NAME;if(n){let e=t.startStyle,s=t.endStyle;0===e.top&&(i+=" "+c.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+c.SELECTION_BOTTOM_LEFT),0===s.top&&(i+=" "+c.SELECTION_TOP_RIGHT),0===s.bottom&&(i+=" "+c.SELECTION_BOTTOM_RIGHT)}f+=this._createSelectionPiece(m,p,i,t.left,t.width)}e[g][0]+=_,e[g][1]+=f}}prepareRender(e){let t=[],i=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let e=i;e<=s;e++)t[e-i]=["",""];let n=[];for(let s=0,o=this._selections.length;s<o;s++){let o=this._selections[s];if(o.isEmpty()){n[s]=null;continue}let r=this._getVisibleRangesWithStyle(o,e,this._previousFrameVisibleRangesWithStyle[s]);n[s]=r,this._actualRenderOneSelection(t,i,this._selections.length>1,r)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){if(!this._renderResult)return"";let i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function h(e){return e<0?-e:e}c.SELECTION_CLASS_NAME="selected-text",c.SELECTION_TOP_LEFT="top-left-radius",c.SELECTION_BOTTOM_LEFT="bottom-left-radius",c.SELECTION_TOP_RIGHT="top-right-radius",c.SELECTION_BOTTOM_RIGHT="bottom-right-radius",c.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",c.ROUNDED_PIECE_WIDTH=10,(0,o.Ic)((e,t)=>{let i=e.getColor(n.hEj);i&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${i}; }`);let s=e.getColor(n.ES4);s&&t.addRule(`.monaco-editor .selected-text { background-color: ${s}; }`);let o=e.getColor(n.yb5);o&&!o.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${o}; }`)})},94614:function(e,t,i){"use strict";i.d(t,{o:function(){return h}}),i("70669");var s=i("70758"),n=i("67518"),o=i("71956"),r=i("20801"),a=i("16637"),l=i("26939"),d=i("39703"),c=i("74697");class h extends o.E{constructor(e){super(e);let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new r.n(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,s.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new n._F,this._cursorFlatBlinkInterval=new n.zh,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){let e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){let e=new r.n(this._context);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){let e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let e=0;e<t.length;e++)this._secondaryCursors[e].onCursorPositionChanged(t[e])}onCursorStateChanged(e){let t=[];for(let i=0,s=e.selections.length;i<s;i++)t[i]=e.selections[i].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));let i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){let t=t=>{for(let i=0,s=e.ranges.length;i<s;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(let e of this._secondaryCursors)if(t(e.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput||!this._editorHasFocus?0:this._readOnly?5:this._cursorBlinking}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();let e=this._getCursorBlinking(),t=0===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!t&&5!==e&&(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},h.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},h.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(!this._selectionIsEmpty&&(e+=" has-selection"),this._cursorStyle){case a.d2.Line:e+=" cursor-line-style";break;case a.d2.Block:e+=" cursor-block-style";break;case a.d2.Underline:e+=" cursor-underline-style";break;case a.d2.LineThin:e+=" cursor-line-thin-style";break;case a.d2.BlockOutline:e+=" cursor-block-outline-style";break;case a.d2.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],i=0,s=this._primaryCursor.render(e);s&&(t[i++]=s);for(let s=0,n=this._secondaryCursors.length;s<n;s++){let n=this._secondaryCursors[s].render(e);n&&(t[i++]=n)}this._renderData=t}getLastRenderData(){return this._renderData}}h.BLINK_INTERVAL=500,(0,d.Ic)((e,t)=>{let i=e.getColor(l.n0);if(i){let s=e.getColor(l.fY);!s&&(s=i.opposite()),t.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${i}; }`),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${s}; }`),(0,c.c3)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${s}; border-right: 1px solid ${s}; }`)}})},75323:function(e,t,i){"use strict";i.d(t,{E4:function(){return a},pR:function(){return l}});var s=i("7875"),n=i("16637"),o=i("83140");let r=s.dz?1.5:1.35;class a{constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,i){let s=e.get(45),n=e.get(49),o=e.get(48),r=e.get(47),l=e.get(61),d=e.get(58);return a._create(s,n,o,r,l,d,t,i)}static _create(e,t,i,s,n,l,d,c){0===n?n=r*i:n<8&&(n*=i),(n=Math.round(n))<8&&(n=8);let h=1+(c?0:.1*o.C.getZoomLevel());return i*=h,n*=h,new a({pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:s,lineHeight:n,letterSpacing:l})}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){let e=n.hL.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},57938:function(e,t,i){"use strict";i.d(t,{L:function(){return s}});class s{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let i=0|e.lineNumber,s=0|t.lineNumber;if(i===s){let i=0|e.column;return i-(0|t.column)}return i-s}clone(){return new s(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}},61065:function(e,t,i){"use strict";i.d(t,{Y:function(){return o}});var s=i("57938"),n=i("61045");class o extends n.e{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return o.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new o(this.startLineNumber,this.startColumn,e,t):new o(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new s.L(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new s.L(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new o(e,t,this.endLineNumber,this.endColumn):new o(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new o(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new o(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,i,s,n){return 0===n?new o(e,t,i,s):new o(i,s,e,t)}}},43349:function(e,t,i){"use strict";i.d(t,{g:function(){return c}});var s=i("60012"),n=i("66763");function o(e,t,i,n){return new s.Hs(e,t,i).ComputeDiff(n)}class r{constructor(e){let t=[],i=[];for(let s=0,n=e.length;s<n;s++)t[s]=h(e[s],1),i[s]=u(e[s],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){let e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){let s=[],n=[],o=[],r=0;for(let a=t;a<=i;a++){let t=this.lines[a],l=e?this._startColumns[a]:1,d=e?this._endColumns[a]:t.length+1;for(let e=l;e<d;e++)s[r]=t.charCodeAt(e-1),n[r]=a+1,o[r]=e,r++;!e&&a<i&&(s[r]=10,n[r]=a+1,o[r]=t.length+1,r++)}return new a(s,n,o)}}class a{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return -1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e])?this._lineNumbers[e]+1:this._lineNumbers[e]}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return -1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e])?1:this._columns[e]+1}}class l{constructor(e,t,i,s,n,o,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=s,this.modifiedStartLineNumber=n,this.modifiedStartColumn=o,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let s=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),d=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1);return new l(s,n,o,r,a,d,c,i.getEndColumn(e.modifiedStart+e.modifiedLength-1))}}class d{constructor(e,t,i,s,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=s,this.charChanges=n}static createFromDiffResult(e,t,i,s,n,r,a){let c,h,u,g,p;if(0===t.originalLength?(c=i.getStartLineNumber(t.originalStart)-1,h=0):(c=i.getStartLineNumber(t.originalStart),h=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=s.getStartLineNumber(t.modifiedStart)-1,g=0):(u=s.getStartLineNumber(t.modifiedStart),g=s.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){let r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),d=s.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&d.getElements().length>0){let e=o(r,d,n,!0).changes;a&&(e=function(e){if(e.length<=1)return e;let t=[e[0]],i=t[0];for(let s=1,n=e.length;s<n;s++){let n=e[s],o=n.originalStart-(i.originalStart+i.originalLength);3>Math.min(o,n.modifiedStart-(i.modifiedStart+i.modifiedLength))?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),p=[];for(let t=0,i=e.length;t<i;t++)p.push(l.createFromDiffChange(e[t],r,d))}}return new d(c,h,u,g,p)}}class c{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new r(e),this.modified=new r(t),this.continueLineDiff=g(i.maxComputationTime),this.continueCharDiff=g(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};let e=o(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){let e=[];for(let i=0,s=t.length;i<s;i++)e.push(d.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}let s=[],n=0,r=0;for(let e=-1,i=t.length;e<i;e++){let o=e+1<i?t[e+1]:null,a=o?o.originalStart:this.originalLines.length,l=o?o.modifiedStart:this.modifiedLines.length;for(;n<a&&r<l;){let e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=h(e,1),o=h(t,1);for(;i>1&&o>1;){let s=e.charCodeAt(i-2);if(s!==t.charCodeAt(o-2))break;i--,o--}(i>1||o>1)&&this._pushTrimWhitespaceCharChange(s,n+1,1,i,r+1,1,o)}{let i=u(e,1),o=u(t,1),a=e.length+1,l=t.length+1;for(;i<a&&o<l;){let t=e.charCodeAt(i-1);if(t!==e.charCodeAt(o-1))break;i++,o++}(i<a||o<l)&&this._pushTrimWhitespaceCharChange(s,n+1,i,a,r+1,o,l)}}n++,r++}o&&(s.push(d.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=o.originalLength,r+=o.modifiedLength)}return{quitEarly:i,changes:s}}_pushTrimWhitespaceCharChange(e,t,i,s,n,o,r){let a;if(!this._mergeTrimWhitespaceCharChange(e,t,i,s,n,o,r))this.shouldComputeCharChanges&&(a=[new l(t,i,t,s,n,o,n,r)]),e.push(new d(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,s,n,o,r){let a=e.length;if(0===a)return!1;let d=e[a-1];return 0!==d.originalEndLineNumber&&0!==d.modifiedEndLineNumber&&d.originalEndLineNumber+1===t&&d.modifiedEndLineNumber+1===n&&(d.originalEndLineNumber=t,d.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&d.charChanges&&d.charChanges.push(new l(t,i,t,s,n,o,n,r)),!0)}}function h(e,t){let i=n.LC(e);return -1===i?t:i+1}function u(e,t){let i=n.ow(e);return -1===i?t:i+2}function g(e){if(0===e)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}},10067:function(e,t,i){"use strict";i.d(t,{G:function(){return function e(t,i,o,r,a,l){if(Array.isArray(t)){let s=0;for(let n of t){let t=e(n,i,o,r,a,l);if(10===t)return t;t>s&&(s=t)}return s}if("string"==typeof t)return r?"*"===t?5:t===o?10:0:0;if(!t)return 0;else{let{language:e,pattern:d,scheme:c,hasAccessToAllModels:h,notebookType:u}=t;if(!r&&!h)return 0;u&&a&&(i=a);let g=0;if(c){if(c===i.scheme)g=10;else{if("*"!==c)return 0;g=5}}if(e){if(e===o)g=10;else{if("*"!==e)return 0;g=Math.max(g,5)}}if(u){if(u===l)g=10;else{if("*"!==u||void 0===l)return 0;g=Math.max(g,5)}}if(d){let e;if(!((e="string"==typeof d?d:Object.assign(Object.assign({},d),{base:(0,n.Fv)(d.base)}))===i.fsPath||(0,s.EQ)(e,i.fsPath)))return 0;g=10}return g}}}});var s=i("79462"),n=i("55410")},64587:function(e,t,i){"use strict";i.d(t,{H:function(){return o},S:function(){return n}});var s=i("92296");function n(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;let i=t,s=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===s;)t++;return t-i>=2?o(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let s=i(),n=i();if(!n)return s;for(let e=i();e;e=i())r(s,n)<=r(n,e)?(s=a(s,n),n=e):n=a(n,e);return a(s,n)}function o(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){let n=i>>1;for(let o=0;o<n;o++){let n=o<<1;e[o]=s.Y0.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return s.Y0.create23(e[0],e[1],i>=3?e[2]:null,t)}function r(e,t){return Math.abs(e.listHeight-t.listHeight)}function a(e,t){return e.listHeight===t.listHeight?s.Y0.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i;let n=e=e.toMutable(),o=[];for(;;){if(t.listHeight===n.listHeight){i=t;break}if(4!==n.kind)throw Error("unexpected");o.push(n),n=n.makeLastElementMutable()}for(let e=o.length-1;e>=0;e--){let t=o[e];i?t.childrenLength>=3?i=s.Y0.create23(t.unappendChild(),i,null,!1):(t.appendChildOfSameHeight(i),i=void 0):t.handleChildrenChanged()}return i?s.Y0.create23(e,i,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable(),n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let o=t;for(let e=n.length-1;e>=0;e--){let t=n[e];o?t.childrenLength>=3?o=s.Y0.create23(o,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(o),o=void 0):t.handleChildrenChanged()}return o?s.Y0.create23(o,e,null,!1):e}(t,e)}},82272:function(e,t,i){"use strict";i.d(t,{B8:function(){return g},Oe:function(){return a},UX:function(){return h},aq:function(){return u},iN:function(){return m},ld:function(){return c},qq:function(){return d},ug:function(){return l},xi:function(){return p}});var s,n,o,r,a,l,d,c,h,u,g,p,m,_=i("8339");(s=a||(a={})).noSelection=_.NC("noSelection","No selection"),s.singleSelectionRange=_.NC("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),s.singleSelection=_.NC("singleSelection","Line {0}, Column {1}"),s.multiSelectionRange=_.NC("multiSelectionRange","{0} selections ({1} characters selected)"),s.multiSelection=_.NC("multiSelection","{0} selections"),s.emergencyConfOn=_.NC("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),s.openingDocs=_.NC("openingDocs","Now opening the Editor Accessibility documentation page."),s.readonlyDiffEditor=_.NC("readonlyDiffEditor"," in a read-only pane of a diff editor."),s.editableDiffEditor=_.NC("editableDiffEditor"," in a pane of a diff editor."),s.readonlyEditor=_.NC("readonlyEditor"," in a read-only code editor"),s.editableEditor=_.NC("editableEditor"," in a code editor"),s.changeConfigToOnMac=_.NC("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),s.changeConfigToOnWinLinux=_.NC("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),s.auto_on=_.NC("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),s.auto_off=_.NC("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),s.tabFocusModeOnMsg=_.NC("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),s.tabFocusModeOnMsgNoKb=_.NC("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),s.tabFocusModeOffMsg=_.NC("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),s.tabFocusModeOffMsgNoKb=_.NC("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),s.openDocMac=_.NC("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),s.openDocWinLinux=_.NC("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),s.outroMsg=_.NC("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),s.showAccessibilityHelpAction=_.NC("showAccessibilityHelpAction","Show Accessibility Help"),(l||(l={})).inspectTokensAction=_.NC("inspectTokens","Developer: Inspect Tokens"),(d||(d={})).gotoLineActionLabel=_.NC("gotoLineActionLabel","Go to Line/Column..."),(c||(c={})).helpQuickAccessActionLabel=_.NC("helpQuickAccess","Show all Quick Access Providers"),(n=h||(h={})).quickCommandActionLabel=_.NC("quickCommandActionLabel","Command Palette"),n.quickCommandHelp=_.NC("quickCommandActionHelp","Show And Run Commands"),(o=u||(u={})).quickOutlineActionLabel=_.NC("quickOutlineActionLabel","Go to Symbol..."),o.quickOutlineByCategoryActionLabel=_.NC("quickOutlineByCategoryActionLabel","Go to Symbol by Category..."),(r=g||(g={})).editorViewAccessibleLabel=_.NC("editorViewAccessibleLabel","Editor content"),r.accessibilityHelpMessage=_.NC("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options."),(p||(p={})).toggleHighContrast=_.NC("toggleHighContrast","Toggle High Contrast Theme"),(m||(m={})).bulkEditServiceSummary=_.NC("bulkEditServiceSummary","Made {0} edits in {1} files")},96692:function(e,t,i){"use strict";i.d(t,{M$:function(){return s},YA:function(){return o}});class s{constructor(e,t,i,s){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=s}}class n{constructor(e,t,i,s,n,o){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=s,this.nestingLevelOfEqualBracketType=n,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class o extends n{constructor(e,t,i,s,n,o,r){super(e,t,i,s,n,o),this.minVisibleColumnIndentation=r}}},15995:function(e,t,i){"use strict";var s=i("59923"),n=i("53891"),o=i("11757"),r=i("8339"),a=i("91125"),l=i("18475");(0,s._K)(o.b.ID,o.b),l.B.as(a.IP.Configuration).registerConfiguration(Object.assign(Object.assign({},n.wk),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:r.NC("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}))},1474:function(e,t,i){"use strict";var s=i("67518"),n=i("42790"),o=i("19527"),r=i("64774"),a=i("37454"),l=i("38505"),d=i("3377"),c=i("59923"),h=i("5478"),u=i("61045"),g=i("61065"),p=i("78540"),m=i("20084"),_=i("8626"),f=i("59842"),b=i("8339"),y=i("54967"),C=i("7307"),v=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,s){t(i,s,e)}},w=function(e,t,i,s){return new(i||(i=Promise))(function(n,o){function r(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})};let k=class extends o.JT{constructor(e,t,i,s,n){super(),this._bulkEditService=t,this._languageFeaturesService=i,this._progressService=s,this._register(e.onDropIntoEditor(t=>this.onDropIntoEditor(e,t.position,t.event))),this._languageFeaturesService.documentOnDropEditProvider.register("*",new N(n))}onDropIntoEditor(e,t,i){return w(this,void 0,void 0,function*(){if(!i.dataTransfer||!e.hasModel())return;let n=e.getModel(),o=n.getVersionId(),r=yield this.extractDataTransferData(i);if(0===r.size||e.getModel().getVersionId()!==o)return;let a=new m.Dl(e,1);try{let i=this._languageFeaturesService.documentOnDropEditProvider.ordered(n),l=yield this._progressService.withProgress({location:15,delay:750,title:(0,b.NC)("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>(0,s.eP)(w(this,void 0,void 0,function*(){for(let e of i){let i=yield e.provideDocumentOnDropEdits(n,t,r,a.token);if(a.token.isCancellationRequested)break;if(i)return i}}),a.token),()=>{a.cancel()});if(a.token.isCancellationRequested||e.getModel().getVersionId()!==o)return;if(l){let i=new u.e(t.lineNumber,t.column,t.lineNumber,t.column);(0,_.z)(e,"string"==typeof l.insertText?f.Yj.escape(l.insertText):l.insertText.snippet,[g.Y.fromRange(i,0)]),l.additionalEdit&&(yield this._bulkEditService.apply(h.fo.convert(l.additionalEdit),{editor:e}));return}}finally{a.dispose()}})}extractDataTransferData(e){return w(this,void 0,void 0,function*(){if(!e.dataTransfer)return new n.Hl;let t=(0,d.Bo)(e.dataTransfer);return(0,d.dR)(t,e),t})}};k.ID="editor.contrib.dropIntoEditorController",k=v([S(1,h.vu),S(2,p.p),S(3,y.R9),S(4,C.ec)],k);let N=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,s){var n;return w(this,void 0,void 0,function*(){let e=i.get(r.v.uriList);if(e){let t=yield e.asString(),i=this.getUriListInsertText(t);if(i)return{insertText:i}}let t=null!==(n=i.get("text"))&&void 0!==n?n:i.get(r.v.text);if(t)return{insertText:yield t.asString()}})}getUriListInsertText(e){let t=[];for(let i of d.Z0.parse(e))try{t.push(l.o.parse(i))}catch(e){}if(t.length)return t.map(e=>{let t=this._workspaceContextService.getWorkspaceFolder(e);if(t){let i=(0,a.lX)(t.uri,e);if(i)return i}return e.fsPath}).join(" ")}};N=v([S(0,C.ec)],N),(0,c._K)(k.ID,k)},43017:function(e,t,i){"use strict";i.d(t,{D:function(){return c}});var s=i("9737"),n=i("25806"),o=i("95832"),r=i("67518"),a=i("99742"),l=i("97085"),d=i("39703");class c extends o.${constructor(e,t,i,o){super(),this._hideSoon=this._register(new r.pY(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let d=o.getColorTheme().getColor(l.PRb),c=o.getColorTheme().getColor(l.Pvw),h=o.getColorTheme().getColor(l.XEs);this.caseSensitive=this._register(new n.rk({appendTitle:this._keybindingLabelFor(a.kR.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:d,inputActiveOptionForeground:c,inputActiveOptionBackground:h})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new n.Qx({appendTitle:this._keybindingLabelFor(a.kR.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:d,inputActiveOptionForeground:c,inputActiveOptionBackground:h})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new n.eH({appendTitle:this._keybindingLabelFor(a.kR.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:d,inputActiveOptionForeground:c,inputActiveOptionBackground:h})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register(s.nm(this._domNode,s.tw.MOUSE_LEAVE,e=>this._onMouseLeave())),this._register(s.nm(this._domNode,"mouseover",e=>this._onMouseOver())),this._applyTheme(o.getColorTheme()),this._register(o.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return c.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){!this._isVisible&&(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(l.PRb),inputActiveOptionForeground:e.getColor(l.Pvw),inputActiveOptionBackground:e.getColor(l.XEs)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}c.ID="editor.contrib.findOptionsWidget",(0,d.Ic)((e,t)=>{let i=e.getColor(l.D0T);i&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${i}; }`);let s=e.getColor(l.Hfx);s&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${s}; }`);let n=e.getColor(l.rh);n&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);let o=e.getColor(l.lRK);o&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${o}; }`)})},60415:function(e,t,i){"use strict";i.d(t,{V4:function(){return X}});var s=i("9737"),n=i("94555"),o=i("47185"),r=i("74664"),a=i("95832"),l=i("67518"),d=i("71628"),c=i("61111"),h=i("19527"),u=i("7875"),g=i("66763");i("54116");var p=i("61045"),m=i("99742"),_=i("8339"),f=i("96709"),b=i("76084"),y=i("97085"),C=i("38842"),v=i("39703"),S=i("74697");let w=(0,C.q5)("find-selection",d.lA.selection,_.NC("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),k=(0,C.q5)("find-collapsed",d.lA.chevronRight,_.NC("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),N=(0,C.q5)("find-expanded",d.lA.chevronDown,_.NC("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),L=(0,C.q5)("find-replace",d.lA.replace,_.NC("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),x=(0,C.q5)("find-replace-all",d.lA.replaceAll,_.NC("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),E=(0,C.q5)("find-previous-match",d.lA.arrowUp,_.NC("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),I=(0,C.q5)("find-next-match",d.lA.arrowDown,_.NC("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),R=_.NC("label.find","Find"),D=_.NC("placeholder.find","Find"),A=_.NC("label.previousMatchButton","Previous Match"),T=_.NC("label.nextMatchButton","Next Match"),F=_.NC("label.toggleSelectionFind","Find in Selection"),M=_.NC("label.closeButton","Close"),O=_.NC("label.replace","Replace"),P=_.NC("placeholder.replace","Replace"),V=_.NC("label.replaceButton","Replace"),K=_.NC("label.replaceAllButton","Replace All"),B=_.NC("label.toggleReplaceButton","Toggle Replace"),$=_.NC("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",m.nD),z=_.NC("label.matchesLocation","{0} of {1}"),H=_.NC("label.noResults","No results"),W=221,U=69,q="ctrlEnterReplaceAll.windows.donotask",Z=u.dz?256:2048;class j{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function G(e,t,i){let s=!!t.match(/\n/);if(i&&s&&i.selectionStart>0){e.stopPropagation();return}}function Q(e,t,i){let s=!!t.match(/\n/);if(i&&s&&i.selectionEnd<i.value.length){e.stopPropagation();return}}class X extends a.${constructor(e,t,i,n,o,r,a,d,c){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=n,this._keybindingService=o,this._contextKeyService=r,this._storageService=d,this._notificationService=c,this._ctrlEnterReplaceAllWarningPrompted=!!d.getBoolean(q,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new l.vp(500),this._register((0,h.OF)(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(e=>{if(e.hasChanged(83)&&(this._codeEditor.getOption(83)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(133)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(37)){let e=this._codeEditor.getOption(37).addExtraSpaceOnTop;e&&!this._viewZone&&(this._viewZone=new j(0),this._showViewZone()),!e&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>{var e,t,i,s;return e=this,t=void 0,i=void 0,s=function*(){if(this._isVisible){let e=yield this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}},new(i||(i=Promise))(function(n,o){function r(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})})),this._findInputFocused=m.qm.bindTo(r),this._findFocusTracker=this._register(s.go(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=m.P$.bindTo(r),this._replaceFocusTracker=this._register(s.go(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(37).addExtraSpaceOnTop&&(this._viewZone=new j(0)),this._applyTheme(a.getColorTheme()),this._register(a.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(e=>{if(e.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return X.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(83)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=s.w(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,c.dL)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=U+"px",this._state.matchesCount>=m.nD?this._matchesCount.title=$:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=m.nD&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=g.WU(z,i,t)}else e=H;this._matchesCount.appendChild(document.createTextNode(e)),(0,n.Z9)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),U=Math.max(U,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===H)return""===i?_.NC("ariaSearchNoResultEmpty","{0} found",e):_.NC("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){let s=_.NC("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),n=this._codeEditor.getModel();if(n&&t.startLineNumber<=n.getLineCount()&&t.startLineNumber>=1){let e=n.getLineContent(t.startLineNumber);return`${e}, ${s}`}return s}return _.NC("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let i=!this._codeEditor.getOption(83);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;let e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(37).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{let t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(37).seedSearchStringFromSelection&&e){let i=this._codeEditor.getDomNode();if(i){let n=s.i(i),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),r=n.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&a<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);let i=s.xQ(this._domNode).left;r>i&&(t=!1);let o=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(o?o.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(37).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;let t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones(i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(37).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new j(0));let t=this._viewZone;this._codeEditor.changeViewZones(i=>{if(void 0!==this._viewZoneId){let s=this._getHeight();if(s===t.heightInPx)return;let n=s-t.heightInPx;t.heightInPx=s,i.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n);return}{let s=this._getHeight();if((s-=this._codeEditor.getOption(77).top)<=0)return;t.heightInPx=s,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(y.PRb),inputActiveOptionBackground:e.getColor(y.XEs),inputActiveOptionForeground:e.getColor(y.Pvw),inputBackground:e.getColor(y.sEe),inputForeground:e.getColor(y.zJb),inputBorder:e.getColor(y.dt_),inputValidationInfoBackground:e.getColor(y._lC),inputValidationInfoForeground:e.getColor(y.YI3),inputValidationInfoBorder:e.getColor(y.EPQ),inputValidationWarningBackground:e.getColor(y.RV_),inputValidationWarningForeground:e.getColor(y.SUG),inputValidationWarningBorder:e.getColor(y.C3g),inputValidationErrorBackground:e.getColor(y.paE),inputValidationErrorForeground:e.getColor(y._t9),inputValidationErrorBorder:e.getColor(y.OZR)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible||!s.Uw(this._domNode))return;let e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");let t=e.width,i=e.minimap.minimapWidth,n=!1,o=!1,r=!1;if(this._resized&&s.w(this._domNode)>419){this._domNode.style.maxWidth=`${t-28-i-15}px`,this._replaceInput.width=s.w(this._findInput.domNode);return}if(447+i>=t&&(o=!0),447+i-U>=t&&(r=!0),447+i-U>=t+50&&(n=!0),this._domNode.classList.toggle("collapsed-find-widget",n),this._domNode.classList.toggle("narrow-find-widget",r),this._domNode.classList.toggle("reduced-find-widget",o),!r&&!n&&(this._domNode.style.maxWidth=`${t-28-i-15}px`),this._resized){this._findInput.inputBox.layout();let e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=s.w(this._findInput.domNode))}_getHeight(){let e;return e=4+(this._findInput.inputBox.height+2),this._isReplaceVisible&&(e+=4+(this._replaceInput.inputBox.height+2)),e+=4}_tryUpdateHeight(){let e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));let t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||p.e.equalsRange(e,t)?null:e}).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(3|Z)){if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}this._findInput.inputBox.insertAtCursor("\n"),e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}return e.equals(16)?G(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?Q(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){if(e.equals(3|Z)){if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}u.ED&&u.tY&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(_.NC("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(q,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n"),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}return e.equals(16)?G(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?Q(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new f.Yb(null,this._contextViewProvider,{width:W,label:R,placeholder:D,appendCaseSensitiveLabel:this._keybindingLabelFor(m.kR.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(m.kR.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(m.kR.ToggleRegexCommand),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return RegExp(e,"gu"),null}catch(e){return{content:e.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>(0,b.u)(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(e=>this._onFindInputKeyDown(e))),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(e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())})),this._register(this._findInput.onRegexKeyDown(e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(e=>{this._tryUpdateHeight()&&this._showViewZone()})),u.IJ&&this._register(this._findInput.onMouseDown(e=>this._onFindInputMouseDown(e))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Y({label:A+this._keybindingLabelFor(m.kR.PreviousMatchFindAction),icon:E,onTrigger:()=>{this._codeEditor.getAction(m.kR.PreviousMatchFindAction).run().then(void 0,c.dL)}})),this._nextBtn=this._register(new Y({label:T+this._keybindingLabelFor(m.kR.NextMatchFindAction),icon:I,onTrigger:()=>{this._codeEditor.getAction(m.kR.NextMatchFindAction).run().then(void 0,c.dL)}}));let e=document.createElement("div");e.className="find-part",e.appendChild(this._findInput.domNode);let t=document.createElement("div");t.className="find-actions",e.appendChild(t),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new o.Z({icon:w,title:F+this._keybindingLabelFor(m.kR.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e.map(e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty())?null:e).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)})),t.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Y({label:M+this._keybindingLabelFor(m.kR.CloseFindWidgetCommand),icon:C.s_,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}})),t.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new f.Nq(null,void 0,{label:O,placeholder:P,appendPreserveCaseLabel:this._keybindingLabelFor(m.kR.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>(0,b.u)(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(e=>this._onReplaceInputKeyDown(e))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})),this._replaceBtn=this._register(new Y({label:V+this._keybindingLabelFor(m.kR.ReplaceOneAction),icon:L,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new Y({label:K+this._keybindingLabelFor(m.kR.ReplaceAllAction),icon:x,onTrigger:()=>{this._controller.replaceAll()}}));let i=document.createElement("div");i.className="replace-part",i.appendChild(this._replaceInput.domNode);let n=document.createElement("div");n.className="replace-actions",i.appendChild(n),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Y({label:B,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=s.w(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(e),this._domNode.appendChild(i),this._resizeSash=new r.g(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=419;this._register(this._resizeSash.onDidStart(()=>{a=s.w(this._domNode)})),this._register(this._resizeSash.onDidChange(e=>{this._resized=!0;let t=a+e.startX-e.currentX;if(!(t<419))!(t>(parseFloat(s.Dx(this._domNode).maxWidth)||0))&&(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=s.w(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{let e=s.w(this._domNode);if(e<419)return;let t=419;if(!this._resized||419===e){let e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=s.w(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){let e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}X.ID="editor.contrib.findWidget";class Y extends a.${constructor(e){super(),this._opts=e;let t="button";this._opts.className&&(t=t+" "+this._opts.className),this._opts.icon&&(t=t+" "+v.kS.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className=t,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,e=>{this._opts.onTrigger(),e.preventDefault()}),this.onkeydown(this._domNode,e=>{var t,i;if(e.equals(10)||e.equals(3)){this._opts.onTrigger(),e.preventDefault();return}null===(i=(t=this._opts).onKeyDown)||void 0===i||i.call(t,e)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...v.kS.asClassNameArray(k)),this._domNode.classList.add(...v.kS.asClassNameArray(N))):(this._domNode.classList.remove(...v.kS.asClassNameArray(N)),this._domNode.classList.add(...v.kS.asClassNameArray(k)))}}(0,v.Ic)((e,t)=>{let i=(e,i)=>{i&&t.addRule(`.monaco-editor ${e} { background-color: ${i}; }`)};i(".findMatch",e.getColor(y.MUv)),i(".currentFindMatch",e.getColor(y.nyM)),i(".findScope",e.getColor(y.jUe)),i(".find-widget",e.getColor(y.D0T));let s=e.getColor(y.rh);s&&t.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${s}; }`);let n=e.getColor(y.EiJ);n&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,S.c3)(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`);let o=e.getColor(y.pnM);o&&t.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${o}; padding: 1px; box-sizing: border-box; }`);let r=e.getColor(y.gkn);r&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,S.c3)(e.type)?"dashed":"solid"} ${r}; }`);let a=e.getColor(y.lRK);a&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${a}; }`);let l=e.getColor(y.Hfx);l&&t.addRule(`.monaco-editor .find-widget { color: ${l}; }`);let d=e.getColor(y.Ido);d&&t.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${d}; }`);let c=e.getColor(y.Ng6);if(c)t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${c}; }`);else{let i=e.getColor(y.D1_);i&&t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${i}; }`)}let h=e.getColor(y.lUq);h&&t.addRule(`
26
+ .monaco-editor .find-widget .button:not(.disabled):hover,
27
+ .monaco-editor .find-widget .codicon-find-selection:hover {
28
+ background-color: ${h} !important;
29
+ }
30
+ `);let u=e.getColor(y.R80);u&&t.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${u}; }`)})},82298:function(e,t,i){"use strict";i.d(t,{UG:function(){return r},e$:function(){return d}});var s=i("54123");class n{constructor(e){this.staticValue=e,this.kind=0}}class o{constructor(e){this.pieces=e,this.kind=1}}class r{constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new n(e[0].staticValue):this._state=new o(e):this._state=new n("")}static fromStaticValue(e){return new r([a.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}buildReplaceString(e,t){if(0===this._state.kind)return t?(0,s.o)(e,this._state.staticValue):this._state.staticValue;let i="";for(let t=0,s=this._state.pieces.length;t<s;t++){let s=this._state.pieces[t];if(null!==s.staticValue){i+=s.staticValue;continue}let n=r._substitute(s.matchIndex,e);if(null!==s.caseOps&&s.caseOps.length>0){let e=[],t=s.caseOps.length,i=0;for(let o=0,r=n.length;o<r;o++){if(i>=t){e.push(n.slice(o));break}switch(s.caseOps[i]){case"U":e.push(n[o].toUpperCase());break;case"u":e.push(n[o].toUpperCase()),i++;break;case"L":e.push(n[o].toLowerCase());break;case"l":e.push(n[o].toLowerCase()),i++;break;default:e.push(n[o])}}n=e.join("")}i+=n}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length)return(t[e]||"")+i;i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class a{constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}static staticValue(e){return new a(e,-1,null)}static caseOps(e,t){return new a(null,e,t)}}class l{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=a.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=a.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=a.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new r(this._result)}}function d(e){if(!e||0===e.length)return new r(null);let t=[],i=new l(e);for(let s=0,n=e.length;s<n;s++){let o=e.charCodeAt(s);if(92===o){if(++s>=n)break;let o=e.charCodeAt(s);switch(o){case 92:i.emitUnchanged(s-1),i.emitStatic("\\",s+1);break;case 110:i.emitUnchanged(s-1),i.emitStatic("\n",s+1);break;case 116:i.emitUnchanged(s-1),i.emitStatic(" ",s+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(s-1),i.emitStatic("",s+1),t.push(String.fromCharCode(o))}continue}if(36===o){if(++s>=n)break;let o=e.charCodeAt(s);if(36===o){i.emitUnchanged(s-1),i.emitStatic("$",s+1);continue}if(48===o||38===o){i.emitUnchanged(s-1),i.emitMatchIndex(0,s+1,t),t.length=0;continue}if(49<=o&&o<=57){let r=o-48;if(s+1<n){let n=e.charCodeAt(s+1);if(48<=n&&n<=57){s++,r=10*r+(n-48),i.emitUnchanged(s-2),i.emitMatchIndex(r,s+1,t),t.length=0;continue}}i.emitUnchanged(s-1),i.emitMatchIndex(r,s+1,t),t.length=0;continue}}}return i.finalize()}},44298:function(e,t,i){"use strict";i.d(t,{aI:function(){return o}});var s=i("47892"),n=i("65761");class o{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.maxFoldingRegions=i,this.id="indent"}dispose(){}compute(e,t){let i=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,n=i&&!!i.offSide,o=i&&i.markers;return Promise.resolve(function(e,t,i,n,o){let a,l=e.getOptions().tabSize,d=new r(n=null!=n?n:5e3,o);i&&(a=RegExp(`(${i.start.source})|(?:${i.end.source})`));let c=[],h=e.getLineCount()+1;c.push({indent:-1,endAbove:h,line:h});for(let i=e.getLineCount();i>0;i--){let n;let o=e.getLineContent(i),r=(0,s.q)(o,l),h=c[c.length-1];if(-1===r){t&&(h.endAbove=i);continue}if(a&&(n=o.match(a))){if(n[1]){let e=c.length-1;for(;e>0&&-2!==c[e].indent;)e--;if(e>0){c.length=e+1,h=c[e],d.insertFirst(i,h.line,r),h.line=i,h.indent=r,h.endAbove=i;continue}}else{c.push({indent:-2,endAbove:i,line:i});continue}}if(h.indent>r){do c.pop(),h=c[c.length-1];while(h.indent>r);let e=h.endAbove-1;e-i>=1&&d.insertFirst(i,e,r)}h.indent===r?h.endAbove=i:c.push({indent:r,endAbove:i,line:i})}return d.toIndentRanges(e)}(this.editorModel,n,o,this.maxFoldingRegions,t))}}class r{constructor(e,t){this._notifyTooManyRegions=t,this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>n.Xl||t>n.Xl)return;let s=this._length;this._startIndexes[s]=e,this._endIndexes[s]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){var t;if(this._length<=this._foldingRangesLimit){let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,s=0;i>=0;i--,s++)e[s]=this._startIndexes[i],t[s]=this._endIndexes[i];return new n.MN(e,t)}{null===(t=this._notifyTooManyRegions)||void 0===t||t.call(this,this._foldingRangesLimit);let i=0,o=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){let t=this._indentOccurrences[e];if(t){if(t+i>this._foldingRangesLimit){o=e;break}i+=t}}let r=e.getOptions().tabSize,a=new Uint32Array(this._foldingRangesLimit),l=new Uint32Array(this._foldingRangesLimit);for(let t=this._length-1,n=0;t>=0;t--){let d=this._startIndexes[t],c=e.getLineContent(d),h=(0,s.q)(c,r);(h<o||h===o&&i++<this._foldingRangesLimit)&&(a[n]=d,l[n]=this._endIndexes[t],n++)}return new n.MN(a,l)}}}},57553:function(e,t,i){"use strict";var s=i("59923"),n=i("83140"),o=i("8339");class r extends s.R6{constructor(){super({id:"editor.action.fontZoomIn",label:o.NC("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){n.C.setZoomLevel(n.C.getZoomLevel()+1)}}class a extends s.R6{constructor(){super({id:"editor.action.fontZoomOut",label:o.NC("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){n.C.setZoomLevel(n.C.getZoomLevel()-1)}}class l extends s.R6{constructor(){super({id:"editor.action.fontZoomReset",label:o.NC("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){n.C.setZoomLevel(0)}}(0,s.Qr)(r),(0,s.Qr)(a),(0,s.Qr)(l)},93982:function(e,t,i){"use strict";var s=i("3868"),n=i("862"),o=i("61111"),r=i("88980"),a=i("19527"),l=i("59923"),d=i("83368"),c=i("53049"),h=i("61045"),u=i("76617"),g=i("73835"),p=i("78540"),m=i("22557"),_=i("67720"),f=i("8339"),b=i("21095"),y=i("49436"),C=i("6301"),v=i("54967"),S=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,s){t(i,s,e)}},k=function(e,t,i,s){return new(i||(i=Promise))(function(n,o){function r(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})};let N=class{constructor(e,t,i){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._disposables=new a.SL,this._sessionDisposables=new a.SL,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(e=>{e.hasChanged(51)&&this._update()}))}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(51)||!this._editor.hasModel())return;let e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let i=new c.q;for(let e of t.autoFormatTriggerCharacters)i.add(e.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(e=>{let t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;let t=this._editor.getModel(),i=this._editor.getPosition(),o=new n.A,r=this._editor.onDidChangeModelContent(e=>{if(e.isFlush){o.cancel(),r.dispose();return}for(let t=0,s=e.changes.length;t<s;t++)if(e.changes[t].range.endLineNumber<=i.lineNumber){o.cancel(),r.dispose();return}});(0,m.Qs)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),o.token).then(e=>{!o.token.isCancellationRequested&&(0,s.Of)(e)&&(_.V.execute(this._editor,e,!0),(0,m.Zg)(e))}).finally(()=>{r.dispose()})}};N.ID="editor.contrib.autoFormat",N=S([w(1,p.p),w(2,g.p)],N);let L=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.SL,this._callOnModel=new a.SL,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),!!this.editor.getOption(50)&&!!this.editor.hasModel())this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){if(!!this.editor.hasModel())!(this.editor.getSelections().length>1)&&this._instantiationService.invokeFunction(m.x$,this.editor,e,2,v.Ex.None,n.T.None).catch(o.dL)}};L.ID="editor.contrib.formatOnPaste",L=S([w(1,p.p),w(2,C.TG)],L);class x extends l.R6{constructor(){super({id:"editor.action.formatDocument",label:f.NC("formatDocument.label","Format Document"),alias:"Format Document",precondition:y.Ao.and(u.u.notInCompositeEditor,u.u.writable,u.u.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return k(this,void 0,void 0,function*(){if(t.hasModel()){let i=e.get(C.TG),s=e.get(v.ek);yield s.showWhile(i.invokeFunction(m.Qq,t,1,v.Ex.None,n.T.None),250)}})}}class E extends l.R6{constructor(){super({id:"editor.action.formatSelection",label:f.NC("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:y.Ao.and(u.u.writable,u.u.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.u.editorTextFocus,primary:(0,r.gx)(2089,2084),weight:100},contextMenuOpts:{when:u.u.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return k(this,void 0,void 0,function*(){if(!t.hasModel())return;let i=e.get(C.TG),s=t.getModel(),o=t.getSelections().map(e=>e.isEmpty()?new h.e(e.startLineNumber,1,e.startLineNumber,s.getLineMaxColumn(e.startLineNumber)):e),r=e.get(v.ek);yield r.showWhile(i.invokeFunction(m.x$,t,o,1,v.Ex.None,n.T.None),250)})}}(0,l._K)(N.ID,N),(0,l._K)(L.ID,L),(0,l.Qr)(x),(0,l.Qr)(E),b.P0.registerCommand("editor.action.format",e=>k(void 0,void 0,void 0,function*(){let t=e.get(d.$).getFocusedCodeEditor();if(!t||!t.hasModel())return;let i=e.get(b.Hy);t.getSelection().isEmpty()?yield i.executeCommand("editor.action.formatDocument"):yield i.executeCommand("editor.action.formatSelection")}))},43048:function(e,t,i){"use strict";i.d(t,{D5:function(){return C},c:function(){return v},hU:function(){return y}});var s=i("9737"),n=i("3868"),o=i("67518"),r=i("70691"),a=i("19527"),l=i("77403"),d=i("57938"),c=i("61045"),h=i("10870"),u=i("80267"),g=i("8339"),p=i("53861"),m=i("80204"),_=i("78540"),f=function(e,t){return function(i,s){t(i,s,e)}};let b=s.$;class y{constructor(e,t,i,s){this.owner=e,this.range=t,this.contents=i,this.ordinal=s}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let C=class{constructor(e,t,i,s,n){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=s,this._languageFeaturesService=n,this.hoverOrdinal=2}createLoadingMessage(e){return new y(this,e.range,[new r.W5().appendText(g.NC("modesContentHover.loading","Loading..."))],2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];let i=this._editor.getModel(),s=e.range.startLineNumber,o=i.getLineMaxColumn(s),a=[],l=1e3,d=i.getLineLength(s),h=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:h});for(let i of("number"==typeof u&&d>=u&&a.push(new y(this,e.range,[{value:g.NC("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],l++)),t)){let t=i.range.startLineNumber===s?i.range.startColumn:1,d=i.range.endLineNumber===s?i.range.endColumn:o,h=i.options.hoverMessage;if(!h||(0,r.CP)(h))continue;let u=new c.e(e.range.startLineNumber,t,e.range.startLineNumber,d);a.push(new y(this,u,(0,n._2)(h),l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return o.Aq.EMPTY;let s=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(s))return o.Aq.EMPTY;let n=new d.L(e.range.startLineNumber,e.range.startColumn);return(0,u.R8)(this._languageFeaturesService.hoverProvider,s,n,i).filter(e=>!(0,r.CP)(e.hover.contents)).map(t=>new y(this,t.hover.range?c.e.lift(t.hover.range):e.range,t.hover.contents,t.ordinal))}renderHoverParts(e,t){return v(e,t,this._editor,this._languageService,this._openerService)}};function v(e,t,i,n,o){t.sort((e,t)=>e.ordinal-t.ordinal);let d=new a.SL;for(let a of t)for(let t of a.contents){if((0,r.CP)(t))continue;let a=b("div.hover-row.markdown-hover"),c=s.R3(a,b("div.hover-contents")),h=d.add(new l.$({editor:i},n,o));d.add(h.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",e.onContentsChanged()}));let u=d.add(h.render(t));c.appendChild(u.element),e.fragment.appendChild(a)}return d}C=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([f(1,h.O),f(2,m.v4),f(3,p.Ui),f(4,_.p)],C)},30866:function(e,t,i){"use strict";var s=i("59923"),n=i("88936"),o=i("68383"),r=i("40172");(0,s._K)(o.K.ID,o.K),n.Ae.register(r.G)},95635:function(e,t,i){"use strict";var s=i("71628"),n=i("8339"),o=i("97085"),r=i("39703");let a=(0,o.P6G)("symbolIcon.arrayForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=(0,o.P6G)("symbolIcon.booleanForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=(0,o.P6G)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=(0,o.P6G)("symbolIcon.colorForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=(0,o.P6G)("symbolIcon.constantForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=(0,o.P6G)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=(0,o.P6G)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=(0,o.P6G)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=(0,o.P6G)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=(0,o.P6G)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=(0,o.P6G)("symbolIcon.fileForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=(0,o.P6G)("symbolIcon.folderForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=(0,o.P6G)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=(0,o.P6G)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=(0,o.P6G)("symbolIcon.keyForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=(0,o.P6G)("symbolIcon.keywordForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=(0,o.P6G)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=(0,o.P6G)("symbolIcon.moduleForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=(0,o.P6G)("symbolIcon.namespaceForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=(0,o.P6G)("symbolIcon.nullForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=(0,o.P6G)("symbolIcon.numberForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=(0,o.P6G)("symbolIcon.objectForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=(0,o.P6G)("symbolIcon.operatorForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=(0,o.P6G)("symbolIcon.packageForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=(0,o.P6G)("symbolIcon.propertyForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=(0,o.P6G)("symbolIcon.referenceForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=(0,o.P6G)("symbolIcon.snippetForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=(0,o.P6G)("symbolIcon.stringForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=(0,o.P6G)("symbolIcon.structForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=(0,o.P6G)("symbolIcon.textForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=(0,o.P6G)("symbolIcon.typeParameterForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),V=(0,o.P6G)("symbolIcon.unitForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),K=(0,o.P6G)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));(0,r.Ic)((e,t)=>{let i=e.getColor(a);i&&t.addRule(`${s.lA.symbolArray.cssSelector} { color: ${i}; }`);let n=e.getColor(l);n&&t.addRule(`${s.lA.symbolBoolean.cssSelector} { color: ${n}; }`);let o=e.getColor(d);o&&t.addRule(`${s.lA.symbolClass.cssSelector} { color: ${o}; }`);let r=e.getColor(w);r&&t.addRule(`${s.lA.symbolMethod.cssSelector} { color: ${r}; }`);let B=e.getColor(c);B&&t.addRule(`${s.lA.symbolColor.cssSelector} { color: ${B}; }`);let $=e.getColor(h);$&&t.addRule(`${s.lA.symbolConstant.cssSelector} { color: ${$}; }`);let z=e.getColor(u);z&&t.addRule(`${s.lA.symbolConstructor.cssSelector} { color: ${z}; }`);let H=e.getColor(g);H&&t.addRule(`
31
+ ${s.lA.symbolValue.cssSelector},${s.lA.symbolEnum.cssSelector} { color: ${H}; }`);let W=e.getColor(p);W&&t.addRule(`${s.lA.symbolEnumMember.cssSelector} { color: ${W}; }`);let U=e.getColor(m);U&&t.addRule(`${s.lA.symbolEvent.cssSelector} { color: ${U}; }`);let q=e.getColor(_);q&&t.addRule(`${s.lA.symbolField.cssSelector} { color: ${q}; }`);let Z=e.getColor(f);Z&&t.addRule(`${s.lA.symbolFile.cssSelector} { color: ${Z}; }`);let j=e.getColor(b);j&&t.addRule(`${s.lA.symbolFolder.cssSelector} { color: ${j}; }`);let G=e.getColor(y);G&&t.addRule(`${s.lA.symbolFunction.cssSelector} { color: ${G}; }`);let Q=e.getColor(C);Q&&t.addRule(`${s.lA.symbolInterface.cssSelector} { color: ${Q}; }`);let X=e.getColor(v);X&&t.addRule(`${s.lA.symbolKey.cssSelector} { color: ${X}; }`);let Y=e.getColor(S);Y&&t.addRule(`${s.lA.symbolKeyword.cssSelector} { color: ${Y}; }`);let J=e.getColor(k);J&&t.addRule(`${s.lA.symbolModule.cssSelector} { color: ${J}; }`);let ee=e.getColor(N);ee&&t.addRule(`${s.lA.symbolNamespace.cssSelector} { color: ${ee}; }`);let et=e.getColor(L);et&&t.addRule(`${s.lA.symbolNull.cssSelector} { color: ${et}; }`);let ei=e.getColor(x);ei&&t.addRule(`${s.lA.symbolNumber.cssSelector} { color: ${ei}; }`);let es=e.getColor(E);es&&t.addRule(`${s.lA.symbolObject.cssSelector} { color: ${es}; }`);let en=e.getColor(I);en&&t.addRule(`${s.lA.symbolOperator.cssSelector} { color: ${en}; }`);let eo=e.getColor(R);eo&&t.addRule(`${s.lA.symbolPackage.cssSelector} { color: ${eo}; }`);let er=e.getColor(D);er&&t.addRule(`${s.lA.symbolProperty.cssSelector} { color: ${er}; }`);let ea=e.getColor(A);ea&&t.addRule(`${s.lA.symbolReference.cssSelector} { color: ${ea}; }`);let el=e.getColor(T);el&&t.addRule(`${s.lA.symbolSnippet.cssSelector} { color: ${el}; }`);let ed=e.getColor(F);ed&&t.addRule(`${s.lA.symbolString.cssSelector} { color: ${ed}; }`);let ec=e.getColor(M);ec&&t.addRule(`${s.lA.symbolStruct.cssSelector} { color: ${ec}; }`);let eh=e.getColor(O);eh&&t.addRule(`${s.lA.symbolText.cssSelector} { color: ${eh}; }`);let eu=e.getColor(P);eu&&t.addRule(`${s.lA.symbolTypeParameter.cssSelector} { color: ${eu}; }`);let eg=e.getColor(V);eg&&t.addRule(`${s.lA.symbolUnit.cssSelector} { color: ${eg}; }`);let ep=e.getColor(K);ep&&t.addRule(`${s.lA.symbolVariable.cssSelector} { color: ${ep}; }`)})},96444:function(e,t,i){"use strict";var s=i("19527"),n=i("37454"),o=i("59923"),r=i("83368"),a=i("8339"),l=i("64641"),d=function(e,t){return function(i,s){t(i,s,e)}};let c="ignoreUnusualLineTerminators",h=class extends s.JT{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{!e.isUndoing&&this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){var e,t,i,s;return e=this,t=void 0,i=void 0,s=function*(){var e,t;if("off"===this._config||!this._editor.hasModel())return;let i=this._editor.getModel();if(!i.mightContainUnusualLineTerminators())return;if(!(!0===(e=this._codeEditorService,t=i,e.getModelProperty(t.uri,c))||this._editor.getOption(83))){if("auto"===this._config){i.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:a.NC("unusualLineTerminators.title","Unusual Line Terminators"),message:a.NC("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.NC("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.EZ)(i.uri)),primaryButton:a.NC("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:a.NC("unusualLineTerminators.ignore","Ignore")})).confirmed){!function(e,t,i){e.setModelProperty(t.uri,c,i)}(this._codeEditorService,i,!0);return}i.removeUnusualLineTerminators(this._editor.getSelections())}},new(i||(i=Promise))(function(n,o){function r(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})}};h.ID="editor.contrib.unusualLineTerminatorsDetector",h=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([d(1,l.S),d(2,r.$)],h),(0,o._K)(h.ID,h)},21053:function(e,t,i){"use strict";var s=i("18475"),n=i("7194"),o=i("82272"),r=i("83368"),a=i("93642"),l=i("44138"),d=i("6301"),c=i("34752"),h=i("21095"),u=i("14800"),g=i("64641"),p=i("59923"),m=i("76617"),_=i("79895"),f=function(e,t){return function(i,s){t(i,s,e)}};let b=class extends a.T{constructor(e,t,i,s,n,o){super({showAlias:!1},e,i,s,n,o),this.codeEditorService=t}get activeTextEditorControl(){return(0,l.f6)(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){var e,t,i,s;return e=this,t=void 0,s=function*(){return this.getCodeEditorCommandPicks()},new(i=void 0,i=Promise)(function(n,o){function r(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})}};b=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([f(0,d.TG),f(1,r.$),f(2,c.d),f(3,h.Hy),f(4,u.b),f(5,g.S)],b);class y extends p.R6{constructor(){super({id:y.ID,label:o.UX.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:m.u.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(_.eJ).quickAccess.show(b.PREFIX)}}y.ID="editor.action.quickCommand",(0,p.Qr)(y),s.B.as(n.IP.Quickaccess).registerQuickAccessProvider({ctor:b,prefix:b.PREFIX,helpEntries:[{description:o.UX.quickCommandHelp,commandId:y.ID}]})},47562:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var s=i("9737"),n=i("16904"),o=i("80655"),r=i("83368"),a=i("72243"),l=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},d=function(e,t){return function(i,s){t(i,s,e)}};let c=class{constructor(e){this._codeEditorService=e,this.onDidLayout=n.ju.None,this.offset={top:0,quickPickTop:0}}get dimension(){return!this._dimension&&(this._dimension=s.D6(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}};c=l([d(0,r.$)],c);let h=class extends c{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};h=l([d(1,r.$)],h),(0,a.z)(o.F,c)},82498:function(e,t,i){"use strict";i.d(t,{Id:function(){return I},Mm:function(){return L},vr:function(){return N}});var s=i("9737"),n=i("85763"),o=i("68587"),r=i("98200"),a=i("31453"),l=i("2881"),d=i("19527"),c=i("7875");i("32444");var h=i("8339"),u=i("51553"),g=i("49436"),p=i("58935"),m=i("6301"),_=i("34752"),f=i("97669"),b=i("43692"),y=i("39703"),C=i("74697"),v=i("44138"),S=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,s){t(i,s,e)}},k=function(e,t,i,s){return new(i||(i=Promise))(function(n,o){function r(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})};function N(e,t,i,s,n,o,r){let l=e.getActions(t);return function(e,t,i,s=e=>"navigation"===e,n=Number.MAX_SAFE_INTEGER,o=()=>!1,r=!1){let l,d;Array.isArray(t)?(l=t,d=t):(l=t.primary,d=t.secondary);let c=new Set;for(let[t,n]of e){let e;for(let o of(s(t)?(e=l).length>0&&r&&e.push(new a.Z0):(e=d).length>0&&e.push(new a.Z0),n)){i&&(o=o instanceof u.U8&&o.alt?o.alt:o);let s=e.push(o);o instanceof a.wY&&c.add({group:t,action:o,index:s-1})}}for(let{group:e,action:t,index:i}of c){let r=s(e)?l:d,a=t.actions;(a.length<=1||r.length+a.length-2<=n)&&o(t,e,r.length)&&r.splice(i,1,...a)}if(l!==d&&l.length>n){let e=l.splice(n,l.length-n);d.unshift(...e,new a.Z0)}}(l,i,!1,"string"==typeof s?e=>e===s:s,n,o,r),function(e){let t=new d.SL;for(let[,i]of e)for(let e of i)t.add(e);return t}(l)}let L=class extends o.g{constructor(e,t,i,n,o,r,a){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=o,this._themeService=r,this._contextMenuService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new d.XK),this._altKey=s._q.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return k(this,void 0,void 0,function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}})}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(c.ED||c.IJ)&&this._altKey.keyStatus.shiftKey,n=()=>{var e;let s=t&&i&&!!(null===(e=this._commandAction.alt)||void 0===e?void 0:e.enabled);s!==this._wantsAltCommand&&(this._wantsAltCommand=s,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(e=>{i=e.altKey||(c.ED||c.IJ)&&e.shiftKey,n()})),this._register((0,s.nm)(e,"mouseleave",e=>{t=!1,n()})),this._register((0,s.nm)(e,"mouseenter",e=>{t=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;let t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),s=this._commandAction.tooltip||this._commandAction.label,n=i?(0,h.NC)("titleAndKb","{0} ({1})",s,i):s;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){let e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),s=i?(0,h.NC)("titleAndKb","{0} ({1})",e,i):e;n=(0,h.NC)("titleAndKbAndAlt","{0}\n[{1}] {2}",n,l.xo.modifierLabels[c.OS].altKey,s)}return n}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;let{element:i,label:n}=this;if(!i||!n)return;let o=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(o){if(y.kS.isThemeIcon(o)){let e=y.kS.asClassNameArray(o);n.classList.add(...e),this._itemClassDispose.value=(0,d.OF)(()=>{n.classList.remove(...e)})}else n.style.backgroundImage=(0,C._T)(this._themeService.getColorTheme().type)?(0,s.wY)(o.dark):(0,s.wY)(o.light),n.classList.add("icon"),this._itemClassDispose.value=(0,d.F8)((0,d.OF)(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}}};L=S([w(2,_.d),w(3,f.lT),w(4,g.i6),w(5,y.XE),w(6,p.i)],L);let x=class extends r.C{constructor(e,t,i,s){var n,o;super(e,{getActions:()=>e.actions},i,Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null!==(n=null==t?void 0:t.menuAsChild)&&void 0!==n&&n,classNames:null!==(o=null==t?void 0:t.classNames)&&void 0!==o?o:y.kS.isThemeIcon(e.item.icon)?y.kS.asClassName(e.item.icon):void 0})),this._contextMenuService=i,this._themeService=s}render(e){super.render(e),(0,v.p_)(this.element),e.classList.add("menu-entry");let{icon:t}=this._action.item;if(t&&!y.kS.isThemeIcon(t)){this.element.classList.add("icon");let e=()=>{this.element&&(this.element.style.backgroundImage=(0,C._T)(this._themeService.getColorTheme().type)?(0,s.wY)(t.dark):(0,s.wY)(t.light))};e(),this._register(this._themeService.onDidColorThemeChange(()=>{e()}))}}};x=S([w(2,p.i),w(3,y.XE)],x);let E=class extends o.Y{constructor(e,t,i,s,n,o,l,d){var c,h,g;let p;super(null,e),this._keybindingService=i,this._notificationService=s,this._contextMenuService=n,this._menuService=o,this._instaService=l,this._storageService=d,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let m=d.get(this._storageKey,1);m&&(p=e.actions.find(e=>m===e.id)),!p&&(p=e.actions[0]),this._defaultAction=this._instaService.createInstance(L,p,{keybinding:this._getDefaultActionKeybindingLabel(p)});let _=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null===(c=null==t?void 0:t.menuAsChild)||void 0===c||c,classNames:null!==(h=null==t?void 0:t.classNames)&&void 0!==h?h:["codicon","codicon-chevron-down"],actionRunner:null!==(g=null==t?void 0:t.actionRunner)&&void 0!==g?g:new a.Wi});this._dropdown=new r.C(e,e.actions,this._contextMenuService,_),this._dropdown.actionRunner.onDidRun(e=>{e.action instanceof u.U8&&this.update(e.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(L,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.Wi{runAction(e,t){return k(this,void 0,void 0,function*(){yield e.run(void 0)})}},this._container&&this._defaultAction.render((0,s.Ce)(this._container,(0,s.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){let t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");let t=(0,s.$)(".action-container");this._defaultAction.render((0,s.R3)(this._container,t)),this._register((0,s.nm)(t,s.tw.KEY_DOWN,e=>{let t=new n.y(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())}));let i=(0,s.$)(".dropdown-action-container");this._dropdown.render((0,s.R3)(this._container,i)),this._register((0,s.nm)(i,s.tw.KEY_DOWN,e=>{var t;let i=new n.y(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};function I(e,t,i){if(t instanceof u.U8)return e.createInstance(L,t,i);if(t instanceof u.NZ)return t.item.rememberDefaultAction?e.createInstance(E,t,i):e.createInstance(x,t,i)}E=S([w(2,_.d),w(3,f.lT),w(4,p.i),w(5,u.co),w(6,m.TG),w(7,b.Uy)],E)},91125:function(e,t,i){"use strict";i.d(t,{IP:function(){return c},eU:function(){return S},ny:function(){return w}});var s=i("3868"),n=i("16904"),o=i("44138"),r=i("8339"),a=i("53861"),l=i("29711"),d=i("18475");let c={Configuration:"base.contributions.configuration"},h={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},_={properties:{},patternProperties:{}},f="vscode://schemas/settings/resourceLanguage",b=d.B.as(l.I.JSONContribution),y="\\[([^\\]]+)\\]",C=RegExp(y,"g"),v=`^(${y})+$`,S=new RegExp(v);function w(e){let t=[];if(S.test(e)){let i=C.exec(e);for(;null==i?void 0:i.length;){let s=i[1].trim();s&&t.push(s),i=C.exec(e)}}return(0,s.EB)(t)}let k=new class e{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.Q5,this._onDidUpdateConfiguration=new n.Q5,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},b.registerSchema(f,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){let i=this.doRegisterConfigurations(e,t);b.registerSchema(f,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){var t;let i=[],s=[];for(let{overrides:n,source:l}of e)for(let e in n)if(i.push(e),S.test(e)){let i=this.configurationDefaultsOverrides.get(e),d=null!==(t=null==i?void 0:i.valuesSources)&&void 0!==t?t:new Map;if(l)for(let t of Object.keys(n[e]))d.set(t,l);let c=Object.assign(Object.assign({},(null==i?void 0:i.value)||{}),n[e]);this.configurationDefaultsOverrides.set(e,{source:l,value:c,valuesSources:d});let h=(0,a.UI)(e),u={type:"object",default:c,description:r.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",h),$ref:f,defaultDefaultValue:c,source:o.HD(l)?void 0:l,defaultValueSource:l};s.push(...w(e)),this.configurationProperties[e]=u,this.defaultLanguageConfigurationOverridesNode.properties[e]=u}else{this.configurationDefaultsOverrides.set(e,{value:n[e],source:l});let t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.registerOverrideIdentifiers(s),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}registerOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){let i=[];return e.forEach(e=>{i.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),i}validateAndRegisterProperties(e,t=!0,i,s,n=3){var a;n=o.Jp(e.scope)?n:e.scope;let l=[],d=e.properties;if(d)for(let e in d){let c=d[e];if(t&&function(e,t){var i,s,n,o;return e.trim()?S.test(e)?r.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==k.getConfigurationProperties()[e]?r.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==k.getPolicyConfigurations().get(null===(s=t.policy)||void 0===s?void 0:s.name)?r.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(n=t.policy)||void 0===n?void 0:n.name,k.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)):null:r.NC("config.property.empty","Cannot register an empty property")}(e,c)){delete d[e];continue}if(c.source=i,c.defaultDefaultValue=d[e].default,this.updatePropertyDefaultValue(e,c),S.test(e)?c.scope=void 0:(c.scope=o.Jp(c.scope)?n:c.scope,c.restricted=o.Jp(c.restricted)?!!(null==s?void 0:s.includes(e)):c.restricted),d[e].hasOwnProperty("included")&&!d[e].included){this.excludedConfigurationProperties[e]=d[e],delete d[e];continue}this.configurationProperties[e]=d[e],(null===(a=d[e].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(d[e].policy.name,e);!d[e].deprecationMessage&&d[e].markdownDeprecationMessage&&(d[e].deprecationMessage=d[e].markdownDeprecationMessage),l.push(e)}let c=e.allOf;if(c)for(let e of c)l.push(...this.validateAndRegisterProperties(e,t,i,s,n));return l}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let s=e.allOf;null==s||s.forEach(t)};t(e)}updateSchema(e,t){switch(h.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:_.properties[e]=t;break;case 5:_.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:r.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:f};this.updatePropertyDefaultValue(t,i),h.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,_.properties[t]=i}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){let e={type:"object",description:r.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:f};h.patternProperties[v]=e,u.patternProperties[v]=e,g.patternProperties[v]=e,p.patternProperties[v]=e,m.patternProperties[v]=e,_.patternProperties[v]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.configurationDefaultsOverrides.get(e),s=null==i?void 0:i.value,n=null==i?void 0:i.source;o.o8(s)&&(s=t.defaultDefaultValue,n=void 0),o.o8(s)&&(s=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=s,t.defaultValueSource=n}};d.B.add(c.Configuration,k)},29711:function(e,t,i){"use strict";i.d(t,{I:function(){return o}});var s=i("16904"),n=i("18475");let o={JSONContribution:"base.contributions.json"},r=new class e{constructor(){this._onDidChangeSchema=new s.Q5,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e).length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.B.add(o.JSONContribution,r)},21581:function(e,t,i){"use strict";i.d(t,{j:function(){return a}});var s=i("88980"),n=i("10109"),o=i("9064"),r=i("65463");class a extends o.L{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return s.kL.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":s.kL.toString(e.keyCode)}_getElectronAccelerator(e){return s.kL.toElectronAccelerator(e.keyCode)}_getDispatchPart(e){return a.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=s.kL.toString(e.keyCode)}_getSingleModifierDispatchPart(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){let t=s.Vd[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 83;case 52:return 81;case 53:return 87;case 54:return 89;case 55:return 88;case 56:break;case 57:return 80;case 58:return 90;case 59:return 86;case 60:return 82;case 61:return 84;case 62:return 85;case 106:return 92}return 0}static _resolveSimpleUserBinding(e){if(!e)return null;if(e instanceof n.QC)return e;let t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new n.QC(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveUserBinding(e,t){let i=(0,r.Z)(e.map(e=>this._resolveSimpleUserBinding(e)));return i.length>0?[new a(new n.X_(i),t)]:[]}}},68031:function(e,t,i){"use strict";i.d(t,{e:function(){return s}});let s=(0,i("6301").yh)("labelService")}}]);