~ K A L I ~
UNAME : Linux web63.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64SERVER IP : 10.0.187.63 -________-
CLIENT IP : 216.73.216.230 MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/npm.monaco-editor~4b5f38f5.6036778c.js |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.monaco-editor~4b5f38f5"],{"1cd2":function(e,t,i){"use strict";i.d(t,"a",(function(){return S})),i.d(t,"b",(function(){return w})),i.d(t,"d",(function(){return k})),i.d(t,"c",(function(){return x})),i.d(t,"g",(function(){return j})),i.d(t,"h",(function(){return R})),i.d(t,"i",(function(){return E})),i.d(t,"e",(function(){return T})),i.d(t,"f",(function(){return I}));var n=i("11f7"),o=i("5aa5"),s=i("f070"),r=i("561a"),a=i("ceb8"),c=i("308f"),d=i("aa3d"),l=(i("bfad"),i("b2cc")),h=i("5717"),u=i("d379"),g=i("9277"),p=i("dff7"),m=i("7944"),b=i("4fc3"),f=i("f5f3"),v=i("0a0f"),_=i("303e"),y=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};const S=Object(v["c"])("IPeekViewService");var w;Object(f["b"])(S,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());const n=()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))};this._widgets.set(e,{widget:t,listener:t.onDidClose(n)})}}),function(e){e.inPeekEditor=new b["c"]("inReferenceSearchEditor",!0,p["a"]("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(w||(w={}));let O=class{constructor(e,t){e instanceof u["a"]&&w.inPeekEditor.bindTo(t)}dispose(){}};function k(e){let t=e.get(h["a"]).getFocusedCodeEditor();return t instanceof u["a"]?t.getParentEditor():t}O.ID="editor.contrib.referenceController",O=y([C(1,b["b"])],O),Object(l["l"])(O.ID,O);const M={headerBackgroundColor:a["a"].white,primaryHeadingColor:a["a"].fromHex("#333333"),secondaryHeadingColor:a["a"].fromHex("#6c6c6cb3")};let x=class extends g["a"]{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new c["b"],this.onDidClose=this._onDidClose.event,d["f"](this.options,M,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){let t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();let e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=n["a"](".head"),this._bodyElement=n["a"](".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const i=n["a"](".peekview-title");this.options.supportOnTitleClick&&(i.classList.add("clickable"),n["o"](i,"click",e=>this._onTitleClick(e))),n["q"](this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=n["a"]("span.filename"),this._secondaryHeading=n["a"]("span.dirname"),this._metaHeading=n["a"]("span.meta"),n["q"](i,this._primaryHeading,this._secondaryHeading,this._metaHeading);const a=n["a"](".peekview-actions");n["q"](this._headElement,a);const c=this._getActionBarOptions();this._actionbarWidget=new o["a"](a,c),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new s["a"]("peekview.close",p["a"]("label.close","Close"),r["b"].close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:m["b"].bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:n["t"](this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,n["X"](this._metaHeading)):n["L"](this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(59)),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")}};x=y([C(2,v["a"])],x);const j=Object(_["Jc"])("peekViewTitle.background",{dark:Object(_["Vc"])(_["T"],.1),light:Object(_["Vc"])(_["T"],.1),hc:null},p["a"]("peekViewTitleBackground","Background color of the peek view title area.")),R=Object(_["Jc"])("peekViewTitleLabel.foreground",{dark:a["a"].white,light:a["a"].black,hc:a["a"].white},p["a"]("peekViewTitleForeground","Color of the peek view title.")),E=Object(_["Jc"])("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hc:"#FFFFFF99"},p["a"]("peekViewTitleInfoForeground","Color of the peek view title info.")),T=Object(_["Jc"])("peekView.border",{dark:_["T"],light:_["T"],hc:_["i"]},p["a"]("peekViewBorder","Color of the peek view borders and arrow.")),I=Object(_["Jc"])("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:a["a"].black},p["a"]("peekViewResultsBackground","Background color of the peek view result list.")),N=(Object(_["Jc"])("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:a["a"].white},p["a"]("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Object(_["Jc"])("peekViewResult.fileForeground",{dark:a["a"].white,light:"#1E1E1E",hc:a["a"].white},p["a"]("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Object(_["Jc"])("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},p["a"]("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Object(_["Jc"])("peekViewResult.selectionForeground",{dark:a["a"].white,light:"#6C6C6C",hc:a["a"].white},p["a"]("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Object(_["Jc"])("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:a["a"].black},p["a"]("peekViewEditorBackground","Background color of the peek view editor.")));Object(_["Jc"])("peekViewEditorGutter.background",{dark:N,light:N,hc:N},p["a"]("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Object(_["Jc"])("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},p["a"]("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Object(_["Jc"])("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},p["a"]("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Object(_["Jc"])("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:_["b"]},p["a"]("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},"444c":function(e,t,i){},"614c":function(e,t,i){"use strict";i.r(t),i.d(t,"InsertCursorAbove",(function(){return O})),i.d(t,"InsertCursorBelow",(function(){return k})),i.d(t,"MultiCursorSessionResult",(function(){return R})),i.d(t,"MultiCursorSession",(function(){return E})),i.d(t,"MultiCursorSelectionController",(function(){return T})),i.d(t,"MultiCursorSelectionControllerAction",(function(){return I})),i.d(t,"AddSelectionToNextFindMatchAction",(function(){return N})),i.d(t,"AddSelectionToPreviousFindMatchAction",(function(){return L})),i.d(t,"MoveSelectionToNextFindMatchAction",(function(){return P})),i.d(t,"MoveSelectionToPreviousFindMatchAction",(function(){return D})),i.d(t,"SelectHighlightsAction",(function(){return F})),i.d(t,"CompatChangeAll",(function(){return H})),i.d(t,"SelectionHighlighter",(function(){return V}));var n=i("3813"),o=i("5fe7"),s=i("fe45"),r=i("a666"),a=i("b2cc"),c=i("b157"),d=i("6a89"),l=i("8025"),h=i("c101"),u=i("3352"),g=i("b57f"),p=i("661c"),m=i("dff7"),b=i("7e32"),f=i("4fc3"),v=i("303e"),_=i("b7d0"),y=i("7340"),C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}};function w(e,t){const i=t.filter(t=>!e.find(e=>e.equals(t)));if(i.length>=1){const e=i.map(e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`).join(", "),t=1===i.length?m["a"]("cursorAdded","Cursor added: {0}",e):m["a"]("cursorsAdded","Cursors added: {0}",e);Object(n["c"])(t)}}class O extends a["b"]{constructor(){super({id:"editor.action.insertCursorAbove",label:m["a"]("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:h["a"].editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:b["b"].MenubarSelectionMenu,group:"3_multi",title:m["a"]({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();const s=o.getCursorStates();o.setCursorStates(i.source,3,c["b"].addCursorUp(o,s,n)),o.revealTopMostCursor(i.source),w(s,o.getCursorStates())}}class k extends a["b"]{constructor(){super({id:"editor.action.insertCursorBelow",label:m["a"]("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:h["a"].editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:b["b"].MenubarSelectionMenu,group:"3_multi",title:m["a"]({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();const s=o.getCursorStates();o.setCursorStates(i.source,3,c["b"].addCursorDown(o,s,n)),o.revealBottomMostCursor(i.source),w(s,o.getCursorStates())}}class M extends a["b"]{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:m["a"]("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:h["a"].editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:b["b"].MenubarSelectionMenu,group:"3_multi",title:m["a"]({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n<e.endLineNumber;n++){let e=t.getLineMaxColumn(n);i.push(new l["a"](n,e,n,e))}e.endColumn>1&&i.push(new l["a"](e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=t.getSelections(),o=t._getViewModel(),s=o.getCursorStates();let r=[];n.forEach(e=>this.getCursorsForSelection(e,i,r)),r.length>0&&t.setSelections(r),w(s,o.getCursorStates())}}class x extends a["b"]{constructor(){super({id:"editor.action.addCursorsToBottom",label:m["a"]("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=t.getModel().getLineCount();let o=[];for(let a=i[0].startLineNumber;a<=n;a++)o.push(new l["a"](a,i[0].startColumn,a,i[0].endColumn));const s=t._getViewModel(),r=s.getCursorStates();o.length>0&&t.setSelections(o),w(r,s.getCursorStates())}}class j extends a["b"]{constructor(){super({id:"editor.action.addCursorsToTop",label:m["a"]("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections();let n=[];for(let r=i[0].startLineNumber;r>=1;r--)n.push(new l["a"](r,i[0].startColumn,r,i[0].endColumn));const o=t._getViewModel(),s=o.getCursorStates();n.length>0&&t.setSelections(n),w(s,o.getCursorStates())}}class R{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class E{constructor(e,t,i,n,o,s,r){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=o,this.matchCase=s,this.currentMatch=r}static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new E(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n,o,s=!1;const r=e.getSelections();1===r.length&&r[0].isEmpty()?(s=!0,n=!0,o=!0):(n=i.wholeWord,o=i.matchCase);const a=e.getSelection();let c,d=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;c=t.word,d=new l["a"](a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else c=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new E(e,t,s,c,n,o,d)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new R(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new R(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(117):null,!1);return i?new l["a"](i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new R(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new R(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(117):null,!1);return i?new l["a"](i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(117):null,!1,1073741824)):[]}}class T extends r["a"]{constructor(e){super(),this._sessionDispose=this._register(new r["b"]),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}static get(e){return e.getContribution(T.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=E.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new l["a"](t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState(),n=i.matchCase,o=W(this._editor.getModel(),t,n);if(!o){const e=this._editor.getModel();let i=[];for(let n=0,o=t.length;n<o;n++)i[n]=this._expandEmptyToWord(e,t[n]);return void this._editor.setSelections(i)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex)t=this._editor.getModel().findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(117):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(i.searchScope){const e=i.searchScope;let n=[];t.forEach(t=>{e.forEach(e=>{t.range.endLineNumber<=e.endLineNumber&&t.range.startLineNumber>=e.startLineNumber&&n.push(t)})}),t=n}if(t.length>0){const e=this._editor.getSelection();for(let i=0,n=t.length;i<n;i++){const n=t[i],o=n.range.intersectRanges(e);if(o){t[i]=t[0],t[0]=n;break}}this._setSelections(t.map(e=>new l["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}}T.ID="editor.contrib.multiCursorController";class I extends a["b"]{run(e,t){const i=T.get(t);if(!i)return;const n=p["CommonFindController"].get(t);if(!n)return;const o=t._getViewModel();if(o){const e=o.getCursorStates();this._run(i,n),w(e,o.getCursorStates())}}}class N extends I{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:m["a"]("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:h["a"].focus,primary:2082,weight:100},menuOpts:{menuId:b["b"].MenubarSelectionMenu,group:"3_multi",title:m["a"]({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class L extends I{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:m["a"]("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:b["b"].MenubarSelectionMenu,group:"3_multi",title:m["a"]({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class P extends I{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:m["a"]("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:h["a"].focus,primary:Object(s["c"])(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class D extends I{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:m["a"]("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class F extends I{constructor(){super({id:"editor.action.selectHighlights",label:m["a"]("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:h["a"].focus,primary:3114,weight:100},menuOpts:{menuId:b["b"].MenubarSelectionMenu,group:"3_multi",title:m["a"]({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class H extends I{constructor(){super({id:"editor.action.changeAll",label:m["a"]("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f["a"].and(h["a"].writable,h["a"].editorTextFocus),kbOpts:{kbExpr:h["a"].editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class A{constructor(e,t,i,n,o){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,o&&this._model===o._model&&this._searchText===o._searchText&&this._matchCase===o._matchCase&&this._wordSeparators===o._wordSeparators&&this._modelVersionId===o._modelVersionId&&(this._cachedFindMatches=o._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(d["a"].compareRangesUsingStarts)),this._cachedFindMatches}}let V=class e extends r["a"]{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(97),this.decorations=[],this.updateSoon=this._register(new o["h"](()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(97)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()}));const i=p["CommonFindController"].get(e);i&&this._register(i.getState().onFindReplaceStateChange(e=>{this._update()}))}_update(){this._setState(e._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const o=T.get(i);if(!o)return null;const s=p["CommonFindController"].get(i);if(!s)return null;let r=o.getSession(s);if(!r){const e=i.getSelections();if(e.length>1){const t=s.getState(),n=t.matchCase,o=W(i.getModel(),e,n);if(!o)return null}r=E.create(i,s)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;const a=s.getState(),c=a.matchCase;if(a.isRevealed){let e=a.searchString;c||(e=e.toLowerCase());let t=r.searchText;if(c||(t=t.toLowerCase()),e===t&&r.matchCase===a.matchCase&&r.wholeWord===a.wholeWord&&!a.isRegex)return null}return new A(i.getModel(),r.searchText,r.matchCase,r.wholeWord?i.getOption(117):null,e)}_setState(t){if(this.state=t,!this.state)return void(this.decorations=this.editor.deltaDecorations(this.decorations,[]));if(!this.editor.hasModel())return;const i=this.editor.getModel();if(i.isTooLargeForTokenization())return;const n=this.state.findMatches(),o=this.editor.getSelections();o.sort(d["a"].compareRangesUsingStarts);const s=[];for(let e=0,c=0,l=n.length,h=o.length;e<l;){const t=n[e];if(c>=h)s.push(t),e++;else{const i=d["a"].compareRangesUsingStarts(t,o[c]);i<0?(!o[c].isEmpty()&&d["a"].areIntersecting(t,o[c])||s.push(t),e++):(i>0||e++,c++)}}const r=this._languageFeaturesService.documentHighlightProvider.has(i)&&this.editor.getOption(72),a=s.map(t=>({range:t,options:r?e._SELECTION_HIGHLIGHT:e._SELECTION_HIGHLIGHT_OVERVIEW}));this.decorations=this.editor.deltaDecorations(this.decorations,a)}dispose(){this._setState(null),super.dispose()}};function W(e,t,i){const n=B(e,t[0],!i);for(let o=1,s=t.length;o<s;o++){const s=t[o];if(s.isEmpty())return!1;const r=B(e,s,!i);if(n!==r)return!1}return!0}function B(e,t,i){const n=e.getValueInRange(t);return i?n.toLowerCase():n}V.ID="editor.contrib.selectionHighlighter",V._SELECTION_HIGHLIGHT_OVERVIEW=g["b"].register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",minimap:{color:Object(_["g"])(v["pc"]),position:u["d"].Inline},overviewRuler:{color:Object(_["g"])(v["wc"]),position:u["e"].Center}}),V._SELECTION_HIGHLIGHT=g["b"].register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),V=C([S(1,y["a"])],V),Object(a["l"])(T.ID,T),Object(a["l"])(V.ID,V),Object(a["j"])(O),Object(a["j"])(k),Object(a["j"])(M),Object(a["j"])(N),Object(a["j"])(L),Object(a["j"])(P),Object(a["j"])(D),Object(a["j"])(F),Object(a["j"])(H),Object(a["j"])(x),Object(a["j"])(j)},"7c6e":function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=i("1097"),o=i("c0f5");class s extends o["a"]{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:Object(n["e"])(i.label)||i.id});return t}}},"85c1":function(e,t,i){"use strict";i.d(t,"a",(function(){return b}));var n,o=i("c39c"),s=i("5bd7"),r=i("0867"),a=i("fdcc"),c=i("51db"),d=i("308f"),l=i("a666"),h=i("0cc2"),u=i("cb41"),g=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,n){t(i,n,e)}},m=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};let b=class e{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new d["b"],this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){const e=document.createElement("span");return{element:e,dispose:()=>{}}}const n=new l["b"],s=n.add(Object(o["a"])(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i));return{element:s.element,dispose:()=>n.dispose()}}_getRenderOptions(t,i){return{codeBlockRenderer:(t,i)=>m(this,void 0,void 0,(function*(){var n,o,s;let r;t?r=this._languageService.getLanguageIdByLanguageName(t):this._options.editor&&(r=null===(n=this._options.editor.getModel())||void 0===n?void 0:n.getLanguageId()),r||(r=u["b"]);const a=yield Object(c["b"])(this._languageService,i,r),d=document.createElement("span");if(d.innerHTML=null!==(s=null===(o=e._ttpTokenizer)||void 0===o?void 0:o.createHTML(a))&&void 0!==s?s:a,this._options.editor){const e=this._options.editor.getOption(44);Object(h["a"])(d,e)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return d})),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:e=>this._openerService.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:t.isTrusted}).catch(a["g"]),disposables:i}}}};b._ttpTokenizer=null===(n=window.trustedTypes)||void 0===n?void 0:n.createPolicy("tokenizeToString",{createHTML(e){return e}}),b=g([p(1,r["a"]),p(2,s["a"])],b)},"9c4c":function(e,t,i){},a24b:function(e,t,i){"use strict";i.r(t),i.d(t,"rename",(function(){return A})),i.d(t,"RenameAction",(function(){return W}));var n=i("3813"),o=i("5fe7"),s=i("2504"),r=i("fdcc"),a=i("a666"),c=i("ef8e"),d=i("6d8e"),l=i("f3b1"),h=i("b2cc"),u=i("c7f5"),g=i("5717"),p=i("7061"),m=i("6a89"),b=i("c101"),f=i("75bf"),v=i("c877"),_=i("dff7"),y=i("0910"),C=i("4fc3"),S=i("0a0f"),w=i("d3d7"),O=i("b0cd"),k=i("b539"),M=i("89cd"),x=(i("9c4c"),i("6dec")),j=i("303e"),R=i("b7d0"),E=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},T=function(e,t){return function(i,n){t(i,n,e)}};const I=new C["c"]("renameInputVisible",!1,Object(_["a"])("renameInputVisible","Whether the rename input widget is visible"));let N=class{constructor(e,t,i,n,o){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._disposables=new a["b"],this.allowEditorOverflow=!0,this._visibleContextKey=I.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(44)&&this._updateFont()})),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(_["a"])("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);const e=()=>{var e,t;const[i,n]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(i),this._label.innerText=Object(_["a"])({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel())};e(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(e)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(e){var t,i,n,o;if(!this._input||!this._domNode)return;const s=e.getColor(j["Xc"]);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(j["jb"]))&&void 0!==t?t:""),this._domNode.style.boxShadow=s?" 0 0 8px 2px "+s:"",this._domNode.style.color=String(null!==(i=e.getColor(j["wb"]))&&void 0!==i?i:""),this._input.style.backgroundColor=String(null!==(n=e.getColor(j["ub"]))&&void 0!==n?n:"");const r=e.getColor(j["vb"]);this._input.style.borderWidth=r?"1px":"0px",this._input.style.borderStyle=r?"solid":"none",this._input.style.borderColor=null!==(o=null===r||void 0===r?void 0:r.toString())&&void 0!==o?o:"none"}_updateFont(){if(!this._input||!this._label)return;const e=this._editor.getOption(44);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=e.fontSize+"px",this._label.style.fontSize=.8*e.fontSize+"px"}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){this._currentAcceptInput&&this._currentAcceptInput(e)}cancelInput(e){this._currentCancelInput&&this._currentCancelInput(e)}getInput(e,t,i,n,o,s){this._domNode.classList.toggle("preview",o),this._position=new p["a"](e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",i.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);const r=new a["b"];return new Promise(e=>{this._currentCancelInput=t=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e(t),!0),this._currentAcceptInput=i=>{0!==this._input.value.trim().length&&this._input.value!==t?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e({newName:this._input.value,wantsPreview:o&&i})):this.cancelInput(!0)},r.add(s.onCancellationRequested(()=>this.cancelInput(!0))),r.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{r.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};N=E([T(2,R["b"]),T(3,x["a"]),T(4,C["b"])],N);var L=i("7340"),P=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},D=function(e,t){return function(i,n){t(i,n,e)}},F=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};class H{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return F(this,void 0,void 0,(function*(){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;let n=yield i.resolveRenameLocation(this.model,this.position,e);if(n){if(!n.rejectReason)return n;t.push(n.rejectReason)}}const i=this.model.getWordAtPosition(this.position);return i?{range:new m["a"](this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m["a"].fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}))}provideRenameEdits(e,t){return F(this,void 0,void 0,(function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}))}_provideRenameEdits(e,t,i,n){return F(this,void 0,void 0,(function*(){const o=this._providers[t];if(!o)return{edits:[],rejectReason:i.join("\n")};const s=yield o.provideRenameEdits(this.model,this.position,e,n);return s?s.rejectReason?this._provideRenameEdits(e,t+1,i.concat(s.rejectReason),n):s:this._provideRenameEdits(e,t+1,i.concat(_["a"]("no result","No result.")),n)}))}}function A(e,t,i,n){return F(this,void 0,void 0,(function*(){const o=new H(t,i,e),r=yield o.resolveRenameLocation(s["a"].None);return(null===r||void 0===r?void 0:r.rejectReason)?{edits:[],rejectReason:r.rejectReason}:o.provideRenameEdits(n,s["a"].None)}))}let V=class e{constructor(e,t,i,n,r,c,d,l){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=r,this._logService=c,this._configService=d,this._languageFeaturesService=l,this._dispoableStore=new a["b"],this._cts=new s["b"],this._renameInputField=this._dispoableStore.add(new o["d"](()=>this._dispoableStore.add(this._instaService.createInstance(N,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(t){return t.getContribution(e.ID)}dispose(){this._dispoableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return F(this,void 0,void 0,(function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const i=this.editor.getPosition(),s=new H(this.editor.getModel(),i,this._languageFeaturesService.renameProvider);if(!s.hasProvider())return;let r;this._cts=new l["b"](this.editor,5);try{const e=s.resolveRenameLocation(this._cts.token);this._progressService.showWhile(e,250),r=yield e}catch(b){return void(null===(e=v["a"].get(this.editor))||void 0===e||e.showMessage(b||_["a"]("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i))}if(!r)return;if(r.rejectReason)return void(null===(t=v["a"].get(this.editor))||void 0===t||t.showMessage(r.rejectReason,i));if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new l["b"](this.editor,5,r.range);let a=this.editor.getSelection(),c=0,d=r.text.length;m["a"].isEmpty(a)||m["a"].spansMultipleLines(a)||!m["a"].containsRange(r.range,a)||(c=Math.max(0,a.startColumn-r.range.startColumn),d=Math.min(r.range.endColumn,a.endColumn)-r.range.startColumn);const h=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),g=yield this._renameInputField.value.getInput(r.range,r.text,c,d,h,this._cts.token);if("boolean"===typeof g)return void(g&&this.editor.focus());this.editor.focus();const p=Object(o["p"])(s.provideRenameEdits(g.newName,this._cts.token),this._cts.token).then(e=>F(this,void 0,void 0,(function*(){e&&this.editor.hasModel()&&(e.rejectReason?this._notificationService.info(e.rejectReason):(this.editor.setSelection(m["a"].fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(u["b"].convert(e),{editor:this.editor,showPreview:g.wantsPreview,label:_["a"]("label","Renaming '{0}'",null===r||void 0===r?void 0:r.text),quotableLabel:_["a"]("quotableLabel","Renaming {0}",null===r||void 0===r?void 0:r.text)}).then(e=>{e.ariaSummary&&Object(n["a"])(_["a"]("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",r.text,g.newName,e.ariaSummary))}).catch(e=>{this._notificationService.error(_["a"]("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)})))})),e=>{this._notificationService.error(_["a"]("rename.failed","Rename failed to compute edits")),this._logService.error(e)});return this._progressService.showWhile(p,250),p}))}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};V.ID="editor.contrib.renameController",V=P([D(1,S["a"]),D(2,O["a"]),D(3,u["a"]),D(4,k["a"]),D(5,w["b"]),D(6,f["a"]),D(7,L["a"])],V);class W extends h["b"]{constructor(){super({id:"editor.action.rename",label:_["a"]("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:C["a"].and(b["a"].writable,b["a"].hasRenameProvider),kbOpts:{kbExpr:b["a"].editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g["a"]),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return d["a"].isUri(n)&&p["a"].isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(o),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},r["g"]):super.runCommand(e,t)}run(e,t){const i=V.get(t);return i?i.run():Promise.resolve()}}Object(h["l"])(V.ID,V),Object(h["j"])(W);const B=h["c"].bindToContribution(V.get);Object(h["k"])(new B({id:"acceptRenameInput",precondition:I,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:b["a"].focus,primary:3}})),Object(h["k"])(new B({id:"acceptRenameInputWithPreview",precondition:C["a"].and(I,C["a"].has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:b["a"].focus,primary:1027}})),Object(h["k"])(new B({id:"cancelRenameInput",precondition:I,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:b["a"].focus,primary:9,secondary:[1033]}})),Object(h["n"])("_executeDocumentRenameProvider",(function(e,t,i,...n){const[o]=n;Object(c["c"])("string"===typeof o);const{renameProvider:s}=e.get(L["a"]);return A(s,t,i,o)})),Object(h["n"])("_executePrepareRename",(function(e,t,i){return F(this,void 0,void 0,(function*(){const{renameProvider:n}=e.get(L["a"]),o=new H(t,i,n),r=yield o.resolveRenameLocation(s["a"].None);if(null===r||void 0===r?void 0:r.rejectReason)throw new Error(r.rejectReason);return r}))})),M["a"].as(y["a"].Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:_["a"]("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},a8b4:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i("0bfb"),o=i("a666"),s=i("ef8e"),r=i("b055"),a=i("3352"),c=i("dc81"),d=i("b7d0");class l{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new o["b"];e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const s=n.add(new o["d"]);return s.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{s.value=void 0,s.value=this.doProvide(e,t)})),n}doProvide(e,t){const i=new o["b"],a=this.activeTextEditorControl;if(a&&this.canProvideWithTextEditor(a)){const c={editor:a},d=Object(r["a"])(a);if(d){let e=Object(s["q"])(a.saveViewState());i.add(d.onDidChangeCursorPosition(()=>{e=Object(s["q"])(a.saveViewState())})),c.restoreViewState=()=>{e&&a===this.activeTextEditorControl&&a.restoreViewState(e)},i.add(Object(n["a"])(t.onCancellationRequested)(()=>{var e;return null===(e=c.restoreViewState)||void 0===e?void 0:e.call(c)}))}i.add(Object(o["j"])(()=>this.clearDecorations(a))),i.add(this.provideWithTextEditor(c,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return Object(r["c"])(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const n=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Object(d["g"])(c["N"]),position:a["e"].Full}}}],[o,s]=e.deltaDecorations(i,n);this.rangeHighlightDecorationId={rangeHighlightId:o,overviewRulerDecorationId:s}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}},bfad:function(e,t,i){},c877:function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));var n=i("3813"),o=i("5fe7"),s=i("a666"),r=(i("ea71"),i("b2cc")),a=i("6a89"),c=i("dff7"),d=i("4fc3"),l=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},h=function(e,t){return function(i,n){t(i,n,e)}};let u=class e{constructor(t,i){this._messageWidget=new s["d"],this._messageListeners=new s["b"],this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(i),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(t){return t.getContribution(e.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;Object(n["a"])(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new p(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new o["j"](()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new a["a"](t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(p.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(c["a"]("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};u.ID="editor.contrib.messageController",u.MESSAGE_VISIBLE=new d["c"]("messageVisible",!1,c["a"]("messageVisible","Whether the editor is currently showing an inline message")),u=l([h(1,d["b"])],u);const g=r["c"].bindToContribution(u.get);Object(r["k"])(new g({id:"leaveEditorMessage",precondition:u.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class p{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");s.classList.add("message"),s.textContent=n,this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}Object(r["l"])(u.ID,u)},cb7d:function(e,t,i){"use strict";i.r(t),i.d(t,"TriggerParameterHintsAction",(function(){return X}));var n=i("a666"),o=i("b2cc"),s=i("c101"),r=i("2e5a"),a=i("2504"),c=i("fdcc"),d=i("ef8e"),l=i("6d8e"),h=i("7061"),u=i("b78f"),g=i("9e74"),p=i("4fc3"),m=i("7340"),b=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};const f={Visible:new p["c"]("parameterHintsVisible",!1),MultipleSignatures:new p["c"]("parameterHintsMultipleSignatures",!1)};function v(e,t,i,n,o){return b(this,void 0,void 0,(function*(){const s=e.ordered(t);for(const e of s)try{const s=yield e.provideSignatureHelp(t,i,o,n);if(s)return s}catch(r){Object(c["h"])(r)}}))}g["a"].registerCommand("_executeSignatureHelpProvider",(e,...t)=>b(void 0,void 0,void 0,(function*(){const[i,n,o]=t;Object(d["c"])(l["a"].isUri(i)),Object(d["c"])(h["a"].isIPosition(n)),Object(d["c"])("string"===typeof o||!o);const s=e.get(m["a"]),c=yield e.get(u["a"]).createModelReference(i);try{const e=yield v(s.signatureHelpProvider,c.object.textEditorModel,h["a"].lift(n),{triggerKind:r["h"].Invoke,isRetrigger:!1,triggerCharacter:o},a["a"].None);if(!e)return;return setTimeout(()=>e.dispose(),0),e.value}finally{c.dispose()}})));var _,y=i("dff7"),C=i("0a0f"),S=i("11f7"),w=i("3813"),O=i("1898"),k=i("561a"),M=i("308f"),x=i("3742"),j=(i("444c"),i("85c1")),R=i("0867"),E=i("5fe7"),T=i("3170"),I=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};(function(e){e.Default={type:0};class t{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}}e.Pending=t;class i{constructor(e){this.hints=e,this.type=1}}e.Active=i})(_||(_={}));class N extends n["a"]{constructor(e,t,i=N.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new M["b"]),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=_.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new n["d"]),this.triggerChars=new T["b"],this.retriggerChars=new T["b"],this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new E["c"](i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=_.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(c["g"])}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e===e-1,n=this.editor.getOption(76).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(76).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new _.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return I(this,void 0,void 0,(function*(){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const n=this._pendingTriggers.reduce(L);this._pendingTriggers=[];const o={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const s=this.editor.getModel(),r=this.editor.getPosition();this.state=new _.Pending(Object(E["l"])(e=>v(this.providers,s,r,o,e)),i);try{const t=yield this.state.request;return e!==this.triggerId?(null===t||void 0===t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new _.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null===t||void 0===t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=_.Default),Object(c["g"])(a),!1}}))}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new T["b"],this.retriggerChars=new T["b"];const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(e.charCodeAt(0)),this.retriggerChars.add(e.charCodeAt(0));for(const e of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:r["h"].TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:r["h"].ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:r["h"].ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(76).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function L(e,t){switch(t.triggerKind){case r["h"].Invoke:return t;case r["h"].ContentChange:return e;case r["h"].TriggerCharacter:default:return t}}N.DEFAULT_DELAY=120;var P=i("5bd7"),D=i("303e"),F=i("bf5b"),H=i("9c41"),A=i("b7d0"),V=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},W=function(e,t){return function(i,n){t(i,n,e)}};const B=S["a"],q=Object(F["b"])("parameter-hints-next",k["b"].chevronDown,y["a"]("parameterHintsNextIcon","Icon for show next parameter hint.")),G=Object(F["b"])("parameter-hints-previous",k["b"].chevronUp,y["a"]("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let $=class e extends n["a"]{constructor(e,t,i,o,s){super(),this.editor=e,this.renderDisposeables=this._register(new n["b"]),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new j["a"]({editor:e},o,i)),this.model=this._register(new N(e,s.signatureHelpProvider)),this.keyVisible=f.Visible.bindTo(t),this.keyMultipleSignatures=f.MultipleSignatures.bindTo(t),this._register(this.model.onChangedHints(e=>{e?(this.show(),this.render(e)):this.hide()}))}createParameterHintDOMNodes(){const e=B(".editor-widget.parameter-hints-widget"),t=S["q"](e,B(".phwrapper"));t.tabIndex=-1;const i=S["q"](t,B(".controls")),n=S["q"](i,B(".button"+A["d"].asCSSSelector(G))),o=S["q"](i,B(".overloads")),s=S["q"](i,B(".button"+A["d"].asCSSSelector(q)));this._register(S["i"](n,"click",e=>{S["c"].stop(e),this.previous()})),this._register(S["i"](s,"click",e=>{S["c"].stop(e),this.next()}));const r=B(".body"),a=new O["a"](r,{});this._register(a),t.appendChild(a.getDomNode());const c=S["q"](r,B(".signature")),d=S["q"](r,B(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:o,docs:d,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(e=>{this.visible&&this.editor.layoutContentWidget(this)}));const l=()=>{if(!this.domNodes)return;const e=this.editor.getOption(44);this.domNodes.element.style.fontSize=e.fontSize+"px",this.domNodes.element.style.lineHeight=""+e.lineHeight/e.fontSize};l(),this._register(M["c"].chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(e=>e.hasChanged(44)).on(l,null)),this._register(this.editor.onDidLayoutChange(e=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes&&this.domNodes.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&this.domNodes.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const o=S["q"](this.domNodes.signature,B(".code")),s=this.editor.getOption(44);o.style.fontSize=s.fontSize+"px",o.style.fontFamily=s.fontFamily;const r=n.parameters.length>0,a=null!==(t=n.activeParameter)&&void 0!==t?t:e.activeParameter;if(r)this.renderParameters(o,n,a);else{const e=S["q"](o,B("span"));e.textContent=n.label}const c=n.parameters[a];if(null===c||void 0===c?void 0:c.documentation){const e=B("span.documentation");if("string"===typeof c.documentation)e.textContent=c.documentation;else{const t=this.renderMarkdownDocs(c.documentation);e.appendChild(t.element)}S["q"](this.domNodes.docs,B("p",{},e))}if(void 0===n.documentation);else if("string"===typeof n.documentation)S["q"](this.domNodes.docs,B("p",{},n.documentation));else{const e=this.renderMarkdownDocs(n.documentation);S["q"](this.domNodes.docs,e.element)}const d=this.hasDocs(n,c);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,c){let e="";const t=n.parameters[a];e=Array.isArray(t.label)?n.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"===typeof t.documentation?", "+t.documentation:", "+t.documentation.value),n.documentation&&(e+="string"===typeof n.documentation?", "+n.documentation:", "+n.documentation.value),this.announcedLabel!==e&&(w["a"](y["a"]("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null===(e=this.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&Object(d["a"])(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&Object(d["a"])(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&Object(d["a"])(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&Object(d["a"])(e.documentation.value).length>0)))}renderParameters(e,t,i){const[n,o]=this.getParameterLabelOffsets(t,i),s=document.createElement("span");s.textContent=t.label.substring(0,n);const r=document.createElement("span");r.textContent=t.label.substring(n,o),r.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(o),S["q"](e,s,r,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${Object(x["t"])(i.label)}(?=\\W|$)`,"g");t.test(e.label);const n=t.lastIndex-i.label.length;return n>=0?[n,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return e.ID}trigger(e){this.model.trigger(e,0)}updateMaxHeight(){if(!this.domNodes)return;const e=Math.max(this.editor.getLayoutInfo().height/4,250),t=e+"px";this.domNodes.element.style.maxHeight=t;const i=this.domNodes.element.getElementsByClassName("phwrapper");i.length&&(i[0].style.maxHeight=t)}};$.ID="editor.widget.parameterHintsWidget",$=V([W(1,p["b"]),W(2,P["a"]),W(3,R["a"]),W(4,m["a"])],$);const K=Object(D["Jc"])("editorHoverWidget.highlightForeground",{dark:D["Vb"],light:D["Vb"],hc:D["Vb"]},y["a"]("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));Object(A["f"])((e,t)=>{const i=e.getColor(D["M"]);if(i){const n=e.type===H["a"].HIGH_CONTRAST?2:1;t.addRule(`.monaco-editor .parameter-hints-widget { border: ${n}px solid ${i}; }`),t.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${i.transparent(.5)}; }`)}const n=e.getColor(D["L"]);n&&t.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${n}; }`);const o=e.getColor(D["Tc"]);o&&t.addRule(`.monaco-editor .parameter-hints-widget a { color: ${o}; }`);const s=e.getColor(D["Sc"]);s&&t.addRule(`.monaco-editor .parameter-hints-widget a:hover { color: ${s}; }`);const r=e.getColor(D["N"]);r&&t.addRule(`.monaco-editor .parameter-hints-widget { color: ${r}; }`);const a=e.getColor(D["Rc"]);a&&t.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${a}; }`);const c=e.getColor(K);c&&t.addRule(`.monaco-editor .parameter-hints-widget .parameter.active { color: ${c}}`)});var J=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},z=function(e,t){return function(i,n){t(i,n,e)}};let U=class e extends n["a"]{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance($,this.editor))}static get(t){return t.getContribution(e.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};U.ID="editor.controller.parameterHints",U=J([z(1,C["a"])],U);class X extends o["b"]{constructor(){super({id:"editor.action.triggerParameterHints",label:y["a"]("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:s["a"].hasSignatureHelpProvider,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=U.get(t);i&&i.trigger({triggerKind:r["h"].Invoke})}}Object(o["l"])(U.ID,U),Object(o["j"])(X);const Y=175,Q=o["c"].bindToContribution(U.get);Object(o["k"])(new Q({id:"closeParameterHints",precondition:f.Visible,handler:e=>e.cancel(),kbOpts:{weight:Y,kbExpr:s["a"].focus,primary:9,secondary:[1033]}})),Object(o["k"])(new Q({id:"showPrevParameterHint",precondition:p["a"].and(f.Visible,f.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:Y,kbExpr:s["a"].focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(o["k"])(new Q({id:"showNextParameterHint",precondition:p["a"].and(f.Visible,f.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:Y,kbExpr:s["a"].focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},d22a:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("a666"),o=i("b055"),s=i("a8b4"),r=i("dff7");class a extends s["a"]{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=Object(r["a"])("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,n["a"].None}provideWithTextEditor(e,t,i){const s=e.editor,r=new n["b"];r.add(t.onDidAccept(i=>{const[n]=t.selectedItems;if(n){if(!this.isValidLineNumber(s,n.lineNumber))return;this.gotoLocation(e,{range:this.toRange(n.lineNumber,n.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}}));const c=()=>{const e=this.parsePosition(s,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(s,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(s,e.lineNumber))return void this.clearDecorations(s);const n=this.toRange(e.lineNumber,e.column);s.revealRangeInCenter(n,0),this.addDecorations(s,n)};c(),r.add(t.onDidChangeValue(()=>c()));const d=Object(o["a"])(s);if(d){const e=d.getOptions(),t=e.get(60);2===t.renderType&&(d.updateOptions({lineNumbers:"on"}),r.add(Object(n["j"])(()=>d.updateOptions({lineNumbers:"relative"}))))}return r}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?Object(r["a"])("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):Object(r["a"])("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?Object(r["a"])("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):Object(r["a"])("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,i){if(!i||"number"!==typeof i)return!1;const n=this.getModel(e);if(!n)return!1;const o={lineNumber:t,column:i};return n.validatePosition(o).equals(o)}lineCount(e){var t,i;return null!==(i=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==i?i:0}}a.PREFIX=":"},ea71:function(e,t,i){},ead7:function(e,t,i){"use strict";i.d(t,"a",(function(){return v}));var n=i("5fe7"),o=i("2504"),s=i("561a"),r=i("d985"),a=i("a666"),c=i("3742"),d=i("6a89"),l=i("2e5a"),h=i("0bac"),u=i("a8b4"),g=i("dff7"),p=i("7340"),m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},b=function(e,t){return function(i,n){t(i,n,e)}},f=function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function r(e){try{c(n.next(e))}catch(t){s(t)}}function a(e){try{c(n["throw"](e))}catch(t){s(t)}}function c(e){e.done?i(e.value):o(e.value).then(r,a)}c((n=n.apply(e,t||[])).next())}))};let v=class e extends u["a"]{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,Object(g["a"])("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),a["a"].None}provideWithTextEditor(e,t,i){const n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,i):this.doProvideWithoutEditorSymbols(e,o,t,i):a["a"].None}doProvideWithoutEditorSymbols(e,t,i,n){const o=new a["b"];return this.provideLabelPick(i,Object(g["a"])("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(()=>{f(this,void 0,void 0,(function*(){const s=yield this.waitForLanguageSymbolRegistry(t,o);s&&!n.isCancellationRequested&&o.add(this.doProvideWithEditorSymbols(e,t,i,n))}))})(),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return f(this,void 0,void 0,(function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new n["b"],o=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(o.dispose(),i.complete(!0))}));return t.add(Object(a["j"])(()=>i.complete(!1))),i.p}))}doProvideWithEditorSymbols(t,i,n,s){const c=t.editor,d=new a["b"];d.add(n.onDidAccept(e=>{const[i]=n.selectedItems;i&&i.range&&(this.gotoLocation(t,{range:i.range.selection,keyMods:n.keyMods,preserveFocus:e.inBackground}),e.inBackground||n.hide())})),d.add(n.onDidTriggerItemButton(({item:e})=>{e&&e.range&&(this.gotoLocation(t,{range:e.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));const l=this.getDocumentSymbols(i,s);let h=void 0;const u=()=>f(this,void 0,void 0,(function*(){null===h||void 0===h||h.dispose(!0),n.busy=!1,h=new o["b"](s),n.busy=!0;try{const t=Object(r["b"])(n.value.substr(e.PREFIX.length).trim()),i=yield this.doGetSymbolPicks(l,t,void 0,h.token);if(s.isCancellationRequested)return;i.length>0?n.items=i:t.original.length>0?this.provideLabelPick(n,Object(g["a"])("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(n,Object(g["a"])("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(n.busy=!1)}}));d.add(n.onDidChangeValue(()=>u())),u();let p=!0;return d.add(n.onDidChangeActive(()=>{const[e]=n.activeItems;if(e&&e.range){if(p)return void(p=!1);c.revealRangeInCenter(e.range.selection,0),this.addDecorations(c,e.range.decoration)}})),d}doGetSymbolPicks(t,i,n,o){return f(this,void 0,void 0,(function*(){const a=yield t;if(o.isCancellationRequested)return[];const h=0===i.original.indexOf(e.SCOPE_PREFIX),u=h?1:0;let p,m;i.values&&i.values.length>1?(p=Object(r["a"])(i.values[0]),m=Object(r["a"])(i.values.slice(1))):p=i;const b=[];for(let e=0;e<a.length;e++){const t=a[e],o=Object(c["V"])(t.name),h=`$(${l["i"].toIcon(t.kind).id}) ${o}`,f=h.length-o.length;let v=t.containerName;(null===n||void 0===n?void 0:n.extraContainerLabel)&&(v=v?`${n.extraContainerLabel} • ${v}`:n.extraContainerLabel);let _=void 0,y=void 0,C=void 0,S=void 0;if(i.original.length>u){let e=!1;if(p!==i&&([_,y]=Object(r["c"])(h,Object.assign(Object.assign({},i),{values:void 0}),u,f),"number"===typeof _&&(e=!0)),"number"!==typeof _&&([_,y]=Object(r["c"])(h,p,u,f),"number"!==typeof _))continue;if(!e&&m){if(v&&m.original.length>0&&([C,S]=Object(r["c"])(v,m)),"number"!==typeof C)continue;"number"===typeof _&&(_+=C)}}const w=t.tags&&t.tags.indexOf(1)>=0;b.push({index:e,kind:t.kind,score:_,label:h,ariaLabel:o,description:v,highlights:w?void 0:{label:y,description:S},range:{selection:d["a"].collapseToStart(t.selectionRange),decoration:t.range},strikethrough:w,buttons:(()=>{var e,t;const i=(null===(e=this.options)||void 0===e?void 0:e.openSideBySideDirection)?null===(t=this.options)||void 0===t?void 0:t.openSideBySideDirection():void 0;if(i)return[{iconClass:"right"===i?s["b"].splitHorizontal.classNames:s["b"].splitVertical.classNames,tooltip:"right"===i?Object(g["a"])("openToSide","Open to the Side"):Object(g["a"])("openToBottom","Open to the Bottom")}]})()})}const f=b.sort((e,t)=>h?this.compareByKindAndScore(e,t):this.compareByScore(e,t));let v=[];if(h){let e=void 0,t=void 0,i=0;function C(){t&&"number"===typeof e&&i>0&&(t.label=Object(c["v"])(y[e]||_,i))}for(const n of f)e!==n.kind?(C(),e=n.kind,i=1,t={type:"separator"},v.push(t)):i++,v.push(n);C()}else f.length>0&&(v=[{label:Object(g["a"])("symbols","symbols ({0})",b.length),type:"separator"},...f]);return v}))}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=y[e.kind]||_,n=y[t.kind]||_,o=i.localeCompare(n);return 0===o?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return f(this,void 0,void 0,(function*(){const i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}))}};v.PREFIX="@",v.SCOPE_PREFIX=":",v.PREFIX_BY_CATEGORY=`${v.PREFIX}${v.SCOPE_PREFIX}`,v=m([b(0,p["a"]),b(1,h["a"])],v);const _=Object(g["a"])("property","properties ({0})"),y={[5]:Object(g["a"])("method","methods ({0})"),[11]:Object(g["a"])("function","functions ({0})"),[8]:Object(g["a"])("_constructor","constructors ({0})"),[12]:Object(g["a"])("variable","variables ({0})"),[4]:Object(g["a"])("class","classes ({0})"),[22]:Object(g["a"])("struct","structs ({0})"),[23]:Object(g["a"])("event","events ({0})"),[24]:Object(g["a"])("operator","operators ({0})"),[10]:Object(g["a"])("interface","interfaces ({0})"),[2]:Object(g["a"])("namespace","namespaces ({0})"),[3]:Object(g["a"])("package","packages ({0})"),[25]:Object(g["a"])("typeParameter","type parameters ({0})"),[1]:Object(g["a"])("modules","modules ({0})"),[6]:Object(g["a"])("property","properties ({0})"),[9]:Object(g["a"])("enum","enumerations ({0})"),[21]:Object(g["a"])("enumMember","enumeration members ({0})"),[14]:Object(g["a"])("string","strings ({0})"),[0]:Object(g["a"])("file","files ({0})"),[17]:Object(g["a"])("array","arrays ({0})"),[15]:Object(g["a"])("number","numbers ({0})"),[16]:Object(g["a"])("boolean","booleans ({0})"),[18]:Object(g["a"])("object","objects ({0})"),[19]:Object(g["a"])("key","keys ({0})"),[7]:Object(g["a"])("field","fields ({0})"),[13]:Object(g["a"])("constant","constants ({0})")}}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com