diff --git a/index.html b/index.html index 9e088672..af75bc07 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Robot Framework
\ No newline at end of file +Robot Framework
\ No newline at end of file diff --git a/js/509.69505509.js b/js/509.32f710a7.js similarity index 99% rename from js/509.69505509.js rename to js/509.32f710a7.js index 5fa69075..e20afd3e 100644 --- a/js/509.69505509.js +++ b/js/509.32f710a7.js @@ -49,4 +49,4 @@ *-----------------------------------------------------------------------------*/ (0,i.H)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:function(){return n.e(341).then(n.bind(n,82341))}})},13948:(e,t,n)=>{"use strict";n.d(t,{V:()=>S,P:()=>C});var i=n(66347),r=n(26334),o=n(62040),s=n(39110),a=n(7946),l=n(13087),u=n(62833),c=(n(78011),n(21249),n(47941),n(32564),n(57658),n(90229)),d=n(49266),h=n(55662),f=n(67868),g=n(70180),v=function(){function e(t,n){(0,l.Z)(this,e),this.chr=t,this.type=n,this.width=0}return(0,u.Z)(e,[{key:"fulfill",value:function(e){this.width=e}}]),e}(),p=function(){function e(t,n){(0,l.Z)(this,e),this._bareFontInfo=t,this._requests=n,this._container=null,this._testElements=null}return(0,u.Z)(e,[{key:"read",value:function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}},{key:"_createDomElements",value:function(){var t=this._bareFontInfo.getMassagedFontFamily(c.isSafari?g.hL.fontFamily:null),n=document.createElement("div");n.style.position="absolute",n.style.top="-50000px",n.style.width="50000px";var r=document.createElement("div");r.style.fontFamily=t,r.style.fontWeight=this._bareFontInfo.fontWeight,r.style.fontSize=this._bareFontInfo.fontSize+"px",r.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,r.style.lineHeight=this._bareFontInfo.lineHeight+"px",r.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",n.appendChild(r);var o=document.createElement("div");o.style.fontFamily=t,o.style.fontWeight="bold",o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",n.appendChild(o);var s=document.createElement("div");s.style.fontFamily=t,s.style.fontWeight=this._bareFontInfo.fontWeight,s.style.fontSize=this._bareFontInfo.fontSize+"px",s.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,s.style.lineHeight=this._bareFontInfo.lineHeight+"px",s.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.style.fontStyle="italic",n.appendChild(s);var a,l=[],u=(0,i.Z)(this._requests);try{for(u.s();!(a=u.n()).done;){var d=a.value,h=void 0;0===d.type&&(h=r),2===d.type&&(h=o),1===d.type&&(h=s),h.appendChild(document.createElement("br"));var f=document.createElement("span");e._render(f,d),h.appendChild(f),l.push(f)}}catch(v){u.e(v)}finally{u.f()}this._container=n,this._testElements=l}},{key:"_readFromDomElements",value:function(){for(var e=0,t=this._requests.length;e.001){D=!1;break}}var A=!0;D&&k.width!==E&&(A=!1),k.width>y.width&&(A=!1);var M=c.getTimeSinceLastZoomLevelChanged()>2e3;return new b.pR({zoomLevel:c.getZoomLevel(),pixelRatio:c.getPixelRatio(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:D,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:A,spaceWidth:o.width,middotWidth:C.width,wsmiddotWidth:w.width,maxDigitWidth:N},M)}}]),n}(h.JT);w.INSTANCE=new w;var S=function(e){(0,s.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3?arguments[3]:void 0;return(0,l.Z)(this,n),r=t.call(this,e,i),r.accessibilityService=s,r._elementSizeObserver=r._register(new _.I(o,i.dimension,(function(){return r._recomputeOptions()}))),r._register(w.INSTANCE.onDidChange((function(){return r._recomputeOptions()}))),r._validatedOptions.get(10)&&r._elementSizeObserver.startObserving(),r._register(c.onDidChangeZoomLevel((function(e){return r._recomputeOptions()}))),r._register(r.accessibilityService.onDidChangeScreenReaderOptimized((function(){return r._recomputeOptions()}))),r._recomputeOptions(),r}return(0,u.Z)(n,[{key:"observeReferenceElement",value:function(e){this._elementSizeObserver.observe(e)}},{key:"updatePixelRatio",value:function(){this._recomputeOptions()}},{key:"_getEnvConfiguration",value:function(){return{extraEditorClassName:n._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:c.isWebKit||c.isFirefox,pixelRatio:c.getPixelRatio(),zoomLevel:c.getZoomLevel(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}},{key:"readConfiguration",value:function(e){return w.INSTANCE.readConfiguration(e)}}],[{key:"applyFontInfoSlow",value:function(e,t){e.style.fontFamily=t.getMassagedFontFamily(c.isSafari?g.hL.fontFamily:null),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"}},{key:"applyFontInfo",value:function(e,t){e.setFontFamily(t.getMassagedFontFamily(c.isSafari?g.hL.fontFamily:null)),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)}},{key:"_getExtraEditorClassName",value:function(){var e="";return c.isSafari||c.isWebkitWebView||(e+="no-user-select "),c.isSafari&&(e+="no-minimap-shadow "),f.dz&&(e+="mac "),e}}]),n}(y.fv)},30827:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var i=n(13087),r=n(62833),o=n(26334),s=n(62040),a=n(39110),l=n(7946),u=(n(32564),n(55662)),c=function(e){(0,a.Z)(n,e);var t=(0,l.Z)(n);function n(e,r,o){var s;return(0,i.Z)(this,n),s=t.call(this),s.referenceDomElement=e,s.changeCallback=o,s.width=-1,s.height=-1,s.resizeObserver=null,s.measureReferenceDomElementToken=-1,s.measureReferenceDomElement(!1,r),s}return(0,r.Z)(n,[{key:"dispose",value:function(){this.stopObserving(),(0,o.Z)((0,s.Z)(n.prototype),"dispose",this).call(this)}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"startObserving",value:function(){var e=this;"undefined"!==typeof ResizeObserver?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver((function(t){t&&t[0]&&t[0].contentRect?e.observe({width:t[0].contentRect.width,height:t[0].contentRect.height}):e.observe()})),this.resizeObserver.observe(this.referenceDomElement)):-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval((function(){return e.observe()}),100))}},{key:"stopObserving",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}},{key:"observe",value:function(e){this.measureReferenceDomElement(!0,e)}},{key:"measureReferenceDomElement",value:function(e,t){var n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())}}]),n}(u.JT)},81997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CoreEditingCommands:()=>I,CoreEditorCommand:()=>N,CoreNavigationCommands:()=>D,EditorScroll_:()=>i,RevealLine_:()=>r});var i,r,o=n(54621),s=n(13087),a=n(62833),l=n(39110),u=n(7946),c=(n(82526),n(41817),n(52262),n(24506),n(82772),n(21249),n(40561),n(57658),n(47042),n(88386),n(91058),n(82658)),d=n(90229),h=n(37479),f=n(30764),g=n(99490),v=n(83772),p=n(14269),m=n(33501),_=n(56665),y=function(){function e(){(0,s.Z)(this,e)}return(0,a.Z)(e,null,[{key:"columnSelect",value:function(e,t,n,i,r,o){for(var s=Math.abs(r-n)+1,a=n>r,l=i>o,u=io)continue;if(yi)continue;if(v0&&r--,e.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}},{key:"columnSelectRight",value:function(e,t,n){for(var i=0,r=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber),s=r;s<=o;s++){var a=t.getLineMaxColumn(s),l=p.io.visibleColumnFromColumn2(e,t,new m.L(s,a));i=Math.max(i,l)}var u=n.toViewVisualColumn;return u=0)&&(n.runDOMCommand(),!0)})),t.addImplementation(0,"generic-dom",(function(e,t){var i=e.get(v.$).getActiveCodeEditor();return!!i&&(i.focus(),n._runEditorCommand(e,i,t))}))}return(0,a.Z)(e,[{key:"_runEditorCommand",value:function(e,t,n){var i=this.runEditorCommand(e,t,n);return i||!0}}]),e}();(function(e){var t=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,s.Z)(this,n),i=t.call(this,e),i._inSelectionMode=e.inSelectionMode,i}return(0,a.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[k.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!0)}}]),n}(N);e.MoveTo=(0,g.fK)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,g.fK)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var n=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement();var n=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,n.viewStates.map((function(e){return p.Vi.fromViewState(e)}))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),n.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}]),n}(N);e.ColumnSelect=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"columnSelect",precondition:void 0})}return(0,a.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){var r=e.model.validatePosition(i.position),o=e.coordinatesConverter.validateViewPosition(new m.L(i.viewPosition.lineNumber,i.viewPosition.column),r),s=i.doColumnSelect?n.fromViewLineNumber:o.lineNumber,a=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return y.columnSelect(e.cursorConfig,e,s,a,o.lineNumber,i.mouseColumn-1)}}]),n}(n))),e.CursorColumnSelectLeft=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:3599,linux:{primary:0}}})}return(0,a.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return y.columnSelectLeft(e.cursorConfig,e,n)}}]),n}(n))),e.CursorColumnSelectRight=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:3601,linux:{primary:0}}})}return(0,a.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return y.columnSelectRight(e.cursorConfig,e,n)}}]),n}(n)));var o=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,s.Z)(this,n),i=t.call(this,e),i._isPaged=e.isPaged,i}return(0,a.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return y.columnSelectUp(e.cursorConfig,e,n,this._isPaged)}}]),n}(n);e.CursorColumnSelectUp=(0,g.fK)(new o({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,g.fK)(new o({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:3595,linux:{primary:0}}}));var h=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,s.Z)(this,n),i=t.call(this,e),i._isPaged=e.isPaged,i}return(0,a.Z)(n,[{key:"_getColumnSelectResult",value:function(e,t,n,i){return y.columnSelectDown(e.cursorConfig,e,n,this._isPaged)}}]),n}(n);e.CursorColumnSelectDown=(0,g.fK)(new h({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,g.fK)(new h({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:3596,linux:{primary:0}}}));var v=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"cursorMove",precondition:void 0,description:k.N.description})}return(0,a.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=k.N.parse(t);n&&this._runCursorMove(e,t.source,n)}},{key:"_runCursorMove",value:function(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,n._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}}],[{key:"_move",value:function(e,t,n){var i=n.select,r=n.value;switch(n.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return k.P.simpleMove(e,t,n.direction,i,r,n.unit);case 11:case 13:case 12:case 14:return k.P.viewportMove(e,t,n.direction,i,r);default:return null}}}]),n}(N);e.CursorMoveImpl=v,e.CursorMove=(0,g.fK)(new v);var b=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e){var i;return(0,s.Z)(this,n),i=t.call(this,e),i._staticArgs=e.args,i}return(0,a.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n=this._staticArgs;-1===this._staticArgs.value&&(n={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,k.P.simpleMove(e,e.getCursorStates(),n.direction,n.select,n.value,n.unit)),e.revealPrimaryCursor(t.source,!0)}}]),n}(N);e.CursorLeft=(0,g.fK)(new b({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,g.fK)(new b({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:1039}})),e.CursorRight=(0,g.fK)(new b({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,g.fK)(new b({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:1041}})),e.CursorUp=(0,g.fK)(new b({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,g.fK)(new b({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,g.fK)(new b({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,g.fK)(new b({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:1035}})),e.CursorDown=(0,g.fK)(new b({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,g.fK)(new b({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,g.fK)(new b({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,g.fK)(new b({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"createCursor",precondition:void 0})}return(0,a.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){var n;n=t.wholeLine?k.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):k.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);var i=e.getCursorStates();if(i.length>1)for(var r=n.modelState?n.modelState.position:null,o=n.viewState?n.viewState.position:null,s=0,a=i.length;ss&&(o=s);var a=new _.e(o,1,o,e.model.getLineMaxColumn(o)),l=0;if(n.at)switch(n.at){case r.RawAtArgument.Top:l=3;break;case r.RawAtArgument.Center:l=1;break;case r.RawAtArgument.Bottom:l=4;break;default:break}var u=e.coordinatesConverter.convertModelRangeToViewRange(a);e.revealRange(t.source,!1,u,l,0)}}]),n}(N))),e.SelectAll=new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,g.Sq)}return(0,a.Z)(n,[{key:"runDOMCommand",value:function(){d.isFirefox&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}},{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditorCommand(i,n)}},{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[k.P.selectAll(e,e.getPrimaryCursorState())])}}]),n}(E)),e.SetSelection=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"setSelection",precondition:void 0})}return(0,a.Z)(n,[{key:"runCoreEditorCommand",value:function(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p.Vi.fromModelSelection(t.selection)])}}]),n}(N)))})(D||(D={}));var I,T=S.Ao.and(w.u.textInputFocus,w.u.columnSelection);function Z(e,t){L.W.registerKeybindingRule({id:e,primary:t,when:T,weight:x+1})}function A(e){return e.register(),e}Z(D.CursorColumnSelectLeft.id,1039),Z(D.CursorColumnSelectRight.id,1041),Z(D.CursorColumnSelectUp.id,1040),Z(D.CursorColumnSelectPageUp.id,1035),Z(D.CursorColumnSelectDown.id,1042),Z(D.CursorColumnSelectPageDown.id,1036),function(e){var t=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"runEditorCommand",value:function(e,t,n){var i=t._getViewModel();i&&this.runCoreEditingCommand(t,i,n||{})}}]),n}(g._l);e.CoreEditingCommand=t,e.LineBreakInsert=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"lineBreakInsert",precondition:w.u.writable,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:0,mac:{primary:301}}})}return(0,a.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,C.u.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection}))))}}]),n}(t))),e.Outdent=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"outdent",precondition:w.u.writable,kbOpts:{weight:x,kbExpr:S.Ao.and(w.u.editorTextFocus,w.u.tabDoesNotMoveFocus),primary:1026}})}return(0,a.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,C.u.outdent(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})))),e.pushUndoStop()}}]),n}(t))),e.Tab=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"tab",precondition:w.u.writable,kbOpts:{weight:x,kbExpr:S.Ao.and(w.u.editorTextFocus,w.u.tabDoesNotMoveFocus),primary:2}})}return(0,a.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,C.u.tab(t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})))),e.pushUndoStop()}}]),n}(t))),e.DeleteLeft=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"deleteLeft",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}return(0,a.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){var i=b.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection})),t.getCursorAutoClosedCharacters()),r=(0,o.Z)(i,2),s=r[0],a=r[1];s&&e.pushUndoStop(),e.executeCommands(this.id,a),t.setPrevEditOperationType(2)}}]),n}(t))),e.DeleteRight=(0,g.fK)(new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,{id:"deleteRight",precondition:void 0,kbOpts:{weight:x,kbExpr:w.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}return(0,a.Z)(n,[{key:"runCoreEditingCommand",value:function(e,t,n){var i=b.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((function(e){return e.modelState.selection}))),r=(0,o.Z)(i,2),s=r[0],a=r[1];s&&e.pushUndoStop(),e.executeCommands(this.id,a),t.setPrevEditOperationType(3)}}]),n}(t))),e.Undo=new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,g.n_)}return(0,a.Z)(n,[{key:"runDOMCommand",value:function(){document.execCommand("undo")}},{key:"runEditorCommand",value:function(e,t,n){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().undo()}}]),n}(E)),e.Redo=new(function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,s.Z)(this,n),t.call(this,g.kz)}return(0,a.Z)(n,[{key:"runDOMCommand",value:function(){document.execCommand("redo")}},{key:"runEditorCommand",value:function(e,t,n){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().redo()}}]),n}(E))}(I||(I={}));var M=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(e,i,r){var o;return(0,s.Z)(this,n),o=t.call(this,{id:e,precondition:void 0,description:r}),o._handlerId=i,o}return(0,a.Z)(n,[{key:"runCommand",value:function(e,t){var n=e.get(v.$).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)}}]),n}(g.mY);function R(e,t){A(new M("default:"+e,e)),A(new M(e,e,t))}R("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),R("replacePreviousChar"),R("compositionType"),R("compositionStart"),R("compositionEnd"),R("paste"),R("cut")},51599:(e,t,n)=>{"use strict";n.d(t,{Fz:()=>S,Nl:()=>C,RA:()=>k,Tj:()=>x,pd:()=>i});var i,r=n(54621),o=n(26334),s=n(62040),a=n(39110),l=n(7946),u=n(13087),c=n(62833),d=(n(83650),n(3843),n(83710),n(74916),n(15306),n(21703),n(96647),n(38862),n(90229)),h=n(94081),f=n(44376),g=n(53455),v=n(49266),p=n(55662),m=n(44132),_=n(51787),y=n(26263),b=n(67516);(function(e){e.Tap="-monaco-textarea-synthetic-tap"})(i||(i={}));var k={forceCopyWithSyntaxHighlighting:!1},C=function(){function e(){(0,u.Z)(this,e),this._lastState=null}return(0,c.Z)(e,[{key:"set",value:function(e,t){this._lastState={lastCopiedValue:e,data:t}}},{key:"get",value:function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}]),e}();C.INSTANCE=new C;var w=function(){function e(){(0,u.Z)(this,e),this._lastTypeTextLength=0}return(0,c.Z)(e,[{key:"handleCompositionUpdate",value:function(e){e=e||"";var t={text:e,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}]),e}(),S=function(e){(0,a.Z)(n,e);var t=(0,l.Z)(n);function n(e,i,o,s){var a;(0,u.Z)(this,n),a=t.call(this),a._host=e,a._textArea=i,a._OS=o,a._browser=s,a._onFocus=a._register(new v.Q5),a.onFocus=a._onFocus.event,a._onBlur=a._register(new v.Q5),a.onBlur=a._onBlur.event,a._onKeyDown=a._register(new v.Q5),a.onKeyDown=a._onKeyDown.event,a._onKeyUp=a._register(new v.Q5),a.onKeyUp=a._onKeyUp.event,a._onCut=a._register(new v.Q5),a.onCut=a._onCut.event,a._onPaste=a._register(new v.Q5),a.onPaste=a._onPaste.event,a._onType=a._register(new v.Q5),a.onType=a._onType.event,a._onCompositionStart=a._register(new v.Q5),a.onCompositionStart=a._onCompositionStart.event,a._onCompositionUpdate=a._register(new v.Q5),a.onCompositionUpdate=a._onCompositionUpdate.event,a._onCompositionEnd=a._register(new v.Q5),a.onCompositionEnd=a._onCompositionEnd.event,a._onSelectionChangeRequest=a._register(new v.Q5),a.onSelectionChangeRequest=a._onSelectionChangeRequest.event,a._asyncTriggerCut=a._register(new g.pY((function(){return a._onCut.fire()}),0)),a._asyncFocusGainWriteScreenReaderContent=a._register(new g.pY((function(){return a.writeScreenReaderContent("asyncFocusGain")}),0)),a._textAreaState=y.un.EMPTY,a._selectionChangeListener=null,a.writeScreenReaderContent("ctor"),a._hasFocus=!1,a._currentComposition=null,a._nextCommand=0;var l=null;return a._register(a._textArea.onKeyDown((function(e){var t=new f.y(e);(109===t.keyCode||a._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),l=t,a._onKeyDown.fire(t)}))),a._register(a._textArea.onKeyUp((function(e){var t=new f.y(e);a._onKeyUp.fire(t)}))),a._register(a._textArea.onCompositionStart((function(e){y.al&&console.log("[compositionstart]",e);var t=new w;if(a._currentComposition)a._currentComposition=t;else{if(a._currentComposition=t,2===a._OS&&a._textAreaState.selectionStart===a._textAreaState.selectionEnd&&a._textAreaState.selectionStart>0&&a._textAreaState.value.substr(a._textAreaState.selectionStart-1,1)===e.data){var n=l&&l.equals(109)&&("ArrowRight"===l.code||"ArrowLeft"===l.code);if(n||a._browser.isFirefox)return y.al&&console.log("[compositionstart] Handling long press case on macOS + arrow key or Firefox",e),t.handleCompositionUpdate("x"),void a._onCompositionStart.fire({revealDeltaColumns:-1})}a._browser.isAndroid?a._onCompositionStart.fire({revealDeltaColumns:-a._textAreaState.selectionStart}):a._onCompositionStart.fire({revealDeltaColumns:0})}}))),a._register(a._textArea.onCompositionUpdate((function(e){y.al&&console.log("[compositionupdate]",e);var t=a._currentComposition;if(t){if(a._browser.isAndroid){var n=y.un.readFromTextArea(a._textArea),i=y.un.deduceAndroidCompositionInput(a._textAreaState,n);return a._textAreaState=n,a._onType.fire(i),void a._onCompositionUpdate.fire(e)}var r=t.handleCompositionUpdate(e.data);a._textAreaState=y.un.readFromTextArea(a._textArea),a._onType.fire(r),a._onCompositionUpdate.fire(e)}}))),a._register(a._textArea.onCompositionEnd((function(e){y.al&&console.log("[compositionend]",e);var t=a._currentComposition;if(t){if(a._currentComposition=null,a._browser.isAndroid){var n=y.un.readFromTextArea(a._textArea),i=y.un.deduceAndroidCompositionInput(a._textAreaState,n);return a._textAreaState=n,a._onType.fire(i),void a._onCompositionEnd.fire()}var r=t.handleCompositionUpdate(e.data);a._textAreaState=y.un.readFromTextArea(a._textArea),a._onType.fire(r),a._onCompositionEnd.fire()}}))),a._register(a._textArea.onInput((function(e){if(y.al&&console.log("[input]",e),a._textArea.setIgnoreSelectionChangeTime("received input event"),!a._currentComposition){var t=y.un.readFromTextArea(a._textArea),n=y.un.deduceInput(a._textAreaState,t,2===a._OS);if(0!==n.replacePrevCharCnt||1!==n.text.length||!_.ZG(n.text.charCodeAt(0))){a._textAreaState=t;var i=""===n.text&&0===n.replacePrevCharCnt&&0===n.replaceNextCharCnt&&0===n.positionDelta;0===a._nextCommand?i||a._onType.fire(n):(i||a._firePaste(n.text,null),a._nextCommand=0)}}}))),a._register(a._textArea.onCut((function(e){a._textArea.setIgnoreSelectionChangeTime("received cut event"),a._ensureClipboardGetsEditorSelection(e),a._asyncTriggerCut.schedule()}))),a._register(a._textArea.onCopy((function(e){a._ensureClipboardGetsEditorSelection(e)}))),a._register(a._textArea.onPaste((function(e){if(a._textArea.setIgnoreSelectionChangeTime("received paste event"),L.canUseTextData(e)){var t=L.getTextData(e),n=(0,r.Z)(t,2),i=n[0],o=n[1];""!==i&&a._firePaste(i,o)}else a._textArea.getSelectionStart()!==a._textArea.getSelectionEnd()&&a._setAndWriteTextAreaState("paste",y.un.EMPTY),a._nextCommand=1}))),a._register(a._textArea.onFocus((function(){var e=a._hasFocus;a._setHasFocus(!0),a._browser.isSafari&&!e&&a._hasFocus&&a._asyncFocusGainWriteScreenReaderContent.schedule()}))),a._register(a._textArea.onBlur((function(){a._currentComposition&&(a._currentComposition=null,a.writeScreenReaderContent("blurWithoutCompositionEnd"),a._onCompositionEnd.fire()),a._setHasFocus(!1)}))),a._register(a._textArea.onSyntheticTap((function(){a._browser.isAndroid&&a._currentComposition&&(a._currentComposition=null,a.writeScreenReaderContent("tapWithoutCompositionEnd"),a._onCompositionEnd.fire())}))),a}return(0,c.Z)(n,[{key:"_installSelectionChangeListener",value:function(){var e=this,t=0;return h.addDisposableListener(document,"selectionchange",(function(n){if(e._hasFocus&&!e._currentComposition&&e._browser.isChrome){var i=Date.now(),r=i-t;if(t=i,!(r<5)){var o=i-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(o<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var s=e._textArea.getValue();if(e._textAreaState.value===s){var a=e._textArea.getSelectionStart(),l=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==a||e._textAreaState.selectionEnd!==l){var u=e._textAreaState.deduceEditorPosition(a),c=e._host.deduceModelPosition(u[0],u[1],u[2]),d=e._textAreaState.deduceEditorPosition(l),h=e._host.deduceModelPosition(d[0],d[1],d[2]),f=new b.Y(c.lineNumber,c.column,h.lineNumber,h.column);e._onSelectionChangeRequest.fire(f)}}}}}}))}},{key:"dispose",value:function(){(0,o.Z)((0,s.Z)(n.prototype),"dispose",this).call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}},{key:"focusTextArea",value:function(){this._setHasFocus(!0),this.refreshFocusState()}},{key:"isFocused",value:function(){return this._hasFocus}},{key:"refreshFocusState",value:function(){this._setHasFocus(this._textArea.hasFocus())}},{key:"_setHasFocus",value:function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}},{key:"_setAndWriteTextAreaState",value:function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}},{key:"writeScreenReaderContent",value:function(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}},{key:"_ensureClipboardGetsEditorSelection",value:function(e){var t=this._host.getDataToCopy(L.canUseTextData(e)),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};C.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,n),L.canUseTextData(e)?L.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",y.un.selectedText(t.text))}},{key:"_firePaste",value:function(e,t){t||(t=C.INSTANCE.get(e)),this._onPaste.fire({text:e,metadata:t})}}]),n}(p.JT),L=function(){function e(){(0,u.Z)(this,e)}return(0,c.Z)(e,null,[{key:"canUseTextData",value:function(e){return!!e.clipboardData}},{key:"getTextData",value:function(e){if(e.clipboardData){e.preventDefault();var t=e.clipboardData.getData(m.vW.text),n=null,i=e.clipboardData.getData("vscode-editor-data");if("string"===typeof i)try{n=JSON.parse(i),1!==n.version&&(n=null)}catch(r){}return[t,n]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}},{key:"setTextData",value:function(e,t,n,i){if(e.clipboardData)return e.clipboardData.setData(m.vW.text,t),"string"===typeof n&&e.clipboardData.setData("text/html",n),e.clipboardData.setData("vscode-editor-data",JSON.stringify(i)),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}]),e}(),x=function(e){(0,a.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,u.Z)(this,n),r=t.call(this),r._actual=e,r.onKeyDown=r._register(h.createEventEmitter(r._actual,"keydown")).event,r.onKeyUp=r._register(h.createEventEmitter(r._actual,"keyup")).event,r.onCompositionStart=r._register(h.createEventEmitter(r._actual,"compositionstart")).event,r.onCompositionUpdate=r._register(h.createEventEmitter(r._actual,"compositionupdate")).event,r.onCompositionEnd=r._register(h.createEventEmitter(r._actual,"compositionend")).event,r.onInput=r._register(h.createEventEmitter(r._actual,"input")).event,r.onCut=r._register(h.createEventEmitter(r._actual,"cut")).event,r.onCopy=r._register(h.createEventEmitter(r._actual,"copy")).event,r.onPaste=r._register(h.createEventEmitter(r._actual,"paste")).event,r.onFocus=r._register(h.createEventEmitter(r._actual,"focus")).event,r.onBlur=r._register(h.createEventEmitter(r._actual,"blur")).event,r._onSyntheticTap=r._register(new v.Q5),r.onSyntheticTap=r._onSyntheticTap.event,r._ignoreSelectionChangeTime=0,r._register(h.addDisposableListener(r._actual,i.Tap,(function(){return r._onSyntheticTap.fire()}))),r}return(0,c.Z)(n,[{key:"hasFocus",value:function(){var e=h.getShadowRoot(this._actual);return e?e.activeElement===this._actual:!!h.isInDOM(this._actual)&&document.activeElement===this._actual}},{key:"setIgnoreSelectionChangeTime",value:function(e){this._ignoreSelectionChangeTime=Date.now()}},{key:"getIgnoreSelectionChangeTime",value:function(){return this._ignoreSelectionChangeTime}},{key:"resetSelectionChangeTime",value:function(){this._ignoreSelectionChangeTime=0}},{key:"getValue",value:function(){return this._actual.value}},{key:"setValue",value:function(e,t){var n=this._actual;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)}},{key:"getSelectionStart",value:function(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}},{key:"getSelectionEnd",value:function(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}},{key:"setSelectionRange",value:function(e,t,n){var i=this._actual,r=null,o=h.getShadowRoot(i);r=o?o.activeElement:document.activeElement;var s=r===i,a=i.selectionStart,l=i.selectionEnd;if(s&&a===t&&l===n)d.isFirefox&&window.parent!==window&&i.focus();else{if(s)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(d.isFirefox&&window.parent!==window&&i.focus());try{var u=h.saveParentsScrollTop(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),h.restoreParentsScrollTop(i,u)}catch(c){}}}}]),n}(p.JT)},26263:(e,t,n)=>{"use strict";n.d(t,{al:()=>l,ee:()=>c,un:()=>u});var i=n(13087),r=n(62833),o=(n(96647),n(83710),n(41539),n(39714),n(82772),n(23157),n(27852),n(74916),n(77601),n(51787)),s=n(33501),a=n(56665),l=!1,u=function(){function e(t,n,r,o,s){(0,i.Z)(this,e),this.value=t,this.selectionStart=n,this.selectionEnd=r,this.selectionStartPosition=o,this.selectionEndPosition=s}return(0,r.Z)(e,[{key:"toString",value:function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}},{key:"collapseSelection",value:function(){return new e(this.value,this.value.length,this.value.length,null,null)}},{key:"writeToTextArea",value:function(e,t,n){l&&console.log("writeToTextArea "+e+": "+this.toString()),t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}},{key:"deduceEditorPosition",value:function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){var n=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,1)}var i=this.value.substring(this.selectionStart,e);if(-1===i.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,i,1);var r=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,r,-1)}},{key:"_finishDeduceEditorPosition",value:function(e,t,n){var i=0,r=-1;while(-1!==(r=t.indexOf("\n",r+1)))i++;return[e,n*t.length,i]}}],[{key:"readFromTextArea",value:function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)}},{key:"selectedText",value:function(t){return new e(t,0,t.length,null,null)}},{key:"deduceInput",value:function(e,t,n){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};l&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString()));var i=e.value,r=e.selectionStart,s=e.selectionEnd,a=t.value,u=t.selectionStart,c=t.selectionEnd,d=i.substring(s),h=a.substring(c),f=o.P1(d,h);a=a.substring(0,a.length-f),i=i.substring(0,i.length-f);var g=i.substring(0,r),v=a.substring(0,u),p=o.Mh(g,v);if(a=a.substring(p),i=i.substring(p),u-=p,r-=p,c-=p,s-=p,l&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+i+">, selectionStart: "+r+", selectionEnd: "+s),console.log("AFTER DIFFING CURRENT STATE: <"+a+">, selectionStart: "+u+", selectionEnd: "+c)),n&&u===c&&i.length>0){var m=null;if(u===a.length?a.startsWith(i)&&(m=a.substring(i.length)):a.endsWith(i)&&(m=a.substring(0,a.length-i.length)),null!==m&&m.length>0&&(/\uFE0F/.test(m)||o.RP(m)))return{text:m,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(u===c){if(i===a&&0===r&&s===i.length&&u===a.length&&-1===a.indexOf("\n")&&o.xe(a))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};var _=g.length-p;return l&&console.log("REMOVE PREVIOUS: "+(g.length-p)+" chars"),{text:a,replacePrevCharCnt:_,replaceNextCharCnt:0,positionDelta:0}}var y=s-r;return{text:a,replacePrevCharCnt:y,replaceNextCharCnt:0,positionDelta:0}}},{key:"deduceAndroidCompositionInput",value:function(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(l&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString())),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};var n=Math.min(o.Mh(e.value,t.value),e.selectionEnd),i=Math.min(o.P1(e.value,t.value),e.value.length-e.selectionEnd),r=e.value.substring(n,e.value.length-i),s=t.value.substring(n,t.value.length-i),a=e.selectionStart-n,u=e.selectionEnd-n,c=t.selectionStart-n,d=t.selectionEnd-n;return l&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+r+">, selectionStart: "+a+", selectionEnd: "+u),console.log("AFTER DIFFING CURRENT STATE: <"+s+">, selectionStart: "+c+", selectionEnd: "+d)),{text:s,replacePrevCharCnt:u,replaceNextCharCnt:r.length-u,positionDelta:d-s.length}}}]),e}();u.EMPTY=new u("",0,0,null,null);var c=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"_getPageOfLine",value:function(e,t){return Math.floor((e-1)/t)}},{key:"_getRangeForPage",value:function(e,t){var n=e*t,i=n+1,r=n+t;return new a.e(i,1,r+1,1)}},{key:"fromEditorSelection",value:function(t,n,i,r,o){var l,c=e._getPageOfLine(i.startLineNumber,r),d=e._getRangeForPage(c,r),h=e._getPageOfLine(i.endLineNumber,r),f=e._getRangeForPage(h,r),g=d.intersectRanges(new a.e(1,1,i.startLineNumber,i.startColumn)),v=n.getValueInRange(g,1),p=n.getLineCount(),m=n.getLineMaxColumn(p),_=f.intersectRanges(new a.e(i.endLineNumber,i.endColumn,p,m)),y=n.getValueInRange(_,1);if(c===h||c+1===h)l=n.getValueInRange(i,1);else{var b=d.intersectRanges(i),k=f.intersectRanges(i);l=n.getValueInRange(b,1)+String.fromCharCode(8230)+n.getValueInRange(k,1)}if(o){var C=500;v.length>C&&(v=v.substring(v.length-C,v.length)),y.length>C&&(y=y.substring(0,C)),l.length>2*C&&(l=l.substring(0,C)+String.fromCharCode(8230)+l.substring(l.length-C,l.length))}return new u(v+l+y,v.length,v.length+l.length,new s.L(i.startLineNumber,i.startColumn),new s.L(i.endLineNumber,i.endColumn))}}]),e}()},39466:(e,t,n)=>{"use strict";n.d(t,{yy:()=>w,Dl:()=>S,ZF:()=>x,YQ:()=>L});var i=n(26334),r=n(62040),o=n(39110),s=n(7946),a=n(13087),l=n(62833),u=(n(92087),n(96647),n(83710),n(41539),n(39714),n(51787)),c=n(56665),d=n(80653),h=n(55662),f=n(52417),g=(n(78783),n(4129),n(33948),n(57658),n(99490)),v=n(43021),p=n(33644),m=n(68804),_=n(10366),y=n(82658),b=(0,m.yh)("IEditorCancelService"),k=new v.uy("cancellableOperation",!1,(0,y.N)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,_.z)(b,function(){function e(){(0,a.Z)(this,e),this._tokens=new WeakMap}return(0,l.Z)(e,[{key:"add",value:function(e,t){var n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext((function(e){var t=k.bindTo(e.get(v.i6)),n=new p.S;return{key:t,tokens:n}})),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),function(){n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}}},{key:"cancel",value:function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}}}]),e}(),!0);var C=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,a.Z)(this,n),r=t.call(this,i),r.editor=e,r._unregister=e.invokeWithinContext((function(t){return t.get(b).add(e,(0,f.Z)(r))})),r}return(0,l.Z)(n,[{key:"dispose",value:function(){this._unregister(),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}}]),n}(d.A);(0,g.fK)(new(function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:k})}return(0,l.Z)(n,[{key:"runEditorCommand",value:function(e,t){e.get(b).cancel(t)}}]),n}(g._l)));var w=function(){function e(t,n){if((0,a.Z)(this,e),this.flags=n,0!==(1&this.flags)){var i=t.getModel();this.modelVersionId=i?u.WU("{0}#{1}",i.uri.toString(),i.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=t.getPosition():this.position=null,0!==(2&this.flags)?this.selection=t.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=t.getScrollLeft(),this.scrollTop=t.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return(0,l.Z)(e,[{key:"_equals",value:function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&(this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&(!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))))}},{key:"validate",value:function(t){return this._equals(new e(t,this.flags))}}]),e}(),S=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e,i,r,o){var s;return(0,a.Z)(this,n),s=t.call(this,e,o),s._listener=new h.SL,4&i&&s._listener.add(e.onDidChangeCursorPosition((function(e){r&&c.e.containsPosition(r,e.position)||s.cancel()}))),2&i&&s._listener.add(e.onDidChangeCursorSelection((function(e){r&&c.e.containsRange(r,e.selection)||s.cancel()}))),8&i&&s._listener.add(e.onDidScrollChange((function(e){return s.cancel()}))),1&i&&(s._listener.add(e.onDidChangeModel((function(e){return s.cancel()}))),s._listener.add(e.onDidChangeModelContent((function(e){return s.cancel()})))),s}return(0,l.Z)(n,[{key:"dispose",value:function(){this._listener.dispose(),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}}]),n}(C),L=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var r;return(0,a.Z)(this,n),r=t.call(this,i),r._listener=e.onDidChangeContent((function(){return r.cancel()})),r}return(0,l.Z)(n,[{key:"dispose",value:function(){this._listener.dispose(),(0,i.Z)((0,r.Z)(n.prototype),"dispose",this).call(this)}}]),n}(d.A),x=function(){function e(t,n,i){(0,a.Z)(this,e),this._visiblePosition=t,this._visiblePositionScrollDelta=n,this._cursorPosition=i}return(0,l.Z)(e,[{key:"restore",value:function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}},{key:"restoreRelativeVerticalPositionOfCursor",value:function(e){var t=e.getPosition();if(this._cursorPosition&&t){var n=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+n)}}}],[{key:"capture",value:function(t){var n=null,i=0;if(0!==t.getScrollTop()){var r=t.getVisibleRanges();if(r.length>0){n=r[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-o}}return new e(n,i,t.getPosition())}}]),e}()},60078:(e,t,n)=>{"use strict";n.d(t,{$:()=>We});var i=n(50124),r=n(13087),o=n(62833),s=n(3336),a=(n(38880),n(41539),n(81299),n(69070),n(66347)),l=(n(38862),n(23157),n(96647),n(83710),n(39714),n(97391),n(57658),n(92222),n(69600),n(29254),n(74916),n(77601),n(4723),n(15306),n(78783),n(33948),n(83650),n(21249),n(89554),n(54747),n(26699),n(32023),n(94081));n(79753),n(91038),n(68304),n(98410),n(30489),n(43371),n(60514),n(78011),n(36535),n(12419),n(24812),n(73210),n(24603),n(28450),n(88386),n(21703),n(82526),n(41817),n(32165),n(68309),n(82772); /*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */ -function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),r=1;r/gm),Q=p(/^data-[\-\w.\u00B7-\uFFFF]/),Y=p(/^aria-[\-\w]+$/),$=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=p(/^(?:\w+script|data):/i),X=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee="function"===typeof Symbol&&"symbol"===(0,s.Z)(Symbol.iterator)?function(e){return(0,s.Z)(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":(0,s.Z)(e)};function te(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:ne(),t=function(e){return re(e)};if(t.version="2.3.1",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,i=e.document,r=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,a=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,c=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,d=e.Text,h=e.Comment,f=e.DOMParser,g=e.trustedTypes,p=a.prototype,m=R(p,"cloneNode"),_=R(p,"nextSibling"),y=R(p,"childNodes"),b=R(p,"parentNode");if("function"===typeof o){var T=i.createElement("template");T.content&&T.content.ownerDocument&&(i=T.content.ownerDocument)}var Z=ie(g,n),oe=Z&&Pe?Z.createHTML(""):"",se=i,ae=se.implementation,le=se.createNodeIterator,ue=se.createDocumentFragment,ce=se.getElementsByTagName,de=n.importNode,he={};try{he=M(i).documentMode?i.documentMode:{}}catch(_t){}var fe={};t.isSupported="function"===typeof b&&ae&&"undefined"!==typeof ae.createHTMLDocument&&9!==he;var ge=q,ve=G,pe=Q,me=Y,_e=J,ye=X,be=$,ke=null,Ce=A({},[].concat(te(O),te(P),te(F),te(W),te(H))),we=null,Se=A({},[].concat(te(z),te(K),te(U),te(j))),Le=null,xe=null,Ne=!0,De=!0,Ee=!1,Ie=!1,Te=!1,Ze=!1,Ae=!1,Me=!1,Re=!1,Oe=!0,Pe=!1,Fe=!0,Be=!0,We=!1,Ve={},He=null,ze=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ke=null,Ue=A({},["audio","video","img","source","image","track"]),je=null,qe=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",$e=Ye,Je=!1,Xe=null,et=i.createElement("form"),tt=function(e){Xe&&Xe===e||(e&&"object"===("undefined"===typeof e?"undefined":ee(e))||(e={}),e=M(e),ke="ALLOWED_TAGS"in e?A({},e.ALLOWED_TAGS):Ce,we="ALLOWED_ATTR"in e?A({},e.ALLOWED_ATTR):Se,je="ADD_URI_SAFE_ATTR"in e?A(M(qe),e.ADD_URI_SAFE_ATTR):qe,Ke="ADD_DATA_URI_TAGS"in e?A(M(Ue),e.ADD_DATA_URI_TAGS):Ue,He="FORBID_CONTENTS"in e?A({},e.FORBID_CONTENTS):ze,Le="FORBID_TAGS"in e?A({},e.FORBID_TAGS):{},xe="FORBID_ATTR"in e?A({},e.FORBID_ATTR):{},Ve="USE_PROFILES"in e&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=e.SAFE_FOR_TEMPLATES||!1,Te=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Oe=!1!==e.RETURN_DOM_IMPORT,Pe=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||be,$e=e.NAMESPACE||Ye,Ie&&(De=!1),Re&&(Me=!0),Ve&&(ke=A({},[].concat(te(H))),we=[],!0===Ve.html&&(A(ke,O),A(we,z)),!0===Ve.svg&&(A(ke,P),A(we,K),A(we,j)),!0===Ve.svgFilters&&(A(ke,F),A(we,K),A(we,j)),!0===Ve.mathMl&&(A(ke,W),A(we,U),A(we,j))),e.ADD_TAGS&&(ke===Ce&&(ke=M(ke)),A(ke,e.ADD_TAGS)),e.ADD_ATTR&&(we===Se&&(we=M(we)),A(we,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&A(je,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(He===ze&&(He=M(He)),A(He,e.FORBID_CONTENTS)),Be&&(ke["#text"]=!0),Te&&A(ke,["html","head","body"]),ke.table&&(A(ke,["tbody"]),delete Le.tbody),v&&v(e),Xe=e)},nt=A({},["mi","mo","mn","ms","mtext"]),it=A({},["foreignobject","desc","title","annotation-xml"]),rt=A({},P);A(rt,F),A(rt,B);var ot=A({},W);A(ot,V);var st=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var n=S(e.tagName),i=S(t.tagName);if(e.namespaceURI===Qe)return t.namespaceURI===Ye?"svg"===n:t.namespaceURI===Ge?"svg"===n&&("annotation-xml"===i||nt[i]):Boolean(rt[n]);if(e.namespaceURI===Ge)return t.namespaceURI===Ye?"math"===n:t.namespaceURI===Qe?"math"===n&&it[i]:Boolean(ot[n]);if(e.namespaceURI===Ye){if(t.namespaceURI===Qe&&!it[i])return!1;if(t.namespaceURI===Ge&&!nt[i])return!1;var r=A({},["title","style","font","a","script"]);return!ot[n]&&(r[n]||!rt[n])}return!1},at=function(e){w(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(_t){try{e.outerHTML=oe}catch(_t){e.remove()}}},lt=function(e,n){try{w(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(_t){w(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!we[e])if(Me||Re)try{at(n)}catch(_t){}else try{n.setAttribute(e,"")}catch(_t){}},ut=function(e){var t=void 0,n=void 0;if(Ae)e=""+e;else{var r=L(e,/^[\r\n\t ]+/);n=r&&r[0]}var o=Z?Z.createHTML(e):e;if($e===Ye)try{t=(new f).parseFromString(o,"text/html")}catch(_t){}if(!t||!t.documentElement){t=ae.createDocument($e,"template",null);try{t.documentElement.innerHTML=Je?"":o}catch(_t){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),$e===Ye?ce.call(t,Te?"html":"body")[0]:Te?t.documentElement:s},ct=function(e){return le.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},dt=function(e){return!(e instanceof d||e instanceof h)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof c&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},ht=function(e){return"object"===("undefined"===typeof s?"undefined":ee(s))?e instanceof s:e&&"object"===("undefined"===typeof e?"undefined":ee(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},ft=function(e,n,i){fe[e]&&k(fe[e],(function(e){e.call(t,n,i,Xe)}))},gt=function(e){var n=void 0;if(ft("beforeSanitizeElements",e,null),dt(e))return at(e),!0;if(L(e.nodeName,/[\u0080-\uFFFF]/))return at(e),!0;var i=S(e.nodeName);if(ft("uponSanitizeElement",e,{tagName:i,allowedTags:ke}),!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return at(e),!0;if("select"===i&&E(/