@rsdoctor/client 0.3.2 → 0.3.4
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.
- package/dist/index.html +1 -1
- package/dist/resource/css/826.2794f707.css +4 -0
- package/dist/resource/font/{codicon.7fe16dbd.ttf → codicon.44bc17fa.ttf} +0 -0
- package/dist/resource/js/{505.b0671115.js → 826.5dba3977.js} +5 -5
- package/dist/resource/js/async/{811.1fbe2090.js → 811.aeb19dcb.js} +1 -1
- package/dist/resource/js/index.fdcaa546.js +156 -0
- package/dist/resource/js/monaco-0.92c812de.js +20 -0
- package/dist/resource/js/monaco-1.e42b60cc.js +18 -0
- package/dist/resource/js/monaco-10.4b1f76d7.js +1 -0
- package/dist/resource/js/monaco-11.3626543b.js +3 -0
- package/dist/resource/js/monaco-12.9d08b924.js +4 -0
- package/dist/resource/js/monaco-13.3d40eb04.js +1 -0
- package/dist/resource/js/monaco-14.371c9801.js +43 -0
- package/dist/resource/js/monaco-15.d73381b5.js +366 -0
- package/dist/resource/js/monaco-16.e11e3d10.js +42 -0
- package/dist/resource/js/monaco-17.f5db5e54.js +8 -0
- package/dist/resource/js/monaco-2.79f0bbbe.js +1 -0
- package/dist/resource/js/monaco-3.6eef79c7.js +14 -0
- package/dist/resource/js/monaco-4.b9b35171.js +301 -0
- package/dist/resource/js/monaco-5.0a6c00b3.js +9 -0
- package/dist/resource/js/monaco-6.042b95c8.js +3 -0
- package/dist/resource/js/monaco-7.69f7178e.js +3 -0
- package/dist/resource/js/monaco-8.480cca31.js +1 -0
- package/dist/resource/js/monaco-9.d55eba30.js +1 -0
- package/package.json +3 -3
- package/dist/resource/css/505.b09c71b1.css +0 -1
- package/dist/resource/js/index.fc9559d0.js +0 -156
- package/dist/resource/js/monaco-0.c3af1bd3.js +0 -2
- package/dist/resource/js/monaco-1.7ad7764f.js +0 -369
- package/dist/resource/js/monaco-10.4db28e1a.js +0 -4
- package/dist/resource/js/monaco-11.18edf242.js +0 -25
- package/dist/resource/js/monaco-12.f2868e03.js +0 -5
- package/dist/resource/js/monaco-13.88108488.js +0 -1
- package/dist/resource/js/monaco-14.9ed23e83.js +0 -70
- package/dist/resource/js/monaco-2.6895e134.js +0 -17
- package/dist/resource/js/monaco-3.51c02ad7.js +0 -31
- package/dist/resource/js/monaco-4.2525ec7c.js +0 -31
- package/dist/resource/js/monaco-5.5bc856bc.js +0 -1
- package/dist/resource/js/monaco-6.6e712e08.js +0 -1
- package/dist/resource/js/monaco-7.1fa8c3af.js +0 -1
- package/dist/resource/js/monaco-8.dcf3e8dc.js +0 -38
- package/dist/resource/js/monaco-9.7c59b09b.js +0 -7
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["310"],{55952:function(e,t,i){"use strict";let s,n;i.d(t,{$:function(){return eA},$Z:function(){return eO},Ay:function(){return ei},Ce:function(){return eD},Cp:function(){return eT},D6:function(){return function e(t,i){let s=S(t),n=s.document;if(t!==n.body)return new V(t.clientWidth,t.clientHeight);if(v.gn&&(null==s?void 0:s.visualViewport))return new V(s.visualViewport.width,s.visualViewport.height);if((null==s?void 0:s.innerWidth)&&s.innerHeight)return new V(s.innerWidth,s.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new V(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new V(n.documentElement.clientWidth,n.documentElement.clientHeight);if(i)return e(i);throw Error("Unable to figure out browser width and height")}},Dx:function(){return H},FK:function(){return G},GQ:function(){return P},H9:function(){return en},I8:function(){return q},If:function(){return Z},Jc:function(){return E},Jj:function(){return S},N5:function(){return em},OO:function(){return et},PO:function(){return A},R3:function(){return ek},Ro:function(){return V},Uh:function(){return eM},V3:function(){return eP},WN:function(){return el},XT:function(){return function e(t,i){if(void 0!==t){let s=t.match(/^\s*var\((.+)\)$/);if(s){let t=s[1].split(",",2);return 2===t.length&&(i=e(t[1].trim(),i)),`var(${t[0]}, ${i})`}return t}return i}},Xo:function(){return I},ZY:function(){return L},_0:function(){return eC},_F:function(){return ez},_h:function(){return e$},_q:function(){return eU},aU:function(){return eh},b5:function(){return eo},cl:function(){return e_},dS:function(){return ec},dp:function(){return K},e4:function(){return eL},ed:function(){return k},eg:function(){return eV},ey:function(){return N},fk:function(){return function e(t,i,s=ef()){var n,o;if(s&&i)for(let r of(null===(n=s.sheet)||void 0===n||n.insertRule(`${t} {${i}}`,0),null!==(o=ea.get(s))&&void 0!==o?o:[]))e(t,i,r)}},go:function(){return ex},h:function(){return eK},i:function(){return j},iJ:function(){return eR},jL:function(){return n},jg:function(){return Y},jt:function(){return eF},lI:function(){return s},mc:function(){return eI},mu:function(){return M},ne:function(){return $},nm:function(){return O},sQ:function(){return eH},se:function(){return F},tw:function(){return eb},uN:function(){return function e(t,i=ef()){var s,n;if(!i)return;let o=eg(i),r=[];for(let e=0;e<o.length;e++){let i=o[e];(function(e){return"string"==typeof e.selectorText})(i)&&-1!==i.selectorText.indexOf(t)&&r.push(e)}for(let e=r.length-1;e>=0;e--)null===(s=i.sheet)||void 0===s||s.deleteRule(r[e]);for(let s of null!==(n=ea.get(i))&&void 0!==n?n:[])e(t,s)}},uP:function(){return er},uU:function(){return X},vL:function(){return eS},vY:function(){return es},vd:function(){return ev},vx:function(){return B},w:function(){return Q},wY:function(){return eB},wn:function(){return J},xQ:function(){return W},zB:function(){return ew}});var o,r,l=i("5623"),a=i("3390"),h=i("12084"),d=i("67095"),c=i("1966"),u=i("45802"),p=i("98212"),f=i("67558"),g=i("37764"),m=i("6438"),v=i("97147"),b=i("53255"),_=i("91867");let{registerWindow:w,getWindow:S,getDocument:C,getWindows:y,getWindowsCount:x,getWindowId:L,getWindowById:k,hasWindow:D,onDidRegisterWindow:I,onWillUnregisterWindow:E,onDidUnregisterWindow:N}=function(){let e=new Map;(0,_.H)(_.E,1);let t={window:_.E,disposables:new g.SL};e.set(_.E.vscodeWindowId,t);let i=new p.Q5,s=new p.Q5,n=new p.Q5;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:n.event,onDidUnregisterWindow:s.event,registerWindow(t){if(e.has(t.vscodeWindowId))return g.JT.None;let o=new g.SL,r={window:t,disposables:o.add(new g.SL)};return e.set(t.vscodeWindowId,r),o.add((0,g.OF)(()=>{e.delete(t.vscodeWindowId),s.fire(t)})),o.add(O(t,eb.BEFORE_UNLOAD,()=>{n.fire(t)})),i.fire(r),o},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,s){let n="number"==typeof i?e.get(i):void 0;return null!=n?n:s?t:void 0},getWindow(e){var t;return(null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView)?e.ownerDocument.defaultView.window:(null==e?void 0:e.view)?e.view.window:_.E},getDocument:e=>S(e).document}}();function A(e){for(;e.firstChild;)e.firstChild.remove()}class R{constructor(e,t,i,s){this._node=e,this._type=t,this._handler=i,this._options=s||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function O(e,t,i,s){return new R(e,t,i,s)}function T(e,t){return function(i){return t(new d.n(e,i))}}let M=function(e,t,i,s){let n=i;if("click"===t||"mousedown"===t)n=T(S(e),i);else if("keydown"===t||"keypress"===t||"keyup"===t){var o;o=i,n=function(e){return o(new h.y(e))}}return O(e,t,n,s)},P=function(e,t,i){let s=T(S(e),t);return function(e,t,i){return O(e,v.gn&&a.D.pointerEvents?eb.POINTER_DOWN:eb.MOUSE_DOWN,t,i)}(e,s,i)};function F(e,t,i){return(0,c.y5)(e,t,i)}class B extends c.hF{constructor(e,t){super(e,t)}}class $ extends c.zh{constructor(e){super(),this.defaultTarget=e&&S(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,null!=i?i:this.defaultTarget)}}class z{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,u.dL)(e)}}static sort(e,t){return t.priority-e.priority}}function H(e){return S(e).getComputedStyle(e,null)}!function(){let e=new Map,t=new Map,i=new Map,o=new Map,r=s=>{var n;i.set(s,!1);let r=null!==(n=e.get(s))&&void 0!==n?n:[];for(t.set(s,r),e.set(s,[]),o.set(s,!0);r.length>0;)r.sort(z.sort),r.shift().execute();o.set(s,!1)};n=(t,s,n=0)=>{let o=L(t),l=new z(s,n),a=e.get(o);return!a&&(a=[],e.set(o,a)),a.push(l),!i.get(o)&&(i.set(o,!0),t.requestAnimationFrame(()=>r(o))),l},s=(e,i,s)=>{let r=L(e);if(!o.get(r))return n(e,i,s);{let e=new z(i,s),n=t.get(r);return!n&&(n=[],t.set(r,n)),n.push(e),e}}}();class U{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){let s=H(e),n=s?s.getPropertyValue(t):"0";return U.convertToPixels(e,n)}static getBorderLeftWidth(e){return U.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return U.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return U.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return U.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return U.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return U.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return U.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return U.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return U.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return U.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return U.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return U.getDimension(e,"margin-bottom","marginBottom")}}class V{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new V(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof V?e:new V(e.width,e.height)}static equals(e,t){return e===t||!!e&&!!t&&e.width===t.width&&e.height===t.height}}function W(e){let t=e.offsetParent,i=e.offsetTop,s=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;let n=ee(e)?null:H(e);n&&(s-="rtl"!==n.direction?e.scrollLeft:-e.scrollLeft),e===t&&(s+=U.getBorderLeftWidth(e),i+=U.getBorderTopWidth(e)+e.offsetTop,s+=e.offsetLeft,t=e.offsetParent)}return{left:s,top:i}}function K(e,t,i){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof i&&(e.style.height=`${i}px`)}function j(e){let t=e.getBoundingClientRect(),i=S(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function q(e){let t=e,i=1;do{let e=H(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function Q(e){let t=U.getMarginLeft(e)+U.getMarginRight(e);return e.offsetWidth+t}function G(e){let t=U.getBorderLeftWidth(e)+U.getBorderRightWidth(e),i=U.getPaddingLeft(e)+U.getPaddingRight(e);return e.offsetWidth-t-i}function Z(e){let t=U.getBorderTopWidth(e)+U.getBorderBottomWidth(e),i=U.getPaddingTop(e)+U.getPaddingBottom(e);return e.offsetHeight-t-i}function J(e){let t=U.getMarginTop(e)+U.getMarginBottom(e);return e.offsetHeight+t}function Y(e,t){return!!(null==t?void 0:t.contains(e))}V.None=new V(0,0);function X(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i){if("string"==typeof i){if(e.classList.contains(i))break}else if(e===i)break}e=e.parentNode}return null}(e,t,i)}function ee(e){return e&&!!e.host&&!!e.mode}function et(e){return!!ei(e)}function ei(e){for(var t;e.parentNode;){if(e===(null===(t=e.ownerDocument)||void 0===t?void 0:t.body))return null;e=e.parentNode}return ee(e)?e:null}function es(){let e=er().activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function en(e){return es()===e}function eo(e){return Y(es(),e)}function er(){var e;return 1>=x()?_.E.document:null!==(e=Array.from(y()).map(({window:e})=>e.document).find(e=>e.hasFocus()))&&void 0!==e?e:_.E.document}function el(){var e,t;return null!==(t=null===(e=er().defaultView)||void 0===e?void 0:e.window)&&void 0!==t?t:_.E}let ea=new Map;function eh(){return new ed}class ed{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=ec(_.E.document.head,t=>t.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function ec(e=_.E.document.head,t,i){let s=document.createElement("style");if(s.type="text/css",s.media="screen",null==t||t(s),e.appendChild(s),i&&i.add((0,g.OF)(()=>e.removeChild(s))),e===_.E.document.head){let e=new Set;for(let{window:t,disposables:n}of(ea.set(s,e),y())){if(t===_.E)continue;let o=n.add(function(e,t,i){var s,n;let o=new g.SL,r=e.cloneNode(!0);for(let t of(i.document.head.appendChild(r),o.add((0,g.OF)(()=>i.document.head.removeChild(r))),eg(e)))null===(s=r.sheet)||void 0===s||s.insertRule(t.cssText,null===(n=r.sheet)||void 0===n?void 0:n.cssRules.length);return o.add(eu.observe(e,o,{childList:!0})(()=>{r.textContent=e.textContent})),t.add(r),o.add((0,g.OF)(()=>t.delete(r))),o}(s,e,t));null==i||i.add(o)}}return s}let eu=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let s=this.mutationObservers.get(e);!s&&(s=new Map,this.mutationObservers.set(e,s));let n=(0,b.vp)(i),o=s.get(n);if(o)o.users+=1;else{let r=new p.Q5,l=new MutationObserver(e=>r.fire(e));l.observe(e,i);let a=o={users:1,observer:l,onDidMutate:r.event};t.add((0,g.OF)(()=>{a.users-=1,0===a.users&&(r.dispose(),l.disconnect(),null==s||s.delete(n),(null==s?void 0:s.size)===0&&this.mutationObservers.delete(e))})),s.set(n,o)}return o.onDidMutate}},ep=null;function ef(){return!ep&&(ep=ec()),ep}function eg(e){var t,i;return(null===(t=null==e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null==e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function em(e){return e instanceof MouseEvent||e instanceof S(e).MouseEvent}function ev(e){return e instanceof KeyboardEvent||e instanceof S(e).KeyboardEvent}let eb={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:l.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:l.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:l.Pf?"webkitAnimationIteration":"animationiteration"};function e_(e){return!!(e&&"function"==typeof e.preventDefault&&"function"==typeof e.stopPropagation)}let ew={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function eS(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function eC(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class ey extends g.JT{static hasFocusWithin(e){if(!(e instanceof HTMLElement))return Y(e.document.activeElement,e.document);{let t=ei(e);return Y(t?t.activeElement:e.ownerDocument.activeElement,e)}}constructor(e){super(),this._onDidFocus=this._register(new p.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new p.Q5),this.onDidBlur=this._onDidBlur.event;let t=ey.hasFocusWithin(e),i=!1,s=()=>{i=!1,!t&&(t=!0,this._onDidFocus.fire())},n=()=>{t&&(i=!0,(e instanceof HTMLElement?S(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{ey.hasFocusWithin(e)!==t&&(t?n():s())},this._register(O(e,eb.FOCUS,s,!0)),this._register(O(e,eb.BLUR,n,!0)),e instanceof HTMLElement&&(this._register(O(e,eb.FOCUS_IN,()=>this._refreshStateHandler())),this._register(O(e,eb.FOCUS_OUT,()=>this._refreshStateHandler())))}}function ex(e){return new ey(e)}function eL(e,t){return e.after(t),t}function ek(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function eD(e,t){return e.insertBefore(t,e.firstChild),t}function eI(e,...t){e.innerText="",ek(e,...t)}let eE=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function eN(e,t,i,...s){let n;let o=eE.exec(t);if(!o)throw Error("Bad use of emmet");let l=o[1]||"div";return n=e!==r.HTML?document.createElementNS(e,l):document.createElement(l),o[3]&&(n.id=o[3]),o[4]&&(n.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?n[e]=t:"selected"===e?t&&n.setAttribute(e,"true"):n.setAttribute(e,t))}),n.append(...s),n}function eA(e,t,...i){return eN(r.HTML,e,t,...i)}function eR(e,...t){e?eO(...t):eT(...t)}function eO(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function eT(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function eM(e,t){return Math.max(1,Math.floor(e.devicePixelRatio*t))/e.devicePixelRatio}function eP(e){_.E.open(e,"_blank","noopener")}function eF(e,t){let i=()=>{t(),s=n(e,i)},s=n(e,i);return(0,g.OF)(()=>s.dispose())}function eB(e){return e?`url('${m.Gi.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function e$(e){return`'${e.replace(/'/g,"%27")}'`}(o=r||(r={})).HTML="http://www.w3.org/1999/xhtml",o.SVG="http://www.w3.org/2000/svg",eA.SVG=function(e,t,...i){return eN(r.SVG,e,t,...i)},m.WX.setPreferredWebSchema(/^https:/.test(_.E.location.href)?"https":"http");function ez(e,t=!1){let i=document.createElement("a");return f.v5("afterSanitizeAttributes",s=>{for(let n of["href","src"])if(s.hasAttribute(n)){let o=s.getAttribute(n);if("href"===n&&o.startsWith("#"))continue;if(i.href=o,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===n&&i.href.startsWith("data:"))continue;s.removeAttribute(n)}}}),(0,g.OF)(()=>{f.ok("afterSanitizeAttributes")})}let eH=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class eU extends p.Q5{constructor(){super(),this._subscriptions=new g.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(p.ju.runAndSubscribe(I,({window:e,disposables:t})=>this.registerListeners(e,t),{window:_.E,disposables:this._subscriptions}))}registerListeners(e,t){t.add(O(e,"keydown",e=>{if(e.defaultPrevented)return;let t=new h.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),t.add(O(e,"keyup",e=>{!e.defaultPrevented&&(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),t.add(O(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(O(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(O(e.document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(O(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return!eU.instance&&(eU.instance=new eU),eU.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class eV extends g.JT{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(O(this.element,eb.DRAG_START,e=>{var t,i;null===(i=(t=this.callbacks).onDragStart)||void 0===i||i.call(t,e)})),this.callbacks.onDrag&&this._register(O(this.element,eb.DRAG,e=>{var t,i;null===(i=(t=this.callbacks).onDrag)||void 0===i||i.call(t,e)})),this._register(O(this.element,eb.DRAG_ENTER,e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,null===(i=(t=this.callbacks).onDragEnter)||void 0===i||i.call(t,e)})),this._register(O(this.element,eb.DRAG_OVER,e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)})),this._register(O(this.element,eb.DRAG_LEAVE,e=>{var t,i;this.counter--,0===this.counter&&(this.dragStartTime=0,null===(i=(t=this.callbacks).onDragLeave)||void 0===i||i.call(t,e))})),this._register(O(this.element,eb.DRAG_END,e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDragEnd)||void 0===i||i.call(t,e)})),this._register(O(this.element,eb.DROP,e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDrop)||void 0===i||i.call(t,e)}))}}let eW=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function eK(e,...t){let i,s;Array.isArray(t[0])?(i={},s=t[0]):(i=t[0]||{},s=t[1]);let n=eW.exec(e);if(!n||!n.groups)throw Error("Bad use of h");let o=n.groups.tag||"div",r=document.createElement(o);n.groups.id&&(r.id=n.groups.id);let l=[];if(n.groups.class)for(let e of n.groups.class.split("."))""!==e&&l.push(e);if(void 0!==i.className)for(let e of i.className.split("."))""!==e&&l.push(e);l.length>0&&(r.className=l.join(" "));let a={};if(n.groups.name&&(a[n.groups.name]=r),s)for(let e of s)e instanceof HTMLElement?r.appendChild(e):"string"==typeof e?r.append(e):"root"in e&&(Object.assign(a,e),r.appendChild(e.root));for(let[e,t]of Object.entries(i)){if("className"!==e)if("style"===e)for(let[e,i]of Object.entries(t))r.style.setProperty(ej(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?r.tabIndex=t:r.setAttribute(ej(e),t.toString())}return a.root=r,a}function ej(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},76377:function(e,t,i){"use strict";i.d(t,{T:function(){return a}});var s=i("55952"),n=i("98212"),o=i("37764");class r extends o.JT{constructor(e){super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;null===(i=this._mediaQueryList)||void 0===i||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class l extends o.JT{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new n.Q5),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);let t=this._register(new r(e));this._register(t.onDidChange(()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)}))}_getPixelRatio(e){let t=document.createElement("canvas").getContext("2d"),i=e.devicePixelRatio||1;return i/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}let a=new class e{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){let t=(0,s.ZY)(e),i=this.mapWindowIdToPixelRatioMonitor.get(t);return!i&&(i=(0,o.dk)(new l(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,o.dk)(n.ju.once(s.ey)(({vscodeWindowId:e})=>{e===t&&(null==i||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))}))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},70432:function(e,t,i){"use strict";i.d(t,{$B:function(){return M},AA:function(){return o},Et:function(){return F},Zo:function(){return V},aV:function(){return et},cK:function(){return R},dk:function(){return P},hD:function(){return T},iK:function(){return function e(t){return!!("A"===t.tagName&&t.classList.contains("monaco-button")||"DIV"===t.tagName&&t.classList.contains("monaco-button-dropdown"))||!t.classList.contains("monaco-list")&&!!t.parentElement&&e(t.parentElement)}},sx:function(){return j},uZ:function(){return Q},wD:function(){return q},wn:function(){return W},xf:function(){return B}});var s,n,o,r,l=i("55952"),a=i("44608"),h=i("12084"),d=i("19711"),c=i("74471"),u=i("23910"),p=i("47983"),f=i("1966"),g=i("52640"),m=i("59287"),v=i("98212"),b=i("27236"),_=i("37764"),w=i("45065"),S=i("97147"),C=i("67414");i("59858");var y=i("83224"),x=i("90350"),L=i("67095"),k=i("56136"),D=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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};class I{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){let s=this.renderedElements.findIndex(e=>e.templateData===i);if(s>=0){let e=this.renderedElements[s];this.trait.unrender(i),e.index=t}else this.renderedElements.push({index:t,templateData:i});this.trait.renderIndex(t,i)}splice(e,t,i){let s=[];for(let n of this.renderedElements)n.index<e?s.push(n):n.index>=e+t&&s.push({index:n.index+i-t,templateData:n.templateData});this.renderedElements=s}renderIndexes(e){for(let{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){let t=this.renderedElements.findIndex(t=>t.templateData===e);!(t<0)&&this.renderedElements.splice(t,1)}}class E{get name(){return this._trait}get renderer(){return new I(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new v.Q5,this.onChange=this._onChange.event}splice(e,t,i){let s=i.length-t,n=e+t,o=[],r=0;for(;r<this.sortedIndexes.length&&this.sortedIndexes[r]<e;)o.push(this.sortedIndexes[r++]);for(let t=0;t<i.length;t++)i[t]&&o.push(t+e);for(;r<this.sortedIndexes.length&&this.sortedIndexes[r]>=n;)o.push(this.sortedIndexes[r++]+s);this.renderer.splice(e,t,i.length),this._set(o,o)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(J),t)}_set(e,t,i){let s=this.indexes,n=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;let o=Z(n,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:i}),s}get(){return this.indexes}contains(e){return(0,p.ry)(this.sortedIndexes,e,J)>=0}dispose(){(0,_.B9)(this._onChange)}}D([m.H],E.prototype,"renderer",null);class N extends E{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class A{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,Array(i.length).fill(!1));let s=this.trait.get().map(e=>this.identityProvider.getId(this.view.element(e)).toString());if(0===s.length)return this.trait.splice(e,t,Array(i.length).fill(!1));let n=new Set(s),o=i.map(e=>n.has(this.identityProvider.getId(e).toString()));this.trait.splice(e,t,o)}}function R(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function O(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&!!e.parentElement&&O(e.parentElement,t)}function T(e){return O(e,"monaco-editor")}function M(e){return O(e,"monaco-custom-toggle")}function P(e){return O(e,"action-item")}function F(e){return O(e,"monaco-tree-sticky-row")}function B(e){return e.classList.contains("monaco-tree-sticky-container")}class ${get onKeyDown(){return v.ju.chain(this.disposables.add(new a.Y(this.view.domNode,"keydown")).event,e=>e.filter(e=>!R(e.target)).map(e=>new h.y(e)))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new _.SL,this.multipleSelectionDisposables=new _.SL,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown(e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(S.dz?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}}))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);let t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);let t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);let t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);let t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,p.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}D([m.H],$.prototype,"onKeyDown",null),(s=o||(o={}))[s.Automatic=0]="Automatic",s[s.Trigger=1]="Trigger",(n=r||(r={}))[n.Idle=0]="Idle",n[n.Typing=1]="Typing";let z=new class{mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class H{constructor(e,t,i,s,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=s,this.delegate=n,this.enabled=!1,this.state=r.Idle,this.mode=o.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new _.SL,this.disposables=new _.SL,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:o.Automatic}enable(){if(this.enabled)return;let e=!1,t=v.ju.chain(this.enabledDisposables.add(new a.Y(this.view.domNode,"keydown")).event,t=>t.filter(e=>!R(e.target)).filter(()=>this.mode===o.Automatic||this.triggered).map(e=>new h.y(e)).filter(t=>e||this.keyboardNavigationEventFilter(t)).filter(e=>this.delegate.mightProducePrintableCharacter(e)).forEach(e=>l.zB.stop(e,!0)).map(e=>e.browserEvent.key)),i=v.ju.debounce(t,()=>null,800,void 0,void 0,void 0,this.enabledDisposables);v.ju.reduce(v.ju.any(t,i),(e,t)=>null===t?null:(e||"")+t,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t(()=>e=!0,void 0,this.enabledDisposables),i(()=>e=!1,void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;let t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){let i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));"string"==typeof i?(0,c.Z9)(i):i&&(0,c.Z9)(i.get())}this.previouslyFocused=-1}onInput(e){if(!e){this.state=r.Idle,this.triggered=!1;return}let t=this.list.getFocus(),i=t.length>0?t[0]:0,s=this.state===r.Idle?1:0;this.state=r.Typing;for(let t=0;t<this.list.length;t++){let n=(i+t+s)%this.list.length,o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(n)),r=o&&o.toString();if(this.list.options.typeNavigationEnabled){if(void 0!==r){if((0,b.Ji)(e,r)){this.previouslyFocused=i,this.list.setFocus([n]),this.list.reveal(n);return}let t=(0,b.XU)(e,r);if(t&&t[0].end-t[0].start>1&&1===t.length){this.previouslyFocused=i,this.list.setFocus([n]),this.list.reveal(n);return}}}else if(void 0===r||(0,b.Ji)(e,r)){this.previouslyFocused=i,this.list.setFocus([n]),this.list.reveal(n);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class U{constructor(e,t){this.list=e,this.view=t,this.disposables=new _.SL;let i=v.ju.chain(this.disposables.add(new a.Y(t.domNode,"keydown")).event,e=>e.filter(e=>!R(e.target)).map(e=>new h.y(e)));v.ju.chain(i,e=>e.filter(e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;let t=this.list.getFocus();if(0===t.length)return;let i=this.view.domElement(t[0]);if(!i)return;let s=i.querySelector("[tabIndex]");if(!s||!(s instanceof HTMLElement)||-1===s.tabIndex)return;let n=(0,l.Jj)(s).getComputedStyle(s);"hidden"!==n.visibility&&"none"!==n.display&&(e.preventDefault(),e.stopPropagation(),s.focus())}dispose(){this.disposables.dispose()}}function V(e){return S.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function W(e){return e.browserEvent.shiftKey}let K={isSelectionSingleChangeEvent:V,isSelectionRangeChangeEvent:W};class j{constructor(e){this.list=e,this.disposables=new _.SL,this._onPointer=new v.Q5,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||K),this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(d.o.addTarget(e.getHTMLElement()))),v.ju.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||K))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){!T(e.browserEvent.target)&&(0,l.vY)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(R(e.browserEvent.target)||T(e.browserEvent.target))return;let t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){var t;if(!this.mouseSupport||R(e.browserEvent.target)||T(e.browserEvent.target)||e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;let i=e.index;if(void 0===i){this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionChangeEvent(e))return this.changeSelection(e);if(this.list.setFocus([i],e.browserEvent),this.list.setAnchor(i),t=e.browserEvent,!(0,l.N5)(t)||2!==t.button)this.list.setSelection([i],e.browserEvent);this._onPointer.fire(e)}onDoubleClick(e){if(R(e.browserEvent.target)||T(e.browserEvent.target)||this.isSelectionChangeEvent(e)||e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;let t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){let t=e.index,i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(void 0===i){let e=this.list.getFocus()[0];i=null!=e?e:t,this.list.setAnchor(i)}let s=Math.min(i,t),n=Math.max(i,t),o=(0,p.w6)(s,n+1),r=this.list.getSelection(),l=function(e,t){let i=e.indexOf(t);if(-1===i)return[];let s=[],n=i-1;for(;n>=0&&e[n]===t-(i-n);)s.push(e[n--]);for(s.reverse(),n=i;n<e.length&&e[n]===t+(n-i);)s.push(e[n++]);return s}(Z(r,[i]),i);if(0===l.length)return;let a=Z(o,function(e,t){let i=[],s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else if(e[s]===t[n]){s++,n++;continue}else e[s]<t[n]?i.push(e[s++]):n++;return i}(r,l));this.list.setSelection(a,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){let i=this.list.getSelection(),s=i.filter(e=>e!==t);this.list.setFocus([t]),this.list.setAnchor(t),i.length===s.length?this.list.setSelection([...s,t],e.browserEvent):this.list.setSelection(s,e.browserEvent)}}dispose(){this.disposables.dispose()}}class q{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;let s=this.selectorSuffix&&`.${this.selectorSuffix}`,n=[];e.listBackground&&n.push(`.monaco-list${s} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(n.push(`.monaco-list${s}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),n.push(`.monaco-list${s}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&n.push(`.monaco-list${s}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(n.push(`.monaco-list${s}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),n.push(`.monaco-list${s}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&n.push(`.monaco-list${s}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&n.push(`.monaco-list${s}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&n.push(`
|
|
2
|
+
.monaco-drag-image,
|
|
3
|
+
.monaco-list${s}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }
|
|
4
|
+
`),e.listFocusAndSelectionForeground&&n.push(`
|
|
5
|
+
.monaco-drag-image,
|
|
6
|
+
.monaco-list${s}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }
|
|
7
|
+
`),e.listInactiveFocusForeground&&(n.push(`.monaco-list${s} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),n.push(`.monaco-list${s} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&n.push(`.monaco-list${s} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(n.push(`.monaco-list${s} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),n.push(`.monaco-list${s} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(n.push(`.monaco-list${s} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),n.push(`.monaco-list${s} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&n.push(`.monaco-list${s} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&n.push(`.monaco-list${s}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&n.push(`.monaco-list${s}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);let o=(0,l.XT)(e.listFocusAndSelectionOutline,(0,l.XT)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));o&&n.push(`.monaco-list${s}:focus .monaco-list-row.focused.selected { outline: 1px solid ${o}; outline-offset: -1px;}`),e.listFocusOutline&&n.push(`
|
|
8
|
+
.monaco-drag-image,
|
|
9
|
+
.monaco-list${s}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }
|
|
10
|
+
.monaco-workbench.context-menu-visible .monaco-list${s}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }
|
|
11
|
+
`);let r=(0,l.XT)(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");r&&n.push(`.monaco-list${s} .monaco-list-row.focused.selected { outline: 1px dotted ${r}; outline-offset: -1px; }`),e.listSelectionOutline&&n.push(`.monaco-list${s} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&n.push(`.monaco-list${s} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&n.push(`.monaco-list${s} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&n.push(`
|
|
12
|
+
.monaco-list${s}.drop-target,
|
|
13
|
+
.monaco-list${s} .monaco-list-rows.drop-target,
|
|
14
|
+
.monaco-list${s} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }
|
|
15
|
+
`),e.listDropBetweenBackground&&(n.push(`
|
|
16
|
+
.monaco-list${s} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,
|
|
17
|
+
.monaco-list${s} .monaco-list-row.drop-target-before::before {
|
|
18
|
+
content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;
|
|
19
|
+
background-color: ${e.listDropBetweenBackground};
|
|
20
|
+
}`),n.push(`
|
|
21
|
+
.monaco-list${s} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,
|
|
22
|
+
.monaco-list${s} .monaco-list-row.drop-target-after::after {
|
|
23
|
+
content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;
|
|
24
|
+
background-color: ${e.listDropBetweenBackground};
|
|
25
|
+
}`)),e.tableColumnsBorder&&n.push(`
|
|
26
|
+
.monaco-table > .monaco-split-view2,
|
|
27
|
+
.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,
|
|
28
|
+
.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,
|
|
29
|
+
.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
|
|
30
|
+
border-color: ${e.tableColumnsBorder};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,
|
|
34
|
+
.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {
|
|
35
|
+
border-color: transparent;
|
|
36
|
+
}
|
|
37
|
+
`),e.tableOddRowsBackgroundColor&&n.push(`
|
|
38
|
+
.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,
|
|
39
|
+
.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,
|
|
40
|
+
.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {
|
|
41
|
+
background-color: ${e.tableOddRowsBackgroundColor};
|
|
42
|
+
}
|
|
43
|
+
`),this.styleElement.textContent=n.join("\n")}}let Q={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:g.Il.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:g.Il.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:g.Il.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},G={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function Z(e,t){let i=[],s=0,n=0;for(;s<e.length||n<t.length;)if(s>=e.length)i.push(t[n++]);else if(n>=t.length)i.push(e[s++]);else if(e[s]===t[n]){i.push(e[s]),s++,n++;continue}else e[s]<t[n]?i.push(e[s++]):i.push(t[n++]);return i}let J=(e,t)=>e-t;class Y{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,i,s){let n=0;for(let o of this.renderers)o.renderElement(e,t,i[n++],s)}disposeElement(e,t,i,s){var n;let o=0;for(let r of this.renderers)null===(n=r.disposeElement)||void 0===n||n.call(r,e,t,i[o],s),o+=1}disposeTemplate(e){let t=0;for(let i of this.renderers)i.disposeTemplate(e[t++])}}class X{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new _.SL}}renderElement(e,t,i){let s=this.accessibilityProvider.getAriaLabel(e),n=s&&"string"!=typeof s?s:(0,k.Dz)(s);i.disposables.add((0,k.EH)(e=>{this.setAriaLabel(e.readObservable(n),i.container)}));let o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof o?i.container.setAttribute("aria-level",`${o}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,s){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class ee{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){let t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,s;null===(s=(i=this.dnd).onDragStart)||void 0===s||s.call(i,e,t)}onDragOver(e,t,i,s,n){return this.dnd.onDragOver(e,t,i,s,n)}onDragLeave(e,t,i,s){var n,o;null===(o=(n=this.dnd).onDragLeave)||void 0===o||o.call(n,e,t,i,s)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,s,n){this.dnd.drop(e,t,i,s,n)}dispose(){this.dnd.dispose()}}class et{get onDidChangeFocus(){return v.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e),this.disposables)}get onDidChangeSelection(){return v.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1,t=v.ju.chain(this.disposables.add(new a.Y(this.view.domNode,"keydown")).event,t=>t.map(e=>new h.y(e)).filter(t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode).map(e=>l.zB.stop(e,!0)).filter(()=>!1)),i=v.ju.chain(this.disposables.add(new a.Y(this.view.domNode,"keyup")).event,t=>t.forEach(()=>e=!1).map(e=>new h.y(e)).filter(e=>58===e.keyCode||e.shiftKey&&68===e.keyCode).map(e=>l.zB.stop(e,!0)).map(({browserEvent:e})=>{let t=this.getFocus(),i=t.length?t[0]:void 0,s=void 0!==i?this.view.element(i):void 0,n=void 0!==i?this.view.domElement(i):this.view.domNode;return{index:i,element:s,anchor:n,browserEvent:e}})),s=v.ju.chain(this.view.onContextMenu,t=>t.filter(t=>!e).map(({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new L.n((0,l.Jj)(this.view.domNode),i),browserEvent:i})));return v.ju.any(t,i,s)}get onKeyDown(){return this.disposables.add(new a.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return v.ju.signal(this.disposables.add(new a.Y(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return v.ju.signal(this.disposables.add(new a.Y(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,s,n=G){var o,r,a,h;this.user=e,this._options=n,this.focus=new E("focused"),this.anchor=new E("anchor"),this.eventBufferer=new v.E7,this._ariaLabel="",this.disposables=new _.SL,this._onDidDispose=new v.Q5,this.onDidDispose=this._onDidDispose.event;let d=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(o=this._options.accessibilityProvider)||void 0===o?void 0:o.getWidgetRole():"list";this.selection=new N("listbox"!==d);let c=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=n.accessibilityProvider,this.accessibilityProvider&&(c.push(new X(this.accessibilityProvider)),null===(a=(r=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===a||a.call(r,this.onDidChangeActiveDescendant,this,this.disposables)),s=s.map(e=>new Y(e.templateId,[...c,e]));let p={...n,dnd:n.dnd&&new ee(this,n.dnd)};if(this.view=this.createListView(t,i,s,p),this.view.domNode.setAttribute("role",d),n.styleController)this.styleController=n.styleController(this.view.domId);else{let e=(0,l.dS)(this.view.domNode);this.styleController=new q(e,this.view.domId)}if(this.spliceable=new u.J([new A(this.focus,this.view,n.identityProvider),new A(this.selection,this.view,n.identityProvider),new A(this.anchor,this.view,n.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new U(this,this.view)),("boolean"!=typeof n.keyboardSupport||n.keyboardSupport)&&(this.keyboardController=new $(this,this.view,n),this.disposables.add(this.keyboardController)),n.keyboardNavigationLabelProvider){let e=n.keyboardNavigationDelegate||z;this.typeNavigationController=new H(this,this.view,n.keyboardNavigationLabelProvider,null!==(h=n.keyboardNavigationEventFilter)&&void 0!==h?h:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(n),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,s){return new x.Bv(e,t,i,s)}createMouseController(e){return new j(this)}updateOptions(e={}){var t,i;this._options={...this._options,...e},null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new y.A(this.user,`Invalid start index: ${e}`);if(t<0)throw new y.A(this.user,`Invalid delete count: ${t}`);(0!==t||0!==i.length)&&this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(let t of e)if(t<0||t>=this.length)throw new y.A(this.user,`Invalid index ${t}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(void 0===e){this.anchor.set([]);return}if(e<0||e>=this.length)throw new y.A(this.user,`Invalid index ${e}`);this.anchor.set([e])}getAnchor(){return(0,p.Xh)(this.anchor.get(),void 0)}getAnchorElement(){let e=this.getAnchor();return void 0===e?void 0:this.element(e)}setFocus(e,t){for(let t of e)if(t<0||t>=this.length)throw new y.A(this.user,`Invalid index ${t}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,s){if(0===this.length)return;let n=this.focus.get(),o=this.findNextIndex(n.length>0?n[0]+e:0,t,s);o>-1&&this.setFocus([o],i)}focusPrevious(e=1,t=!1,i,s){if(0===this.length)return;let n=this.focus.get(),o=this.findPreviousIndex(n.length>0?n[0]-e:0,t,s);o>-1&&this.setFocus([o],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;let s=this.getFocus()[0];if(s!==i&&(void 0===s||i>s)){let n=this.findPreviousIndex(i,!1,t);n>-1&&s!==n?this.setFocus([n],e):this.setFocus([i],e)}else{let n=this.view.getScrollTop(),o=n+this.view.renderHeight;i>s&&(o-=this.view.elementHeight(i)),this.view.setScrollTop(o),this.view.getScrollTop()!==n&&(this.setFocus([]),await (0,f.Vs)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=()=>0){let s;let n=i(),o=this.view.getScrollTop()+n;s=0===o?this.view.indexAt(o):this.view.indexAfter(o-1);let r=this.getFocus()[0];if(r!==s&&(void 0===r||r>=s)){let i=this.findNextIndex(s,!1,t);i>-1&&r!==i?this.setFocus([i],e):this.setFocus([s],e)}else this.view.setScrollTop(o-this.view.renderHeight-n),this.view.getScrollTop()+i()!==o&&(this.setFocus([]),await (0,f.Vs)(0),await this.focusPreviousPage(e,t,i))}focusLast(e,t){if(0===this.length)return;let i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;let s=this.findNextIndex(e,!1,i);s>-1&&this.setFocus([s],t)}findNextIndex(e,t=!1,i){for(let s=0;s<this.length&&(!(e>=this.length)||t);s++){;if(e%=this.length,!i||i(this.element(e)))return e;e++}return -1}findPreviousIndex(e,t=!1,i){for(let s=0;s<this.length&&(!(e<0)||t);s++){;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return -1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(e=>this.view.element(e))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new y.A(this.user,`Invalid index ${e}`);let s=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if((0,C.hj)(t)){let e=o-this.view.renderHeight+i;this.view.setScrollTop(e*(0,w.uZ)(t,0,1)+n-i)}else{let e=n+o,t=s+this.view.renderHeight;n<s+i&&e>=t||(n<s+i||e>=t&&o>=this.view.renderHeight?this.view.setScrollTop(n-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new y.A(this.user,`Invalid index ${e}`);let i=this.view.getScrollTop(),s=this.view.elementTop(e),n=this.view.elementHeight(e);if(s<i+t||s+n>i+this.view.renderHeight)return null;let o=n-this.view.renderHeight+t;return Math.abs((i+t-s)/o)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(e=>this.view.element(e)),browserEvent:t}}_onFocusChange(){let e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;let t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){let e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}D([m.H],et.prototype,"onDidChangeFocus",null),D([m.H],et.prototype,"onDidChangeSelection",null),D([m.H],et.prototype,"onContextMenu",null),D([m.H],et.prototype,"onKeyDown",null),D([m.H],et.prototype,"onDidFocus",null),D([m.H],et.prototype,"onDidBlur",null)},58707:function(e,t,i){"use strict";i.d(t,{A:function(){return a}});var s=i("67095"),n=i("60560"),o=i("29518"),r=i("32488"),l=i("76115");class a extends n.T{constructor(e,t,i){let n=e.getScrollDimensions();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new r.M(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,e.getCurrentScrollPosition().scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){let e=(t.arrowSize-o.J)/2,i=(t.verticalScrollbarSize-o.J)/2;this._createArrow({className:"scra",icon:l.l.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new s.q(null,0,1))}),this._createArrow({className:"scra",icon:l.l.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new s.q(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}},89526:function(e,t,i){"use strict";i.d(t,{v:function(){return _}});var s=i("55952"),n=i("44608"),o=i("12084"),r=i("33565"),l=i("58036"),a=i("94260"),h=i("70432"),d=i("47983"),c=i("98212"),u=i("85376"),p=i("37764"),f=i("97147");i("39850");var g=i("94479");let m=s.$,v="selectOption.entry.template";class b{get templateId(){return v}renderTemplate(e){let t=Object.create(null);return t.root=e,t.text=s.R3(e,m(".option-text")),t.detail=s.R3(e,m(".option-detail")),t.decoratorRight=s.R3(e,m(".option-decorator-right")),t}renderElement(e,t,i){let s=e.text,n=e.detail,o=e.decoratorRight,r=e.isDisabled;i.text.textContent=s,i.detail.textContent=n||"",i.decoratorRight.innerText=o||"",r?i.root.classList.add("option-disabled"):i.root.classList.remove("option-disabled")}disposeTemplate(e){}}class _ extends p.JT{constructor(e,t,i,s,n){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=s,this.selectBoxOptions=n||Object.create(null),"number"!=typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=_.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"==typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"==typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new c.Q5,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,l.B)().setupUpdatableHover((0,a.tM)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return v}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=s.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=s.R3(this.selectDropDownContainer,m(".select-box-details-pane"));let t=s.R3(this.selectDropDownContainer,m(".select-box-dropdown-container-width-control")),i=s.R3(t,m(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",s.R3(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=s.dS(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(s.nm(this.selectDropDownContainer,s.tw.DRAG_START,e=>{s.zB.stop(e,!0)}))}registerListeners(){let e;this._register(s.mu(this.selectElement,"change",e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)})),this._register(s.nm(this.selectElement,s.tw.CLICK,e=>{s.zB.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(s.nm(this.selectElement,s.tw.MOUSE_DOWN,e=>{s.zB.stop(e)})),this._register(s.nm(this.selectElement,"touchstart",t=>{e=this._isVisible})),this._register(s.nm(this.selectElement,"touchend",t=>{s.zB.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(s.nm(this.selectElement,s.tw.KEY_DOWN,e=>{let t=new o.y(e),i=!1;f.dz?(18===t.keyCode||16===t.keyCode||10===t.keyCode||3===t.keyCode)&&(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),s.zB.stop(e,!0))}))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){!d.fS(this.options,e)&&(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"==typeof e.description&&(this._hasDetails=!0)})),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&e<this.options.length?this.selected=e:e>this.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){let e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;let s=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",o=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=s,this.selectElement.style.color=n,this.selectElement.style.borderColor=o}styleList(){var e,t;let i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=s.XT(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;let o=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=o,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){let s=document.createElement("option");return s.value=e,s.text=e,s.disabled=!!i,s}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{try{e.removeChild(this.selectDropDownContainer)}catch(e){}}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)}),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(!this.selectList)return!1;{this.selectDropDownContainer.classList.add("visible");let t=s.Jj(this.selectElement),i=s.i(this.selectElement),n=s.Jj(this.selectElement).getComputedStyle(this.selectElement),o=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),r=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),l=i.top-_.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,a=this.selectElement.offsetWidth,h=Math.max(this.setWidthControlElement(this.widthControlElement),Math.round(a)).toString()+"px";this.selectDropDownContainer.style.width=h,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let d=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());let c=this._hasDetails?this._cachedMaxDetailsHeight:0,u=d+o+c,p=Math.floor((r-o-c)/this.getHeight()),f=Math.floor((l-o-c)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22)&&!(i.top<_.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN)&&(!(p<1)||!(f<1))&&(p<_.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&f>p&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(i.top+i.height>t.innerHeight-22||i.top<_.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||0===this._dropDownPosition&&p<1||1===this._dropDownPosition&&f<1)return this.hideSelectDropDown(!0),!1;if(0===this._dropDownPosition){if(this._isVisible&&p+f<1)return this.hideSelectDropDown(!0),!1;u>r&&(d=p*this.getHeight())}else u>l&&(d=f*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+o+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+o+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=h,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach((e,t)=>{let s=e.detail?e.detail.length:0,o=e.decoratorRight?e.decoratorRight.length:0,r=e.text.length+s+o;r>n&&(i=t,n=r)}),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=s.w(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=s.R3(e,m(".select-box-dropdown-list-container")),this.listRenderer=new b,this.selectList=new h.aV("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,g.NC)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>f.dz?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);let t=this._register(new n.Y(this.selectDropDownListContainer,"keydown")),i=c.ju.chain(t.event,e=>e.filter(()=>this.selectList.length>0).map(e=>new o.y(e)));this._register(c.ju.chain(i,e=>e.filter(e=>3===e.keyCode))(this.onEnter,this)),this._register(c.ju.chain(i,e=>e.filter(e=>2===e.keyCode))(this.onEnter,this)),this._register(c.ju.chain(i,e=>e.filter(e=>9===e.keyCode))(this.onEscape,this)),this._register(c.ju.chain(i,e=>e.filter(e=>16===e.keyCode))(this.onUpArrow,this)),this._register(c.ju.chain(i,e=>e.filter(e=>18===e.keyCode))(this.onDownArrow,this)),this._register(c.ju.chain(i,e=>e.filter(e=>12===e.keyCode))(this.onPageDown,this)),this._register(c.ju.chain(i,e=>e.filter(e=>11===e.keyCode))(this.onPageUp,this)),this._register(c.ju.chain(i,e=>e.filter(e=>14===e.keyCode))(this.onHome,this)),this._register(c.ju.chain(i,e=>e.filter(e=>13===e.keyCode))(this.onEnd,this)),this._register(c.ju.chain(i,e=>e.filter(e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))(this.onCharacter,this)),this._register(s.nm(this.selectList.getHTMLElement(),s.tw.POINTER_UP,e=>this.onPointerUp(e))),this._register(this.selectList.onMouseOver(e=>void 0!==e.index&&this.selectList.setFocus([e.index]))),this._register(this.selectList.onDidChangeFocus(e=>this.onListFocus(e))),this._register(s.nm(this.selectDropDownContainer,s.tw.FOCUS_OUT,e=>{!(!this._isVisible||s.jg(e.relatedTarget,this.selectDropDownContainer))&&this.onListBlur()})),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;s.zB.stop(e);let t=e.target;if(!t||t.classList.contains("slider"))return;let i=t.closest(".monaco-list-row");if(!i)return;let n=Number(i.getAttribute("data-index")),o=i.classList.contains("option-disabled");n>=0&&n<this.options.length&&!o&&(this.selected=n,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0))}onListBlur(){!this._sticky&&(this.selected!==this._currentSelection&&this.select(this._currentSelection),this.hideSelectDropDown(!1))}renderDescriptionMarkdown(e,t){let i=e=>{for(let t=0;t<e.childNodes.length;t++){let s=e.childNodes.item(t);"img"===(s.tagName&&s.tagName.toLowerCase())?e.removeChild(s):i(s)}},s=(0,r.ap)({value:e,supportThemeIcons:!0},{actionHandler:t});return s.element.classList.add("select-box-description-markdown"),i(s.element),s.element}onListFocus(e){this._isVisible&&this._hasDetails&&this.updateDetail(e.indexes[0])}updateDetail(e){var t,i;this.selectionDetailsPane.innerText="";let s=this.options[e],n=null!==(t=null==s?void 0:s.description)&&void 0!==t?t:"",o=null!==(i=null==s?void 0:s.descriptionIsMarkdown)&&void 0!==i&&i;if(n){if(o){let e=s.descriptionMarkdownActionHandler;this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(n,e))}else this.selectionDetailsPane.innerText=n;this.selectionDetailsPane.style.display="block"}else this.selectionDetailsPane.style.display="none";this._skipLayout=!0,this.contextViewProvider.layout(),this._skipLayout=!1}onEscape(e){s.zB.stop(e),this.select(this._currentSelection),this.hideSelectDropDown(!0)}onEnter(e){s.zB.stop(e),this.selected!==this._currentSelection&&(this._currentSelection=this.selected,this._onDidSelect.fire({index:this.selectElement.selectedIndex,selected:this.options[this.selected].text}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)),this.hideSelectDropDown(!0)}onDownArrow(e){if(this.selected<this.options.length-1){s.zB.stop(e,!0);let t=this.options[this.selected+1].isDisabled;if(t&&this.options.length>this.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){this.selected>0&&(s.zB.stop(e,!0),this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))}onPageUp(e){s.zB.stop(e),this.selectList.focusPreviousPage(),setTimeout(()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected<this.options.length-1&&(this.selected++,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)},1)}onPageDown(e){s.zB.stop(e),this.selectList.focusNextPage(),setTimeout(()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)},1)}onHome(e){s.zB.stop(e),!(this.options.length<2)&&(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){s.zB.stop(e),!(this.options.length<2)&&(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){let t=u.kL.toString(e.keyCode),i=-1;for(let n=0;n<this.options.length-1;n++)if(i=(n+this.selected+1)%this.options.length,this.options[i].text.charAt(0).toUpperCase()===t&&!this.options[i].isDisabled){this.select(i),this.selectList.setFocus([i]),this.selectList.reveal(this.selectList.getFocus()[0]),s.zB.stop(e);break}}dispose(){this.hideSelectDropDown(!1),super.dispose()}}_.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN=32,_.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN=2,_.DEFAULT_MINIMUM_VISIBLE_OPTIONS=3},53255:function(e,t,i){"use strict";i.d(t,{Cv:function(){return l},SP:function(){return o},vp:function(){return n},yP:function(){return c}});var s=i("71482");function n(e){return o(e,0)}function o(e,t){switch(typeof e){case"object":if(null===e)return r(349,t);if(Array.isArray(e))return function(e,t){return t=r(104579,t),e.reduce((e,t)=>o(t,e),t)}(e,t);return function(e,t){return t=r(181387,t),Object.keys(e).sort().reduce((t,i)=>(t=l(i,t),o(e[i],t)),t)}(e,t);case"string":return l(e,t);case"boolean":return function(e,t){return r(e?433:863,t)}(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}}function r(e,t){return(t<<5)-t+e|0}function l(e,t){t=r(149417,t);for(let i=0,s=e.length;i<s;i++)t=r(e.charCodeAt(i),t);return t}function a(e,t,i=32){let s=i-t;return(e<<t|(~((1<<s)-1)&e)>>>s)>>>0}function h(e,t=0,i=e.byteLength,s=0){for(let n=0;n<i;n++)e[t+n]=s}function d(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join(""):function(e,t,i="0"){for(;e.length<t;)e=i+e;return e}((e>>>0).toString(16),t/4)}class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t,i;let n=e.length;if(0===n)return;let o=this._buff,r=this._buffLen,l=this._leftoverHighSurrogate;for(0!==l?(t=l,i=-1,l=0):(t=e.charCodeAt(0),i=0);;){let a=t;if(s.ZG(t)){if(i+1<n){let n=e.charCodeAt(i+1);s.YK(n)?(i++,a=s.rL(t,n)):a=65533}else{l=t;break}}else s.YK(t)&&(a=65533);if(r=this._push(o,r,a),++i<n)t=e.charCodeAt(i);else break}this._buffLen=r,this._leftoverHighSurrogate=l}_push(e,t,i){return i<128?e[t++]=i:(i<2048?e[t++]=192|(1984&i)>>>6:(i<65536?e[t++]=224|(61440&i)>>>12:(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12),e[t++]=128|(4032&i)>>>6),e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return!this._finished&&(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),d(this._h0)+d(this._h1)+d(this._h2)+d(this._h3)+d(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,h(this._buff,this._buffLen),this._buffLen>56&&(this._step(),h(this._buff));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let e,t,i;let s=c._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)s.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)s.setUint32(e,a(s.getUint32(e-12,!1)^s.getUint32(e-32,!1)^s.getUint32(e-56,!1)^s.getUint32(e-64,!1),1),!1);let o=this._h0,r=this._h1,l=this._h2,h=this._h3,d=this._h4;for(let n=0;n<80;n++)n<20?(e=r&l|~r&h,t=1518500249):n<40?(e=r^l^h,t=1859775393):n<60?(e=r&l|r&h|l&h,t=2400959708):(e=r^l^h,t=3395469782),i=a(o,5)+e+d+t+s.getUint32(4*n,!1)&4294967295,d=h,h=l,l=a(r,30),r=o,o=i;this._h0=this._h0+o&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+d&4294967295}}c._bigBlock32=new DataView(new ArrayBuffer(320))},60987:function(e,t,i){"use strict";i.d(t,{DN:function(){return v},Dz:function(){return h},GN:function(){return g},Zg:function(){return _},aq:function(){return p},rD:function(){return c}}),i("98212");var s,n=i("37764"),o=i("10361"),r=i("45344"),l=i("89888"),a=i("30908");function h(e){return new d(e)}class d extends o.Nc{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function c(e,t){return new u(e,t)}class u extends o.hm{constructor(e,t){super(),this.event=e,this._getValue=t,this.hasValue=!1,this.handleEvent=e=>{var t;let i=this._getValue(e),s=this.value,n=!this.hasValue||s!==i,r=!1;n&&(this.value=i,this.hasValue&&(r=!0,(0,o.c8)(u.globalTransaction,e=>{var t;for(let o of(null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:s,newValue:i,change:void 0,didChange:n,hadValue:this.hasValue}),this.observers))e.updateObserver(o,this),o.handleChange(this,void 0)},()=>{let e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")})),this.hasValue=!0),!r&&(null===(t=(0,a.jl)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:s,newValue:i,change:void 0,didChange:n,hadValue:this.hasValue}))}}getDebugName(){return(0,r.$P)(this._getValue)}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(!this.hasValue&&this.handleEvent(void 0),this.value):this._getValue(void 0)}}function p(e,t){return new f(e,t)}(s=c||(c={})).Observer=u,s.batchEventsGlobally=function(e,t){let i=!1;void 0===u.globalTransaction&&(u.globalTransaction=e,i=!0);try{t()}finally{i&&(u.globalTransaction=void 0)}};class f extends o.hm{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,o.PS)(e=>{for(let t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)},()=>this.debugName)}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function g(e){return"string"==typeof e?new m(e):new m(void 0,e)}class m extends o.hm{get debugName(){var e;return null!==(e=new r.IZ(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"Observable Signal"}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(!e){(0,o.PS)(e=>{this.trigger(e,t)},()=>`Trigger signal ${this.debugName}`);return}for(let i of this.observers)e.updateObserver(i,this),i.handleChange(this,t)}get(){}}function v(e,t){let i=new b(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,n.OF)(()=>{e.removeObserver(i)})}(0,o.Jn)(function(e){let t=new b(!1,void 0);return e.addObserver(t),(0,n.OF)(()=>{e.removeObserver(t)})}),(0,o.MK)(v);class b{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function _(e,t,i,s){let n=new w(i,s);return(0,l.bk)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{n.dispose(),n=new w(i)}},e=>(n.setItems(t.read(e)),n.getItems()))}class w{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(e=>e.store.dispose()),this._cache.clear()}setItems(e){let t=[],i=new Set(this._cache.keys());for(let s of e){let e=this._keySelector?this._keySelector(s):s,o=this._cache.get(e);if(o)i.delete(e);else{let t=new n.SL;o={out:this._map(s,t),store:t},this._cache.set(e,o)}t.push(o.out)}for(let e of i)this._cache.get(e).store.dispose(),this._cache.delete(e);this._items=t}getItems(){return this._items}}},13421:function(e,t,i){"use strict";(0,i("88814").H)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"50410"))})},74793:function(e,t,i){"use strict";(0,i("88814").H)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"64784"))})},46826: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:[["{","}"],["[","]"],["(",")"],["<",">"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],autoCloseBefore:".,=}])>' \n ",indentationRules:{increaseIndentPattern:RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},n={defaultToken:"",tokenPostfix:".proto",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["syntax","import","weak","public","package","option","repeated","oneof","map","reserved","to","max","enum","message","service","rpc","stream","returns","package","optional","true","false"],builtinTypes:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],operators:["=","+","-"],namedLiterals:["true","false"],escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",identifier:/[a-zA-Z]\w*/,fullIdentifier:/@identifier(?:\s*\.\s*@identifier)*/,optionName:/(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,messageName:/@identifier/,enumName:/@identifier/,messageType:/\.?\s*(?:@identifier\s*\.\s*)*@messageName/,enumType:/\.?\s*(?:@identifier\s*\.\s*)*@enumName/,floatLit:/[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,exponent:/[eE]\s*[+-]?\s*[0-9]+/,boolLit:/true\b|false\b/,decimalLit:/[1-9][0-9]*/,octalLit:/0[0-7]*/,hexLit:/0[xX][0-9a-fA-F]+/,type:/double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,keyType:/int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,tokenizer:{root:[{include:"@whitespace"},[/syntax/,"keyword"],[/=/,"operators"],[/;/,"delimiter"],[/(")(proto3)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto3"}]],[/(")(proto2)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto2"}]],[/.*?/,{token:"",switchTo:"@topLevel.proto2"}]],topLevel:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/[;.]/,"delimiter"],[/@fullIdentifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},service:{token:"keyword",next:"@serviceDecl.$S2"},extend:{cases:{"$S2==proto2":{token:"keyword",next:"@extendDecl.$S2"}}},"@keywords":"keyword","@default":"identifier"}}]],enumDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@enumBody.$S2"}]],enumBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/@identifier/,"identifier"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],messageDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}]],messageBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],["(map)(s*)(<)",["keyword","white",{token:"@brackets",bracket:"@open",next:"@map.$S2"}]],[/@identifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},oneof:{token:"keyword",next:"@oneofDecl.$S2"},extensions:{cases:{"$S2==proto2":{token:"keyword",next:"@reserved.$S2"}}},reserved:{token:"keyword",next:"@reserved.$S2"},"(?:repeated|optional)":{token:"keyword",next:"@field.$S2"},required:{cases:{"$S2==proto2":{token:"keyword",next:"@field.$S2"}}},"$S2==proto3":{token:"@rematch",next:"@field.$S2"}}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],extendDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@extendBody.$S2"}]],extendBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(?:repeated|optional|required)/,"keyword","@field.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],options:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/\]/,{token:"@brackets",bracket:"@close",next:"@pop"}]],option:[{include:"@whitespace"},[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator","@pop"]],oneofDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@oneofBody.$S2"}]],oneofBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(@identifier)(\s*)(=)/,["identifier","white","delimiter"]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],reserved:[{include:"@whitespace"},[/,/,"delimiter"],[/;/,"delimiter","@pop"],{include:"@constant"},[/to\b|max\b/,"keyword"]],map:[{include:"@whitespace"},[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/,/,"delimiter"],[/>/,{token:"@brackets",bracket:"@close",switchTo:"identifier"}]],field:[{include:"@whitespace"},["group",{cases:{"$S2==proto2":{token:"keyword",switchTo:"@groupDecl.$S2"}}}],[/(@identifier)(\s*)(=)/,["identifier","white",{token:"delimiter",next:"@pop"}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}]],groupDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],["=","operator"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}],{include:"@constant"}],type:[{include:"@whitespace"},[/@identifier/,"type.identifier","@pop"],[/./,"delimiter"]],identifier:[{include:"@whitespace"},[/@identifier/,"identifier","@pop"]],serviceDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@serviceBody.$S2"}]],serviceBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/rpc\b/,"keyword","@rpc.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],rpc:[{include:"@whitespace"},[/@identifier/,"identifier"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@request.$S2"}],[/{/,{token:"@brackets",bracket:"@open",next:"@methodOptions.$S2"}],[/;/,"delimiter","@pop"]],request:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@returns.$S2"}]],returns:[{include:"@whitespace"},[/returns\b/,"keyword"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@response.$S2"}]],response:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@rpc.$S2"}]],methodOptions:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],["option","keyword"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],constant:[["@boolLit","keyword.constant"],["@hexLit","number.hex"],["@octalLit","number.octal"],["@decimalLit","number"],["@floatLit","number.float"],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'/,{token:"string.quote",bracket:"@open",next:"@stringSingle"}],[/{/,{token:"@brackets",bracket:"@open",next:"@prototext"}],[/identifier/,"identifier"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],prototext:[{include:"@whitespace"},{include:"@constant"},[/@identifier/,"identifier"],[/[:;]/,"delimiter"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]]}}},55327:function(e,t,i){"use strict";let s,n;i.r(t),i.d(t,{conf:function(){return p},language:function(){return f}});var o=i("76761"),r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,h=Object.prototype.hasOwnProperty,d=(e,t,i,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))!h.call(e,n)&&n!==i&&r(e,n,{get:()=>t[n],enumerable:!(s=l(t,n))||s.enumerable});return e},c={};d(c,s=o,"default"),n&&d(n,s,"default");var u=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],p={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:RegExp(`<(?!(?:${u.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:c.languages.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(?!(?:${u.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:c.languages.IndentAction.Indent}}]},f={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}},53070:function(e,t,i){"use strict";(0,i("88814").H)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"42706"))})},7290:function(e,t,i){"use strict";i.d(t,{i:function(){return n},u:function(){return r}});var s=i("7374");class n{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class o{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),e.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");(0,s.N)(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");(0,s.N)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");(0,s.N)(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let r=[];for(let e of this._requests){let s;0===e.type&&(s=t),2===e.type&&(s=i),1===e.type&&(s=n),s.appendChild(document.createElement("br"));let l=document.createElement("span");o._render(l,e),s.appendChild(l),r.push(l)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){let t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}function r(e,t,i){new o(t,i).read(e)}},645:function(e,t,i){"use strict";i.d(t,{B:function(){return a},L:function(){return d}});var s=i("73115"),n=i("85471"),o=i("88226"),r=i("98084"),l=i("15467");function a(e){let t=new n.Hl;for(let i of e.items){let e=i.type;if("string"===i.kind){let s=new Promise(e=>i.getAsString(e));t.append(e,(0,n.ZO)(s))}else if("file"===i.kind){let s=i.getAsFile();s&&t.append(e,function(e){let t=e.path?r.o.parse(e.path):void 0;return(0,n.Ix)(e.name,t,async()=>new Uint8Array(await e.arrayBuffer()))}(s))}}return t}let h=Object.freeze([l.Km.EDITORS,l.Km.FILES,s.g.RESOURCES,s.g.INTERNAL_URI_LIST]);function d(e,t=!1){let i=a(e),l=i.get(s.g.INTERNAL_URI_LIST);if(l)i.replace(o.v.uriList,l);else if(t||!i.has(o.v.uriList)){let t=[];for(let i of e.items){let e=i.getAsFile();if(e){let i=e.path;try{i?t.push(r.o.file(i).toString()):t.push(r.o.parse(e.name,!0).toString())}catch(e){}}}t.length&&i.replace(o.v.uriList,(0,n.ZO)(n.Z0.create(t)))}for(let e of h)i.delete(e);return i}},20431:function(e,t,i){"use strict";i.d(t,{Z$:function(){return w},hM:function(){return C}});var s,n,o=i("1966"),r=i("66735"),l=i("37764"),a=i("56136"),h=i("47359"),d=i("68919"),c=i("8773"),u=i("49439"),p=i("33852"),f=i("90579"),g=i("83447"),m=i("7648"),v=i("67414"),b=i("47983"),_=i("26089");let w=class extends l.JT{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,a.uh)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,a.uh)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,a.uh)(this,void 0),this.unchangedRegions=(0,a.nK)(this,e=>{var t,i;return this._options.hideUnchangedRegions.read(e)?null!==(i=null===(t=this._unchangedRegions.read(e))||void 0===t?void 0:t.regions)&&void 0!==i?i:[]:((0,a.PS)(e=>{var t;for(let i of(null===(t=this._unchangedRegions.get())||void 0===t?void 0:t.regions)||[])i.collapseAll(e)}),[])}),this.movedTextToCompare=(0,a.uh)(this,void 0),this._activeMovedText=(0,a.uh)(this,void 0),this._hoveredMovedText=(0,a.uh)(this,void 0),this.activeMovedText=(0,a.nK)(this,e=>{var t,i;return null!==(i=null!==(t=this.movedTextToCompare.read(e))&&void 0!==t?t:this._hoveredMovedText.read(e))&&void 0!==i?i:this._activeMovedText.read(e)}),this._cancellationTokenSource=new r.AU,this._diffProvider=(0,a.nK)(this,e=>{let t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)}),i=(0,a.aq)("onDidChange",t.onDidChange);return{diffProvider:t,onChangeSignal:i}}),this._register((0,l.OF)(()=>this._cancellationTokenSource.cancel()));let s=(0,a.GN)("contentChangedSignal"),n=this._register(new o.pY(()=>s.trigger(void 0),200));this._register((0,a.EH)(t=>{let i=this._unchangedRegions.read(t);if(!i||i.regions.some(e=>e.isDragged.read(t)))return;let s=i.originalDecorationIds.map(t=>e.original.getDecorationRange(t)).map(e=>e?c.z.fromRangeInclusive(e):void 0),n=i.modifiedDecorationIds.map(t=>e.modified.getDecorationRange(t)).map(e=>e?c.z.fromRangeInclusive(e):void 0),o=i.regions.map((e,i)=>s[i]&&n[i]?new y(s[i].startLineNumber,n[i].startLineNumber,s[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0).filter(v.$K),r=[],l=!1;for(let e of(0,b.mw)(o,(e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber))if(e.length>1){l=!0;let t=e.reduce((e,t)=>e+t.lineCount,0),i=new y(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());r.push(i)}else r.push(e[0]);if(l){let t=e.original.deltaDecorations(i.originalDecorationIds,r.map(e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),s=e.modified.deltaDecorations(i.modifiedDecorationIds,r.map(e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));(0,a.PS)(e=>{this._unchangedRegions.set({regions:r,originalDecorationIds:t,modifiedDecorationIds:s},e)})}}));let h=(t,i,s)=>{let n,o=y.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(s),this._options.hideUnchangedRegionsContextLineCount.read(s));let r=this._unchangedRegions.get();if(r){let t=r.originalDecorationIds.map(t=>e.original.getDecorationRange(t)).map(e=>e?c.z.fromRangeInclusive(e):void 0),i=r.modifiedDecorationIds.map(t=>e.modified.getDecorationRange(t)).map(e=>e?c.z.fromRangeInclusive(e):void 0),o=(0,d.W7)(r.regions.map((e,s)=>{if(!t[s]||!i[s])return;let n=t[s].length;return new y(t[s].startLineNumber,i[s].startLineNumber,n,Math.min(e.visibleLineCountTop.get(),n),Math.min(e.visibleLineCountBottom.get(),n-e.visibleLineCountTop.get()))}).filter(v.$K),(e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount).map(e=>new p.f0(e.getHiddenOriginalRange(s),e.getHiddenModifiedRange(s)));o=p.f0.clip(o,c.z.ofLength(1,e.original.getLineCount()),c.z.ofLength(1,e.modified.getLineCount())),n=p.f0.inverse(o,e.original.getLineCount(),e.modified.getLineCount())}let l=[];if(n)for(let e of o){let t=n.filter(t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange));l.push(...e.setVisibleRanges(t,i))}else l.push(...o);let a=e.original.deltaDecorations((null==r?void 0:r.originalDecorationIds)||[],l.map(e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),h=e.modified.deltaDecorations((null==r?void 0:r.modifiedDecorationIds)||[],l.map(e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:l,originalDecorationIds:a,modifiedDecorationIds:h},i)};this._register(e.modified.onDidChangeContent(t=>{if(this._diff.get()){let i=f.Q.fromModelContentChanges(t.changes),s=L(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,a.PS)(e=>{this._diff.set(S.fromDiffResult(this._lastDiff),e),h(s,e);let t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find(e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified)):void 0,e)}))}this._isDiffUpToDate.set(!1,void 0),n.schedule()})),this._register(e.original.onDidChangeContent(t=>{if(this._diff.get()){let i=f.Q.fromModelContentChanges(t.changes),s=x(this._lastDiff,i,e.original,e.modified);s&&(this._lastDiff=s,(0,a.PS)(e=>{this._diff.set(S.fromDiffResult(this._lastDiff),e),h(s,e);let t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find(e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified)):void 0,e)}))}this._isDiffUpToDate.set(!1,void 0),n.schedule()})),this._register((0,a.gp)(async(t,i)=>{var o,r;this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),n.cancel(),s.read(t);let l=this._diffProvider.read(t);l.onChangeSignal.read(t),(0,d.NW)(u.DW,t),(0,d.NW)(m.xG,t),this._isDiffUpToDate.set(!1,void 0);let c=[];i.add(e.original.onDidChangeContent(e=>{let t=f.Q.fromModelContentChanges(e.changes);c=(0,g.o)(c,t)}));let v=[];i.add(e.modified.onDidChangeContent(e=>{let t=f.Q.fromModelContentChanges(e.changes);v=(0,g.o)(v,t)}));let b=await l.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);if(!this._cancellationTokenSource.token.isCancellationRequested)!(e.original.isDisposed()||e.modified.isDisposed())&&(b=null!==(r=L(b=null!==(o=x(b=function(e,t,i){return{changes:e.changes.map(e=>new p.gB(e.original,e.modified,e.innerChanges?e.innerChanges.map(e=>(function(e,t,i){let s=e.originalRange,n=e.modifiedRange;return(1!==s.endColumn||1!==n.endColumn)&&s.endColumn===t.getLineMaxColumn(s.endLineNumber)&&n.endColumn===i.getLineMaxColumn(n.endLineNumber)&&s.endLineNumber<t.getLineCount()&&n.endLineNumber<i.getLineCount()&&(s=s.setEndPosition(s.endLineNumber+1,1),n=n.setEndPosition(n.endLineNumber+1,1)),new p.iy(s,n)})(e,t,i)):void 0)),moves:e.moves,identical:e.identical,quitEarly:e.quitEarly}}(b,e.original,e.modified),c,e.original,e.modified))&&void 0!==o?o:b,v,e.original,e.modified))&&void 0!==r?r:b,(0,a.PS)(e=>{h(b,e),this._lastDiff=b;let t=S.fromDiffResult(b);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);let i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find(e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified)):void 0,e)}))}))}ensureModifiedLineIsVisible(e,t,i){var s,n;if((null===(s=this.diff.get())||void 0===s?void 0:s.mappings.length)!==0){for(let s of(null===(n=this._unchangedRegions.get())||void 0===n?void 0:n.regions)||[])if(s.getHiddenModifiedRange(void 0).contains(e)){s.showModifiedLine(e,t,i);return}}}ensureOriginalLineIsVisible(e,t,i){var s,n;if((null===(s=this.diff.get())||void 0===s?void 0:s.mappings.length)!==0){for(let s of(null===(n=this._unchangedRegions.get())||void 0===n?void 0:n.regions)||[])if(s.getHiddenOriginalRange(void 0).contains(e)){s.showOriginalLine(e,t,i);return}}}async waitForDiff(){await (0,a.F_)(this.isDiffUpToDate,e=>e)}serializeState(){let e=this._unchangedRegions.get();return{collapsedRegions:null==e?void 0:e.regions.map(e=>({range:e.getHiddenModifiedRange(void 0).serialize()}))}}restoreSerializedState(e){var t;let i=null===(t=e.collapsedRegions)||void 0===t?void 0:t.map(e=>c.z.deserialize(e.range)),s=this._unchangedRegions.get();s&&i&&(0,a.PS)(e=>{for(let t of s.regions)for(let s of i)if(t.modifiedUnchangedRange.intersect(s)){t.setHiddenModifiedRange(s,e);break}})}};w=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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=2,n=h.RZ,function(e,t){n(e,t,2)})],w);class S{static fromDiffResult(e){return new S(e.changes.map(e=>new C(e)),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,s){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=s}}class C{constructor(e){this.lineRangeMapping=e}}class y{static fromDiffs(e,t,i,s,n){let o=p.gB.inverse(e,t,i),r=[];for(let e of o){let o=e.original.startLineNumber,l=e.modified.startLineNumber,a=e.original.length,h=1===o&&1===l,d=o+a===t+1&&l+a===i+1;(h||d)&&a>=n+s?(h&&!d&&(a-=n),d&&!h&&(o+=n,l+=n,a-=n),r.push(new y(o,l,a,0,0))):a>=2*n+s&&(o+=n,l+=n,a-=2*n,r.push(new y(o,l,a,0,0)))}return r}get originalUnchangedRange(){return c.z.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return c.z.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,s,n){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,a.uh)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,a.uh)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,a.nK)(this,e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e)),this.isDragged=(0,a.uh)(this,void 0);let o=Math.max(Math.min(s,this.lineCount),0),r=Math.max(Math.min(n,this.lineCount-s),0);(0,_.wN)(s===o),(0,_.wN)(n===r),this._visibleLineCountTop.set(o,void 0),this._visibleLineCountBottom.set(r,void 0)}setVisibleRanges(e,t){let i=[],s=new c.i(e.map(e=>e.modified)).subtractFrom(this.modifiedUnchangedRange),n=this.originalLineNumber,o=this.modifiedLineNumber,r=this.modifiedLineNumber+this.lineCount;if(0===s.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(let l of s.ranges){let a=e===s.ranges.length-1;e++;let h=(a?r:l.endLineNumberExclusive)-o,d=new y(n,o,h,0,0);d.setHiddenModifiedRange(l,t),i.push(d),n=d.originalUnchangedRange.endLineNumberExclusive,o=d.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return c.z.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return c.z.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){let i=e.startLineNumber-this.modifiedLineNumber,s=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,s,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){let i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){let i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){let s=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),n=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+s,i):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+n,i)}showOriginalLine(e,t,i){let s=e-this.originalLineNumber,n=this.originalLineNumber+this.lineCount-e;0===t&&s<n||1===t?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+n-s,this.getMaxVisibleLineCountTop()),i):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+s-n,this.getMaxVisibleLineCountBottom()),i)}collapseAll(e){this._visibleLineCountTop.set(0,e),this._visibleLineCountBottom.set(0,e)}setState(e,t,i){e=Math.max(Math.min(e,this.lineCount),0),t=Math.max(Math.min(t,this.lineCount-e),0),this._visibleLineCountTop.set(e,i),this._visibleLineCountBottom.set(t,i)}}function x(e,t,i,s){}function L(e,t,i,s){}},18638:function(e,t,i){"use strict";i.d(t,{J:function(){return s}});class s{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,i,s,n){if(e&&t){let i=this.doNavigateValueSet(t,n);if(i)return{range:e,value:i}}if(i&&s){let e=this.doNavigateValueSet(s,n);if(e)return{range:i,value:e}}return null}doNavigateValueSet(e,t){let i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){let i=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),s=Number(e),n=parseFloat(e);return isNaN(s)||isNaN(n)||s!==n||0===s&&!t?null:String((s=Math.floor(s*i)+(t?i:-i))/i)}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let s=null;for(let n=0,o=e.length;null===s&&n<o;n++)s=this.valueSetReplace(e[n],t,i);return s}valueSetReplace(e,t,i){let s=e.indexOf(t);return s>=0?((s+=i?1:-1)<0?s=e.length-1:s%=e.length,e[s]):null}}s.INSTANCE=new s},97691:function(e,t,i){"use strict";i.d(t,{L:function(){return n}});class s{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function n(e,t,i){let n=Math.min(e.getLineCount(),1e4),o=0,r=0,l="",a=0,h=[0,0,0,0,0,0,0,0,0],d=new s;for(let s=1;s<=n;s++){let n=e.getLineLength(s),c=e.getLineContent(s),u=n<=65536,p=!1,f=0,g=0,m=0;for(let t=0;t<n;t++){let i=u?c.charCodeAt(t):e.getLineCharCode(s,t);if(9===i)m++;else if(32===i)g++;else{p=!0,f=t;break}}if(!p)continue;if(m>0?o++:g>1&&r++,!function(e,t,i,s,n){let o;for(o=0,n.spacesDiff=0,n.looksLikeAlignment=!1;o<t&&o<s;o++){let t=e.charCodeAt(o);if(t!==i.charCodeAt(o))break}let r=0,l=0;for(let i=o;i<t;i++)32===e.charCodeAt(i)?r++:l++;let a=0,h=0;for(let e=o;e<s;e++)32===i.charCodeAt(e)?a++:h++;if(r>0&&l>0||a>0&&h>0)return;let d=Math.abs(l-h),c=Math.abs(r-a);if(0===d){n.spacesDiff=c,c>0&&0<=a-1&&a-1<e.length&&a<i.length&&32!==i.charCodeAt(a)&&32===e.charCodeAt(a-1)&&44===e.charCodeAt(e.length-1)&&(n.looksLikeAlignment=!0);return}if(c%d==0){n.spacesDiff=c/d;}}(l,a,c,f,d),d.looksLikeAlignment&&!(i&&t===d.spacesDiff))continue;let v=d.spacesDiff;v<=8&&h[v]++,l=c,a=f}let c=i;o!==r&&(c=o<r);let u=t;if(c){let e=c?0:.1*n;[2,4,6,8,3,5,7].forEach(t=>{let i=h[t];i>e&&(e=i,u=t)}),4===u&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(u=2)}return{insertSpaces:c,tabSize:u}}},71917:function(e,t,i){"use strict";i.d(t,{Lv:function(){return p},Nr:function(){return c},Xp:function(){return d},nD:function(){return m}});var s=i("70668"),n=i("83112"),o=i("42733"),r=i("76811"),l=i("73886");function a(e){let t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}class h{constructor(e,t,i,s,n){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=s,this.isBasicASCII=n}}function d(e,t=!0){let i=[0],s=1;for(let t=0,n=e.length;t<n;t++){let o=e.charCodeAt(t);13===o?t+1<n&&10===e.charCodeAt(t+1)?(i[s++]=t+2,t++):i[s++]=t+1:10===o&&(i[s++]=t+1)}return t?a(i):i}function c(e,t){e.length=0,e[0]=0;let i=1,s=0,n=0,o=0,r=!0;for(let l=0,a=t.length;l<a;l++){let h=t.charCodeAt(l);13===h?l+1<a&&10===t.charCodeAt(l+1)?(o++,e[i++]=l+2,l++):(s++,e[i++]=l+1):10===h?(n++,e[i++]=l+1):r&&9!==h&&(h<32||h>126)&&(r=!1)}let l=new h(a(e),s,n,o,r);return e.length=0,l}class u{constructor(e,t,i,s,n){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=s,this.length=n}}class p{constructor(e,t){this.buffer=e,this.lineStarts=t}}class f{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==r.Nc&&e.iterate(e.root,e=>(e!==r.Nc&&this._pieces.push(e.piece),!0))}read(){if(0===this._pieces.length)return 0===this._index?(this._index++,this._BOM):null;return this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class g{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber<e&&i.nodeStartLineNumber+i.node.piece.lineFeedCnt>=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,i=this._cache;for(let s=0;s<i.length;s++){let n=i[s];if(null===n.node.parent||n.nodeStartOffset>=e){i[s]=null,t=!0;continue}}if(t){let e=[];for(let t of i)null!==t&&e.push(t);this._cache=e}}}class m{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new p("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=r.Nc,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let s=null;for(let t=0,i=e.length;t<i;t++)if(e[t].buffer.length>0){!e[t].lineStarts&&(e[t].lineStarts=d(e[t].buffer));let i=new u(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),s=this.rbInsertRight(s,i)}this._searchCache=new g(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=65535-Math.floor(21845),i=2*t,s="",n=0,o=[];if(this.iterate(this.root,r=>{let l=this.getNodeContent(r),a=l.length;if(n<=t||n+a<i)return s+=l,n+=a,!0;let h=s.replace(/\r\n|\r|\n/g,e);return o.push(new p(h,d(h))),s=l,n=a,!0}),n>0){let t=s.replace(/\r\n|\r|\n/g,e);o.push(new p(t,d(t)))}this.create(o,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new f(this,e)}getOffsetAt(e,t){let i=0,s=this.root;for(;s!==r.Nc;)if(s.left!==r.Nc&&s.lf_left+1>=e)s=s.left;else{if(s.lf_left+s.piece.lineFeedCnt+1>=e)return i+=s.size_left,i+(this.getAccumulatedValue(s,e-s.lf_left-2)+t-1);e-=s.lf_left+s.piece.lineFeedCnt,i+=s.size_left+s.piece.length,s=s.right}return i}getPositionAt(e){e=Math.max(0,e=Math.floor(e));let t=this.root,i=0,n=e;for(;t!==r.Nc;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){let o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,0===o.index){let e=n-this.getOffsetAt(i+1,1);return new s.L(i+1,e+1)}return new s.L(i+1,o.remainder+1)}else{if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===r.Nc){let t=this.getOffsetAt(i+1,1),o=n-e-t;return new s.L(i+1,o+1)}t=t.right}return new s.L(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let i=this.nodeAt2(e.startLineNumber,e.startColumn),s=this.nodeAt2(e.endLineNumber,e.endColumn),n=this.getValueInRange2(i,s);if(t)return t===this._EOL&&this._EOLNormalized?t===this.getEOL()&&this._EOLNormalized?n:n.replace(/\r\n|\r|\n/g,t):n.replace(/\r\n|\r|\n/g,t);return n}getValueInRange2(e,t){if(e.node===t.node){let i=e.node,s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return s.substring(n+e.remainder,n+t.remainder)}let i=e.node,s=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),o=s.substring(n+e.remainder,n+i.piece.length);for(i=i.next();i!==r.Nc;){let e=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){o+=e.substring(s,s+t.remainder);break}o+=e.substr(s,i.piece.length);i=i.next()}return o}getLinesContent(){let e=[],t=0,i="",s=!1;return this.iterate(this.root,n=>{if(n===r.Nc)return!0;let o=n.piece,l=o.length;if(0===l)return!0;let a=this._buffers[o.bufferIndex].buffer,h=this._buffers[o.bufferIndex].lineStarts,d=o.start.line,c=o.end.line,u=h[d]+o.start.column;if(s&&(10===a.charCodeAt(u)&&(u++,l--),e[t++]=i,i="",s=!1,0===l))return!0;if(d===c)return this._EOLNormalized||13!==a.charCodeAt(u+l-1)?i+=a.substr(u,l):(s=!0,i+=a.substr(u,l-1)),!0;i+=this._EOLNormalized?a.substring(u,Math.max(u,h[d+1]-this._EOLLength)):a.substring(u,h[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let s=d+1;s<c;s++)i=this._EOLNormalized?a.substring(h[s],h[s+1]-this._EOLLength):a.substring(h[s],h[s+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;return this._EOLNormalized||13!==a.charCodeAt(h[c]+o.end.column-1)?i=a.substr(h[c],o.end.column):(s=!0,0===o.end.column?t--:i=a.substr(h[c],o.end.column-1)),!0}),s&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)}_getCharCode(e){if(e.remainder===e.node.piece.length){let t=e.node.next();if(!t)return 0;let i=this._buffers[t.piece.bufferIndex],s=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return i.buffer.charCodeAt(s)}{let t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){let i=this.nodeAt2(e,t+1);return this._getCharCode(i)}getLineLength(e){if(e===this.getLineCount()){let t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,s,o,r,a,h,d,c,u){let p,f,g;let m=this._buffers[e.piece.bufferIndex],v=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),b=this.offsetInBuffer(e.piece.bufferIndex,o),_=this.offsetInBuffer(e.piece.bufferIndex,r),w={line:0,column:0};t._wordSeparators?(f=m.buffer.substring(b,_),g=e=>e+b,t.reset(0)):(f=m.buffer,g=e=>e,t.reset(b));do if(p=t.next(f)){if(g(p.index)>=_)return c;this.positionInBuffer(e,g(p.index)-v,w);let t=this.getLineFeedCnt(e.piece.bufferIndex,o,w),r=w.line===o.line?w.column-o.column+s:w.column+1,a=r+p[0].length;if(u[c++]=(0,l.iE)(new n.e(i+t,r,i+t,a),p,h),g(p.index)+p[0].length>=_)return c;if(c>=d)break}while(p);return c}findMatchesLineByLine(e,t,i,s){let n=[],o=0,r=new l.sz(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];let h=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===h)return[];let d=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(h.node,h.remainder);if(a.node===h.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,d,c,t,i,s,o,n),n;let u=e.startLineNumber,p=a.node;for(;p!==h.node;){let l=this.getLineFeedCnt(p.piece.bufferIndex,d,p.piece.end);if(l>=1){let a=this._buffers[p.piece.bufferIndex].lineStarts,h=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),c=a[d.line+l],f=u===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(p,r,u,f,d,this.positionInBuffer(p,c-h),t,i,s,o,n))>=s)return n;u+=l}let h=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){let l=this.getLineContent(u).substring(h,e.endColumn-1);return o=this._findMatchesInLine(t,r,l,e.endLineNumber,h,o,n,i,s),n}if((o=this._findMatchesInLine(t,r,this.getLineContent(u).substr(h),u,h,o,n,i,s))>=s)return n;u++,p=(a=this.nodeAt2(u,1)).node,d=this.positionInBuffer(a.node,a.remainder)}if(u===e.endLineNumber){let l=u===e.startLineNumber?e.startColumn-1:0,a=this.getLineContent(u).substring(l,e.endColumn-1);return o=this._findMatchesInLine(t,r,a,e.endLineNumber,l,o,n,i,s),n}let f=u===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(h.node,r,u,f,d,c,t,i,s,o,n),n}_findMatchesInLine(e,t,i,s,r,a,h,d,c){let u;let p=e.wordSeparators;if(!d&&e.simpleSearch){let t=e.simpleSearch,d=t.length,u=i.length,f=-d;for(;-1!==(f=i.indexOf(t,f+d))&&(!(!p||(0,l.cM)(p,i,u,f,d))||(h[a++]=new o.tk(new n.e(s,f+1+r,s,f+1+d+r),null),!(a>=c))););return a}t.reset(0);do if((u=t.next(i))&&(h[a++]=(0,l.iE)(new n.e(s,u.index+1+r,s,u.index+1+u[0].length+r),u,d),a>=c))break;while(u);return a}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==r.Nc){let{node:i,remainder:s,nodeStartOffset:n}=this.nodeAt(e),o=i.piece,r=o.bufferIndex,l=this.positionInBuffer(i,s);if(0===i.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&n+o.length===e&&t.length<65535){this.appendToNode(i,t),this.computeBufferMetadata();return}if(n===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(n+i.piece.length>e){let e=[],n=new u(o.bufferIndex,l,o.end,this.getLineFeedCnt(o.bufferIndex,l,o.end),this.offsetInBuffer(r,o.end)-this.offsetInBuffer(r,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,s)){let e={line:n.start.line+1,column:0};n=new u(n.bufferIndex,e,n.end,this.getLineFeedCnt(n.bufferIndex,e,n.end),n.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,s-1)){let n=this.positionInBuffer(i,s-1);this.deleteNodeTail(i,n),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,l)}else this.deleteNodeTail(i,l);let a=this.createNewPieces(t);n.length>0&&this.rbInsertRight(i,n);let h=i;for(let e=0;e<a.length;e++)h=this.rbInsertRight(h,a[e]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,i)}else{let e=this.createNewPieces(t),i=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)i=this.rbInsertRight(i,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===r.Nc)return;let i=this.nodeAt(e),s=this.nodeAt(e+t),n=i.node,o=s.node;if(n===o){let o=this.positionInBuffer(n,i.remainder),l=this.positionInBuffer(n,s.remainder);if(i.nodeStartOffset===e){if(t===n.piece.length){let e=n.next();(0,r.KI)(this,n),this.validateCRLFWithPrevNode(e),this.computeBufferMetadata();return}this.deleteNodeHead(n,l),this._searchCache.validate(e),this.validateCRLFWithPrevNode(n),this.computeBufferMetadata();return}if(i.nodeStartOffset+n.piece.length===e+t){this.deleteNodeTail(n,o),this.validateCRLFWithNextNode(n),this.computeBufferMetadata();return}this.shrinkNode(n,o,l),this.computeBufferMetadata();return}let l=[],a=this.positionInBuffer(n,i.remainder);this.deleteNodeTail(n,a),this._searchCache.validate(e),0===n.piece.length&&l.push(n);let h=this.positionInBuffer(o,s.remainder);this.deleteNodeHead(o,h),0===o.piece.length&&l.push(o);let d=n.next();for(let e=d;e!==r.Nc&&e!==o;e=e.next())l.push(e);let c=0===n.piece.length?n.prev():n;this.deleteNodes(l),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){let i=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){let s=t.piece,n={line:s.start.line+1,column:0},o=new u(s.bufferIndex,n,s.end,this.getLineFeedCnt(s.bufferIndex,n,s.end),s.length-1);t.piece=o,e+="\n",(0,r.Z2)(this,t,-1,-1),0===t.piece.length&&i.push(t)}let s=this.createNewPieces(e),n=this.rbInsertLeft(t,s[s.length-1]);for(let e=s.length-2;e>=0;e--)n=this.rbInsertLeft(n,s[e]);this.validateCRLFWithPrevNode(n),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let i=this.createNewPieces(e),s=this.rbInsertRight(t,i[0]),n=s;for(let e=1;e<i.length;e++)n=this.rbInsertRight(n,i[e]);this.validateCRLFWithPrevNode(s)}positionInBuffer(e,t,i){let s=e.piece,n=e.piece.bufferIndex,o=this._buffers[n].lineStarts,r=o[s.start.line]+s.start.column+t,l=s.start.line,a=s.end.line,h=0,d=0,c=0;for(;l<=a&&(c=o[h=l+(a-l)/2|0],h!==a);){;if(d=o[h+1],r<c)a=h-1;else if(r>=d)l=h+1;else break}return i?(i.line=h,i.column=r-c,null):{line:h,column:r-c}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;let s=this._buffers[e].lineStarts;if(i.line===s.length-1)return i.line-t.line;let n=s[i.line+1],o=s[i.line]+i.column;return n>o+1?i.line-t.line:13===this._buffers[e].buffer.charCodeAt(o-1)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)(0,r.KI)(this,e[t])}createNewPieces(e){if(e.length>65535){let t=[];for(;e.length>65535;){let i;let s=e.charCodeAt(65534);13===s||s>=55296&&s<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,65535),e=e.substring(65535));let n=d(i);t.push(new u(this._buffers.length,{line:0,column:0},{line:n.length-1,column:i.length-n[n.length-1]},n.length-1,i.length)),this._buffers.push(new p(i,n))}let i=d(e);return t.push(new u(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new p(e,i)),t}let t=this._buffers[0].buffer.length,i=d(e,!1),s=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},s=this._lastChangeBufferPos;for(let e=0;e<i.length;e++)i[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<i.length;e++)i[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1)),this._buffers[0].buffer+=e}let n=this._buffers[0].buffer.length,o=this._buffers[0].lineStarts.length-1,r=n-this._buffers[0].lineStarts[o],l={line:o,column:r},a=new u(0,s,l,this.getLineFeedCnt(0,s,l),n-t);return this._lastChangeBufferPos=l,[a]}getLineRawContent(e,t=0){let i=this.root,s="",n=this._searchCache.get2(e);if(n){i=n.node;let o=this.getAccumulatedValue(i,e-n.nodeStartLineNumber-1),r=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(n.nodeStartLineNumber+i.piece.lineFeedCnt===e)s=r.substring(l+o,l+i.piece.length);else{let s=this.getAccumulatedValue(i,e-n.nodeStartLineNumber);return r.substring(l+o,l+s-t)}}else{let n=0,o=e;for(;i!==r.Nc;)if(i.left!==r.Nc&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){let s=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),l=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:n,nodeStartLineNumber:o-(e-1-i.lf_left)}),l.substring(a+s,a+r-t)}else if(i.lf_left+i.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(i,e-i.lf_left-2),n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s=n.substring(o+t,o+i.piece.length);break}else e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==r.Nc;){let e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){let n=this.getAccumulatedValue(i,0),o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s+=e.substring(o,o+n-t);break}{let t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);s+=e.substr(t,i.piece.length)}i=i.next()}return s}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==r.Nc;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){let i=e.piece,s=this.positionInBuffer(e,t),n=s.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,s);if(t!==n)return{index:t,remainder:0}}return{index:n,remainder:s.column}}getAccumulatedValue(e,t){if(t<0)return 0;let i=e.piece,s=this._buffers[i.bufferIndex].lineStarts,n=i.start.line+t+1;return n>i.end.line?s[i.end.line]+i.end.column-s[i.start.line]-i.start.column:s[n]-s[i.start.line]-i.start.column}deleteNodeTail(e,t){let i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.end),o=this.offsetInBuffer(i.bufferIndex,t),l=this.getLineFeedCnt(i.bufferIndex,i.start,t),a=l-s,h=o-n,d=i.length+h;e.piece=new u(i.bufferIndex,i.start,t,l,d),(0,r.Z2)(this,e,h,a)}deleteNodeHead(e,t){let i=e.piece,s=i.lineFeedCnt,n=this.offsetInBuffer(i.bufferIndex,i.start),o=this.getLineFeedCnt(i.bufferIndex,t,i.end),l=this.offsetInBuffer(i.bufferIndex,t),a=o-s,h=n-l,d=i.length+h;e.piece=new u(i.bufferIndex,t,i.end,o,d),(0,r.Z2)(this,e,h,a)}shrinkNode(e,t,i){let s=e.piece,n=s.start,o=s.end,l=s.length,a=s.lineFeedCnt,h=this.getLineFeedCnt(s.bufferIndex,s.start,t),d=this.offsetInBuffer(s.bufferIndex,t)-this.offsetInBuffer(s.bufferIndex,n);e.piece=new u(s.bufferIndex,s.start,t,h,d),(0,r.Z2)(this,e,d-l,h-a);let c=new u(s.bufferIndex,i,o,this.getLineFeedCnt(s.bufferIndex,i,o),this.offsetInBuffer(s.bufferIndex,o)-this.offsetInBuffer(s.bufferIndex,i)),p=this.rbInsertRight(e,c);this.validateCRLFWithPrevNode(p)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");let i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),s=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;let n=d(t,!1);for(let e=0;e<n.length;e++)n[e]+=s;if(i){let e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:s-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1));let o=this._buffers[0].lineStarts.length-1,l=this._buffers[0].buffer.length-this._buffers[0].lineStarts[o],a={line:o,column:l},h=e.piece.length+t.length,c=e.piece.lineFeedCnt,p=this.getLineFeedCnt(0,e.piece.start,a),f=p-c;e.piece=new u(e.piece.bufferIndex,e.piece.start,a,p,h),this._lastChangeBufferPos=a,(0,r.Z2)(this,e,t.length,f)}nodeAt(e){let t=this.root,i=this._searchCache.get(e);if(i)return{node:i.node,nodeStartOffset:i.nodeStartOffset,remainder:e-i.nodeStartOffset};let s=0;for(;t!==r.Nc;)if(t.size_left>e)t=t.left;else if(t.size_left+t.piece.length>=e){s+=t.size_left;let i={node:t,remainder:e-t.size_left,nodeStartOffset:s};return this._searchCache.set(i),i}else e-=t.size_left+t.piece.length,s+=t.size_left+t.piece.length,t=t.right;return null}nodeAt2(e,t){let i=this.root,s=0;for(;i!==r.Nc;)if(i.left!==r.Nc&&i.lf_left>=e-1)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt>e-1){let n=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1);return s+=i.size_left,{node:i,remainder:Math.min(n+t-1,o),nodeStartOffset:s}}else if(i.lf_left+i.piece.lineFeedCnt===e-1){let n=this.getAccumulatedValue(i,e-i.lf_left-2);if(n+t-1<=i.piece.length)return{node:i,remainder:n+t-1,nodeStartOffset:s};t-=i.piece.length-n;break}else e-=i.lf_left+i.piece.lineFeedCnt,s+=i.size_left+i.piece.length,i=i.right;for(i=i.next();i!==r.Nc;){if(i.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(i,0),s=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:s}}if(i.piece.length>=t-1){let e=this.offsetOfNode(i);return{node:i,remainder:t-1,nodeStartOffset:e}}else t-=i.piece.length;i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return -1;let i=this._buffers[e.piece.bufferIndex],s=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(s)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===r.Nc||0===e.piece.lineFeedCnt)return!1;let t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,s=t.start.line,n=i[s]+t.start.column;return s!==i.length-1&&!(i[s+1]>n+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(n)}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==r.Nc&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let i;let s=[],n=this._buffers[e.piece.bufferIndex].lineStarts;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};let o=e.piece.length-1,l=e.piece.lineFeedCnt-1;e.piece=new u(e.piece.bufferIndex,e.piece.start,i,l,o),(0,r.Z2)(this,e,-1,-1),0===e.piece.length&&s.push(e);let a={line:t.piece.start.line+1,column:0},h=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new u(t.piece.bufferIndex,a,t.piece.end,d,h),(0,r.Z2)(this,t,-1,-1),0===t.piece.length&&s.push(t);let c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(let e=0;e<s.length;e++)(0,r.KI)(this,s[e])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let i=t.next();if(this.startWithLF(i)){if(e+="\n",1===i.piece.length)(0,r.KI)(this,i);else{let e=i.piece,t={line:e.start.line+1,column:0},s=e.length-1,n=this.getLineFeedCnt(e.bufferIndex,t,e.end);i.piece=new u(e.bufferIndex,t,e.end,n,s),(0,r.Z2)(this,i,-1,-1)}return!0}}return!1}iterate(e,t){if(e===r.Nc)return t(r.Nc);let i=this.iterate(e.left,t);return i?t(e)&&this.iterate(e.right,t):i}getNodeContent(e){if(e===r.Nc)return"";let t=this._buffers[e.piece.bufferIndex],i=e.piece,s=this.offsetInBuffer(i.bufferIndex,i.start),n=this.offsetInBuffer(i.bufferIndex,i.end);return t.buffer.substring(s,n)}getPieceContent(e){let t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start),s=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,s)}rbInsertRight(e,t){let i=new r.OF(t,1);if(i.left=r.Nc,i.right=r.Nc,i.parent=r.Nc,i.size_left=0,i.lf_left=0,this.root===r.Nc)this.root=i,i.color=0;else if(e.right===r.Nc)e.right=i,i.parent=e;else{let t=(0,r.xq)(e.right);t.left=i,i.parent=t}return(0,r.h4)(this,i),i}rbInsertLeft(e,t){let i=new r.OF(t,1);if(i.left=r.Nc,i.right=r.Nc,i.parent=r.Nc,i.size_left=0,i.lf_left=0,this.root===r.Nc)this.root=i,i.color=0;else if(e.left===r.Nc)e.left=i,i.parent=e;else{let t=(0,r.Q$)(e.left);t.right=i,i.parent=t}return(0,r.h4)(this,i),i}}},2780:function(e,t,i){"use strict";i.d(t,{b:function(){return x}});var s,n=i("98212"),o=i("37764"),r=i("97147"),l=i("84144"),a=i("94554"),h=i("85829"),d=i("51405"),c=i("77786"),u=i("756"),p=i("94215"),f=i("53255"),g=i("85236"),m=i("6438"),v=i("79221"),b=i("38386"),_=function(e,t){return function(i,s){t(i,s,e)}};function w(e){return e.toString()}class S{constructor(e,t,i){this.model=e,this._modelEventListeners=new o.SL,this.model=e,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(t=>i(e,t)))}dispose(){this._modelEventListeners.dispose()}}let C=r.IJ||r.dz?1:2;class y{constructor(e,t,i,s,n,o,r,l){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=s,this.heapSize=n,this.sha1=o,this.versionId=r,this.alternativeVersionId=l}}let x=s=class extends o.JT{constructor(e,t,i,s,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=s,this._languageConfigurationService=o,this._onModelAdded=this._register(new n.Q5),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new n.Q5),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new n.Q5),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration(e=>this._updateModelOptions(e))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let s=a.D.tabSize;if(e.editor&&void 0!==e.editor.tabSize){let t=parseInt(e.editor.tabSize,10);!isNaN(t)&&(s=t),s<1&&(s=1)}let n="tabSize";if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){let t=parseInt(e.editor.indentSize,10);!isNaN(t)&&(n=Math.max(t,1))}let o=a.D.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&!!e.editor.insertSpaces);let r=C,l=e.eol;"\r\n"===l?r=2:"\n"===l&&(r=1);let h=a.D.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(h="false"!==e.editor.trimAutoWhitespace&&!!e.editor.trimAutoWhitespace);let d=a.D.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(d="false"!==e.editor.detectIndentation&&!!e.editor.detectIndentation);let c=a.D.largeFileOptimizations;e.editor&&void 0!==e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&!!e.editor.largeFileOptimizations);let u=a.D.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"==typeof e.editor.bracketPairColorization&&(u={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:s,indentSize:n,insertSpaces:o,detectIndentation:d,defaultEOL:r,trimAutoWhitespace:h,largeFileOptimizations:c,bracketPairColorizationOptions:u}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);let i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"==typeof i&&"auto"!==i?i:3===r.OS||2===r.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){let e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e}getCreationOptions(e,t,i){let n="string"==typeof e?e:e.languageId,o=this._modelCreationOptionsByLanguageAndResource[n+t];if(!o){let e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),r=this._getEOL(t,n);o=s._readModelOptions({editor:e,eol:r},i),this._modelCreationOptionsByLanguageAndResource[n+t]=o}return o}_updateModelOptions(e){let t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);let i=Object.keys(this._models);for(let n=0,o=i.length;n<o;n++){let o=i[n],r=this._models[o],l=r.model.getLanguageId(),a=r.model.uri;if(e&&!e.affectsConfiguration("editor",{overrideIdentifier:l,resource:a})&&!e.affectsConfiguration("files.eol",{overrideIdentifier:l,resource:a}))continue;let h=t[l+a],d=this.getCreationOptions(l,a,r.model.isForSimpleWidget);s._setModelOptionsForModel(r.model,d,h)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),!(i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&(0,v.fS)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions))&&(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(w(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){let t=this._disposedModels.get(w(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(w(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){let t=[];for(this._disposedModels.forEach(e=>{!e.sharesUndoRedoStack&&t.push(e)}),t.sort((e,t)=>e.time-t.time);t.length>0&&this._disposedModelsHeapSize>e;){let e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,s){let n=this.getCreationOptions(t,i,s),o=new l.yO(e,t,n,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(w(i))){let e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),s=this._getSHA1Computer(),n=!!s.canComputeSHA1(o)&&s.computeSHA1(o)===e.sha1;if(n||e.sharesUndoRedoStack){for(let e of t.past)(0,g.e9)(e)&&e.matchesResource(i)&&e.setModel(o);for(let e of t.future)(0,g.e9)(e)&&e.matchesResource(i)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(i,!0,e=>(0,g.e9)(e)&&e.matchesResource(i)),n&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}let r=w(o.uri);if(this._models[r])throw Error("ModelService: Cannot add model because it already exists!");let a=new S(o,e=>this._onWillDispose(e),(e,t)=>this._onDidChangeLanguage(e,t));return this._models[r]=a,a}createModel(e,t,i,s=!1){let n;return n=t?this._createModelData(e,t,i,s):this._createModelData(e,h.bd,i,s),this._onModelAdded.fire(n.model),n.model}getModels(){let e=[],t=Object.keys(this._models);for(let i=0,s=t.length;i<s;i++){let s=t[i];e.push(this._models[s].model)}return e}getModel(e){let t=w(e),i=this._models[t];return i?i.model:null}_schemaShouldMaintainUndoRedoElements(e){return e.scheme===m.lg.file||e.scheme===m.lg.vscodeRemote||e.scheme===m.lg.vscodeUserData||e.scheme===m.lg.vscodeNotebookCell||"fake-fs"===e.scheme}_onWillDispose(e){let t=w(e.uri),i=this._models[t],n=this._undoRedoService.getUriComparisonKey(e.uri)!==e.uri.toString(),o=!1,r=0;if(n||this._shouldRestoreUndoStack()&&this._schemaShouldMaintainUndoRedoElements(e.uri)){let t=this._undoRedoService.getElements(e.uri);if(t.past.length>0||t.future.length>0){for(let i of t.past)(0,g.e9)(i)&&i.matchesResource(e.uri)&&(o=!0,r+=i.heapSize(e.uri),i.setModel(e.uri));for(let i of t.future)(0,g.e9)(i)&&i.matchesResource(e.uri)&&(o=!0,r+=i.heapSize(e.uri),i.setModel(e.uri))}}let l=s.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(o){if(n||!(r>l)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(l-r),this._undoRedoService.setElementsValidFlag(e.uri,!1,t=>(0,g.e9)(t)&&t.matchesResource(e.uri)),this._insertDisposedModel(new y(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,r,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{let e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}}else if(!n){let e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){let i=t.oldLanguage,n=e.getLanguageId(),o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),r=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);s._setModelOptionsForModel(e,r,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new L}};x.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,x=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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}([_(0,u.Ui),_(1,c.y),_(2,p.tJ),_(3,d.O),_(4,b.c_)],x);class L{canComputeSHA1(e){return e.getValueLength()<=L.MAX_MODEL_SIZE}computeSHA1(e){let t;let i=new f.yP,s=e.createSnapshot();for(;t=s.read();)i.update(t);return i.digest()}}L.MAX_MODEL_SIZE=10485760},63483:function(e,t,i){"use strict";i.d(t,{a:function(){return a}});var s=i("83112"),n=i("73886"),o=i("71482"),r=i("26089"),l=i("56810");class a{static computeUnicodeHighlights(e,t,i){let a,d;let c=i?i.startLineNumber:1,u=i?i.endLineNumber:e.getLineCount(),p=new h(t),f=p.getCandidateCodePoints();a="allNonBasicAscii"===f?RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):RegExp(`${function(e,t){return`[${o.ec(e.map(e=>String.fromCodePoint(e)).join(""))}]`}(Array.from(f))}`,"g");let g=new n.sz(null,a),m=[],v=!1,b=0,_=0,w=0;e:for(let t=c;t<=u;t++){let i=e.getLineContent(t),n=i.length;g.reset(0);do if(d=g.next(i)){let e=d.index,a=d.index+d[0].length;if(e>0){let t=i.charCodeAt(e-1);o.ZG(t)&&e--}if(a+1<n){let e=i.charCodeAt(a-1);o.ZG(e)&&a++}let h=i.substring(e,a),c=(0,l.t2)(e+1,l.Af,i,0);c&&c.endColumn<=e+1&&(c=null);let u=p.shouldHighlightNonBasicASCII(h,c?c.word:null);if(0!==u){3===u?b++:2===u?_++:1===u?w++:(0,r.vE)(u);if(m.length>=1e3){v=!0;break e}m.push(new s.e(t,e+1,t,a+1))}}while(d)}return{ranges:m,hasMore:v,ambiguousCharacterCount:b,invisibleCharacterCount:_,nonBasicAsciiCharacterCount:w}}static computeUnicodeHighlightReason(e,t){let i=new h(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{let s=e.codePointAt(0),n=i.ambiguousCharacters.getPrimaryConfusable(s),r=o.ZK.getLocales().filter(e=>!o.ZK.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(n),notAmbiguousInLocales:r}}case 1:return{kind:2}}}}class h{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=o.ZK.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let e=new Set;if(this.options.invisibleCharacters)for(let t of o.vU.codePoints)!d(String.fromCodePoint(t))&&e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,n=!1;if(t)for(let e of t){let t=e.codePointAt(0),i=o.$i(e);s=s||i,!i&&!this.ambiguousCharacters.isAmbiguous(t)&&!o.vU.isInvisibleCharacter(t)&&(n=!0)}return!s&&n?0:this.options.invisibleCharacters&&!d(e)&&o.vU.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function d(e){return" "===e||"\n"===e||" "===e}},3907:function(e,t,i){"use strict";i.d(t,{$l:function(){return u},$t:function(){return d},IP:function(){return a},SQ:function(){return p},Wx:function(){return c},l_:function(){return r},ud:function(){return l},wA:function(){return h}});var s=i("47983"),n=i("71482"),o=i("83112");class r{constructor(e,t,i,s){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|s}}class l{constructor(e,t){this.tabSize=e,this.data=t}}class a{constructor(e,t,i,s,n,o,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=s,this.startVisibleColumn=n,this.tokens=o,this.inlineDecorations=r}}class h{constructor(e,t,i,s,n,o,r,l,a,d){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=h.isBasicASCII(i,o),this.containsRTL=h.containsRTL(i,this.isBasicASCII,n),this.tokens=r,this.inlineDecorations=l,this.tabSize=a,this.startVisibleColumn=d}static isBasicASCII(e,t){return!t||n.$i(e)}static containsRTL(e,t,i){return!t&&!!i&&n.Ut(e)}}class d{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class c{constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=s}toInlineDecoration(e){return new d(new o.e(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class p{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){if(e.zIndex===t.zIndex)return e.color<t.color?-1:e.color>t.color?1:0;return e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&s.fS(e.data,t.data)}static equalsArr(e,t){return s.fS(e,t,p.equals)}}},84275:function(e,t,i){"use strict";var s=i("36809"),n=i("74938"),o=i("43711"),r=i("37797"),l=i("84740"),a=i("94479"),h=i("6314"),d=i("88928");(0,s._K)(r.G.ID,r.G,3),(0,s._K)(l.f.ID,l.f,4),(0,s.Qr)(o.E7),(0,s.Qr)(o.Eb),(0,s.Qr)(o.VQ),(0,s.Qr)(o.o$),(0,s.Qr)(o.S5),(0,s.Qr)(o.Hv),(0,s.fK)(new o.dW),d.B.as(h.IP.Configuration).registerConfiguration({...n.wk,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:a.NC("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),d.B.as(h.IP.Configuration).registerConfiguration({...n.wk,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:a.NC("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}})},37785:function(e,t,i){"use strict";i.d(t,{O:function(){return h}}),i("16046");var s=i("76115"),n=i("13105");i("95482");var o=i("94479"),r=i("22712");let l=Object.freeze({kind:r.o.Empty,title:(0,o.NC)("codeAction.widget.id.more","More Actions...")}),a=Object.freeze([{kind:n.yN.QuickFix,title:(0,o.NC)("codeAction.widget.id.quickfix","Quick Fix")},{kind:n.yN.RefactorExtract,title:(0,o.NC)("codeAction.widget.id.extract","Extract"),icon:s.l.wrench},{kind:n.yN.RefactorInline,title:(0,o.NC)("codeAction.widget.id.inline","Inline"),icon:s.l.wrench},{kind:n.yN.RefactorRewrite,title:(0,o.NC)("codeAction.widget.id.convert","Rewrite"),icon:s.l.wrench},{kind:n.yN.RefactorMove,title:(0,o.NC)("codeAction.widget.id.move","Move"),icon:s.l.wrench},{kind:n.yN.SurroundWith,title:(0,o.NC)("codeAction.widget.id.surround","Surround With"),icon:s.l.surroundWith},{kind:n.yN.Source,title:(0,o.NC)("codeAction.widget.id.source","Source Action"),icon:s.l.symbolFile},l]);function h(e,t,i){if(!t)return e.map(e=>{var t;return{kind:"action",item:e,group:l,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!(null===(t=e.action.edit)||void 0===t?void 0:t.edits.length)}});let n=a.map(e=>({group:e,actions:[]}));for(let t of e){let e=t.action.kind?new r.o(t.action.kind):r.o.None;for(let i of n)if(i.group.kind.contains(e)){i.actions.push(t);break}}let o=[];for(let e of n)if(e.actions.length)for(let t of(o.push({kind:"header",group:e.group}),e.actions)){let n=e.group;o.push({kind:"action",item:t,group:t.action.isAI?{title:n.title,kind:n.kind,icon:s.l.sparkle}:n,label:t.action.title,disabled:!!t.action.disabled,keybinding:i(t.action)})}return o}},42001:function(e,t,i){"use strict";i.d(t,{o:function(){return h}});var s=i("71482"),n=i("89172"),o=i("70668"),r=i("83112"),l=i("98681"),a=i("54389");class h{constructor(e,t,i,s,n,o,r){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=s,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=o,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,i,s){e.tokenization.tokenizeIfCheap(t);let n=e.getLanguageIdAtPosition(t,1),o=s.getLanguageConfiguration(n).comments,r=o?o.lineCommentToken:null;if(!r)return null;let l=[];for(let e=0,s=i-t+1;e<s;e++)l[e]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return l}static _analyzeLines(e,t,i,n,o,r,l,h){let d,c=!0;d=0===e||1!==e&&!0;for(let h=0,u=n.length;h<u;h++){let u=n[h],p=o+h;if(p===o&&l){u.ignore=!0;continue}let f=i.getLineContent(p),g=s.LC(f);if(-1===g){u.ignore=r,u.commentStrOffset=f.length;continue}if(c=!1,u.ignore=!1,u.commentStrOffset=g,d&&!a.K._haystackHasNeedleAtOffset(f,u.commentStr,g)&&(0===e?d=!1:1===e||(u.ignore=!0)),d&&t){let e=g+u.commentStrLength;e<f.length&&32===f.charCodeAt(e)&&(u.commentStrLength+=1)}}if(0===e&&c){d=!1;for(let e=0,t=n.length;e<t;e++)n[e].ignore=!1}return{supported:!0,shouldRemoveComments:d,lines:n}}static _gatherPreflightData(e,t,i,s,n,o,r,l){let a=h._gatherPreflightCommentStrings(i,s,n,l);return null===a?{supported:!1}:h._analyzeLines(e,t,i,a,s,o,r,l)}_executeLineComments(e,t,i,s){let n;i.shouldRemoveComments?n=h._createRemoveLineCommentsOperations(i.lines,s.startLineNumber):(h._normalizeInsertionPoint(e,i.lines,s.startLineNumber,this._indentSize),n=this._createAddLineCommentsOperations(i.lines,s.startLineNumber));let l=new o.L(s.positionLineNumber,s.positionColumn);for(let i=0,s=n.length;i<s;i++)t.addEditOperation(n[i].range,n[i].text),r.e.isEmpty(n[i].range)&&r.e.getStartPosition(n[i].range).equals(l)&&e.getLineContent(l.lineNumber).length+1===l.column&&(this._deltaColumn=(n[i].text||"").length);this._selectionId=t.trackSelection(s)}_attemptRemoveBlockComment(e,t,i,s){let n=t.startLineNumber,o=t.endLineNumber,l=s.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),h=e.getLineContent(n).lastIndexOf(i,l-1),d=e.getLineContent(o).indexOf(s,t.endColumn-1-i.length);return(-1!==h&&-1===d&&(d=e.getLineContent(n).indexOf(s,h+i.length),o=n),-1===h&&-1!==d&&(h=e.getLineContent(o).lastIndexOf(i,d),n=o),t.isEmpty()&&(-1===h||-1===d)&&-1!==(h=e.getLineContent(n).indexOf(i))&&(d=e.getLineContent(n).indexOf(s,h+i.length)),-1!==h&&32===e.getLineContent(n).charCodeAt(h+i.length)&&(i+=" "),-1!==d&&32===e.getLineContent(o).charCodeAt(d-1)&&(s=" "+s,d-=1),-1!==h&&-1!==d)?a.K._createRemoveBlockCommentOperations(new r.e(n,h+i.length+1,o,d+1),i,s):null}_executeBlockComment(e,t,i){e.tokenization.tokenizeIfCheap(i.startLineNumber);let n=e.getLanguageIdAtPosition(i.startLineNumber,1),o=this.languageConfigurationService.getLanguageConfiguration(n).comments;if(!o||!o.blockCommentStartToken||!o.blockCommentEndToken)return;let l=o.blockCommentStartToken,h=o.blockCommentEndToken,d=this._attemptRemoveBlockComment(e,i,l,h);if(!d){if(i.isEmpty()){let t=e.getLineContent(i.startLineNumber),n=s.LC(t);-1===n&&(n=t.length),d=a.K._createAddBlockCommentOperations(new r.e(i.startLineNumber,n+1,i.startLineNumber,t.length+1),l,h,this._insertSpace)}else d=a.K._createAddBlockCommentOperations(new r.e(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),l,h,this._insertSpace);1===d.length&&(this._deltaColumn=l.length+1)}for(let e of(this._selectionId=t.trackSelection(i),d))t.addEditOperation(e.range,e.text)}getEditOperations(e,t){let i=this._selection;if(this._moveEndPositionDown=!1,i.startLineNumber===i.endLineNumber&&this._ignoreFirstLine){t.addEditOperation(new r.e(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),this._selectionId=t.trackSelection(i);return}i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));let s=h._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return s.supported?this._executeLineComments(e,t,s,i):this._executeBlockComment(e,t,i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new l.Y(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){let i=[];for(let s=0,o=e.length;s<o;s++){let o=e[s];!o.ignore&&i.push(n.h.delete(new r.e(t+s,o.commentStrOffset+1,t+s,o.commentStrOffset+o.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){let i=[],s=this._insertSpace?" ":"";for(let r=0,l=e.length;r<l;r++){let l=e[r];!l.ignore&&i.push(n.h.insert(new o.L(t+r,l.commentStrOffset+1),l.commentStr+s))}return i}static nextVisibleColumn(e,t,i,s){return i?e+(t-e%t):e+s}static _normalizeInsertionPoint(e,t,i,s){let n,o,r=1073741824;for(let n=0,o=t.length;n<o;n++){if(t[n].ignore)continue;let o=e.getLineContent(i+n),l=0;for(let e=0,i=t[n].commentStrOffset;l<r&&e<i;e++)l=h.nextVisibleColumn(l,s,9===o.charCodeAt(e),1);l<r&&(r=l)}r=Math.floor(r/s)*s;for(let l=0,a=t.length;l<a;l++){if(t[l].ignore)continue;let a=e.getLineContent(i+l),d=0;for(n=0,o=t[l].commentStrOffset;d<r&&n<o;n++)d=h.nextVisibleColumn(d,s,9===a.charCodeAt(n),1);d>r?t[l].commentStrOffset=n-1:t[l].commentStrOffset=n}}}},94927:function(e,t,i){"use strict";var s,n=i("55952"),o=i("40817"),r=i("16234"),l=i("37764"),a=i("97147"),h=i("36809"),d=i("8109"),c=i("94479"),u=i("95316"),p=i("77667"),f=i("81844"),g=i("81171"),m=i("756"),v=i("51753"),b=function(e,t){return function(i,s){t(i,s,e)}};let _=s=class{static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,o,r,a,h){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=s,this._keybindingService=o,this._menuService=r,this._configurationService=a,this._workspaceContextService=h,this._toDispose=new l.SL,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(e=>this._onContextMenu(e))),this._toDispose.add(this._editor.onMouseWheel(e=>{if(this._contextMenuIsBeingShownCount>0){let t=this._contextViewService.getContextViewElement(),i=e.srcElement;!(i.shadowRoot&&n.Ay(t)===i.shadowRoot)&&this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(12===e.target.type||6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(let i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}!t&&this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24)||!this._editor.hasModel())return;let t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){let i=[],s=this._menuService.createMenu(t,this._contextKeyService),n=s.getActions({arg:e.uri});for(let t of(s.dispose(),n)){let[,s]=t,n=0;for(let t of s)if(t instanceof u.NZ){let s=this._getMenuActions(e,t.item.submenu);s.length>0&&(i.push(new r.wY(t.id,t.label,s)),n++)}else i.push(t),n++;n&&i.push(new r.Z0)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;let i=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let s=t;if(!s){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();let e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=n.i(this._editor.getDomNode()),i=t.left+e.left;s={x:i,y:t.top+e.top+e.height}}let r=this._editor.getOption(127)&&!a.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:r?this._editor.getDomNode():void 0,getAnchor:()=>s,getActions:()=>e,getActionViewItem:e=>{let t=this._keybindingFor(e);return t?new o.gU(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0}):"function"==typeof e.getActionViewItem?e.getActionViewItem():new o.gU(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:i})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||(0,v.x)(this._workspaceContextService.getWorkspace()))return;let t=this._editor.getOption(73),i=0,s=e=>({id:`menu-action-${++i}`,label:e.label,tooltip:"",class:void 0,enabled:void 0===e.enabled||e.enabled,checked:e.checked,run:e.run}),n=(e,t)=>new r.wY(`menu-action-${++i}`,e,t,void 0),o=(e,t,i,o,r)=>{if(!t)return s({label:e,enabled:t,run:()=>{}});let l=e=>()=>{this._configurationService.updateValue(i,e)},a=[];for(let e of r)a.push(s({label:e.label,checked:o===e.value,run:l(e.value)}));return n(e,a)},l=[];l.push(s({label:c.NC("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),l.push(new r.Z0),l.push(s({label:c.NC("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),l.push(o(c.NC("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:c.NC("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:c.NC("context.minimap.size.fill","Fill"),value:"fill"},{label:c.NC("context.minimap.size.fit","Fit"),value:"fit"}])),l.push(o(c.NC("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:c.NC("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:c.NC("context.minimap.slider.always","Always"),value:"always"}]));let h=this._editor.getOption(127)&&!a.gn;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:h?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>l,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};_.ID="editor.contrib.contextmenu",_=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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}([b(1,f.i),b(2,f.u),b(3,p.i6),b(4,g.d),b(5,u.co),b(6,m.Ui),b(7,v.ec)],_);class w extends h.R6{constructor(){super({id:"editor.action.showContextMenu",label:c.NC("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:d.u.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;null===(i=_.get(t))||void 0===i||i.showContextMenu()}}(0,h._K)(_.ID,_,2),(0,h.Qr)(w)},56803:function(e,t,i){"use strict";i.d(t,{_:function(){return _}});var s=i("98212"),n=i("37764"),o=i("59571"),r=i("36809"),l=i("87294"),a=i("83112"),h=i("94479"),d=i("77667"),c=i("91114"),u=i("95449"),p=i("81171"),f=i("14811"),g=i("97717"),m=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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},v=function(e,t){return function(i,s){t(i,s,e)}};let b=new d.uy("hasSymbols",!1,(0,h.NC)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),_=(0,u.yh)("ISymbolNavigationService"),w=class{constructor(e,t,i,s){this._editorService=t,this._notificationService=i,this._keybindingService=s,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=b.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){let t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();let i=new S(this._editorService),s=i.onDidChange(e=>{if(this._ignoreEditorChange)return;let i=this._editorService.getActiveCodeEditor();if(!i)return;let s=i.getModel(),n=i.getPosition();if(!s||!n)return;let r=!1,l=!1;for(let e of t.references)if((0,o.Xy)(e.uri,s.uri))r=!0,l=l||a.e.containsPosition(e.range,n);else if(r)break;(!r||!l)&&this.reset()});this._currentState=(0,n.F8)(i,s)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;let t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:a.e.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();let t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?(0,h.NC)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,h.NC)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};w=m([v(0,d.i6),v(1,l.$),v(2,g.lT),v(3,p.d)],w),(0,c.z)(_,w,1),(0,r.fK)(new class extends r._l{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:b,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(_).revealNext(t)}}),f.W.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:b,primary:9,handler(e){e.get(_).reset()}});let S=class{constructor(e){this._listener=new Map,this._disposables=new n.SL,this._onDidChange=new s.Q5,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,n.B9)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,n.F8)(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};S=m([v(0,l.$)],S)},69115:function(e,t,i){"use strict";i.d(t,{k:function(){return x}});var s=i("55952"),n=i("47983"),o=i("1966"),r=i("45802"),l=i("37764"),a=i("59571"),h=i("83112"),d=i("76891"),c=i("49659"),u=i("31843"),p=i("37797"),f=i("13105"),g=i("32174"),m=i("94479"),v=i("88799"),b=i("19309"),_=i("24726"),w=function(e,t){return function(i,s){t(i,s,e)}};let S=s.$;class C{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let y={type:1,filter:{include:f.yN.QuickFix},triggerAction:f.aQ.QuickFixHover},x=class{constructor(e,t,i,s){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=s,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];let i=this._editor.getModel(),s=e.range.startLineNumber,n=i.getLineMaxColumn(s),o=[];for(let r of t){let t=r.range.startLineNumber===s?r.range.startColumn:1,l=r.range.endLineNumber===s?r.range.endColumn:n,a=this._markerDecorationsService.getMarker(i.uri,r);if(!a)continue;let d=new h.e(e.range.startLineNumber,t,e.range.startLineNumber,l);o.push(new C(this,d,a))}return o}renderHoverParts(e,t){if(!t.length)return l.JT.None;let i=new l.SL;t.forEach(t=>e.fragment.appendChild(this.renderMarkerHover(t,i)));let s=1===t.length?t[0]:t.sort((e,t)=>v.ZL.compare(e.marker.severity,t.marker.severity))[0];return this.renderMarkerStatusbar(e,s,i),i}renderMarkerHover(e,t){let i=S("div.hover-row");i.tabIndex=0;let o=s.R3(i,S("div.marker.hover-contents")),{source:l,message:h,code:d,relatedInformation:c}=e.marker;this._editor.applyFontInfo(o);let u=s.R3(o,S("span"));if(u.style.whiteSpace="pre-wrap",u.innerText=h,l||d){if(d&&"string"!=typeof d){let e=S("span");l&&(s.R3(e,S("span")).innerText=l);let i=s.R3(e,S("a.code-link"));i.setAttribute("href",d.target.toString()),t.add(s.nm(i,"click",e=>{this._openerService.open(d.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})),s.R3(i,S("span")).innerText=d.value;let n=s.R3(o,e);n.style.opacity="0.6",n.style.paddingLeft="6px"}else{let e=s.R3(o,S("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=l&&d?`${l}(${d})`:l||`(${d})`}}if((0,n.Of)(c))for(let{message:e,resource:i,startLineNumber:n,startColumn:l}of c){let h=s.R3(o,S("div"));h.style.marginTop="8px";let d=s.R3(h,S("a"));d.innerText=`${(0,a.EZ)(i)}(${n}, ${l}): `,d.style.cursor="pointer",t.add(s.nm(d,"click",e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(i,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:n,startColumn:l}}}).catch(r.dL)}));let c=s.R3(h,S("span"));c.innerText=e,this._editor.applyFontInfo(c)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity===v.ZL.Error||t.marker.severity===v.ZL.Warning||t.marker.severity===v.ZL.Info){let i=g.c.get(this._editor);i&&e.statusBar.addAction({label:m.NC("view problem","View Problem"),commandId:g.v.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(91)){let n=e.statusBar.append(S("div"));this.recentMarkerCodeActionsInfo&&(v.H0.makeKey(this.recentMarkerCodeActionsInfo.marker)===v.H0.makeKey(t.marker)?!this.recentMarkerCodeActionsInfo.hasCodeActions&&(n.textContent=m.NC("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);let a=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?l.JT.None:(0,o.Vg)(()=>n.textContent=m.NC("checkingForQuickFixes","Checking for quick fixes..."),200,i);!n.textContent&&(n.textContent=String.fromCharCode(160));let h=this.getCodeActions(t.marker);i.add((0,l.OF)(()=>h.cancel())),h.then(o=>{if(a.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:o.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){o.dispose(),n.textContent=m.NC("noQuickFixes","No quick fixes available");return}n.style.display="none";let r=!1;i.add((0,l.OF)(()=>{!r&&o.dispose()})),e.statusBar.addAction({label:m.NC("quick fixes","Quick Fix..."),commandId:u.cz,run:t=>{r=!0;let i=p.G.get(this._editor),n=s.i(t);e.hide(),null==i||i.showCodeActions(y,o,{x:n.left,y:n.top,width:n.width,height:n.height})}})},r.dL)}}getCodeActions(e){return(0,o.PG)(t=>(0,u.aI)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new h.e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),y,_.Ex.None,t))}};x=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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(1,c.i),w(2,b.v),w(3,d.p)],x)},35190:function(e,t,i){"use strict";var s,n=i("74471"),o=i("1966"),r=i("66735"),l=i("45802"),a=i("4157"),h=i("37764"),d=i("67414"),c=i("98084"),u=i("36809"),p=i("48933"),f=i("87294"),g=i("70668"),m=i("83112"),v=i("8109"),b=i("64141"),_=i("76891"),w=i("77786"),S=i("61791"),C=i("91797"),y=i("94479"),x=i("95316"),L=i("6314"),k=i("77667"),D=i("95449"),I=i("80853"),E=i("97717"),N=i("24726"),A=i("88928"),R=i("48467"),O=i("57380"),T=function(e,t){return function(i,s){t(i,s,e)}};class M{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){let t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){let i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;let s=await i.resolveRenameLocation(this.model,this.position,e);if(s){if(s.rejectReason){t.push(s.rejectReason);continue}return s}}this._providerRenameIdx=0;let i=this.model.getWordAtPosition(this.position);return i?{range:new m.e(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.e.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,s){let n=this._providers[t];if(!n)return{edits:[],rejectReason:i.join("\n")};let o=await n.provideRenameEdits(this.model,this.position,e,s);return o?o.rejectReason?this._provideRenameEdits(e,t+1,i.concat(o.rejectReason),s):o:this._provideRenameEdits(e,t+1,i.concat(y.NC("no result","No result.")),s)}}async function P(e,t,i,s){let n=new M(t,i,e),o=await n.resolveRenameLocation(r.Ts.None);return(null==o?void 0:o.rejectReason)?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(s,r.Ts.None)}let F=s=class{static get(e){return e.getContribution(s.ID)}constructor(e,t,i,s,n,o,l,a,d){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=s,this._progressService=n,this._logService=o,this._configService=l,this._languageFeaturesService=a,this._telemetryService=d,this._disposableStore=new h.SL,this._cts=new r.AU,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(O.wQ,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var e,t;let i;let s=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new r.AU,!this.editor.hasModel()){s("editor has no model");return}let h=this.editor.getPosition(),d=new M(this.editor.getModel(),h,this._languageFeaturesService.renameProvider);if(!d.hasProvider()){s("skeleton has no provider");return}let c=new S.Dl(this.editor,5,void 0,this._cts.token);try{s("resolving rename location");let e=d.resolveRenameLocation(c.token);this._progressService.showWhile(e,250),i=await e,s("resolved rename location")}catch(t){t instanceof l.FU?s("resolve rename location cancelled",JSON.stringify(t,null," ")):(s("resolve rename location failed",t instanceof Error?t:JSON.stringify(t,null," ")),("string"==typeof t||(0,a.Fr)(t))&&(null===(e=C.O.get(this.editor))||void 0===e||e.showMessage(t||y.NC("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),h)));return}finally{c.dispose()}if(!i){s("returning early - no loc");return}if(i.rejectReason){s(`returning early - rejected with reason: ${i.rejectReason}`,i.rejectReason),null===(t=C.O.get(this.editor))||void 0===t||t.showMessage(i.rejectReason,h);return}if(c.token.isCancellationRequested){s("returning early - cts1 cancelled");return}let u=new S.Dl(this.editor,5,i.range,this._cts.token),p=this.editor.getModel(),f=this._languageFeaturesService.newSymbolNamesProvider.all(p),g=await Promise.all(f.map(async e=>{var t;return[e,null!==(t=await e.supportsAutomaticNewSymbolNamesTriggerKind)&&void 0!==t&&t]}));s("creating rename input field and awaiting its result");let v=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),_=await this._renameWidget.getInput(i.range,i.text,v,f.length>0?(e,t)=>{let s=g.slice();return e===b.Ll.Automatic&&(s=s.filter(([e,t])=>t)),s.map(([s])=>s.provideNewSymbolNames(p,i.range,e,t))}:void 0,u);if(s("received response from rename input field"),f.length>0&&this._reportTelemetry(f.length,p.getLanguageId(),_),"boolean"==typeof _){s(`returning early - rename input field response - ${_}`),_&&this.editor.focus(),u.dispose();return}this.editor.focus(),s("requesting rename edits");let w=(0,o.eP)(d.provideRenameEdits(_.newName,u.token),u.token).then(async e=>{if(!e){s("returning early - no rename edits result");return}if(!this.editor.hasModel()){s("returning early - no model after rename edits are provided");return}if(e.rejectReason){s(`returning early - rejected with reason: ${e.rejectReason}`),this._notificationService.info(e.rejectReason);return}this.editor.setSelection(m.e.fromPositions(this.editor.getSelection().getPosition())),s("applying edits"),this._bulkEditService.apply(e,{editor:this.editor,showPreview:_.wantsPreview,label:y.NC("label","Renaming '{0}' to '{1}'",null==i?void 0:i.text,_.newName),code:"undoredo.rename",quotableLabel:y.NC("quotableLabel","Renaming {0} to {1}",null==i?void 0:i.text,_.newName),respectAutoSaveConfig:!0}).then(e=>{s("edits applied"),e.ariaSummary&&(0,n.Z9)(y.NC("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",i.text,_.newName,e.ariaSummary))}).catch(e=>{s(`error when applying edits ${JSON.stringify(e,null," ")}`),this._notificationService.error(y.NC("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)})},e=>{s("error when providing rename edits",JSON.stringify(e,null," ")),this._notificationService.error(y.NC("rename.failed","Rename failed to compute edits")),this._logService.error(e)}).finally(()=>{u.dispose()});return s("returning rename operation"),this._progressService.showWhile(w,250),w}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){let s="boolean"==typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",s)}};F.ID="editor.contrib.renameController",F=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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}([T(1,D.TG),T(2,E.lT),T(3,p.vu),T(4,N.ek),T(5,I.VZ),T(6,w.V),T(7,_.p),T(8,R.b)],F);class B extends u.R6{constructor(){super({id:"editor.action.rename",label:y.NC("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:k.Ao.and(v.u.writable,v.u.hasRenameProvider),kbOpts:{kbExpr:v.u.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let i=e.get(f.$),[s,n]=Array.isArray(t)&&t||[void 0,void 0];return c.o.isUri(s)&&g.L.isIPosition(n)?i.openCodeEditor({resource:s},i.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(n),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},l.dL):super.runCommand(e,t)}run(e,t){let i=e.get(I.VZ),s=F.get(t);return s?(i.trace("[RenameAction] got controller, running..."),s.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,u._K)(F.ID,F,4),(0,u.Qr)(B);let $=u._l.bindToContribution(F.get);(0,u.fK)(new $({id:"acceptRenameInput",precondition:O.Cp,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:k.Ao.and(v.u.focus,k.Ao.not("isComposing")),primary:3}})),(0,u.fK)(new $({id:"acceptRenameInputWithPreview",precondition:k.Ao.and(O.Cp,k.Ao.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:k.Ao.and(v.u.focus,k.Ao.not("isComposing")),primary:2051}})),(0,u.fK)(new $({id:"cancelRenameInput",precondition:O.Cp,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:v.u.focus,primary:9,secondary:[1033]}})),(0,x.r1)(class extends x.Ke{constructor(){super({id:"focusNextRenameSuggestion",title:{...y.vv("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:O.Cp,keybinding:[{primary:18,weight:199}]})}run(e){let t=e.get(f.$).getFocusedCodeEditor();if(!t)return;let i=F.get(t);i&&i.focusNextRenameSuggestion()}}),(0,x.r1)(class extends x.Ke{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...y.vv("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:O.Cp,keybinding:[{primary:16,weight:199}]})}run(e){let t=e.get(f.$).getFocusedCodeEditor();if(!t)return;let i=F.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,u.sb)("_executeDocumentRenameProvider",function(e,t,i,...s){let[n]=s;(0,d.p_)("string"==typeof n);let{renameProvider:o}=e.get(_.p);return P(o,t,i,n)}),(0,u.sb)("_executePrepareRename",async function(e,t,i){let{renameProvider:s}=e.get(_.p),n=new M(t,i,s),o=await n.resolveRenameLocation(r.Ts.None);if(null==o?void 0:o.rejectReason)throw Error(o.rejectReason);return o}),A.B.as(L.IP.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:y.NC("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},52873:function(e,t,i){"use strict";i.d(t,{f:function(){return b}});var s,n=i("37764"),o=i("67414"),r=i("36809"),l=i("70668"),a=i("8109"),h=i("38386"),d=i("76891"),c=i("59542"),u=i("94479"),p=i("77667"),f=i("80853"),g=i("45484"),m=function(e,t){return function(i,s){t(i,s,e)}};let v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},b=s=class{static get(e){return e.getContribution(s.ID)}constructor(e,t,i,o,r){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=r,this._snippetListener=new n.SL,this._modelVersionId=-1,this._inSnippet=s.InSnippetMode.bindTo(o),this._hasNextTabstop=s.HasNextTabstop.bindTo(o),this._hasPrevTabstop=s.HasPrevTabstop.bindTo(o)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,void 0===t?v:{...v,...t})}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!=typeof e&&this.cancel(),this._session?((0,o.p_)("string"==typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new g.l(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(i=this._session)||void 0===i?void 0:i.hasChoice){let e;let t={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!l.L.equals(this._editor.getPosition(),t))return;let{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;let s=e.getValueInRange(i.range),n=!!i.choice.options.find(e=>e.value===s),o=[];for(let e=0;e<i.choice.options.length;e++){let t=i.choice.options[e];o.push({kind:13,label:t.value,insertText:t.value,sortText:"a".repeat(e+1),range:i.range,filterText:n?`${s}_${t.value}`:void 0,command:{id:"jumpToNextSnippetPlaceholder",title:(0,u.NC)("next","Go to next placeholder...")}})}return{suggestions:o}}},i=this._editor.getModel(),s=!1;this._choiceCompletions={provider:t,enable:()=>{!s&&(e=this._languageFeaturesService.completionProvider.register({language:i.getLanguageId(),pattern:i.uri.fsPath,scheme:i.uri.scheme,exclusive:!0},t),this._snippetListener.add(e),s=!0)},disable:()=>{null==e||e.dispose(),s=!1}}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(e=>e.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId()||!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){var e;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}let{activeChoice:t}=this._session;if(!t||!this._choiceCompletions){null===(e=this._choiceCompletions)||void 0===e||e.disable(),this._currentChoice=void 0;return}this._currentChoice!==t.choice&&(this._currentChoice=t.choice,this._choiceCompletions.enable(),queueMicrotask(()=>{(0,c.i5)(this._editor,this._choiceCompletions.provider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;null===(e=this._session)||void 0===e||e.prev(),this._updateState()}next(){var e;null===(e=this._session)||void 0===e||e.next(),this._updateState()}isInSnippet(){return!!this._inSnippet.get()}};b.ID="snippetController2",b.InSnippetMode=new p.uy("inSnippetMode",!1,(0,u.NC)("inSnippetMode","Whether the editor in current in snippet mode")),b.HasNextTabstop=new p.uy("hasNextTabstop",!1,(0,u.NC)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),b.HasPrevTabstop=new p.uy("hasPrevTabstop",!1,(0,u.NC)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),b=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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}([m(1,f.VZ),m(2,d.p),m(3,p.i6),m(4,h.c_)],b),(0,r._K)(b.ID,b,4);let _=r._l.bindToContribution(b.get);(0,r.fK)(new _({id:"jumpToNextSnippetPlaceholder",precondition:p.Ao.and(b.InSnippetMode,b.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:a.u.textInputFocus,primary:2}})),(0,r.fK)(new _({id:"jumpToPrevSnippetPlaceholder",precondition:p.Ao.and(b.InSnippetMode,b.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:a.u.textInputFocus,primary:1026}})),(0,r.fK)(new _({id:"leaveSnippet",precondition:b.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:a.u.textInputFocus,primary:9,secondary:[1033]}})),(0,r.fK)(new _({id:"acceptSnippet",precondition:b.InSnippetMode,handler:e=>e.finish()}))},55960:function(e,t,i){"use strict";i.d(t,{p:function(){return l}});var s,n,o,r=i("77667");let l=o=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=o.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration(e=>e.hasChanged(123)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){let e="on"===this._editor.getOption(123);if(this._enabled!==e){if(this._enabled=e,this._enabled){let e=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}let e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());if(!i){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(i.endColumn===t.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}}};l.AtEnd=new r.uy("atEndOfWord",!1),l=o=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 l=e.length-1;l>=0;l--)(n=e[l])&&(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=1,n=r.i6,function(e,t){n(e,t,1)})],l)},36083:function(e,t,i){"use strict";var s,n;i.d(t,{R:function(){return s}}),(n=s||(s={}))[n.FILE=0]="FILE",n[n.FOLDER=1]="FOLDER",n[n.ROOT_FOLDER=2]="ROOT_FOLDER"},16e3:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var s=i("37764"),n=i("80853");class o extends s.JT{constructor(e,t=[]){super(),this.logger=new n.qA([e,...t]),this._register(e.onDidChangeLogLevel(e=>this.setLevel(e)))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}},24726:function(e,t,i){"use strict";i.d(t,{Ex:function(){return o},R9:function(){return n},ek:function(){return r}});var s=i("95449");let n=(0,s.yh)("progressService");Object.freeze({total(){},worked(){},done(){}});class o{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}o.None=Object.freeze({report(){}});let r=(0,s.yh)("editorProgressService")},24574:function(e,t,i){"use strict";i.d(t,{Mu:function(){return L},Px:function(){return y},Rw:function(){return S},Wz:function(){return x}});var s=i("55952"),n=i("12084"),o=i("85402"),r=i("47983"),l=i("1966"),a=i("76115"),h=i("98212"),d=i("37764"),c=i("97147"),u=i("64138"),p=i("34308");i("63548");var f=i("94479"),g=i("84587"),m=i("16179"),v=i("756"),b=i("59955"),_=i("87108"),w=function(e,t){return function(i,s){t(i,s,e)}};let S={iconClass:p.k.asClassName(a.l.quickInputBack),tooltip:(0,f.NC)("quickInput.back","Back"),handle:-1};class C extends d.JT{constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=C.noPromptMessage,this._severity=u.Z.Ignore,this.onDidTriggerButtonEmitter=this._register(new h.Q5),this.onDidHideEmitter=this._register(new h.Q5),this.onWillHideEmitter=this._register(new h.Q5),this.onDisposeEmitter=this._register(new h.Q5),this.visibleDisposables=this._register(new d.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&&!c.gn;this._ignoreFocusOut=e&&!c.gn,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=null!=e?e:[],this.togglesUpdated=!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.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=g.Jq.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=g.Jq.Other){this.onWillHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;let i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:!i&&" "!==this.ui.title.innerHTML&&(this.ui.title.innerText="\xa0");let n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?s.mc(this.ui.widget,this._widget):s.mc(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new l._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===S).map((e,t)=>(0,m.Q)(e,`id-${t}`,async()=>this.onDidTriggerButtonEmitter.fire(e)));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();let t=this.buttons.filter(e=>e!==S).map((e,t)=>(0,m.Q)(e,`id-${t}`,async()=>this.onDidTriggerButtonEmitter.fire(e)));this.ui.rightActionBar.push(t,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;let i=null!==(t=null===(e=this.toggles)||void 0===e?void 0:e.filter(e=>e instanceof o.Z))&&void 0!==t?t:[];this.ui.inputBox.toggles=i}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);let r=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==r&&(this._lastValidationMessage=r,s.mc(this.ui.message),(0,m.T)(r,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),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,f.NC)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==u.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()}}C.noPromptMessage=(0,f.NC)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class y extends C{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new h.Q5),this.onWillAcceptEmitter=this._register(new h.Q5),this.onDidAcceptEmitter=this._register(new h.Q5),this.onDidCustomEmitter=this._register(new h.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._keepScrollPosition=!1,this._itemActivation=g.jG.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new h.Q5),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new h.Q5),this.onDidTriggerItemButtonEmitter=this._register(new h.Q5),this.onDidTriggerSeparatorButtonEmitter=this._register(new h.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,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.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 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?g.X5:this.ui.keyMods}get valueSelection(){let e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}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.canSelectMany&&this.ui.list.focus(_.o.First)}show(){!this.visible&&(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:void 0===this.quickNavigate&&(c.dz?e.metaKey:e.altKey)?this.ui.list.focus(_.o.NextSeparator):this.ui.list.focus(_.o.Next),this.canSelectMany&&this.ui.list.domFocus(),s.zB.stop(e,!0);break;case 16:void 0===this.quickNavigate&&(c.dz?e.metaKey:e.altKey)?this.ui.list.focus(_.o.PreviousSeparator):this.ui.list.focus(_.o.Previous),this.canSelectMany&&this.ui.list.domFocus(),s.zB.stop(e,!0);break;case 12:this.ui.list.focus(_.o.NextPage),this.canSelectMany&&this.ui.list.domFocus(),s.zB.stop(e,!0);break;case 11:this.ui.list.focus(_.o.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(_.o.First),s.zB.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(_.o.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,r.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,r.fS)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(s.N5(t)&&1===t.button))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{if(!!this.canSelectMany)!(this.selectedItemsToConfirm!==this._selectedItems&&(0,r.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.ui.list.onSeparatorButtonTriggered(e=>this.onDidTriggerSeparatorButtonEmitter.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=e.getChords();if(s.length>1)return!1;if(s[0].shiftKey&&4===i)return!t.ctrlKey&&!t.altKey&&!t.metaKey&&!0;return!!s[0].altKey&&6===i||!!s[0].ctrlKey&&5===i||!!s[0].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.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,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&&i.inputBox&&(s=this.placeholder||y.DEFAULT_ARIA_LABEL,this.title&&(s+=` - ${this.title}`)),this.ui.list.ariaLabel!==s&&(this.ui.list.ariaLabel=null!=s?s:null),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){this.itemsUpdated=!1;let e=this._activeItems;switch(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 g.jG.NONE:e.length>0&&(this._activeItems=[],this.onDidChangeActiveEmitter.fire(this._activeItems)),this._itemActivation=g.jG.FIRST;break;case g.jG.SECOND:this.ui.list.focus(_.o.Second),this._itemActivation=g.jG.FIRST;break;case g.jG.LAST:this.ui.list.focus(_.o.Last),this._itemActivation=g.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||"",!i.inputBox&&(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(_.o.First)),this.keepScrollPosition&&(this.scrollTop=e)}}y.DEFAULT_ARIA_LABEL=(0,f.NC)("quickInputBox.ariaLabel","Type to narrow down results.");class x extends C{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new h.Q5),this.onDidAcceptEmitter=this._register(new h.Q5),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){!this.visible&&(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))})),this.visibleDisposables.add(this.ui.onDidAccept(()=>this.onDidAcceptEmitter.fire())),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");let e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),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||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let L=class extends b.mQ{constructor(e,t){super("element",!1,e=>this.getOverrideOptions(e),e,t)}getOverrideOptions(e){var t;return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(e.content instanceof HTMLElement?null!==(t=e.content.textContent)&&void 0!==t?t:"":"string"==typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};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 l=e.length-1;l>=0;l--)(n=e[l])&&(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(0,v.Ui),w(1,b.Bs)],L)}}]);
|