6 lines
2.1 MiB
6 lines
2.1 MiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3adcb268"],{"00a3":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u});var i=n("11f7"),o=n("e757"),r=n("5d28"),s=n("a666");function a(e,t){var n=new r["b"](t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}var u=function(){function e(){this.hooks=new s["b"],this.mouseMoveEventMerger=null,this.mouseMoveCallback=null,this.onStopCallback=null}return e.prototype.dispose=function(){this.stopMonitoring(!1),this.hooks.dispose()},e.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks.clear(),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var t=this.onStopCallback;this.onStopCallback=null,e&&t&&t()}},e.prototype.isMonitoring=function(){return!!this.mouseMoveEventMerger},e.prototype.startMonitoring=function(e,t,n){var s=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var a=o["a"].getSameOriginWindowChain(),u=0,l=a;u<l.length;u++){var c=l[u];this.hooks.add(i["j"](c.window.document,"mousemove",function(e){return s.mouseMoveCallback(e)},function(e,t){return s.mouseMoveEventMerger(e,t)})),this.hooks.add(i["h"](c.window.document,"mouseup",function(e){return s.stopMonitoring(!0)}))}if(o["a"].hasDifferentOriginAncestor()){var d=a[a.length-1];this.hooks.add(i["h"](d.window.document,"mouseout",function(e){var t=new r["b"](e);"html"===t.target.tagName.toLowerCase()&&s.stopMonitoring(!0)})),this.hooks.add(i["h"](d.window.document,"mouseover",function(e){var t=new r["b"](e);"html"===t.target.tagName.toLowerCase()&&s.stopMonitoring(!0)})),this.hooks.add(i["h"](d.window.document.body,"mouseleave",function(e){s.stopMonitoring(!0)}))}}},e}()},"01b0":function(e,t,n){},"0210":function(e,t,n){"use strict";n.r(t),n.d(t,"GotoLineEntry",function(){return p}),n.d(t,"GotoLineAction",function(){return f});n("0bda");var i=n("3742"),o=n("469c"),r=n("b055"),s=n("b2cc"),a=n("7061"),u=n("6a89"),l=n("c101"),c=n("af33"),d=n("03d9"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(e){function t(t,n,i){var o=e.call(this)||this;return o.editor=n,o.decorator=i,o.parseResult=o.parseInput(t),o}return h(t,e),t.prototype.parseInput=function(e){var t,n,o=e.split(",").map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)});if(t=0===o.length?new a["a"](-1,-1):1===o.length?new a["a"](o[0],1):new a["a"](o[0],o[1]),Object(r["a"])(this.editor))n=this.editor.getModel();else{var s=this.editor.getModel();n=s?s.modified:null}var u,l=!!n&&n.validatePosition(t).equals(t);return u=l?t.column&&t.column>1?i["r"](d["b"].gotoLineLabelValidLineAndColumn,t.lineNumber,t.column):i["r"](d["b"].gotoLineLabelValidLine,t.lineNumber):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?i["r"](d["b"].gotoLineLabelEmptyWithLineLimit,n?n.getLineCount():0):i["r"](d["b"].gotoLineLabelEmptyWithLineAndColumnLimit,n?n.getLineMaxColumn(t.lineNumber):0),{position:t,isValid:l,label:u}},t.prototype.getLabel=function(){return this.parseResult.label},t.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return i["r"](d["b"].gotoLineAriaLabel,t,this.parseResult.label)},t.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},t.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},t.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return new u["a"](this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},t}(o["a"]),f=function(e){function t(){return e.call(this,d["b"].gotoLineActionInput,{id:"editor.action.gotoLine",label:d["b"].gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:l["a"].focus,primary:2085,mac:{primary:293},weight:100}})||this}return h(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new o["c"]([new p(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(c["a"]);Object(s["f"])(f)},"03d9":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return a}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return l}),n.d(t,"f",function(){return c});var i,o,r,s,a,u,l,c,d=n("dff7");(function(e){e.noSelection=d["a"]("noSelection","No selection"),e.singleSelectionRange=d["a"]("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=d["a"]("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=d["a"]("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=d["a"]("multiSelection","{0} selections"),e.emergencyConfOn=d["a"]("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=d["a"]("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=d["a"]("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=d["a"]("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=d["a"]("readonlyEditor"," in a read-only code editor"),e.editableEditor=d["a"]("editableEditor"," in a code editor"),e.changeConfigToOnMac=d["a"]("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=d["a"]("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=d["a"]("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=d["a"]("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=d["a"]("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=d["a"]("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=d["a"]("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=d["a"]("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=d["a"]("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=d["a"]("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=d["a"]("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=d["a"]("showAccessibilityHelpAction","Show Accessibility Help")})(i||(i={})),function(e){e.inspectTokensAction=d["a"]("inspectTokens","Developer: Inspect Tokens")}(o||(o={})),function(e){e.gotoLineLabelValidLineAndColumn=d["a"]("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),e.gotoLineLabelValidLine=d["a"]("gotoLineLabelValidLine","Go to line {0}"),e.gotoLineLabelEmptyWithLineLimit=d["a"]("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),e.gotoLineLabelEmptyWithLineAndColumnLimit=d["a"]("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),e.gotoLineAriaLabel=d["a"]("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),e.gotoLineActionInput=d["a"]("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),e.gotoLineActionLabel=d["a"]("gotoLineActionLabel","Go to Line...")}(r||(r={})),function(e){e.ariaLabelEntryWithKey=d["a"]("ariaLabelEntryWithKey","{0}, {1}, commands"),e.ariaLabelEntry=d["a"]("ariaLabelEntry","{0}, commands"),e.quickCommandActionInput=d["a"]("quickCommandActionInput","Type the name of an action you want to execute"),e.quickCommandActionLabel=d["a"]("quickCommandActionLabel","Command Palette")}(s||(s={})),function(e){e.entryAriaLabel=d["a"]("entryAriaLabel","{0}, symbols"),e.quickOutlineActionInput=d["a"]("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),e.quickOutlineActionLabel=d["a"]("quickOutlineActionLabel","Go to Symbol..."),e._symbols_=d["a"]("symbols","symbols ({0})"),e._modules_=d["a"]("modules","modules ({0})"),e._class_=d["a"]("class","classes ({0})"),e._interface_=d["a"]("interface","interfaces ({0})"),e._method_=d["a"]("method","methods ({0})"),e._function_=d["a"]("function","functions ({0})"),e._property_=d["a"]("property","properties ({0})"),e._variable_=d["a"]("variable","variables ({0})"),e._variable2_=d["a"]("variable2","variables ({0})"),e._constructor_=d["a"]("_constructor","constructors ({0})"),e._call_=d["a"]("call","calls ({0})")}(a||(a={})),function(e){e.editorViewAccessibleLabel=d["a"]("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessageIE=d["a"]("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),e.accessibilityHelpMessage=d["a"]("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(u||(u={})),function(e){e.toggleHighContrast=d["a"]("toggleHighContrast","Toggle High Contrast Theme")}(l||(l={})),function(e){e.bulkEditServiceSummary=d["a"]("bulkEditServiceSummary","Made {0} edits in {1} files")}(c||(c={}))},"03e8":function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return c});var i,o=n("0a0f"),r=n("308f"),s=n("a666"),a=n("ef8e"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=Object(o["c"])("storageService");(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(i||(i={}));var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._serviceBrand=null,t._onDidChangeStorage=t._register(new r["a"]),t.onDidChangeStorage=t._onDidChangeStorage.event,t.onWillSaveState=r["b"].None,t.globalCache=new Map,t.workspaceCache=new Map,t}return u(t,e),t.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},t.prototype.get=function(e,t,n){var i=this.getCache(t).get(e);return Object(a["k"])(i)?n:i},t.prototype.getBoolean=function(e,t,n){var i=this.getCache(t).get(e);return Object(a["k"])(i)?n:"true"===i},t.prototype.store=function(e,t,n){if(Object(a["k"])(t))return this.remove(e,n);var i=String(t),o=this.getCache(n).get(e);return o===i?Promise.resolve():(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e}),Promise.resolve())},t.prototype.remove=function(e,t){var n=this.getCache(t).delete(e);return n?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()},t}(s["a"])},"041a":function(e,t,n){"use strict";n.d(t,"a",function(){return p});n("c4d7");var i=n("0f70"),o=n("a666"),r=n("308f"),s=n("30db"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function u(e,t){return!!e[t]}var l=function(){function e(e,t){this.target=e.target,this.hasTriggerModifier=u(e.event,t.triggerModifier),this.hasSideBySideModifier=u(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=i["j"]||e.event.detail<=1}return e}(),c=function(){function e(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=u(e,t.triggerModifier)}return e}(),d=function(){function e(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}return e.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},e}();function h(e){return"altKey"===e?s["d"]?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey"):s["d"]?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}var p=function(e){function t(t){var n=e.call(this)||this;return n._onMouseMoveOrRelevantKeyDown=n._register(new r["a"]),n.onMouseMoveOrRelevantKeyDown=n._onMouseMoveOrRelevantKeyDown.event,n._onExecute=n._register(new r["a"]),n.onExecute=n._onExecute.event,n._onCancel=n._register(new r["a"]),n.onCancel=n._onCancel.event,n._editor=t,n._opts=h(n._editor.getConfiguration().multiCursorModifier),n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._register(n._editor.onDidChangeConfiguration(function(e){if(e.multiCursorModifier){var t=h(n._editor.getConfiguration().multiCursorModifier);if(n._opts.equals(t))return;n._opts=t,n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._onCancel.fire()}})),n._register(n._editor.onMouseMove(function(e){return n.onEditorMouseMove(new l(e,n._opts))})),n._register(n._editor.onMouseDown(function(e){return n.onEditorMouseDown(new l(e,n._opts))})),n._register(n._editor.onMouseUp(function(e){return n.onEditorMouseUp(new l(e,n._opts))})),n._register(n._editor.onKeyDown(function(e){return n.onEditorKeyDown(new c(e,n._opts))})),n._register(n._editor.onKeyUp(function(e){return n.onEditorKeyUp(new c(e,n._opts))})),n._register(n._editor.onMouseDrag(function(){return n.resetHandler()})),n._register(n._editor.onDidChangeCursorSelection(function(e){return n.onDidChangeCursorSelection(e)})),n._register(n._editor.onDidChangeModel(function(e){return n.resetHandler()})),n._register(n._editor.onDidChangeModelContent(function(){return n.resetHandler()})),n._register(n._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&n.resetHandler()})),n}return a(t,e),t.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},t.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},t.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},t.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},t.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},t.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},t.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},t}(o["a"])},"045b":function(e,t,n){"use strict";function i(e,t){var n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i),s=i;while(s+1<n&&e.getLanguageId(s+1)===r)s++;var a=i;while(a>0&&e.getLanguageId(a-1)===r)a--;return new o(e,r,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var o=function(){function e(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r}return e.prototype.getLineContent=function(){var e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function r(e){return 0!==(7&e)}},"0632":function(e,t,n){},"0829":function(e,t,n){},"0876":function(e,t,n){},"0910":function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return C});var i=n("dff7"),o=n("308f"),r=n("89cd"),s=n("ef8e"),a=n("3742"),u=n("dd1b"),l={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},m="vscode://schemas/settings/editor",v=r["a"].as(u["a"].JSONContribution),_=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new o["a"],this._onDidUpdateConfiguration=new o["a"],this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:i["a"]("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowsTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),v.registerSchema(m,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var i=[];e.forEach(function(e){i.push.apply(i,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e),n.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,t,n,i){void 0===t&&(t=!0),void 0===n&&(n=3),void 0===i&&(i=!1),n=s["k"](e.scope)?n:e.scope,i=e.overridable||i;var o=[],r=e.properties;if(r)for(var a in r){var u=void 0;if(t&&(u=O(a)))console.warn(u),delete r[a];else{var l=r[a],c=l.default;s["j"](c)&&(l.default=S(l.type)),i&&(l.overridable=!0),C.test(a)?l.scope=void 0:l.scope=s["k"](l.scope)?n:l.scope,!r[a].hasOwnProperty("included")||r[a].included?(this.configurationProperties[a]=r[a],o.push(a)):(this.excludedConfigurationProperties[a]=r[a],delete r[a])}}var d=e.allOf;if(d)for(var h=0,p=d;h<p.length;h++){var f=p[h];o.push.apply(o,this.validateAndRegisterProperties(f,t,n,i))}return o},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.registerJSONConfiguration=function(e){function t(e){var n=e.properties;if(n)for(var i in n)switch(c.properties[i]=n[i],n[i].scope){case 1:d.properties[i]=n[i];break;case 2:h.properties[i]=n[i];break;case 5:p.properties[i]=n[i];break;case 3:f.properties[i]=n[i];break;case 4:g.properties[i]=n[i];break}var o=e.allOf;o&&o.forEach(t)}t(e)},e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){e.id!==b&&(this.update(e),v.registerSchema(m,this.editorConfigurationSchema))},e.prototype.updateOverridePropertyPatternKey=function(){var e=c.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:i["a"]("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:"Unknown Identifier. Use language identifiers",$ref:m}),delete c.patternProperties[this.overridePropertyPattern],delete d.patternProperties[this.overridePropertyPattern],delete h.patternProperties[this.overridePropertyPattern],delete p.patternProperties[this.overridePropertyPattern],delete f.patternProperties[this.overridePropertyPattern],delete g.patternProperties[this.overridePropertyPattern],this.computeOverridePropertyPattern(),c.patternProperties[this.overridePropertyPattern]=e,d.patternProperties[this.overridePropertyPattern]=e,h.patternProperties[this.overridePropertyPattern]=e,p.patternProperties[this.overridePropertyPattern]=e,f.patternProperties[this.overridePropertyPattern]=e,g.patternProperties[this.overridePropertyPattern]=e,this._onDidSchemaChange.fire()},e.prototype.update=function(e){var t=this,n=e.properties;if(n)for(var i in n)n[i].overridable&&(this.editorConfigurationSchema.properties[i]=this.getConfigurationProperties()[i]);var o=e.allOf;o&&o.forEach(function(e){return t.update(e)})},e.prototype.computeOverridePropertyPattern=function(){this.overridePropertyPattern=this.overrideIdentifiers.length?w.replace("${0}",this.overrideIdentifiers.map(function(e){return a["k"](e,!1).source}).join("|")):y},e}(),b="override",y="\\[.*\\]$",w="\\[(${0})\\]$",C=new RegExp(y);function S(e){var t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var L=new _;function O(e){return C.test(e)?i["a"]("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==L.getConfigurationProperties()[e]?i["a"]("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null}r["a"].add(l.Configuration,L)},"0a0f":function(e,t,n){"use strict";var i;n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return a}),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(i||(i={}));var o=s("instantiationService");function r(e,t,n,o){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:o}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:o}],t[i.DI_TARGET]=t)}function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);var t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");r(t,e,i,!1)};return t.toString=function(){return e},i.serviceIds.set(e,t),t}function a(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");r(e,t,i,!0)}}},"0a33":function(e,t,n){},"0a89":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var i=n("3742"),o=n("7061"),r=n("6a89"),s=function(){function e(e,t,n,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=o}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=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){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){var i=0,o=-1;while(-1!==(o=t.indexOf("\n",o+1)))i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,o){if(!e)return{text:"",replaceCharCnt:0};var r=e.value,s=e.selectionStart,a=e.selectionEnd,u=t.value,l=t.selectionStart,c=t.selectionEnd;o&&r.length>0&&s===a&&l===c&&!i["J"](u,r)&&i["m"](u,r)&&(s=0,a=0);var d=r.substring(a),h=u.substring(c),p=i["c"](d,h);u=u.substring(0,u.length-p),r=r.substring(0,r.length-p);var f=r.substring(0,s),g=u.substring(0,l),m=i["b"](f,g);if(u=u.substring(m),r=r.substring(m),l-=m,s-=m,c-=m,a-=m,n&&l===c&&r.length>0){var v=null;if(l===u.length?i["J"](u,r)&&(v=u.substring(r.length)):i["m"](u,r)&&(v=u.substring(0,u.length-r.length)),null!==v&&v.length>0&&(/\uFE0F/.test(v)||i["f"](v)))return{text:v,replaceCharCnt:0}}if(l===c){if(r===u&&0===s&&a===r.length&&l===u.length&&-1===u.indexOf("\n")&&i["g"](u))return{text:"",replaceCharCnt:0};var _=f.length-m;return{text:u,replaceCharCnt:_}}var b=a-s;return{text:u,replaceCharCnt:b}},e.EMPTY=new e("",0,0,null,null),e}(),a=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE,i=n+1,o=n+e._LINES_PER_PAGE;return new r["a"](i,1,o+1,1)},e.fromEditorSelection=function(t,n,i,a){var u,l=e._getPageOfLine(i.startLineNumber),c=e._getRangeForPage(l),d=e._getPageOfLine(i.endLineNumber),h=e._getRangeForPage(d),p=c.intersectRanges(new r["a"](1,1,i.startLineNumber,i.startColumn)),f=n.getValueInRange(p,1),g=n.getLineCount(),m=n.getLineMaxColumn(g),v=h.intersectRanges(new r["a"](i.endLineNumber,i.endColumn,g,m)),_=n.getValueInRange(v,1);if(l===d||l+1===d)u=n.getValueInRange(i,1);else{var b=c.intersectRanges(i),y=h.intersectRanges(i);u=n.getValueInRange(b,1)+String.fromCharCode(8230)+n.getValueInRange(y,1)}if(a){var w=500;f.length>w&&(f=f.substring(f.length-w,f.length)),_.length>w&&(_=_.substring(0,w)),u.length>2*w&&(u=u.substring(0,w)+String.fromCharCode(8230)+u.substring(u.length-w,u.length))}return new s(f+u+_,f.length,f.length+u.length,new o["a"](i.startLineNumber,i.startColumn),new o["a"](i.endLineNumber,i.endColumn))},e._LINES_PER_PAGE=10,e}()},"0b11":function(e,t,n){"use strict";n.r(t);var i=n("b2cc"),o=n("0b54");Object(i["h"])(o["f"]),Object(i["f"])(o["e"]),Object(i["f"])(o["g"]),Object(i["f"])(o["h"]),Object(i["f"])(o["d"]),Object(i["f"])(o["a"]),Object(i["f"])(o["c"]),Object(i["g"])(new o["b"])},"0b54":function(e,t,n){"use strict";var i,o=n("a666"),r=n("3742"),s=n("b2cc"),a=n("c7f5"),u=n("c101"),l=n("fdcc"),c=n("351f"),d=n("533b"),h=n("6dec"),p=n("11f7"),f=n("f070"),g=n("7061"),m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},_=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},b=function(e){function t(t,n,i){var r=e.call(this)||this;return r._editor=t,r._contextMenuService=n,r._delegate=i,r._showingActions=r._register(new o["d"]),r._visible=!1,r}return m(t,e),t.prototype.show=function(e,t){return v(this,void 0,void 0,function(){var n,i=this;return _(this,function(o){return e.actions.length?this._editor.getDomNode()?(this._visible=!0,n=e.actions.map(function(e){return i.codeActionToAction(e)}),this._showingActions.value=e,this._contextMenuService.showContextMenu({getAnchor:function(){return g["a"].isIPosition(t)&&(t=i._toCoords(t)),t||{x:0,y:0}},getActions:function(){return n},onHide:function(){i._visible=!1,i._editor.focus()},autoSelectFirstItem:!0}),[2]):(this._visible=!1,[2,Promise.reject(Object(l["a"])())]):(this._visible=!1,[2])})})},t.prototype.codeActionToAction=function(e){var t=this,n=e.command?e.command.id:e.title,i=e.title;return new f["a"](n,i,void 0,!0,function(){return t._delegate.onSelectCodeAction(e)})},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),t.prototype._toCoords=function(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(e),n=Object(p["x"])(this._editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height;return{x:i,y:o}},t}(o["a"]),y=n("00a3"),w=n("308f"),C=(n("30d5"),n("b57f")),S=n("dff7"),L=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},x=function(e,t){return function(n,i){t(n,i,e)}};(function(e){e.Hidden=new(function(){function e(){this.type=0}return e}());var t=function(){function e(e,t,n){this.actions=e,this.editorPosition=t,this.widgetPosition=n,this.type=1}return e}();e.Showing=t})(i||(i={}));var N,D=function(e){function t(t,n,o){var r=e.call(this)||this;return r._editor=t,r._quickFixActionId=n,r._keybindingService=o,r._onClick=r._register(new w["a"]),r.onClick=r._onClick.event,r._state=i.Hidden,r._domNode=document.createElement("div"),r._domNode.className="lightbulb-glyph",r._editor.addContentWidget(r),r._register(r._editor.onDidChangeModelContent(function(e){var t=r._editor.getModel();(1!==r._state.type||!t||r._state.editorPosition.lineNumber>=t.getLineCount())&&r.hide()})),r._register(p["k"](r._domNode,"mousedown",function(e){if(1===r._state.type){r._editor.focus(),e.preventDefault();var t=p["x"](r._domNode),n=t.top,i=t.height,o=r._editor.getConfiguration().lineHeight,s=Math.floor(o/3);null!==r._state.widgetPosition.position&&r._state.widgetPosition.position.lineNumber<r._state.editorPosition.lineNumber&&(s+=o),r._onClick.fire({x:e.posx,y:n+i+s,actions:r._state.actions})}})),r._register(p["h"](r._domNode,"mouseenter",function(e){if(1===(1&e.buttons)){r.hide();var t=new y["a"];t.startMonitoring(y["b"],function(){},function(){t.dispose()})}})),r._register(r._editor.onDidChangeConfiguration(function(e){e.contribInfo&&!r._editor.getConfiguration().contribInfo.lightbulbEnabled&&r.hide()})),r._updateLightBulbTitle(),r._register(r._keybindingService.onDidUpdateKeybindings(r._updateLightBulbTitle,r)),r}return L(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._editor.removeContentWidget(this)},t.prototype.getId=function(){return"LightBulbWidget"},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return 1===this._state.type?this._state.widgetPosition:null},t.prototype.update=function(e,n){var o=this;if(e.actions.length<=0)return this.hide();var r=this._editor.getConfiguration();if(!r.contribInfo.lightbulbEnabled)return this.hide();var s=n.lineNumber,a=n.column,u=this._editor.getModel();if(!u)return this.hide();var l=u.getOptions().tabSize,c=u.getLineContent(s),d=C["b"].computeIndentLevel(c,l),h=r.fontInfo.spaceWidth*d>22,f=function(e){return e>2&&o._editor.getTopForLineNumber(e)===o._editor.getTopForLineNumber(e-1)},g=s;if(!h)if(s>1&&!f(s-1))g-=1;else if(f(s+1)){if(a*r.fontInfo.spaceWidth<22)return this.hide()}else g+=1;this._state=new i.Showing(e,n,{position:{lineNumber:g,column:1},preference:t._posPref}),p["R"](this._domNode,"autofixable",e.hasAutoFix),this._editor.layoutContentWidget(this)},Object.defineProperty(t.prototype,"title",{set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),t.prototype.hide=function(){this._state=i.Hidden,this._editor.layoutContentWidget(this)},t.prototype._updateLightBulbTitle=function(){var e,t=this._keybindingService.lookupKeybinding(this._quickFixActionId);e=t?S["a"]("quickFixWithKb","Show Fixes ({0})",t.getLabel()):S["a"]("quickFix","Show Fixes"),this.title=e},t._posPref=[0],t=O([x(2,h["a"])],t),t}(o["a"]),k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),I=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},E=function(e,t){return function(n,i){t(n,i,e)}},M=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},T=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},P=function(e){function t(t,n,i,r,s){var a=e.call(this)||this;return a._editor=t,a.delegate=i,a._activeCodeActions=a._register(new o["d"]),a._codeActionWidget=a._register(new b(a._editor,r,{onSelectCodeAction:function(e){return M(a,void 0,void 0,function(){return T(this,function(t){return this.delegate.applyCodeAction(e,!0),[2]})})}})),a._lightBulbWidget=a._register(new D(a._editor,n,s)),a._register(a._lightBulbWidget.onClick(a._handleLightBulbSelect,a)),a}return k(t,e),t.prototype.update=function(e){return M(this,void 0,void 0,function(){var t,n;return T(this,function(i){switch(i.label){case 0:if(1!==e.type)return this._lightBulbWidget.hide(),[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,e.actions];case 2:return t=i.sent(),[3,4];case 3:return n=i.sent(),Object(l["e"])(n),[2];case 4:if(this._lightBulbWidget.update(t,e.position),!t.actions.length&&e.trigger.context)return c["a"].get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=t,[2];if("manual"!==e.trigger.type)return[3,10];if(!e.trigger.filter||!e.trigger.filter.kind)return[3,9];if(!(t.actions.length>0))return[3,9];if(1!==e.trigger.autoApply&&(0!==e.trigger.autoApply||1!==t.actions.length))return[3,9];i.label=5;case 5:return i.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(t.actions[0],!1)];case 6:return i.sent(),[3,8];case 7:return t.dispose(),[7];case 8:return[2];case 9:return this._activeCodeActions.value=t,this._codeActionWidget.show(t,e.position),[3,11];case 10:this._codeActionWidget.isVisible?t.dispose():this._activeCodeActions.value=t,i.label=11;case 11:return[2]}})})},t.prototype.showCodeActionList=function(e,t){return M(this,void 0,void 0,function(){return T(this,function(n){return this._codeActionWidget.show(e,t),[2]})})},t.prototype._handleLightBulbSelect=function(e){this._codeActionWidget.show(e.actions,e)},t=I([E(3,d["a"]),E(4,h["a"])],t),t}(o["a"]),R=n("9e74"),A=n("4fc3"),F=n("b400"),j=n("b539"),W=n("5fe7"),V=n("6a89"),B=n("b707"),H=n("8495"),z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),U=new A["d"]("supportedCodeAction",""),K=function(e){function t(t,n,i,o){void 0===o&&(o=250);var r=e.call(this)||this;return r._editor=t,r._markerService=n,r._signalChange=i,r._delay=o,r._autoTriggerTimer=r._register(new W["e"]),r._register(r._markerService.onMarkerChanged(function(e){return r._onMarkerChanges(e)})),r._register(r._editor.onDidChangeCursorPosition(function(){return r._onCursorChange()})),r}return z(t,e),t.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},t.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some(function(e){return e.toString()===n.uri.toString()})&&this._autoTriggerTimer.cancelAndSet(function(){t.trigger({type:"auto"})},this._delay)},t.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet(function(){e.trigger({type:"auto"})},this._delay)},t.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});n<i.length;n++){var o=i[n];if(V["a"].intersectRanges(o,e))return V["a"].lift(o)}},t.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&"auto"===e.type){var i=n.getPosition(),o=i.lineNumber,r=i.column,s=t.getLineContent(o);if(0===s.length)return;if(1===r){if(/\s/.test(s[0]))return}else if(r===t.getLineMaxColumn(o)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[r-2])&&/\s/.test(s[r-1]))return}return n}},t.prototype._createEventAndSignalChange=function(e,t){var n=this._editor.getModel();if(t&&n){var i=this._getRangeOfMarker(t),o=i?i.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:o};return this._signalChange(r),r}this._signalChange(void 0)},t}(o["a"]);(function(e){e.Empty=new(function(){function e(){this.type=0}return e}());var t=function(){function e(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=i,this.type=1}return e}();e.Triggered=t})(N||(N={}));var q=function(e){function t(t,n,i,r){var s=e.call(this)||this;return s._editor=t,s._markerService=n,s._progressService=r,s._codeActionOracle=s._register(new o["d"]),s._state=N.Empty,s._onDidChangeState=s._register(new w["a"]),s.onDidChangeState=s._onDidChangeState.event,s._supportedCodeActions=U.bindTo(i),s._register(s._editor.onDidChangeModel(function(){return s._update()})),s._register(s._editor.onDidChangeModelLanguage(function(){return s._update()})),s._register(B["a"].onDidChange(function(){return s._update()})),s._update(),s}return z(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.setState(N.Empty,!0)},t.prototype._update=function(){var e=this;this._codeActionOracle.value=void 0,this.setState(N.Empty);var t=this._editor.getModel();if(t&&B["a"].has(t)&&!this._editor.getConfiguration().readOnly){for(var n=[],i=0,o=B["a"].all(t);i<o.length;i++){var r=o[i];Array.isArray(r.providedCodeActionKinds)&&n.push.apply(n,r.providedCodeActionKinds)}this._supportedCodeActions.set(n.join(" ")),this._codeActionOracle.value=new K(this._editor,this._markerService,function(n){if(n){var i=Object(W["f"])(function(e){return Object(H["a"])(t,n.selection,n.trigger,e)});e._progressService&&"manual"===n.trigger.type&&e._progressService.showWhile(i,250),e.setState(new N.Triggered(n.trigger,n.selection,n.position,i))}else e.setState(N.Empty)},void 0),this._codeActionOracle.value.trigger({type:"auto"})}else this._supportedCodeActions.reset()},t.prototype.trigger=function(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)},t.prototype.setState=function(e,t){e!==this._state&&(1===this._state.type&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))},t}(o["a"]),G=n("a65a");n.d(t,"f",function(){return ee}),n.d(t,"e",function(){return ie}),n.d(t,"b",function(){return re}),n.d(t,"g",function(){return se}),n.d(t,"h",function(){return ae}),n.d(t,"d",function(){return ue}),n.d(t,"c",function(){return le}),n.d(t,"a",function(){return ce});var Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},X=function(e,t){return function(n,i){t(n,i,e)}},$=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},Q=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function J(e){return A["a"].regex(U.keys()[0],new RegExp("(\\s|^)"+Object(r["p"])(e.value)+"\\b"))}var ee=function(e){function t(t,n,i,o,r,s,a,u){var l=e.call(this)||this;return l._commandService=a,l._bulkEditService=u,l._editor=t,l._model=l._register(new q(l._editor,n,i,o)),l._register(l._model.onDidChangeState(function(e){return l.update(e)})),l._ui=l._register(new P(t,ie.Id,{applyCodeAction:function(e,t){return $(l,void 0,void 0,function(){return Q(this,function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),[4,this._applyCodeAction(e)];case 1:return n.sent(),[3,3];case 2:return t&&this._trigger({type:"auto",filter:{}}),[7];case 3:return[2]}})})}},r,s)),l}return Z(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.update=function(e){this._ui.update(e)},t.prototype.showCodeActions=function(e,t){return this._ui.showCodeActionList(e,t)},t.prototype.getId=function(){return t.ID},t.prototype.manualTriggerAtCurrentPosition=function(e,t,n){if(this._editor.hasModel()){c["a"].get(this._editor).closeMessage();var i=this._editor.getPosition();this._trigger({type:"manual",filter:t,autoApply:n,context:{notAvailableMessage:e,position:i}})}},t.prototype._trigger=function(e){return this._model.trigger(e)},t.prototype._applyCodeAction=function(e){return te(e,this._bulkEditService,this._commandService,this._editor)},t.ID="editor.contrib.quickFixController",t=Y([X(1,F["b"]),X(2,A["c"]),X(3,j["a"]),X(4,d["a"]),X(5,h["a"]),X(6,R["b"]),X(7,a["a"])],t),t}(o["a"]);function te(e,t,n,i){return $(this,void 0,void 0,function(){return Q(this,function(o){switch(o.label){case 0:return e.edit?[4,t.apply(e.edit,{editor:i})]:[3,2];case 1:o.sent(),o.label=2;case 2:return e.command?[4,n.executeCommand.apply(n,[e.command.id].concat(e.command.arguments||[]))]:[3,4];case 3:o.sent(),o.label=4;case 4:return[2]}})})}function ne(e,t,n,i){if(e.hasModel()){var o=ee.get(e);o&&o.manualTriggerAtCurrentPosition(t,n,i)}}var ie=function(e){function t(){return e.call(this,{id:t.Id,label:S["a"]("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:A["a"].and(u["a"].writable,u["a"].hasCodeActionsProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:2132,weight:100}})||this}return Z(t,e),t.prototype.run=function(e,t){return ne(t,S["a"]("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},t.Id="editor.action.quickFix",t}(s["b"]),oe=function(){function e(e,t,n){this.kind=e,this.apply=t,this.preferred=n}return e.fromUser=function(t,n){return t&&"object"===typeof t?new e(e.getKindFromUser(t,n.kind),e.getApplyFromUser(t,n.apply),e.getPreferredUser(t)):new e(n.kind,n.apply,!1)},e.getApplyFromUser=function(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return 1;case"never":return 2;case"ifsingle":return 0;default:return t}},e.getKindFromUser=function(e,t){return"string"===typeof e.kind?new G["a"](e.kind):t},e.getPreferredUser=function(e){return"boolean"===typeof e.preferred&&e.preferred},e}(),re=function(e){function t(){return e.call(this,{id:t.Id,precondition:A["a"].and(u["a"].writable,u["a"].hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:{type:"object",required:["kind"],properties:{kind:{type:"string"},apply:{type:"string",default:"ifSingle",enum:["first","ifSingle","never"]}}}}]}})||this}return Z(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=oe.fromUser(n,{kind:G["a"].Empty,apply:0});return ne(t,S["a"]("editor.action.quickFix.noneMessage","No code actions available"),{kind:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.codeAction",t}(s["c"]),se=function(e){function t(){return e.call(this,{id:t.Id,label:S["a"]("refactor.label","Refactor..."),alias:"Refactor...",precondition:A["a"].and(u["a"].writable,u["a"].hasCodeActionsProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:3120,mac:{primary:1328},weight:100},menuOpts:{group:"1_modification",order:2,when:A["a"].and(u["a"].writable,J(G["a"].Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:{type:"object",properties:{kind:{type:"string"},apply:{type:"string",default:"never",enum:["first","ifSingle","never"]}}}}]}})||this}return Z(t,e),t.prototype.run=function(e,t,n){var i=oe.fromUser(n,{kind:G["a"].Refactor,apply:2});return ne(t,S["a"]("editor.action.refactor.noneMessage","No refactorings available"),{kind:G["a"].Refactor.contains(i.kind)?i.kind:G["a"].Empty,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.refactor",t}(s["b"]),ae=function(e){function t(){return e.call(this,{id:t.Id,label:S["a"]("source.label","Source Action..."),alias:"Source Action...",precondition:A["a"].and(u["a"].writable,u["a"].hasCodeActionsProvider),menuOpts:{group:"1_modification",order:2.1,when:A["a"].and(u["a"].writable,J(G["a"].Source))},description:{description:"Source Action...",args:[{name:"args",schema:{type:"object",properties:{kind:{type:"string"},apply:{type:"string",default:"never",enum:["first","ifSingle","never"]}}}}]}})||this}return Z(t,e),t.prototype.run=function(e,t,n){var i=oe.fromUser(n,{kind:G["a"].Source,apply:2});return ne(t,S["a"]("editor.action.source.noneMessage","No source actions available"),{kind:G["a"].Source.contains(i.kind)?i.kind:G["a"].Empty,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.sourceAction",t}(s["b"]),ue=function(e){function t(){return e.call(this,{id:t.Id,label:S["a"]("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:A["a"].and(u["a"].writable,J(G["a"].SourceOrganizeImports)),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1581,weight:100}})||this}return Z(t,e),t.prototype.run=function(e,t){return ne(t,S["a"]("editor.action.organize.noneMessage","No organize imports action available"),{kind:G["a"].SourceOrganizeImports,includeSourceActions:!0},0)},t.Id="editor.action.organizeImports",t}(s["b"]),le=function(e){function t(){return e.call(this,{id:t.Id,label:S["a"]("fixAll.label","Fix All"),alias:"Fix All",precondition:A["a"].and(u["a"].writable,J(G["a"].SourceFixAll))})||this}return Z(t,e),t.prototype.run=function(e,t){return ne(t,S["a"]("fixAll.noneMessage","No fix all action available"),{kind:G["a"].SourceFixAll,includeSourceActions:!0},0)},t.Id="editor.action.fixAll",t}(s["b"]),ce=function(e){function t(){return e.call(this,{id:t.Id,label:S["a"]("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:A["a"].and(u["a"].writable,J(G["a"].QuickFix)),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}return Z(t,e),t.prototype.run=function(e,t){return ne(t,S["a"]("editor.action.autoFix.noneMessage","No auto fixes available"),{kind:G["a"].QuickFix,onlyIncludePreferredActions:!0},0)},t.Id="editor.action.autoFix",t}(s["b"])},"0baa":function(e,t,n){},"0bda":function(e,t,n){},"0bfbc":function(e,t,n){"use strict";function i(e){var t,n=this,i=!1;return function(){return i?t:(i=!0,t=e.apply(n,arguments),t)}}n.d(t,"a",function(){return i})},"0d30":function(e,t,n){},"0f70":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"o",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"j",function(){return c}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"i",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"e",function(){return g}),n.d(t,"l",function(){return m}),n.d(t,"n",function(){return v}),n.d(t,"k",function(){return _}),n.d(t,"h",function(){return b}),n.d(t,"d",function(){return y});var i=n("308f"),o=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i["a"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n},e.INSTANCE=new e,e}();function r(){return o.INSTANCE.getZoomLevel()}function s(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function u(){return o.INSTANCE.getPixelRatio()}var l=navigator.userAgent,c=l.indexOf("Trident")>=0,d=l.indexOf("Edge/")>=0,h=c||d,p=l.indexOf("Firefox")>=0,f=l.indexOf("AppleWebKit")>=0,g=l.indexOf("Chrome")>=0,m=!g&&l.indexOf("Safari")>=0,v=!g&&!m&&f,_=l.indexOf("iPad")>=0,b=d&&l.indexOf("WebView/")>=0;function y(){if(c)return!1;if(d){var e=l.indexOf("Edge/"),t=parseInt(l.substring(e+5,l.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}},1080:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return g});var i=n("3742"),o=n("6a89"),r=function(){function e(e,t,n,i,o){this.languageIdentifier=e,this.open=t,this.close=n,this.forwardRegex=i,this.reversedRegex=o}return e}(),s=function(){function e(e,t){var n=this;this.brackets=t.map(function(t){return new r(e,t[0],t[1],u({open:t[0],close:t[1]}),l({open:t[0],close:t[1]}))}),this.forwardRegex=c(this.brackets),this.reversedRegex=d(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};var i=0;this.brackets.forEach(function(e){n.textIsBracket[e.open.toLowerCase()]=e,n.textIsBracket[e.close.toLowerCase()]=e,n.textIsOpenBracket[e.open.toLowerCase()]=!0,n.textIsOpenBracket[e.close.toLowerCase()]=!1,i=Math.max(i,e.open.length),i=Math.max(i,e.close.length)}),this.maxBracketLength=i}return e}();function a(e,t){var n={};return function(i){var o=e(i);return n.hasOwnProperty(o)||(n[o]=t(i)),n[o]}}var u=a(function(e){return e.open+";"+e.close},function(e){return p([e.open,e.close])}),l=a(function(e){return e.open+";"+e.close},function(e){return p([f(e.open),f(e.close)])}),c=a(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[];return e.forEach(function(e){t.push(e.open),t.push(e.close)}),p(t)}),d=a(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[];return e.forEach(function(e){t.push(f(e.open)),t.push(f(e.close))}),p(t)});function h(e){var t=/^[\w]+$/.test(e);return e=i["p"](e),t?"\\b"+e+"\\b":e}function p(e){var t="("+e.map(h).join(")|(")+")";return i["k"](t,!0)}var f=function(){function e(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}var t=null,n=null;return function(i){return t!==i&&(t=i,n=e(t)),n}}(),g=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=n.length-(r.index||0),a=r[0].length,u=i+s;return new o["a"](t,u-a+1,t,u+1)},e.findPrevBracketInToken=function(e,t,n,i,o){var r=f(n),s=r.substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,s,i)},e.findNextBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=r.index||0,a=r[0].length;if(0===a)return null;var u=i+s;return new o["a"](t,u+1,t,u+1+a)},e.findNextBracketInToken=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},e}()},"10f4":function(e,t,n){},1165:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c});var i,o,r=n("6d8e"),s=n("82c9"),a=n("0a0f"),u=n("4035"),l=Object(a["c"])("contextService");(function(e){function t(e){return e&&"object"===typeof e&&"string"===typeof e.id&&Array.isArray(e.folders)}e.isIWorkspace=t})(i||(i={})),function(e){function t(e){return e&&"object"===typeof e&&r["a"].isUri(e.uri)&&"string"===typeof e.name&&"function"===typeof e.toResource}e.isIWorkspaceFolder=t}(o||(o={}));(function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=u["c"].forPaths(),this.folders=t}Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.with({scheme:e.scheme,authority:e.authority,path:e.path}).toString())||null},e.prototype.updateFoldersMap=function(){this._foldersMap=u["c"].forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}},e.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}}})();var c=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}return e.prototype.toResource=function(e){return s["f"](this.uri,e)},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},e}()},"11f7":function(e,t,n){"use strict";n.d(t,"p",function(){return m}),n.d(t,"K",function(){return v}),n.d(t,"G",function(){return _}),n.d(t,"C",function(){return C}),n.d(t,"f",function(){return S}),n.d(t,"g",function(){return L}),n.d(t,"I",function(){return O}),n.d(t,"J",function(){return x}),n.d(t,"R",function(){return N}),n.d(t,"h",function(){return k}),n.d(t,"k",function(){return M}),n.d(t,"i",function(){return T}),n.d(t,"N",function(){return P}),n.d(t,"P",function(){return R}),n.d(t,"j",function(){return H}),n.d(t,"u",function(){return z}),n.d(t,"b",function(){return K}),n.d(t,"z",function(){return q}),n.d(t,"x",function(){return G}),n.d(t,"e",function(){return Z}),n.d(t,"B",function(){return Y}),n.d(t,"w",function(){return X}),n.d(t,"v",function(){return $}),n.d(t,"A",function(){return Q}),n.d(t,"E",function(){return J}),n.d(t,"t",function(){return ee}),n.d(t,"s",function(){return te}),n.d(t,"r",function(){return re}),n.d(t,"H",function(){return se}),n.d(t,"F",function(){return ae}),n.d(t,"d",function(){return ue}),n.d(t,"c",function(){return le}),n.d(t,"O",function(){return ce}),n.d(t,"M",function(){return de}),n.d(t,"S",function(){return pe}),n.d(t,"m",function(){return fe}),n.d(t,"a",function(){return _e}),n.d(t,"Q",function(){return be}),n.d(t,"D",function(){return ye}),n.d(t,"L",function(){return Ce}),n.d(t,"y",function(){return Se}),n.d(t,"q",function(){return Le}),n.d(t,"T",function(){return Oe}),n.d(t,"l",function(){return xe}),n.d(t,"o",function(){return Ne}),n.d(t,"n",function(){return De});var i=n("0f70"),o=n("e32d"),r=n("b835"),s=n("5d28"),a=n("5fe7"),u=n("fdcc"),l=n("308f"),c=n("a666"),d=n("30db"),h=n("e8e3"),p=n("b589"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(){return g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};function m(e){while(e.firstChild)e.removeChild(e.firstChild)}function v(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e){while(e){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}var b=new(function(){function e(){this._lastStart=-1,this._lastEnd=-1}return e.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var i=n.length,o=t.length;if(0!==o)if(i<o)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=i);var r,s=-1;while((s=n.indexOf(t,s+1))>=0){if(r=s+o,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return this._lastStart=s,void(this._lastEnd=r+1);if(s>0&&32===n.charCodeAt(s-1)&&r===i)return this._lastStart=s-1,void(this._lastEnd=r);if(0===s&&r===i)return this._lastStart=0,void(this._lastEnd=r)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n)})})},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},e.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n)})})},e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},e}()),y=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)},e.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n)})})},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n)})})},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),w=i["j"]?b:y,C=w.hasClass.bind(w),S=w.addClass.bind(w),L=w.addClasses.bind(w),O=w.removeClass.bind(w),x=w.removeClasses.bind(w),N=w.toggleClass.bind(w),D=function(){function e(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._useCapture=i||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)},e}();function k(e,t,n,i){return new D(e,t,n,i)}function I(e){return function(t){return e(new s["b"](t))}}function E(e){return function(t){return e(new r["a"](t))}}var M=function(e,t,n,i){var o=n;return"click"===t||"mousedown"===t?o=I(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=E(n)),k(e,t,o,i)};function T(e,t){return k(e,"mouseout",function(n){var i=n.relatedTarget||n.target;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)})}var P,R,A=null;function F(e){if(!A){var t=function(e){return setTimeout(function(){return e((new Date).getTime())},0)};A=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||t}return A.call(self,e)}var j=function(){function e(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){Object(u["e"])(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();(function(){var e=[],t=null,n=!1,i=!1,o=function(){n=!1,t=e,e=[],i=!0;while(t.length>0){t.sort(j.sort);var o=t.shift();o.execute()}i=!1};R=function(t,i){void 0===i&&(i=0);var r=new j(t,i);return e.push(r),n||(n=!0,F(o)),r},P=function(e,n){if(i){var o=new j(e,n);return t.push(o),o}return R(e,n)}})();var W=16,V=function(e,t){return t},B=function(e){function t(t,n,i,o,r){void 0===o&&(o=V),void 0===r&&(r=W);var s=e.call(this)||this,u=null,l=0,c=s._register(new a["e"]),d=function(){l=(new Date).getTime(),i(u),u=null};return s._register(k(t,n,function(e){u=o(u,e);var t=(new Date).getTime()-l;t>=r?(c.cancel(),d()):c.setIfNotSet(d,r-t)})),s}return f(t,e),t}(c["a"]);function H(e,t,n,i,o){return new B(e,t,n,i,o)}function z(e){return document.defaultView.getComputedStyle(e,null)}var U=function(){function e(){}return e.convertToPixels=function(e,t){return parseFloat(t)||0},e.getDimension=function(t,n,i){var o=z(t),r="0";return o&&(r=o.getPropertyValue?o.getPropertyValue(n):o.getAttribute(i)),e.convertToPixels(t,r)},e.getBorderLeftWidth=function(t){return e.getDimension(t,"border-left-width","borderLeftWidth")},e.getBorderRightWidth=function(t){return e.getDimension(t,"border-right-width","borderRightWidth")},e.getBorderTopWidth=function(t){return e.getDimension(t,"border-top-width","borderTopWidth")},e.getBorderBottomWidth=function(t){return e.getDimension(t,"border-bottom-width","borderBottomWidth")},e.getPaddingLeft=function(t){return e.getDimension(t,"padding-left","paddingLeft")},e.getPaddingRight=function(t){return e.getDimension(t,"padding-right","paddingRight")},e.getPaddingTop=function(t){return e.getDimension(t,"padding-top","paddingTop")},e.getPaddingBottom=function(t){return e.getDimension(t,"padding-bottom","paddingBottom")},e.getMarginLeft=function(t){return e.getDimension(t,"margin-left","marginLeft")},e.getMarginTop=function(t){return e.getDimension(t,"margin-top","marginTop")},e.getMarginRight=function(t){return e.getDimension(t,"margin-right","marginRight")},e.getMarginBottom=function(t){return e.getDimension(t,"margin-bottom","marginBottom")},e}(),K=function(){function e(e,t){this.width=e,this.height=t}return e}();function q(e){var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement){n-=e.scrollTop;var o=z(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=U.getBorderLeftWidth(e),n+=U.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function G(e){var t=e.getBoundingClientRect();return{left:t.left+Z.scrollX,top:t.top+Z.scrollY,width:t.width,height:t.height}}var Z=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"===typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"===typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}());function Y(e){var t=U.getMarginLeft(e)+U.getMarginRight(e);return e.offsetWidth+t}function X(e){var t=U.getBorderLeftWidth(e)+U.getBorderRightWidth(e),n=U.getPaddingLeft(e)+U.getPaddingRight(e);return e.offsetWidth-t-n}function $(e){var t=U.getBorderTopWidth(e)+U.getBorderBottomWidth(e),n=U.getPaddingTop(e)+U.getPaddingBottom(e);return e.offsetHeight-t-n}function Q(e){var t=U.getMarginTop(e)+U.getMarginBottom(e);return e.offsetHeight+t}function J(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function ee(e,t,n){while(e){if(C(e,t))return e;if(n)if("string"===typeof n){if(C(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function te(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}var ne=null;function ie(){return ne||(ne=te()),ne}function oe(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function re(e,t,n){void 0===n&&(n=ie()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function se(e,t){if(void 0===t&&(t=ie()),t){for(var n=oe(t),i=[],o=0;o<n.length;o++){var r=n[o];-1!==r.selectorText.indexOf(e)&&i.push(o)}for(o=i.length-1;o>=0;o--)t.sheet.deleteRule(i[o])}}function ae(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}var ue={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:i["m"]?"webkitAnimationStart":"animationstart",ANIMATION_END:i["m"]?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i["m"]?"webkitAnimationIteration":"animationiteration"},le={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function ce(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function de(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}var he=function(e){function t(t){var n=e.call(this)||this;n._onDidFocus=n._register(new l["a"]),n.onDidFocus=n._onDidFocus.event,n._onDidBlur=n._register(new l["a"]),n.onDidBlur=n._onDidBlur.event;var i=J(document.activeElement,t),r=!1,s=function(){r=!1,i||(i=!0,n._onDidFocus.fire())},a=function(){i&&(r=!0,window.setTimeout(function(){r&&(r=!1,i=!1,n._onDidBlur.fire())},0))};return n._register(Object(o["a"])(t,ue.FOCUS,!0)(s)),n._register(Object(o["a"])(t,ue.BLUR,!0)(a)),n}return f(t,e),t}(c["a"]);function pe(e){return new he(e)}function fe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return e.appendChild(t)}),t[t.length-1]}var ge,me=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function ve(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var r=me.exec(t);if(!r)throw new Error("Bad use of emmet");n=g({},n||{});var s,a=r[1]||"div";return s=e!==ge.HTML?document.createElementNS(e,a):document.createElement(a),r[3]&&(s.id=r[3]),r[4]&&(s.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach(function(e){var t=n[e];/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t)}),Object(h["d"])(i).forEach(function(e){e instanceof Node?s.appendChild(e):s.appendChild(document.createTextNode(e))}),s}function _e(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return ve.apply(void 0,[ge.HTML,e,t].concat(n))}function be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var o=i[n];o.style.display="",o.removeAttribute("aria-hidden")}}function ye(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var o=i[n];o.style.display="none",o.setAttribute("aria-hidden","true")}}function we(e,t){while(e){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}function Ce(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=we(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}function Se(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function Le(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Oe(e){if(d["e"]||i["h"])window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}function xe(e){var t=function(){e(),n=R(t)},n=R(t);return Object(c["h"])(function(){return n.dispose()})}function Ne(e){return e&&p["b"].vscodeRemote===e.scheme?p["a"].rewrite(e.authority,e.path):e}function De(e){return e?"url('"+Ne(e).toString(!0).replace(/'/g,"%27")+"')":"url('')"}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(ge||(ge={})),_e.SVG=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return ve.apply(void 0,[ge.SVG,e,t].concat(n))},p["a"].setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http")},"133b":function(e,t,n){},1569:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}n.d(t,"a",function(){return i})},1898:function(e,t,n){"use strict";n("7aad");var i=n("0f70"),o=n("11f7"),r=n("6653"),s=n("5d28"),a=n("00a3"),u=n("1b7d"),l=n("5fe7"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=11,h=function(e){function t(t){var n=e.call(this)||this;return n._onActivate=t.onActivate,n.bgDomNode=document.createElement("div"),n.bgDomNode.className="arrow-background",n.bgDomNode.style.position="absolute",n.bgDomNode.style.width=t.bgWidth+"px",n.bgDomNode.style.height=t.bgHeight+"px","undefined"!==typeof t.top&&(n.bgDomNode.style.top="0px"),"undefined"!==typeof t.left&&(n.bgDomNode.style.left="0px"),"undefined"!==typeof t.bottom&&(n.bgDomNode.style.bottom="0px"),"undefined"!==typeof t.right&&(n.bgDomNode.style.right="0px"),n.domNode=document.createElement("div"),n.domNode.className=t.className,n.domNode.style.position="absolute",n.domNode.style.width=d+"px",n.domNode.style.height=d+"px","undefined"!==typeof t.top&&(n.domNode.style.top=t.top+"px"),"undefined"!==typeof t.left&&(n.domNode.style.left=t.left+"px"),"undefined"!==typeof t.bottom&&(n.domNode.style.bottom=t.bottom+"px"),"undefined"!==typeof t.right&&(n.domNode.style.right=t.right+"px"),n._mouseMoveMonitor=n._register(new a["a"]),n.onmousedown(n.bgDomNode,function(e){return n._arrowMouseDown(e)}),n.onmousedown(n.domNode,function(e){return n._arrowMouseDown(e)}),n._mousedownRepeatTimer=n._register(new l["c"]),n._mousedownScheduleRepeatTimer=n._register(new l["e"]),n}return c(t,e),t.prototype._arrowMouseDown=function(e){var t=this,n=function(){t._mousedownRepeatTimer.cancelAndSet(function(){return t._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(n,200),this._mouseMoveMonitor.startMonitoring(a["b"],function(e){},function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()},t}(u["a"]),p=n("a666"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(e){function t(t,n,i){var o=e.call(this)||this;return o._visibility=t,o._visibleClassName=n,o._invisibleClassName=i,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new l["e"]),o}return f(t,e),t.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e)},t.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())},t.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())},t.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},t.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)},t.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)},0))},t.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},t}(p["a"]),m=n("30db"),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=140,b=function(e){function t(t){var n=e.call(this)||this;return n._lazyRender=t.lazyRender,n._host=t.host,n._scrollable=t.scrollable,n._scrollbarState=t.scrollbarState,n._visibilityController=n._register(new g(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),n._mouseMoveMonitor=n._register(new a["a"]),n._shouldRender=!0,n.domNode=Object(r["b"])(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n._visibilityController.setDomNode(n.domNode),n.domNode.setPosition("absolute"),n.onmousedown(n.domNode.domNode,function(e){return n._domNodeMouseDown(e)}),n}return v(t,e),t.prototype._createArrow=function(e){var t=this._register(new h(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},t.prototype._createSlider=function(e,t,n,i){var o=this;this.slider=Object(r["b"])(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(e){e.leftButton&&(e.preventDefault(),o._sliderMouseDown(e,function(){}))}),this.onclick(this.slider.domNode,function(e){e.leftButton&&e.stopPropagation()})},t.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},t.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},t.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},t.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},t.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);n<=o&&o<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){})):this._onMouseDown(e)},t.prototype._onMouseDown=function(e){var t,n;if(e.target===this.domNode.domNode&&"number"===typeof e.browserEvent.offsetX&&"number"===typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var i=o["x"](this.domNode.domNode);t=e.posx-i.left,n=e.posy-i.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){}))},t.prototype._sliderMouseDown=function(e,t){var n=this,i=this._sliderMousePosition(e),o=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(a["b"],function(e){var t=n._sliderOrthogonalMousePosition(e),s=Math.abs(t-o);if(m["g"]&&s>_)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var a=n._sliderMousePosition(e),u=a-i;n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(u))}},function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()}),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(u["a"]),y=20,w=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},e._computeValues=function(e,t,n,i,o){var r=Math.max(0,n-e),s=Math.max(0,r-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(y,Math.floor(n*s/i))),l=(s-u)/(i-n),c=o*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}(),C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new w(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var r=(n.arrowSize-d)/2,a=(n.horizontalScrollbarSize-d)/2;o._createArrow({className:"left-arrow",top:a,left:r,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new s["c"](null,1,0))}}),o._createArrow({className:"right-arrow",top:a,left:void 0,bottom:void 0,right:r,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new s["c"](null,-1,0))}})}return o._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),o}return C(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(b),L=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new w(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var r=(n.arrowSize-d)/2,a=(n.verticalScrollbarSize-d)/2;o._createArrow({className:"up-arrow",top:r,left:a,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new s["c"](null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:a,bottom:r,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new s["c"](null,0,-1))}})}return o._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),o}return L(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(b),x=n("308f"),N=n("42e3");n.d(t,"b",function(){return R}),n.d(t,"c",function(){return A}),n.d(t,"a",function(){return F});var D=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),k=500,I=50,E=!0,M=function(){function e(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}return e}(),T=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;var e=1,t=0,n=1,i=this._rear;do{var o=i===this._front?e:Math.pow(2,-n);if(e-=o,t+=this._memory[i].score*o,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}while(1);return t<=.5},e.prototype.accept=function(e,t,n){var i=new M(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}(),P=function(e){function t(t,n,i){var o=e.call(this)||this;o._onScroll=o._register(new x["a"]),o.onScroll=o._onScroll.event,t.style.overflow="hidden",o._options=j(n),o._scrollable=i,o._register(o._scrollable.onScroll(function(e){o._onDidScroll(e),o._onScroll.fire(e)}));var s={onMouseWheel:function(e){return o._onMouseWheel(e)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new O(o._scrollable,o._options,s)),o._horizontalScrollbar=o._register(new S(o._scrollable,o._options,s)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(t),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows?(o._leftShadowDomNode=Object(r["b"])(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=Object(r["b"])(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=Object(r["b"])(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow top-left-corner"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)):(o._leftShadowDomNode=null,o._topShadowDomNode=null,o._topLeftShadowDomNode=null),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,function(e){return o._onMouseOver(e)}),o.onnonbubblingmouseout(o._listenOnDomNode,function(e){return o._onMouseOut(e)}),o._hideTimeout=o._register(new l["e"]),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o}return D(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=Object(p["f"])(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,m["d"]&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=j(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this,n=this._mouseWheelToDispose.length>0;if(n!==e&&(this._mouseWheelToDispose=Object(p["f"])(this._mouseWheelToDispose),e)){var r=function(e){t._onMouseWheel(new s["c"](e))};this._mouseWheelToDispose.push(o["h"](this._listenOnDomNode,i["g"]?"mousewheel":"wheel",r))}},t.prototype._onMouseWheel=function(e){var t,n=T.INSTANCE;if(E&&n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(t=[o,i],i=t[0],o=t[1]);var r=!m["d"]&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||o||(o=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,i*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(i){var u=s.scrollTop-I*i;this._verticalScrollbar.writeScrollPosition(a,u)}if(o){var l=s.scrollLeft-I*o;this._horizontalScrollbar.writeScrollPosition(a,l)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop){var c=E&&this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel();c?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},k)},t}(u["a"]),R=function(e){function t(t,n){var i=this;n=n||{},n.mouseWheelSmoothScroll=!1;var r=new N["a"](0,function(e){return o["P"](e)});return i=e.call(this,t,n,r)||this,i._register(r),i}return D(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(P),A=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return D(t,e),t}(P),F=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._element=t,i.onScroll(function(e){e.scrollTopChanged&&(i._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(i._element.scrollLeft=e.scrollLeft)}),i.scanDomNode(),i}return D(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(R);function j(e){var t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m["d"]&&(t.className+=" mac"),t}},"191f":function(e,t,n){"use strict";var i=n("fdcc"),o=n("3742"),r=n("2c29"),s=n("ccde"),a=n("6a89"),u=n("8025"),l=function(){function e(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new a["a"](this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a["a"](this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range,o=n[1].range;return new u["a"](i.endLineNumber,i.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)},e}(),c=n("2e5d"),d=n("e6ff"),h=n("2837"),p=n("70cb");n.d(t,"a",function(){return g}),n.d(t,"b",function(){return m});var f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(){function e(){}return e.indent=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new s["a"](n[o],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops});return i},e.outdent=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=new s["a"](n[o],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops});return i},e.shiftIndent=function(e,t,n){return n=n||1,s["a"].shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},e.unshiftIndent=function(e,t,n){return n=n||1,s["a"].unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},e._distributedPaste=function(e,t,n,i){for(var o=[],s=0,a=n.length;s<a;s++)o[s]=new r["a"](n[s],i[s]);return new c["e"](0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._simplePaste=function(e,t,n,i,o){for(var s=[],u=0,l=n.length;u<l;u++){var d=n[u],h=d.getPosition();if(o&&i.indexOf("\n")!==i.length-1&&(o=!1),o&&d.startLineNumber!==d.endLineNumber&&(o=!1),o&&d.startColumn===t.getLineMinColumn(d.startLineNumber)&&d.endColumn===t.getLineMaxColumn(d.startLineNumber)&&(o=!1),o){var p=new a["a"](h.lineNumber,1,h.lineNumber,1);s[u]=new r["a"](p,i)}else s[u]=new r["a"](d,i)}return new c["e"](0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._distributePasteToCursors=function(e,t,n,i){if(n)return null;if(1===e.length)return null;if(i&&i.length===e.length)return i;10===t.charCodeAt(t.length-1)&&(t=t.substr(0,t.length-1));var o=t.split(/\r\n|\r|\n/);return o.length===e.length?o:null},e.paste=function(e,t,n,i,o,r){var s=this._distributePasteToCursors(n,i,o,r);return s?(n=n.sort(a["a"].compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,o)},e._goodIndentForLine=function(t,n,i){var r=null,s="",u=t.autoIndent?p["a"].getInheritIndentForLine(n,i,!1):null;if(u)r=u.action,s=u.indentation;else if(i>1){var l=void 0;for(l=i-1;l>=1;l--){var c=n.getLineContent(l),d=o["A"](c);if(d>=0)break}if(l<1)return null;var f=n.getLineMaxColumn(l),g=p["a"].getEnterAction(n,new a["a"](l,f,l,f));g&&(s=g.indentation,r=g.enterAction,r&&(s+=r.appendText))}return r&&(r===h["a"].Indent&&(s=e.shiftIndent(t,s)),r===h["a"].Outdent&&(s=e.unshiftIndent(t,s)),s=t.normalizeIndentation(s)),s||null},e._replaceJumpToNextIndent=function(e,t,n,i){var o="",s=n.getStartPosition();if(e.insertSpaces)for(var a=c["a"].visibleColumnFromColumn2(e,t,s),u=e.indentSize,l=u-a%u,d=0;d<l;d++)o+=" ";else o="\t";return new r["a"](n,o,i)},e.tab=function(e,t,n){for(var i=[],u=0,l=n.length;u<l;u++){var c=n[u];if(c.isEmpty()){var d=t.getLineContent(c.startLineNumber);if(/^\s*$/.test(d)&&t.isCheapToTokenize(c.startLineNumber)){var h=this._goodIndentForLine(e,t,c.startLineNumber);h=h||"\t";var p=e.normalizeIndentation(h);if(!o["J"](d,p)){i[u]=new r["a"](new a["a"](c.startLineNumber,1,c.startLineNumber,d.length+1),p,!0);continue}}i[u]=this._replaceJumpToNextIndent(e,t,c,!0)}else{if(c.startLineNumber===c.endLineNumber){var f=t.getLineMaxColumn(c.startLineNumber);if(1!==c.startColumn||c.endColumn!==f){i[u]=this._replaceJumpToNextIndent(e,t,c,!1);continue}}i[u]=new s["a"](c,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops})}}return i},e.replacePreviousChar=function(e,t,n,i,o,s){for(var u=[],l=0,d=i.length;l<d;l++){var h=i[l];if(h.isEmpty()){var p=h.getPosition(),f=Math.max(1,p.column-s),g=new a["a"](p.lineNumber,f,p.lineNumber,p.column);u[l]=new r["a"](g,o)}else u[l]=null}return new c["e"](1,u,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._typeCommand=function(e,t,n){return n?new r["d"](e,t,!0):new r["a"](e,t,!0)},e._enter=function(t,n,i,s){if(!n.isCheapToTokenize(s.getStartPosition().lineNumber)){var u=n.getLineContent(s.startLineNumber),l=o["s"](u).substring(0,s.startColumn-1);return e._typeCommand(s,"\n"+t.normalizeIndentation(l),i)}var d=p["a"].getEnterAction(n,s);if(d){var f=d.enterAction,g=d.indentation;if(f.indentAction===h["a"].None)return e._typeCommand(s,"\n"+t.normalizeIndentation(g+f.appendText),i);if(f.indentAction===h["a"].Indent)return e._typeCommand(s,"\n"+t.normalizeIndentation(g+f.appendText),i);if(f.indentAction===h["a"].IndentOutdent){var m=t.normalizeIndentation(g),v=t.normalizeIndentation(g+f.appendText),_="\n"+v+"\n"+m;return i?new r["d"](s,_,!0):new r["c"](s,_,-1,v.length-m.length,!0)}if(f.indentAction===h["a"].Outdent){var b=e.unshiftIndent(t,g);return e._typeCommand(s,"\n"+t.normalizeIndentation(b+f.appendText),i)}}if(!t.autoIndent){var y=n.getLineContent(s.startLineNumber),w=o["s"](y).substring(0,s.startColumn-1);return e._typeCommand(s,"\n"+t.normalizeIndentation(w),i)}var C=p["a"].getIndentForEnter(n,s,{unshiftIndent:function(n){return e.unshiftIndent(t,n)},shiftIndent:function(n){return e.shiftIndent(t,n)},normalizeIndentation:function(e){return t.normalizeIndentation(e)}},t.autoIndent),S=n.getLineContent(s.startLineNumber),L=o["s"](S).substring(0,s.startColumn-1);if(C){var O=c["a"].visibleColumnFromColumn2(t,n,s.getEndPosition()),x=s.endColumn,N="\n";L!==t.normalizeIndentation(C.beforeEnter)&&(N=t.normalizeIndentation(C.beforeEnter)+S.substring(L.length,s.startColumn-1)+"\n",s=new a["a"](s.startLineNumber,1,s.endLineNumber,s.endColumn));var D=n.getLineContent(s.endLineNumber),k=o["q"](D);if(s=k>=0?s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,k+1)):s.setEndPosition(s.endLineNumber,n.getLineMaxColumn(s.endLineNumber)),i)return new r["d"](s,N+t.normalizeIndentation(C.afterEnter),!0);var I=0;return x<=k+1&&(t.insertSpaces||(O=Math.ceil(O/t.indentSize)),I=Math.min(O+1-t.normalizeIndentation(C.afterEnter).length-1,0)),new r["c"](s,N+t.normalizeIndentation(C.afterEnter),0,I,!0)}return e._typeCommand(s,"\n"+t.normalizeIndentation(L),i)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var i=0,o=n.length;i<o;i++)if(!t.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0},e._runAutoIndentType=function(t,n,i,o){var r=p["a"].getIndentationAtPosition(n,i.startLineNumber,i.startColumn),s=p["a"].getIndentActionForType(n,i,o,{shiftIndent:function(n){return e.shiftIndent(t,n)},unshiftIndent:function(n){return e.unshiftIndent(t,n)}});if(null===s)return null;if(s!==t.normalizeIndentation(r)){var u=n.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===u?e._typeCommand(new a["a"](i.startLineNumber,0,i.endLineNumber,i.endColumn),t.normalizeIndentation(s)+o,!1):e._typeCommand(new a["a"](i.startLineNumber,0,i.endLineNumber,i.endColumn),t.normalizeIndentation(s)+n.getLineContent(i.startLineNumber).substring(u-1,i.startColumn-1)+o,!1)}return null},e._isAutoClosingOvertype=function(e,t,n,i,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(o))return!1;for(var r=0,s=n.length;r<s;r++){var a=n[r];if(!a.isEmpty())return!1;var u=a.getPosition(),l=t.getLineContent(u.lineNumber),c=l.charAt(u.column-1);if(c!==o)return!1;if("auto"===e.autoClosingOvertype){for(var d=!1,h=0,p=i.length;h<p;h++){var f=i[h];if(u.lineNumber===f.startLineNumber&&u.column===f.startColumn){d=!0;break}}if(!d)return!1}}return!0},e._runAutoClosingOvertype=function(e,t,n,i,o){for(var s=[],u=0,l=i.length;u<l;u++){var d=i[u],h=d.getPosition(),p=new a["a"](h.lineNumber,h.column,h.lineNumber,h.column+1);s[u]=new r["a"](p,o)}return new c["e"](1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._isBeforeClosingBrace=function(e,t,n){var i=e.autoClosingPairsClose2.get(n);if(!i)return!1;for(var o=t.open===t.close,r=0,s=i;r<s.length;r++){var a=s[r],u=a.open===a.close;if(o||!u)return!0}return!1},e._findAutoClosingPairOpen=function(e,t,n,i){var o=e.autoClosingPairsOpen2.get(i);if(!o)return null;for(var r=null,s=0,u=o;s<u.length;s++){var l=u[s];if(null===r||l.open.length>r.open.length){for(var c=!0,d=0,h=n;d<h.length;d++){var p=h[d],f=t.getValueInRange(new a["a"](p.lineNumber,p.column-l.open.length+1,p.lineNumber,p.column));if(f+i!==l.open){c=!1;break}}c&&(r=l)}}return r},e._isAutoClosingOpenCharType=function(t,n,o,r,s){var a=Object(c["g"])(r),u=a?t.autoClosingQuotes:t.autoClosingBrackets;if("never"===u)return null;var l=this._findAutoClosingPairOpen(t,n,o.map(function(e){return e.getPosition()}),r);if(!l)return null;for(var h=a?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket,f=0,g=o.length;f<g;f++){var m=o[f];if(!m.isEmpty())return null;var v=m.getPosition(),_=n.getLineContent(v.lineNumber);if(_.length>v.column-1){var b=_.charAt(v.column-1),y=e._isBeforeClosingBrace(t,l,b);if(!y&&!h(b))return null}if(!n.isCheapToTokenize(v.lineNumber))return null;if(1===l.open.length&&a&&"always"!==u){var w=Object(d["a"])(t.wordSeparators);if(s&&v.column>1&&0===w.get(_.charCodeAt(v.column-2)))return null;if(!s&&v.column>2&&0===w.get(_.charCodeAt(v.column-3)))return null}n.forceTokenization(v.lineNumber);var C=n.getLineTokens(v.lineNumber),S=!1;try{S=p["a"].shouldAutoClosePair(l,C,s?v.column:v.column-1)}catch(L){Object(i["e"])(L)}if(!S)return null}return l},e._runAutoClosingOpenCharType=function(e,t,n,i,o,r,s){for(var a=[],u=0,l=i.length;u<l;u++){var d=i[u];a[u]=new m(d,o,r,s.close)}return new c["e"](1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e._shouldSurroundChar=function(e,t){return Object(c["g"])(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround},e._isSurroundSelectionType=function(t,n,i,o){if(!e._shouldSurroundChar(t,o)||!t.surroundingPairs.hasOwnProperty(o))return!1;for(var r=Object(c["g"])(o),s=0,a=i.length;s<a;s++){var u=i[s];if(u.isEmpty())return!1;for(var l=!0,d=u.startLineNumber;d<=u.endLineNumber;d++){var h=n.getLineContent(d),p=d===u.startLineNumber?u.startColumn-1:0,f=d===u.endLineNumber?u.endColumn-1:h.length,g=h.substring(p,f);if(/[^ \t]/.test(g)){l=!1;break}}if(l)return!1;if(r&&u.startLineNumber===u.endLineNumber&&u.startColumn+1===u.endColumn){var m=n.getValueInRange(u);if(Object(c["g"])(m))return!1}}return!0},e._runSurroundSelectionType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s<a;s++){var u=i[s],d=t.surroundingPairs[o];r[s]=new l(u,o,d)}return new c["e"](0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._isTypeInterceptorElectricChar=function(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))},e._typeInterceptorElectricChar=function(e,t,n,s,u){if(!t.electricChars.hasOwnProperty(u)||!s.isEmpty())return null;var l=s.getPosition();n.forceTokenization(l.lineNumber);var d,h=n.getLineTokens(l.lineNumber);try{d=p["a"].onElectricCharacter(u,h,l.column)}catch(O){return Object(i["e"])(O),null}if(!d)return null;if(d.matchOpenBracket){var f=(h.getLineContent()+u).lastIndexOf(d.matchOpenBracket)+1,g=n.findMatchingBracketUp(d.matchOpenBracket,{lineNumber:l.lineNumber,column:f});if(g){if(g.startLineNumber===l.lineNumber)return null;var m=n.getLineContent(g.startLineNumber),v=o["s"](m),_=t.normalizeIndentation(v),b=n.getLineContent(l.lineNumber),y=n.getLineFirstNonWhitespaceColumn(l.lineNumber)||l.column,w=b.substring(y-1,l.column-1),C=_+w+u,S=new a["a"](l.lineNumber,1,l.lineNumber,l.column),L=new r["a"](S,C);return new c["e"](1,[L],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},e.compositionEndWithInterceptors=function(e,t,n,i,o){for(var s=null,u=0,l=i;u<l.length;u++){var d=l[u];if(!d.isEmpty())return null;var h=d.getPosition(),p=n.getValueInRange(new a["a"](h.lineNumber,h.column-1,h.lineNumber,h.column));if(null===s)s=p;else if(s!==p)return null}if(!s)return null;if(this._isAutoClosingOvertype(t,n,i,o,s)){var f=i.map(function(e){return new r["a"](new a["a"](e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)});return new c["e"](1,f,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var g=this._isAutoClosingOpenCharType(t,n,i,s,!1);return g?this._runAutoClosingOpenCharType(e,t,n,i,s,!1,g):null},e.typeWithInterceptors=function(t,n,i,o,s,a){if("\n"===a){for(var u=[],l=0,d=o.length;l<d;l++)u[l]=e._enter(n,i,!1,o[l]);return new c["e"](1,u,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(n,i,o)){var h=[],p=!1;for(l=0,d=o.length;l<d;l++)if(h[l]=this._runAutoIndentType(n,i,o[l],a),!h[l]){p=!0;break}if(!p)return new c["e"](1,h,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(n,i,o,s,a))return this._runAutoClosingOvertype(t,n,i,o,a);var f=this._isAutoClosingOpenCharType(n,i,o,a,!0);if(f)return this._runAutoClosingOpenCharType(t,n,i,o,a,!0,f);if(this._isSurroundSelectionType(n,i,o,a))return this._runSurroundSelectionType(t,n,i,o,a);if(this._isTypeInterceptorElectricChar(n,i,o)){var g=this._typeInterceptorElectricChar(t,n,i,o[0],a);if(g)return g}var m=[];for(l=0,d=o.length;l<d;l++)m[l]=new r["a"](o[l],a);var v=1!==t;return" "===a&&(v=!0),new c["e"](1,m,{shouldPushStackElementBefore:v,shouldPushStackElementAfter:!1})},e.typeWithoutInterceptors=function(e,t,n,i,o){for(var s=[],a=0,u=i.length;a<u;a++)s[a]=new r["a"](i[a],o);return new c["e"](1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e.lineInsertBefore=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,s=n.length;o<s;o++){var u=n[o].positionLineNumber;if(1===u)i[o]=new r["d"](new a["a"](1,1,1,1),"\n");else{u--;var l=t.getLineMaxColumn(u);i[o]=this._enter(e,t,!1,new a["a"](u,l,u,l))}}return i},e.lineInsertAfter=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o<r;o++){var s=n[o].positionLineNumber,u=t.getLineMaxColumn(s);i[o]=this._enter(e,t,!1,new a["a"](s,u,s,u))}return i},e.lineBreakInsert=function(e,t,n){for(var i=[],o=0,r=n.length;o<r;o++)i[o]=this._enter(e,t,!0,n[o]);return i},e}(),m=function(e){function t(t,n,i,o){var r=e.call(this,t,(i?n:"")+o,0,-o.length)||this;return r._openCharacter=n,r._closeCharacter=o,r.closeCharacterRange=null,r.enclosingRange=null,r}return f(t,e),t.prototype.computeCursorState=function(t,n){var i=n.getInverseEditOperations(),o=i[0].range;return this.closeCharacterRange=new a["a"](o.startLineNumber,o.endColumn-this._closeCharacter.length,o.endLineNumber,o.endColumn),this.enclosingRange=new a["a"](o.startLineNumber,o.endColumn-this._openCharacter.length-this._closeCharacter.length,o.endLineNumber,o.endColumn),e.prototype.computeCursorState.call(this,t,n)},t}(r["c"])},"1af3":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("6a89"),r=n("8025"),s=n("c101"),a=n("b2cc"),u=n("a40b"),l=function(){function e(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range;return this._originalSelection.isEmpty()?new r["a"](i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new r["a"](i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)},e}(),c=n("bc04"),d=n("b7d0"),h=n("918c"),p=n("b57f"),f=n("5fe7"),g=n("fdcc"),m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},_=function(e,t){return function(n,i){t(n,i,e)}},b=function(){function e(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.prototype.run=function(t,n){var i=this;this.currentRequest&&this.currentRequest.cancel();var s=this.editor.getSelection(),a=this.editor.getModel();if(a&&s){var u=s;if(u.startLineNumber===u.endLineNumber){var d=new c["a"](this.editor,5),h=a.uri;return this.editorWorkerService.canNavigateValueSet(h)?(this.currentRequest=Object(f["f"])(function(e){return i.editorWorkerService.navigateValueSet(h,u,n)}),this.currentRequest.then(function(n){if(n&&n.range&&n.value&&d.validate(i.editor)){var s=o["a"].lift(n.range),a=n.range,c=n.value.length-(u.endColumn-u.startColumn);a={startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.startColumn+n.value.length},c>1&&(u=new r["a"](u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn+c-1));var h=new l(s,u,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,h),i.editor.pushUndoStop(),i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[{range:a,options:e.DECORATION}]),i.decorationRemover&&i.decorationRemover.cancel(),i.decorationRemover=Object(f["l"])(350),i.decorationRemover.then(function(){return i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[])}).catch(g["e"])}}).catch(g["e"])):Promise.resolve(void 0)}}},e.ID="editor.contrib.inPlaceReplaceController",e.DECORATION=p["a"].register({className:"valueSetReplacement"}),e=v([_(1,u["a"])],e),e}(),y=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:i["a"]("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3154,weight:100}})||this}return m(t,e),t.prototype.run=function(e,t){var n=b.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)},t}(a["b"]),w=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:i["a"]("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3156,weight:100}})||this}return m(t,e),t.prototype.run=function(e,t){var n=b.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)},t}(a["b"]);Object(a["h"])(b),Object(a["f"])(y),Object(a["f"])(w),Object(d["f"])(function(e,t){var n=e.getColor(h["d"]);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")})},"1b0e":function(e,t,n){"use strict";var i=function(){function e(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function o(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function r(e,t,n){return new c(o(e),o(t)).ComputeDiff(n)}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return c});var s=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t)},e}(),a=function(){function e(){}return e.Copy=function(e,t,n,i,o){for(var r=0;r<o;r++)n[i+r]=e[t+r]},e}(),u=1447,l=function(){function e(){this.m_changes=[],this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE,this.m_originalCount=0,this.m_modifiedCount=0}return e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),c=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,i,o){var r=[!1],s=this.ComputeDiffRecursive(e,t,n,i,r);return o?this.PrettifyChanges(s):s},e.prototype.ComputeDiffRecursive=function(e,t,n,o,r){r[0]=!1;while(e<=t&&n<=o&&this.ElementsAreEqual(e,n))e++,n++;while(t>=e&&o>=n&&this.ElementsAreEqual(t,o))t--,o--;if(e>t||n>o){var a=void 0;return n<=o?(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new i(e,0,n,o-n+1)]):e<=t?(s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[new i(e,t-e+1,n,0)]):(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var u=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,o,u,l,r),d=u[0],h=l[0];if(null!==c)return c;if(!r[0]){var p=this.ComputeDiffRecursive(e,d,n,h,r),f=[];return f=r[0]?[new i(d+1,t-(d+1)+1,h+1,o-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,o,r),this.ConcatenateChanges(p,f)}return[new i(e,t-e+1,n,o-n+1)]},e.prototype.WALKTRACE=function(e,t,n,o,r,s,a,u,c,d,h,p,f,g,m,v,_,b){var y,w=null,C=null,S=new l,L=t,O=n,x=f[0]-v[0]-o,N=Number.MIN_VALUE,D=this.m_forwardHistory.length-1;do{y=x+e,y===L||y<O&&c[y-1]<c[y+1]?(h=c[y+1],g=h-x-o,h<N&&S.MarkNextChange(),N=h,S.AddModifiedElement(h+1,g),x=y+1-e):(h=c[y-1]+1,g=h-x-o,h<N&&S.MarkNextChange(),N=h-1,S.AddOriginalElement(h,g+1),x=y-1-e),D>=0&&(c=this.m_forwardHistory[D],e=c[0],L=1,O=c.length-1)}while(--D>=-1);if(w=S.getReverseChanges(),b[0]){var k=f[0]+1,I=v[0]+1;if(null!==w&&w.length>0){var E=w[w.length-1];k=Math.max(k,E.getOriginalEnd()),I=Math.max(I,E.getModifiedEnd())}C=[new i(k,p-k+1,I,m-I+1)]}else{S=new l,L=s,O=a,x=f[0]-v[0]-u,N=Number.MAX_VALUE,D=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{y=x+r,y===L||y<O&&d[y-1]>=d[y+1]?(h=d[y+1]-1,g=h-x-u,h>N&&S.MarkNextChange(),N=h+1,S.AddOriginalElement(h+1,g+1),x=y+1-r):(h=d[y-1],g=h-x-u,h>N&&S.MarkNextChange(),N=h,S.AddModifiedElement(h+1,g+1),x=y-1-r),D>=0&&(d=this.m_reverseHistory[D],r=d[0],L=1,O=d.length-1)}while(--D>=-1);C=S.getChanges()}return this.ConcatenateChanges(w,C)},e.prototype.ComputeRecursionPoint=function(e,t,n,o,r,s,l){var c,d=0,h=0,p=0,f=0,g=0,m=0;e--,n--,r[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v,_,b=t-e+(o-n),y=b+1,w=new Array(y),C=new Array(y),S=o-n,L=t-e,O=e-n,x=t-o,N=L-S,D=N%2===0;for(w[S]=e,C[L]=t,l[0]=!1,c=1;c<=b/2+1;c++){var k=0,I=0;for(p=this.ClipDiagonalBound(S-c,c,S,y),f=this.ClipDiagonalBound(S+c,c,S,y),v=p;v<=f;v+=2){d=v===p||v<f&&w[v-1]<w[v+1]?w[v+1]:w[v-1]+1,h=d-(v-S)-O,_=d;while(d<t&&h<o&&this.ElementsAreEqual(d+1,h+1))d++,h++;if(w[v]=d,d+h>k+I&&(k=d,I=h),!D&&Math.abs(v-L)<=c-1&&d>=C[v])return r[0]=d,s[0]=h,_<=C[v]&&u>0&&c<=u+1?this.WALKTRACE(S,p,f,O,L,g,m,x,w,C,d,t,r,h,o,s,D,l):null}var E=(k-e+(I-n)-c)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(k,this.OriginalSequence,E))return l[0]=!0,r[0]=k,s[0]=I,E>0&&u>0&&c<=u+1?this.WALKTRACE(S,p,f,O,L,g,m,x,w,C,d,t,r,h,o,s,D,l):(e++,n++,[new i(e,t-e+1,n,o-n+1)]);for(g=this.ClipDiagonalBound(L-c,c,L,y),m=this.ClipDiagonalBound(L+c,c,L,y),v=g;v<=m;v+=2){d=v===g||v<m&&C[v-1]>=C[v+1]?C[v+1]-1:C[v-1],h=d-(v-L)-x,_=d;while(d>e&&h>n&&this.ElementsAreEqual(d,h))d--,h--;if(C[v]=d,D&&Math.abs(v-S)<=c&&d<=w[v])return r[0]=d,s[0]=h,_>=w[v]&&u>0&&c<=u+1?this.WALKTRACE(S,p,f,O,L,g,m,x,w,C,d,t,r,h,o,s,D,l):null}if(c<=u){var M=new Array(f-p+2);M[0]=S-p+1,a.Copy(w,p,M,1,f-p+1),this.m_forwardHistory.push(M),M=new Array(m-g+2),M[0]=L-g+1,a.Copy(C,g,M,1,m-g+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(S,p,f,O,L,g,m,x,w,C,d,t,r,h,o,s,D,l)},e.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=t<e.length-1?e[t+1].originalStart:this.OriginalSequence.getLength(),o=t<e.length-1?e[t+1].modifiedStart:this.ModifiedSequence.getLength(),r=n.originalLength>0,s=n.modifiedLength>0;while(n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!r||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength)))n.originalStart++,n.modifiedStart++;var a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(t=e.length-1;t>=0;t--){n=e[t],i=0,o=0;if(t>0){var u=e[t-1];u.originalLength>0&&(i=u.originalStart+u.originalLength),u.modifiedLength>0&&(o=u.modifiedStart+u.modifiedLength)}r=n.originalLength>0,s=n.modifiedLength>0;for(var l=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,p=n.modifiedStart-d;if(h<i||p<o)break;if(r&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(p,p+n.modifiedLength))break;var f=this._boundaryScore(h,n.originalLength,p,n.modifiedLength);f>c&&(c=f,l=d)}n.originalStart-=l,n.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"===typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"===typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,i){var o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(n,i)?1:0;return o+r},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var i=new Array(e.length+t.length-1);return a.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],a.Copy(t,1,i,e.length,t.length-1),i}i=new Array(e.length+t.length);return a.Copy(e,0,i,0,e.length),a.Copy(t,0,i,e.length,t.length),i},e.prototype.ChangesOverlap=function(e,t,n){if(s.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),s.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var o=e.originalStart,r=e.originalLength,a=e.modifiedStart,u=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(u=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(o,r,a,u),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e<i)return e;var o=n,r=i-n-1,s=t%2===0;if(e<0){var a=o%2===0;return s===a?0:1}var u=r%2===0;return s===u?i-1:i-2},e}()},"1b69":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n("0a0f"),o=Object(i["c"])("modelService");function r(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},"1b7d":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("11f7"),o=n("b835"),r=n("5d28"),s=n("a666"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.onclick=function(e,t){this._register(i["h"](e,i["d"].CLICK,function(e){return t(new r["b"](e))}))},t.prototype.onmousedown=function(e,t){this._register(i["h"](e,i["d"].MOUSE_DOWN,function(e){return t(new r["b"](e))}))},t.prototype.onmouseover=function(e,t){this._register(i["h"](e,i["d"].MOUSE_OVER,function(e){return t(new r["b"](e))}))},t.prototype.onnonbubblingmouseout=function(e,t){this._register(i["i"](e,function(e){return t(new r["b"](e))}))},t.prototype.onkeydown=function(e,t){this._register(i["h"](e,i["d"].KEY_DOWN,function(e){return t(new o["a"](e))}))},t.prototype.onkeyup=function(e,t){this._register(i["h"](e,i["d"].KEY_UP,function(e){return t(new o["a"](e))}))},t.prototype.oninput=function(e,t){this._register(i["h"](e,i["d"].INPUT,t))},t.prototype.onblur=function(e,t){this._register(i["h"](e,i["d"].BLUR,t))},t.prototype.onfocus=function(e,t){this._register(i["h"](e,i["d"].FOCUS,t))},t.prototype.onchange=function(e,t){this._register(i["h"](e,i["d"].CHANGE,t))},t}(s["a"])},"1ddc":function(e,t,n){"use strict";var i=n("0f70"),o=n("308f"),r=n("a666"),s=n("30db"),a=function(){function e(e,t){this.chr=e,this.type=t,this.width=0}return e.prototype.fulfill=function(e){this.width=e},e}(),u=function(){function e(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}return e.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight="bold",i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(i);var o=document.createElement("div");o.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),o.style.fontWeight=this._bareFontInfo.fontWeight,o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",o.style.fontStyle="italic",t.appendChild(o);for(var r=[],s=0,a=this._requests.length;s<a;s++){var u=this._requests[s],l=void 0;0===u.type&&(l=n),2===u.type&&(l=i),1===u.type&&(l=o),l.appendChild(document.createElement("br"));var c=document.createElement("span");e._render(c,u),l.appendChild(c),r[s]=c}this._container=t,this._testElements=r},e._render=function(e,t){if(" "===t.chr){for(var n=" ",i=0;i<8;i++)n+=n;e.innerHTML=n}else{var o=t.chr;for(i=0;i<8;i++)o+=o;e.textContent=o}},e.prototype._readFromDomElements=function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e],i=this._testElements[e];n.fulfill(i.offsetWidth/256)}},e}();function l(e,t){var n=new u(e,t);n.read()}var c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(e){function t(t,n){var i=e.call(this)||this;return i.referenceDomElement=t,i.changeCallback=n,i.measureReferenceDomElementToken=-1,i.width=-1,i.height=-1,i.measureReferenceDomElement(!1),i}return c(t,e),t.prototype.dispose=function(){this.stopObserving(),e.prototype.dispose.call(this)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.startObserving=function(){var e=this;-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(function(){return e.measureReferenceDomElement(!0)},100))},t.prototype.stopObserving=function(){-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)},t.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},t.prototype.measureReferenceDomElement=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())},t}(r["a"]),h=n("8830"),p=n("fb71");n.d(t,"b",function(){return m}),n.d(t,"a",function(){return _});var f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(){function e(){this._keys=Object.create(null),this._values=Object.create(null)}return e.prototype.has=function(e){var t=e.getId();return!!this._values[t]},e.prototype.get=function(e){var t=e.getId();return this._values[t]},e.prototype.put=function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t},e.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t]},e.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map(function(t){return e._values[t]})},e}();function m(){v.INSTANCE.clearCache()}var v=function(e){function t(){var t=e.call(this)||this;return t._onDidChange=t._register(new o["a"]),t.onDidChange=t._onDidChange.event,t._cache=new g,t._evictUntrustedReadingsTimeout=-1,t}return f(t,e),t.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),e.prototype.dispose.call(this)},t.prototype.clearCache=function(){this._cache=new g,this._onDidChange.fire()},t.prototype._writeToCache=function(e,t){var n=this;this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(function(){n._evictUntrustedReadingsTimeout=-1,n._evictUntrustedReadings()},5e3))},t.prototype._evictUntrustedReadings=function(){for(var e=this._cache.getValues(),t=!1,n=0,i=e.length;n<i;n++){var o=e[n];o.isTrusted||(t=!0,this._cache.remove(o))}t&&this._onDidChange.fire()},t.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var n=t._actualReadConfiguration(e);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new p["b"]({zoomLevel:i["c"](),fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1)),this._writeToCache(e,n)}return this._cache.get(e)},t.createRequest=function(e,t,n,i){var o=new a(e,t);return n.push(o),i&&i.push(o),o},t._actualReadConfiguration=function(e){var t=[],n=[],o=this.createRequest("n",0,t,n),r=this.createRequest("m",0,t,null),s=this.createRequest(" ",0,t,n),a=this.createRequest("0",0,t,n),u=this.createRequest("1",0,t,n),c=this.createRequest("2",0,t,n),d=this.createRequest("3",0,t,n),h=this.createRequest("4",0,t,n),f=this.createRequest("5",0,t,n),g=this.createRequest("6",0,t,n),m=this.createRequest("7",0,t,n),v=this.createRequest("8",0,t,n),_=this.createRequest("9",0,t,n),b=this.createRequest("→",0,t,n),y=this.createRequest("→",0,t,null);this.createRequest("·",0,t,n),this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),l(e,t);for(var w=Math.max(a.width,u.width,c.width,d.width,h.width,f.width,g.width,m.width,v.width,_.width),C=!0,S=n[0].width,L=1,O=n.length;L<O;L++){var x=S-n[L].width;if(x<-.001||x>.001){C=!1;break}}var N=!0;C&&y.width!==S&&(N=!1),y.width>b.width&&(N=!1);var D=i["b"]()>2e3;return new p["b"]({zoomLevel:i["c"](),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:C,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:N,spaceWidth:s.width,maxDigitWidth:w},D)},t.INSTANCE=new t,t}(r["a"]),_=function(e){function t(t,n,o,r){void 0===o&&(o=null);var s=e.call(this,t,n)||this;return s.accessibilityService=r,s._elementSizeObserver=s._register(new d(o,function(){return s._onReferenceDomElementSizeChanged()})),s._register(v.INSTANCE.onDidChange(function(){return s._onCSSBasedConfigurationChanged()})),s._validatedOptions.automaticLayout&&s._elementSizeObserver.startObserving(),s._register(i["o"](function(e){return s._recomputeOptions()})),s._register(s.accessibilityService.onDidChangeAccessibilitySupport(function(){return s._recomputeOptions()})),s._recomputeOptions(),s}return f(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return i["l"]||i["n"]||(e+="no-user-select "),s["d"]&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i["m"]||i["i"],pixelRatio:i["a"](),zoomLevel:i["c"](),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return v.INSTANCE.readConfiguration(e)},t}(h["a"])},"1f26":function(e,t,n){},2504:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i,o=n("308f"),r=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});(function(e){function t(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o["b"].None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})})(i||(i={}));var s=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?r:(this._emitter||(this._emitter=new o["a"]),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),a=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new s),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof s&&this._token.cancel():this._token=i.Cancelled},e.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=i.None},e}()},"258a":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"f",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"e",function(){return l});var i,o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r={done:!0,value:void 0};function s(e){return Array.isArray(e)?i.fromArray(e):e}(function(e){var t={next:function(){return r}};function n(){return t}function i(e){var t=!1;return{next:function(){return t?r:(t=!0,{done:!1,value:e})}}}function o(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return t>=n?r:{done:!1,value:e[t++]}}}}function s(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()}function a(e,t){return{next:function(){var n=e.next();return n.done?r:{done:!1,value:t(n.value)}}}}function u(e,t){return{next:function(){while(1){var n=e.next();if(n.done)return r;if(t(n.value))return{done:!1,value:n.value}}}}}function l(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)}function c(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var i=0,o=e.next();!o.done;o=e.next())if(n.push(o.value),++i>=t)break;return n}function d(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return{next:function(){if(n>=e.length)return r;var t=e[n],i=t.next();return i.done?(n++,this.next()):i}}}e.empty=n,e.single=i,e.fromArray=o,e.from=s,e.map=a,e.filter=u,e.forEach=l,e.collect=c,e.concat=d})(i||(i={}));var a=function(){function e(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===i&&(i=t-1),this.items=e,this.start=t,this.end=n,this.index=i}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}(),u=function(e){function t(t,n,i,o){return void 0===n&&(n=0),void 0===i&&(i=t.length),void 0===o&&(o=n-1),e.call(this,t,n,i,o)||this}return o(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(a),l=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}()},"27e6":function(e,t,n){},2837:function(e,t,n){"use strict";var i;n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(i||(i={}));var o=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t<n;t++){var i=e.notIn[t];switch(i){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return e.prototype.isOK=function(e){return 0===(this._standardTokenMask&e)},e}()},2935:function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("b2cc"),r=n("c101"),s=n("6a89"),a=function(){function e(e,t){this._selection=e,this._isMovingLeft=t,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){var n=this._selection;if(this._selectionId=t.trackSelection(n),n.startLineNumber===n.endLineNumber&&(!this._isMovingLeft||0!==n.startColumn)&&(this._isMovingLeft||n.endColumn!==e.getLineMaxColumn(n.startLineNumber))){var i,o,r,a=n.selectionStartLineNumber,u=e.getLineContent(a);this._isMovingLeft?(i=u.substring(0,n.startColumn-2),o=u.substring(n.startColumn-1,n.endColumn-1),r=u.substring(n.startColumn-2,n.startColumn-1)+u.substring(n.endColumn-1)):(i=u.substring(0,n.startColumn-1)+u.substring(n.endColumn-1,n.endColumn),o=u.substring(n.startColumn-1,n.endColumn-1),r=u.substring(n.endColumn));var l=i+o+r;t.addEditOperation(new s["a"](a,1,a,e.getLineMaxColumn(a)),null),t.addEditOperation(new s["a"](a,1,a,1),l),this._cutStartIndex=n.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+n.endColumn-n.startColumn,this._moved=!0}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moved&&(n=n.setStartPosition(n.startLineNumber,this._cutStartIndex),n=n.setEndPosition(n.startLineNumber,this._cutEndIndex)),n},e}(),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(e){function t(t,n){var i=e.call(this,n)||this;return i.left=t,i}return u(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=t.getSelections(),o=0,r=i;o<r.length;o++){var s=r[o];n.push(new a(s,this.left))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},t}(o["b"]),c=function(e){function t(){return e.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:i["a"]("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:r["a"].writable})||this}return u(t,e),t}(l),d=function(e){function t(){return e.call(this,!1,{id:"editor.action.moveCarretRightAction",label:i["a"]("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:r["a"].writable})||this}return u(t,e),t}(l);Object(o["f"])(c),Object(o["f"])(d)},"2a04":function(e,t,n){},"2ab7":function(e,t,n){},"2c29":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"d",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"b",function(){return a});var i=n("8025"),o=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),o=n[0].range;return new i["a"](o.endLineNumber,o.endColumn,o.endLineNumber,o.endColumn)},e}(),r=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),o=n[0].range;return new i["a"](o.startLineNumber,o.startColumn,o.startLineNumber,o.startColumn)},e}(),s=function(){function e(e,t,n,i,o){void 0===o&&(o=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=o}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),o=n[0].range;return new i["a"](o.endLineNumber+this._lineNumberDeltaOffset,o.endColumn+this._columnDeltaOffset,o.endLineNumber+this._lineNumberDeltaOffset,o.endColumn+this._columnDeltaOffset)},e}(),a=function(){function e(e,t,n){this._range=e,this._text=t,this._initialSelection=n,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text),this._selectionId=t.trackSelection(this._initialSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},e}()},"2d47":function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteWordPartLeft",function(){return c}),n.d(t,"DeleteWordPartRight",function(){return d}),n.d(t,"WordPartLeftCommand",function(){return h}),n.d(t,"CursorWordPartLeft",function(){return p}),n.d(t,"CursorWordPartLeftSelect",function(){return f}),n.d(t,"WordPartRightCommand",function(){return g}),n.d(t,"CursorWordPartRight",function(){return m}),n.d(t,"CursorWordPartRightSelect",function(){return v});var i=n("b2cc"),o=n("d48d"),r=n("6a89"),s=n("c101"),a=n("b3b2"),u=n("9e74"),l=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:769},weight:100}})||this}return l(t,e),t.prototype._delete=function(e,t,n,i,s){var a=o["b"].deleteWordPartLeft(e,t,n,i);return a||new r["a"](1,1,1,1)},t}(a["DeleteWordCommand"]),d=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:788},weight:100}})||this}return l(t,e),t.prototype._delete=function(e,t,n,i,s){var a=o["b"].deleteWordPartRight(e,t,n,i);if(a)return a;var u=t.getLineCount(),l=t.getLineMaxColumn(u);return new r["a"](u,l,u,l)},t}(a["DeleteWordCommand"]),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype._move=function(e,t,n,i){return o["b"].moveWordPartLeft(e,t,n)},t}(a["MoveWordCommand"]),p=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:783},weight:100}})||this}return l(t,e),t}(h);u["a"].registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var f=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:1807},weight:100}})||this}return l(t,e),t}(h);u["a"].registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype._move=function(e,t,n,i){return o["b"].moveWordPartRight(e,t,n)},t}(a["MoveWordCommand"]),m=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:785},weight:100}})||this}return l(t,e),t}(g),v=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:1809},weight:100}})||this}return l(t,e),t}(g);Object(i["g"])(new c),Object(i["g"])(new d),Object(i["g"])(new p),Object(i["g"])(new f),Object(i["g"])(new m),Object(i["g"])(new v)},"2de5":function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var i=n("507c"),o=function(){function e(e,t){this.index=e,this.remainder=t}return e}(),r=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=Object(i["b"])(e);var n=this.values,o=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=Object(i["b"])(e),t=Object(i["b"])(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},e.prototype.removeValues=function(e,t){e=Object(i["b"])(e),t=Object(i["b"])(t);var n=this.values,o=this.prefixSum;if(e>=n.length)return!1;var r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Object(i["b"])(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();var t=0,n=this.values.length-1,i=0,r=0,s=0;while(t<=n)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e<s)n=i-1;else{if(!(e>=r))break;t=i+1}return new o(i,e-s)},e}(),s=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new r(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t<this._cache.length)return this._cache[t]}return this._actual.getIndexOf(e)},e.prototype.warmUpCache=function(e,t){for(var n=[],i=e;i<=t;i++)n[i-e]=this.getIndexOf(i);this._cache=n,this._cacheAccumulatedValueStart=e},e}()},"2e5d":function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"f",function(){return g}),n.d(t,"c",function(){return m}),n.d(t,"d",function(){return b}),n.d(t,"e",function(){return y}),n.d(t,"a",function(){return w}),n.d(t,"g",function(){return C});var i=n("fdcc"),o=n("3742"),r=n("7061"),s=n("6a89"),a=n("8025"),u=n("b57f"),l=n("70cb"),c=function(){return!0},d=function(){return!1},h=function(e){return" "===e||"\t"===e};function p(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var f=function(){function e(t,n,i){this._languageIdentifier=t;var o=i.editor;this.readOnly=o.readOnly,this.tabSize=n.tabSize,this.indentSize=n.indentSize,this.insertSpaces=n.insertSpaces,this.pageSize=Math.max(1,Math.floor(o.layoutInfo.height/o.fontInfo.lineHeight)-2),this.lineHeight=o.lineHeight,this.useTabStops=o.useTabStops,this.wordSeparators=o.wordSeparators,this.emptySelectionClipboard=o.emptySelectionClipboard,this.copyWithSyntaxHighlighting=o.copyWithSyntaxHighlighting,this.multiCursorMergeOverlapping=o.multiCursorMergeOverlapping,this.autoClosingBrackets=o.autoClosingBrackets,this.autoClosingQuotes=o.autoClosingQuotes,this.autoClosingOvertype=o.autoClosingOvertype,this.autoSurround=o.autoSurround,this.autoIndent=o.autoIndent,this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)};var r=e._getAutoClosingPairs(t);if(r)for(var s=0,a=r;s<a.length;s++){var u=a[s];p(this.autoClosingPairsOpen2,u.open.charAt(u.open.length-1),u),1===u.close.length&&p(this.autoClosingPairsClose2,u.close,u)}var l=e._getSurroundingPairs(t);if(l)for(var c=0,d=l;c<d.length;c++){u=d[c];this.surroundingPairs[u.open]=u.close}}return e.shouldRecreate=function(e){return e.layoutInfo||e.wordSeparators||e.emptySelectionClipboard||e.multiCursorMergeOverlapping||e.autoClosingBrackets||e.autoClosingQuotes||e.autoClosingOvertype||e.autoSurround||e.useTabStops||e.lineHeight||e.readOnly},Object.defineProperty(e.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var t=e._getElectricCharacters(this._languageIdentifier);if(t)for(var n=0,i=t;n<i.length;n++){var o=i[n];this._electricChars[o]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),e.prototype.normalizeIndentation=function(e){return u["b"].normalizeIndentation(e,this.indentSize,this.insertSpaces)},e._getElectricCharacters=function(e){try{return l["a"].getElectricCharacters(e.id)}catch(t){return Object(i["e"])(t),null}},e._getAutoClosingPairs=function(e){try{return l["a"].getAutoClosingPairs(e.id)}catch(t){return Object(i["e"])(t),null}},e._getShouldAutoClose=function(t,n){switch(n){case"beforeWhitespace":return h;case"languageDefined":return e._getLanguageDefinedShouldAutoClose(t);case"always":return c;case"never":return d}},e._getLanguageDefinedShouldAutoClose=function(e){try{var t=l["a"].getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e)}}catch(n){return Object(i["e"])(n),d}},e._getSurroundingPairs=function(e){try{return l["a"].getSurroundingPairs(e.id)}catch(t){return Object(i["e"])(t),null}},e}(),g=function(){function e(t,n,i,o){this.selectionStart=t,this.selectionStartLeftoverVisibleColumns=n,this.position=i,this.leftoverVisibleColumns=o,this.selection=e._computeSelection(this.selectionStart,this.position)}return e.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)},e.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},e.prototype.move=function(t,n,i,o){return t?new e(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new r["a"](n,i),o):new e(new s["a"](n,i,n,i),o,new r["a"](n,i),o)},e._computeSelection=function(e,t){var n,i,o,r;return e.isEmpty()?(n=e.startLineNumber,i=e.startColumn,o=t.lineNumber,r=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,i=e.endColumn,o=t.lineNumber,r=t.column):(n=e.startLineNumber,i=e.startColumn,o=t.lineNumber,r=t.column),new a["a"](n,i,o,r)},e}(),m=function(){function e(e,t,n){this.model=t,this.viewModel=n,this.config=new f(this.model.getLanguageIdentifier(),this.model.getOptions(),e)}return e.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t)},e.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t)},e.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},e.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new r["a"](e,t))},e.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e)},e.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},e.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},e.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},e.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e)},e.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e)},e}(),v=function(){function e(e){this.modelState=e,this.viewState=null}return e}(),_=function(){function e(e){this.modelState=null,this.viewState=e}return e}(),b=function(){function e(e,t){this.modelState=e,this.viewState=t}return e.fromModelState=function(e){return new v(e)},e.fromViewState=function(e){return new _(e)},e.fromModelSelection=function(t){var n=t.selectionStartLineNumber,i=t.selectionStartColumn,o=t.positionLineNumber,a=t.positionColumn,u=new g(new s["a"](n,i,n,i),0,new r["a"](o,a),0);return e.fromModelState(u)},e.fromModelSelections=function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t},e.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)},e}(),y=function(){function e(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter}return e}(),w=function(){function e(){}return e.isLowSurrogate=function(e,t,n){var i=e.getLineContent(t);return!(n<0||n>=i.length)&&o["x"](i.charCodeAt(n))},e.isHighSurrogate=function(e,t,n){var i=e.getLineContent(t);return!(n<0||n>=i.length)&&o["w"](i.charCodeAt(n))},e.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2)},e.visibleColumnFromColumn=function(e,t,n){var i=e.length;i>t-1&&(i=t-1);for(var r=0,s=0;s<i;s++){var a=e.charCodeAt(s);9===a?r=this.nextRenderTabStop(r,n):o["v"](a)?r+=2:r+=1}return r},e.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)},e.columnFromVisibleColumn=function(e,t,n){if(t<=0)return 1;for(var i=e.length,r=0,s=0;s<i;s++){var a=e.charCodeAt(s),u=void 0;if(u=9===a?this.nextRenderTabStop(r,n):o["v"](a)?r+2:r+1,u>=t){var l=t-r,c=u-t;return c<l?s+2:s+1}r=u}return i+1},e.columnFromVisibleColumn2=function(e,t,n,i){var o=this.columnFromVisibleColumn(t.getLineContent(n),i,e.tabSize),r=t.getLineMinColumn(n);if(o<r)return r;var s=t.getLineMaxColumn(n);return o>s?s:o},e.nextRenderTabStop=function(e,t){return e+t-e%t},e.nextIndentTabStop=function(e,t){return e+t-e%t},e.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},e.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},e}();function C(e){return"'"===e||'"'===e||"`"===e}},"303e":function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"Kb",function(){return h}),n.d(t,"T",function(){return p}),n.d(t,"R",function(){return f}),n.d(t,"S",function(){return g}),n.d(t,"e",function(){return m}),n.d(t,"b",function(){return v}),n.d(t,"Ub",function(){return _}),n.d(t,"Tb",function(){return b}),n.d(t,"Wb",function(){return y}),n.d(t,"W",function(){return w}),n.d(t,"Y",function(){return C}),n.d(t,"X",function(){return S}),n.d(t,"V",function(){return L}),n.d(t,"U",function(){return O}),n.d(t,"cb",function(){return x}),n.d(t,"eb",function(){return N}),n.d(t,"db",function(){return D}),n.d(t,"fb",function(){return k}),n.d(t,"hb",function(){return I}),n.d(t,"gb",function(){return E}),n.d(t,"Z",function(){return M}),n.d(t,"bb",function(){return T}),n.d(t,"ab",function(){return P}),n.d(t,"ob",function(){return F}),n.d(t,"pb",function(){return j}),n.d(t,"ib",function(){return W}),n.d(t,"jb",function(){return V}),n.d(t,"ub",function(){return B}),n.d(t,"vb",function(){return H}),n.d(t,"tb",function(){return z}),n.d(t,"rb",function(){return U}),n.d(t,"sb",function(){return K}),n.d(t,"kb",function(){return q}),n.d(t,"qb",function(){return G}),n.d(t,"lb",function(){return Z}),n.d(t,"nb",function(){return Y}),n.d(t,"mb",function(){return X}),n.d(t,"Vb",function(){return $}),n.d(t,"Ib",function(){return Q}),n.d(t,"Hb",function(){return J}),n.d(t,"c",function(){return ee}),n.d(t,"d",function(){return te}),n.d(t,"Lb",function(){return ne}),n.d(t,"Nb",function(){return ie}),n.d(t,"Ob",function(){return oe}),n.d(t,"Mb",function(){return re}),n.d(t,"Jb",function(){return se}),n.d(t,"xb",function(){return ae}),n.d(t,"yb",function(){return ue}),n.d(t,"wb",function(){return le}),n.d(t,"Bb",function(){return ce}),n.d(t,"zb",function(){return de}),n.d(t,"Ab",function(){return he}),n.d(t,"Cb",function(){return pe}),n.d(t,"q",function(){return fe}),n.d(t,"p",function(){return ge}),n.d(t,"M",function(){return me}),n.d(t,"L",function(){return ve}),n.d(t,"G",function(){return _e}),n.d(t,"F",function(){return be}),n.d(t,"z",function(){return ye}),n.d(t,"y",function(){return we}),n.d(t,"o",function(){return Ce}),n.d(t,"x",function(){return Se}),n.d(t,"N",function(){return Le}),n.d(t,"P",function(){return Oe}),n.d(t,"O",function(){return xe}),n.d(t,"Q",function(){return Ne}),n.d(t,"H",function(){return De}),n.d(t,"I",function(){return ke}),n.d(t,"E",function(){return Ie}),n.d(t,"J",function(){return Ee}),n.d(t,"K",function(){return Me}),n.d(t,"r",function(){return Te}),n.d(t,"t",function(){return Pe}),n.d(t,"v",function(){return Re}),n.d(t,"s",function(){return Ae}),n.d(t,"u",function(){return Fe}),n.d(t,"w",function(){return je}),n.d(t,"C",function(){return We}),n.d(t,"A",function(){return Ve}),n.d(t,"B",function(){return Be}),n.d(t,"D",function(){return He}),n.d(t,"n",function(){return ze}),n.d(t,"g",function(){return Ue}),n.d(t,"h",function(){return Ke}),n.d(t,"j",function(){return qe}),n.d(t,"l",function(){return Ge}),n.d(t,"k",function(){return Ze}),n.d(t,"m",function(){return Ye}),n.d(t,"i",function(){return Xe}),n.d(t,"Rb",function(){return $e}),n.d(t,"Sb",function(){return Qe}),n.d(t,"Pb",function(){return Je}),n.d(t,"Qb",function(){return et}),n.d(t,"Fb",function(){return tt}),n.d(t,"Gb",function(){return nt}),n.d(t,"Db",function(){return it}),n.d(t,"f",function(){return ot}),n.d(t,"Eb",function(){return at});var i=n("89cd"),o=n("ceb8"),r=n("308f"),s=n("dff7"),a=n("dd1b"),u=n("5fe7"),l={ColorContribution:"base.contributions.colors"},c=function(){function e(){this._onDidChangeSchema=new r["a"],this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return e.prototype.registerColor=function(e,t,n,i,o){void 0===i&&(i=!1);var r={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:o};this.colorsById[e]=r;var s={type:"string",description:n,format:"color-hex",default:"#ff0000"};return o&&(s.deprecationMessage=o),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e},e.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults){var i=n.defaults[t.type];return lt(i,t)}},e.prototype.getColorSchema=function(){return this.colorSchema},e.prototype.toString=function(){var e=this,t=function(e,t){var n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)};return Object.keys(this.colorsById).sort(t).map(function(t){return"- `"+t+"`: "+e.colorsById[t].description}).join("\n")},e}(),d=new c;function h(e,t,n,i,o){return d.registerColor(e,t,n,i,o)}i["a"].add(l.ColorContribution,d);var p=h("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},s["a"]("foreground","Overall foreground color. This color is only used if not overridden by a component.")),f=h("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},s["a"]("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),g=h("focusBorder",{dark:o["a"].fromHex("#0E639C").transparent(.8),light:o["a"].fromHex("#007ACC").transparent(.4),hc:"#F38518"},s["a"]("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),m=h("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},s["a"]("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),v=h("contrastActiveBorder",{light:null,dark:null,hc:g},s["a"]("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),_=h("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s["a"]("textLinkForeground","Foreground color for links in text.")),b=h("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:o["a"].black},s["a"]("textCodeBlockBackground","Background color for code blocks in text.")),y=h("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},s["a"]("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),w=h("input.background",{dark:"#3C3C3C",light:o["a"].white,hc:o["a"].black},s["a"]("inputBoxBackground","Input box background.")),C=h("input.foreground",{dark:p,light:p,hc:p},s["a"]("inputBoxForeground","Input box foreground.")),S=h("input.border",{dark:null,light:null,hc:m},s["a"]("inputBoxBorder","Input box border.")),L=h("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:m},s["a"]("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),O=h("inputOption.activeBackground",{dark:st(g,.5),light:st(g,.3),hc:null},s["a"]("inputOption.activeBackground","Background color of activated options in input fields.")),x=h("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:o["a"].black},s["a"]("inputValidationInfoBackground","Input validation background color for information severity.")),N=h("inputValidation.infoForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationInfoForeground","Input validation foreground color for information severity.")),D=h("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:m},s["a"]("inputValidationInfoBorder","Input validation border color for information severity.")),k=h("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:o["a"].black},s["a"]("inputValidationWarningBackground","Input validation background color for warning severity.")),I=h("inputValidation.warningForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationWarningForeground","Input validation foreground color for warning severity.")),E=h("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:m},s["a"]("inputValidationWarningBorder","Input validation border color for warning severity.")),M=h("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:o["a"].black},s["a"]("inputValidationErrorBackground","Input validation background color for error severity.")),T=h("inputValidation.errorForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationErrorForeground","Input validation foreground color for error severity.")),P=h("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:m},s["a"]("inputValidationErrorBorder","Input validation border color for error severity.")),R=h("dropdown.background",{dark:"#3C3C3C",light:o["a"].white,hc:o["a"].black},s["a"]("dropdownBackground","Dropdown background.")),A=h("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:o["a"].white},s["a"]("dropdownForeground","Dropdown foreground.")),F=h("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},s["a"]("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),j=h("list.focusForeground",{dark:null,light:null,hc:null},s["a"]("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),W=h("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},s["a"]("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),V=h("list.activeSelectionForeground",{dark:o["a"].white,light:o["a"].white,hc:null},s["a"]("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),B=h("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},s["a"]("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),H=h("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},s["a"]("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),z=h("list.inactiveFocusBackground",{dark:null,light:null,hc:null},s["a"]("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),U=h("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},s["a"]("listHoverBackground","List/Tree background when hovering over items using the mouse.")),K=h("list.hoverForeground",{dark:null,light:null,hc:null},s["a"]("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),q=h("list.dropBackground",{dark:F,light:F,hc:null},s["a"]("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),G=h("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:g},s["a"]("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Z=h("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:o["a"].black},s["a"]("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Y=h("listFilterWidget.outline",{dark:o["a"].transparent,light:o["a"].transparent,hc:"#f38518"},s["a"]("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),X=h("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:m},s["a"]("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),$=h("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},s["a"]("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Q=h("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:o["a"].white},s["a"]("pickerGroupForeground","Quick picker color for grouping labels.")),J=h("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:o["a"].white},s["a"]("pickerGroupBorder","Quick picker color for grouping borders.")),ee=h("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:o["a"].black},s["a"]("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),te=h("badge.foreground",{dark:o["a"].white,light:"#333",hc:o["a"].white},s["a"]("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),ne=h("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},s["a"]("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ie=h("scrollbarSlider.background",{dark:o["a"].fromHex("#797979").transparent(.4),light:o["a"].fromHex("#646464").transparent(.4),hc:st(m,.6)},s["a"]("scrollbarSliderBackground","Scrollbar slider background color.")),oe=h("scrollbarSlider.hoverBackground",{dark:o["a"].fromHex("#646464").transparent(.7),light:o["a"].fromHex("#646464").transparent(.7),hc:st(m,.8)},s["a"]("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),re=h("scrollbarSlider.activeBackground",{dark:o["a"].fromHex("#BFBFBF").transparent(.4),light:o["a"].fromHex("#000000").transparent(.6),hc:m},s["a"]("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),se=h("progressBar.background",{dark:o["a"].fromHex("#0E70C0"),light:o["a"].fromHex("#0E70C0"),hc:m},s["a"]("progressBarBackground","Background color of the progress bar that can show for long running operations.")),ae=h("menu.border",{dark:null,light:null,hc:m},s["a"]("menuBorder","Border color of menus.")),ue=h("menu.foreground",{dark:A,light:p,hc:A},s["a"]("menuForeground","Foreground color of menu items.")),le=h("menu.background",{dark:R,light:R,hc:R},s["a"]("menuBackground","Background color of menu items.")),ce=h("menu.selectionForeground",{dark:V,light:V,hc:V},s["a"]("menuSelectionForeground","Foreground color of the selected menu item in menus.")),de=h("menu.selectionBackground",{dark:W,light:W,hc:W},s["a"]("menuSelectionBackground","Background color of the selected menu item in menus.")),he=h("menu.selectionBorder",{dark:null,light:null,hc:v},s["a"]("menuSelectionBorder","Border color of the selected menu item in menus.")),pe=h("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:m},s["a"]("menuSeparatorBackground","Color of a separator menu item in menus.")),fe=h("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},s["a"]("editorError.foreground","Foreground color of error squigglies in the editor.")),ge=h("editorError.border",{dark:null,light:null,hc:o["a"].fromHex("#E47777").transparent(.8)},s["a"]("errorBorder","Border color of error boxes in the editor.")),me=h("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},s["a"]("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),ve=h("editorWarning.border",{dark:null,light:null,hc:o["a"].fromHex("#FFCC00").transparent(.8)},s["a"]("warningBorder","Border color of warning boxes in the editor.")),_e=h("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},s["a"]("editorInfo.foreground","Foreground color of info squigglies in the editor.")),be=h("editorInfo.border",{dark:null,light:null,hc:o["a"].fromHex("#75BEFF").transparent(.8)},s["a"]("infoBorder","Border color of info boxes in the editor.")),ye=h("editorHint.foreground",{dark:o["a"].fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},s["a"]("editorHint.foreground","Foreground color of hint squigglies in the editor.")),we=h("editorHint.border",{dark:null,light:null,hc:o["a"].fromHex("#eeeeee").transparent(.8)},s["a"]("hintBorder","Border color of hint boxes in the editor.")),Ce=h("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:o["a"].black},s["a"]("editorBackground","Editor background color.")),Se=h("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:o["a"].white},s["a"]("editorForeground","Editor default foreground color.")),Le=h("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},s["a"]("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),Oe=h("editorWidget.foreground",{dark:p,light:p,hc:p},s["a"]("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),xe=h("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:m},s["a"]("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),Ne=h("editorWidget.resizeBorder",{light:null,dark:null,hc:null},s["a"]("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),De=h("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},s["a"]("editorSelectionBackground","Color of the editor selection.")),ke=h("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},s["a"]("editorSelectionForeground","Color of the selected text for high contrast.")),Ie=h("editor.inactiveSelectionBackground",{light:st(De,.5),dark:st(De,.5),hc:st(De,.5)},s["a"]("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ee=h("editor.selectionHighlightBackground",{light:ut(De,Ce,.3,.6),dark:ut(De,Ce,.3,.6),hc:null},s["a"]("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Me=h("editor.selectionHighlightBorder",{light:null,dark:null,hc:v},s["a"]("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Te=h("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},s["a"]("editorFindMatch","Color of the current search match.")),Pe=h("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},s["a"]("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Re=h("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},s["a"]("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ae=h("editor.findMatchBorder",{light:null,dark:null,hc:v},s["a"]("editorFindMatchBorder","Border color of the current search match.")),Fe=h("editor.findMatchHighlightBorder",{light:null,dark:null,hc:v},s["a"]("findMatchHighlightBorder","Border color of the other search matches.")),je=h("editor.findRangeHighlightBorder",{dark:null,light:null,hc:st(v,.4)},s["a"]("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),We=h("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},s["a"]("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Ve=h("editorHoverWidget.background",{light:Le,dark:Le,hc:Le},s["a"]("hoverBackground","Background color of the editor hover.")),Be=h("editorHoverWidget.border",{light:xe,dark:xe,hc:xe},s["a"]("hoverBorder","Border color of the editor hover.")),He=h("editorHoverWidget.statusBarBackground",{dark:rt(Ve,.2),light:ot(Ve,.05),hc:Le},s["a"]("statusBarBackground","Background color of the editor hover status bar.")),ze=h("editorLink.activeForeground",{dark:"#4E94CE",light:o["a"].blue,hc:o["a"].cyan},s["a"]("activeLinkForeground","Color of active links.")),Ue=new o["a"](new o["c"](155,185,85,.2)),Ke=new o["a"](new o["c"](255,0,0,.2)),qe=h("diffEditor.insertedTextBackground",{dark:Ue,light:Ue,hc:null},s["a"]("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Ge=h("diffEditor.removedTextBackground",{dark:Ke,light:Ke,hc:null},s["a"]("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ze=h("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},s["a"]("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Ye=h("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},s["a"]("diffEditorRemovedOutline","Outline color for text that got removed.")),Xe=h("diffEditor.border",{dark:null,light:null,hc:m},s["a"]("diffEditorBorder","Border color between the two text editors.")),$e=h("editor.snippetTabstopHighlightBackground",{dark:new o["a"](new o["c"](124,124,124,.3)),light:new o["a"](new o["c"](10,50,100,.2)),hc:new o["a"](new o["c"](124,124,124,.3))},s["a"]("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Qe=h("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},s["a"]("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Je=h("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},s["a"]("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),et=h("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o["a"](new o["c"](10,50,100,.5)),hc:"#525252"},s["a"]("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),tt=h("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},s["a"]("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),nt=h("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},s["a"]("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),it=h("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},s["a"]("minimapFindMatchHighlight","Minimap marker color for find matches."),!0);function ot(e,t){return function(n){var i=lt(e,n);if(i)return i.darken(t)}}function rt(e,t){return function(n){var i=lt(e,n);if(i)return i.lighten(t)}}function st(e,t){return function(n){var i=lt(e,n);if(i)return i.transparent(t)}}function at(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0,i=e;n<i.length;n++){var o=i[n],r=lt(o,t);if(r)return r}}}function ut(e,t,n,i){return function(r){var s=lt(e,r);if(s){var a=lt(t,r);return a?s.isDarkerThan(a)?o["a"].getLighterColor(s,a,n).transparent(i):o["a"].getDarkerColor(s,a,n).transparent(i):s.transparent(n*i)}}}function lt(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?o["a"].fromHex(e):t.getColor(e):e instanceof o["a"]?e:"function"===typeof e?e(t):void 0}var ct="vscode://schemas/workbench-colors",dt=i["a"].as(a["a"].JSONContribution);dt.registerSchema(ct,d.getColorSchema());var ht=new u["d"](function(){return dt.notifySchemaChanged(ct)},200);d.onDidChangeSchema(function(){ht.isScheduled()||ht.schedule()})},"308f":function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return f}),n.d(t,"f",function(){return g});var i,o=n("fdcc"),r=n("0bfbc"),s=n("a666"),a=n("db88"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){function t(e){return function(t,n,i){void 0===n&&(n=null);var o,r=!1;return o=e(function(e){if(!r)return o?o.dispose():r=!0,t.call(n,e)},null,i),r&&o.dispose(),o}}function n(e,t){return l(function(n,i,o){return void 0===i&&(i=null),e(function(e){return n.call(i,t(e))},null,o)})}function i(e,t){return l(function(n,i,o){return void 0===i&&(i=null),e(function(e){t(e),n.call(i,e)},null,o)})}function o(e,t){return l(function(n,i,o){return void 0===i&&(i=null),e(function(e){return t(e)&&n.call(i,e)},null,o)})}function r(e){return e}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,i){return void 0===n&&(n=null),s["e"].apply(void 0,e.map(function(e){return e(function(e){return t.call(n,e)},null,i)}))}}function u(e,t,i){var o=i;return n(e,function(e){return o=t(o,e),o})}function l(e){var t,n=new d({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function c(e,t,n,i,o){var r;void 0===n&&(n=100),void 0===i&&(i=!1);var s=void 0,a=void 0,u=0,l=new d({leakWarningThreshold:o,onFirstListenerAdd:function(){r=e(function(e){u++,s=t(s,e),i&&!a&&l.fire(s),clearTimeout(a),a=setTimeout(function(){var e=s;s=void 0,a=void 0,(!i||u>1)&&l.fire(e),u=0},n)})},onLastListenerRemove:function(){r.dispose()}});return l.event}function h(e){var i=(new Date).getTime();return n(t(e),function(e){return(new Date).getTime()-i})}function p(e){var t,n=!0;return o(e,function(e){var i=n||e!==t;return n=!1,t=e,i})}function f(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var i=n.slice(),o=e(function(e){i?i.push(e):s.fire(e)}),r=function(){i&&i.forEach(function(e){return s.fire(e)}),i=null},s=new d({onFirstListenerAdd:function(){o||(o=e(function(e){return s.fire(e)}))},onFirstListenerDidAdd:function(){i&&(t?setTimeout(r):r())},onLastListenerRemove:function(){o&&o.dispose(),o=null}});return s.event}e.None=function(){return s["a"].None},e.once=t,e.map=n,e.forEach=i,e.filter=o,e.signal=r,e.any=a,e.reduce=u,e.snapshot=l,e.debounce=c,e.stopwatch=h,e.latch=p,e.buffer=f;var g=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(n(this.event,t))},e.prototype.forEach=function(t){return new e(i(this.event,t))},e.prototype.filter=function(t){return new e(o(this.event,t))},e.prototype.reduce=function(t,n){return new e(u(this.event,t,n))},e.prototype.latch=function(){return new e(p(this.event))},e.prototype.on=function(e,t,n){return this.event(e,t,n)},e.prototype.once=function(e,n,i){return t(this.event)(e,n,i)},e}();function m(e){return new g(e)}function v(e,t,n){void 0===n&&(n=function(e){return e});var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.fire(n.apply(void 0,e))},o=function(){return e.on(t,i)},r=function(){return e.removeListener(t,i)},s=new d({onFirstListenerAdd:o,onLastListenerRemove:r});return s.event}function _(e,t,n){void 0===n&&(n=function(e){return e});var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.fire(n.apply(void 0,e))},o=function(){return e.addEventListener(t,i)},r=function(){return e.removeEventListener(t,i)},s=new d({onFirstListenerAdd:o,onLastListenerRemove:r});return s.event}function b(e){var t=new d,n=!1;return e.then(void 0,function(){return null}).then(function(){n?t.fire(void 0):setTimeout(function(){return t.fire(void 0)},0)}),n=!0,t.event}function y(e){return new Promise(function(n){return t(e)(n)})}e.chain=m,e.fromNodeEventEmitter=v,e.fromDOMEventEmitter=_,e.fromPromise=b,e.toPromise=y})(i||(i={}));var l=-1,c=function(){function e(e,t){void 0===t&&(t=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=t,this._warnCountdown=0}return e.prototype.dispose=function(){this._stacks&&this._stacks.clear()},e.prototype.check=function(e){var t=this,n=l;if("number"===typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var i=(new Error).stack.split("\n").slice(3).join("\n"),o=this._stacks.get(i)||0;if(this._stacks.set(i,o+1),this._warnCountdown-=1,this._warnCountdown<=0){var r;this._warnCountdown=.5*n;var s=0;this._stacks.forEach(function(e,t){(!r||s<e)&&(r=t,s=e)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+e+" listeners already. MOST frequent listener ("+s+"):"),console.warn(r)}return function(){var e=t._stacks.get(i)||0;t._stacks.set(i,e-1)}}},e}(),d=function(){function e(e){this._disposed=!1,this._options=e,this._leakageMon=l>0?new c(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,i,o){t._listeners||(t._listeners=new a["a"]);var r=t._listeners.isEmpty();r&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var u,l,c=t._listeners.push(i?[n,i]:n);return r&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,i),t._leakageMon&&(u=t._leakageMon.check(t._listeners.size)),l={dispose:function(){if(u&&u(),l.dispose=e._noop,!t._disposed&&(c(),t._options&&t._options.onLastListenerRemove)){var n=t._listeners&&!t._listeners.isEmpty();n||t._options.onLastListenerRemove(t)}}},o instanceof s["b"]?o.add(l):Array.isArray(o)&&o.push(l),l}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new a["a"]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);while(this._deliveryQueue.size>0){var i=this._deliveryQueue.shift(),r=i[0],s=i[1];try{"function"===typeof r?r.call(void 0,s):r[0].call(r[1],s)}catch(n){Object(o["e"])(n)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),h=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaused=0,n._eventQueue=new a["a"],n._mergeFn=t&&t.merge,n}return u(t,e),t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(t))}else while(!this._isPaused&&0!==this._eventQueue.size)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):e.prototype.fire.call(this,t))},t}(d),p=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var i=function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)};return Object(s["h"])(Object(r["a"])(i))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}(),f=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,i,o){return e(function(e){var o=t.buffers[t.buffers.length-1];o?o.push(function(){return n.call(i,e)}):n.call(i,e)},void 0,o)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach(function(e){return e()}),n},e}(),g=function(){function e(){var e=this;this.listening=!1,this.inputEvent=i.None,this.inputEventListener=s["a"].None,this.emitter=new d({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}()},"30d5":function(e,t,n){},"30db":function(e,t,n){"use strict";(function(e,i){n.d(t,"g",function(){return m}),n.d(t,"d",function(){return v}),n.d(t,"c",function(){return _}),n.d(t,"e",function(){return b}),n.d(t,"f",function(){return y}),n.d(t,"b",function(){return C}),n.d(t,"h",function(){return L}),n.d(t,"a",function(){return O});var o="en",r=!1,s=!1,a=!1,u=!1,l=!1,c=void 0,d=void 0,h="undefined"!==typeof e&&"undefined"!==typeof e.versions&&"undefined"!==typeof e.versions.electron&&"renderer"===e.type;if("object"!==typeof navigator||h){if("object"===typeof e){r="win32"===e.platform,s="darwin"===e.platform,a="linux"===e.platform,c=o,o;var p=Object({VUE_APP_BUILD_ENV:"emqx",NODE_ENV:"production",BASE_URL:"/"})["VSCODE_NLS_CONFIG"];if(p)try{var f=JSON.parse(p),g=f.availableLanguages["*"];c=f.locale,g||o,f._translationsConfigFile}catch(x){}u=!0}}else d=navigator.userAgent,r=d.indexOf("Windows")>=0,s=d.indexOf("Macintosh")>=0,a=d.indexOf("Linux")>=0,l=!0,c=navigator.language,c;var m=r,v=s,_=a,b=u,y=l,w="object"===typeof self?self:"object"===typeof i?i:{},C=w,S=null;function L(t){return null===S&&(S=C.setImmediate?C.setImmediate.bind(C):"undefined"!==typeof e&&"function"===typeof e.nextTick?e.nextTick.bind(e):C.setTimeout.bind(C)),S(t)}var O=s?2:r?1:3}).call(this,n("f28c"),n("c8ba"))},3170:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n("507c"),o=function(){function e(t){var n=Object(i["d"])(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=Object(i["d"])(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),r=function(){function e(){this._actual=new o(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}()},"31df":function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var i=n("11f7");function o(e,t){void 0===t&&(t={});var n=s(t);return n.textContent=e,n}function r(e,t){void 0===t&&(t={});var n=s(t);return u(n,l(e),t.actionHandler),n}function s(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var a=function(){function e(e){this.source=e,this.index=0}return e.prototype.eos=function(){return this.index>=this.source.length},e.prototype.next=function(){var e=this.peek();return this.advance(),e},e.prototype.peek=function(){return this.source[this.index]},e.prototype.advance=function(){this.index++},e}();function u(e,t,n){var o;if(2===t.type)o=document.createTextNode(t.content||"");else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(5===t.type&&n){var r=document.createElement("a");r.href="#",n.disposeables.add(i["k"](r,"click",function(e){n.callback(String(t.index),e)})),o=r}else 7===t.type?o=document.createElement("br"):1===t.type&&(o=e);o&&e!==o&&e.appendChild(o),o&&Array.isArray(t.children)&&t.children.forEach(function(e){u(o,e,n)})}function l(e){var t={type:1,children:[]},n=0,i=t,o=[],r=new a(e);while(!r.eos()){var s=r.next(),u="\\"===s&&0!==d(r.peek());if(u&&(s=r.next()),!u&&c(s)&&s===r.peek()){r.advance(),2===i.type&&(i=o.pop());var l=d(s);if(i.type===l||5===i.type&&6===l)i=o.pop();else{var h={type:l,children:[]};5===l&&(h.index=n,n++),i.children.push(h),o.push(i),i=h}}else if("\n"===s)2===i.type&&(i=o.pop()),i.children.push({type:7});else if(2!==i.type){var p={type:2,content:s};i.children.push(p),o.push(i),i=p}else i.content+=s}return 2===i.type&&(i=o.pop()),o.length,t}function c(e){return 0!==d(e)}function d(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},"32a4":function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return h});var i=n("dff7"),o=n("308f"),r=n("b707"),s=n("70cb"),a=n("89cd"),u={ModesRegistry:"editor.modesRegistry"},l=function(){function e(){this._onDidChangeLanguages=new o["a"],this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},e.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},e}(),c=new l;a["a"].add(u.ModesRegistry,c);var d="plaintext",h=new r["p"](d,1);c.registerLanguage({id:d,extensions:[".txt",".gitignore"],aliases:[i["a"]("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),s["a"].register(h,{brackets:[["(",")"],["[","]"],["{","}"]]})},"32b8":function(e,t,n){"use strict";n.r(t),n.d(t,"win32",function(){return w}),n.d(t,"posix",function(){return C}),n.d(t,"normalize",function(){return S}),n.d(t,"join",function(){return L}),n.d(t,"relative",function(){return O}),n.d(t,"dirname",function(){return x}),n.d(t,"basename",function(){return N}),n.d(t,"extname",function(){return D}),n.d(t,"sep",function(){return k});var i=n("c317"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=65,s=97,a=90,u=122,l=46,c=47,d=92,h=58,p=63,f=function(e){function t(t,n,i){var o,r=this;"string"===typeof n&&0===n.indexOf("not ")?(o="must not be",n=n.replace(/^not /,"")):o="must be";var s=-1!==t.indexOf(".")?"property":"argument",a='The "'+t+'" '+s+" "+o+" of type "+n;return a+=". Received type "+typeof i,r=e.call(this,a)||this,r.code="ERR_INVALID_ARG_TYPE",r}return o(t,e),t}(Error);function g(e,t){if("string"!==typeof e)throw new f(t,"string",e)}function m(e){return e===c||e===d}function v(e){return e===c}function _(e){return e>=r&&e<=a||e>=s&&e<=u}function b(e,t,n,i){for(var o,r="",s=0,a=-1,u=0,d=0;d<=e.length;++d){if(d<e.length)o=e.charCodeAt(d);else{if(i(o))break;o=c}if(i(o)){if(a===d-1||1===u);else if(a!==d-1&&2===u){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){var h=r.lastIndexOf(n);-1===h?(r="",s=0):(r=r.slice(0,h),s=r.length-1-r.lastIndexOf(n)),a=d,u=0;continue}if(2===r.length||1===r.length){r="",s=0,a=d,u=0;continue}}t&&(r.length>0?r+=n+"..":r="..",s=2)}else r.length>0?r+=n+e.slice(a+1,d):r=e.slice(a+1,d),s=d-a-1;a=d,u=0}else o===l&&-1!==u?++u:u=-1}return r}function y(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}var w={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",o="",r=!1,s=e.length-1;s>=-1;s--){var a=void 0;if(s>=0?a=e[s]:n?(a=i["b"]["="+n]||i["a"](),void 0!==a&&a.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(a=n+"\\")):a=i["a"](),g(a,"path"),0!==a.length){var u=a.length,l=0,c="",d=!1,p=a.charCodeAt(0);if(u>1)if(m(p))if(d=!0,m(a.charCodeAt(1))){for(var f=2,v=f;f<u;++f)if(m(a.charCodeAt(f)))break;if(f<u&&f!==v){var y=a.slice(v,f);for(v=f;f<u;++f)if(!m(a.charCodeAt(f)))break;if(f<u&&f!==v){for(v=f;f<u;++f)if(m(a.charCodeAt(f)))break;f===u?(c="\\\\"+y+"\\"+a.slice(v),l=f):f!==v&&(c="\\\\"+y+"\\"+a.slice(v,f),l=f)}}}else l=1;else _(p)&&a.charCodeAt(1)===h&&(c=a.slice(0,2),l=2,u>2&&m(a.charCodeAt(2))&&(d=!0,l=3));else m(p)&&(l=1,d=!0);if(!(c.length>0&&n.length>0&&c.toLowerCase()!==n.toLowerCase())&&(0===n.length&&c.length>0&&(n=c),r||(o=a.slice(l)+"\\"+o,r=d),n.length>0&&r))break}}return o=b(o,!r,"\\",m),n+(r?"\\":"")+o||"."},normalize:function(e){g(e,"path");var t=e.length;if(0===t)return".";var n,i,o=0,r=!1,s=e.charCodeAt(0);if(t>1)if(m(s))if(r=!0,m(e.charCodeAt(1))){for(var a=2,u=a;a<t;++a)if(m(e.charCodeAt(a)))break;if(a<t&&a!==u){var l=e.slice(u,a);for(u=a;a<t;++a)if(!m(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(m(e.charCodeAt(a)))break;if(a===t)return"\\\\"+l+"\\"+e.slice(u)+"\\";a!==u&&(n="\\\\"+l+"\\"+e.slice(u,a),o=a)}}}else o=1;else _(s)&&e.charCodeAt(1)===h&&(n=e.slice(0,2),o=2,t>2&&m(e.charCodeAt(2))&&(r=!0,o=3));else if(m(s))return"\\";return i=o<t?b(e.slice(o),!r,"\\",m):"",0!==i.length||r||(i="."),i.length>0&&m(e.charCodeAt(t-1))&&(i+="\\"),void 0===n?r?i.length>0?"\\"+i:"\\":i.length>0?i:"":r?i.length>0?n+"\\"+i:n+"\\":i.length>0?n+i:n},isAbsolute:function(e){g(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!m(n)||!!(_(n)&&t>2&&e.charCodeAt(1)===h&&m(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(0===n.length)return".";for(var o=0;o<n.length;++o){var r=n[o];g(r,"path"),r.length>0&&(void 0===e?e=t=r:e+="\\"+r)}if(void 0===e)return".";var s=!0,a=0;if("string"===typeof t&&m(t.charCodeAt(0))){++a;var u=t.length;u>1&&m(t.charCodeAt(1))&&(++a,u>2&&(m(t.charCodeAt(2))?++a:s=!1))}if(s){for(;a<e.length;++a)if(!m(e.charCodeAt(a)))break;a>=2&&(e="\\"+e.slice(a))}return w.normalize(e)},relative:function(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";var n=w.resolve(e),i=w.resolve(t);if(n===i)return"";if(e=n.toLowerCase(),t=i.toLowerCase(),e===t)return"";for(var o=0;o<e.length;++o)if(e.charCodeAt(o)!==d)break;for(var r=e.length;r-1>o;--r)if(e.charCodeAt(r-1)!==d)break;for(var s=r-o,a=0;a<t.length;++a)if(t.charCodeAt(a)!==d)break;for(var u=t.length;u-1>a;--u)if(t.charCodeAt(u-1)!==d)break;for(var l=u-a,c=s<l?s:l,h=-1,p=0;p<=c;++p){if(p===c){if(l>c){if(t.charCodeAt(a+p)===d)return i.slice(a+p+1);if(2===p)return i.slice(a+p)}s>c&&(e.charCodeAt(o+p)===d?h=p:2===p&&(h=3));break}var f=e.charCodeAt(o+p),m=t.charCodeAt(a+p);if(f!==m)break;f===d&&(h=p)}if(p!==c&&-1===h)return i;var v="";for(-1===h&&(h=0),p=o+h+1;p<=r;++p)p!==r&&e.charCodeAt(p)!==d||(0===v.length?v+="..":v+="\\..");return v.length>0?v+i.slice(a+h,u):(a+=h,i.charCodeAt(a)===d&&++a,i.slice(a,u))},toNamespacedPath:function(e){if("string"!==typeof e)return e;if(0===e.length)return"";var t=w.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){var n=t.charCodeAt(2);if(n!==p&&n!==l)return"\\\\?\\UNC\\"+t.slice(2)}}else if(_(t.charCodeAt(0))&&t.charCodeAt(1)===h&&t.charCodeAt(2)===d)return"\\\\?\\"+t;return e},dirname:function(e){g(e,"path");var t=e.length;if(0===t)return".";var n=-1,i=-1,o=!0,r=0,s=e.charCodeAt(0);if(t>1)if(m(s)){if(n=r=1,m(e.charCodeAt(1))){for(var a=2,u=a;a<t;++a)if(m(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(!m(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(m(e.charCodeAt(a)))break;if(a===t)return e;a!==u&&(n=r=a+1)}}}}else _(s)&&e.charCodeAt(1)===h&&(n=r=2,t>2&&m(e.charCodeAt(2))&&(n=r=3));else if(m(s))return e;for(var l=t-1;l>=r;--l)if(m(e.charCodeAt(l))){if(!o){i=l;break}}else o=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename:function(e,t){void 0!==t&&g(t,"ext"),g(e,"path");var n,i=0,o=-1,r=!0;if(e.length>=2){var s=e.charCodeAt(0);_(s)&&e.charCodeAt(1)===h&&(i=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,u=-1;for(n=e.length-1;n>=i;--n){var l=e.charCodeAt(n);if(m(l)){if(!r){i=n+1;break}}else-1===u&&(r=!1,u=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=i;--n)if(m(e.charCodeAt(n))){if(!r){i=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){g(e,"path");var t=0,n=-1,i=0,o=-1,r=!0,s=0;e.length>=2&&e.charCodeAt(1)===h&&_(e.charCodeAt(0))&&(t=i=2);for(var a=e.length-1;a>=t;--a){var u=e.charCodeAt(a);if(m(u)){if(!r){i=a+1;break}}else-1===o&&(r=!1,o=a+1),u===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===i+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!==typeof e)throw new f("pathObject","Object",e);return y("\\",e)},parse:function(e){g(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,i=0,o=e.charCodeAt(0);if(n>1){if(m(o)){if(i=1,m(e.charCodeAt(1))){for(var r=2,s=r;r<n;++r)if(m(e.charCodeAt(r)))break;if(r<n&&r!==s){for(s=r;r<n;++r)if(!m(e.charCodeAt(r)))break;if(r<n&&r!==s){for(s=r;r<n;++r)if(m(e.charCodeAt(r)))break;r===n?i=r:r!==s&&(i=r+1)}}}}else if(_(o)&&e.charCodeAt(1)===h){if(i=2,!(n>2))return t.root=t.dir=e,t;if(m(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(m(o))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));for(var a=-1,u=i,c=-1,d=!0,p=e.length-1,f=0;p>=i;--p)if(o=e.charCodeAt(p),m(o)){if(!d){u=p+1;break}}else-1===c&&(d=!1,c=p+1),o===l?-1===a?a=p:1!==f&&(f=1):-1!==a&&(f=-1);return-1===a||-1===c||0===f||1===f&&a===c-1&&a===u+1?-1!==c&&(t.base=t.name=e.slice(u,c)):(t.name=e.slice(u,a),t.base=e.slice(u,c),t.ext=e.slice(a,c)),t.dir=u>0&&u!==i?e.slice(0,u-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",o=!1,r=e.length-1;r>=-1&&!o;r--){var s=void 0;s=r>=0?e[r]:i["a"](),g(s,"path"),0!==s.length&&(n=s+"/"+n,o=s.charCodeAt(0)===c)}return n=b(n,!o,"/",v),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(g(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return e=b(e,!t,"/",v),0!==e.length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return g(e,"path"),e.length>0&&e.charCodeAt(0)===c},join:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return".";for(var i=0;i<t.length;++i){var o=arguments[i];g(o,"path"),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":C.normalize(e)},relative:function(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if(e=C.resolve(e),t=C.resolve(t),e===t)return"";for(var n=1;n<e.length;++n)if(e.charCodeAt(n)!==c)break;for(var i=e.length,o=i-n,r=1;r<t.length;++r)if(t.charCodeAt(r)!==c)break;for(var s=t.length,a=s-r,u=o<a?o:a,l=-1,d=0;d<=u;++d){if(d===u){if(a>u){if(t.charCodeAt(r+d)===c)return t.slice(r+d+1);if(0===d)return t.slice(r+d)}else o>u&&(e.charCodeAt(n+d)===c?l=d:0===d&&(l=0));break}var h=e.charCodeAt(n+d),p=t.charCodeAt(r+d);if(h!==p)break;h===c&&(l=d)}var f="";for(d=n+l+1;d<=i;++d)d!==i&&e.charCodeAt(d)!==c||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(r+l):(r+=l,t.charCodeAt(r)===c&&++r,t.slice(r))},toNamespacedPath:function(e){return e},dirname:function(e){if(g(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===c,n=-1,i=!0,o=e.length-1;o>=1;--o)if(e.charCodeAt(o)===c){if(!i){n=o;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&g(t,"ext"),g(e,"path");var n,i=0,o=-1,r=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(u===c){if(!r){i=n+1;break}}else-1===a&&(r=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1===--s&&(o=n):(s=-1,o=a))}return i===o?o=a:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!r){i=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){g(e,"path");for(var t=-1,n=0,i=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a!==c)-1===i&&(o=!1,i=s+1),a===l?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){n=s+1;break}}return-1===t||-1===i||0===r||1===r&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==typeof e)throw new f("pathObject","Object",e);return y("/",e)},parse:function(e){g(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0)===c;i?(t.root="/",n=1):n=0;for(var o=-1,r=0,s=-1,a=!0,u=e.length-1,d=0;u>=n;--u){var h=e.charCodeAt(u);if(h!==c)-1===s&&(a=!1,s=u+1),h===l?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!a){r=u+1;break}}return-1===o||-1===s||0===d||1===d&&o===s-1&&o===r+1?-1!==s&&(t.base=t.name=0===r&&i?e.slice(1,s):e.slice(r,s)):(0===r&&i?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(r,o),t.base=e.slice(r,s)),t.ext=e.slice(o,s)),r>0?t.dir=e.slice(0,r-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};C.win32=w.win32=w,C.posix=w.posix=C;var S="win32"===i["c"]?w.normalize:C.normalize,L="win32"===i["c"]?w.join:C.join,O="win32"===i["c"]?w.relative:C.relative,x="win32"===i["c"]?w.dirname:C.dirname,N="win32"===i["c"]?w.basename:C.basename,D="win32"===i["c"]?w.extname:C.extname,k="win32"===i["c"]?w.sep:C.sep},"32f2":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),o=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1},e.prototype.setColorZone=function(e){this._colorZone=e},e.prototype.getColorZones=function(){return this._colorZone},e}(),r=function(){function e(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}return e.prototype.getId2Color=function(){return this._id2Color},e.prototype.setZones=function(e){this._zones=e,this._zones.sort(o.compare)},e.prototype.setLineHeight=function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.setPixelRatio=function(e){this._pixelRatio=e,this._colorZonesInvalid=!0},e.prototype.getDOMWidth=function(){return this._domWidth},e.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},e.prototype.setDOMWidth=function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)},e.prototype.getDOMHeight=function(){return this._domHeight},e.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},e.prototype.setDOMHeight=function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.getOuterHeight=function(){return this._outerHeight},e.prototype.setOuterHeight=function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),o=Math.floor(this._outerHeight),r=n/o,s=Math.floor(4*this._pixelRatio/2),a=[],u=0,l=this._zones.length;u<l;u++){var c=this._zones[u];if(!e){var d=c.getColorZones();if(d){a.push(d);continue}}var h=Math.floor(r*this._getVerticalOffsetForLine(c.startLineNumber)),p=Math.floor(r*(this._getVerticalOffsetForLine(c.endLineNumber)+t)),f=Math.floor((h+p)/2),g=p-f;g<s&&(g=s),f-g<0&&(f=g),f+g>n&&(f=n-g);var m=c.color,v=this._color2Id[m];v||(v=++this._lastAssignedId,this._color2Id[m]=v,this._id2Color[v]=m);var _=new i(f-g,f+g,v);c.setColorZone(_),a.push(_)}return this._colorZonesInvalid=!1,a.sort(i.compare),a},e}()},3352:function(e,t,n){"use strict";var i,o;n.d(t,"d",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"e",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a}),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(i||(i={})),function(e){e[e["Inline"]=1]="Inline"}(o||(o={}));var r=function(){function e(e){this.tabSize=0|e.tabSize,this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},e}(),s=function(){function e(e,t){this.range=e,this.matches=t}return e}(),a=function(){function e(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}return e}()},3359:function(e,t,n){},"33f9":function(e,t,n){self["MonacoEnvironment"]=function(e){function t(e){return e.replace(/\/$/,"")}return{getWorkerUrl:function(n,i){var o="string"===typeof window.__webpack_public_path__?window.__webpack_public_path__:"/";return(o?t(o)+"/":"")+e[i]}}}({editorWorkerService:"static/editor.worker.js",json:"static/json.worker.js"}),n("4816"),n("6e4e"),n("2935"),n("c36f"),n("0b11"),n("77a4"),n("92a6"),n("9f4d"),n("7c3e"),n("d585"),n("e516"),n("fd11"),n("a106"),n("7605"),n("6df4"),n("7082"),n("9f72"),n("821d"),n("958f"),n("0210"),n("aee8"),n("1af3"),n("8090"),n("a222"),n("747f"),n("d844"),n("f17c"),n("5b02"),n("bfe0"),n("5900"),n("4c2d"),n("e2c2"),n("43ad"),n("d741"),n("b574"),n("7a9e"),n("bd50"),n("93ba"),n("6daf"),n("5ed2"),n("b3b2"),n("2d47"),e.exports=n("f33e"),n("a79b"),n("c3d4")},"351f":function(e,t,n){"use strict";n.d(t,"a",function(){return g});n("b329");var i=n("dff7"),o=n("5fe7"),r=n("a666"),s=n("3813"),a=n("6a89"),u=n("b2cc"),l=n("4fc3"),c=n("b7d0"),d=n("303e"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){return function(n,i){t(n,i,e)}},g=function(e){function t(n,i){var o=e.call(this)||this;return o.closeTimeout=3e3,o._messageWidget=o._register(new r["d"]),o._messageListeners=o._register(new r["b"]),o._editor=n,o._visible=t.MESSAGE_VISIBLE.bindTo(i),o._register(o._editor.onDidAttemptReadOnlyEdit(function(){return o._onDidAttemptReadOnlyEdit()})),o}return h(t,e),t.get=function(e){return e.getContribution(t._id)},t.prototype.getId=function(){return t._id},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._visible.reset()},t.prototype.showMessage=function(e,t){var n,i=this;Object(s["a"])(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new v(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return i.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return i.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return i.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return i.closeMessage()})),this._messageListeners.add(new o["e"](function(){return i.closeMessage()},this.closeTimeout)),this._messageListeners.add(this._editor.onMouseMove(function(e){e.target.position&&(n?n.containsPosition(e.target.position)||i.closeMessage():n=new a["a"](t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))},t.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(v.fadeOut(this._messageWidget.value))},t.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(i["a"]("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},t._id="editor.contrib.messageController",t.MESSAGE_VISIBLE=new l["d"]("messageVisible",!1),t=p([f(1,l["c"])],t),t}(r["a"]),m=u["c"].bindToContribution(g.get);Object(u["g"])(new m({id:"leaveEditorMessage",precondition:g.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage()},kbOpts:{weight:130,primary:9}}));var v=function(){function e(e,t,n){var i=t.lineNumber,o=t.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(i,i,0),this._position={lineNumber:i,column:o-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);var s=document.createElement("div");s.classList.add("anchor"),this._domNode.appendChild(s),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return e.fadeOut=function(e){var t,n=function(){e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n)};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}},e.prototype.dispose=function(){this._editor.removeContentWidget(this)},e.prototype.getId=function(){return"messageoverlay"},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return{position:this._position,preference:[1]}},e}();Object(u["h"])(g),Object(c["f"])(function(e,t){var n=e.getColor(d["db"]);if(n){var i=e.type===c["b"]?2:1;t.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+n+"; }"),t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+i+"px solid "+n+"; }")}var o=e.getColor(d["cb"]);o&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+o+"; }");var r=e.getColor(d["eb"]);r&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+r+"; }")})},3742:function(e,t,n){"use strict";n.d(t,"l",function(){return i}),n.d(t,"u",function(){return o}),n.d(t,"C",function(){return r}),n.d(t,"r",function(){return a}),n.d(t,"o",function(){return u}),n.d(t,"p",function(){return l}),n.d(t,"M",function(){return c}),n.d(t,"B",function(){return d}),n.d(t,"G",function(){return h}),n.d(t,"j",function(){return p}),n.d(t,"J",function(){return f}),n.d(t,"m",function(){return g}),n.d(t,"k",function(){return m}),n.d(t,"E",function(){return v}),n.d(t,"D",function(){return _}),n.d(t,"q",function(){return b}),n.d(t,"s",function(){return y}),n.d(t,"A",function(){return w}),n.d(t,"d",function(){return C}),n.d(t,"e",function(){return S}),n.d(t,"y",function(){return L}),n.d(t,"z",function(){return O}),n.d(t,"n",function(){return N}),n.d(t,"K",function(){return k}),n.d(t,"b",function(){return I}),n.d(t,"c",function(){return E}),n.d(t,"w",function(){return M}),n.d(t,"x",function(){return T}),n.d(t,"h",function(){return R}),n.d(t,"f",function(){return F}),n.d(t,"t",function(){return W}),n.d(t,"g",function(){return V}),n.d(t,"v",function(){return B}),n.d(t,"a",function(){return H}),n.d(t,"L",function(){return z}),n.d(t,"H",function(){return U}),n.d(t,"F",function(){return K}),n.d(t,"i",function(){return q}),n.d(t,"I",function(){return G});var i="";function o(e){return!e||"string"!==typeof e||0===e.trim().length}function r(e,t,n){void 0===n&&(n="0");for(var i=""+e,o=[i],r=i.length;r<t;r++)o.push(n);return o.reverse().join("")}var s=/{(\d+)}/g;function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(s,function(e,n){var i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]})}function u(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function l(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function c(e,t){void 0===t&&(t=" ");var n=d(e,t);return h(n,t)}function d(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;var i=0;while(e.indexOf(t,i)===i)i+=n;return e.substring(i)}function h(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;var o=i,r=-1;while(1){if(r=e.lastIndexOf(t,o-1),-1===r||r+n!==o)break;if(0===r)return"";o=r}return e.substring(0,o)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function g(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t}function m(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=l(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function v(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;var t=e.exec("");return!(!t||0!==e.lastIndex)}function _(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function b(e){for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function y(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=t;i<n;i++){var o=e.charCodeAt(i);if(32!==o&&9!==o)return e.substring(t,i)}return e.substring(t,n)}function w(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function C(e,t){return e<t?-1:e>t?1:0}function S(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r){O(o)&&(o+=32),O(r)&&(r+=32);var s=o-r;if(0!==s)return L(o)&&L(r)?s:C(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0}function L(e){return e>=97&&e<=122}function O(e){return e>=65&&e<=90}function x(e){return L(e)||O(e)}function N(e,t){var n=e?e.length:0,i=t?t.length:0;return n===i&&D(e,t)}function D(e,t,n){if(void 0===n&&(n=e.length),"string"!==typeof e||"string"!==typeof t)return!1;for(var i=0;i<n;i++){var o=e.charCodeAt(i),r=t.charCodeAt(i);if(o!==r)if(x(o)&&x(r)){var s=Math.abs(o-r);if(0!==s&&32!==s)return!1}else if(String.fromCharCode(o).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function k(e,t){var n=t.length;return!(t.length>e.length)&&D(e,t,n)}function I(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function E(e,t){var n,i=Math.min(e.length,t.length),o=e.length-1,r=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(o-n)!==t.charCodeAt(r-n))return n;return i}function M(e){return 55296<=e&&e<=56319}function T(e){return 56320<=e&&e<=57343}var P=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function R(e){return P.test(e)}var A=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;function F(e){return A.test(e)}var j=/^[\t\n\r\x20-\x7E]*$/;function W(e){return j.test(e)}function V(e){for(var t=0,n=e.length;t<n;t++)if(B(e.charCodeAt(t)))return!0;return!1}function B(e){return e=+e,e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}var H=String.fromCharCode(65279);function z(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function U(e){return btoa(encodeURIComponent(e))}function K(e,t){for(var n="",i=0;i<t;i++)n+=e;return n}function q(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function G(e){var t=26;return e%=2*t,e<t?String.fromCharCode(97+e):String.fromCharCode(65+e-t)}},3813:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"c",function(){return d});n("5029");var i,o,r,s=n("dff7"),a=n("30db"),u=n("11f7");function l(e){i=document.createElement("div"),i.className="monaco-aria-container",o=document.createElement("div"),o.className="monaco-alert",o.setAttribute("role","alert"),o.setAttribute("aria-atomic","true"),i.appendChild(o),r=document.createElement("div"),r.className="monaco-status",r.setAttribute("role","status"),r.setAttribute("aria-atomic","true"),i.appendChild(r),e.appendChild(i)}function c(e,t){f(o,e,t)}function d(e,t){a["d"]?c(e,t):f(r,e,t)}var h=0,p=void 0;function f(e,t,n){if(i){if(!n)switch(p===t?h++:(p=t,h=0),h){case 0:break;case 1:t=s["a"]("repeated","{0} (occurred again)",t);break;default:t=s["a"]("repeatedNtimes","{0} (occurred {1} times)",t,h);break}u["p"](e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}},"38a2b":function(e,t,n){},"3a19":function(e,t,n){},"3a57":function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return h}),n.d(t,"c",function(){return p});var i=n("dff7"),o=n("308f"),r=n("82c9"),s=n("a666"),a=n("3742"),u=n("9c3e"),l=n("6a89"),c=function(){function e(e,t,n){this.parent=e,this._range=t,this.isProviderFirst=n,this._onRefChanged=new o["a"],this.onRefChanged=this._onRefChanged.event,this.id=u["b"].nextId()}return Object.defineProperty(e.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._onRefChanged.fire(this)},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){return Object(i["a"])("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(r["b"])(this.uri),this.range.startLineNumber,this.range.startColumn)},e}(),d=function(){function e(e){this._modelReference=e}return e.prototype.dispose=function(){Object(s["f"])(this._modelReference)},e.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._modelReference.object.textEditorModel;if(n){var i=e.startLineNumber,o=e.startColumn,r=e.endLineNumber,s=e.endColumn,u=n.getWordUntilPosition({lineNumber:i,column:o-t}),c=new l["a"](i,u.startColumn,i,o),d=new l["a"](r,s,r,Number.MAX_VALUE),h=n.getValueInRange(c).replace(/^\s+/,a["l"]),p=n.getValueInRange(e),f=n.getValueInRange(d).replace(/\s+$/,a["l"]);return{value:h+p+f,highlight:{start:h.length,end:h.length+p.length}}}},e}(),h=function(){function e(e,t){this._parent=e,this._uri=t,this._children=[]}return Object.defineProperty(e.prototype,"id",{get:function(){return this._uri.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){var e=this.children.length;return 1===e?Object(i["a"])("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(r["b"])(this.uri),this.uri.fsPath):Object(i["a"])("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(r["b"])(this.uri),this.uri.fsPath)},e.prototype.resolve=function(e){var t=this;return this._resolved?Promise.resolve(this):Promise.resolve(e.createModelReference(this._uri).then(function(e){var n=e.object;if(!n)throw e.dispose(),new Error;return t._preview=new d(e),t._resolved=!0,t},function(e){return t._children=[],t._resolved=!0,t._loadFailure=e,t}))},e.prototype.dispose=function(){this._preview&&(this._preview.dispose(),this._preview=void 0)},e}(),p=function(){function e(t){var n=this;this._disposables=new s["b"],this.groups=[],this.references=[],this._onDidChangeReferenceRange=new o["a"],this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event;var i,r=t[0];t.sort(e._compareReferences);for(var a=0,u=t;a<u.length;a++){var d=u[a];if(i&&i.uri.toString()===d.uri.toString()||(i=new h(this,d.uri),this.groups.push(i)),0===i.children.length||!l["a"].equalsRange(d.range,i.children[i.children.length-1].range)){var p=new c(i,d.targetSelectionRange||d.range,r===d);this._disposables.add(p.onRefChanged(function(e){return n._onDidChangeReferenceRange.fire(e)})),this.references.push(p),i.children.push(p)}}}return Object.defineProperty(e.prototype,"empty",{get:function(){return 0===this.groups.length},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){return this.empty?Object(i["a"])("aria.result.0","No results found"):1===this.references.length?Object(i["a"])("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(i["a"])("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(i["a"])("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},e.prototype.nextOrPreviousReference=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.length,r=n.parent.groups.length;return 1===r||t&&i+1<o||!t&&i>0?(i=t?(i+1)%o:(i+o-1)%o,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%r,n.parent.groups[i].children[0]):(i=(i+r-1)%r,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))},e.prototype.nearestReference=function(e,t){var n=this.references.map(function(n,i){return{idx:i,prefixLen:a["b"](n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)}}).sort(function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0})[0];if(n)return this.references[n.idx]},e.prototype.firstReference=function(){for(var e=0,t=this.references;e<t.length;e++){var n=t[e];if(n.isProviderFirst)return n}return this.references[0]},e.prototype.dispose=function(){Object(s["f"])(this.groups),this._disposables.dispose(),this.groups.length=0},e._compareReferences=function(e,t){var n=e.uri.toString(),i=t.uri.toString();return n<i?-1:n>i?1:l["a"].compareRangesUsingStarts(e.range,t.range)},e}()},"3d37":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a});var i=n("3742"),o=n("32b8");function r(e){return e.replace(/[\\/]/g,o["posix"].sep)}function s(e,t,n,r){if(void 0===r&&(r=o["sep"]),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){var s=Object(i["K"])(e,t);if(!s)return!1;if(t.length===e.length)return!0;var a=t.length;return t.charAt(t.length-1)===r&&a--,e.charAt(a)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}function a(e){return e>=65&&e<=90||e>=97&&e<=122}},4035:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"d",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return h});var i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function o(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function r(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}var s=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},e.prototype.next=function(){return this._pos+=1,this},e.prototype.hasNext=function(){return this._pos<this._value.length-1},e.prototype.cmp=function(e){var t=e.charCodeAt(0),n=this._value.charCodeAt(this._pos);return t-n},e.prototype.value=function(){return this._value[this._pos]},e}(),a=function(){function e(){}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this},e.prototype.cmp=function(e){var t=0,n=e.length,i=this._from;while(t<n&&i<this._to){var o=e.charCodeAt(t)-this._value.charCodeAt(i);if(0!==o)return o;t+=1,i+=1}return n===this._to-this._from?0:t<n?-1:1},e.prototype.value=function(){return this._value.substring(this._from,this._to)},e}(),u=function(){function e(){}return e}(),l=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new a)},e.forStrings=function(){return new e(new s)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,t){var n,i=this._iter.reset(e);this._root||(this._root=new u,this._root.segment=i.value()),n=this._root;while(1){var o=i.cmp(n.segment);if(o>0)n.left||(n.left=new u,n.left.segment=i.value()),n=n.left;else if(o<0)n.right||(n.right=new u,n.right.segment=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new u,n.mid.segment=i.value()),n=n.mid}}var r=n.value;return n.value=t,n.key=e,r},e.prototype.get=function(e){var t=this._iter.reset(e),n=this._root;while(n){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},e.prototype.findSubstr=function(e){var t=this._iter.reset(e),n=this._root,i=void 0;while(n){var o=t.cmp(n.segment);if(o>0)n=n.left;else if(o<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}(),c=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e}(),d=function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=0);var i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.forEach=function(e,t){var n=this._head;while(n)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){var t=this._head,n=this.size;while(t&&n>e)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;n=e.next,i=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),e},e}(),h=function(e){function t(t,n){void 0===n&&(n=1);var i=e.call(this)||this;return i._limit=t,i._ratio=Math.min(Math.max(0,n),1),i}return i(t,e),t.prototype.get=function(t){return e.prototype.get.call(this,t,2)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,0)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,2),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(d)},4153:function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"a",function(){return b}),n.d(t,"c",function(){return y}),n.d(t,"e",function(){return w}),n.d(t,"d",function(){return x}),n.d(t,"f",function(){return D});var i,o=n("5fe7"),r=n("aa3d"),s=n("fdcc"),a=n("b2cc"),u=n("b707"),l=n("4fc3"),c=n("2504"),d=n("6a89"),h=n("7e93"),p=n("a666"),f=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},g=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},m=void 0,v={Visible:new l["d"]("suggestWidgetVisible",!1),MultipleSuggestions:new l["d"]("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new l["d"]("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new l["d"]("acceptSuggestionOnEnter",!0)},_=function(){function e(e,t,n,i,o){this.position=e,this.completion=t,this.container=n,this.provider=i,this.score=h["a"].Default,this.distance=0,this.labelLow=t.label.toLowerCase(),this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase();var a,u=i.resolveCompletionItem;"function"!==typeof u?this.resolve=function(){return Promise.resolve()}:this.resolve=function(n){if(!a){var l=!1;a=Promise.resolve(u.call(i,o,e,t,n)).then(function(e){Object(r["a"])(t,e),l=!0},function(e){Object(s["d"])(e)&&(a=void 0)}),n.onCancellationRequested(function(){l||(a=void 0)})}return a}}return e}(),b=function(){function e(e,t,n){void 0===e&&(e=2),void 0===t&&(t=new Set),void 0===n&&(n=new Set),this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n}return e.default=new e,e}();function y(){return i}function w(e,t,n,r,a){void 0===n&&(n=b.default),void 0===r&&(r={triggerKind:0}),void 0===a&&(a=c["a"].None);var l=e.getWordUntilPosition(t),h=new d["a"](t.lineNumber,l.startColumn,t.lineNumber,l.endColumn);t=t.clone();var f=u["d"].orderedGroups(e);!n.kindFilter.has(25)&&i&&f.unshift([i]);var g=[],m=new p["b"],v=!1,y=f.map(function(o){return function(){return Promise.all(o.map(function(o){if(!(n.providerFilter.size>0)||n.providerFilter.has(o))return Promise.resolve(o.provideCompletionItems(e,t,r,a)).then(function(r){var s=g.length;if(r){for(var a=0,u=r.suggestions||[];a<u.length;a++){var l=u[a];n.kindFilter.has(l.kind)||(l.range||(l.range=h),g.push(new _(t,l,r,o,e)))}Object(p["g"])(r)&&m.add(r)}s!==g.length&&o!==i&&(v=!0)},s["f"])}))}}),w=Object(o["h"])(y,function(){return v||a.isCancellationRequested}).then(function(){return a.isCancellationRequested?(m.dispose(),Promise.reject(Object(s["a"])())):g.sort(x(n.snippetSortOrder))});return w}function C(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.completion.label<t.completion.label?-1:e.completion.label>t.completion.label?1:e.completion.kind-t.completion.kind}function S(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return C(e,t)}function L(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return C(e,t)}var O=new Map;function x(e){return O.get(e)}O.set(0,S),O.set(2,L),O.set(1,C),Object(a["e"])("_executeCompletionItemProvider",function(e,t,n){return f(m,void 0,void 0,function(){var i,o,r,s,a,u,l,d;return g(this,function(h){switch(h.label){case 0:return i={incomplete:!1,suggestions:[]},o=new p["b"],r=[],s=n["maxItemsToResolve"]||0,[4,w(e,t)];case 1:for(a=h.sent(),u=0,l=a;u<l.length;u++)d=l[u],r.length<s&&r.push(d.resolve(c["a"].None)),i.incomplete=i.incomplete||d.container.incomplete,i.suggestions.push(d.completion),Object(p["g"])(d.container)&&o.add(d.container);h.label=2;case 2:return h.trys.push([2,,4,5]),[4,Promise.all(r)];case 3:return h.sent(),[2,i];case 4:return setTimeout(function(){return o.dispose()},100),[7];case 5:return[2]}})})});var N=new(function(){function e(){this.onlyOnceSuggestions=[]}return e.prototype.provideCompletionItems=function(){var e=this.onlyOnceSuggestions.slice(0),t={suggestions:e};return this.onlyOnceSuggestions.length=0,t},e}());function D(e,t){setTimeout(function(){var n;(n=N.onlyOnceSuggestions).push.apply(n,t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(N))},0)}u["d"].register("*",N)},"41a01":function(e,t,n){},"42e3":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("308f"),o=n("a666"),r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(){function e(e,t,n,i,o,r){e|=0,t|=0,n|=0,i|=0,o|=0,r|=0,e<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),r+i>o&&(r=o-i),r<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=o,this.scrollTop=r}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e("undefined"!==typeof t.width?t.width:this.width,"undefined"!==typeof t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,"undefined"!==typeof t.height?t.height:this.height,"undefined"!==typeof t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,"undefined"!==typeof t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,"undefined"!==typeof t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:i,heightChanged:o,scrollHeightChanged:r,scrollTopChanged:s}},e}(),a=function(e){function t(t,n){var o=e.call(this)||this;return o._onScroll=o._register(new i["a"]),o.onScroll=o._onScroll.event,o._smoothScrollDuration=t,o._scheduleAtNextAnimationFrame=n,o._state=new s(0,0,0,0,0,0),o._smoothScrolling=null,o}return r(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=i}else{n=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})},t.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})}},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(o["a"]),u=function(){function e(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}return e}();function l(e,t){var n=t-e;return function(t){return e+n*p(t)}}function c(e,t,n){return function(i){return i<n?e(i/n):t((i-n)/(1-n))}}var d=function(){function e(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,n){var i=Math.abs(e-t);if(i>2.5*n){var o=void 0,r=void 0;return e<t?(o=e+.75*n,r=t-.75*n):(o=e-.75*n,r=t+.75*n),c(l(e,o),l(r,t),.33)}return l(e,t)},e.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},e.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()},e.prototype.tick=function(){return this._tick(Date.now())},e.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),i=this.scrollTop(t);return new u(n,i,!1)}return new u(this.to.scrollLeft,this.to.scrollTop,!0)},e.prototype.combine=function(t,n,i){return e.start(t,n,i)},e.start=function(t,n,i){i+=10;var o=Date.now()-10;return new e(t,n,o,i)},e}();function h(e){return Math.pow(e,3)}function p(e){return 1-h(1-e)}},"42f0":function(e,t,n){},"438a":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("6d8e");function o(e){var t=JSON.parse(e);return t=r(t,0),t}function r(e,t){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return i["a"].revive(e);case 2:return new RegExp(e.source,e.flags)}for(var n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=r(e[n],t+1))}return e}},"43ad":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("fdcc"),r=n("4fc3"),s=n("b539"),a=n("b2cc"),u=n("c101"),l=(n("0632"),n("a666")),c=n("7061"),d=n("6a89"),h=n("303e"),p=new r["d"]("renameInputVisible",!1),f=function(){function e(e,t,n){var i=this;this.themeService=t,this._disposables=new l["b"],this.allowEditorOverflow=!0,this._currentAcceptInput=null,this._currentCancelInput=null,this._visibleContextKey=p.bindTo(n),this._editor=e,this._editor.addContentWidget(this),this._disposables.add(e.onDidChangeConfiguration(function(e){e.fontInfo&&i.updateFont()})),this._disposables.add(t.onThemeChange(function(e){return i.onThemeChange(e)}))}return e.prototype.onThemeChange=function(e){this.updateStyles(e)},e.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},e.prototype.getId=function(){return"__renameInputWidget"},e.prototype.getDomNode=function(){return this._domNode||(this._inputField=document.createElement("input"),this._inputField.className="rename-input",this._inputField.type="text",this._inputField.setAttribute("aria-label",Object(i["a"])("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode=document.createElement("div"),this._domNode.style.height=this._editor.getConfiguration().lineHeight+"px",this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputField),this.updateFont(),this.updateStyles(this.themeService.getTheme())),this._domNode},e.prototype.updateStyles=function(e){if(this._inputField){var t=e.getColor(h["W"]),n=e.getColor(h["Y"]),i=e.getColor(h["Wb"]),o=e.getColor(h["X"]);this._inputField.style.backgroundColor=t?t.toString():null,this._inputField.style.color=n?n.toString():null,this._inputField.style.borderWidth=o?"1px":"0px",this._inputField.style.borderStyle=o?"solid":"none",this._inputField.style.borderColor=o?o.toString():"none",this._domNode.style.boxShadow=i?" 0 2px 8px "+i:null}},e.prototype.updateFont=function(){if(this._inputField){var e=this._editor.getConfiguration().fontInfo;this._inputField.style.fontFamily=e.fontFamily,this._inputField.style.fontWeight=e.fontWeight,this._inputField.style.fontSize=e.fontSize+"px"}},e.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},e.prototype.acceptInput=function(){this._currentAcceptInput&&this._currentAcceptInput()},e.prototype.cancelInput=function(e){this._currentCancelInput&&this._currentCancelInput(e)},e.prototype.getInput=function(e,t,n,i){var o=this;this._position=new c["a"](e.startLineNumber,e.startColumn),this._inputField.value=t,this._inputField.setAttribute("selectionStart",n.toString()),this._inputField.setAttribute("selectionEnd",i.toString()),this._inputField.size=Math.max(1.1*(e.endColumn-e.startColumn),20);var r=new l["b"],s=function(){r.dispose(),o._hide()};return new Promise(function(n){o._currentCancelInput=function(e){return o._currentAcceptInput=null,o._currentCancelInput=null,n(e),!0},o._currentAcceptInput=function(){0!==o._inputField.value.trim().length&&o._inputField.value!==t?(o._currentAcceptInput=null,o._currentCancelInput=null,n(o._inputField.value)):o.cancelInput(!0)};var i=function(){var t=o._editor.getPosition();t&&d["a"].containsPosition(e,t)||o.cancelInput(!0)};r.add(o._editor.onDidChangeCursorSelection(i)),r.add(o._editor.onDidBlurEditorWidget(function(){return o.cancelInput(!1)})),o._show()}).then(function(e){return s(),e},function(e){return s(),Promise.reject(e)})},e.prototype._show=function(){var e=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(function(){e._inputField.focus(),e._inputField.setSelectionRange(parseInt(e._inputField.getAttribute("selectionStart")),parseInt(e._inputField.getAttribute("selectionEnd")))},100)},e.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},e}(),g=n("b7d0"),m=n("b707"),v=n("3813"),_=n("351f"),b=n("bc04"),y=n("b0cd"),w=n("c7f5"),C=n("6d8e"),S=n("5717"),L=n("2504"),O=n("5fe7");n.d(t,"rename",function(){return M}),n.d(t,"RenameAction",function(){return P});var x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},D=function(e,t){return function(n,i){t(n,i,e)}},k=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},I=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},E=function(){function e(e,t){this.model=e,this.position=t,this._providers=m["t"].ordered(e)}return e.prototype.hasProvider=function(){return this._providers.length>0},e.prototype.resolveRenameLocation=function(e){return k(this,void 0,void 0,function(){var t,n,i;return I(this,function(o){switch(o.label){case 0:return t=this._providers[0],t?t.resolveRenameLocation?[4,t.resolveRenameLocation(this.model,this.position,e)]:[3,2]:[2,void 0];case 1:n=o.sent(),o.label=2;case 2:return!n&&(i=this.model.getWordAtPosition(this.position),i)?[2,{range:new d["a"](this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word}]:[2,n]}})})},e.prototype.provideRenameEdits=function(e,t,n,o){return k(this,void 0,void 0,function(){var r,s;return I(this,function(a){switch(a.label){case 0:return r=this._providers[t],r?[4,r.provideRenameEdits(this.model,this.position,e,o)]:[2,{edits:[],rejectReason:n.join("\n")}];case 1:return s=a.sent(),s?s.rejectReason?[2,this.provideRenameEdits(e,t+1,n.concat(s.rejectReason),o)]:[2,s]:[2,this.provideRenameEdits(e,t+1,n.concat(i["a"]("no result","No result.")),o)]}})})},e}();function M(e,t,n){return k(this,void 0,void 0,function(){return I(this,function(i){return[2,new E(e,t).provideRenameEdits(n,0,[],L["a"].None)]})})}var T=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;return a.editor=t,a._notificationService=n,a._bulkEditService=i,a._progressService=o,a._contextKeyService=r,a._themeService=s,a._renameOperationIdPool=1,a._register(a.editor.onDidChangeModel(function(){return a.onModelChanged()})),a._register(a.editor.onDidChangeModelLanguage(function(){return a.onModelChanged()})),a._register(a.editor.onDidChangeCursorSelection(function(){return a.onModelChanged()})),a}return x(t,e),t.get=function(e){return e.getContribution(t.ID)},Object.defineProperty(t.prototype,"renameInputField",{get:function(){return this._renameInputField||(this._renameInputField=this._register(new f(this.editor,this._themeService,this._contextKeyService))),this._renameInputField},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return t.ID},t.prototype.run=function(){return k(this,void 0,void 0,function(){var e,t=this;return I(this,function(n){return this._activeRename&&this._activeRename.operation.cancel(),e=this._renameOperationIdPool++,this._activeRename={id:e,operation:Object(O["f"])(function(n){return t.doRename(n,e)})},[2,this._activeRename.operation]})})},t.prototype.doRename=function(e,t){return k(this,void 0,void 0,function(){var n,o,r,s,a,u,l,c,h=this;return I(this,function(p){switch(p.label){case 0:if(!this.editor.hasModel())return[2,void 0];if(n=this.editor.getPosition(),o=new E(this.editor.getModel(),n),!o.hasProvider())return[2,void 0];p.label=1;case 1:return p.trys.push([1,3,,4]),s=o.resolveRenameLocation(e),this._progressService.showWhile(s,250),[4,s];case 2:return r=p.sent(),[3,4];case 3:return a=p.sent(),_["a"].get(this.editor).showMessage(a||i["a"]("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),n),[2,void 0];case 4:return r?r.rejectReason?(_["a"].get(this.editor).showMessage(r.rejectReason,n),[2,void 0]):this._activeRename&&this._activeRename.id===t?(u=this.editor.getSelection(),l=0,c=r.text.length,d["a"].isEmpty(u)||d["a"].spansMultipleLines(u)||!d["a"].containsRange(r.range,u)||(l=Math.max(0,u.startColumn-r.range.startColumn),c=Math.min(r.range.endColumn,u.endColumn)-r.range.startColumn),[2,this.renameInputField.getInput(r.range,r.text,l,c).then(function(t){if("boolean"!==typeof t){h.editor.focus();var n=new b["a"](h.editor,15),s=Promise.resolve(o.provideRenameEdits(t,0,[],e).then(function(e){if(h.editor.hasModel()){if(!e.rejectReason)return h._bulkEditService.apply(e,{editor:h.editor}).then(function(e){e.ariaSummary&&Object(v["a"])(i["a"]("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",r.text,t,e.ariaSummary))});n.validate(h.editor)?_["a"].get(h.editor).showMessage(e.rejectReason,h.editor.getPosition()):h._notificationService.info(e.rejectReason)}},function(e){return h._notificationService.error(i["a"]("rename.failed","Rename failed to execute.")),Promise.reject(e)}));return h._progressService.showWhile(s,250),s}t&&h.editor.focus()})]):[2,void 0]:[2,void 0]}})})},t.prototype.acceptRenameInput=function(){this._renameInputField&&this._renameInputField.acceptInput()},t.prototype.cancelRenameInput=function(){this._renameInputField&&this._renameInputField.cancelInput(!0)},t.prototype.onModelChanged=function(){this._activeRename&&(this._activeRename.operation.cancel(),this._activeRename=void 0)},t.ID="editor.contrib.renameController",t=N([D(1,y["a"]),D(2,w["a"]),D(3,s["a"]),D(4,r["c"]),D(5,g["c"])],t),t}(l["a"]),P=function(e){function t(){return e.call(this,{id:"editor.action.rename",label:i["a"]("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:r["a"].and(u["a"].writable,u["a"].hasRenameProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:60,weight:100},menuOpts:{group:"1_modification",order:1.1}})||this}return x(t,e),t.prototype.runCommand=function(t,n){var i=this,r=t.get(S["a"]),s=Array.isArray(n)&&n||[void 0,void 0],a=s[0],u=s[1];return C["a"].isUri(a)&&c["a"].isIPosition(u)?r.openCodeEditor({resource:a},r.getActiveCodeEditor()).then(function(e){e&&(e.setPosition(u),e.invokeWithinContext(function(t){return i.reportTelemetry(t,e),i.run(t,e)}))},o["e"]):e.prototype.runCommand.call(this,t,n)},t.prototype.run=function(e,t){var n=T.get(t);return n?n.run():Promise.resolve()},t}(a["b"]);Object(a["h"])(T),Object(a["f"])(P);var R=a["c"].bindToContribution(T.get);Object(a["g"])(new R({id:"acceptRenameInput",precondition:p,handler:function(e){return e.acceptRenameInput()},kbOpts:{weight:199,kbExpr:u["a"].focus,primary:3}})),Object(a["g"])(new R({id:"cancelRenameInput",precondition:p,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:199,kbExpr:u["a"].focus,primary:9,secondary:[1033]}})),Object(a["e"])("_executeDocumentRenameProvider",function(e,t,n){var i=n.newName;if("string"!==typeof i)throw Object(o["b"])("newName");return M(e,t,i)})},"44c7":function(e,t,n){},"469c":function(e,t,n){"use strict";var i=n("dff7"),o=n("ef8e"),r=n("c4e3"),s=n("5aa5"),a=n("ee56"),u=n("11f7"),l=(n("abf2"),n("aa3d")),c=n("8b4e"),d=u["a"],h=function(){function e(e,t,n){this.os=t,this.options=n,this.domNode=u["m"](e,d(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}return e.prototype.set=function(t,n){this.didEverRender&&this.keybinding===t&&e.areSame(this.matches,n)||(this.keybinding=t,this.matches=n,this.render())},e.prototype.render=function(){if(u["p"](this.domNode),this.keybinding){var e=this.keybinding.getParts(),t=e[0],n=e[1];t&&this.renderPart(this.domNode,t,this.matches?this.matches.firstPart:null),n&&(u["m"](this.domNode,d("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,n,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},e.prototype.renderPart=function(e,t,n){var i=c["b"].modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,i.ctrlKey,Boolean(n&&n.ctrlKey),i.separator),t.shiftKey&&this.renderKey(e,i.shiftKey,Boolean(n&&n.shiftKey),i.separator),t.altKey&&this.renderKey(e,i.altKey,Boolean(n&&n.altKey),i.separator),t.metaKey&&this.renderKey(e,i.metaKey,Boolean(n&&n.metaKey),i.separator);var o=t.keyLabel;o&&this.renderKey(e,o,Boolean(n&&n.keyCode),"")},e.prototype.renderKey=function(e,t,n,i){u["m"](e,d("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),i&&u["m"](e,d("span.monaco-keybinding-key-separator",void 0,i))},e.prototype.renderUnbound=function(e){u["m"](e,d("span.monaco-keybinding-key",void 0,Object(i["a"])("unbound","Unbound")))},e.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&Object(l["e"])(e.firstPart,t.firstPart)&&Object(l["e"])(e.chordPart,t.chordPart)},e}(),p=n("30db"),f=n("e8e3");n.d(t,"a",function(){return v}),n.d(t,"b",function(){return _}),n.d(t,"c",function(){return S});var g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=0,v=function(){function e(e){void 0===e&&(e=[]),this.id=(m++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}return e.prototype.getId=function(){return this.id},e.prototype.getLabel=function(){},e.prototype.getLabelOptions=function(){},e.prototype.getAriaLabel=function(){return Object(f["d"])([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},e.prototype.getDetail=function(){},e.prototype.getIcon=function(){},e.prototype.getDescription=function(){},e.prototype.getTooltip=function(){},e.prototype.getDescriptionTooltip=function(){},e.prototype.getKeybinding=function(){},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},e.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},e.prototype.run=function(e,t){return!1},e}(),_=function(e){function t(t,n,i){var o=e.call(this)||this;return o.entry=t,o.groupLabel=n,o.withBorder=i,o}return g(t,e),t.prototype.getGroupLabel=function(){return this.groupLabel},t.prototype.setGroupLabel=function(e){this.groupLabel=e},t.prototype.showBorder=function(){return!!this.withBorder},t.prototype.setShowBorder=function(e){this.withBorder=e},t.prototype.getLabel=function(){return this.entry?this.entry.getLabel():e.prototype.getLabel.call(this)},t.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():e.prototype.getLabelOptions.call(this)},t.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():e.prototype.getAriaLabel.call(this)},t.prototype.getDetail=function(){return this.entry?this.entry.getDetail():e.prototype.getDetail.call(this)},t.prototype.getIcon=function(){return this.entry?this.entry.getIcon():e.prototype.getIcon.call(this)},t.prototype.getDescription=function(){return this.entry?this.entry.getDescription():e.prototype.getDescription.call(this)},t.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():e.prototype.getHighlights.call(this)},t.prototype.isHidden=function(){return this.entry?this.entry.isHidden():e.prototype.isHidden.call(this)},t.prototype.setHighlights=function(t,n,i){this.entry?this.entry.setHighlights(t,n,i):e.prototype.setHighlights.call(this,t,n,i)},t.prototype.run=function(t,n){return this.entry?this.entry.run(t,n):e.prototype.run.call(this,t,n)},t}(v),b=function(){function e(){}return e.prototype.hasActions=function(e,t){return!1},e.prototype.getActions=function(e,t){return null},e}(),y="quickOpenEntry",w="quickOpenEntryGroup",C=function(){function e(e,t){void 0===e&&(e=new b),this.actionProvider=e,this.actionRunner=t}return e.prototype.getHeight=function(e){return e.getDetail()?44:22},e.prototype.getTemplateId=function(e){return e instanceof _?w:y},e.prototype.renderTemplate=function(e,t,n){var i=document.createElement("div");u["f"](i,"sub-content"),t.appendChild(i);var o=u["a"](".quick-open-row"),l=u["a"](".quick-open-row"),c=u["a"](".quick-open-entry",void 0,o,l);i.appendChild(c);var d=document.createElement("span");o.appendChild(d);var f=new r["a"](o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportOcticons:!0}),g=document.createElement("span");o.appendChild(g),u["f"](g,"quick-open-entry-keybinding");var m=new h(g,p["a"]),v=document.createElement("div");l.appendChild(v),u["f"](v,"quick-open-entry-meta");var _,b=new a["a"](v,!0);e===w&&(_=document.createElement("div"),u["f"](_,"results-group"),t.appendChild(_)),u["f"](t,"actions");var y=document.createElement("div");u["f"](y,"primary-action-bar"),t.appendChild(y);var C=new s["a"](y,{actionRunner:this.actionRunner});return{container:t,entry:c,icon:d,label:f,detail:b,keybinding:m,group:_,actionBar:C}},e.prototype.renderElement=function(e,t,n,i){this.actionProvider.hasActions(null,e)?u["f"](n.container,"has-actions"):u["I"](n.container,"has-actions"),n.actionBar.context=e;var r=this.actionProvider.getActions(null,e);if(n.actionBar.isEmpty()&&r&&r.length>0?n.actionBar.push(r,{icon:!0,label:!1}):n.actionBar.isEmpty()||r&&0!==r.length||n.actionBar.clear(),e instanceof _&&e.getGroupLabel()?u["f"](n.container,"has-group-label"):u["I"](n.container,"has-group-label"),e instanceof _){var s=e,a=n;s.showBorder()?(u["f"](a.container,"results-group-separator"),i.pickerGroupBorder&&(a.container.style.borderTopColor=i.pickerGroupBorder.toString())):(u["I"](a.container,"results-group-separator"),a.container.style.borderTopColor=null);var l=s.getGroupLabel()||"";a.group&&(a.group.textContent=l,i.pickerGroupForeground&&(a.group.style.color=i.pickerGroupForeground.toString()))}if(e instanceof v){var c=e.getHighlights(),d=c[0],h=c[1],p=c[2],f=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=f;var g=e.getLabelOptions()||Object.create(null);g.matches=d||[],g.title=e.getTooltip(),g.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),g.descriptionMatches=h||[],n.label.setLabel(o["m"](e.getLabel()),e.getDescription(),g),n.detail.set(e.getDetail(),p),n.keybinding.set(e.getKeybinding())}},e.prototype.disposeTemplate=function(e,t){t.actionBar.dispose(),t.actionBar=null,t.container=null,t.entry=null,t.keybinding=null,t.detail=null,t.group=null,t.icon=null,t.label.dispose(),t.label=null},e}(),S=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new b),this._entries=e,this._dataSource=this,this._renderer=new C(t),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(e.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),e.prototype.getId=function(e){return e.getId()},e.prototype.getLabel=function(e){return o["n"](e.getLabel())},e.prototype.getAriaLabel=function(e){var t=e.getAriaLabel();return t?i["a"]("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):i["a"]("quickOpenAriaLabel","picker")},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}()},4779:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var i=n("0a0f"),o=n("4fc3"),r=Object(i["c"])("accessibilityService"),s=new o["d"]("accessibilityModeEnabled",!1)},"47cb":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("0a0f"),o="label",r=Object(i["c"])(o)},4816:function(e,t,n){"use strict";n.r(t);n("41a01");var i=n("0f70"),o=n("11f7"),r=n("6653"),s=n("31df"),a=n("3813"),u=n("1b7d"),l=n("a666"),c=n("30db"),d=n("3742"),h=n("6d8e"),p=n("b2cc"),f=n("c101"),g=n("93ba"),m=n("4fc3"),v=n("0a0f"),_=n("6dec"),b=n("5bd7"),y=n("303e"),w=n("b7d0"),C=n("03d9"),S=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),L=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},O=function(e,t){return function(n,i){t(n,i,e)}},x=new m["d"]("accessibilityHelpWidgetVisible",!1),N=function(e){function t(t,n){var i=e.call(this)||this;return i._editor=t,i._widget=i._register(n.createInstance(k,i._editor)),i}return S(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.show=function(){this._widget.show()},t.prototype.hide=function(){this._widget.hide()},t.ID="editor.contrib.accessibilityHelpController",t=L([O(1,v["a"])],t),t}(l["a"]);function D(e,t){return e&&0!==e.length?1===e.length?t?d["r"](C["a"].singleSelectionRange,e[0].positionLineNumber,e[0].positionColumn,t):d["r"](C["a"].singleSelection,e[0].positionLineNumber,e[0].positionColumn):t?d["r"](C["a"].multiSelectionRange,e.length,t):e.length>0?d["r"](C["a"].multiSelection,e.length):"":C["a"].noSelection}var k=function(e){function t(t,n,i,s){var u=e.call(this)||this;return u._contextKeyService=n,u._keybindingService=i,u._openerService=s,u._editor=t,u._isVisibleKey=x.bindTo(u._contextKeyService),u._domNode=Object(r["b"])(document.createElement("div")),u._domNode.setClassName("accessibilityHelpWidget"),u._domNode.setDisplay("none"),u._domNode.setAttribute("role","dialog"),u._domNode.setAttribute("aria-hidden","true"),u._contentDomNode=Object(r["b"])(document.createElement("div")),u._contentDomNode.setAttribute("role","document"),u._domNode.appendChild(u._contentDomNode),u._isVisible=!1,u._register(u._editor.onDidLayoutChange(function(){u._isVisible&&u._layout()})),u._register(o["k"](u._contentDomNode.domNode,"keydown",function(e){if(u._isVisible&&(e.equals(2083)&&(Object(a["a"])(C["a"].emergencyConfOn),u._editor.updateOptions({accessibilitySupport:"on"}),o["p"](u._contentDomNode.domNode),u._buildContent(),u._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Object(a["a"])(C["a"].openingDocs);var t=u._editor.getRawConfiguration().accessibilityHelpUrl;"undefined"===typeof t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),u._openerService.open(h["a"].parse(t)),e.preventDefault(),e.stopPropagation()}})),u.onblur(u._contentDomNode.domNode,function(){u.hide()}),u._editor.addOverlayWidget(u),u}return S(t,e),t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.getPosition=function(){return{preference:null}},t.prototype.show=function(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())},t.prototype._descriptionForCommand=function(e,t,n){var i=this._keybindingService.lookupKeybinding(e);return i?d["r"](t,i.getAriaLabel()):d["r"](n,e)},t.prototype._buildContent=function(){var e=this._editor.getConfiguration(),t=this._editor.getSelections(),n=0;if(t){var i=this._editor.getModel();i&&t.forEach(function(e){n+=i.getValueLengthInRange(e)})}var o=D(t,n);e.wrappingInfo.inDiffEditor?e.readOnly?o+=C["a"].readonlyDiffEditor:o+=C["a"].editableDiffEditor:e.readOnly?o+=C["a"].readonlyEditor:o+=C["a"].editableEditor;var r=c["d"]?C["a"].changeConfigToOnMac:C["a"].changeConfigToOnWinLinux;switch(e.accessibilitySupport){case 0:o+="\n\n - "+r;break;case 2:o+="\n\n - "+C["a"].auto_on;break;case 1:o+="\n\n - "+C["a"].auto_off,o+=" "+r;break}e.tabFocusMode?o+="\n\n - "+this._descriptionForCommand(g["ToggleTabFocusModeAction"].ID,C["a"].tabFocusModeOnMsg,C["a"].tabFocusModeOnMsgNoKb):o+="\n\n - "+this._descriptionForCommand(g["ToggleTabFocusModeAction"].ID,C["a"].tabFocusModeOffMsg,C["a"].tabFocusModeOffMsgNoKb);var a=c["d"]?C["a"].openDocMac:C["a"].openDocWinLinux;o+="\n\n - "+a,o+="\n\n"+C["a"].outroMsg,this._contentDomNode.domNode.appendChild(Object(s["b"])(o)),this._contentDomNode.domNode.setAttribute("aria-label",o)},t.prototype.hide=function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,o["p"](this._contentDomNode.domNode),this._editor.focus())},t.prototype._layout=function(){var e=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(t.WIDTH,e.width-40)),i=Math.max(5,Math.min(t.HEIGHT,e.height-40));this._domNode.setWidth(n),this._domNode.setHeight(i);var o=Math.round((e.height-i)/2);this._domNode.setTop(o);var r=Math.round((e.width-n)/2);this._domNode.setLeft(r)},t.ID="editor.contrib.accessibilityHelpWidget",t.WIDTH=500,t.HEIGHT=300,t=L([O(1,m["c"]),O(2,_["a"]),O(3,b["a"])],t),t}(u["a"]),I=function(e){function t(){return e.call(this,{id:"editor.action.showAccessibilityHelp",label:C["a"].showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:f["a"].focus,primary:i["j"]?2107:571,weight:100}})||this}return S(t,e),t.prototype.run=function(e,t){var n=N.get(t);n&&n.show()},t}(p["b"]);Object(p["h"])(N),Object(p["f"])(I);var E=p["c"].bindToContribution(N.get);Object(p["g"])(new E({id:"closeAccessibilityHelp",precondition:x,handler:function(e){return e.hide()},kbOpts:{weight:200,kbExpr:f["a"].focus,primary:9,secondary:[1033]}})),Object(w["f"])(function(e,t){var n=e.getColor(y["N"]);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var i=e.getColor(y["P"]);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { color: "+i+"; }");var o=e.getColor(y["Wb"]);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(y["e"]);r&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+r+"; }")})},"49d9":function(e,t,n){"use strict";function i(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"a",function(){return i})},"4b76":function(e,t,n){"use strict";var i,o=n("dff7"),r=n("3742");(function(e){e[e["Ignore"]=0]="Ignore",e[e["Info"]=1]="Info",e[e["Warning"]=2]="Warning",e[e["Error"]=3]="Error"})(i||(i={})),function(e){var t="error",n="warning",i="warn",s="info",a=Object.create(null);function u(o){return o?r["n"](t,o)?e.Error:r["n"](n,o)||r["n"](i,o)?e.Warning:r["n"](s,o)?e.Info:e.Ignore:e.Ignore}a[e.Error]=o["a"]("sev.error","Error"),a[e.Warning]=o["a"]("sev.warning","Warning"),a[e.Info]=o["a"]("sev.info","Info"),e.fromValue=u}(i||(i={})),t["a"]=i},"4c2d":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultReferenceSearchOptions",function(){return D}),n.d(t,"ReferenceController",function(){return k}),n.d(t,"ReferenceAction",function(){return I}),n.d(t,"provideReferences",function(){return A});var i=n("dff7"),o=n("4fc3"),r=n("9eb8"),s=n("7061"),a=n("b2cc"),u=n("b707"),l=n("6a89"),c=n("e5aa"),d=n("aa43"),h=n("3a57"),p=n("5fe7"),f=n("fdcc"),g=n("c101"),m=n("d379"),v=n("b055"),_=n("93d9"),b=n("7121"),y=n("9e74"),w=n("6d8e"),C=n("5717"),S=n("2504"),L=n("e8e3"),O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},N=function(e,t){return function(n,i){t(n,i,e)}},D={getMetaTitle:function(e){return e.references.length>1?i["a"]("meta.titleReference"," – {0} references",e.references.length):""}},k=function(){function e(e,t){e instanceof m["a"]&&c["b"].inPeekEditor.bindTo(t)}return e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.ID="editor.contrib.referenceController",e=x([N(1,o["c"])],e),e}(),I=function(e){function t(){return e.call(this,{id:"editor.action.referenceSearch.trigger",label:i["a"]("references.action.label","Peek References"),alias:"Peek References",precondition:o["a"].and(g["a"].hasReferenceProvider,c["b"].notInPeekEditor,g["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:g["a"].editorTextFocus,primary:1094,weight:100},menuOpts:{group:"navigation",order:1.5}})||this}return O(t,e),t.prototype.run=function(e,t){var n=d["a"].get(t);if(n&&t.hasModel()){var i=t.getSelection(),o=t.getModel(),r=Object(p["f"])(function(e){return A(o,i.getStartPosition(),e).then(function(e){return new h["c"](e)})});n.toggleWidget(i,r,D)}},t}(a["b"]);Object(a["h"])(k),Object(a["f"])(I);var E=function(e,t,n){if(!(t instanceof w["a"]))throw new Error("illegal argument, uri");if(!n)throw new Error("illegal argument, position");var i=e.get(C["a"]);return i.openCodeEditor({resource:t},i.getFocusedCodeEditor()).then(function(e){if(Object(v["a"])(e)&&e.hasModel()){var t=d["a"].get(e);if(t){var i=Object(p["f"])(function(t){return A(e.getModel(),s["a"].lift(n),t).then(function(e){return new h["c"](e)})}),o=new l["a"](n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,i,D))}}})},M=function(e,t,n,i){if(!(t instanceof w["a"]))throw new Error("illegal argument, uri expected");if(!i)throw new Error("missing references");var o=e.get(C["a"]);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then(function(e){if(Object(v["a"])(e)){var t=d["a"].get(e);if(t)return t.toggleWidget(new l["a"](n.lineNumber,n.column,n.lineNumber,n.column),Object(p["f"])(function(e){return Promise.resolve(new h["c"](i))}),D)}})};function T(e,t){R(e,function(e){return e.closeWidget()})}function P(e,t){var n=e.get(_["a"]),i=n.lastFocusedList&&n.lastFocusedList.getFocus();i instanceof h["b"]&&R(e,function(e){return e.openReference(i,!0)})}function R(e,t){var n=Object(c["d"])(e);if(n){var i=d["a"].get(n);i&&t(i)}}function A(e,t,n){var i=u["s"].ordered(e).map(function(i){return Promise.resolve(i.provideReferences(e,t,{includeDeclaration:!0},n)).then(function(e){if(Array.isArray(e))return e},function(e){Object(f["f"])(e)})});return Promise.all(i).then(function(e){return Object(L["k"])(Object(L["d"])(e))})}y["a"].registerCommand({id:"editor.action.findReferences",handler:E}),y["a"].registerCommand({id:"editor.action.showReferences",handler:M,description:{description:"Show references at a position in a file",args:[{name:"uri",description:"The text document in which to show references",constraint:w["a"]},{name:"position",description:"The position at which to show",constraint:s["a"].isIPosition},{name:"locations",description:"An array of locations.",constraint:Array}]}}),r["a"].registerCommandAndKeybindingRule({id:"goToNextReference",weight:250,primary:62,when:d["b"],handler:function(e){R(e,function(e){e.goToNextOrPreviousReference(!0)})}}),r["a"].registerCommandAndKeybindingRule({id:"goToNextReferenceFromEmbeddedEditor",weight:150,primary:62,when:c["b"].inPeekEditor,handler:function(e){R(e,function(e){e.goToNextOrPreviousReference(!0)})}}),r["a"].registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:250,primary:1086,when:d["b"],handler:function(e){R(e,function(e){e.goToNextOrPreviousReference(!1)})}}),r["a"].registerCommandAndKeybindingRule({id:"goToPreviousReferenceFromEmbeddedEditor",weight:150,primary:1086,when:c["b"].inPeekEditor,handler:function(e){R(e,function(e){e.goToNextOrPreviousReference(!1)})}}),r["a"].registerCommandAndKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:o["a"].and(d["b"],o["a"].not("config.editor.stablePeek")),handler:T}),r["a"].registerCommandAndKeybindingRule({id:"closeReferenceSearchEditor",weight:-1,primary:9,secondary:[1033],when:o["a"].and(c["b"].inPeekEditor,o["a"].not("config.editor.stablePeek")),handler:T}),r["a"].registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:o["a"].and(d["b"],b["c"]),handler:P}),Object(a["e"])("_executeReferenceProvider",function(e,t){return A(e,t,S["a"].None)})},"4d05":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u});var i=n("3742"),o=n("e1b5"),r=n("8bf1"),s={getInitialState:function(){return r["c"]},tokenize2:function(e,t,n){return Object(r["e"])(0,e,t,n)}};function a(e,t){return void 0===t&&(t=s),l(e,t||s)}function u(e,t,n,i,o,r){for(var s="<div>",a=i,u=0,l=0,c=t.getCount();l<c;l++){var d=t.getEndOffset(l);if(!(d<=i)){for(var h="";a<d&&a<o;a++){var p=e.charCodeAt(a);switch(p){case 9:var f=r-(a+u)%r;u+=f-1;while(f>0)h+=" ",f--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="<22>";break;case 13:h+="​";break;case 32:h+=" ";break;default:h+=String.fromCharCode(p)}}if(s+='<span style="'+t.getInlineStyle(l,n)+'">'+h+"</span>",d>o||a>=o)break}}return s+="</div>",s}function l(e,t){for(var n='<div class="monaco-tokenized-source">',r=e.split(/\r\n|\r|\n/),s=t.getInitialState(),a=0,u=r.length;a<u;a++){var l=r[a];a>0&&(n+="<br/>");var c=t.tokenize2(l,s,0);o["a"].convertToEndOffset(c.tokens,l.length);for(var d=new o["a"](c.tokens,l),h=d.inflate(),p=0,f=0,g=h.getCount();f<g;f++){var m=h.getClassName(f),v=h.getEndOffset(f);n+='<span class="'+m+'">'+i["o"](l.substring(p,v))+"</span>",p=v}s=c.endState}return n+="</div>",n}},"4d3d":function(e,t,n){},"4dc7":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return r});var i=function(){function e(e,t,n){this.offset=0|e,this.type=t,this.language=n}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}(),o=function(){function e(e,t){this.tokens=e,this.endState=t}return e}(),r=function(){function e(e,t){this.tokens=e,this.endState=t}return e}()},"4e7d":function(e,t,n){},"4fc3":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return g}),n.d(t,"d",function(){return m}),n.d(t,"c",function(){return v}),n.d(t,"e",function(){return _});var i=n("3742"),o=n("0a0f"),r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(){function e(){}return e.has=function(e){return u.create(e)},e.equals=function(e,t){return l.create(e,t)},e.regex=function(e,t){return h.create(e,t)},e.not=function(e){return d.create(e)},e.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return f.create(e)},e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g.create(e)},e.deserialize=function(e,t){if(void 0===t&&(t=!1),e)return this._deserializeOrExpression(e,t)},e._deserializeOrExpression=function(e,t){var n=this,i=e.split("||");return g.create(i.map(function(e){return n._deserializeAndExpression(e,t)}))},e._deserializeAndExpression=function(e,t){var n=this,i=e.split("&&");return f.create(i.map(function(e){return n._deserializeOne(e,t)}))},e._deserializeOne=function(e,t){if(e=e.trim(),e.indexOf("!=")>=0){var n=e.split("!=");return c.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){n=e.split("==");return l.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){n=e.split("=~");return h.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}return/^\!\s*/.test(e)?d.create(e.substr(1).trim()):u.create(e)},e._deserializeValue=function(e,t){if(e=e.trim(),"true"===e)return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e},e._deserializeRegexValue=function(e,t){if(Object(i["u"])(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var n=e.indexOf("/"),o=e.lastIndexOf("/");if(n===o||n<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var r=e.slice(n+1,o),s="i"===e[o+1]?"i":"";try{return new RegExp(r,s)}catch(a){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+a);return console.warn("bad regexp-value '"+e+"', parse error: "+a),null}},e}();function a(e,t){var n=e.getType(),i=t.getType();if(n!==i)return n-i;switch(n){case 1:return e.cmp(t);case 2:return e.cmp(t);case 3:return e.cmp(t);case 4:return e.cmp(t);case 6:return e.cmp(t);case 7:return e.cmp(t);case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var u=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 1},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return d.create(this.key)},e}(),l=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"===typeof n?n?u.create(t):d.create(t):new e(t,n)},e.prototype.getType=function(){return 3},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return c.create(this.key,this.value)},e}(),c=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"===typeof n?n?d.create(t):u.create(t):new e(t,n)},e.prototype.getType=function(){return 4},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return l.create(this.key,this.value)},e}(),d=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 2},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return u.create(this.key)},e}(),h=function(){function e(e,t){this.key=e,this.regexp=t}return e.create=function(t,n){return new e(t,n)},e.prototype.getType=function(){return 6},e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:"",i=t.regexp?t.regexp.source:"";return this.key===t.key&&n===i}return!1},e.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return p.create(this)},e}(),p=function(){function e(e){this._actual=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 7},e.prototype.cmp=function(e){return this._actual.cmp(e._actual)},e.prototype.equals=function(t){return t instanceof e&&this._actual.equals(t._actual)},e.prototype.evaluate=function(e){return!this._actual.evaluate(e)},e.prototype.keys=function(){return this._actual.keys()},e.prototype.negate=function(){return this._actual},e}(),f=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 5},e.prototype.cmp=function(e){if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(var t=0,n=this.expr.length;t<n;t++){var i=a(this.expr[t],e.expr[t]);if(0!==i)return i}return 0},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0},e._normalizeArr=function(t){var n=[];if(t){for(var i=0,o=t.length;i<o;i++){var r=t[i];if(r)if(r instanceof e)n=n.concat(r.expr);else{if(r instanceof g)throw new Error("It is not allowed to have an or expression here due to lack of parens!");n.push(r)}}n.sort(a)}return n},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys())}return e},e.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push(i.negate())}return g.create(e)},e}(),g=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 8},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1},e._normalizeArr=function(t){var n=[];if(t){for(var i=0,o=t.length;i<o;i++){var r=t[i];r&&(r instanceof e?n=n.concat(r.expr):n.push(r))}n.sort(a)}return n},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys())}return e},e.prototype.negate=function(){for(var t=[],n=0,i=this.expr;n<i.length;n++){var o=i[n];t.push(o.negate())}var r=function(t){return t instanceof e?t.expr:[t]};while(t.length>1){for(var a=t.shift(),u=t.shift(),l=[],c=0,d=r(a);c<d.length;c++)for(var h=d[c],p=0,f=r(u);p<f.length;p++){var g=f[p];l.push(s.and(h,g))}t.unshift(s.or.apply(s,l))}return t[0]},e}(),m=function(e){function t(t,n){var i=e.call(this,t)||this;return i._defaultValue=n,i}return r(t,e),t.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue)},t.prototype.getValue=function(e){return e.getContextKeyValue(this.key)},t.prototype.toNegated=function(){return s.not(this.key)},t}(u),v=Object(o["c"])("contextKeyService"),_="setContext"},5029:function(e,t,n){},"507c":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return s});var i=function(){function e(e,t,n){for(var i=new Uint8Array(e*t),o=0,r=e*t;o<r;o++)i[o]=n;this._data=i,this.rows=e,this.cols=t}return e.prototype.get=function(e,t){return this._data[e*this.cols+t]},e.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},e}();function o(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}function s(e){for(var t=e.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=r(e[i]);return n}},"507e":function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return h});var i=n("e8e3"),o=n("2504"),r=n("fdcc"),s=n("b2cc"),a=n("b707");function u(e,t,n,o){var s=n.ordered(e),a=s.map(function(n){return Promise.resolve(o(n,e,t)).then(void 0,function(e){Object(r["f"])(e)})});return Promise.all(a).then(i["k"]).then(i["d"])}function l(e,t,n){return u(e,t,a["f"],function(e,t,i){return e.provideDefinition(t,i,n)})}function c(e,t,n){return u(e,t,a["e"],function(e,t,i){return e.provideDeclaration(t,i,n)})}function d(e,t,n){return u(e,t,a["o"],function(e,t,i){return e.provideImplementation(t,i,n)})}function h(e,t,n){return u(e,t,a["z"],function(e,t,i){return e.provideTypeDefinition(t,i,n)})}Object(s["e"])("_executeDefinitionProvider",function(e,t){return l(e,t,o["a"].None)}),Object(s["e"])("_executeDeclarationProvider",function(e,t){return c(e,t,o["a"].None)}),Object(s["e"])("_executeImplementationProvider",function(e,t){return d(e,t,o["a"].None)}),Object(s["e"])("_executeTypeDefinitionProvider",function(e,t){return h(e,t,o["a"].None)})},5110:function(e,t,n){(function(e){
|
||
/*!
|
||
Copyright (c) 2014 Taylor Hakes
|
||
Copyright (c) 2014 Forbes Lindesay
|
||
*/
|
||
(function(e,t){t()})(0,function(){"use strict";function t(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}var n=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(o){return void u(t.promise,o)}a(t.promise,i)}else(1===e._state?a:u)(t.promise,e._value)})):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof r)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(o(n,t),e)}e._state=1,e._value=t,l(e)}catch(i){u(e,i)}}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e(function(e){n||(n=!0,a(t,e))},function(e){n||(n=!0,u(t,e))})}catch(i){if(n)return;n=!0,u(t,i)}}r.prototype["catch"]=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new c(e,t,n)),n},r.prototype["finally"]=t,r.all=function(e){return new r(function(t,n){if(!e||"undefined"===typeof e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var o=i.length;function r(e,s){try{if(s&&("object"===typeof s||"function"===typeof s)){var a=s.then;if("function"===typeof a)return void a.call(s,function(t){r(e,t)},n)}i[e]=s,0===--o&&t(i)}catch(u){n(u)}}for(var s=0;s<i.length;s++)r(s,i[s])})},r.resolve=function(e){return e&&"object"===typeof e&&e.constructor===r?e:new r(function(t){t(e)})},r.reject=function(e){return new r(function(t,n){n(e)})},r.race=function(e){return new r(function(t,n){for(var i=0,o=e.length;i<o;i++)e[i].then(t,n)})},r._immediateFn="function"===typeof setImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},r._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof e)return e;throw new Error("unable to locate global object")}();"Promise"in h?h.Promise.prototype["finally"]||(h.Promise.prototype["finally"]=t):h["Promise"]=r})}).call(this,n("c8ba"))},"52c8":function(e,t,n){},"533b":function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return r});var i=n("0a0f"),o=Object(i["c"])("contextViewService"),r=Object(i["c"])("contextMenuService")},"54f2":function(e,t,n){},"55f3":function(e,t,n){},"56dc":function(e,t,n){},"56f3":function(e,t,n){},5717:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("codeEditorService")},5818:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("modeService")},5900:function(e,t,n){"use strict";n.r(t);n("42f0");var i=n("2504"),o=n("7e93"),r=n("3742"),s=n("469c"),a=n("b2cc"),u=n("6a89"),l=n("c101"),c=n("b707"),d=n("fdcc"),h=n("6d8e"),p=n("1b69"),f=n("b78f"),g=n("e8e3"),m=n("be5f"),v=n("4035"),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(){function e(){}return e.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},e.findId=function(e,t){var n;"string"===typeof e?n=t.id+"/"+e:(n=t.id+"/"+e.name,void 0!==t.children[n]&&(n=t.id+"/"+e.name+"_"+e.range.startLineNumber+"_"+e.range.startColumn));for(var i=n,o=0;void 0!==t.children[i];o++)i=n+"_"+o;return i},e.empty=function(e){for(var t in e.children)return!1;return!0},e}(),y=function(e){function t(t,n,i){var o=e.call(this)||this;return o.id=t,o.parent=n,o.symbol=i,o.children=Object.create(null),o}return _(t,e),t}(b),w=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.id=t,r.parent=n,r.provider=i,r.providerIndex=o,r.children=Object.create(null),r}return _(t,e),t}(b),C=function(){function e(){this._n=1,this._val=0}return e.prototype.update=function(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this},e}(),S=function(e){function t(t){var n=e.call(this)||this;return n.textModel=t,n.id="root",n.parent=void 0,n._groups=Object.create(null),n.children=Object.create(null),n.id="root",n.parent=void 0,n}return _(t,e),t.create=function(e,n){var o=this,r=this._keys.for(e,!0),s=t._requests.get(r);if(!s){var a=new i["b"];s={promiseCnt:0,source:a,promise:t._create(e,a.token),model:void 0},t._requests.set(r,s);var u=Date.now();s.promise.then(function(){var t=o._keys.for(e,!1),n=o._requestDurations.get(t);n||(n=new C,o._requestDurations.set(t,n)),n.update(Date.now()-u)})}return s.model?Promise.resolve(s.model):(s.promiseCnt+=1,n.onCancellationRequested(function(){0===--s.promiseCnt&&(s.source.cancel(),t._requests.delete(r))}),new Promise(function(e,n){s.promise.then(function(t){s.model=t,e(t)},function(e){t._requests.delete(r),n(e)})}))},t._create=function(e,n){var o=new i["b"](n),r=new t(e),s=c["k"].ordered(e),a=s.map(function(e,n){var i=b.findId("provider_"+n,r),s=new w(i,r,e,n);return Promise.resolve(e.provideDocumentSymbols(r.textModel,o.token)).then(function(e){for(var n=0,i=e||[];n<i.length;n++){var o=i[n];t._makeOutlineElement(o,s)}return s},function(e){return Object(d["f"])(e),s}).then(function(e){b.empty(e)?e.remove():r._groups[i]=e})}),u=c["k"].onDidChange(function(){var t=c["k"].ordered(e);Object(g["g"])(t,s)||o.cancel()});return Promise.all(a).then(function(){return o.token.isCancellationRequested&&!n.isCancellationRequested?t._create(e,n):r._compact()}).finally(function(){u.dispose()})},t._makeOutlineElement=function(e,n){var i=b.findId(e,n),o=new y(i,n,e);if(e.children)for(var r=0,s=e.children;r<s.length;r++){var a=s[r];t._makeOutlineElement(a,o)}n.children[o.id]=o},t.prototype._compact=function(){var e=0;for(var t in this._groups){var n=this._groups[t];void 0===Object(m["b"])(n.children)?delete this._groups[t]:e+=1}if(1!==e)this.children=this._groups;else{n=Object(m["b"])(this._groups);for(var t in n.children){var i=n.children[t];i.parent=this,this.children[i.id]=i}}return this},t._requestDurations=new v["a"](50,.7),t._requests=new v["a"](9,.75),t._keys=new(function(){function e(){this._counter=1,this._data=new WeakMap}return e.prototype.for=function(e,t){return e.id+"/"+(t?e.getVersionId():"")+"/"+this._hash(c["k"].all(e))},e.prototype._hash=function(e){for(var t="",n=0,i=e;n<i.length;n++){var o=i[n],r=this._data.get(o);"undefined"===typeof r&&(r=this._counter++,this._data.set(o,r)),t+=r}return t},e}()),t}(b),L=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},O=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function x(e,t,n){return L(this,void 0,void 0,function(){var i,o,r,s,a,u;return O(this,function(l){switch(l.label){case 0:return[4,S.create(e,n)];case 1:for(i=l.sent(),o=[],r=0,s=Object(m["d"])(i.children);r<s.length;r++)a=s[r],a instanceof y?o.push(a.symbol):o.push.apply(o,Object(m["d"])(a.children).map(function(e){return e.symbol}));return u=[],n.isCancellationRequested?[2,u]:(t?D(u,o,""):u=o,[2,u.sort(N)])}})})}function N(e,t){return u["a"].compareRangesUsingStarts(e.range,t.range)}function D(e,t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];e.push({kind:r.kind,tags:r.tags,name:r.name,detail:r.detail,containerName:r.containerName||n,range:r.range,selectionRange:r.selectionRange,children:void 0}),r.children&&D(e,r.children,r.name)}}Object(a["j"])("_executeDocumentSymbolProvider",function(e,t){var n=t.resource;if(!(n instanceof h["a"]))throw Object(d["b"])("resource");var o=e.get(p["a"]).getModel(n);return o?x(o,!1,i["a"].None):e.get(f["a"]).createModelReference(n).then(function(e){return new Promise(function(t,n){try{var o=x(e.object.textEditorModel,!1,i["a"].None);t(o)}catch(r){n(r)}}).finally(function(){e.dispose()})})});var k=n("af33"),I=n("03d9");n.d(t,"SymbolEntry",function(){return T}),n.d(t,"QuickOutlineAction",function(){return P});var E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=":",T=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this)||this;return u.name=t,u.type=n,u.description=i,u.range=o,u.setHighlights(r),u.editor=s,u.decorator=a,u}return E(t,e),t.prototype.getLabel=function(){return this.name},t.prototype.getAriaLabel=function(){return r["r"](I["e"].entryAriaLabel,this.name)},t.prototype.getIcon=function(){return this.type},t.prototype.getDescription=function(){return this.description},t.prototype.getType=function(){return this.type},t.prototype.getRange=function(){return this.range},t.prototype.run=function(e,t){return 1===e?this.runOpen(t):this.runPreview()},t.prototype.runOpen=function(e){var t=this.toSelection();return this.editor.setSelection(t),this.editor.revealRangeInCenter(t,0),this.editor.focus(),!0},t.prototype.runPreview=function(){var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(this.range,this.editor),!1},t.prototype.toSelection=function(){return new u["a"](this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},t}(s["b"]),P=function(e){function t(){return e.call(this,I["e"].quickOutlineActionInput,{id:"editor.action.quickOutline",label:I["e"].quickOutlineActionLabel,alias:"Go to Symbol...",precondition:l["a"].hasDocumentSymbolProvider,kbOpts:{kbExpr:l["a"].focus,primary:3117,weight:100},menuOpts:{group:"navigation",order:3}})||this}return E(t,e),t.prototype.run=function(e,t){var n=this;if(t.hasModel()){var o=t.getModel();if(c["k"].has(o))return x(o,!0,i["a"].None).then(function(e){0!==e.length&&n._run(t,e)})}},t.prototype._run=function(e,t){var n=this;this._show(this.getController(e),{getModel:function(i){return new s["c"](n.toQuickOpenEntries(e,t,i))},getAutoFocus:function(e){return 0===e.indexOf(M)&&(e=e.substr(M.length)),{autoFocusPrefixMatch:e,autoFocusFirstEntry:!!e}}})},t.prototype.symbolEntry=function(e,t,n,i,o,r,s){return new T(e,t,n,u["a"].lift(i),o,r,s)},t.prototype.toQuickOpenEntries=function(e,t,n){var i=this.getController(e),s=[],a=n;0===n.indexOf(M)&&(a=a.substr(M.length));for(var u=0,l=t;u<l.length;u++){var d=l[u],h=r["M"](d.name),p=Object(o["f"])(a,h);if(p){var f=void 0;d.containerName&&(f=d.containerName),s.push(this.symbolEntry(h,Object(c["E"])(d.kind),f,d.range,p,e,i))}}if(n&&(s=0===n.indexOf(M)?s.sort(this.sortScoped.bind(this,n.toLowerCase())):s.sort(this.sortNormal.bind(this,n.toLowerCase()))),s.length>0&&0===n.indexOf(M)){for(var g=null,m=null,v=0,_=0;_<s.length;_++){var b=s[_];g!==b.getType()?(m&&m.setGroupLabel(this.typeToLabel(g||"",v)),g=b.getType(),m=b,v=1,b.setShowBorder(_>0)):v++}m&&m.setGroupLabel(this.typeToLabel(g||"",v))}else s.length>0&&s[0].setGroupLabel(r["r"](I["e"]._symbols_,s.length));return s},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return r["r"](I["e"]._modules_,t);case"class":return r["r"](I["e"]._class_,t);case"interface":return r["r"](I["e"]._interface_,t);case"method":return r["r"](I["e"]._method_,t);case"function":return r["r"](I["e"]._function_,t);case"property":return r["r"](I["e"]._property_,t);case"variable":return r["r"](I["e"]._variable_,t);case"var":return r["r"](I["e"]._variable2_,t);case"constructor":return r["r"](I["e"]._constructor_,t);case"call":return r["r"](I["e"]._call_,t)}return e},t.prototype.sortNormal=function(e,t,n){var i=t.getLabel().toLowerCase(),o=n.getLabel().toLowerCase(),r=i.localeCompare(o);if(0!==r)return r;var s=t.getRange(),a=n.getRange();return s.startLineNumber-a.startLineNumber},t.prototype.sortScoped=function(e,t,n){e=e.substr(M.length);var i=t.getType(),o=n.getType(),r=i.localeCompare(o);if(0!==r)return r;if(e){var s=t.getLabel().toLowerCase(),a=n.getLabel().toLowerCase(),u=s.localeCompare(a);if(0!==u)return u}var l=t.getRange(),c=n.getRange();return l.startLineNumber-c.startLineNumber},t}(k["a"]);Object(a["f"])(P)},"5aa5":function(e,t,n){"use strict";n.d(t,"c",function(){return p}),n.d(t,"d",function(){return f}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return v});n("c84a");var i=n("30db"),o=n("dff7"),r=n("a666"),s=n("f070"),a=n("11f7"),u=n("ef8e"),l=n("a60f"),c=n("b835"),d=n("308f"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(e){function t(t,n,i){var o=e.call(this)||this;return o.options=i,o._context=t||o,o._action=n,n instanceof s["a"]&&o._register(n.onDidChange(function(e){o.element&&o.handleActionChangeEvent(e)})),o}return h(t,e),t.prototype.handleActionChangeEvent=function(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()},Object.defineProperty(t.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),t.prototype.getAction=function(){return this._action},t.prototype.isEnabled=function(){return this._action.enabled},t.prototype.setActionContext=function(e){this._context=e},t.prototype.render=function(e){var t=this;this.element=e,l["b"].addTarget(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0),this._register(a["h"](this.element,l["a"].Tap,function(e){return t.onClick(e)})),this._register(a["h"](this.element,a["d"].MOUSE_DOWN,function(e){n||a["c"].stop(e,!0),t._action.enabled&&0===e.button&&t.element&&a["f"](t.element,"active")})),this._register(a["h"](this.element,a["d"].CLICK,function(e){a["c"].stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):i["h"](function(){return t.onClick(e)})})),this._register(a["h"](this.element,a["d"].DBLCLICK,function(e){a["c"].stop(e,!0)})),[a["d"].MOUSE_UP,a["d"].MOUSE_OUT].forEach(function(e){t._register(a["h"](t.element,e,function(e){a["c"].stop(e),a["I"](t.element,"active")}))})},t.prototype.onClick=function(e){var t;a["c"].stop(e,!0),u["k"](this._context)?t=e:(t=this._context,u["h"](t)&&(t.event=e)),this._actionRunner.run(this._action,t)},t.prototype.focus=function(){this.element&&(this.element.focus(),a["f"](this.element,"focused"))},t.prototype.blur=function(){this.element&&(this.element.blur(),a["I"](this.element,"focused"))},t.prototype.updateEnabled=function(){},t.prototype.updateLabel=function(){},t.prototype.updateTooltip=function(){},t.prototype.updateClass=function(){},t.prototype.updateChecked=function(){},t.prototype.dispose=function(){this.element&&(a["K"](this.element),this.element=void 0),e.prototype.dispose.call(this)},t}(r["a"]),f=function(e){function t(n){var i=e.call(this,t.ID,n,n?"separator text":"separator")||this;return i.checked=!1,i.radio=!1,i.enabled=!1,i}return h(t,e),t.ID="vs.actions.separator",t}(s["a"]),g=function(e){function t(t,n,i){void 0===i&&(i={});var o=e.call(this,t,n,i)||this;return o.options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o}return h(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.label=a["m"](this.element,a["a"]("a.action-label"))),this._action.id===f.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button"),this.options.label&&this.options.keybinding&&this.element&&(a["m"](this.element,a["a"]("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},t.prototype.focus=function(){e.prototype.focus.call(this),this.label.focus()},t.prototype.updateLabel=function(){this.options.label&&(this.label.textContent=this.getAction().label)},t.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=o["a"]({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.label.title=e)},t.prototype.updateClass=function(){this.cssClass&&a["J"](this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,a["f"](this.label,"icon"),this.cssClass&&a["g"](this.label,this.cssClass),this.updateEnabled()):a["I"](this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.label.removeAttribute("aria-disabled"),this.element&&a["I"](this.element,"disabled"),a["I"](this.label,"disabled"),this.label.tabIndex=0):(this.label.setAttribute("aria-disabled","true"),this.element&&a["f"](this.element,"disabled"),a["f"](this.label,"disabled"),a["L"](this.label))},t.prototype.updateChecked=function(){this.getAction().checked?a["f"](this.label,"checked"):a["I"](this.label,"checked")},t}(p),m={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},v=function(e){function t(t,n){void 0===n&&(n=m);var i,o,r=e.call(this)||this;switch(r._onDidBlur=r._register(new d["a"]),r.onDidBlur=r._onDidBlur.event,r._onDidCancel=r._register(new d["a"]),r.onDidCancel=r._onDidCancel.event,r._onDidRun=r._register(new d["a"]),r.onDidRun=r._onDidRun.event,r._onDidBeforeRun=r._register(new d["a"]),r.onDidBeforeRun=r._onDidBeforeRun.event,r.options=n,r._context=n.context,r.options.triggerKeys||(r.options.triggerKeys=m.triggerKeys),r.options.actionRunner?r._actionRunner=r.options.actionRunner:(r._actionRunner=new s["b"],r._register(r._actionRunner)),r._register(r._actionRunner.onDidRun(function(e){return r._onDidRun.fire(e)})),r._register(r._actionRunner.onDidBeforeRun(function(e){return r._onDidBeforeRun.fire(e)})),r.viewItems=[],r.focusedItem=void 0,r.domNode=document.createElement("div"),r.domNode.className="monaco-action-bar",!1!==n.animated&&a["f"](r.domNode,"animated"),r.options.orientation){case 0:i=15,o=17;break;case 1:i=17,o=15,r.domNode.className+=" reverse";break;case 2:i=16,o=18,r.domNode.className+=" vertical";break;case 3:i=18,o=16,r.domNode.className+=" vertical reverse";break}return r._register(a["h"](r.domNode,a["d"].KEY_DOWN,function(e){var t=new c["a"](e),n=!0;t.equals(i)?r.focusPrevious():t.equals(o)?r.focusNext():t.equals(9)?r.cancel():r.isTriggerKeyEvent(t)?r.options.triggerKeys&&r.options.triggerKeys.keyDown&&r.doTrigger(t):n=!1,n&&(t.preventDefault(),t.stopPropagation())})),r._register(a["h"](r.domNode,a["d"].KEY_UP,function(e){var t=new c["a"](e);r.isTriggerKeyEvent(t)?(r.options.triggerKeys&&!r.options.triggerKeys.keyDown&&r.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&r.updateFocusedItem()})),r.focusTracker=r._register(a["S"](r.domNode)),r._register(r.focusTracker.onDidBlur(function(){document.activeElement!==r.domNode&&a["E"](document.activeElement,r.domNode)||(r._onDidBlur.fire(),r.focusedItem=void 0)})),r._register(r.focusTracker.onDidFocus(function(){return r.updateFocusedItem()})),r.actionsList=document.createElement("ul"),r.actionsList.className="actions-container",r.actionsList.setAttribute("role","toolbar"),r.options.ariaLabel&&r.actionsList.setAttribute("aria-label",r.options.ariaLabel),r.domNode.appendChild(r.actionsList),t.appendChild(r.domNode),r}return h(t,e),t.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(n){t=t||e.equals(n)}),t},t.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(a["E"](document.activeElement,t)){this.focusedItem=e;break}}},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},set:function(e){this._context=e,this.viewItems.forEach(function(t){return t.setActionContext(e)})},enumerable:!0,configurable:!0}),t.prototype.getContainer=function(){return this.domNode},t.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var i=Array.isArray(e)?e:[e],o=u["g"](t.index)?t.index:null;i.forEach(function(e){var i,r=document.createElement("li");r.className="action-item",r.setAttribute("role","presentation"),n._register(a["h"](r,a["d"].CONTEXT_MENU,function(e){e.preventDefault(),e.stopPropagation()})),n.options.actionViewItemProvider&&(i=n.options.actionViewItemProvider(e)),i||(i=new g(n.context,e,t)),i.actionRunner=n._actionRunner,i.setActionContext(n.context),i.render(r),null===o||o<0||o>=n.actionsList.children.length?(n.actionsList.appendChild(r),n.viewItems.push(i)):(n.actionsList.insertBefore(r,n.actionsList.children[o]),n.viewItems.splice(o,0,i),o++)})},t.prototype.clear=function(){this.viewItems=Object(r["f"])(this.viewItems),a["p"](this.actionsList)},t.prototype.isEmpty=function(){return 0===this.viewItems.length},t.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"===typeof e?n=e:"boolean"===typeof e&&(t=e),t&&"undefined"===typeof this.focusedItem?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},t.prototype.focusNext=function(){"undefined"===typeof this.focusedItem&&(this.focusedItem=this.viewItems.length-1);var e,t=this.focusedItem;do{this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},t.prototype.focusPrevious=function(){"undefined"===typeof this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do{this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},t.prototype.updateFocus=function(e){"undefined"===typeof this.focusedItem&&this.actionsList.focus();for(var t=0;t<this.viewItems.length;t++){var n=this.viewItems[t],i=n;t===this.focusedItem?u["f"](i.isEnabled)&&(i.isEnabled()&&u["f"](i.focus)?i.focus(e):this.actionsList.focus()):u["f"](i.blur)&&i.blur()}},t.prototype.doTrigger=function(e){if("undefined"!==typeof this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof p){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}},t.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},t.prototype.run=function(e,t){return this._actionRunner.run(e,t)},t.prototype.dispose=function(){Object(r["f"])(this.viewItems),this.viewItems=[],a["K"](this.getContainer()),e.prototype.dispose.call(this)},t}(r["a"])},"5b02":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("a666"),r=n("0a0f"),s=n("c101"),a=n("4fc3"),u=n("b2cc"),l=n("11f7"),c=n("e32d"),d=n("3813"),h=n("1898"),p=n("308f"),f=(n("cab5"),n("5818")),g=n("dea0"),m=n("5fe7"),v=n("fdcc"),_=n("b707"),b=n("2504"),y=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},w=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},C=void 0,S={Visible:new a["d"]("parameterHintsVisible",!1),MultipleSignatures:new a["d"]("parameterHintsMultipleSignatures",!1)};function L(e,t,n,i){var o=_["v"].ordered(e);return Object(m["h"])(o.map(function(o){return function(){return Promise.resolve(o.provideSignatureHelp(e,t,i,n)).catch(function(e){return Object(v["f"])(e)})}}))}Object(u["e"])("_executeSignatureHelpProvider",function(e,t,n){return y(C,void 0,void 0,function(){var i;return w(this,function(o){switch(o.label){case 0:return[4,L(e,t,{triggerKind:_["w"].Invoke,isRetrigger:!1,triggerCharacter:n["triggerCharacter"]},b["a"].None)];case 1:return i=o.sent(),i?(setTimeout(function(){return i.dispose()},0),[2,i.value]):[2,void 0]}})})});var O,x=n("5bd7"),N=n("303e"),D=n("b7d0"),k=n("3170"),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(){return E=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)};(function(e){e.Default=new(function(){function e(){this.type=0}return e}());var t=function(){function e(e){this.request=e,this.type=2}return e}();e.Pending=t;var n=function(){function e(e){this.hints=e,this.type=1}return e}();e.Active=n})(O||(O={}));var M=function(e){function t(n,i){void 0===i&&(i=t.DEFAULT_DELAY);var r=e.call(this)||this;return r._onChangedHints=r._register(new p["a"]),r.onChangedHints=r._onChangedHints.event,r.triggerOnType=!1,r._state=O.Default,r._lastSignatureHelpResult=r._register(new o["d"]),r.triggerChars=new k["b"],r.retriggerChars=new k["b"],r.triggerId=0,r.editor=n,r.throttledDelayer=new m["a"](i),r._register(r.editor.onDidChangeConfiguration(function(){return r.onEditorConfigurationChange()})),r._register(r.editor.onDidChangeModel(function(e){return r.onModelChanged()})),r._register(r.editor.onDidChangeModelLanguage(function(e){return r.onModelChanged()})),r._register(r.editor.onDidChangeCursorSelection(function(e){return r.onCursorChange(e)})),r._register(r.editor.onDidChangeModelContent(function(e){return r.onModelContentChange()})),r._register(_["v"].onDidChange(r.onModelChanged,r)),r._register(r.editor.onDidType(function(e){return r.onDidType(e)})),r.onEditorConfigurationChange(),r.onModelChanged(),r}return I(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){2===this._state.type&&this._state.request.cancel(),this._state=e},enumerable:!0,configurable:!0}),t.prototype.cancel=function(e){void 0===e&&(e=!1),this.state=O.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)},t.prototype.trigger=function(e,t){var n=this,i=this.editor.getModel();if(i&&_["v"].has(i)){var o=++this.triggerId;this.throttledDelayer.trigger(function(){return n.doTrigger({triggerKind:e.triggerKind,triggerCharacter:e.triggerCharacter,isRetrigger:1===n.state.type||2===n.state.type,activeSignatureHelp:1===n.state.type?n.state.hints:void 0},o)},t).then(void 0,v["e"])}},t.prototype.next=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e===e-1,i=this.editor.getConfiguration().contribInfo.parameterHints.cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?0:t+1):this.cancel()}},t.prototype.previous=function(){if(1===this.state.type){var e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=0===t,i=this.editor.getConfiguration().contribInfo.parameterHints.cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?e-1:t-1):this.cancel()}},t.prototype.updateActiveSignature=function(e){1===this.state.type&&(this.state=new O.Active(E({},this.state.hints,{activeSignature:e})),this._onChangedHints.fire(this.state.hints))},t.prototype.doTrigger=function(e,t){var n=this;if(this.cancel(!0),!this.editor.hasModel())return Promise.resolve(!1);var i=this.editor.getModel(),o=this.editor.getPosition();return this.state=new O.Pending(Object(m["f"])(function(t){return L(i,o,e,t)})),this.state.request.then(function(e){return t!==n.triggerId?(e&&e.dispose(),!1):e&&e.value.signatures&&0!==e.value.signatures.length?(n.state=new O.Active(e.value),n._lastSignatureHelpResult.value=e,n._onChangedHints.fire(n.state.hints),!0):(e&&e.dispose(),n._lastSignatureHelpResult.clear(),n.cancel(),!1)}).catch(function(e){return t===n.triggerId&&(n.state=O.Default),Object(v["e"])(e),!1})},Object.defineProperty(t.prototype,"isTriggered",{get:function(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),t.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new k["b"],this.retriggerChars=new k["b"];var e=this.editor.getModel();if(e)for(var t=0,n=_["v"].ordered(e);t<n.length;t++){for(var i=n[t],o=0,r=i.signatureHelpTriggerCharacters||[];o<r.length;o++){var s=r[o];this.triggerChars.add(s.charCodeAt(0)),this.retriggerChars.add(s.charCodeAt(0))}for(var a=0,u=i.signatureHelpRetriggerCharacters||[];a<u.length;a++){s=u[a];this.retriggerChars.add(s.charCodeAt(0))}}},t.prototype.onDidType=function(e){if(this.triggerOnType){var t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:_["w"].TriggerCharacter,triggerCharacter:e.charAt(t)})}},t.prototype.onCursorChange=function(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:_["w"].ContentChange})},t.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:_["w"].ContentChange})},t.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getConfiguration().contribInfo.parameterHints.enabled,this.triggerOnType||this.cancel()},t.prototype.dispose=function(){this.cancel(!0),e.prototype.dispose.call(this)},t.DEFAULT_DELAY=120,t}(o["a"]),T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),P=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},R=function(e,t){return function(n,i){t(n,i,e)}},A=l["a"],F=function(e){function t(t,n,i,r){var s=e.call(this)||this;return s.editor=t,s.renderDisposeables=s._register(new o["b"]),s.model=s._register(new o["d"]),s.allowEditorOverflow=!0,s.markdownRenderer=s._register(new g["a"](t,r,i)),s.model.value=new M(t),s.keyVisible=S.Visible.bindTo(n),s.keyMultipleSignatures=S.MultipleSignatures.bindTo(n),s.visible=!1,s._register(s.model.value.onChangedHints(function(e){e?(s.show(),s.render(e)):s.hide()})),s}return T(t,e),t.prototype.createParamaterHintDOMNodes=function(){var e=this;this.element=A(".editor-widget.parameter-hints-widget");var t=l["m"](this.element,A(".wrapper"));t.tabIndex=-1;var n=l["m"](t,A(".buttons")),i=l["m"](n,A(".button.previous")),o=l["m"](n,A(".button.next")),r=Object(c["b"])(Object(c["a"])(i,"click"));this._register(r(this.previous,this));var s=Object(c["b"])(Object(c["a"])(o,"click"));this._register(s(this.next,this)),this.overloads=l["m"](t,A(".overloads"));var a=A(".body");this.scrollbar=new h["a"](a,{}),this._register(this.scrollbar),t.appendChild(this.scrollbar.getDomNode()),this.signature=l["m"](a,A(".signature")),this.docs=l["m"](a,A(".docs")),this.editor.addContentWidget(this),this.hide(),this.element.style.userSelect="text",this._register(this.editor.onDidChangeCursorSelection(function(t){e.visible&&e.editor.layoutContentWidget(e)}));var u=function(){var t=e.editor.getConfiguration().fontInfo;e.element.style.fontSize=t.fontSize+"px"};u(),this._register(p["b"].chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo}).on(u,null)),this._register(this.editor.onDidLayoutChange(function(t){return e.updateMaxHeight()})),this.updateMaxHeight()},t.prototype.show=function(){var e=this;this.model&&!this.visible&&(this.element||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(function(){return l["f"](e.element,"visible")},100),this.editor.layoutContentWidget(this))},t.prototype.hide=function(){this.model&&this.visible&&(this.element||this.createParamaterHintDOMNodes(),this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,l["I"](this.element,"visible"),this.editor.layoutContentWidget(this))},t.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},t.prototype.render=function(e){var t=e.signatures.length>1;l["R"](this.element,"multiple",t),this.keyMultipleSignatures.set(t),this.signature.innerHTML="",this.docs.innerHTML="";var n=e.signatures[e.activeSignature];if(n){var o=l["m"](this.signature,A(".code")),r=n.parameters.length>0,s=this.editor.getConfiguration().fontInfo;if(o.style.fontSize=s.fontSize+"px",o.style.fontFamily=s.fontFamily,r)this.renderParameters(o,n,e.activeParameter);else{var a=l["m"](o,A("span"));a.textContent=n.label}this.renderDisposeables.clear();var u=n.parameters[e.activeParameter];if(u&&u.documentation){var c=A("span.documentation");if("string"===typeof u.documentation)c.textContent=u.documentation;else{var h=this.markdownRenderer.render(u.documentation);l["f"](h.element,"markdown-docs"),this.renderDisposeables.add(h),c.appendChild(h.element)}l["m"](this.docs,A("p",{},c))}if(void 0===n.documentation);else if("string"===typeof n.documentation)l["m"](this.docs,A("p",{},n.documentation));else{h=this.markdownRenderer.render(n.documentation);l["f"](h.element,"markdown-docs"),this.renderDisposeables.add(h),l["m"](this.docs,h.element)}var p=!1;u&&"string"===typeof u.documentation&&u.documentation.length>0&&(p=!0),u&&"object"===typeof u.documentation&&u.documentation.value.length>0&&(p=!0),"string"===typeof n.documentation&&n.documentation.length>0&&(p=!0),"object"===typeof n.documentation&&n.documentation.value.length>0&&(p=!0),l["R"](this.signature,"has-docs",p),l["R"](this.docs,"empty",!p);var f=String(e.activeSignature+1);if(e.signatures.length<10&&(f+="/"+e.signatures.length),this.overloads.textContent=f,u){var g=this.getParameterLabel(n,e.activeParameter);this.announcedLabel!==g&&(d["a"](i["a"]("hint","{0}, hint",g)),this.announcedLabel=g)}this.editor.layoutContentWidget(this),this.scrollbar.scanDomNode()}},t.prototype.renderParameters=function(e,t,n){var i=this.getParameterLabelOffsets(t,n),o=i[0],r=i[1],s=document.createElement("span");s.textContent=t.label.substring(0,o);var a=document.createElement("span");a.textContent=t.label.substring(o,r),a.className="parameter active";var u=document.createElement("span");u.textContent=t.label.substring(r),l["m"](e,s,a,u)},t.prototype.getParameterLabel=function(e,t){var n=e.parameters[t];return"string"===typeof n.label?n.label:e.label.substring(n.label[0],n.label[1])},t.prototype.getParameterLabelOffsets=function(e,t){var n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;var i=e.label.lastIndexOf(n.label);return i>=0?[i,i+n.label.length]:[0,0]}return[0,0]},t.prototype.next=function(){this.model.value&&(this.editor.focus(),this.model.value.next())},t.prototype.previous=function(){this.model.value&&(this.editor.focus(),this.model.value.previous())},t.prototype.cancel=function(){this.model.value&&this.model.value.cancel()},t.prototype.getDomNode=function(){return this.element},t.prototype.getId=function(){return t.ID},t.prototype.trigger=function(e){this.model.value&&this.model.value.trigger(e,0)},t.prototype.updateMaxHeight=function(){var e=Math.max(this.editor.getLayoutInfo().height/4,250);this.element.style.maxHeight=e+"px"},t.ID="editor.widget.parameterHintsWidget",t=P([R(1,a["c"]),R(2,x["a"]),R(3,f["a"])],t),t}(o["a"]);Object(D["f"])(function(e,t){var n=e.getColor(N["B"]);if(n){var i=e.type===D["b"]?2:1;t.addRule(".monaco-editor .parameter-hints-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+n.transparent(.5)+"; }"),t.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+n.transparent(.5)+"; }")}var o=e.getColor(N["A"]);o&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+o+"; }");var r=e.getColor(N["Ub"]);r&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+r+"; }");var s=e.getColor(N["Tb"]);s&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+s+"; }")}),n.d(t,"TriggerParameterHintsAction",function(){return H});var j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),W=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},V=function(e,t){return function(n,i){t(n,i,e)}},B=function(e){function t(t,n){var i=e.call(this)||this;return i.editor=t,i.widget=i._register(n.createInstance(F,i.editor)),i}return j(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.cancel=function(){this.widget.cancel()},t.prototype.previous=function(){this.widget.previous()},t.prototype.next=function(){this.widget.next()},t.prototype.trigger=function(e){this.widget.trigger(e)},t.ID="editor.controller.parameterHints",t=W([V(1,r["a"])],t),t}(o["a"]),H=function(e){function t(){return e.call(this,{id:"editor.action.triggerParameterHints",label:i["a"]("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:s["a"].hasSignatureHelpProvider,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3082,weight:100}})||this}return j(t,e),t.prototype.run=function(e,t){var n=B.get(t);n&&n.trigger({triggerKind:_["w"].Invoke})},t}(u["b"]);Object(u["h"])(B),Object(u["f"])(H);var z=175,U=u["c"].bindToContribution(B.get);Object(u["g"])(new U({id:"closeParameterHints",precondition:S.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:z,kbExpr:s["a"].focus,primary:9,secondary:[1033]}})),Object(u["g"])(new U({id:"showPrevParameterHint",precondition:a["a"].and(S.Visible,S.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:z,kbExpr:s["a"].focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(u["g"])(new U({id:"showNextParameterHint",precondition:a["a"].and(S.Visible,S.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:z,kbExpr:s["a"].focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},"5bd7":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n("0a0f"),o=Object(i["c"])("openerService"),r=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return{dispose:function(){}}},registerValidator:function(){return{dispose:function(){}}},open:function(){return Promise.resolve(!1)}})},"5d28":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return l});var i=n("0f70"),o=n("e757"),r=n("30db"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(){function e(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"===typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);var t=o["a"].getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}return e.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}(),u=function(e){function t(t){var n=e.call(this,t)||this;return n.dataTransfer=t.dataTransfer,n}return s(t,e),t}(a),l=function(){function e(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e)if("wheel"===e.type){var o=e;o.deltaMode===o.DOM_DELTA_LINE?(this.deltaY=-e.deltaY,this.deltaX=-e.deltaX):(this.deltaY=-e.deltaY/40,this.deltaX=-e.deltaX/40)}else{var s=e,a=e;"undefined"!==typeof s.wheelDeltaY?this.deltaY=s.wheelDeltaY/120:"undefined"!==typeof a.VERTICAL_AXIS&&a.axis===a.VERTICAL_AXIS&&(this.deltaY=-a.detail/3),"undefined"!==typeof s.wheelDeltaX?i["l"]&&r["g"]?this.deltaX=-s.wheelDeltaX/120:this.deltaX=s.wheelDeltaX/120:"undefined"!==typeof a.HORIZONTAL_AXIS&&a.axis===a.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}()},"5d70":function(e,t,n){},"5d75":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("telemetryService")},"5ed2":function(e,t,n){"use strict";n.r(t),n.d(t,"editorWordHighlight",function(){return w}),n.d(t,"editorWordHighlightStrong",function(){return C}),n.d(t,"editorWordHighlightBorder",function(){return S}),n.d(t,"editorWordHighlightStrongBorder",function(){return L}),n.d(t,"overviewRulerWordHighlightForeground",function(){return O}),n.d(t,"overviewRulerWordHighlightStrongForeground",function(){return x}),n.d(t,"ctxHasWordHighlights",function(){return N}),n.d(t,"getOccurrencesAtPosition",function(){return D});var i=n("dff7"),o=n("e8e3"),r=n("5fe7"),s=n("2504"),a=n("fdcc"),u=n("a666"),l=n("b2cc"),c=n("6a89"),d=n("c101"),h=n("3352"),p=n("b57f"),f=n("b707"),g=n("4fc3"),m=n("303e"),v=n("b7d0"),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},y=function(e,t){return function(n,i){t(n,i,e)}},w=Object(m["Kb"])("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},i["a"]("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),C=Object(m["Kb"])("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},i["a"]("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),S=Object(m["Kb"])("editor.wordHighlightBorder",{light:null,dark:null,hc:m["b"]},i["a"]("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),L=Object(m["Kb"])("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:m["b"]},i["a"]("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),O=Object(m["Kb"])("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},i["a"]("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),x=Object(m["Kb"])("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},i["a"]("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),N=new g["d"]("hasWordHighlights",!1);function D(e,t,n){var i=f["i"].ordered(e);return Object(r["h"])(i.map(function(i){return function(){return Promise.resolve(i.provideDocumentHighlights(e,t,n)).then(void 0,a["f"])}}),o["n"])}var k=function(){function e(e,t,n){var i=this;this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(r["f"])(function(o){return i._compute(e,t,n,o)})}return e.prototype._getCurrentWordRange=function(e,t){var n=e.getWordAtPosition(t.getPosition());return n?new c["a"](t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null},e.prototype.isValid=function(e,t,n){for(var i=t.startLineNumber,o=t.startColumn,r=t.endColumn,s=this._getCurrentWordRange(e,t),a=Boolean(this._wordRange&&this._wordRange.equalsRange(s)),u=0,l=n.length;!a&&u<l;u++){var c=e.getDecorationRange(n[u]);c&&c.startLineNumber===i&&c.startColumn<=o&&c.endColumn>=r&&(a=!0)}return a},e.prototype.cancel=function(){this.result.cancel()},e}(),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype._compute=function(e,t,n,i){return D(e,t.getPosition(),i).then(function(e){return e||[]})},t}(k),E=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o._selectionIsEmpty=n.isEmpty(),o}return _(t,e),t.prototype._compute=function(e,t,n,i){return Object(r["l"])(250,i).then(function(){if(!t.isEmpty())return[];var i=e.getWordAtPosition(t.getPosition());if(!i)return[];var o=e.findMatches(i.word,!0,!1,!0,n,!1);return o.map(function(e){return{range:e.range,kind:f["h"].Text}})})},t.prototype.isValid=function(t,n,i){var o=n.isEmpty();return this._selectionIsEmpty===o&&e.prototype.isValid.call(this,t,n,i)},t}(k);function M(e,t,n){return f["i"].has(e)?new I(e,t,n):new E(e,t,n)}Object(l["e"])("_executeDocumentHighlights",function(e,t){return D(e,t,s["a"].None)});var T=function(){function e(e,t){var n=this;this.toUnhook=new u["b"],this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=N.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getConfiguration().contribInfo.occurrencesHighlight,this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(function(e){n._ignorePositionChangeEvent||n.occurrencesHighlight&&n._onPositionChanged(e)})),this.toUnhook.add(e.onDidChangeModelContent(function(e){n._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(function(e){var t=n.editor.getConfiguration().contribInfo.occurrencesHighlight;n.occurrencesHighlight!==t&&(n.occurrencesHighlight=t,n._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return e.prototype.hasDecorations=function(){return this._decorationIds.length>0},e.prototype.restore=function(){this.occurrencesHighlight&&this._run()},e.prototype._getSortedHighlights=function(){var e=this;return o["d"](this._decorationIds.map(function(t){return e.model.getDecorationRange(t)}).sort(c["a"].compareRangesUsingStarts))},e.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=o["j"](t,function(t){return t.containsPosition(e.editor.getPosition())}),i=(n+1)%t.length,r=t[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(r.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(r)}finally{this._ignorePositionChangeEvent=!1}},e.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=o["j"](t,function(t){return t.containsPosition(e.editor.getPosition())}),i=(n-1+t.length)%t.length,r=t[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(r.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(r)}finally{this._ignorePositionChangeEvent=!1}},e.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},e.prototype._stopAll=function(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},e.prototype._onPositionChanged=function(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()},e.prototype._run=function(){var e=this,t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startLineNumber,i=t.startColumn,o=t.endColumn,r=this.model.getWordAtPosition({lineNumber:n,column:i});if(!r||r.startColumn>i||r.endColumn<o)this._stopAll();else{var s=this.workerRequest&&this.workerRequest.isValid(this.model,t,this._decorationIds);if(this.lastCursorPositionChangeTime=(new Date).getTime(),s)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var u=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=M(this.model,this.editor.getSelection(),this.editor.getConfiguration().wordSeparators),this.workerRequest.result.then(function(t){u===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())},a["e"])}}}else this._stopAll()},e.prototype._beginRenderDecorations=function(){var e=this,t=(new Date).getTime(),n=this.lastCursorPositionChangeTime+250;t>=n?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){e.renderDecorations()},n-t)},e.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var t=[],n=0,i=this.workerRequestValue.length;n<i;n++){var o=this.workerRequestValue[n];t.push({range:o.range,options:e._getDecorationOptions(o.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,t),this._hasWordHighlights.set(this.hasDecorations())},e._getDecorationOptions=function(e){return e===f["h"].Write?this._WRITE_OPTIONS:e===f["h"].Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},e.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},e._WRITE_OPTIONS=p["a"].register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(v["g"])(x),position:h["d"].Center}}),e._TEXT_OPTIONS=p["a"].register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(v["g"])(m["Gb"]),position:h["d"].Center}}),e._REGULAR_OPTIONS=p["a"].register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(v["g"])(O),position:h["d"].Center}}),e}(),P=function(e){function t(t,n){var i=e.call(this)||this;i.wordHighligher=null;var o=function(){t.hasModel()&&(i.wordHighligher=new T(t,n))};return i._register(t.onDidChangeModel(function(e){i.wordHighligher&&(i.wordHighligher.dispose(),i.wordHighligher=null),o()})),o(),i}return _(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.saveViewState=function(){return!(!this.wordHighligher||!this.wordHighligher.hasDecorations())},t.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},t.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},t.prototype.restoreViewState=function(e){this.wordHighligher&&e&&this.wordHighligher.restore()},t.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),e.prototype.dispose.call(this)},t.ID="editor.contrib.wordHighlighter",t=b([y(1,g["c"])],t),t}(u["a"]),R=function(e){function t(t,n){var i=e.call(this,n)||this;return i._isNext=t,i}return _(t,e),t.prototype.run=function(e,t){var n=P.get(t);n&&(this._isNext?n.moveNext():n.moveBack())},t}(l["b"]),A=function(e){function t(){return e.call(this,!0,{id:"editor.action.wordHighlight.next",label:i["a"]("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:N,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:65,weight:100}})||this}return _(t,e),t}(R),F=function(e){function t(){return e.call(this,!1,{id:"editor.action.wordHighlight.prev",label:i["a"]("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:N,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:1089,weight:100}})||this}return _(t,e),t}(R),j=function(e){function t(){return e.call(this,{id:"editor.action.wordHighlight.trigger",label:i["a"]("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:N.toNegated(),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:0,weight:100}})||this}return _(t,e),t.prototype.run=function(e,t,n){var i=P.get(t);i&&i.restoreViewState(!0)},t}(l["b"]);Object(l["h"])(P),Object(l["f"])(A),Object(l["f"])(F),Object(l["f"])(j),Object(v["f"])(function(e,t){var n=e.getColor(m["J"]);n&&(t.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+n+"; }"),t.addRule(".monaco-editor .selectionHighlight { background-color: "+n.transparent(.5)+"; }"));var i=e.getColor(w);i&&t.addRule(".monaco-editor .wordHighlight { background-color: "+i+"; }");var o=e.getColor(C);o&&t.addRule(".monaco-editor .wordHighlightStrong { background-color: "+o+"; }");var r=e.getColor(m["K"]);r&&t.addRule(".monaco-editor .selectionHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+r+"; box-sizing: border-box; }");var s=e.getColor(S);s&&t.addRule(".monaco-editor .wordHighlight { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; box-sizing: border-box; }");var a=e.getColor(L);a&&t.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; box-sizing: border-box; }")})},"5fe7":function(e,t,n){"use strict";n.d(t,"i",function(){return s}),n.d(t,"f",function(){return a}),n.d(t,"j",function(){return u}),n.d(t,"a",function(){return l}),n.d(t,"l",function(){return c}),n.d(t,"g",function(){return d}),n.d(t,"h",function(){return h}),n.d(t,"e",function(){return f}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return m}),n.d(t,"k",function(){return p}),n.d(t,"b",function(){return v});var i=n("2504"),o=n("fdcc"),r=n("a666");function s(e){return e&&"function"===typeof e.then}function a(e){var t=new i["b"],n=e(t.token),r=new Promise(function(e,i){t.token.onCancellationRequested(function(){i(o["a"]())}),Promise.resolve(n).then(function(n){t.dispose(),e(n)},function(e){t.dispose(),i(e)})});return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return r.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.finally=function(e){return r.finally(e)},e}())}function u(e,t,n){return Promise.race([e,new Promise(function(e){return t.onCancellationRequested(function(){return e(n)})})])}var l=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(e,t){n.doResolve=e,n.doReject=t}).then(function(){n.completionPromise=null,n.doResolve=null;var e=n.task;return n.task=null,e()})),this.timeout=setTimeout(function(){n.timeout=null,n.doResolve(null)},t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject(o["a"]()),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e.prototype.dispose=function(){this.cancelTimeout()},e}();function c(e,t){return t?new Promise(function(n,i){var r=setTimeout(n,e);t.onCancellationRequested(function(){clearTimeout(r),i(o["a"]())})}):a(function(t){return c(e,t)})}function d(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return Object(r["h"])(function(){return clearTimeout(n)})}function h(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var i=0,o=e.length,r=function(){if(i>=o)return Promise.resolve(n);var s=e[i++],a=Promise.resolve(s());return a.then(function(e){return t(e)?Promise.resolve(e):r()})};return r()}var p,f=function(){function e(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout(function(){n._token=-1,e()},t)},e.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout(function(){n._token=-1,e()},t))},e}(),g=function(){function e(){this._token=-1}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval(function(){e()},t)},e}(),m=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner&&this.runner()},e}();(function(){if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});p=function(t){var n=setTimeout(function(){return t(e)}),i=!1;return{dispose:function(){i||(i=!0,clearTimeout(n))}}}}else p=function(e,t){var n=requestIdleCallback(e,"number"===typeof t?{timeout:t}:void 0),i=!1;return{dispose:function(){i||(i=!0,cancelIdleCallback(n))}}}})();var v=function(){function e(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(n){t._error=n}finally{t._didRun=!0}},this._handle=p(function(){return t._executor()})}return e.prototype.dispose=function(){this._handle.dispose()},e.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},e}()},"607c":function(e,t,n){},"62bd":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("308f"),o=new(function(){function e(){this._zoomLevel=0,this._onDidChangeZoomLevel=new i["a"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},e}())},6424:function(e,t,n){"use strict";function i(e,t,n){var i=null,o=null;if("function"===typeof n.value?(i="value",o=n.value,0!==o.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof n.get&&(i="get",o=n.get),!o)throw new Error("not supported");var r="$memoize$"+t;n[i]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,e)}),this[r]}}n.d(t,"a",function(){return i})},6483:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return d});var i=n("2504"),o=n("fdcc"),r=n("6d8e"),s=n("b2cc"),a=n("6a89"),u=n("b707"),l=n("1b69");function c(e,t){var n=[],i=u["c"].ordered(e).reverse(),o=i.map(function(i){return Promise.resolve(i.provideDocumentColors(e,t)).then(function(e){if(Array.isArray(e))for(var t=0,o=e;t<o.length;t++){var r=o[t];n.push({colorInfo:r,provider:i})}})});return Promise.all(o).then(function(){return n})}function d(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}Object(s["j"])("_executeDocumentColorProvider",function(e,t){var n=t.resource;if(!(n instanceof r["a"]))throw Object(o["b"])();var s=e.get(l["a"]).getModel(n);if(!s)throw Object(o["b"])();var a=[],c=u["c"].ordered(s).reverse(),d=c.map(function(e){return Promise.resolve(e.provideDocumentColors(s,i["a"].None)).then(function(e){if(Array.isArray(e))for(var t=0,n=e;t<n.length;t++){var i=n[t];a.push({range:i.range,color:[i.color.red,i.color.green,i.color.blue,i.color.alpha]})}})});return Promise.all(d).then(function(){return a})}),Object(s["j"])("_executeColorPresentationProvider",function(e,t){var n=t.resource,s=t.color,c=t.range;if(!(n instanceof r["a"])||!Array.isArray(s)||4!==s.length||!a["a"].isIRange(c))throw Object(o["b"])();var d=s[0],h=s[1],p=s[2],f=s[3],g=e.get(l["a"]).getModel(n);if(!g)throw Object(o["b"])();var m={range:c,color:{red:d,green:h,blue:p,alpha:f}},v=[],_=u["c"].ordered(g).reverse(),b=_.map(function(e){return Promise.resolve(e.provideColorPresentations(g,m,i["a"].None)).then(function(e){Array.isArray(e)&&v.push.apply(v,e)})});return Promise.all(b).then(function(){return v})})},"650e":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return r});var i={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},o=function(){function e(e){this.data=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.data},e}(),r={CurrentDragAndDropData:void 0}},6653:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n("11f7"),o=function(){function e(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._layerHint=!1}return e.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},e.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},e.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},e.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},e.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},e.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},e.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},e.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},e.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},e.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},e.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},e.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},e.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},e.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},e.prototype.toggleClassName=function(e,t){i["R"](this.domNode,e,t),this._className=this.domNode.className},e.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},e.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},e.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},e.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.willChange=this._layerHint?"transform":"auto")},e.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},e.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},e.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},e.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},e}();function r(e){return new o(e)}},"67b4":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("7061"),o=n("6a89"),r=n("db88"),s=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},a=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},u=function(){function e(){}return e.prototype.provideSelectionRanges=function(t,n){return s(this,void 0,void 0,function(){var i,o,r,s,u;return a(this,function(l){switch(l.label){case 0:i=[],o=function(n){var o,r;return a(this,function(s){switch(s.label){case 0:return o=[],i.push(o),r=new Map,[4,new Promise(function(i){return e._bracketsRightYield(i,0,t,n,r)})];case 1:return s.sent(),[4,new Promise(function(i){return e._bracketsLeftYield(i,0,t,n,r,o)})];case 2:return s.sent(),[2]}})},r=0,s=n,l.label=1;case 1:return r<s.length?(u=s[r],[5,o(u)]):[3,4];case 2:l.sent(),l.label=3;case 3:return r++,[3,1];case 4:return[2,i]}})})},e._bracketsRightYield=function(t,n,i,o,s){var a=new Map,u=Date.now();while(1){if(n>=e._maxRounds){t();break}if(!o){t();break}var l=i.findNextBracket(o);if(!l){t();break}var c=Date.now()-u;if(c>e._maxDuration){setTimeout(function(){return e._bracketsRightYield(t,n+1,i,o,s)});break}var d=l.close;if(l.isOpen){var h=a.has(d)?a.get(d):0;a.set(d,h+1)}else{h=a.has(d)?a.get(d):0;if(h-=1,a.set(d,Math.max(0,h)),h<0){var p=s.get(d);p||(p=new r["a"],s.set(d,p)),p.push(l.range)}}o=l.range.getEndPosition()}},e._bracketsLeftYield=function(t,n,i,r,s,a){var u=new Map,l=Date.now();while(1){if(n>=e._maxRounds&&0===s.size){t();break}if(!r){t();break}var c=i.findPrevBracket(r);if(!c){t();break}var d=Date.now()-l;if(d>e._maxDuration){setTimeout(function(){return e._bracketsLeftYield(t,n+1,i,r,s,a)});break}var h=c.close;if(c.isOpen){v=u.has(h)?u.get(h):0;if(v-=1,u.set(h,Math.max(0,v)),v<0){var p=s.get(h);if(p){var f=p.shift();0===p.size&&s.delete(h);var g=o["a"].fromPositions(c.range.getEndPosition(),f.getStartPosition()),m=o["a"].fromPositions(c.range.getStartPosition(),f.getEndPosition());a.push({range:g}),a.push({range:m}),e._addBracketLeading(i,m,a)}}}else{var v=u.has(h)?u.get(h):0;u.set(h,v+1)}r=c.range.getStartPosition()}},e._addBracketLeading=function(e,t,n){if(t.startLineNumber!==t.endLineNumber){var r=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(r);0!==s&&s!==t.startColumn&&(n.push({range:o["a"].fromPositions(new i["a"](r,s),t.getEndPosition())}),n.push({range:o["a"].fromPositions(new i["a"](r,1),t.getEndPosition())}));var a=r-1;if(a>0){var u=e.getLineFirstNonWhitespaceColumn(a);u===t.startColumn&&u!==e.getLineLastNonWhitespaceColumn(a)&&(n.push({range:o["a"].fromPositions(new i["a"](a,u),t.getEndPosition())}),n.push({range:o["a"].fromPositions(new i["a"](a,1),t.getEndPosition())}))}}},e._maxDuration=30,e._maxRounds=2,e}()},"6a89":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7061"),o=function(){function e(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))},e.prototype.strictContainsRange=function(t){return e.strictContainsRange(this,t)},e.strictContainsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var i,o,r,s;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,o=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,o=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,o=t.startColumn),n.endLineNumber>t.endLineNumber?(r=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(r=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(r=t.endLineNumber,s=t.endColumn),new e(i,o,r,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var i=t.startLineNumber,o=t.startColumn,r=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return i<a?(i=a,o=u):i===a&&(o=Math.max(o,u)),r>l?(r=l,s=c):r===l&&(s=Math.min(s,c)),i>r?null:i===r&&o>s?null:new e(i,o,r,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new i["a"](this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new i["a"](this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)},e.areIntersecting=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)},e.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){var o=0|e.startColumn,r=0|t.startColumn;if(o===r){var s=0|e.endLineNumber,a=0|t.endLineNumber;if(s===a){var u=0|e.endColumn,l=0|t.endColumn;return u-l}return s-a}return o-r}return n-i}var c=e?1:0,d=t?1:0;return c-d},e.compareRangesUsingEnds=function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber},e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}()},"6d8e":function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i,o=n("30db"),r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=/^\w[\w\d+.-]*$/,a=/^\//,u=/^\/\//,l=!0;function c(e,t){if(!e.scheme){if(t||l)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}')}if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function d(e,t){return t||l?e||p:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}function h(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==f&&(t=f+t):t=f;break}return t}var p="",f="/",g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,m=function(){function e(e,t,n,i,o,r){void 0===r&&(r=!1),"object"===typeof e?(this.scheme=e.scheme||p,this.authority=e.authority||p,this.path=e.path||p,this.query=e.query||p,this.fragment=e.fragment||p):(this.scheme=d(e,r),this.authority=t||p,this.path=h(this.scheme,n||p),this.query=i||p,this.fragment=o||p,c(this,r))}return e.isUri=function(t){return t instanceof e||!!t&&("string"===typeof t.authority&&"string"===typeof t.fragment&&"string"===typeof t.path&&"string"===typeof t.query&&"string"===typeof t.scheme&&"function"===typeof t.fsPath&&"function"===typeof t.with&&"function"===typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return C(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,o=e.query,r=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=p),void 0===n?n=this.authority:null===n&&(n=p),void 0===i?i=this.path:null===i&&(i=p),void 0===o?o=this.query:null===o&&(o=p),void 0===r?r=this.fragment:null===r&&(r=p),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&r===this.fragment?this:new _(t,n,i,o,r)},e.parse=function(e,t){void 0===t&&(t=!1);var n=g.exec(e);return n?new _(n[2]||p,decodeURIComponent(n[4]||p),decodeURIComponent(n[5]||p),decodeURIComponent(n[7]||p),decodeURIComponent(n[9]||p),t):new _(p,p,p,p,p)},e.file=function(e){var t=p;if(o["g"]&&(e=e.replace(/\\/g,f)),e[0]===f&&e[1]===f){var n=e.indexOf(f,2);-1===n?(t=e.substring(2),e=f):(t=e.substring(2,n),e=e.substring(n)||f)}return new _("file",t,e,p,p)},e.from=function(e){return new _(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),S(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new _(t);return n._formatted=t.external,n._fsPath=t._sep===v?t.fsPath:null,n}return t},e}(),v=o["g"]?1:void 0,_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return r(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=v),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(m),b=(i={},i[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function y(e,t){for(var n=void 0,i=-1,o=0;o<e.length;o++){var r=e.charCodeAt(o);if(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r)-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));var s=b[r];void 0!==s?(-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n+=s):-1===i&&(i=o)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function w(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=b[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function C(e){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,o["g"]&&(t=t.replace(/\//g,"\\")),t}function S(e,t){var n=t?w:y,i="",o=e.scheme,r=e.authority,s=e.path,a=e.query,u=e.fragment;if(o&&(i+=o,i+=":"),(r||"file"===o)&&(i+=f,i+=f),r){var l=r.indexOf("@");if(-1!==l){var c=r.substr(0,l);r=r.substr(l+1),l=c.indexOf(":"),-1===l?i+=n(c,!1):(i+=n(c.substr(0,l),!1),i+=":",i+=n(c.substr(l+1),!1)),i+="@"}r=r.toLowerCase(),l=r.indexOf(":"),-1===l?i+=n(r,!1):(i+=n(r.substr(0,l),!1),i+=r.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){var d=s.charCodeAt(1);d>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3))}else if(s.length>=2&&58===s.charCodeAt(1)){d=s.charCodeAt(0);d>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),u&&(i+="#",i+=t?u:y(u,!1)),i}},"6da2":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"c",function(){return u}),n.d(t,"a",function(){return l}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return p});var i=n("3742"),o=n("7ab3"),r=n("7416"),s=function(){function e(e,t){this.endIndex=e,this.type=t}return e}(),a=function(){function e(e,t){this.startOffset=e,this.endOffset=t}return e.prototype.equals=function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset},e}(),u=function(){function e(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=u,this.tabSize=l,this.spaceWidth=c,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?3:"boundary"===h?1:"selection"===h?2:0,this.renderControlCharacters=p,this.fontLigatures=f,this.selectionsOnLine=g&&g.sort(function(e,t){return e.startOffset<t.startOffset?-1:1})}return e.prototype.sameSelection=function(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(var t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0},e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r["a"].equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)},e}(),l=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,i){var o=(t<<16|n<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,i){if(0===this.length)return 0;var o=(t<<16|i<<0)>>>0,r=0,s=this.length-1;while(r+1<s){var a=r+s>>>1,u=this._data[a];if(u===o)return a;u>o?s=a:r=a}if(r===s)return r;var l=this._data[r],c=this._data[s];if(l===o)return r;if(c===o)return s;var d,h=e.getPartIndex(l),p=e.getCharIndex(l),f=e.getPartIndex(c);d=h!==f?n:e.getCharIndex(c);var g=i-p,m=d-i;return g<=m?r:s},e}(),c=function(){function e(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}return e}();function d(e,t){if(0===e.lineContent.length){var n=0,i="<span><span> </span></span>";if(e.lineDecorations.length>0){for(var o=[],r=0,s=e.lineDecorations.length;r<s;r++){var a=e.lineDecorations[r];1===a.type&&(o.push(e.lineDecorations[r].className),n|=1),2===a.type&&(o.push(e.lineDecorations[r].className),n|=2)}0!==n&&(i='<span><span class="'+o.join(" ")+'"></span></span>')}return t.appendASCIIString(i),new c(new l(0,0),!1,n)}return y(g(e),t)}var h=function(){function e(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}return e}();function p(e){var t=Object(o["a"])(1e4),n=d(e,t);return new h(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var f=function(){function e(e,t,n,i,o,r,s,a,u,l,c,d){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=o,this.parts=r,this.containsForeignElements=s,this.tabSize=a,this.containsRTL=u,this.spaceWidth=l,this.renderWhitespace=c,this.renderControlCharacters=d}return e}();function g(e){var t,n,i=e.useMonospaceOptimizations,o=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<o.length?(t=!0,n=e.stopRenderingLineAfter):(t=!1,n=o.length);var r=m(e.lineTokens,e.fauxIndentLength,n);(3===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine)&&(r=_(o,n,e.continuesWithWrappedLine,r,e.fauxIndentLength,e.tabSize,i,e.selectionsOnLine,1===e.renderWhitespace));var s=0;if(e.lineDecorations.length>0){for(var a=0,u=e.lineDecorations.length;a<u;a++){var l=e.lineDecorations[a];3===l.type?s|=1:1===l.type?s|=1:2===l.type&&(s|=2)}r=b(o,n,r,e.lineDecorations)}return e.containsRTL||(r=v(o,r,!e.isBasicASCII||e.fontLigatures)),new f(i,e.canUseHalfwidthRightwardsArrow,o,n,t,r,s,e.tabSize,e.containsRTL,e.spaceWidth,e.renderWhitespace,e.renderControlCharacters)}function m(e,t,n){var i=[],o=0;t>0&&(i[o++]=new s(t,""));for(var r=0,a=e.getCount();r<a;r++){var u=e.getEndOffset(r);if(!(u<=t)){var l=e.getClassName(r);if(u>=n){i[o++]=new s(n,l);break}i[o++]=new s(u,l)}}return i}function v(e,t,n){var i=0,o=[],r=0;if(n)for(var a=0,u=t.length;a<u;a++){var l=t[a],c=l.endIndex;if(i+50<c){for(var d=l.type,h=-1,p=i,f=i;f<c;f++)32===e.charCodeAt(f)&&(h=f),-1!==h&&f-p>=50&&(o[r++]=new s(h+1,d),p=h+1,h=-1);p!==c&&(o[r++]=new s(c,d))}else o[r++]=l;i=c}else for(a=0,u=t.length;a<u;a++){l=t[a],c=l.endIndex;var g=c-i;if(g>50){d=l.type;var m=Math.ceil(g/50);for(f=1;f<m;f++){var v=i+50*f;o[r++]=new s(v,d)}o[r++]=new s(c,d)}else o[r++]=l;i=c}return o}function _(e,t,n,o,r,a,u,l,c){var d,h=[],p=0,f=0,g=o[f].type,m=o[f].endIndex,v=o.length,_=i["q"](e);-1===_?(_=t,d=t):d=i["A"](e);for(var b=0,y=0;y<r;y++){var w=e.charCodeAt(y);9===w?b=a:i["v"](w)?b+=2:b++}b%=a;var C=!1,S=0,L=l&&l[S];for(y=r;y<t;y++){w=e.charCodeAt(y);L&&y>=L.endOffset&&(S++,L=l&&l[S]);var O=void 0;if(y<_||y>d)O=!0;else if(9===w)O=!0;else if(32===w)if(c)if(C)O=!0;else{var x=y+1<t?e.charCodeAt(y+1):0;O=32===x||9===x}else O=!0;else O=!1;O&&l&&(O=!!L&&L.startOffset<=y&&L.endOffset>y),C?(!O||!u&&b>=a)&&(h[p++]=new s(y,"vs-whitespace"),b%=a):(y===m||O&&y>r)&&(h[p++]=new s(y,g),b%=a),9===w?b=a:i["v"](w)?b+=2:b++,C=O,y===m&&(f++,f<v&&(g=o[f].type,m=o[f].endIndex))}var N=!1;if(C)if(n&&c){var D=t>0?e.charCodeAt(t-1):0,k=t>1?e.charCodeAt(t-2):0,I=32===D&&32!==k&&9!==k;I||(N=!0)}else N=!0;return h[p++]=new s(t,N?"vs-whitespace":g),h}function b(e,t,n,i){i.sort(r["a"].compare);for(var o=r["b"].normalize(e,i),a=o.length,u=0,l=[],c=0,d=0,h=0,p=n.length;h<p;h++){var f=n[h],g=f.endIndex,m=f.type;while(u<a&&o[u].startOffset<g){var v=o[u];if(v.startOffset>d&&(d=v.startOffset,l[c++]=new s(d,m)),!(v.endOffset+1<=g)){d=g,l[c++]=new s(d,m+" "+v.className);break}d=v.endOffset+1,l[c++]=new s(d,m+" "+v.className),u++}g>d&&(d=g,l[c++]=new s(d,m))}var _=n[n.length-1].endIndex;if(u<a&&o[u].startOffset===_){var b=[];while(u<a&&o[u].startOffset===_)b.push(o[u].className),u++;l[c++]=new s(d,b.join(" "))}return l}function y(e,t){var n=e.fontIsMonospace,o=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,s=e.lineContent,a=e.len,u=e.isOverflowing,d=e.parts,h=e.tabSize,p=e.containsRTL,f=e.spaceWidth,g=e.renderWhitespace,m=e.renderControlCharacters,v=new l(a+1,d.length),_=0,b=0,y=0,w=0,C=0;t.appendASCIIString("<span>");for(var S=0,L=d.length;S<L;S++){C+=w;var O=d[S],x=O.endIndex,N=O.type,D=0!==g&&N.indexOf("vs-whitespace")>=0;if(y=0,t.appendASCIIString('<span class="'),t.appendASCIIString(N),t.appendASCII(34),D){for(var k=0,I=_,E=b;I<x;I++){var M=s.charCodeAt(I);if(9===M){var T=h-(I+E)%h;E+=T-1,k+=T}else k++}if(!n){var P="vs-whitespace"===N;!P&&r||(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(f*k)),t.appendASCIIString('px"'))}for(t.appendASCII(62);_<x;_++){v.setPartData(_,S,y,C);M=s.charCodeAt(_);if(9===M){T=h-(_+b)%h;b+=T-1,y+=T-1,T>0&&(!o||T>1?t.write1(8594):t.write1(65515),T--);while(T>0)t.write1(160),T--}else t.write1(183);y++}w=k}else{k=0;for(p&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);_<x;_++){v.setPartData(_,S,y,C);M=s.charCodeAt(_);switch(M){case 9:T=h-(_+b)%h;b+=T-1,y+=T-1;while(T>0)t.write1(160),k++,T--;break;case 32:t.write1(160),k++;break;case 60:t.appendASCIIString("<"),k++;break;case 62:t.appendASCIIString(">"),k++;break;case 38:t.appendASCIIString("&"),k++;break;case 0:t.appendASCIIString("�"),k++;break;case 65279:case 8232:t.write1(65533),k++;break;default:i["v"](M)&&b++,m&&M<32?(t.write1(9216+M),k++):(t.write1(M),k++)}y++}w=k}t.appendASCIIString("</span>")}return v.setPartData(a,d.length-1,y,C),u&&t.appendASCIIString("<span>…</span>"),t.appendASCIIString("</span>"),new c(v,p,r)}},"6daf":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("3742"),r=n("b2cc"),s=n("2c29"),a=n("7061"),u=n("6a89"),l=n("c101"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(e){function t(){return e.call(this,{id:"editor.action.transposeLetters",label:i["a"]("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:l["a"].writable,kbOpts:{kbExpr:l["a"].textInputFocus,primary:0,mac:{primary:306},weight:100}})||this}return c(t,e),t.prototype.positionLeftOf=function(e,t){var n=e.column,i=e.lineNumber;return n>t.getLineMinColumn(i)?Object(o["x"])(t.getLineContent(i).charCodeAt(n-2))?n-=2:n-=1:i>1&&(i-=1,n=t.getLineMaxColumn(i)),new a["a"](i,n)},t.prototype.positionRightOf=function(e,t){var n=e.column,i=e.lineNumber;return n<t.getLineMaxColumn(i)?Object(o["w"])(t.getLineContent(i).charCodeAt(n-1))?n+=2:n+=1:i<t.getLineCount()&&(i+=1,n=0),new a["a"](i,n)},t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=t.getSelections(),r=0,a=o;r<a.length;r++){var l=a[r];if(l.isEmpty()){var c=l.startLineNumber,d=l.startColumn,h=n.getLineMaxColumn(c);if(1!==c||1!==d&&(2!==d||2!==h)){var p=d===h?l.getPosition():this.positionRightOf(l.getPosition(),n),f=this.positionLeftOf(p,n),g=this.positionLeftOf(f,n),m=n.getValueInRange(u["a"].fromPositions(g,f)),v=n.getValueInRange(u["a"].fromPositions(f,p)),_=u["a"].fromPositions(g,p);i.push(new s["a"](_,v+m))}}}i.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}},t}(r["b"]);Object(r["f"])(d)},"6dec":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("keybindingService")},"6df4":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("b2cc"),r=n("62bd"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomIn",label:i["a"]("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}return s(t,e),t.prototype.run=function(e,t){r["a"].setZoomLevel(r["a"].getZoomLevel()+1)},t}(o["b"]),u=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomOut",label:i["a"]("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}return s(t,e),t.prototype.run=function(e,t){r["a"].setZoomLevel(r["a"].getZoomLevel()-1)},t}(o["b"]),l=function(e){function t(){return e.call(this,{id:"editor.action.fontZoomReset",label:i["a"]("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}return s(t,e),t.prototype.run=function(e,t){r["a"].setZoomLevel(0)},t}(o["b"]);Object(o["f"])(a),Object(o["f"])(u),Object(o["f"])(l)},"6e4e":function(e,t,n){"use strict";n.r(t),n.d(t,"BracketMatchingController",function(){return w});n("f004");var i=n("dff7"),o=n("5fe7"),r=n("a666"),s=n("b2cc"),a=n("7061"),u=n("8025"),l=n("c101"),c=n("3352"),d=n("b57f"),h=n("918c"),p=n("303e"),f=n("b7d0"),g=n("7e32"),m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=Object(p["Kb"])("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},i["a"]("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),_=function(e){function t(){return e.call(this,{id:"editor.action.jumpToBracket",label:i["a"]("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:l["a"].editorTextFocus,primary:3160,weight:100}})||this}return m(t,e),t.prototype.run=function(e,t){var n=w.get(t);n&&n.jumpToBracket()},t}(s["b"]),b=function(e){function t(){return e.call(this,{id:"editor.action.selectToBracket",label:i["a"]("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0})||this}return m(t,e),t.prototype.run=function(e,t){var n=w.get(t);n&&n.selectToBracket()},t}(s["b"]),y=function(){function e(e,t){this.position=e,this.brackets=t}return e}(),w=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._lastBracketsData=[],n._lastVersionId=0,n._decorations=[],n._updateBracketsSoon=n._register(new o["d"](function(){return n._updateBrackets()},50)),n._matchBrackets=n._editor.getConfiguration().contribInfo.matchBrackets,n._updateBracketsSoon.schedule(),n._register(t.onDidChangeCursorPosition(function(e){n._matchBrackets&&n._updateBracketsSoon.schedule()})),n._register(t.onDidChangeModelContent(function(e){n._updateBracketsSoon.schedule()})),n._register(t.onDidChangeModel(function(e){n._lastBracketsData=[],n._decorations=[],n._updateBracketsSoon.schedule()})),n._register(t.onDidChangeModelLanguageConfiguration(function(e){n._lastBracketsData=[],n._updateBracketsSoon.schedule()})),n._register(t.onDidChangeConfiguration(function(e){n._matchBrackets=n._editor.getConfiguration().contribInfo.matchBrackets,!n._matchBrackets&&n._decorations.length>0&&(n._decorations=n._editor.deltaDecorations(n._decorations,[])),n._updateBracketsSoon.schedule()})),n}return m(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.jumpToBracket=function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=this._editor.getSelections().map(function(t){var n=t.getStartPosition(),i=e.matchBracket(n),o=null;if(i)i[0].containsPosition(n)?o=i[1].getStartPosition():i[1].containsPosition(n)&&(o=i[0].getStartPosition());else{var r=e.findNextBracket(n);r&&r.range&&(o=r.range.getStartPosition())}return o?new u["a"](o.lineNumber,o.column,o.lineNumber,o.column):new u["a"](n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}},t.prototype.selectToBracket=function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=[];this._editor.getSelections().forEach(function(n){var i=n.getStartPosition(),o=e.matchBracket(i),r=null,s=null;if(!o){var a=e.findNextBracket(i);a&&a.range&&(o=e.matchBracket(a.range.getStartPosition()))}o&&(o[0].startLineNumber===o[1].startLineNumber?(r=o[1].startColumn<o[0].startColumn?o[1].getStartPosition():o[0].getStartPosition(),s=o[1].startColumn<o[0].startColumn?o[0].getEndPosition():o[1].getEndPosition()):(r=o[1].startLineNumber<o[0].startLineNumber?o[1].getStartPosition():o[0].getStartPosition(),s=o[1].startLineNumber<o[0].startLineNumber?o[0].getEndPosition():o[1].getEndPosition())),r&&s&&t.push(new u["a"](r.lineNumber,r.column,s.lineNumber,s.column))}),t.length>0&&(this._editor.setSelections(t),this._editor.revealRange(t[0]))}},t.prototype._updateBrackets=function(){if(this._matchBrackets){this._recomputeBrackets();for(var e=[],n=0,i=0,o=this._lastBracketsData.length;i<o;i++){var r=this._lastBracketsData[i].brackets;r&&(e[n++]={range:r[0],options:t._DECORATION_OPTIONS},e[n++]={range:r[1],options:t._DECORATION_OPTIONS})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}},t.prototype._recomputeBrackets=function(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);var e=this._editor.getModel(),t=e.getVersionId(),n=[];this._lastVersionId===t&&(n=this._lastBracketsData);for(var i=this._editor.getSelections(),o=[],r=0,s=0,u=i.length;s<u;s++){var l=i[s];l.isEmpty()&&(o[r++]=l.getStartPosition())}o.length>1&&o.sort(a["a"].compare);var c=[],d=0,h=0,p=n.length;for(s=0,u=o.length;s<u;s++){var f=o[s];while(h<p&&n[h].position.isBefore(f))h++;if(h<p&&n[h].position.equals(f))c[d++]=n[h];else{var g=e.matchBracket(f);c[d++]=new y(f,g)}}this._lastBracketsData=c,this._lastVersionId=t},t.ID="editor.contrib.bracketMatchingController",t._DECORATION_OPTIONS=d["a"].register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(f["g"])(v),position:c["d"].Center}}),t}(r["a"]);Object(s["h"])(w),Object(s["f"])(b),Object(s["f"])(_),Object(f["f"])(function(e,t){var n=e.getColor(h["c"]);n&&t.addRule(".monaco-editor .bracket-match { background-color: "+n+"; }");var i=e.getColor(h["d"]);i&&t.addRule(".monaco-editor .bracket-match { border: 1px solid "+i+"; }")}),g["c"].appendMenuItem(16,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:i["a"]({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},7061:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.with=function(t,n){return void 0===t&&(t=this.lineNumber),void 0===n&&(n=this.column),t===this.lineNumber&&n===this.column?this:new e(t,n)},e.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)},e.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},e.compare=function(e,t){var n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){var o=0|e.column,r=0|t.column;return o-r}return n-i},e.prototype.clone=function(){return new e(this.lineNumber,this.column)},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},e.lift=function(t){return new e(t.lineNumber,t.column)},e.isIPosition=function(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column},e}()},7082:function(e,t,n){"use strict";n.r(t);var i=n("e8e3"),o=n("2504"),r=n("fe45"),s=n("a666"),a=n("b2cc"),u=n("5717"),l=n("3170"),c=n("6a89"),d=n("c101"),h=n("b707"),p=n("a40b"),f=n("3813"),g=n("fdcc"),m=n("6d8e"),v=n("bc04"),_=n("b055"),b=n("7061"),y=n("8025"),w=n("1b69"),C=n("d3f49"),S=function(){function e(){}return e._handleEolEdits=function(e,t){for(var n=void 0,i=[],o=0,r=t;o<r.length;o++){var s=r[o];"number"===typeof s.eol&&(n=s.eol),s.range&&"string"===typeof s.text&&i.push(s)}return"number"===typeof n&&e.hasModel()&&e.getModel().pushEOL(n),i},e._isFullModelReplaceEdit=function(e,t){if(!e.hasModel())return!1;var n=e.getModel(),i=n.validateRange(t.range),o=n.getFullModelRange();return o.equalsRange(i)},e.execute=function(t,n){t.pushUndoStop();var i=e._handleEolEdits(t,n);1===i.length&&e._isFullModelReplaceEdit(t,i[0])?t.executeEdits("formatEditsCommand",i.map(function(e){return C["a"].replace(c["a"].lift(e.range),e.text)})):t.executeEdits("formatEditsCommand",i.map(function(e){return C["a"].replaceMove(c["a"].lift(e.range),e.text)})),t.pushUndoStop()},e}(),L=n("dff7"),O=function(){function e(e){this.value=e,this._lower=e.toLowerCase()}return e.toKey=function(e){return"string"===typeof e?e.toLowerCase():e._lower},e}(),x=n("0a0f"),N=n("db88"),D=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},k=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function I(e){if(e=e.filter(function(e){return e.range}),e.length){for(var t=e[0].range,n=1;n<e.length;n++)t=c["a"].plusRange(t,e[n].range);var i=t.startLineNumber,o=t.endLineNumber;i===o?1===e.length?Object(f["a"])(L["a"]("hint11","Made 1 formatting edit on line {0}",i)):Object(f["a"])(L["a"]("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?Object(f["a"])(L["a"]("hint1n","Made 1 formatting edit between lines {0} and {1}",i,o)):Object(f["a"])(L["a"]("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,o))}}function E(e){for(var t=[],n=new Set,i=h["g"].ordered(e),o=0,r=i;o<r.length;o++){var s=r[o];t.push(s),s.extensionId&&n.add(O.toKey(s.extensionId))}for(var a=h["j"].ordered(e),u=function(e){if(e.extensionId){if(n.has(O.toKey(e.extensionId)))return"continue";n.add(O.toKey(e.extensionId))}t.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:function(t,n,i){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,i)}})},l=0,c=a;l<c.length;l++){s=c[l];u(s)}return t}var M=function(){function e(){}return e.select=function(t,n,i){return D(this,void 0,void 0,function(){var o;return k(this,function(r){switch(r.label){case 0:return 0===t.length?[2,void 0]:(o=e._selectors.iterator().next().value,o?[4,o(t,n,i)]:[3,2]);case 1:return[2,r.sent()];case 2:return[2,t[0]]}})})},e._selectors=new N["a"],e}();function T(e,t,n,i,o){return D(this,void 0,void 0,function(){var r,s,a,u;return k(this,function(l){switch(l.label){case 0:return r=e.get(x["a"]),s=Object(_["a"])(t)?t.getModel():t,a=h["j"].ordered(s),[4,M.select(a,s,i)];case 1:return u=l.sent(),u?[4,r.invokeFunction(P,u,t,n,o)]:[3,3];case 2:l.sent(),l.label=3;case 3:return[2]}})})}function P(e,t,n,i,o){return D(this,void 0,void 0,function(){var r,s,a,u,l,d,h;return k(this,function(f){switch(f.label){case 0:r=e.get(p["a"]),Object(_["a"])(n)?(s=n.getModel(),a=new v["b"](n,5,o)):(s=n,a=new v["d"](n,o)),f.label=1;case 1:return f.trys.push([1,,4,5]),[4,t.provideDocumentRangeFormattingEdits(s,i,s.getFormattingOptions(),a.token)];case 2:return l=f.sent(),[4,r.computeMoreMinimalEdits(s.uri,l)];case 3:return u=f.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return u&&0!==u.length?(Object(_["a"])(n)?(S.execute(n,u),I(u),n.pushUndoStop(),n.focus(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1)):(d=u[0].range,h=new y["a"](d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),s.pushEditOperations([h],u.map(function(e){return{text:e.text,range:c["a"].lift(e.range),forceMoveMarkers:!0}}),function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(c["a"].areIntersectingOrTouching(i,h))return[new y["a"](i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null})),[2,!0]):[2,!1]}})})}function R(e,t,n,i){return D(this,void 0,void 0,function(){var o,r,s,a;return k(this,function(u){switch(u.label){case 0:return o=e.get(x["a"]),r=Object(_["a"])(t)?t.getModel():t,s=E(r),[4,M.select(s,r,n)];case 1:return a=u.sent(),a?[4,o.invokeFunction(A,a,t,n,i)]:[3,3];case 2:u.sent(),u.label=3;case 3:return[2]}})})}function A(e,t,n,i,o){return D(this,void 0,void 0,function(){var r,s,a,u,l,d,h;return k(this,function(f){switch(f.label){case 0:r=e.get(p["a"]),Object(_["a"])(n)?(s=n.getModel(),a=new v["b"](n,5,o)):(s=n,a=new v["d"](n,o)),f.label=1;case 1:return f.trys.push([1,,4,5]),[4,t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token)];case 2:return l=f.sent(),[4,r.computeMoreMinimalEdits(s.uri,l)];case 3:return u=f.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return u&&0!==u.length?(Object(_["a"])(n)?(S.execute(n,u),2!==i&&(I(u),n.pushUndoStop(),n.focus(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1))):(d=u[0].range,h=new y["a"](d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),s.pushEditOperations([h],u.map(function(e){return{text:e.text,range:c["a"].lift(e.range),forceMoveMarkers:!0}}),function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(c["a"].areIntersectingOrTouching(i,h))return[new y["a"](i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null})),[2,!0]):[2,!1]}})})}function F(e,t,n,o,r){return D(this,void 0,void 0,function(){var s,a,u,l,c;return k(this,function(d){switch(d.label){case 0:s=h["j"].ordered(t),a=0,u=s,d.label=1;case 1:return a<u.length?(l=u[a],[4,Promise.resolve(l.provideDocumentRangeFormattingEdits(t,n,o,r)).catch(g["f"])]):[3,5];case 2:return c=d.sent(),Object(i["n"])(c)?[4,e.computeMoreMinimalEdits(t.uri,c)]:[3,4];case 3:return[2,d.sent()];case 4:return a++,[3,1];case 5:return[2,void 0]}})})}function j(e,t,n,o){return D(this,void 0,void 0,function(){var r,s,a,u,l;return k(this,function(c){switch(c.label){case 0:r=E(t),s=0,a=r,c.label=1;case 1:return s<a.length?(u=a[s],[4,Promise.resolve(u.provideDocumentFormattingEdits(t,n,o)).catch(g["f"])]):[3,5];case 2:return l=c.sent(),Object(i["n"])(l)?[4,e.computeMoreMinimalEdits(t.uri,l)]:[3,4];case 3:return[2,c.sent()];case 4:return s++,[3,1];case 5:return[2,void 0]}})})}function W(e,t,n,i,r){var s=h["r"].ordered(t);return 0===s.length?Promise.resolve(void 0):s[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(s[0].provideOnTypeFormattingEdits(t,n,i,r,o["a"].None)).catch(g["f"]).then(function(n){return e.computeMoreMinimalEdits(t.uri,n)})}Object(a["j"])("_executeFormatRangeProvider",function(e,t){var n=t.resource,i=t.range,r=t.options;if(!(n instanceof m["a"])||!c["a"].isIRange(i))throw Object(g["b"])();var s=e.get(w["a"]).getModel(n);if(!s)throw Object(g["b"])("resource");return F(e.get(p["a"]),s,c["a"].lift(i),r,o["a"].None)}),Object(a["j"])("_executeFormatDocumentProvider",function(e,t){var n=t.resource,i=t.options;if(!(n instanceof m["a"]))throw Object(g["b"])("resource");var r=e.get(w["a"]).getModel(n);if(!r)throw Object(g["b"])("resource");return j(e.get(p["a"]),r,i,o["a"].None)}),Object(a["j"])("_executeFormatOnTypeProvider",function(e,t){var n=t.resource,i=t.position,o=t.ch,r=t.options;if(!(n instanceof m["a"])||!b["a"].isIPosition(i)||"string"!==typeof o)throw Object(g["b"])();var s=e.get(w["a"]).getModel(n);if(!s)throw Object(g["b"])("resource");return W(e.get(p["a"]),s,b["a"].lift(i),o,r)});var V=n("9e74"),B=n("4fc3"),H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),z=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},U=function(e,t){return function(n,i){t(n,i,e)}},K=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},q=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},G=void 0,Z=function(){function e(e,t){var n=this;this._workerService=t,this._callOnDispose=new s["b"],this._callOnModel=new s["b"],this._editor=e,this._callOnDispose.add(e.onDidChangeConfiguration(function(){return n._update()})),this._callOnDispose.add(e.onDidChangeModel(function(){return n._update()})),this._callOnDispose.add(e.onDidChangeModelLanguage(function(){return n._update()})),this._callOnDispose.add(h["r"].onDidChange(this._update,this))}return e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},e.prototype._update=function(){var e=this;if(this._callOnModel.clear(),this._editor.getConfiguration().contribInfo.formatOnType&&this._editor.hasModel()){var t=this._editor.getModel(),n=h["r"].ordered(t)[0];if(n&&n.autoFormatTriggerCharacters){for(var i=new l["b"],o=0,r=n.autoFormatTriggerCharacters;o<r.length;o++){var s=r[o];i.add(s.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType(function(t){var n=t.charCodeAt(t.length-1);i.has(n)&&e._trigger(String.fromCharCode(n))}))}}},e.prototype._trigger=function(e){var t=this;if(this._editor.hasModel()&&!(this._editor.getSelections().length>1)){var n=this._editor.getModel(),o=this._editor.getPosition(),r=!1,s=this._editor.onDidChangeModelContent(function(e){if(e.isFlush)return r=!0,void s.dispose();for(var t=0,n=e.changes.length;t<n;t++){var i=e.changes[t];if(i.range.endLineNumber<=o.lineNumber)return r=!0,void s.dispose()}});W(this._workerService,n,o,e,n.getFormattingOptions()).then(function(e){s.dispose(),r||Object(i["n"])(e)&&(S.execute(t._editor,e),I(e))},function(e){throw s.dispose(),e})}},e.ID="editor.contrib.autoFormat",e=z([U(1,p["a"])],e),e}(),Y=function(){function e(e,t){var n=this;this.editor=e,this._instantiationService=t,this._callOnDispose=new s["b"],this._callOnModel=new s["b"],this._callOnDispose.add(e.onDidChangeConfiguration(function(){return n._update()})),this._callOnDispose.add(e.onDidChangeModel(function(){return n._update()})),this._callOnDispose.add(e.onDidChangeModelLanguage(function(){return n._update()})),this._callOnDispose.add(h["j"].onDidChange(this._update,this))}return e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},e.prototype._update=function(){var e=this;this._callOnModel.clear(),this.editor.getConfiguration().contribInfo.formatOnPaste&&this.editor.hasModel()&&h["j"].has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(function(t){return e._trigger(t)}))},e.prototype._trigger=function(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(T,this.editor,e,2,o["a"].None).catch(g["e"]))},e.ID="editor.contrib.formatOnPaste",e=z([U(1,x["a"])],e),e}(),X=function(e){function t(){return e.call(this,{id:"editor.action.formatDocument",label:L["a"]("formatDocument.label","Format Document"),alias:"Format Document",precondition:B["a"].and(d["a"].writable,d["a"].hasDocumentFormattingProvider),kbOpts:{kbExpr:B["a"].and(d["a"].editorTextFocus,d["a"].hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},menuOpts:{when:d["a"].hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return H(t,e),t.prototype.run=function(e,t){return K(this,void 0,void 0,function(){var n;return q(this,function(i){switch(i.label){case 0:return t.hasModel()?(n=e.get(x["a"]),[4,n.invokeFunction(R,t,1,o["a"].None)]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},t}(a["b"]),$=function(e){function t(){return e.call(this,{id:"editor.action.formatSelection",label:L["a"]("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:B["a"].and(d["a"].writable,d["a"].hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:B["a"].and(d["a"].editorTextFocus,d["a"].hasDocumentSelectionFormattingProvider),primary:Object(r["a"])(2089,2084),weight:100},menuOpts:{when:B["a"].and(d["a"].hasDocumentSelectionFormattingProvider,d["a"].hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return H(t,e),t.prototype.run=function(e,t){return K(this,void 0,void 0,function(){var n,i,r;return q(this,function(s){switch(s.label){case 0:return t.hasModel()?(n=e.get(x["a"]),i=t.getModel(),r=t.getSelection(),r.isEmpty()&&(r=new c["a"](r.startLineNumber,1,r.startLineNumber,i.getLineMaxColumn(r.startLineNumber))),[4,n.invokeFunction(T,t,r,1,o["a"].None)]):[2];case 1:return s.sent(),[2]}})})},t}(a["b"]);Object(a["h"])(Z),Object(a["h"])(Y),Object(a["f"])(X),Object(a["f"])($),V["a"].registerCommand("editor.action.format",function(e){return K(G,void 0,void 0,function(){var t,n;return q(this,function(i){switch(i.label){case 0:return t=e.get(u["a"]).getFocusedCodeEditor(),t&&t.hasModel()?(n=e.get(V["b"]),t.getSelection().isEmpty()?[4,n.executeCommand("editor.action.formatDocument")]:[3,2]):[2];case 1:return i.sent(),[3,4];case 2:return[4,n.executeCommand("editor.action.formatSelection")];case 3:i.sent(),i.label=4;case 4:return[2]}})})})},"70c3":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("ba77");var i=n("a666"),o=n("0f70"),r=n("30db"),s=n("ef8e"),a=n("a60f"),u=n("5d28"),l=n("308f"),c=n("11f7"),d=n("e32d"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=!1,f=function(e){function t(t,n,s){void 0===s&&(s={});var u=e.call(this)||this;return u._state=3,u._onDidEnablementChange=u._register(new l["a"]),u.onDidEnablementChange=u._onDidEnablementChange.event,u._onDidStart=u._register(new l["a"]),u.onDidStart=u._onDidStart.event,u._onDidChange=u._register(new l["a"]),u.onDidChange=u._onDidChange.event,u._onDidReset=u._register(new l["a"]),u.onDidReset=u._onDidReset.event,u._onDidEnd=u._register(new l["a"]),u.onDidEnd=u._onDidEnd.event,u.linkedSash=void 0,u.orthogonalStartSashDisposables=u._register(new i["b"]),u.orthogonalEndSashDisposables=u._register(new i["b"]),u.el=Object(c["m"])(t,Object(c["a"])(".monaco-sash")),r["d"]&&Object(c["f"])(u.el,"mac"),u._register(Object(d["a"])(u.el,"mousedown")(u.onMouseDown,u)),u._register(Object(d["a"])(u.el,"dblclick")(u.onMouseDoubleClick,u)),a["b"].addTarget(u.el),u._register(Object(d["a"])(u.el,a["a"].Start)(u.onTouchStart,u)),o["k"]&&Object(c["f"])(u.el,"touch"),u.setOrientation(s.orientation||0),u.hidden=!1,u.layoutProvider=n,u.orthogonalStartSash=s.orthogonalStartSash,u.orthogonalEndSash=s.orthogonalEndSash,Object(c["R"])(u.el,"debug",p),u}return h(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(Object(c["R"])(this.el,"disabled",0===e),Object(c["R"])(this.el,"minimum",1===e),Object(c["R"])(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),t.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(Object(c["f"])(this.el,"horizontal"),Object(c["I"])(this.el,"vertical")):(Object(c["I"])(this.el,"horizontal"),Object(c["f"])(this.el,"vertical")),this.layoutProvider&&this.layout()},t.prototype.onMouseDown=function(e){var t=this;c["c"].stop(e,!1);var n=!1;if(!e.__orthogonalSashEvent){var o=this.getOrthogonalSash(e);o&&(n=!0,e.__orthogonalSashEvent=!0,o.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),this.state){for(var s=Object(c["y"])("iframe").concat(Object(c["y"])("webview")),a=0,l=s;a<l.length;a++){var h=l[a];h.style.pointerEvents="none"}var p=new u["b"](e),f=p.posx,g=p.posy,m=p.altKey,v={startX:f,currentX:f,startY:g,currentY:g,altKey:m};Object(c["f"])(this.el,"active"),this._onDidStart.fire(v);var _=Object(c["s"])(this.el),b=function(){var e="";e=n?"all-scroll":1===t.orientation?1===t.state?"s-resize":2===t.state?"n-resize":r["d"]?"row-resize":"ns-resize":1===t.state?"e-resize":2===t.state?"w-resize":r["d"]?"col-resize":"ew-resize",_.innerHTML="* { cursor: "+e+" !important; }"},y=new i["b"];b(),n||this.onDidEnablementChange(b,null,y);var w=function(e){c["c"].stop(e,!1);var n=new u["b"](e),i={startX:f,currentX:n.posx,startY:g,currentY:n.posy,altKey:m};t._onDidChange.fire(i)},C=function(e){c["c"].stop(e,!1),t.el.removeChild(_),Object(c["I"])(t.el,"active"),t._onDidEnd.fire(),y.dispose();for(var n=0,i=s;n<i.length;n++){var o=i[n];o.style.pointerEvents="auto"}};Object(d["a"])(window,"mousemove")(w,null,y),Object(d["a"])(window,"mouseup")(C,null,y)}},t.prototype.onMouseDoubleClick=function(e){var t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},t.prototype.onTouchStart=function(e){var t=this;c["c"].stop(e);var n=[],o=e.pageX,r=e.pageY,u=e.altKey;this._onDidStart.fire({startX:o,currentX:o,startY:r,currentY:r,altKey:u}),n.push(Object(c["h"])(this.el,a["a"].Change,function(e){s["g"](e.pageX)&&s["g"](e.pageY)&&t._onDidChange.fire({startX:o,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:u})})),n.push(Object(c["h"])(this.el,a["a"].End,function(e){t._onDidEnd.fire(),Object(i["f"])(n)}))},t.prototype.layout=function(){var e=o["k"]?20:4;if(0===this.orientation){var t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-e/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{var n=this.layoutProvider;this.el.style.top=n.getHorizontalSashTop(this)-e/2+"px",n.getHorizontalSashLeft&&(this.el.style.left=n.getHorizontalSashLeft(this)+"px"),n.getHorizontalSashWidth&&(this.el.style.width=n.getHorizontalSashWidth(this)+"px")}},t.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},t.prototype.onOrthogonalStartSashEnablementChange=function(e){Object(c["R"])(this.el,"orthogonal-start",0!==e)},t.prototype.onOrthogonalEndSashEnablementChange=function(e){Object(c["R"])(this.el,"orthogonal-end",0!==e)},t.prototype.getOrthogonalSash=function(e){if(0===this.orientation){if(e.offsetY<=4)return this.orthogonalStartSash;if(e.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(e.offsetX<=4)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.el&&this.el.parentElement&&this.el.parentElement.removeChild(this.el),this.el=null},t}(i["a"])},"70cb":function(e,t,n){"use strict";var i=n("fdcc"),o=n("308f"),r=n("a666"),s=n("3742"),a=n("6a89"),u=n("d093"),l=n("2837"),c=n("045b"),d=function(){function e(t){if(t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map(function(e){return new l["b"](e)}):t.brackets?this._autoClosingPairs=t.brackets.map(function(e){return new l["b"]({open:e[0],close:e[1]})}):this._autoClosingPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){var n=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new l["b"]({open:n.open,close:n.close||""}))}this._autoCloseBefore="string"===typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},e.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var i=t.findTokenIndexAtOffset(n-2),o=t.getStandardTokenType(i);return e.isOK(o)},e.prototype.getSurroundingPairs=function(){return this._surroundingPairs},e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",e}(),h=n("1080"),p=function(){function e(e){this._richEditBrackets=e}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets.length;t<n;t++){var i=this._richEditBrackets.brackets[t],o=i.close.charAt(i.close.length-1);e.push(o)}return e=e.filter(function(e,t,n){return n.indexOf(e)===t}),e},e.prototype.onElectricCharacter=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var i=t.findTokenIndexAtOffset(n-1);if(Object(c["b"])(t.getStandardTokenType(i)))return null;var o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,n-1)+e,s=h["a"].findPrevBracketInToken(o,1,r,0,r.length);if(!s)return null;var a=r.substring(s.startColumn-1,s.endColumn-1);a=a.toLowerCase();var u=this._richEditBrackets.textIsOpenBracket[a];if(u)return null;var l=r.substring(0,s.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null},e}(),f=function(){function e(e){this._indentationRules=e}return e.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},e.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},e.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},e.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},e.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t},e}(),g=function(){function e(t){var n=this;t=t||{},t.brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(function(t){var i=e._createOpenBracketRegExp(t[0]),o=e._createCloseBracketRegExp(t[1]);i&&o&&n._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:o})}),this._regExpRules=t.regExpRules||[]}return e.prototype.onEnter=function(e,t,n){for(var i=0,o=this._regExpRules.length;i<o;i++){var r=this._regExpRules[i],s=[{reg:r.beforeText,text:t},{reg:r.afterText,text:n},{reg:r.oneLineAboveText,text:e}].every(function(e){return!e.reg||e.reg.test(e.text)});if(s)return r.action}if(t.length>0&&n.length>0)for(i=0,o=this._brackets.length;i<o;i++){var a=this._brackets[i];if(a.openRegExp.test(t)&&a.closeRegExp.test(n))return{indentAction:l["a"].IndentOutdent}}if(t.length>0)for(i=0,o=this._brackets.length;i<o;i++){a=this._brackets[i];if(a.openRegExp.test(t))return{indentAction:l["a"].Indent}}return null},e._createOpenBracketRegExp=function(t){var n=s["p"](t);return/\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",e._safeRegExp(n)},e._createCloseBracketRegExp=function(t){var n=s["p"](t);return/\B/.test(n.charAt(n.length-1))||(n+="\\b"),n="^\\s*"+n,e._safeRegExp(n)},e._safeRegExp=function(e){try{return new RegExp(e)}catch(t){return Object(i["e"])(t),null}},e}();n.d(t,"a",function(){return b});var m=function(){function e(t,n,i){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var o=null;n&&(o=n._conf),this._conf=e._mergeConf(o,i),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new d(this._conf),this.wordDefinition=this._conf.wordPattern||u["a"],this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new f(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new h["b"](this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new p(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},n=!0;return e.brackets&&(n=!1,t.brackets=e.brackets),e.indentationRules&&(n=!1),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new g(t)},e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var i=t.blockComment,o=i[0],r=i[1];n.blockCommentStartToken=o,n.blockCommentEndToken=r}return n},e}(),v=function(){function e(e){this.languageIdentifier=e}return e}(),_=function(){function e(){this._entries=new Map,this._onDidChange=new o["a"],this.onDidChange=this._onDidChange.event}return e.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),o=new m(e,i,t);return this._entries.set(e.id,o),this._onDidChange.fire(new v(e)),Object(r["h"])(function(){n._entries.get(e.id)===o&&(n._entries.set(e.id,i),n._onDidChange.fire(new v(e)))})},e.prototype._getRichEditSupport=function(e){return this._entries.get(e)},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var i=Object(c["a"])(t,n-1),o=this._getElectricCharacterSupport(i.languageId);return o?o.onElectricCharacter(e,i,n-i.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var i=Object(c["a"])(t,n-1);return d.shouldAutoClosePair(e,i,n-i.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?Object(u["c"])(t.wordDefinition||null):Object(u["c"])(null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},e.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(t>1){var o=void 0,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return r;var s=e.getLineContent(o);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return o;r=o}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!i)return null;if(t<=1)return{indentation:"",action:null};var o=this.getPrecedingValidLine(e,t,i);if(o<0)return null;if(o<1)return{indentation:"",action:null};var r=e.getLineContent(o);if(i.shouldIncrease(r)||i.shouldIndentNextLine(r))return{indentation:s["s"](r),action:l["a"].Indent,line:o};if(i.shouldDecrease(r))return{indentation:s["s"](r),action:null,line:o};if(1===o)return{indentation:s["s"](e.getLineContent(o)),action:null,line:o};var a=o-1,u=i.getIndentMetadata(e.getLineContent(a));if(!(3&u)&&4&u){for(var c=0,d=a-1;d>0;d--)if(!i.shouldIndentNextLine(e.getLineContent(d))){c=d;break}return{indentation:s["s"](e.getLineContent(c+1)),action:null,line:c+1}}if(n)return{indentation:s["s"](e.getLineContent(o)),action:null,line:o};for(d=o;d>0;d--){var h=e.getLineContent(d);if(i.shouldIncrease(h))return{indentation:s["s"](h),action:l["a"].Indent,line:d};if(i.shouldIndentNextLine(h)){c=0;for(var p=d-1;p>0;p--)if(!i.shouldIndentNextLine(e.getLineContent(d))){c=p;break}return{indentation:s["s"](e.getLineContent(c+1)),action:null,line:c+1}}if(i.shouldDecrease(h))return{indentation:s["s"](h),action:null,line:d}}return{indentation:s["s"](e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,o){var r=this.getIndentRulesSupport(t);if(!r)return null;var a=this.getInheritIndentForLine(e,n),u=e.getLineContent(n);if(a){var c=a.line;if(void 0!==c){var d=this._getOnEnterSupport(t),h=null;try{d&&(h=d.onEnter("",e.getLineContent(c),""))}catch(f){Object(i["e"])(f)}if(h){var p=s["s"](e.getLineContent(c));return h.removeText&&(p=p.substring(0,p.length-h.removeText)),h.indentAction===l["a"].Indent||h.indentAction===l["a"].IndentOutdent?p=o.shiftIndent(p):h.indentAction===l["a"].Outdent&&(p=o.unshiftIndent(p)),r.shouldDecrease(u)&&(p=o.unshiftIndent(p)),h.appendText&&(p+=h.appendText),s["s"](p)}}return r.shouldDecrease(u)?a.action===l["a"].Indent?a.indentation:o.unshiftIndent(a.indentation):a.action===l["a"].Indent?o.shiftIndent(a.indentation):a.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,i){e.forceTokenization(t.startLineNumber);var o,r,a=e.getLineTokens(t.startLineNumber),u=Object(c["a"])(a,t.startColumn-1),d=u.getLineContent(),h=!1;if(u.firstCharOffset>0&&a.getLanguageId(0)!==u.languageId?(h=!0,o=d.substr(0,t.startColumn-1-u.firstCharOffset)):o=a.getLineContent().substring(0,t.startColumn-1),t.isEmpty())r=d.substr(t.startColumn-1-u.firstCharOffset);else{var p=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);r=p.getLineContent().substr(t.endColumn-1-u.firstCharOffset)}var f=this.getIndentRulesSupport(u.languageId);if(!f)return null;var g=o,m=s["s"](o);if(!i&&!h){var v=this.getInheritIndentForLine(e,t.startLineNumber);f.shouldDecrease(o)&&v&&(m=v.indentation,v.action!==l["a"].Indent&&(m=n.unshiftIndent(m))),g=m+s["B"](s["B"](o," "),"\t")}var _={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?g:e.getLineContent(n)}},b=s["s"](a.getLineContent()),y=this.getInheritIndentForLine(_,t.startLineNumber+1);if(!y){var w=h?b:m;return{beforeEnter:w,afterEnter:w}}var C=h?b:y.indentation;return y.action===l["a"].Indent&&(C=n.shiftIndent(C)),f.shouldDecrease(r)&&(C=n.unshiftIndent(C)),{beforeEnter:h?b:m,afterEnter:C}},e.prototype.getIndentActionForType=function(e,t,n,i){var o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),r=this.getIndentRulesSupport(o.languageId);if(!r)return null;var s,a=o.getLineContent(),u=a.substr(0,t.startColumn-1-o.firstCharOffset);if(t.isEmpty())s=a.substr(t.startColumn-1-o.firstCharOffset);else{var c=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);s=c.getLineContent().substr(t.endColumn-1-o.firstCharOffset)}if(!r.shouldDecrease(u+s)&&r.shouldDecrease(u+n+s)){var d=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!d)return null;var h=d.indentation;return d.action!==l["a"].Indent&&(h=i.unshiftIndent(h)),h}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var i=this.getEnterAction(e,new a["a"](t,n,t,n));return i?i.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),r=this._getOnEnterSupport(o.languageId);if(!r)return null;var s,a=o.getLineContent(),u=a.substr(0,t.startColumn-1-o.firstCharOffset);if(t.isEmpty())s=a.substr(t.startColumn-1-o.firstCharOffset);else{var c=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);s=c.getLineContent().substr(t.endColumn-1-o.firstCharOffset)}var d=t.startLineNumber,h="";if(d>1&&0===o.firstCharOffset){var p=this.getScopedLineTokens(e,d-1);p.languageId===o.languageId&&(h=p.getLineContent())}var f=null;try{f=r.onEnter(h,u,s)}catch(g){Object(i["e"])(g)}return f?(f.appendText||(f.indentAction===l["a"].Indent||f.indentAction===l["a"].IndentOutdent?f.appendText="\t":f.appendText=""),f.removeText&&(n=n.substring(0,n.length-f.removeText)),{enterAction:f,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,n){var i=e.getLineContent(t),o=s["s"](i);return o.length>n-1&&(o=o.substring(0,n-1)),o},e.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var i=e.getLineTokens(t),o="undefined"===typeof n?e.getLineMaxColumn(t)-1:n-1,r=Object(c["a"])(i,o);return r},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}(),b=new _},7121:function(e,t,n){"use strict";var i,o,r=n("11f7"),s=n("ceb8"),a=n("308f"),u=n("a666"),l=n("b589"),c=n("82c9"),d=(n("3359"),n("d379")),h=n("6a89"),p=n("b57f"),f=n("b78f"),g=n("3a57"),m=n("c4e3"),v=(n("54f2"),n("3742")),_=n("aa3d"),b={badgeBackground:s["a"].fromHex("#4D4D4D"),badgeForeground:s["a"].fromHex("#FFFFFF")},y=function(){function e(e,t){this.count=0,this.options=t||Object.create(null),Object(_["g"])(this.options,b,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(r["m"])(e,Object(r["a"])(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return e.prototype.setCount=function(e){this.count=e,this.render()},e.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render()},e.prototype.render=function(){this.element.textContent=Object(v["r"])(this.countFormat,this.count),this.element.title=Object(v["r"])(this.titleFormat,this.count),this.applyStyles()},e.prototype.style=function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()},e.prototype.applyStyles=function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():null,t=this.badgeForeground?this.badgeForeground.toString():null,n=this.badgeBorder?this.badgeBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},e}(),w=n("47cb"),C=n("b7d0"),S=n("a6d7"),L=n("dff7"),O=n("debc"),x=n("0a0f"),N=n("6dec"),D=n("7e93"),k=n("ee56"),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},M=function(e,t){return function(n,i){t(n,i,e)}},T=function(){function e(e){this._resolverService=e}return e.prototype.hasChildren=function(e){return e instanceof g["c"]||e instanceof g["a"]&&!e.failure},e.prototype.getChildren=function(e){if(e instanceof g["c"])return e.groups;if(e instanceof g["a"])return e.resolve(this._resolverService).then(function(e){return e.children});throw new Error("bad tree")},e=E([M(0,f["a"])],e),e}(),P=function(){function e(){}return e.prototype.getHeight=function(){return 23},e.prototype.getTemplateId=function(e){return e instanceof g["a"]?j.id:V.id},e}(),R=function(){function e(e){this._keybindingService=e}return e.prototype.getKeyboardNavigationLabel=function(e){if(e instanceof g["b"]){var t=e.parent.preview,n=t&&t.preview(e.range);if(n)return n.value}return Object(c["b"])(e.uri)},e.prototype.mightProducePrintableCharacter=function(e){return this._keybindingService.mightProducePrintableCharacter(e)},e=E([M(0,N["a"])],e),e}(),A=function(){function e(){}return e.prototype.getId=function(e){return e.id},e}(),F=function(e){function t(t,n,i){var o=e.call(this)||this;o._uriLabel=n;var s=document.createElement("div");return r["f"](s,"reference-file"),o.file=o._register(new m["a"](s,{supportHighlights:!0})),o.badge=new y(r["m"](s,r["a"](".count"))),o._register(Object(S["a"])(o.badge,i)),t.appendChild(s),o}return I(t,e),t.prototype.set=function(e,t){var n=Object(c["d"])(e.uri);this.file.setLabel(Object(O["a"])(e.uri),this._uriLabel.getUriLabel(n,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});var i=e.children.length;this.badge.setCount(i),e.failure?this.badge.setTitleFormat(Object(L["a"])("referencesFailre","Failed to resolve file.")):i>1?this.badge.setTitleFormat(Object(L["a"])("referencesCount","{0} references",i)):this.badge.setTitleFormat(Object(L["a"])("referenceCount","{0} reference",i))},t=E([M(1,w["a"]),M(2,C["c"])],t),t}(u["a"]),j=function(){function e(t){this._instantiationService=t,this.templateId=e.id}return e.prototype.renderTemplate=function(e){return this._instantiationService.createInstance(F,e)},e.prototype.renderElement=function(e,t,n){n.set(e.element,Object(D["c"])(e.filterData))},e.prototype.disposeTemplate=function(e){e.dispose()},e.id="FileReferencesRenderer",e=E([M(0,x["a"])],e),e}(),W=function(){function e(e){this.label=new k["a"](e,!1)}return e.prototype.set=function(e,t){var n=e.parent.preview,i=n&&n.preview(e.range);if(i){var o=i.value,s=i.highlight;t&&!D["a"].isDefault(t)?(r["R"](this.label.element,"referenceMatch",!1),this.label.set(o,Object(D["c"])(t))):(r["R"](this.label.element,"referenceMatch",!0),this.label.set(o,[s]))}else this.label.set(Object(c["b"])(e.uri)+":"+(e.range.startLineNumber+1)+":"+(e.range.startColumn+1))},e}(),V=function(){function e(){this.templateId=e.id}return e.prototype.renderTemplate=function(e){return new W(e)},e.prototype.renderElement=function(e,t,n){n.set(e.element,e.filterData)},e.prototype.disposeTemplate=function(){},e.id="OneReferenceRenderer",e}(),B=function(){function e(){}return e.prototype.getAriaLabel=function(e){return e instanceof g["a"]?e.getAriaMessage():e instanceof g["b"]?e.getAriaMessage():null},e}(),H=n("4fc3"),z=n("93d9"),U=n("303e"),K=n("e5aa"),q=(n("e750"),n("ef8e")),G=n("49d9"),Z=n("e8e3"),Y=n("70c3"),X=n("e32d"),$=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Q={separatorBorder:s["a"].transparent},J=function(){function e(e,t,n,i){this.container=e,this.view=t,this.disposable=i,this._cachedVisibleSize=void 0,"number"===typeof n?(this._size=n,this._cachedVisibleSize=void 0,r["f"](e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return"undefined"===typeof this._cachedVisibleSize},enumerable:!0,configurable:!0}),e.prototype.setVisible=function(e,t){e!==this.visible&&(e?(this.size=Object(G["a"])(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),r["R"](this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))},Object.defineProperty(e.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),e.prototype.layout=function(e){this.view.layout(this.size,e)},e.prototype.dispose=function(){return this.disposable.dispose(),this.view},e}(),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t.prototype.layout=function(t){e.prototype.layout.call(this,t),this.container.style.height=this.size+"px"},t}(J),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t.prototype.layout=function(t){e.prototype.layout.call(this,t),this.container.style.width=this.size+"px"},t}(J);(function(e){e[e["Idle"]=0]="Idle",e[e["Busy"]=1]="Busy"})(i||(i={})),function(e){function t(e){return{type:"split",index:e}}function n(e){return{type:"invisible",cachedVisibleSize:e}}e.Distribute={type:"distribute"},e.Split=t,e.Invisible=n}(o||(o={}));var ne=function(e){function t(t,n){void 0===n&&(n={});var o=e.call(this)||this;return o.size=0,o.contentSize=0,o.proportions=void 0,o.viewItems=[],o.sashItems=[],o.state=i.Idle,o._onDidSashChange=o._register(new a["a"]),o.onDidSashChange=o._onDidSashChange.event,o._onDidSashReset=o._register(new a["a"]),o.orientation=q["j"](n.orientation)?0:n.orientation,o.inverseAltBehavior=!!n.inverseAltBehavior,o.proportionalLayout=!!q["j"](n.proportionalLayout)||!!n.proportionalLayout,o.el=document.createElement("div"),r["f"](o.el,"monaco-split-view2"),r["f"](o.el,0===o.orientation?"vertical":"horizontal"),t.appendChild(o.el),o.sashContainer=r["m"](o.el,r["a"](".sash-container")),o.viewContainer=r["m"](o.el,r["a"](".split-view-container")),o.style(n.styles||Q),n.descriptor&&(o.size=n.descriptor.size,n.descriptor.views.forEach(function(e,t){var n=q["j"](e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},i=e.view;o.doAddView(i,n,t,!0)}),o.contentSize=o.viewItems.reduce(function(e,t){return e+t.size},0),o.saveProportions()),o}return $(t,e),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++){var i=n[t];i.sash.orthogonalStartSash=e}this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++){var i=n[t];i.sash.orthogonalEndSash=e}this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),t.prototype.style=function(e){e.separatorBorder.isTransparent()?(r["I"](this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(r["f"](this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))},t.prototype.addView=function(e,t,n){void 0===n&&(n=this.viewItems.length),this.doAddView(e,t,n,!1)},t.prototype.layout=function(e,t){var n=this,i=Math.max(this.size,this.contentSize);if(this.size=e,this.orthogonalSize=t,this.proportions)for(var o=0;o<this.viewItems.length;o++){var r=this.viewItems[o];r.size=Object(G["a"])(Math.round(this.proportions[o]*e),r.minimumSize,r.maximumSize)}else{var s=Object(Z["r"])(this.viewItems.length),a=s.filter(function(e){return 1===n.viewItems[e].priority}),u=s.filter(function(e){return 2===n.viewItems[e].priority});this.resize(this.viewItems.length-1,e-i,void 0,a,u)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.saveProportions=function(){var e=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(function(t){return t.size/e.contentSize}))},t.prototype.onSashStart=function(e){var t=this,n=e.sash,i=e.start,o=e.alt,r=Object(Z["j"])(this.sashItems,function(e){return e.sash===n}),s=Object(u["e"])(Object(X["a"])(document.body,"keydown")(function(e){return a(t.sashDragState.current,e.altKey)}),Object(X["a"])(document.body,"keyup")(function(){return a(t.sashDragState.current,!1)})),a=function(e,n){var i,o,a=t.viewItems.map(function(e){return e.size}),u=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY;if(t.inverseAltBehavior&&(n=!n),n){var c=r===t.sashItems.length-1;if(c){var d=t.viewItems[r];u=(d.minimumSize-d.size)/2,l=(d.maximumSize-d.size)/2}else{d=t.viewItems[r+1];u=(d.size-d.maximumSize)/2,l=(d.size-d.minimumSize)/2}}if(!n){var h=Object(Z["r"])(r,-1),p=Object(Z["r"])(r+1,t.viewItems.length),f=h.reduce(function(e,n){return e+(t.viewItems[n].minimumSize-a[n])},0),g=h.reduce(function(e,n){return e+(t.viewItems[n].viewMaximumSize-a[n])},0),m=0===p.length?Number.POSITIVE_INFINITY:p.reduce(function(e,n){return e+(a[n]-t.viewItems[n].minimumSize)},0),v=0===p.length?Number.NEGATIVE_INFINITY:p.reduce(function(e,n){return e+(a[n]-t.viewItems[n].viewMaximumSize)},0),_=Math.max(f,v),b=Math.min(m,g),y=t.findFirstSnapIndex(h),w=t.findFirstSnapIndex(p);if("number"===typeof y){d=t.viewItems[y];var C=Math.floor(d.viewMinimumSize/2);i={index:y,limitDelta:d.visible?_-C:_+C,size:d.size}}if("number"===typeof w){d=t.viewItems[w],C=Math.floor(d.viewMinimumSize/2);o={index:w,limitDelta:d.visible?b+C:b-C,size:d.size}}}t.sashDragState={start:e,current:e,index:r,sizes:a,minDelta:u,maxDelta:l,alt:n,snapBefore:i,snapAfter:o,disposable:s}};a(i,o)},t.prototype.onSashChange=function(e){var t=e.current,n=this.sashDragState,i=n.index,o=n.start,r=n.sizes,s=n.alt,a=n.minDelta,u=n.maxDelta,l=n.snapBefore,c=n.snapAfter;this.sashDragState.current=t;var d=t-o,h=this.resize(i,d,r,void 0,void 0,a,u,l,c);if(s){var p=i===this.sashItems.length-1,f=this.viewItems.map(function(e){return e.size}),g=p?i:i+1,m=this.viewItems[g],v=m.size-m.maximumSize,_=m.size-m.minimumSize,b=p?i-1:i+1;this.resize(b,-h,f,void 0,void 0,v,_)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.onSashEnd=function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions()},t.prototype.onViewChange=function(e,t){var n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=Object(G["a"])(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))},t.prototype.resizeView=function(e,t){var n=this;if(this.state!==i.Idle)throw new Error("Cant modify splitview");if(this.state=i.Busy,!(e<0||e>=this.viewItems.length)){var o=Object(Z["r"])(this.viewItems.length).filter(function(t){return t!==e}),r=o.filter(function(e){return 1===n.viewItems[e].priority}).concat([e]),s=o.filter(function(e){return 2===n.viewItems[e].priority}),a=this.viewItems[e];t=Math.round(t),t=Object(G["a"])(t,a.minimumSize,Math.min(a.maximumSize,this.size)),a.size=t,this.relayout(r,s),this.state=i.Idle}},t.prototype.distributeViewSizes=function(){for(var e=this,t=[],n=0,i=0,o=this.viewItems;i<o.length;i++){var r=o[i];r.maximumSize-r.minimumSize>0&&(t.push(r),n+=r.size)}for(var s=Math.floor(n/t.length),a=0,u=t;a<u.length;a++){r=u[a];r.size=Object(G["a"])(s,r.minimumSize,r.maximumSize)}var l=Object(Z["r"])(this.viewItems.length),c=l.filter(function(t){return 1===e.viewItems[t].priority}),d=l.filter(function(t){return 2===e.viewItems[t].priority});this.relayout(c,d)},t.prototype.getViewSize=function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size},t.prototype.doAddView=function(e,t,n,o){var s=this;if(void 0===n&&(n=this.viewItems.length),this.state!==i.Idle)throw new Error("Cant modify splitview");this.state=i.Busy;var l=r["a"](".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(l):this.viewContainer.insertBefore(l,this.viewContainer.children.item(n));var c,d=e.onDidChange(function(e){return s.onViewChange(g,e)}),h=Object(u["h"])(function(){return s.viewContainer.removeChild(l)}),p=Object(u["e"])(d,h);c="number"===typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;var f,g=0===this.orientation?new ee(l,e,c,p):new te(l,e,c,p);if(this.viewItems.splice(n,0,g),this.viewItems.length>1){var m=0===this.orientation?1:0,v=0===this.orientation?{getHorizontalSashTop:function(e){return s.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return s.getSashPosition(e)}},_=new Y["a"](this.sashContainer,v,{orientation:m,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),b=0===this.orientation?function(e){return{sash:_,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:_,start:e.startX,current:e.currentX,alt:e.altKey}},y=a["b"].map(_.onDidStart,b),w=y(this.onSashStart,this),C=a["b"].map(_.onDidChange,b),S=C(this.onSashChange,this),L=a["b"].map(_.onDidEnd,function(){return Object(Z["j"])(s.sashItems,function(e){return e.sash===_})}),O=L(this.onSashEnd,this),x=_.onDidReset(function(){var e=Object(Z["j"])(s.sashItems,function(e){return e.sash===_}),t=Object(Z["r"])(e,-1),n=Object(Z["r"])(e+1,s.viewItems.length),i=s.findFirstSnapIndex(t),o=s.findFirstSnapIndex(n);("number"!==typeof i||s.viewItems[i].visible)&&("number"!==typeof o||s.viewItems[o].visible)&&s._onDidSashReset.fire(e)}),N=Object(u["e"])(w,S,O,x,_),D={sash:_,disposable:N};this.sashItems.splice(n-1,0,D)}l.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(f=[t.index]),o||this.relayout([n],f),this.state=i.Idle,o||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()},t.prototype.relayout=function(e,t){var n=this.viewItems.reduce(function(e,t){return e+t.size},0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},t.prototype.resize=function(e,t,n,i,o,r,s,a,u){var l=this;if(void 0===n&&(n=this.viewItems.map(function(e){return e.size})),void 0===r&&(r=Number.NEGATIVE_INFINITY),void 0===s&&(s=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var c=Object(Z["r"])(e,-1),d=Object(Z["r"])(e+1,this.viewItems.length);if(o)for(var h=0,p=o;h<p.length;h++){var f=p[h];Object(Z["q"])(c,f),Object(Z["q"])(d,f)}if(i)for(var g=0,m=i;g<m.length;g++){var v=m[g];Object(Z["p"])(c,v),Object(Z["p"])(d,v)}var _=c.map(function(e){return l.viewItems[e]}),b=c.map(function(e){return n[e]}),y=d.map(function(e){return l.viewItems[e]}),w=d.map(function(e){return n[e]}),C=c.reduce(function(e,t){return e+(l.viewItems[t].minimumSize-n[t])},0),S=c.reduce(function(e,t){return e+(l.viewItems[t].maximumSize-n[t])},0),L=0===d.length?Number.POSITIVE_INFINITY:d.reduce(function(e,t){return e+(n[t]-l.viewItems[t].minimumSize)},0),O=0===d.length?Number.NEGATIVE_INFINITY:d.reduce(function(e,t){return e+(n[t]-l.viewItems[t].maximumSize)},0),x=Math.max(C,O,r),N=Math.min(L,S,s),D=!1;if(a){var k=this.viewItems[a.index],I=t>=a.limitDelta;D=I!==k.visible,k.setVisible(I,a.size)}if(!D&&u){k=this.viewItems[u.index],I=t<u.limitDelta;D=I!==k.visible,k.setVisible(I,u.size)}if(D)return this.resize(e,t,n,i,o,r,s);t=Object(G["a"])(t,x,N);for(var E=0,M=t;E<_.length;E++){var T=_[E],P=Object(G["a"])(b[E]+M,T.minimumSize,T.maximumSize),R=P-b[E];M-=R,T.size=P}E=0;for(var A=t;E<y.length;E++){T=y[E],P=Object(G["a"])(w[E]-A,T.minimumSize,T.maximumSize),R=P-w[E];A+=R,T.size=P}return t},t.prototype.distributeEmptySpace=function(e){for(var t=this,n=this.viewItems.reduce(function(e,t){return e+t.size},0),i=this.size-n,o=Object(Z["r"])(this.viewItems.length-1,-1),r=o.filter(function(e){return 1===t.viewItems[e].priority}),s=o.filter(function(e){return 2===t.viewItems[e].priority}),a=0,u=s;a<u.length;a++){var l=u[a];Object(Z["q"])(o,l)}for(var c=0,d=r;c<d.length;c++){l=d[c];Object(Z["p"])(o,l)}"number"===typeof e&&Object(Z["p"])(o,e);for(var h=0;0!==i&&h<o.length;h++){var p=this.viewItems[o[h]],f=Object(G["a"])(p.size+i,p.minimumSize,p.maximumSize),g=f-p.size;i-=g,p.size=f}},t.prototype.layoutViews=function(){var e=this;this.contentSize=this.viewItems.reduce(function(e,t){return e+t.size},0),this.viewItems.forEach(function(t){return t.layout(e.orthogonalSize)}),this.sashItems.forEach(function(e){return e.sash.layout()});var t=!1,n=this.viewItems.map(function(e){return t=e.size-e.minimumSize>0||t});t=!1;var i=this.viewItems.map(function(e){return t=e.maximumSize-e.size>0||t}),o=this.viewItems.slice().reverse();t=!1;var r=o.map(function(e){return t=e.size-e.minimumSize>0||t}).reverse();t=!1;var s=o.map(function(e){return t=e.maximumSize-e.size>0||t}).reverse();this.sashItems.forEach(function(t,o){var a=t.sash,u=!(n[o]&&s[o+1]),l=!(i[o]&&r[o+1]);if(u&&l){var c=Object(Z["r"])(o,-1),d=Object(Z["r"])(o+1,e.viewItems.length),h=e.findFirstSnapIndex(c),p=e.findFirstSnapIndex(d),f="number"===typeof h&&!e.viewItems[h].visible,g="number"===typeof p&&!e.viewItems[p].visible;f&&r[o]?a.state=1:g&&n[o]?a.state=2:a.state=0}else a.state=u&&!l?1:!u&&l?2:3})},t.prototype.getSashPosition=function(e){for(var t=0,n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0},t.prototype.findFirstSnapIndex=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],o=this.viewItems[i];if(o.visible&&o.snap)return i}for(var r=0,s=e;r<s.length;r++){i=s[r],o=this.viewItems[i];if(o.visible&&o.maximumSize-o.minimumSize>0)return;if(!o.visible&&o.snap)return i}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.viewItems.forEach(function(e){return e.dispose()}),this.viewItems=[],this.sashItems.forEach(function(e){return e.disposable.dispose()}),this.sashItems=[]},t}(u["a"]);n.d(t,"a",function(){return le}),n.d(t,"c",function(){return ce}),n.d(t,"b",function(){return de}),n.d(t,"d",function(){return pe}),n.d(t,"e",function(){return fe});var ie=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),oe=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},re=function(e,t){return function(n,i){t(n,i,e)}},se=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},ae=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},ue=function(){function e(e,t){var n=this;this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new u["b"],this._callOnModelChange=new u["b"],this._callOnDispose.add(this._editor.onDidChangeModel(function(){return n._onModelChanged()})),this._onModelChanged()}return e.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},e.prototype._onModelChanged=function(){this._callOnModelChange.clear();var e=this._editor.getModel();if(e)for(var t=0,n=this._model.groups;t<n.length;t++){var i=n[t];if(i.uri.toString()===e.uri.toString())return void this._addDecorations(i)}},e.prototype._addDecorations=function(t){var n=this;if(this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(function(e){return n._onDecorationChanged()}));for(var i=[],o=[],r=0,s=t.children.length;r<s;r++){var a=t.children[r];this._decorationIgnoreSet.has(a.id)||(i.push({range:a.range,options:e.DecorationOptions}),o.push(r))}var u=this._editor.deltaDecorations([],i);for(r=0;r<u.length;r++)this._decorations.set(u[r],t.children[o[r]])}},e.prototype._onDecorationChanged=function(){var e=this,t=[],n=this._editor.getModel();if(n){this._decorations.forEach(function(i,o){var r=n.getDecorationRange(o);if(r){var s=!1;if(!h["a"].equalsRange(r,i.range)){if(h["a"].spansMultipleLines(r))s=!0;else{var a=i.range.endColumn-i.range.startColumn,u=r.endColumn-r.startColumn;a!==u&&(s=!0)}s?(e._decorationIgnoreSet.add(i.id),t.push(o)):i.range=r}}});for(var i=0,o=t.length;i<o;i++)this._decorations.delete(t[i]);this._editor.deltaDecorations(t,[])}},e.prototype.removeDecorations=function(){var e=[];this._decorations.forEach(function(t,n){e.push(n)}),this._editor.deltaDecorations(e,[]),this._decorations.clear()},e.DecorationOptions=p["a"].register({stickiness:1,className:"reference-decoration"}),e}(),le=function(){function e(){this.ratio=.7,this.heightInLines=18}return e.fromJSON=function(e){var t,n;try{var i=JSON.parse(e);t=i.ratio,n=i.heightInLines}catch(o){}return{ratio:t||.7,heightInLines:n||18}},e}(),ce=new H["d"]("referenceSearchTreeFocused",!0),de=function(e){function t(t,n,i,o,r,s,l,c){var d=e.call(this,t,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return d._defaultTreeKeyboardSupport=n,d.layoutData=i,d._textModelResolverService=r,d._instantiationService=s,d._peekViewService=l,d._uriLabel=c,d._disposeOnNewModel=new u["b"],d._callOnDispose=new u["b"],d._onDidSelectReference=new a["a"],d._dim={height:0,width:0},d._applyTheme(o.getTheme()),d._callOnDispose.add(o.onThemeChange(d._applyTheme.bind(d))),d._peekViewService.addExclusiveWidget(t,d),d.create(),d}return ie(t,e),t.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(u["f"])(this._preview),Object(u["f"])(this._previewNotAvailableMessage),Object(u["f"])(this._tree),Object(u["f"])(this._previewModelReference),this._splitView.dispose(),e.prototype.dispose.call(this)},t.prototype._applyTheme=function(e){var t=e.getColor(ge)||s["a"].transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(he)||s["a"].transparent,primaryHeadingColor:e.getColor(pe),secondaryHeadingColor:e.getColor(fe)})},Object.defineProperty(t.prototype,"onDidSelectReference",{get:function(){return this._onDidSelectReference.event},enumerable:!0,configurable:!0}),t.prototype.show=function(t){this.editor.revealRangeInCenterIfOutsideViewport(t,0),e.prototype.show.call(this,t,this.layoutData.heightInLines||18)},t.prototype.focus=function(){this._tree.domFocus()},t.prototype._onTitleClick=function(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})},t.prototype._fillBody=function(e){var t=this;this.setCssClass("reference-zone-widget"),this._messageContainer=r["m"](e,r["a"]("div.messages")),r["D"](this._messageContainer),this._splitView=new ne(e,{orientation:1}),this._previewContainer=r["m"](e,r["a"]("div.preview.inline"));var n={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(d["a"],this._previewContainer,n,this.editor),r["D"](this._previewContainer),this._previewNotAvailableMessage=p["b"].createFromString(L["a"]("missingPreviewMessage","no preview available")),this._treeContainer=r["m"](e,r["a"]("div.ref-tree.inline"));var i={ariaLabel:L["a"]("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new B,keyboardNavigationLabelProvider:this._instantiationService.createInstance(R),identityProvider:new A};this._tree=this._instantiationService.createInstance(z["c"],this._treeContainer,new P,[this._instantiationService.createInstance(j),this._instantiationService.createInstance(V)],this._instantiationService.createInstance(T),i),ce.bindTo(this._tree.contextKeyService),this._splitView.addView({onDidChange:a["b"].None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(e){t._preview.layout({height:t._dim.height,width:e})}},o.Distribute),this._splitView.addView({onDidChange:a["b"].None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(e){t._treeContainer.style.height=t._dim.height+"px",t._treeContainer.style.width=e+"px",t._tree.layout(t._dim.height,e)}},o.Distribute),this._disposables.add(this._splitView.onDidSashChange(function(){t._dim.width&&(t.layoutData.ratio=t._splitView.getViewSize(0)/t._dim.width)},void 0));var s=function(e,n){e instanceof g["b"]&&("show"===n&&t._revealReference(e,!1),t._onDidSelectReference.fire({element:e,kind:n,source:"tree"}))};this._tree.onDidChangeFocus(function(e){s(e.elements[0],"show")}),this._tree.onDidChangeSelection(function(e){var t=!1,n=!1;e.browserEvent instanceof KeyboardEvent&&(n=!0),s(e.elements[0],t?"side":n?"goto":"show")}),this._tree.onDidOpen(function(e){var t=e.browserEvent instanceof MouseEvent&&(e.browserEvent.ctrlKey||e.browserEvent.metaKey||e.browserEvent.altKey),n=!e.browserEvent||e.browserEvent instanceof MouseEvent&&2===e.browserEvent.detail;s(e.elements[0],t?"side":n?"goto":"show")}),r["D"](this._treeContainer)},t.prototype._onWidth=function(e){this._dim&&this._doLayoutBody(this._dim.height,e)},t.prototype._doLayoutBody=function(t,n){e.prototype._doLayoutBody.call(this,t,n),this._dim={height:t,width:n},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(n),this._splitView.resizeView(0,n*this.layoutData.ratio)},t.prototype.setSelection=function(e){var t=this;return this._revealReference(e,!0).then(function(){t._model&&(t._tree.setSelection([e]),t._tree.setFocus([e]))})},t.prototype.setModel=function(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()},t.prototype._onNewModel=function(){var e=this;return this._model?this._model.empty?(this.setTitle(""),this._messageContainer.innerHTML=L["a"]("noResults","No results"),r["Q"](this._messageContainer),Promise.resolve(void 0)):(r["D"](this._messageContainer),this._decorationsManager=new ue(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(function(t){return e._tree.rerender(t)})),this._disposeOnNewModel.add(this._preview.onMouseDown(function(t){var n=t.event,i=t.target;if(2===n.detail){var o=e._getFocusedReference();o&&e._onDidSelectReference.fire({element:{uri:o.uri,range:i.range},kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"editor"})}})),r["f"](this.container,"results-loaded"),r["Q"](this._treeContainer),r["Q"](this._previewContainer),this._splitView.layout(this._dim.width),this.focus(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)},t.prototype._getFocusedReference=function(){var e=this._tree.getFocus()[0];return e instanceof g["b"]?e:e instanceof g["a"]&&e.children.length>0?e.children[0]:void 0},t.prototype._revealReference=function(e,t){return se(this,void 0,void 0,function(){var n,i,o,r,s;return ae(this,function(a){switch(a.label){case 0:return this._revealedReference===e?[2]:(this._revealedReference=e,e.uri.scheme!==l["b"].inMemory?this.setTitle(Object(c["c"])(e.uri),this._uriLabel.getUriLabel(Object(c["d"])(e.uri))):this.setTitle(L["a"]("peekView.alternateTitle","References")),n=this._textModelResolverService.createModelReference(e.uri),this._tree.getInput()!==e.parent?[3,1]:(this._tree.reveal(e),[3,3]));case 1:return t&&this._tree.reveal(e.parent),[4,this._tree.expand(e.parent)];case 2:a.sent(),this._tree.reveal(e),a.label=3;case 3:return[4,n];case 4:return i=a.sent(),this._model?(Object(u["f"])(this._previewModelReference),o=i.object,o?(r=this._preview.getModel()===o.textEditorModel?0:1,s=h["a"].lift(e.range).collapseToStart(),this._previewModelReference=i,this._preview.setModel(o.textEditorModel),this._preview.setSelection(s),this._preview.revealRangeInCenter(s,r)):(this._preview.setModel(this._previewNotAvailableMessage),i.dispose()),[2]):(i.dispose(),[2])}})})},t=oe([re(3,C["c"]),re(4,f["a"]),re(5,x["a"]),re(6,K["a"]),re(7,w["a"])],t),t}(K["c"]),he=Object(U["Kb"])("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},L["a"]("peekViewTitleBackground","Background color of the peek view title area.")),pe=Object(U["Kb"])("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},L["a"]("peekViewTitleForeground","Color of the peek view title.")),fe=Object(U["Kb"])("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#6c6c6cb3",hc:"#FFFFFF99"},L["a"]("peekViewTitleInfoForeground","Color of the peek view title info.")),ge=Object(U["Kb"])("peekView.border",{dark:"#007acc",light:"#007acc",hc:U["e"]},L["a"]("peekViewBorder","Color of the peek view borders and arrow.")),me=Object(U["Kb"])("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:s["a"].black},L["a"]("peekViewResultsBackground","Background color of the peek view result list.")),ve=Object(U["Kb"])("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:s["a"].white},L["a"]("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),_e=Object(U["Kb"])("peekViewResult.fileForeground",{dark:s["a"].white,light:"#1E1E1E",hc:s["a"].white},L["a"]("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),be=Object(U["Kb"])("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},L["a"]("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),ye=Object(U["Kb"])("peekViewResult.selectionForeground",{dark:s["a"].white,light:"#6C6C6C",hc:s["a"].white},L["a"]("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),we=Object(U["Kb"])("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:s["a"].black},L["a"]("peekViewEditorBackground","Background color of the peek view editor.")),Ce=Object(U["Kb"])("peekViewEditorGutter.background",{dark:we,light:we,hc:we},L["a"]("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Se=Object(U["Kb"])("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},L["a"]("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Le=Object(U["Kb"])("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},L["a"]("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Oe=Object(U["Kb"])("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:U["b"]},L["a"]("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));Object(C["f"])(function(e,t){var n=e.getColor(Se);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+n+"; }");var i=e.getColor(Le);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+i+"; }");var o=e.getColor(Oe);o&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+o+"; box-sizing: border-box; }");var r=e.getColor(U["b"]);r&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+r+"; box-sizing: border-box; }");var s=e.getColor(me);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+s+"; }");var a=e.getColor(ve);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+a+"; }");var u=e.getColor(_e);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+u+"; }");var l=e.getColor(be);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+l+"; }");var c=e.getColor(ye);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+c+" !important; }");var d=e.getColor(we);d&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+d+";}");var h=e.getColor(Ce);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}")})},"722f9":function(e,t,n){},"725e":function(e,t,n){},"72a7":function(e,t,n){"use strict";n("e2b8");var i,o=n("dff7"),r=n("a666"),s=n("ef8e"),a=n("e8e3"),u=n("6424"),l=n("11f7"),c=n("30db"),d=n("a60f"),h=n("b835"),p=n("308f"),f=n("e32d");(function(e){e["TREE"]="tree",e["FORM"]="form"})(i||(i={}));var g=n("7de1"),m=n("ceb8"),v=n("aa3d"),_=function(){function e(e){this.spliceables=e}return e.prototype.splice=function(e,t,n){this.spliceables.forEach(function(i){return i.splice(e,t,n)})},e}(),b=n("49d9"),y=n("7e93");n.d(t,"f",function(){return E}),n.d(t,"e",function(){return P}),n.d(t,"d",function(){return R}),n.d(t,"c",function(){return W}),n.d(t,"a",function(){return V}),n.d(t,"b",function(){return X});var w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),C=function(){return C=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)},S=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},L=function(){function e(e){this.trait=e,this.renderedElements=[]}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return e},e.prototype.renderElement=function(e,t,n){var i=Object(a["j"])(this.renderedElements,function(e){return e.templateData===n});if(i>=0){var o=this.renderedElements[i];this.trait.unrender(n),o.index=t}else{o={index:t,templateData:n};this.renderedElements.push(o)}this.trait.renderIndex(t,n)},e.prototype.splice=function(e,t,n){for(var i=[],o=0,r=this.renderedElements;o<r.length;o++){var s=r[o];s.index<e?i.push(s):s.index>=e+t&&i.push({index:s.index+n-t,templateData:s.templateData})}this.renderedElements=i},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t<n.length;t++){var i=n[t],o=i.index,r=i.templateData;e.indexOf(o)>-1&&this.trait.renderIndex(o,r)}},e.prototype.disposeTemplate=function(e){var t=Object(a["j"])(this.renderedElements,function(t){return t.templateData===e});t<0||this.renderedElements.splice(t,1)},e}(),O=function(){function e(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new p["a"],this.onChange=this._onChange.event}return Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new L(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=n.length-t,o=e+t,r=this.sortedIndexes.filter(function(t){return t<e}).concat(n.map(function(t,n){return t?n+e:-1}).filter(function(e){return-1!==e}),this.sortedIndexes.filter(function(e){return e>=o}).map(function(e){return e+i}));this.renderer.splice(e,t,n.length),this._set(r,r)},e.prototype.renderIndex=function(e,t){l["R"](t,this._trait,this.contains(e))},e.prototype.unrender=function(e){l["I"](e,this._trait)},e.prototype.set=function(e,t){return this._set(e,e.slice().sort(q),t)},e.prototype._set=function(e,t,n){var i=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var r=U(o,e);return this.renderer.renderIndexes(r),this._onChange.fire({indexes:e,browserEvent:n}),i},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return Object(a["c"])(this.sortedIndexes,e,q)>=0},e.prototype.dispose=function(){this._onChange=Object(r["f"])(this._onChange)},S([u["a"]],e.prototype,"renderer",null),e}(),x=function(e){function t(){return e.call(this,"focused")||this}return w(t,e),t.prototype.renderIndex=function(t,n){e.prototype.renderIndex.call(this,t,n),this.contains(t)?n.setAttribute("aria-selected","true"):n.removeAttribute("aria-selected")},t}(O),N=function(){function e(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}return e.prototype.splice=function(e,t,n){var i=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map(function(){return!1}));var o=this.trait.get().map(function(e){return i.identityProvider.getId(i.view.element(e)).toString()}),r=n.map(function(e){return o.indexOf(i.identityProvider.getId(e).toString())>-1});this.trait.splice(e,t,r)},e}();function D(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var k,I=function(){function e(e,t,n){this.list=e,this.view=t,this.disposables=new r["b"];var i=!1!==n.multipleSelectionSupport;this.openController=n.openController||j;var o=p["b"].chain(Object(f["a"])(t.domNode,"keydown")).filter(function(e){return!D(e.target)}).map(function(e){return new h["a"](e)});o.filter(function(e){return 3===e.keyCode}).on(this.onEnter,this,this.disposables),o.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.disposables),o.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.disposables),o.filter(function(e){return 11===e.keyCode}).on(this.onPageUpArrow,this,this.disposables),o.filter(function(e){return 12===e.keyCode}).on(this.onPageDownArrow,this,this.disposables),o.filter(function(e){return 9===e.keyCode}).on(this.onEscape,this,this.disposables),i&&o.filter(function(e){return(c["d"]?e.metaKey:e.ctrlKey)&&31===e.keyCode}).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Object(a["r"])(this.list.length),e.browserEvent),this.view.domNode.focus()},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables.dispose()},e}();function E(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)}(function(e){e[e["Idle"]=0]="Idle",e[e["Typing"]=1]="Typing"})(k||(k={}));var M=function(){function e(e,t,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.enabled=!1,this.state=k.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new r["b"],this.disposables=new r["b"],this.updateOptions(e.options)}return e.prototype.updateOptions=function(e){var t="undefined"===typeof e.enableKeyboardNavigation||!!e.enableKeyboardNavigation;t?this.enable():this.disable(),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},e.prototype.enable=function(){var e=this;if(!this.enabled){var t=p["b"].chain(Object(f["a"])(this.view.domNode,"keydown")).filter(function(e){return!D(e.target)}).filter(function(){return e.automaticKeyboardNavigation||e.triggered}).map(function(e){return new h["a"](e)}).filter(this.keyboardNavigationLabelProvider.mightProducePrintableCharacter?function(t){return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter(t)}:function(e){return E(e)}).forEach(function(e){e.stopPropagation(),e.preventDefault()}).map(function(e){return e.browserEvent.key}).event,n=p["b"].debounce(t,function(){return null},800),i=p["b"].reduce(p["b"].any(t,n),function(e,t){return null===t?null:(e||"")+t});i(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)},e.prototype.onInput=function(e){if(!e)return this.state=k.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=t.length>0?t[0]:0,i=this.state===k.Idle?1:0;this.state=k.Typing;for(var o=0;o<this.list.length;o++){var r=(n+o+i)%this.list.length,s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(r)),a=s&&s.toString();if("undefined"===typeof a||Object(y["g"])(e,a))return this.list.setFocus([r]),void this.list.reveal(r)}},e.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},e}(),T=function(){function e(e,t){this.list=e,this.view=t,this.disposables=new r["b"];var n=p["b"].chain(Object(f["a"])(t.domNode,"keydown")).filter(function(e){return!D(e.target)}).map(function(e){return new h["a"](e)});n.filter(function(e){return 2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}).on(this.onTab,this,this.disposables)}return e.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]);if(n){var i=n.querySelector("[tabIndex]");if(i&&i instanceof HTMLElement&&-1!==i.tabIndex){var o=window.getComputedStyle(i);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}}}}},e.prototype.dispose=function(){this.disposables.dispose()},e}();function P(e){return c["d"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function R(e){return e.browserEvent.shiftKey}function A(e){return e instanceof MouseEvent&&2===e.button}var F={isSelectionSingleChangeEvent:P,isSelectionRangeChangeEvent:R},j={shouldOpen:function(e){return!(e instanceof MouseEvent)||!A(e)}},W=function(){function e(e){this.list=e,this.disposables=new r["b"],this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||F),this.openController=e.options.openController||j,this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),d["b"].addTarget(e.getHTMLElement())),e.onMouseClick(this.onPointer,this,this.disposables),e.onMouseMiddleClick(this.onPointer,this,this.disposables),e.onTap(this.onPointer,this,this.disposables)}return e.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):c["d"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey},e.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},e.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},e.prototype.onMouseDown=function(e){document.activeElement!==e.browserEvent.target&&this.list.domFocus()},e.prototype.onContextMenu=function(e){var t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)},e.prototype.onPointer=function(e){if(this.mouseSupport&&!D(e.browserEvent.target)){var t=this.list.getFocus()[0],n=this.list.getSelection();t=void 0===t?n[0]:t;var i=e.index;if("undefined"===typeof i)return this.list.setFocus([],e.browserEvent),void this.list.setSelection([],e.browserEvent);if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.list.setFocus([i],e.browserEvent),A(e.browserEvent)||(this.list.setSelection([i],e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent))}},e.prototype.onDoubleClick=function(e){if(!D(e.browserEvent.target)&&(!this.multipleSelectionSupport||!this.isSelectionChangeEvent(e))){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.list.pin(t)}},e.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=Math.min(t,n),o=Math.max(t,n),r=Object(a["r"])(i,o+1),s=this.list.getSelection(),u=z(U(s,[t]),t);if(0===u.length)return;var l=U(r,K(s,u));this.list.setSelection(l,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){s=this.list.getSelection(),l=s.filter(function(e){return e!==n});this.list.setFocus([n]),s.length===l.length?this.list.setSelection(l.concat([n]),e.browserEvent):this.list.setSelection(l,e.browserEvent)}},e.prototype.dispose=function(){this.disposables.dispose()},e}(),V=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.focused { background-color: "+e.listFocusBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.focused:hover { background-color: "+e.listFocusBackground+"; }")),e.listFocusForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.focused { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.selected { background-color: "+e.listActiveSelectionBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.selected:hover { background-color: "+e.listActiveSelectionBackground+"; }")),e.listActiveSelectionForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.selected { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveFocusBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.focused { background-color: "+e.listInactiveFocusBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.focused:hover { background-color: "+e.listInactiveFocusBackground+"; }")),e.listInactiveSelectionBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.selected { background-color: "+e.listInactiveSelectionBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.selected:hover { background-color: "+e.listInactiveSelectionBackground+"; }")),e.listInactiveSelectionForeground&&n.push(".monaco-list"+t+" .monaco-list-row.selected { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-list"+t+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-list"+t+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listSelectionOutline&&n.push(".monaco-list"+t+" .monaco-list-row.selected { outline: 1px dotted "+e.listSelectionOutline+"; outline-offset: -1px; }"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.focused { outline: 1px solid "+e.listFocusOutline+"; outline-offset: -1px; }\n\t\t\t"),e.listInactiveFocusOutline&&n.push(".monaco-list"+t+" .monaco-list-row.focused { outline: 1px dotted "+e.listInactiveFocusOutline+"; outline-offset: -1px; }"),e.listHoverOutline&&n.push(".monaco-list"+t+" .monaco-list-row:hover { outline: 1px dashed "+e.listHoverOutline+"; outline-offset: -1px; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-list"+t+".drop-target,\n\t\t\t\t.monaco-list"+t+" .monaco-list-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFilterWidgetBackground&&n.push(".monaco-list-type-filter { background-color: "+e.listFilterWidgetBackground+" }"),e.listFilterWidgetOutline&&n.push(".monaco-list-type-filter { border: 1px solid "+e.listFilterWidgetOutline+"; }"),e.listFilterWidgetNoMatchesOutline&&n.push(".monaco-list-type-filter.no-matches { border: 1px solid "+e.listFilterWidgetNoMatchesOutline+"; }"),e.listMatchesShadow&&n.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+e.listMatchesShadow+"; }");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}(),B={listFocusBackground:m["a"].fromHex("#073655"),listActiveSelectionBackground:m["a"].fromHex("#0E639C"),listActiveSelectionForeground:m["a"].fromHex("#FFFFFF"),listFocusAndSelectionBackground:m["a"].fromHex("#094771"),listFocusAndSelectionForeground:m["a"].fromHex("#FFFFFF"),listInactiveSelectionBackground:m["a"].fromHex("#3F3F46"),listHoverBackground:m["a"].fromHex("#2A2D2E"),listDropBackground:m["a"].fromHex("#383B3D"),treeIndentGuidesStroke:m["a"].fromHex("#a9a9a9")},H={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:i.TREE};function z(e,t){var n=e.indexOf(t);if(-1===n)return[];var i=[],o=n-1;while(o>=0&&e[o]===t-(n-o))i.push(e[o--]);i.reverse(),o=n;while(o<e.length&&e[o]===t+(o-n))i.push(e[o++]);return i}function U(e,t){var n=[],i=0,o=0;while(i<e.length||o<t.length)if(i>=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){n.push(e[i]),i++,o++;continue}e[i]<t[o]?n.push(e[i++]):n.push(t[o++])}return n}function K(e,t){var n=[],i=0,o=0;while(i<e.length||o<t.length)if(i>=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){i++,o++;continue}e[i]<t[o]?n.push(e[i++]):o++}return n}var q=function(e,t){return e-t},G=function(){function e(e,t){this._templateId=e,this.renderers=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return this.renderers.map(function(t){return t.renderTemplate(e)})},e.prototype.renderElement=function(e,t,n,i){for(var o=0,r=0,s=this.renderers;r<s.length;r++){var a=s[r];a.renderElement(e,t,n[o++],i)}},e.prototype.disposeElement=function(e,t,n,i){for(var o=0,r=0,s=this.renderers;r<s.length;r++){var a=s[r];a.disposeElement&&a.disposeElement(e,t,n[o],i),o+=1}},e.prototype.disposeTemplate=function(e){for(var t=0,n=0,i=this.renderers;n<i.length;n++){var o=i[n];o.disposeTemplate(e[t++])}},e}(),Z=function(){function e(e){this.accessibilityProvider=e,this.templateId="a18n"}return e.prototype.renderTemplate=function(e){return e},e.prototype.renderElement=function(e,t,n){var i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");var o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof o?n.setAttribute("aria-level",""+o):n.removeAttribute("aria-level")},e.prototype.disposeTemplate=function(e){},e}(),Y=function(){function e(e,t){this.list=e,this.dnd=t}return e.prototype.getDragElements=function(e){var t=this.list.getSelectedElements(),n=t.indexOf(e)>-1?t:[e];return n},e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},e.prototype.onDragOver=function(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)},e.prototype.drop=function(e,t,n,i){this.dnd.drop(e,t,n,i)},e}(),X=function(){function e(e,t,n,s){void 0===s&&(s=H),this._options=s,this.eventBufferer=new p["c"],this.disposables=new r["b"],this._onDidOpen=new p["a"],this.onDidOpen=this._onDidOpen.event,this._onPin=new p["a"],this.didJustPressContextMenuKey=!1,this._onDidDispose=new p["a"],this.onDidDispose=this._onDidDispose.event,this.focus=new x,this.selection=new O("selected"),Object(v["g"])(s,B,!1);var a=[this.focus.renderer,this.selection.renderer];s.accessibilityProvider&&a.push(new Z(s.accessibilityProvider)),n=n.map(function(e){return new G(e.templateId,a.concat([e]))});var u=C({},s,{dnd:s.dnd&&new Y(this,s.dnd)});if(this.view=new g["b"](e,t,n,u),"string"!==typeof s.ariaRole?this.view.domNode.setAttribute("role",i.TREE):this.view.domNode.setAttribute("role",s.ariaRole),this.styleElement=l["s"](this.view.domNode),this.styleController=s.styleController||new V(this.styleElement,this.view.domId),this.spliceable=new _([new N(this.focus,this.view,s.identityProvider),new N(this.selection,this.view,s.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=p["b"].map(Object(f["a"])(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=p["b"].map(Object(f["a"])(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new T(this,this.view)),"boolean"!==typeof s.keyboardSupport||s.keyboardSupport){var c=new I(this,this.view,s);this.disposables.add(c)}s.keyboardNavigationLabelProvider&&(this.typeLabelController=new M(this,this.view,s.keyboardNavigationLabelProvider),this.disposables.add(this.typeLabelController)),this.disposables.add(this.createMouseController(s)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),s.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(o["a"])("aria list","{0}. Use the navigation keys to navigate.",s.ariaLabel)),this.style(s)}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return p["b"].map(this.eventBufferer.wrapEvent(this.focus.onChange),function(t){return e.toListEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return p["b"].map(this.eventBufferer.wrapEvent(this.selection.onChange),function(t){return e.toListEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this,t=p["b"].chain(Object(f["a"])(this.view.domNode,"keydown")).map(function(e){return new h["a"](e)}).filter(function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode}).filter(function(e){return e.preventDefault(),e.stopPropagation(),!1}).event,n=p["b"].chain(Object(f["a"])(this.view.domNode,"keyup")).filter(function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t}).filter(function(){return e.getFocus().length>0&&!!e.view.domElement(e.getFocus()[0])}).map(function(t){var n=e.getFocus()[0],i=e.view.element(n),o=e.view.domElement(n);return{index:n,element:i,anchor:o,browserEvent:t}}).event,i=p["b"].chain(this.view.onContextMenu).filter(function(){return!e.didJustPressContextMenuKey}).map(function(e){var t=e.element,n=e.index,i=e.browserEvent;return{element:t,index:n,anchor:{x:i.clientX+1,y:i.clientY},browserEvent:i}}).event;return p["b"].any(t,n,i)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDown",{get:function(){return Object(f["a"])(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),e.prototype.createMouseController=function(e){return new W(this)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=C({},this._options,e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new Error("Invalid start index: "+e);if(t<0)throw new Error("Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents(function(){return i.spliceable.splice(e,t,n)})},e.prototype.rerender=function(){this.view.rerender()},e.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domNode.focus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.setSelection=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o<0||o>=this.length)throw new Error("Invalid index "+o)}this.selection.set(e,t)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map(function(t){return e.view.element(t)})},e.prototype.setFocus=function(e,t){for(var n=0,i=e;n<i.length;n++){var o=i[n];if(o<0||o>=this.length)throw new Error("Invalid index "+o)}this.focus.set(e,t)},e.prototype.focusNext=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findNextIndex(o.length>0?o[0]+e:0,t,i);r>-1&&this.setFocus([r],n)}},e.prototype.focusPrevious=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findPreviousIndex(o.length>0?o[0]-e:0,t,i);r>-1&&this.setFocus([r],n)}},e.prototype.focusNextPage=function(e,t){var n=this,i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;var o=this.view.element(i),r=this.getFocusedElements()[0];if(r!==o){var s=this.findPreviousIndex(i,!1,t);s>-1&&r!==this.view.element(s)?this.setFocus([s],e):this.setFocus([i],e)}else{var a=this.view.getScrollTop();this.view.setScrollTop(a+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==a&&setTimeout(function(){return n.focusNextPage(e,t)},0)}},e.prototype.focusPreviousPage=function(e,t){var n,i=this,o=this.view.getScrollTop();n=0===o?this.view.indexAt(o):this.view.indexAfter(o-1);var r=this.view.element(n),s=this.getFocusedElements()[0];if(s!==r){var a=this.findNextIndex(n,!1,t);a>-1&&s!==this.view.element(a)?this.setFocus([a],e):this.setFocus([n],e)}else{var u=o;this.view.setScrollTop(o-this.view.renderHeight),this.view.getScrollTop()!==u&&setTimeout(function(){return i.focusPreviousPage(e,t)},0)}},e.prototype.focusLast=function(e,t){if(0!==this.length){var n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}},e.prototype.focusFirst=function(e,t){if(0!==this.length){var n=this.findNextIndex(0,!1,t);n>-1&&this.setFocus([n],e)}},e.prototype.findNextIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1},e.prototype.findPreviousIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map(function(t){return e.view.element(t)})},e.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var n=this.view.getScrollTop(),i=this.view.elementTop(e),o=this.view.elementHeight(e);if(Object(s["g"])(t)){var r=o-this.view.renderHeight;this.view.setScrollTop(r*Object(b["a"])(t,0,1)+i)}else{var a=i+o,u=n+this.view.renderHeight;i<n?this.view.setScrollTop(i):a>=u&&this.view.setScrollTop(a-this.view.renderHeight)}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(n<t||n+i>t+this.view.renderHeight)return null;var o=i-this.view.renderHeight;return Math.abs((t-n)/o)},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var n=this,i=0,o=e;i<o.length;i++){var r=o[i];if(r<0||r>=this.length)throw new Error("Invalid index "+r)}this._onDidOpen.fire({indexes:e,elements:e.map(function(e){return n.view.element(e)}),browserEvent:t})},e.prototype.pin=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];if(i<0||i>=this.length)throw new Error("Invalid index "+i)}this._onPin.fire(e)},e.prototype.style=function(e){this.styleController.style(e)},e.prototype.toListEvent=function(e){var t=this,n=e.indexes,i=e.browserEvent;return{indexes:n,elements:n.map(function(e){return t.view.element(e)}),browserEvent:i}},e.prototype._onFocusChange=function(){var e=this.focus.get();e.length>0?this.view.domNode.setAttribute("aria-activedescendant",this.view.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),l["R"](this.view.domNode,"element-focused",e.length>0)},e.prototype._onSelectionChange=function(){var e=this.selection.get();l["R"](this.view.domNode,"selection-none",0===e.length),l["R"](this.view.domNode,"selection-single",1===e.length),l["R"](this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onPin.dispose(),this._onDidDispose.dispose()},S([u["a"]],e.prototype,"onFocusChange",null),S([u["a"]],e.prototype,"onSelectionChange",null),S([u["a"]],e.prototype,"onContextMenu",null),e}()},7416:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var i=n("3742"),o=function(){function e(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i}return e._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type},e.equalsArr=function(t,n){var i=t.length,o=n.length;if(i!==o)return!1;for(var r=0;r<i;r++)if(!e._equals(t[r],n[r]))return!1;return!0},e.filter=function(t,n,i,o){if(0===t.length)return[];for(var r=[],s=0,a=0,u=t.length;a<u;a++){var l=t[a],c=l.range;if(!(c.endLineNumber<n||c.startLineNumber>n)&&(!c.isEmpty()||0!==l.type&&3!==l.type)){var d=c.startLineNumber===n?c.startColumn:i,h=c.endLineNumber===n?c.endColumn:o;r[s++]=new e(d,h,l.inlineClassName,l.type)}}return r},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.className<t.className?-1:e.className>t.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}(),r=function(){function e(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n}return e}(),s=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0}return e.prototype.consumeLowerThan=function(e,t,n){while(this.count>0&&this.stopOffsets[0]<e){var i=0;while(i+1<this.count&&this.stopOffsets[i]===this.stopOffsets[i+1])i++;n.push(new r(t,this.stopOffsets[i],this.classNames.join(" "))),t=this.stopOffsets[i]+1,this.stopOffsets.splice(0,i+1),this.classNames.splice(0,i+1),this.count-=i+1}return this.count>0&&t<e&&(n.push(new r(t,e-1,this.classNames.join(" "))),t=e),t},e.prototype.insert=function(e,t){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t);else for(var n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},e}(),a=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],o=new s,r=0,a=0,u=t.length;a<u;a++){var l=t[a],c=l.startColumn,d=l.endColumn,h=l.className;if(c>1){var p=e.charCodeAt(c-2);i["w"](p)&&c--}if(d>1){p=e.charCodeAt(d-2);i["w"](p)&&d--}var f=c-1,g=d-2;r=o.consumeLowerThan(f,r,n),0===o.count&&(r=f),o.insert(g,h)}return o.consumeLowerThan(1073741824,r,n),n},e}()},7457:function(e,t,n){},"747f":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("fe45"),r=n("d585"),s=n("b2cc"),a=n("2c29"),u=n("3742"),l=n("d3f49"),c=n("6a89"),d=function(){function e(e,t){this._selection=e,this._cursors=t,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){for(var n=h(e,this._cursors),i=0,o=n.length;i<o;i++){var r=n[i];t.addEditOperation(r.range,r.text)}this._selectionId=t.trackSelection(this._selection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},e}();function h(e,t){t.sort(function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber});for(var n=t.length-2;n>=0;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var i=[],o=0,r=0,s=t.length,a=1,d=e.getLineCount();a<=d;a++){var h=e.getLineContent(a),p=h.length+1,f=0;if(!(r<s&&t[r].lineNumber===a&&(f=t[r].column,r++,f===p))&&0!==h.length){var g=u["A"](h),m=0;if(-1===g)m=1;else{if(g===h.length-1)continue;m=g+2}m=Math.max(f,m),i[o++]=l["a"].delete(new c["a"](a,m,a,p))}}return i}var p=n("191f"),f=n("7061"),g=n("8025"),m=n("c101"),v=function(){function e(e,t){this._selection=e,this._isCopyingDown=t,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}return e.prototype.getEditOperations=function(e,t){var n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));for(var i=[],o=n.startLineNumber;o<=n.endLineNumber;o++)i.push(e.getLineContent(o));var r=i.join("\n");""===r&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._isCopyingDown?t.addEditOperation(new c["a"](n.startLineNumber,1,n.startLineNumber,1),r+"\n"):t.addEditOperation(new c["a"](n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+r),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){var i=n.startLineNumber,o=n.startColumn,r=n.endLineNumber,s=n.endColumn;0!==this._startLineNumberDelta&&(i+=this._startLineNumberDelta,o=1),0!==this._endLineNumberDelta&&(r+=this._endLineNumberDelta,s=1),n=g["a"].createWithDirection(i,o,r,s,this._selectionDirection)}return n},e}(),_=n("ccde"),b=n("2837"),y=n("70cb");function w(e,t){for(var n=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?n+=t:n++;return n}function C(e,t,n){e=e<0?0:e;var i="";if(!n){var o=Math.floor(e/t);e%=t;for(var r=0;r<o;r++)i+="\t"}for(r=0;r<e;r++)i+=" ";return i}var S=function(){function e(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}return e.prototype.getEditOperations=function(e,t){var n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)this._selectionId=t.trackSelection(this._selection);else if(this._isMovingDown||1!==this._selection.startLineNumber){this._moveEndPositionDown=!1;var i=this._selection;i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));var o=e.getOptions(),r=o.tabSize,s=o.indentSize,a=o.insertSpaces,l=this.buildIndentConverter(r,s,a),d={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:null};if(i.startLineNumber===i.endLineNumber&&1===e.getLineMaxColumn(i.startLineNumber)){var h=i.startLineNumber,p=this._isMovingDown?h+1:h-1;1===e.getLineMaxColumn(p)?t.addEditOperation(new c["a"](1,1,1,1),null):(t.addEditOperation(new c["a"](h,1,h,1),e.getLineContent(p)),t.addEditOperation(new c["a"](p,1,p,e.getLineMaxColumn(p)),null)),i=new g["a"](p,1,p,1)}else{var f,m=void 0;if(this._isMovingDown){f=i.endLineNumber+1,m=e.getLineContent(f),t.addEditOperation(new c["a"](f-1,e.getLineMaxColumn(f-1),f,e.getLineMaxColumn(f)),null);var v=m;if(this.shouldAutoIndent(e,i)){var _=this.matchEnterRule(e,l,r,f,i.startLineNumber-1);if(null!==_){var b=u["s"](e.getLineContent(f)),S=_+w(b,r),L=C(S,r,a);v=L+this.trimLeft(m)}else{d.getLineContent=function(t){return t===i.startLineNumber?e.getLineContent(f):e.getLineContent(t)};var O=y["a"].getGoodIndentForLine(d,e.getLanguageIdAtPosition(f,1),i.startLineNumber,l);if(null!==O){b=u["s"](e.getLineContent(f)),S=w(O,r);var x=w(b,r);if(S!==x){L=C(S,r,a);v=L+this.trimLeft(m)}}}t.addEditOperation(new c["a"](i.startLineNumber,1,i.startLineNumber,1),v+"\n");var N=this.matchEnterRule(e,l,r,i.startLineNumber,i.startLineNumber,v);if(null!==N)0!==N&&this.getIndentEditsOfMovingBlock(e,t,i,r,a,N);else{d.getLineContent=function(t){return t===i.startLineNumber?v:t>=i.startLineNumber+1&&t<=i.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)};var D=y["a"].getGoodIndentForLine(d,e.getLanguageIdAtPosition(f,1),i.startLineNumber+1,l);if(null!==D){b=u["s"](e.getLineContent(i.startLineNumber)),S=w(D,r),x=w(b,r);if(S!==x){var k=S-x;this.getIndentEditsOfMovingBlock(e,t,i,r,a,k)}}}}else t.addEditOperation(new c["a"](i.startLineNumber,1,i.startLineNumber,1),v+"\n")}else if(f=i.startLineNumber-1,m=e.getLineContent(f),t.addEditOperation(new c["a"](f,1,f+1,1),null),t.addEditOperation(new c["a"](i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+m),this.shouldAutoIndent(e,i)){d.getLineContent=function(t){return t===f?e.getLineContent(i.startLineNumber):e.getLineContent(t)};N=this.matchEnterRule(e,l,r,i.startLineNumber,i.startLineNumber-2);if(null!==N)0!==N&&this.getIndentEditsOfMovingBlock(e,t,i,r,a,N);else{var I=y["a"].getGoodIndentForLine(d,e.getLanguageIdAtPosition(i.startLineNumber,1),f,l);if(null!==I){var E=u["s"](e.getLineContent(i.startLineNumber));S=w(I,r),x=w(E,r);if(S!==x){k=S-x;this.getIndentEditsOfMovingBlock(e,t,i,r,a,k)}}}}}this._selectionId=t.trackSelection(i)}else this._selectionId=t.trackSelection(this._selection)},e.prototype.buildIndentConverter=function(e,t,n){return{shiftIndent:function(i){return _["a"].shiftIndent(i,i.length+1,e,t,n)},unshiftIndent:function(i){return _["a"].unshiftIndent(i,i.length+1,e,t,n)}}},e.prototype.matchEnterRule=function(e,t,n,i,o,r){var s=o;while(s>=1){var a=void 0;a=s===o&&void 0!==r?r:e.getLineContent(s);var l=u["A"](a);if(l>=0)break;s--}if(s<1||i>e.getLineCount())return null;var d=e.getLineMaxColumn(s),h=y["a"].getEnterAction(e,new c["a"](s,d,s,d));if(h){var p=h.indentation,f=h.enterAction;f.indentAction===b["a"].None?p=h.indentation+f.appendText:f.indentAction===b["a"].Indent?p=h.indentation+f.appendText:f.indentAction===b["a"].IndentOutdent?p=h.indentation:f.indentAction===b["a"].Outdent&&(p=t.unshiftIndent(h.indentation)+f.appendText);var g=e.getLineContent(i);if(this.trimLeft(g).indexOf(this.trimLeft(p))>=0){var m=u["s"](e.getLineContent(i)),v=u["s"](p),_=y["a"].getIndentMetadata(e,i);null!==_&&2&_&&(v=t.unshiftIndent(v));var C=w(v,n),S=w(m,n);return C-S}}return null},e.prototype.trimLeft=function(e){return e.replace(/^\s+/,"")},e.prototype.shouldAutoIndent=function(e,t){if(!this._autoIndent)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1),i=e.getLanguageIdAtPosition(t.endLineNumber,1);return n===i&&null!==y["a"].getIndentRulesSupport(n)},e.prototype.getIndentEditsOfMovingBlock=function(e,t,n,i,o,r){for(var s=n.startLineNumber;s<=n.endLineNumber;s++){var a=e.getLineContent(s),l=u["s"](a),d=w(l,i),h=d+r,p=C(h,i,o);p!==l&&(t.addEditOperation(new c["a"](s,1,s,l.length+1),p),s===n.endLineNumber&&n.endColumn<=l.length+1&&""===p&&(this._moveEndLineSelectionShrink=!0))}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n},e}(),L=function(){function e(e,t){this.selection=e,this.descending=t,this.selectionId=null}return e.prototype.getEditOperations=function(e,t){var n=x(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId)},e.canRun=function(e,t,n){if(null===e)return!1;var i=O(e,t,n);if(!i)return!1;for(var o=0,r=i.before.length;o<r;o++)if(i.before[o]!==i.after[o])return!0;return!1},e}();function O(e,t,n){var i=t.startLineNumber,o=t.endLineNumber;if(1===t.endColumn&&o--,i>=o)return null;for(var r=[],s=i;s<=o;s++)r.push(e.getLineContent(s));var a=r.slice(0);return a.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),!0===n&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a}}function x(e,t,n){var i=O(e,t,n);return i?l["a"].replace(new c["a"](i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join("\n")):null}n.d(t,"AbstractSortLinesAction",function(){return P}),n.d(t,"SortLinesAscendingAction",function(){return R}),n.d(t,"SortLinesDescendingAction",function(){return A}),n.d(t,"TrimTrailingWhitespaceAction",function(){return F}),n.d(t,"DeleteLinesAction",function(){return j}),n.d(t,"IndentLinesAction",function(){return W}),n.d(t,"InsertLineBeforeAction",function(){return B}),n.d(t,"InsertLineAfterAction",function(){return H}),n.d(t,"AbstractDeleteAllToBoundaryAction",function(){return z}),n.d(t,"DeleteAllLeftAction",function(){return U}),n.d(t,"DeleteAllRightAction",function(){return K}),n.d(t,"JoinLinesAction",function(){return q}),n.d(t,"TransposeAction",function(){return G}),n.d(t,"AbstractCaseAction",function(){return Z}),n.d(t,"UpperCaseAction",function(){return Y}),n.d(t,"LowerCaseAction",function(){return X}),n.d(t,"TitleCaseAction",function(){return $});var N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),D=function(e){function t(t,n){var i=e.call(this,n)||this;return i.down=t,i}return N(t,e),t.prototype.run=function(e,t){for(var n=[],i=t.getSelections()||[],o=0,r=i;o<r.length;o++){var s=r[o];n.push(new v(s,this.down))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},t}(s["b"]),k=function(e){function t(){return e.call(this,!1,{id:"editor.action.copyLinesUpAction",label:i["a"]("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menubarOpts:{menuId:22,group:"2_line",title:i["a"]({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this}return N(t,e),t}(D),I=function(e){function t(){return e.call(this,!0,{id:"editor.action.copyLinesDownAction",label:i["a"]("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menubarOpts:{menuId:22,group:"2_line",title:i["a"]({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this}return N(t,e),t}(D),E=function(e){function t(t,n){var i=e.call(this,n)||this;return i.down=t,i}return N(t,e),t.prototype.run=function(e,t){for(var n=[],i=t.getSelections()||[],o=t.getConfiguration().autoIndent,r=0,s=i;r<s.length;r++){var a=s[r];n.push(new S(a,this.down,o))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()},t}(s["b"]),M=function(e){function t(){return e.call(this,!1,{id:"editor.action.moveLinesUpAction",label:i["a"]("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:528,linux:{primary:528},weight:100},menubarOpts:{menuId:22,group:"2_line",title:i["a"]({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this}return N(t,e),t}(E),T=function(e){function t(){return e.call(this,!0,{id:"editor.action.moveLinesDownAction",label:i["a"]("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:530,linux:{primary:530},weight:100},menubarOpts:{menuId:22,group:"2_line",title:i["a"]({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this}return N(t,e),t}(E),P=function(e){function t(t,n){var i=e.call(this,n)||this;return i.descending=t,i}return N(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections()||[],i=0,o=n;i<o.length;i++){var r=o[i];if(!L.canRun(t.getModel(),r,this.descending))return}for(var s=[],a=0,u=n.length;a<u;a++)s[a]=new L(n[a],this.descending);t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()},t}(s["b"]),R=function(e){function t(){return e.call(this,!1,{id:"editor.action.sortLinesAscending",label:i["a"]("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m["a"].writable})||this}return N(t,e),t}(P),A=function(e){function t(){return e.call(this,!0,{id:"editor.action.sortLinesDescending",label:i["a"]("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m["a"].writable})||this}return N(t,e),t}(P),F=function(e){function t(){return e.call(this,{id:t.ID,label:i["a"]("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:Object(o["a"])(2089,2102),weight:100}})||this}return N(t,e),t.prototype.run=function(e,t,n){var i=[];"auto-save"===n.reason&&(i=(t.getSelections()||[]).map(function(e){return new f["a"](e.positionLineNumber,e.positionColumn)}));var o=t.getSelection();if(null!==o){var r=new d(o,i);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop()}},t.ID="editor.action.trimTrailingWhitespace",t}(s["b"]),j=function(e){function t(){return e.call(this,{id:"editor.action.deleteLines",label:i["a"]("lines.delete","Delete Line"),alias:"Delete Line",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].textInputFocus,primary:3113,weight:100}})||this}return N(t,e),t.prototype.run=function(e,t){if(t.hasModel()){var n=this._getLinesToRemove(t),i=t.getModel();if(1!==i.getLineCount()||1!==i.getLineMaxColumn(1)){for(var o=0,r=[],s=[],a=0,u=n.length;a<u;a++){var c=n[a],d=c.startLineNumber,h=c.endLineNumber,p=1,f=i.getLineMaxColumn(h);h<i.getLineCount()?(h+=1,f=1):d>1&&(d-=1,p=i.getLineMaxColumn(d)),r.push(l["a"].replace(new g["a"](d,p,h,f),"")),s.push(new g["a"](d-o,c.positionColumn,d-o,c.positionColumn)),o+=c.endLineNumber-c.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,r,s),t.pushUndoStop()}}},t.prototype._getLinesToRemove=function(e){var t=e.getSelections().map(function(e){var t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}});t.sort(function(e,t){return e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber});for(var n=[],i=t[0],o=1;o<t.length;o++)i.endLineNumber+1>=t[o].startLineNumber?i.endLineNumber=t[o].endLineNumber:(n.push(i),i=t[o]);return n.push(i),n},t}(s["b"]),W=function(e){function t(){return e.call(this,{id:"editor.action.indentLines",label:i["a"]("lines.indent","Indent Line"),alias:"Indent Line",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:2137,weight:100}})||this}return N(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p["a"].indent(n.context.config,t.getModel(),t.getSelections())),t.pushUndoStop())},t}(s["b"]),V=function(e){function t(){return e.call(this,{id:"editor.action.outdentLines",label:i["a"]("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:2135,weight:100}})||this}return N(t,e),t.prototype.run=function(e,t){r["CoreEditingCommands"].Outdent.runEditorCommand(e,t,null)},t}(s["b"]),B=function(e){function t(){return e.call(this,{id:"editor.action.insertLineBefore",label:i["a"]("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:3075,weight:100}})||this}return N(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p["a"].lineInsertBefore(n.context.config,t.getModel(),t.getSelections())))},t}(s["b"]),H=function(e){function t(){return e.call(this,{id:"editor.action.insertLineAfter",label:i["a"]("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:2051,weight:100}})||this}return N(t,e),t.prototype.run=function(e,t){var n=t._getCursors();n&&(t.pushUndoStop(),t.executeCommands(this.id,p["a"].lineInsertAfter(n.context.config,t.getModel(),t.getSelections())))},t}(s["b"]),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelection(),i=this._getRangesToDelete(t),o=[],r=0,s=i.length-1;r<s;r++){var a=i[r],u=i[r+1];null===c["a"].intersectRanges(a,u)?o.push(a):i[r+1]=c["a"].plusRange(a,u)}o.push(i[i.length-1]);var d=this._getEndCursorState(n,o),h=o.map(function(e){return l["a"].replace(e,"")});t.pushUndoStop(),t.executeEdits(this.id,h,d),t.pushUndoStop()}},t}(s["b"]),U=function(e){function t(){return e.call(this,{id:"deleteAllLeft",label:i["a"]("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].textInputFocus,primary:0,mac:{primary:2049},weight:100}})||this}return N(t,e),t.prototype._getEndCursorState=function(e,t){var n=null,i=[],o=0;return t.forEach(function(t){var r;if(1===t.endColumn&&o>0){var s=t.startLineNumber-o;r=new g["a"](s,t.startColumn,s,t.startColumn)}else r=new g["a"](t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=r:i.push(r)}),n&&i.unshift(n),i},t.prototype._getRangesToDelete=function(e){var t=e.getSelections();if(null===t)return[];var n=t,i=e.getModel();return null===i?[]:(n.sort(c["a"].compareRangesUsingStarts),n=n.map(function(e){if(e.isEmpty()){if(1===e.startColumn){var t=Math.max(1,e.startLineNumber-1),n=1===e.startLineNumber?1:i.getLineContent(t).length+1;return new c["a"](t,n,e.startLineNumber,1)}return new c["a"](e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new c["a"](e.startLineNumber,1,e.endLineNumber,e.endColumn)}),n)},t}(z),K=function(e){function t(){return e.call(this,{id:"deleteAllRight",label:i["a"]("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})||this}return N(t,e),t.prototype._getEndCursorState=function(e,t){for(var n=null,i=[],o=0,r=t.length,s=0;o<r;o++){var a=t[o],u=new g["a"](a.startLineNumber-s,a.startColumn,a.startLineNumber-s,a.startColumn);a.intersectRanges(e)?n=u:i.push(u)}return n&&i.unshift(n),i},t.prototype._getRangesToDelete=function(e){var t=e.getModel();if(null===t)return[];var n=e.getSelections();if(null===n)return[];var i=n.map(function(e){if(e.isEmpty()){var n=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===n?new c["a"](e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new c["a"](e.startLineNumber,e.startColumn,e.startLineNumber,n)}return e});return i.sort(c["a"].compareRangesUsingStarts),i},t}(z),q=function(e){function t(){return e.call(this,{id:"editor.action.joinLines",label:i["a"]("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:0,mac:{primary:296},weight:100}})||this}return N(t,e),t.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getSelection();if(null!==i){n.sort(c["a"].compareRangesUsingStarts);var o=[],r=n.reduce(function(e,t){return e.isEmpty()?e.endLineNumber===t.startLineNumber?(i.equalsSelection(e)&&(i=t),t):t.startLineNumber>e.endLineNumber+1?(o.push(e),t):new g["a"](e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new g["a"](e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)});o.push(r);var s=t.getModel();if(null!==s){for(var a=[],u=[],d=i,h=0,p=0,f=o.length;p<f;p++){var m=o[p],v=m.startLineNumber,_=1,b=0,y=void 0,w=void 0,C=s.getLineContent(m.endLineNumber).length-m.endColumn;if(m.isEmpty()||m.startLineNumber===m.endLineNumber){var S=m.getStartPosition();S.lineNumber<s.getLineCount()?(y=v+1,w=s.getLineMaxColumn(y)):(y=S.lineNumber,w=s.getLineMaxColumn(S.lineNumber))}else y=m.endLineNumber,w=s.getLineMaxColumn(y);for(var L=s.getLineContent(v),O=v+1;O<=y;O++){var x=s.getLineContent(O),N=s.getLineFirstNonWhitespaceColumn(O);if(N>=1){var D=!0;""===L&&(D=!1),!D||" "!==L.charAt(L.length-1)&&"\t"!==L.charAt(L.length-1)||(D=!1,L=L.replace(/[\s\uFEFF\xA0]+$/g," "));var k=x.substr(N-1);L+=(D?" ":"")+k,b=D?k.length+1:k.length}else b=0}var I=new c["a"](v,_,y,w);if(!I.isEmpty()){var E=void 0;m.isEmpty()?(a.push(l["a"].replace(I,L)),E=new g["a"](I.startLineNumber-h,L.length-b+1,v-h,L.length-b+1)):m.startLineNumber===m.endLineNumber?(a.push(l["a"].replace(I,L)),E=new g["a"](m.startLineNumber-h,m.startColumn,m.endLineNumber-h,m.endColumn)):(a.push(l["a"].replace(I,L)),E=new g["a"](m.startLineNumber-h,m.startColumn,m.startLineNumber-h,L.length-C)),null!==c["a"].intersectRanges(I,i)?d=E:u.push(E)}h+=I.endLineNumber-I.startLineNumber}u.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,u),t.pushUndoStop()}}}},t}(s["b"]),G=function(e){function t(){return e.call(this,{id:"editor.action.transpose",label:i["a"]("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:m["a"].writable})||this}return N(t,e),t.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var o=[],r=0,s=n.length;r<s;r++){var u=n[r];if(u.isEmpty()){var l=u.getStartPosition(),d=i.getLineMaxColumn(l.lineNumber);if(l.column>=d){if(l.lineNumber===i.getLineCount())continue;var h=new c["a"](l.lineNumber,Math.max(1,l.column-1),l.lineNumber+1,1),p=i.getValueInRange(h).split("").reverse().join("");o.push(new a["a"](new g["a"](l.lineNumber,Math.max(1,l.column-1),l.lineNumber+1,1),p))}else{h=new c["a"](l.lineNumber,Math.max(1,l.column-1),l.lineNumber,l.column+1),p=i.getValueInRange(h).split("").reverse().join("");o.push(new a["b"](h,p,new g["a"](l.lineNumber,l.column+1,l.lineNumber,l.column+1)))}}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}},t}(s["b"]),Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.run=function(e,t){var n=t.getSelections();if(null!==n){var i=t.getModel();if(null!==i){for(var o=t.getConfiguration().wordSeparators,r=[],s=0,u=n.length;s<u;s++){var l=n[s];if(l.isEmpty()){var d=l.getStartPosition(),h=i.getWordAtPosition(d);if(!h)continue;var p=new c["a"](d.lineNumber,h.startColumn,d.lineNumber,h.endColumn),f=i.getValueInRange(p);r.push(new a["b"](p,this._modifyText(f,o),new g["a"](d.lineNumber,d.column,d.lineNumber,d.column)))}else{f=i.getValueInRange(l);r.push(new a["b"](l,this._modifyText(f,o),l))}}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}},t}(s["b"]),Y=function(e){function t(){return e.call(this,{id:"editor.action.transformToUppercase",label:i["a"]("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m["a"].writable})||this}return N(t,e),t.prototype._modifyText=function(e,t){return e.toLocaleUpperCase()},t}(Z),X=function(e){function t(){return e.call(this,{id:"editor.action.transformToLowercase",label:i["a"]("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m["a"].writable})||this}return N(t,e),t.prototype._modifyText=function(e,t){return e.toLocaleLowerCase()},t}(Z),$=function(e){function t(){return e.call(this,{id:"editor.action.transformToTitlecase",label:i["a"]("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m["a"].writable})||this}return N(t,e),t.prototype._modifyText=function(e,t){for(var n="\r\n\t "+t,i=n.split(""),o="",r=!0,s=0;s<e.length;s++){var a=e[s];i.indexOf(a)>=0?(r=!0,o+=a):r?(r=!1,o+=a.toLocaleUpperCase()):o+=a.toLocaleLowerCase()}return o},t}(Z);Object(s["f"])(k),Object(s["f"])(I),Object(s["f"])(M),Object(s["f"])(T),Object(s["f"])(R),Object(s["f"])(A),Object(s["f"])(F),Object(s["f"])(j),Object(s["f"])(W),Object(s["f"])(V),Object(s["f"])(B),Object(s["f"])(H),Object(s["f"])(U),Object(s["f"])(K),Object(s["f"])(q),Object(s["f"])(G),Object(s["f"])(Y),Object(s["f"])(X),Object(s["f"])($)},7605:function(e,t,n){"use strict";n.r(t);n("0a33");var i=n("dff7"),o=n("ef8e"),r=n("3742"),s=n("5fe7"),a=n("fe45"),u=n("a666"),l=n("b2cc"),c=n("308f"),d=65535,h=16777215,p=4278190080,f=function(){function e(e,t,n){if(e.length!==t.length||e.length>d)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n,this._parentsComputed=!1}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var t=[],n=function(n,i){var o=t[t.length-1];return e.getStartLineNumber(o)<=n&&e.getEndLineNumber(o)>=i},i=0,o=this._startIndexes.length;i<o;i++){var r=this._startIndexes[i],s=this._endIndexes[i];if(r>h||s>h)throw new Error("startLineNumber or endLineNumber must not exceed "+h);while(t.length>0&&!n(r,s))t.pop();var a=t.length>0?t[t.length-1]:-1;t.push(i),this._startIndexes[i]=r+((255&a)<<24),this._endIndexes[i]=s+((65280&a)<<16)}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&h},e.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&h},e.prototype.getType=function(e){return this._types?this._types[e]:void 0},e.prototype.hasTypes=function(){return!!this._types},e.prototype.isCollapsed=function(e){var t=e/32|0,n=e%32;return 0!==(this._collapseStates[t]&1<<n)},e.prototype.setCollapsed=function(e,t){var n=e/32|0,i=e%32,o=this._collapseStates[n];this._collapseStates[n]=t?o|1<<i:o&~(1<<i)},e.prototype.toRegion=function(e){return new g(this,e)},e.prototype.getParentIndex=function(e){this.ensureParentIndices();var t=((this._startIndexes[e]&p)>>>24)+((this._endIndexes[e]&p)>>>16);return t===d?-1:t},e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},e.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;while(t<n){var i=Math.floor((t+n)/2);e<this.getStartLineNumber(i)?n=i:t=i+1}return t-1},e.prototype.findRange=function(e){var t=this.findIndex(e);if(t>=0){var n=this.getEndLineNumber(t);if(n>=e)return t;t=this.getParentIndex(t);while(-1!==t){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},e.prototype.toString=function(){for(var e=[],t=0;t<this.length;t++)e[t]="["+(this.isCollapsed(t)?"+":"-")+"] "+this.getStartLineNumber(t)+"/"+this.getEndLineNumber(t);return e.join(", ")},e}(),g=function(){function e(e,t){this.ranges=e,this.index=t}return Object.defineProperty(e.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),e.prototype.containedBy=function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},e}(),m=function(){function e(e,t){this._updateEventEmitter=new c["a"],this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new f(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(e.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),e.prototype.toggleCollapseState=function(e){var t=this;if(e.length){var n={};this._decorationProvider.changeDecorations(function(i){for(var o=0,r=e;o<r.length;o++){var s=r[o],a=s.regionIndex,u=t._editorDecorationIds[a];if(u&&!n[u]){n[u]=!0;var l=!t._regions.isCollapsed(a);t._regions.setCollapsed(a,l),i.changeDecorationOptions(u,t._decorationProvider.getDecorationOption(l))}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}},e.prototype.update=function(e,t){var n=this;void 0===t&&(t=[]);var i=[],o=function(e,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(e<r&&r<=n)return!0}return!1},r=function(t,r){var s=e.getStartLineNumber(t);r&&o(s,e.getEndLineNumber(t))&&(r=!1),e.setCollapsed(t,r);var a=n._textModel.getLineMaxColumn(s),u={startLineNumber:s,startColumn:a,endLineNumber:s,endColumn:a};i.push({range:u,options:n._decorationProvider.getDecorationOption(r)})},s=0,a=function(){while(s<n._regions.length){var e=n._regions.isCollapsed(s);if(s++,e)return s-1}return-1},u=0,l=a();while(-1!==l&&u<e.length){var c=this._textModel.getDecorationRange(this._editorDecorationIds[l]);if(c){var d=c.startLineNumber;if(this._textModel.getLineMaxColumn(d)===c.startColumn)while(u<e.length){var h=e.getStartLineNumber(u);if(!(d>=h))break;r(u,d===h),u++}}l=a()}while(u<e.length)r(u,!1),u++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,i),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},e.prototype.getMemento=function(){for(var e=[],t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){var n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){var i=n.startLineNumber,o=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:i,endLineNumber:o})}}if(e.length>0)return e},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n],r=this.getRegionAtLine(o.startLineNumber);r&&!r.isCollapsed&&t.push(r)}this.toggleCollapseState(t)}},e.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},e.prototype.getAllRegionsAtLine=function(e,t){var n=[];if(this._regions){var i=this._regions.findRange(e),o=1;while(i>=0){var r=this._regions.toRegion(i);t&&!t(r,o)||n.push(r),o++,i=r.parentIndex}}return n},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null},e.prototype.getRegionsInside=function(e,t){var n=[],i=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var r=[],s=i,a=this._regions.length;s<a;s++){var u=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<o))break;while(r.length>0&&!u.containedBy(r[r.length-1]))r.pop();r.push(u),t(u,r.length)&&n.push(u)}else for(s=i,a=this._regions.length;s<a;s++){u=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<o))break;t&&!t(u)||n.push(u)}return n},e}();function v(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var o=[];if(i&&i.length>0)for(var r=0,s=i;r<s.length;r++){var a=s[r],u=e.getRegionAtLine(a);if(u&&(u.isCollapsed!==t&&o.push(u),n>1)){var l=e.getRegionsInside(u,function(e,i){return e.isCollapsed!==t&&i<n});o.push.apply(o,l)}}else{l=e.getRegionsInside(null,function(e,i){return e.isCollapsed!==t&&i<n});o.push.apply(o,l)}e.toggleCollapseState(o)}function _(e,t,n,i){for(var o=[],r=0,s=i;r<s.length;r++){var a=s[r],u=e.getAllRegionsAtLine(a,function(e,i){return e.isCollapsed!==t&&i<=n});o.push.apply(o,u)}e.toggleCollapseState(o)}function b(e,t,n,i){var o=function(e,o){return o===t&&e.isCollapsed!==n&&!i.some(function(t){return e.containsLine(t)})},r=e.getRegionsInside(null,o);e.toggleCollapseState(r)}function y(e,t,n){for(var i=e.textModel,o=e.regions,r=[],s=o.length-1;s>=0;s--)if(n!==o.isCollapsed(s)){var a=o.getStartLineNumber(s);t.test(i.getLineContent(a))&&r.push(o.toRegion(s))}e.toggleCollapseState(r)}function w(e,t,n){for(var i=e.regions,o=[],r=i.length-1;r>=0;r--)n!==i.isCollapsed(r)&&t===i.getType(r)&&o.push(i.toRegion(r));e.toggleCollapseState(o)}var C=n("b57f"),S=function(){function e(e){this.editor=e,this.autoHideFoldingControls=!0}return e.prototype.getDecorationOption=function(t){return t?e.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:e.EXPANDED_VISUAL_DECORATION},e.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},e.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},e.COLLAPSED_VISUAL_DECORATION=C["a"].register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"folding collapsed"}),e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=C["a"].register({stickiness:1,linesDecorationsClassName:"folding"}),e.EXPANDED_VISUAL_DECORATION=C["a"].register({stickiness:1,linesDecorationsClassName:"folding alwaysShowFoldIcons"}),e}(),L=n("c101"),O=n("6a89"),x=n("e8e3"),N=function(){function e(e){var t=this;this._updateEventEmitter=new c["a"],this._foldingModel=e,this._foldingModelListener=e.onDidChange(function(e){return t.updateHiddenRanges()}),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,i=0,o=Number.MAX_VALUE,r=-1,s=this._foldingModel.regions;n<s.length;n++)if(s.isCollapsed(n)){var a=s.getStartLineNumber(n)+1,u=s.getEndLineNumber(n);o<=a&&u<=r||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===u?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new O["a"](a,1,u,1))),o=a,r=u)}(e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)},e.prototype.applyMemento=function(e){if(!Array.isArray(e)||0===e.length)return!1;for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];if(!o.startLineNumber||!o.endLineNumber)return!1;t.push(new O["a"](o.startLineNumber+1,1,o.endLineNumber,1))}return this.applyHiddenRanges(t),!0},e.prototype.getMemento=function(){return this._hiddenRanges.map(function(e){return{startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}})},e.prototype.applyHiddenRanges=function(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)},e.prototype.hasRanges=function(){return this._hiddenRanges.length>0},e.prototype.isHidden=function(e){return null!==k(this._hiddenRanges,e)},e.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,o=null,r=function(e){return o&&D(e,o)||(o=k(t._hiddenRanges,e)),o?o.startLineNumber-1:null},s=0,a=e.length;s<a;s++){var u=e[s],l=r(u.startLineNumber);l&&(u=u.setStartPosition(l,i.getLineMaxColumn(l)),n=!0);var c=r(u.endLineNumber);c&&(u=u.setEndPosition(c,i.getLineMaxColumn(c)),n=!0),e[s]=u}return n},e.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},e}();function D(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}function k(e,t){var n=Object(x["h"])(e,function(e){return t<e.startLineNumber})-1;return n>=0&&e[n].endLineNumber>=t?e[n]:null}var I=n("70cb"),E=5e3,M="indent",T=function(){function e(e){this.editorModel=e,this.id=M}return e.prototype.dispose=function(){},e.prototype.compute=function(e){var t=I["a"].getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,i=t&&t.markers;return Promise.resolve(R(this.editorModel,n,i))},e}(),P=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.insertFirst=function(e,t,n){if(!(e>h||t>h)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}},e.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),i=this._length-1,o=0;i>=0;i--,o++)t[o]=this._startIndexes[i],n[o]=this._endIndexes[i];return new f(t,n)}var r=0,s=this._indentOccurrences.length;for(i=0;i<this._indentOccurrences.length;i++){var a=this._indentOccurrences[i];if(a){if(a+r>this._foldingRangesLimit){s=i;break}r+=a}}var u=e.getOptions().tabSize;for(t=new Uint32Array(this._foldingRangesLimit),n=new Uint32Array(this._foldingRangesLimit),i=this._length-1,o=0;i>=0;i--){var l=this._startIndexes[i],c=e.getLineContent(l),d=C["b"].computeIndentLevel(c,u);(d<s||d===s&&r++<this._foldingRangesLimit)&&(t[o]=l,n[o]=this._endIndexes[i],o++)}return new f(t,n)},e}();function R(e,t,n,i){void 0===i&&(i=E);var o=e.getOptions().tabSize,r=new P(i),s=void 0;n&&(s=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var a=[],u=e.getLineCount()+1;a.push({indent:-1,endAbove:u,line:u});for(var l=e.getLineCount();l>0;l--){var c=e.getLineContent(l),d=C["b"].computeIndentLevel(c,o),h=a[a.length-1];if(-1!==d){var p=void 0;if(s&&(p=c.match(s))){if(!p[1]){a.push({indent:-2,endAbove:l,line:l});continue}var f=a.length-1;while(f>0&&-2!==a[f].indent)f--;if(f>0){a.length=f+1,h=a[f],r.insertFirst(l,h.line,d),h.line=l,h.indent=d,h.endAbove=l;continue}}if(h.indent>d){do{a.pop(),h=a[a.length-1]}while(h.indent>d);var g=h.endAbove-1;g-l>=1&&r.insertFirst(l,g,d)}h.indent===d?h.endAbove=l:a.push({indent:d,endAbove:l,line:l})}else t&&(h.endAbove=l)}return r.toIndentRanges(e)}var A=n("b707"),F=n("fdcc"),j=5e3,W={},V="syntax",B=function(){function e(e,t,n){void 0===n&&(n=j),this.editorModel=e,this.providers=t,this.limit=n,this.id=V}return e.prototype.compute=function(e){var t=this;return H(this.providers,this.editorModel,e).then(function(e){if(e){var n=U(e,t.limit);return n}return null})},e.prototype.dispose=function(){},e}();function H(e,t,n){var i=null,o=e.map(function(e,o){return Promise.resolve(e.provideFoldingRanges(t,W,n)).then(function(e){if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(i)||(i=[]);for(var r=t.getLineCount(),s=0,a=e;s<a.length;s++){var u=a[s];u.start>0&&u.end>u.start&&u.end<=r&&i.push({start:u.start,end:u.end,rank:o,kind:u.kind})}}},F["f"])});return Promise.all(o).then(function(e){return i})}var z=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.add=function(e,t,n,i){if(!(e>h||t>h)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=i,this._types[o]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new f(e,t,this._types)}var i=0,o=this._nestingLevelCounts.length;for(n=0;n<this._nestingLevelCounts.length;n++){var r=this._nestingLevelCounts[n];if(r){if(r+i>this._foldingRangesLimit){o=n;break}i+=r}}e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit);for(var s=[],a=(n=0,0);n<this._length;n++){var u=this._nestingLevels[n];(u<o||u===o&&i++<this._foldingRangesLimit)&&(e[a]=this._startIndexes[n],t[a]=this._endIndexes[n],s[a]=this._types[n],a++)}return new f(e,t,s)},e}();function U(e,t){for(var n=e.sort(function(e,t){var n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n}),i=new z(t),o=void 0,r=[],s=0,a=n;s<a.length;s++){var u=a[s];if(o){if(u.start>o.start)if(u.end<=o.end)r.push(o),o=u,i.add(u.start,u.end,u.kind&&u.kind.value,r.length);else{if(u.start>o.end){do{o=r.pop()}while(o&&u.start>o.end);o&&r.push(o),o=u}i.add(u.start,u.end,u.kind&&u.kind.value,r.length)}}else o=u,i.add(u.start,u.end,u.kind&&u.kind.value,r.length)}return i.toIndentRanges()}var K="init",q=function(){function e(e,t,n,i){if(this.editorModel=e,this.id=K,t.length){var o=function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}}};this.decorationIds=e.deltaDecorations([],t.map(o)),this.timeout=setTimeout(n,i)}}return e.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"===typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},e.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,i=this.decorationIds;n<i.length;n++){var o=i[n],r=this.editorModel.getDecorationRange(o);r&&t.push({start:r.startLineNumber,end:r.endLineNumber,rank:1})}return Promise.resolve(U(t,Number.MAX_VALUE))},e}(),G=n("4fc3");n.d(t,"ID",function(){return Q}),n.d(t,"FoldingController",function(){return J});var Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},X=function(e,t){return function(n,i){t(n,i,e)}},$=new G["d"]("foldingEnabled",!1),Q="editor.contrib.folding",J=function(e){function t(t,n){var i=e.call(this)||this;return i.contextKeyService=n,i.localToDispose=i._register(new u["b"]),i.editor=t,i._isEnabled=i.editor.getConfiguration().contribInfo.folding,i._autoHideFoldingControls="mouseover"===i.editor.getConfiguration().contribInfo.showFoldingControls,i._useFoldingProviders="indentation"!==i.editor.getConfiguration().contribInfo.foldingStrategy,i.foldingModel=null,i.hiddenRangeModel=null,i.rangeProvider=null,i.foldingRegionPromise=null,i.foldingStateMemento=null,i.foldingModelPromise=null,i.updateScheduler=null,i.cursorChangedScheduler=null,i.mouseDownInfo=null,i.foldingDecorationProvider=new S(t),i.foldingDecorationProvider.autoHideFoldingControls=i._autoHideFoldingControls,i.foldingEnabled=$.bindTo(i.contextKeyService),i.foldingEnabled.set(i._isEnabled),i._register(i.editor.onDidChangeModel(function(){return i.onModelChanged()})),i._register(i.editor.onDidChangeConfiguration(function(e){if(e.contribInfo){var t=i._isEnabled;i._isEnabled=i.editor.getConfiguration().contribInfo.folding,i.foldingEnabled.set(i._isEnabled),t!==i._isEnabled&&i.onModelChanged();var n=i._autoHideFoldingControls;i._autoHideFoldingControls="mouseover"===i.editor.getConfiguration().contribInfo.showFoldingControls,n!==i._autoHideFoldingControls&&(i.foldingDecorationProvider.autoHideFoldingControls=i._autoHideFoldingControls,i.onModelContentChanged());var o=i._useFoldingProviders;i._useFoldingProviders="indentation"!==i.editor.getConfiguration().contribInfo.foldingStrategy,o!==i._useFoldingProviders&&i.onFoldingStrategyChanged()}})),i.onModelChanged(),i}return Z(t,e),t.get=function(e){return e.getContribution(Q)},t.prototype.getId=function(){return Q},t.prototype.saveViewState=function(){var e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){var t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}},t.prototype.restoreViewState=function(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.collapsedRegions&&e.lineCount===t.getLineCount()){e.provider!==V&&e.provider!==K||(this.foldingStateMemento=e);var n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){var i=this.getFoldingModel();i&&i.then(function(e){e&&e.applyMemento(n)}).then(void 0,F["e"])}}},t.prototype.onModelChanged=function(){var e=this;this.localToDispose.clear();var t=this.editor.getModel();this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this.foldingModel=new m(t,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new N(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(t){return e.onHiddenRangesChanges(t)})),this.updateScheduler=new s["a"](200),this.cursorChangedScheduler=new s["d"](function(){return e.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(A["m"].onDidChange(function(){return e.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return e.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return e.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return e.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(t){return e.onEditorMouseDown(t)})),this.localToDispose.add(this.editor.onMouseUp(function(t){return e.onEditorMouseUp(t)})),this.localToDispose.add({dispose:function(){e.foldingRegionPromise&&(e.foldingRegionPromise.cancel(),e.foldingRegionPromise=null),e.updateScheduler&&e.updateScheduler.cancel(),e.updateScheduler=null,e.foldingModel=null,e.foldingModelPromise=null,e.hiddenRangeModel=null,e.cursorChangedScheduler=null,e.foldingStateMemento=null,e.rangeProvider&&e.rangeProvider.dispose(),e.rangeProvider=null}}),this.onModelContentChanged())},t.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},t.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new T(e),this._useFoldingProviders&&this.foldingModel){var n=A["m"].ordered(this.foldingModel.textModel);if(0===n.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var i=this.rangeProvider=new q(e,this.foldingStateMemento.collapsedRegions,function(){t.foldingStateMemento=null,t.onFoldingStrategyChanged()},3e4);return i}n.length>0&&(this.rangeProvider=new B(e,n))}return this.foldingStateMemento=null,this.rangeProvider},t.prototype.getFoldingModel=function(){return this.foldingModelPromise},t.prototype.onModelContentChanged=function(){var e=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var t=e.foldingModel;if(!t)return null;var n=e.foldingRegionPromise=Object(s["f"])(function(n){return e.getRangeProvider(t.textModel).compute(n)});return n.then(function(i){if(i&&n===e.foldingRegionPromise){var o=e.editor.getSelections(),r=o?o.map(function(e){return e.startLineNumber}):[];t.update(i,r)}return t})}).then(void 0,function(e){return Object(F["e"])(e),null}))},t.prototype.onHiddenRangesChanges=function(e){if(this.hiddenRangeModel&&e.length){var t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)},t.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},t.prototype.revealCursor=function(){var e=this,t=this.getFoldingModel();t&&t.then(function(t){if(t){var n=e.editor.getSelections();if(n&&n.length>0){for(var i=[],o=function(n){var o=n.selectionStartLineNumber;e.hiddenRangeModel&&e.hiddenRangeModel.isHidden(o)&&i.push.apply(i,t.getAllRegionsAtLine(o,function(e){return e.isCollapsed&&o>e.startLineNumber}))},r=0,s=n;r<s.length;r++){var a=s[r];o(a)}i.length&&(t.toggleCollapseState(i),e.reveal(n[0].getPosition()))}}}).then(void 0,F["e"])},t.prototype.onEditorMouseDown=function(e){if(this.mouseDownInfo=null,this.hiddenRangeModel&&e.target&&e.target.range&&(e.event.leftButton||e.event.middleButton)){var t=e.target.range,n=!1;switch(e.target.type){case 4:var i=e.target.detail,o=e.target.element.offsetLeft,r=i.offsetX-o;if(r<5)return;n=!0;break;case 7:if(this.hiddenRangeModel.hasRanges()){var s=e.target.detail;if(!s.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){var a=this.editor.getModel();if(a&&t.startColumn===a.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}},t.prototype.onEditorMouseUp=function(e){var t=this,n=this.getFoldingModel();if(n&&this.mouseDownInfo&&e.target){var i=this.mouseDownInfo.lineNumber,o=this.mouseDownInfo.iconClicked,r=e.target.range;if(r&&r.startLineNumber===i){if(o){if(4!==e.target.type)return}else{var s=this.editor.getModel();if(!s||r.startColumn!==s.getLineMaxColumn(i))return}n.then(function(n){if(n){var r=n.getRegionAtLine(i);if(r&&r.startLineNumber===i){var s=r.isCollapsed;if(o||s){var a=[r];(e.event.middleButton||e.event.shiftKey)&&a.push.apply(a,n.getRegionsInside(r,function(e){return e.isCollapsed===s})),n.toggleCollapseState(a),t.reveal({lineNumber:i,column:1})}}}}).then(void 0,F["e"])}}},t.prototype.reveal=function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)},t=Y([X(1,G["c"])],t),t}(u["a"]),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Z(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this,o=J.get(t);if(o){var r=o.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then(function(e){if(e){i.invoke(o,e,t,n);var r=t.getSelection();r&&o.reveal(r.getStartPosition())}})):void 0}},t.prototype.getSelectedLines=function(e){var t=e.getSelections();return t?t.map(function(e){return e.startLineNumber}):[]},t.prototype.getLineNumbers=function(e,t){return e&&e.selectionLines?e.selectionLines.map(function(e){return e+1}):this.getSelectedLines(t)},t.prototype.run=function(e,t){},t}(l["b"]);function te(e){if(!o["j"](e)){if(!o["h"](e))return!1;var t=e;if(!o["j"](t.levels)&&!o["g"](t.levels))return!1;if(!o["j"](t.direction)&&!o["i"](t.direction))return!1;if(!o["j"](t.selectionLines)&&(!o["c"](t.selectionLines)||!t.selectionLines.every(o["g"])))return!1}return!0}var ne=function(e){function t(){return e.call(this,{id:"editor.unfold",label:i["a"]("unfoldAction.label","Unfold"),alias:"Unfold",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:te,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n,i){var o=i&&i.levels||1,r=this.getLineNumbers(i,n);i&&"up"===i.direction?_(t,!1,o,r):v(t,!1,o,r)},t}(ee),ie=function(e){function t(){return e.call(this,{id:"editor.unfoldRecursively",label:i["a"]("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2137),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n,i){v(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))},t}(ee),oe=function(e){function t(){return e.call(this,{id:"editor.fold",label:i["a"]("foldAction.label","Fold"),alias:"Fold",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold. Defaults to 1.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:te,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n,i){var o=i&&i.levels||1,r=this.getLineNumbers(i,n);i&&"up"===i.direction?_(t,!0,o,r):v(t,!0,o,r)},t}(ee),re=function(e){function t(){return e.call(this,{id:"editor.foldRecursively",label:i["a"]("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2135),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){var i=this.getSelectedLines(n);v(t,!0,Number.MAX_VALUE,i)},t}(ee),se=function(e){function t(){return e.call(this,{id:"editor.foldAllBlockComments",label:i["a"]("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2133),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,A["l"].Comment.value,!0);else{var i=n.getModel();if(!i)return;var o=I["a"].getComments(i.getLanguageIdentifier().id);if(o&&o.blockCommentStartToken){var s=new RegExp("^\\s*"+Object(r["p"])(o.blockCommentStartToken));y(t,s,!0)}}},t}(ee),ae=function(e){function t(){return e.call(this,{id:"editor.foldAllMarkerRegions",label:i["a"]("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2077),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,A["l"].Region.value,!0);else{var i=n.getModel();if(!i)return;var o=I["a"].getFoldingRules(i.getLanguageIdentifier().id);if(o&&o.markers&&o.markers.start){var r=new RegExp(o.markers.start);y(t,r,!0)}}},t}(ee),ue=function(e){function t(){return e.call(this,{id:"editor.unfoldAllMarkerRegions",label:i["a"]("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2078),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,A["l"].Region.value,!1);else{var i=n.getModel();if(!i)return;var o=I["a"].getFoldingRules(i.getLanguageIdentifier().id);if(o&&o.markers&&o.markers.start){var r=new RegExp(o.markers.start);y(t,r,!1)}}},t}(ee),le=function(e){function t(){return e.call(this,{id:"editor.foldAll",label:i["a"]("foldAllAction.label","Fold All"),alias:"Fold All",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2069),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){v(t,!0)},t}(ee),ce=function(e){function t(){return e.call(this,{id:"editor.unfoldAll",label:i["a"]("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2088),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){v(t,!1)},t}(ee),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Z(t,e),t.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(t.ID_PREFIX.length))},t.prototype.invoke=function(e,t,n){b(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))},t.ID_PREFIX="editor.foldLevel",t.ID=function(e){return t.ID_PREFIX+e},t}(ee);Object(l["h"])(J),Object(l["f"])(ne),Object(l["f"])(ie),Object(l["f"])(oe),Object(l["f"])(re),Object(l["f"])(le),Object(l["f"])(ce),Object(l["f"])(se),Object(l["f"])(ae),Object(l["f"])(ue);for(var he=1;he<=7;he++)Object(l["i"])(new de({id:de.ID(he),label:i["a"]("foldLevelAction.label","Fold Level {0}",he),alias:"Fold Level "+he,precondition:$,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2048|21+he),weight:100}}))},"77a4":function(e,t,n){"use strict";n.r(t);var i=n("5fe7"),o=n("fdcc"),r=n("a666"),s=n("bc04"),a=n("b2cc"),u=n("b707"),l=n("e8e3"),c=n("2504"),d=n("6d8e"),h=n("1b69"),p=function(){function e(){this.lenses=[],this._dispoables=new r["b"]}return e.prototype.dispose=function(){this._dispoables.dispose()},e.prototype.add=function(e,t){this._dispoables.add(e);for(var n=0,i=e.lenses;n<i.length;n++){var o=i[n];this.lenses.push({symbol:o,provider:t})}},e}();function f(e,t){var n=u["b"].ordered(e),i=new Map,r=new p,s=n.map(function(n,s){return i.set(n,s),Promise.resolve(n.provideCodeLenses(e,t)).then(function(e){return e&&r.add(e,n)}).catch(o["f"])});return Promise.all(s).then(function(){return r.lenses=Object(l["o"])(r.lenses,function(e,t){return e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:i.get(e.provider)<i.get(t.provider)?-1:i.get(e.provider)>i.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0}),r})}Object(a["j"])("_executeCodeLensProvider",function(e,t){var n=t.resource,i=t.itemResolveCount;if(!(n instanceof d["a"]))throw Object(o["b"])();var s=e.get(h["a"]).getModel(n);if(!s)throw Object(o["b"])();var a=[],u=new r["b"];return f(s,c["a"].None).then(function(e){u.add(e);for(var t=[],n=function(e){"undefined"===typeof i||Boolean(e.symbol.command)?a.push(e.symbol):i-- >0&&e.provider.resolveCodeLens&&t.push(Promise.resolve(e.provider.resolveCodeLens(s,e.symbol,c["a"].None)).then(function(t){return a.push(t||e.symbol)}))},o=0,r=e.lenses;o<r.length;o++){var l=r[o];n(l)}return Promise.all(t)}).then(function(){return a}).finally(function(){setTimeout(function(){return u.dispose()},100)})});n("44c7");var g=n("11f7"),m=n("3742"),v=n("6a89"),_=n("b57f"),b=n("918c"),y=n("303e"),w=n("b7d0"),C=function(){function e(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return e.prototype.onComputedHeight=function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())},e}(),S=function(){function e(t,n,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._id="codeLensWidget"+ ++e._idPool,this._editor=t,this.setSymbolRange(n),this._domNode=document.createElement("span"),this._domNode.innerHTML=" ",g["f"](this._domNode,"codelens-decoration"),this.updateHeight(),this.withCommands(i.map(function(e){return e.symbol}),!1)}return e.prototype.updateHeight=function(){var e=this._editor.getConfiguration(),t=e.fontInfo,n=e.lineHeight;this._domNode.style.height=Math.round(1.1*n)+"px",this._domNode.style.lineHeight=n+"px",this._domNode.style.fontSize=Math.round(.9*t.fontSize)+"px",this._domNode.style.paddingRight=Math.round(.45*t.fontSize)+"px",this._domNode.innerHTML=" "},e.prototype.withCommands=function(e,t){this._commands.clear();var n=Object(l["d"])(e);if(Object(l["m"])(n))this._domNode.innerHTML="<span>no commands</span>";else{for(var i=[],o=0;o<n.length;o++){var r=n[o].command;if(r){var s=Object(m["o"])(r.title),a=void 0;r.id?(a="<a id="+o+">"+s+"</a>",this._commands.set(String(o),r)):a="<span>"+s+"</span>",i.push(a)}}var u=""===this._domNode.innerHTML||" "===this._domNode.innerHTML;this._domNode.innerHTML=i.join("<span> | </span>"),this._editor.layoutContentWidget(this),u&&t&&g["f"](this._domNode,"fadein")}},e.prototype.getCommand=function(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0},e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.setSymbolRange=function(e){if(this._editor.hasModel()){var t=e.startLineNumber,n=this._editor.getModel().getLineFirstNonWhitespaceColumn(t);this._widgetPosition={position:{lineNumber:t,column:n},preference:[1]}}},e.prototype.getPosition=function(){return this._widgetPosition||null},e.prototype.isVisible=function(){return this._domNode.hasAttribute("monaco-visible-content-widget")},e._idPool=0,e}(),L=function(){function e(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return e.prototype.addDecoration=function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)},e.prototype.removeDecoration=function(e){this._removeDecorations.push(e)},e.prototype.commit=function(e){for(var t=e.deltaDecorations(this._removeDecorations,this._addDecorations),n=0,i=t.length;n<i;n++)this._addDecorationsCallbacks[n](t[n])},e}(),O=function(){function e(e,t,n,i,o){var r,s=this;this._editor=t,this._data=e,this._decorationIds=new Array(this._data.length),this._data.forEach(function(e,t){n.addDecoration({range:e.symbol.range,options:_["a"].EMPTY},function(e){return s._decorationIds[t]=e}),r=r?v["a"].plusRange(r,e.symbol.range):v["a"].lift(e.symbol.range)}),r&&(this._contentWidget=new S(t,r,this._data),this._viewZone=new C(r.startLineNumber-1,o),this._viewZoneId=i.addZone(this._viewZone),this._editor.addContentWidget(this._contentWidget))}return e.prototype.dispose=function(e,t){while(this._decorationIds.length)e.removeDecoration(this._decorationIds.pop());t&&t.removeZone(this._viewZoneId),this._editor.removeContentWidget(this._contentWidget)},e.prototype.isValid=function(){var e=this;if(!this._editor.hasModel())return!1;var t=this._editor.getModel();return this._decorationIds.some(function(n,i){var o=t.getDecorationRange(n),r=e._data[i].symbol;return!(!o||v["a"].isEmpty(r.range)!==o.isEmpty())})},e.prototype.updateCodeLensSymbols=function(e,t){var n=this;while(this._decorationIds.length)t.removeDecoration(this._decorationIds.pop());this._data=e,this._decorationIds=new Array(this._data.length),this._data.forEach(function(e,i){t.addDecoration({range:e.symbol.range,options:_["a"].EMPTY},function(e){return n._decorationIds[i]=e})})},e.prototype.computeIfNecessary=function(e){if(!this._contentWidget.isVisible())return null;for(var t=0;t<this._decorationIds.length;t++){var n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data},e.prototype.updateCommands=function(e){this._contentWidget.withCommands(e,!0);for(var t=0;t<this._data.length;t++){var n=e[t];if(n){var i=this._data[t].symbol;i.command=n.command||i.command}}},e.prototype.updateHeight=function(){this._contentWidget.updateHeight()},e.prototype.getCommand=function(e){return this._contentWidget.getCommand(e)},e.prototype.getLineNumber=function(){if(this._editor.hasModel()){var e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);if(e)return e.startLineNumber}return-1},e.prototype.update=function(e){if(this.isValid()&&this._editor.hasModel()){var t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget.setSymbolRange(t),this._editor.layoutContentWidget(this._contentWidget))}},e}();Object(w["f"])(function(e,t){var n=e.getColor(b["e"]);n&&t.addRule(".monaco-editor .codelens-decoration { color: "+n+"; }");var i=e.getColor(y["n"]);i&&t.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+i+" !important; }")});var x=n("9e74"),N=n("b0cd"),D=n("0a0f"),k=n("f5f3"),I=n("4035"),E=n("03e8"),M=n("0bfbc"),T=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},P=function(e,t){return function(n,i){t(n,i,e)}},R=Object(D["c"])("ICodeLensCache"),A=function(){function e(e,t){this.lineCount=e,this.data=t}return e}(),F=function(){function e(e){var t=this;this._fakeProvider=new(function(){function e(){}return e.prototype.provideCodeLenses=function(){throw new Error("not supported")},e}()),this._cache=new I["a"](20,.75);var n="codelens/cache";Object(i["k"])(function(){return e.remove(n,1)});var o="codelens/cache2",r=e.get(o,1,"{}");this._deserialize(r),Object(M["a"])(e.onWillSaveState)(function(n){n.reason===E["c"].SHUTDOWN&&e.store(o,t._serialize(),1)})}return e.prototype.put=function(e,t){var n=new p;n.add({lenses:t.lenses.map(function(e){return e.symbol}),dispose:function(){}},this._fakeProvider);var i=new A(e.getLineCount(),n);this._cache.set(e.uri.toString(),i)},e.prototype.get=function(e){var t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0},e.prototype.delete=function(e){this._cache.delete(e.uri.toString())},e.prototype._serialize=function(){var e=Object.create(null);return this._cache.forEach(function(t,n){for(var i=new Set,o=0,r=t.data.lenses;o<r.length;o++){var s=r[o];i.add(s.symbol.range.startLineNumber)}e[n]={lineCount:t.lineCount,lines:Object(I["e"])(i)}}),JSON.stringify(e)},e.prototype._deserialize=function(e){try{var t=JSON.parse(e);for(var n in t){for(var i=t[n],o=[],r=0,s=i.lines;r<s.length;r++){var a=s[r];o.push({range:new v["a"](a,1,a,11)})}var u=new p;u.add({lenses:o,dispose:function(){}},this._fakeProvider),this._cache.set(n,new A(i.lineCount,u))}}catch(l){}},e=T([P(0,E["a"])],e),e}();Object(k["b"])(R,F),n.d(t,"CodeLensContribution",function(){return V});var j=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},W=function(e,t){return function(n,i){t(n,i,e)}},V=function(){function e(e,t,n,i){var o=this;this._editor=e,this._commandService=t,this._notificationService=n,this._codeLensCache=i,this._globalToDispose=new r["b"],this._localToDispose=new r["b"],this._lenses=[],this._oldCodeLensModels=new r["b"],this._modelChangeCounter=0,this._isEnabled=this._editor.getConfiguration().contribInfo.codeLens,this._globalToDispose.add(this._editor.onDidChangeModel(function(){return o._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeModelLanguage(function(){return o._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(){var e=o._isEnabled;o._isEnabled=o._editor.getConfiguration().contribInfo.codeLens,e!==o._isEnabled&&o._onModelChange()})),this._globalToDispose.add(u["b"].onDidChange(this._onModelChange,this)),this._onModelChange()}return e.prototype.dispose=function(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(r["f"])(this._currentCodeLensModel)},e.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(r["f"])(this._currentCodeLensModel)},e.prototype.getId=function(){return e.ID},e.prototype._onModelChange=function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._isEnabled){var n=this._codeLensCache.get(t);if(n&&this._renderCodeLensSymbols(n),u["b"].has(t)){for(var a=0,l=u["b"].all(t);a<l.length;a++){var c=l[a];if("function"===typeof c.onDidChange){var d=c.onDidChange(function(){return p.schedule()});this._localToDispose.add(d)}}var h=this._detectVisibleLenses=new i["d"](function(){return e._onViewportChanged()},250),p=new i["d"](function(){var n=++e._modelChangeCounter;e._currentFindCodeLensSymbolsPromise&&e._currentFindCodeLensSymbolsPromise.cancel(),e._currentFindCodeLensSymbolsPromise=Object(i["f"])(function(e){return f(t,e)}),e._currentFindCodeLensSymbolsPromise.then(function(i){n===e._modelChangeCounter&&(e._currentCodeLensModel&&e._oldCodeLensModels.add(e._currentCodeLensModel),e._currentCodeLensModel=i,e._codeLensCache.put(t,i),e._renderCodeLensSymbols(i),h.schedule())},o["e"])},250);this._localToDispose.add(p),this._localToDispose.add(h),this._localToDispose.add(this._editor.onDidChangeModelContent(function(){e._editor.changeDecorations(function(t){e._editor.changeViewZones(function(n){var i=[],o=-1;e._lenses.forEach(function(e){e.isValid()&&o!==e.getLineNumber()?(e.update(n),o=e.getLineNumber()):i.push(e)});var r=new L;i.forEach(function(t){t.dispose(r,n),e._lenses.splice(e._lenses.indexOf(t),1)}),r.commit(t)})}),h.schedule(),p.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(function(t){t.scrollTopChanged&&e._lenses.length>0&&h.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(function(){h.schedule()})),this._localToDispose.add(Object(r["h"])(function(){if(e._editor.getModel()){var t=s["c"].capture(e._editor);e._editor.changeDecorations(function(t){e._editor.changeViewZones(function(n){e._disposeAllLenses(t,n)})}),t.restore(e._editor)}else e._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onDidChangeConfiguration(function(t){if(t.fontInfo)for(var n=0,i=e._lenses;n<i.length;n++){var o=i[n];o.updateHeight()}})),this._localToDispose.add(this._editor.onMouseUp(function(t){var n;if(9===t.target.type&&t.target.element&&"A"===t.target.element.tagName)for(var i=0,o=e._lenses;i<o.length;i++){var r=o[i],s=r.getCommand(t.target.element);if(s){(n=e._commandService).executeCommand.apply(n,[s.id].concat(s.arguments||[])).catch(function(t){return e._notificationService.error(t)});break}}})),p.schedule()}else n&&this._localToDispose.add(Object(i["g"])(function(){var i=e._codeLensCache.get(t);n===i&&(e._codeLensCache.delete(t),e._onModelChange())},3e4))}},e.prototype._disposeAllLenses=function(e,t){var n=new L;this._lenses.forEach(function(e){return e.dispose(n,t)}),e&&n.commit(e),this._lenses=[]},e.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.hasModel()){for(var n,i=this._editor.getModel().getLineCount(),o=[],r=0,a=e.lenses;r<a.length;r++){var u=a[r],l=u.symbol.range.startLineNumber;l<1||l>i||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(u):(n=[u],o.push(n)))}var c=s["c"].capture(this._editor);this._editor.changeDecorations(function(e){t._editor.changeViewZones(function(n){var i=new L,r=0,s=0;while(s<o.length&&r<t._lenses.length){var a=o[s][0].symbol.range.startLineNumber,u=t._lenses[r].getLineNumber();u<a?(t._lenses[r].dispose(i,n),t._lenses.splice(r,1)):u===a?(t._lenses[r].updateCodeLensSymbols(o[s],i),s++,r++):(t._lenses.splice(r,0,new O(o[s],t._editor,i,n,function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()})),r++,s++)}while(r<t._lenses.length)t._lenses[r].dispose(i,n),t._lenses.splice(r,1);while(s<o.length)t._lenses.push(new O(o[s],t._editor,i,n,function(){return t._detectVisibleLenses&&t._detectVisibleLenses.schedule()})),s++;i.commit(e)})}),c.restore(this._editor)}},e.prototype._onViewportChanged=function(){var e=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var t=this._editor.getModel();if(t){var n=[],r=[];this._lenses.forEach(function(e){var i=e.computeIfNecessary(t);i&&(n.push(i),r.push(e))}),0!==n.length&&(this._currentResolveCodeLensSymbolsPromise=Object(i["f"])(function(e){var i=n.map(function(n,i){var s=new Array(n.length),a=n.map(function(n,i){return n.symbol.command||"function"!==typeof n.provider.resolveCodeLens?(s[i]=n.symbol,Promise.resolve(void 0)):Promise.resolve(n.provider.resolveCodeLens(t,n.symbol,e)).then(function(e){s[i]=e},o["f"])});return Promise.all(a).then(function(){e.isCancellationRequested||r[i].updateCommands(s)})});return Promise.all(i)}),this._currentResolveCodeLensSymbolsPromise.then(function(){e._oldCodeLensModels.clear(),e._currentResolveCodeLensSymbolsPromise=void 0},function(t){Object(o["e"])(t),e._currentResolveCodeLensSymbolsPromise=void 0}))}},e.ID="css.editor.codeLens",e=j([W(1,x["b"]),W(2,N["a"]),W(3,R)],e),e}();Object(a["h"])(V)},"782d":function(e,t,n){},"78bc":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"e",function(){return l}),n.d(t,"d",function(){return c});var i=n("e8e3"),o=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.appendText=function(e){return this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this},e.prototype.appendMarkdown=function(e){return this.value+=e,this},e.prototype.appendCodeblock=function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this},e}();function r(e){return s(e)?!e.value:!Array.isArray(e)||e.every(r)}function s(e){return e instanceof o||!(!e||"object"!==typeof e)&&("string"===typeof e.value&&("boolean"===typeof e.isTrusted||void 0===e.isTrusted))}function a(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?Object(i["g"])(e,t,u):!(!s(e)||!s(t))&&u(e,t))}function u(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted)}function l(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function c(e){var t=[],n=e.split("|").map(function(e){return e.trim()});e=n[0];var i=n[1];if(i){var o=/height=(\d+)/.exec(i),r=/width=(\d+)/.exec(i),s=o?o[1]:"",a=r?r[1]:"",u=isFinite(parseInt(a)),l=isFinite(parseInt(s));u&&t.push('width="'+a+'"'),l&&t.push('height="'+s+'"')}return{href:e,dimensions:t}}},"7a2c":function(e,t,n){},"7a9e":function(e,t,n){"use strict";n.r(t);var i=n("3813"),o=n("e8e3"),r=n("fdcc"),s=n("a666"),a=n("b2cc"),u=n("d3f49"),l=n("6a89"),c=n("c101"),d=n("b574"),h=n("b800"),p=n("4035"),f=n("03e8"),g=n("b707"),m=n("5fe7"),v=n("0a0f"),_=n("fbba"),b=n("f5f3"),y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){return function(n,i){t(n,i,e)}},S=function(){function e(){}return e.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var i=n[0].score[0],o=1;o<n.length;o++){var r=n[o],s=r.score,a=r.completion;if(s[0]!==i)break;if(a.preselect)return o}return 0},e}(),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.memorize=function(e,t,n){},t.prototype.toJSON=function(){},t.prototype.fromJSON=function(){},t}(S),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._cache=new p["a"](300,.66),t._seq=0,t}return y(t,e),t.prototype.memorize=function(e,t,n){var i=n.completion.label,o=e.getLanguageIdentifier().language+"/"+i;this._cache.set(o,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})},t.prototype.select=function(t,n,i){if(0===i.length)return 0;var o=t.getLineContent(n.lineNumber).substr(n.column-10,n.column-1);if(/\s$/.test(o))return e.prototype.select.call(this,t,n,i);for(var r=i[0].score[0],s=-1,a=-1,u=-1,l=0;l<i.length;l++){if(i[l].score[0]!==r)break;var c=t.getLanguageIdentifier().language+"/"+i[l].completion.label,d=this._cache.peek(c);if(d&&d.touch>u&&d.type===i[l].completion.kind&&d.insertText===i[l].completion.insertText&&(u=d.touch,a=l),i[l].completion.preselect&&-1===s)return l}return-1!==a?a:-1!==s?s:0},t.prototype.toJSON=function(){var e=[];return this._cache.forEach(function(t,n){e.push([n,t])}),e},t.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=0,i=e;n<i.length;n++){var o=i[n],r=o[0],s=o[1];s.touch=t,s.type="number"===typeof s.type?s.type:Object(g["A"])(s.type),this._cache.set(r,s)}this._seq=this._cache.size},t}(S),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._trie=p["c"].forStrings(),t._seq=0,t}return y(t,e),t.prototype.memorize=function(e,t,n){var i=e.getWordUntilPosition(t).word,o=e.getLanguageIdentifier().language+"/"+i;this._trie.set(o,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})},t.prototype.select=function(t,n,i){var o=t.getWordUntilPosition(n).word;if(!o)return e.prototype.select.call(this,t,n,i);var r=t.getLanguageIdentifier().language+"/"+o,s=this._trie.get(r);if(s||(s=this._trie.findSubstr(r)),s)for(var a=0;a<i.length;a++){var u=i[a].completion,l=u.kind,c=u.insertText;if(l===s.type&&c===s.insertText)return a}return e.prototype.select.call(this,t,n,i)},t.prototype.toJSON=function(){var e=[];return this._trie.forEach(function(t,n){return e.push([n,t])}),e.sort(function(e,t){return-(e[1].touch-t[1].touch)}).forEach(function(e,t){return e[1].touch=t}),e.slice(0,200)},t.prototype.fromJSON=function(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i[0],r=i[1];r.type="number"===typeof r.type?r.type:Object(g["A"])(r.type),this._trie.set(o,r)}}},t}(S),N=function(e){function t(t,n){var i=e.call(this)||this;i._storageService=t,i._configService=n,i._storagePrefix="suggest/memories";var o=function(){var e=i._configService.getValue("editor.suggestSelection"),t=i._configService.getValue("editor.suggest.shareSuggestSelections");i._update(e,t,!1)};return i._persistSoon=i._register(new m["d"](function(){return i._saveState()},500)),i._register(t.onWillSaveState(function(e){e.reason===f["c"].SHUTDOWN&&i._saveState()})),i._register(i._configService.onDidChangeConfiguration(function(e){(e.affectsConfiguration("editor.suggestSelection")||e.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&o()})),i._register(i._storageService.onDidChangeStorage(function(e){0===e.scope&&0===e.key.indexOf(i._storagePrefix)&&(document.hasFocus()||i._update(i._mode,i._shareMem,!0))})),o(),i}return y(t,e),t.prototype._update=function(e,t,n){if(n||this._mode!==e||this._shareMem!==t){this._shareMem=t,this._mode=e,this._strategy="recentlyUsedByPrefix"===e?new x:"recentlyUsed"===e?new O:new L;try{var i=t?0:1,o=this._storageService.get(this._storagePrefix+"/"+this._mode,i);o&&this._strategy.fromJSON(JSON.parse(o))}catch(r){}}},t.prototype.memorize=function(e,t,n){this._strategy.memorize(e,t,n),this._persistSoon.schedule()},t.prototype.select=function(e,t,n){return this._strategy.select(e,t,n)},t.prototype._saveState=function(){var e=JSON.stringify(this._strategy),t=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,e,t)},t=w([C(0,f["a"]),C(1,_["a"])],t),t}(s["a"]),D=Object(v["c"])("ISuggestMemories");Object(b["b"])(D,N,!0);var k,I=n("dff7"),E=n("9e74"),M=n("4fc3"),T=n("4153"),P=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},R=function(e,t){return function(n,i){t(n,i,e)}},A=function(){function e(t,n){this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(n)}return e.prototype.dispose=function(){this.reset()},e.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(s["f"])(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},e.prototype.set=function(t,n){var i=this,o=t.model,r=t.index;if(0!==o.items.length){var s=e._moveIndex(!0,o,r);s!==r?(this._acceptNext=n,this._model=o,this._index=r,this._listener=this._editor.onDidChangeCursorPosition(function(){i._ignore||i.reset()}),this._ckOtherSuggestions.set(!0)):this.reset()}else this.reset()},e._moveIndex=function(e,t,n){var i=n;while(1){if(i=(i+t.items.length+(e?1:-1))%t.items.length,i===n)break;if(!t.items[i].completion.additionalTextEdits)break}return i},e.prototype.next=function(){this._move(!0)},e.prototype.prev=function(){this._move(!1)},e.prototype._move=function(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},e.OtherSuggestions=new M["d"]("hasOtherSuggestions",!1),e=P([R(1,M["c"])],e),e}(),F=n("308f"),j=n("8025"),W=n("7e93"),V=n("fd49"),B=n("3742"),H=(function(){function e(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}(),function(){function e(t,n,i,o,r){void 0===r&&(r=V["a"].contribInfo.suggest),this._snippetCompareFn=e._compareCompletionItems,this._items=t,this._column=n,this._wordDistance=o,this._options=r,this._refilterKind=1,this._lineContext=i,"top"===r.snippets?this._snippetCompareFn=e._compareCompletionItemsSnippetsUp:"bottom"===r.snippets&&(this._snippetCompareFn=e._compareCompletionItemsSnippetsDown)}return Object.defineProperty(e.prototype,"lineContext",{get:function(){return this._lineContext},set:function(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),e.prototype.adopt=function(e){for(var t=new Array,n=0;n<this._items.length;)e.has(this._items[n].provider)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t},Object.defineProperty(e.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),e.prototype._ensureCachedState=function(){0!==this._refilterKind&&this._createCachedState()},e.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var e=this._lineContext,t=e.leadingLineContent,n=e.characterCountDelta,i="",o="",r=1===this._refilterKind?this._items:this._filteredItems,s=[],a=!this._options.filterGraceful||r.length>2e3?W["d"]:W["e"],u=0;u<r.length;u++){var l=r[u];l.container.incomplete&&this._isIncomplete.add(l.provider);var c=l.position.column-l.completion.range.startColumn,d=c+n-(l.position.column-this._column);if(i.length!==d&&(i=0===d?"":t.slice(-d),o=i.toLowerCase()),l.word=i,0===d)l.score=W["a"].Default;else{var h=0;while(h<c){var p=i.charCodeAt(h);if(32!==p&&9!==p)break;h+=1}if(h>=d)l.score=W["a"].Default;else if("string"===typeof l.completion.filterText){var f=a(i,o,h,l.completion.filterText,l.filterTextLow,0,!1);if(!f)continue;0===Object(B["e"])(l.completion.filterText,l.completion.label)?l.score=f:(l.score=Object(W["b"])(i,o,h,l.completion.label,l.labelLow,0),l.score[0]=f[0])}else{f=a(i,o,h,l.completion.label,l.labelLow,0,!1);if(!f)continue;l.score=f}}switch(l.idx=u,l.distance=this._wordDistance.distance(l.position,l.completion),s.push(l),this._stats.suggestionCount++,l.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=s.sort(this._snippetCompareFn),this._refilterKind=0},e._compareCompletionItems=function(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0},e._compareCompletionItemsSnippetsDown=function(t,n){if(t.completion.kind!==n.completion.kind){if(25===t.completion.kind)return 1;if(25===n.completion.kind)return-1}return e._compareCompletionItems(t,n)},e._compareCompletionItemsSnippetsUp=function(t,n){if(t.completion.kind!==n.completion.kind){if(25===t.completion.kind)return-1;if(25===n.completion.kind)return 1}return e._compareCompletionItems(t,n)},e}()),z=n("2504"),U=n("67b4"),K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(){function e(){}return e.create=function(t,n){if(!n.getConfiguration().contribInfo.suggest.localityBonus)return Promise.resolve(e.None);if(!n.hasModel())return Promise.resolve(e.None);var i=n.getModel(),r=n.getPosition();return t.canComputeWordRanges(i.uri)?(new U["a"]).provideSelectionRanges(i,[r]).then(function(s){return s&&0!==s.length&&0!==s[0].length?t.computeWordRanges(i.uri,s[0][0].range).then(function(t){return new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return K(i,e),i.prototype.distance=function(e,i){if(!t||!r.equals(n.getPosition()))return 0;if(17===i.kind)return 2<<20;var a=i.label,u=t[a];if(Object(o["m"])(u))return 2<<20;for(var c=Object(o["c"])(u,l["a"].fromPositions(e),l["a"].compareRangesUsingStarts),d=c>=0?u[c]:u[Math.max(0,~c-1)],h=s.length,p=0,f=s[0];p<f.length;p++){var g=f[p];if(!l["a"].containsRange(g.range,d))break;h-=1}return h},i}(e))}):e.None}):Promise.resolve(e.None)},e.None=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.distance=function(){return 0},t}(e)),e}(),G=function(){function e(e,t,n,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=i}return e.shouldAutoTrigger=function(e){if(!e.hasModel())return!1;var t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&(i.endColumn===n.column&&!!isNaN(Number(i.word)))},e}(),Z=function(){function e(e,t){var n=this;this._editor=e,this._editorWorker=t,this._toDispose=new s["b"],this._quickSuggestDelay=10,this._triggerQuickSuggest=new m["e"],this._state=0,this._completionDisposables=new s["b"],this._onDidCancel=new F["a"],this._onDidTrigger=new F["a"],this._onDidSuggest=new F["a"],this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new j["a"](1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(function(){n._updateTriggerCharacters(),n.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(function(){n._updateTriggerCharacters(),n.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(function(){n._updateTriggerCharacters(),n._updateQuickSuggest()})),this._toDispose.add(g["d"].onDidChange(function(){n._updateTriggerCharacters(),n._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(function(e){n._onCursorChange(e)}));var i=!1;this._toDispose.add(this._editor.onCompositionStart(function(){i=!0})),this._toDispose.add(this._editor.onCompositionEnd(function(){i=!1,n._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(function(){i||n._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return e.prototype.dispose=function(){Object(s["f"])(this._triggerCharacterListener),Object(s["f"])([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},e.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getConfiguration().contribInfo.quickSuggestionsDelay,(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},e.prototype._updateTriggerCharacters=function(){var e=this;if(Object(s["f"])(this._triggerCharacterListener),!this._editor.getConfiguration().readOnly&&this._editor.hasModel()&&this._editor.getConfiguration().contribInfo.suggestOnTriggerCharacters){for(var t=Object.create(null),n=0,i=g["d"].all(this._editor.getModel());n<i.length;n++)for(var o=i[n],r=0,a=o.triggerCharacters||[];r<a.length;r++){var u=a[r],l=t[u];l||(l=t[u]=new Set,l.add(Object(T["c"])())),l.add(o)}this._triggerCharacterListener=this._editor.onDidType(function(n){var i=n.charAt(n.length-1),o=t[i];if(o){var r=e._completionModel?e._completionModel.adopt(o):void 0;e.trigger({auto:!0,shy:!1,triggerCharacter:i},Boolean(e._completionModel),o,r)}})}},Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){void 0===e&&(e=!1),0!==this._state&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))},e.prototype.clear=function(){this._completionDisposables.clear()},e.prototype._updateActiveSuggestSession=function(){0!==this._state&&(this._editor.hasModel()&&g["d"].has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())},e.prototype._onCursorChange=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getModel(),i=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)0!==this._state&&this.cancel();else if(g["d"].has(n)&&0===this._state){if(!1===this._editor.getConfiguration().contribInfo.quickSuggestions)return;if(!i.containsRange(this._currentSelection)&&!i.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getConfiguration().contribInfo.suggest.snippetsPreventQuickSuggestions&&d["SnippetController2"].get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(0===t._state&&G.shouldAutoTrigger(t._editor)&&t._editor.hasModel()){var e=t._editor.getModel(),n=t._editor.getPosition(),i=t._editor.getConfiguration().contribInfo.quickSuggestions;if(!1!==i){if(!0===i);else{e.tokenizeIfCheap(n.lineNumber);var o=e.getLineTokens(n.lineNumber),r=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(n.column-1-1,0))),s=i.other&&0===r||i.comments&&1===r||i.strings&&2===r;if(!s)return}t.trigger({auto:!0,shy:!1})}}},this._quickSuggestDelay)}}},e.prototype._refilterCompletionItems=function(){var e=this;Promise.resolve().then(function(){if(0!==e._state&&e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getPosition(),i=new G(t,n,2===e._state,!1);e._onNewContext(i)}})},e.prototype.trigger=function(e,t,n,i){var a=this;if(void 0===t&&(t=!1),this._editor.hasModel()){var u,l=this._editor.getModel(),c=e.auto,d=new G(l,this._editor.getPosition(),c,e.shy);this.cancel(t),this._state=c?2:1,this._onDidTrigger.fire({auto:c,shy:e.shy,position:this._editor.getPosition()}),this._context=d,u=e.triggerCharacter?{triggerKind:1,triggerCharacter:e.triggerCharacter}:n&&n.size>0?{triggerKind:2}:{triggerKind:0},this._requestToken=new z["b"];var h=this._editor.getConfiguration().contribInfo,p=new Set,f=1;switch(h.suggest.snippets){case"top":f=0;break;case"bottom":f=2;break;case"none":p.add(25);break}for(var m in h.suggest.filteredTypes){var v=Object(g["A"])(m,!0);"undefined"!==typeof v&&!1===h.suggest.filteredTypes[m]&&p.add(v)}var _=q.create(this._editorWorker,this._editor),b=Object(T["e"])(l,this._editor.getPosition(),new T["a"](f,p,n),u,this._requestToken.token);Promise.all([b,_]).then(function(t){var n=t[0],r=t[1];if(Object(s["f"])(a._requestToken),0!==a._state&&a._editor.hasModel()){var u=a._editor.getModel();if(Object(o["n"])(i)){var l=Object(T["d"])(f);n=n.concat(i).sort(l)}var d=new G(u,a._editor.getPosition(),c,e.shy);a._completionModel=new H(n,a._context.column,{leadingLineContent:d.leadingLineContent,characterCountDelta:d.column-a._context.column},r,a._editor.getConfiguration().contribInfo.suggest);for(var h=0,p=n;h<p.length;h++){var g=p[h];Object(s["g"])(g.container)&&a._completionDisposables.add(g.container)}a._onNewContext(d)}}).catch(r["e"])}},e.prototype._onNewContext=function(e){if(this._context)if(e.lineNumber===this._context.lineNumber){if(e.leadingWord.startColumn<this._context.leadingWord.startColumn)this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();else if(this._completionModel)if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){var t=this._completionModel.incomplete,n=this._completionModel.adopt(t);this.trigger({auto:2===this._state,shy:!1},!0,t,n)}else{var i=this._completionModel.lineContext,o=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(G.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=i,o=this._completionModel.items.length>0,o&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:o})}}else this.cancel()},e}(),Y=(n("0829"),n("11f7")),X=n("72a7"),$=n("1898"),Q=n("6dec"),J=n("5d75"),ee=n("a6d7"),te=n("b7d0"),ne=n("303e"),ie=n("dea0"),oe=n("5818"),re=n("5bd7"),se=n("c4e3"),ae=n("b589"),ue=n("82c9"),le=n("32a4");function ce(e,t,n,i){var o=i===k.ROOT_FOLDER?["rootfolder-icon"]:i===k.FOLDER?["folder-icon"]:["file-icon"];if(n){var r;if(n.scheme===ae["b"].data){var s=ue["a"].parseMetaData(n);r=s.get(ue["a"].META_DATA_LABEL)}else r=he(Object(ue["c"])(n).toLowerCase());if(i===k.FOLDER)o.push(r+"-name-folder-icon");else{if(r){o.push(r+"-name-file-icon");for(var a=r.split("."),u=1;u<a.length;u++)o.push(a.slice(u).join(".")+"-ext-file-icon");o.push("ext-file-icon")}var l=de(e,t,n);l&&o.push(he(l)+"-lang-file-icon")}}return o}function de(e,t,n){if(!n)return null;var i=null;if(n.scheme===ae["b"].data){var o=ue["a"].parseMetaData(n),r=o.get(ue["a"].META_DATA_MIME);r&&(i=t.getModeId(r))}else{var s=e.getModel(n);s&&(i=s.getModeId())}return i&&i!==le["c"]?i:t.getModeIdByFilepathOrFirstLine(n)}function he(e){return e.replace(/\s/g,"\\$&")}(function(e){e[e["FILE"]=0]="FILE",e[e["FOLDER"]=1]="FOLDER",e[e["ROOT_FOLDER"]=2]="ROOT_FOLDER"})(k||(k={}));var pe=n("1b69"),fe=n("6d8e"),ge=n("78bc"),me=function(){return me=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},me.apply(this,arguments)},ve=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},_e=function(e,t){return function(n,i){t(n,i,e)}},be=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},ye=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},we=!1,Ce=Object(ne["Kb"])("editorSuggestWidget.background",{dark:ne["N"],light:ne["N"],hc:ne["N"]},I["a"]("editorSuggestWidgetBackground","Background color of the suggest widget.")),Se=Object(ne["Kb"])("editorSuggestWidget.border",{dark:ne["O"],light:ne["O"],hc:ne["O"]},I["a"]("editorSuggestWidgetBorder","Border color of the suggest widget.")),Le=Object(ne["Kb"])("editorSuggestWidget.foreground",{dark:ne["x"],light:ne["x"],hc:ne["x"]},I["a"]("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),Oe=Object(ne["Kb"])("editorSuggestWidget.selectedBackground",{dark:ne["ob"],light:ne["ob"],hc:ne["ob"]},I["a"]("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),xe=Object(ne["Kb"])("editorSuggestWidget.highlightForeground",{dark:ne["qb"],light:ne["qb"],hc:ne["qb"]},I["a"]("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Ne=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function De(e,t){return e.completion.label.match(Ne)?(t[0]=e.completion.label,!0):!("string"!==typeof e.completion.documentation||!e.completion.documentation.match(Ne))&&(t[0]=e.completion.documentation,!0)}function ke(e){if(!e)return!1;var t=e.completion;return!!t.documentation||t.detail&&t.detail!==t.label}var Ie=function(){function e(e,t,n,i,o,r){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n,this._modelService=i,this._modeService=o,this._themeService=r}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this,n=Object.create(null);n.disposables=new s["b"],n.root=e,Object(Y["f"])(n.root,"show-file-icons"),n.icon=Object(Y["m"])(e,Object(Y["a"])(".icon")),n.colorspan=Object(Y["m"])(n.icon,Object(Y["a"])("span.colorspan"));var i=Object(Y["m"])(e,Object(Y["a"])(".contents")),o=Object(Y["m"])(i,Object(Y["a"])(".main"));n.iconLabel=new se["a"](o,{supportHighlights:!0,supportOcticons:!0}),n.disposables.add(n.iconLabel),n.typeLabel=Object(Y["m"])(o,Object(Y["a"])("span.type-label")),n.readMore=Object(Y["m"])(o,Object(Y["a"])("span.readMore")),n.readMore.title=I["a"]("readMore","Read More...{0}",this.triggerKeybindingLabel);var r=function(){var e=t.editor.getConfiguration(),i=e.fontInfo.fontFamily,r=e.contribInfo.suggestFontSize||e.fontInfo.fontSize,s=e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight,a=e.fontInfo.fontWeight,u=r+"px",l=s+"px";n.root.style.fontSize=u,n.root.style.fontWeight=a,o.style.fontFamily=i,o.style.lineHeight=l,n.icon.style.height=l,n.icon.style.width=l,n.readMore.style.height=l,n.readMore.style.width=l};return r(),n.disposables.add(F["b"].chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo||e.contribInfo}).on(r,null)),n},e.prototype.renderElement=function(e,t,n){var i=this,r=n,s=e.completion;r.icon.className="icon "+Object(g["B"])(s.kind),r.colorspan.style.backgroundColor="";var a={labelEscapeNewLines:!0,matches:Object(W["c"])(e.score)},u=[];19===s.kind&&De(e,u)?(r.icon.className="icon customcolor",r.colorspan.style.backgroundColor=u[0]):20===s.kind&&this._themeService.getIconTheme().hasFileIcons?(r.icon.className="icon hide",a.extraClasses=Object(o["k"])([ce(this._modelService,this._modeService,fe["a"].from({scheme:"fake",path:s.label}),k.FILE),ce(this._modelService,this._modeService,fe["a"].from({scheme:"fake",path:s.detail}),k.FILE)])):23===s.kind&&this._themeService.getIconTheme().hasFolderIcons?(r.icon.className="icon hide",a.extraClasses=Object(o["k"])([ce(this._modelService,this._modeService,fe["a"].from({scheme:"fake",path:s.label}),k.FOLDER),ce(this._modelService,this._modeService,fe["a"].from({scheme:"fake",path:s.detail}),k.FOLDER)])):(r.icon.className="icon hide",a.extraClasses=["suggest-icon "+Object(g["B"])(s.kind)]),s.tags&&s.tags.indexOf(1)>=0&&(a.extraClasses=(a.extraClasses||[]).concat(["deprecated"]),a.matches=[]),r.iconLabel.setLabel(s.label,void 0,a),r.typeLabel.textContent=(s.detail||"").replace(/\n.*$/m,""),ke(e)?(Object(Y["Q"])(r.readMore),r.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},r.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),i.widget.toggleDetails()}):(Object(Y["D"])(r.readMore),r.readMore.onmousedown=null,r.readMore.onclick=null)},e.prototype.disposeTemplate=function(e){e.disposables.dispose()},e=ve([_e(3,pe["a"]),_e(4,oe["a"]),_e(5,te["c"])],e),e}(),Ee=function(){function e(e,t,n,i,o){var r=this;this.widget=t,this.editor=n,this.markdownRenderer=i,this.triggerKeybindingLabel=o,this.borderWidth=1,this.disposables=new s["b"],this.el=Object(Y["m"])(e,Object(Y["a"])(".details")),this.disposables.add(Object(s["h"])(function(){return e.removeChild(r.el)})),this.body=Object(Y["a"])(".body"),this.scrollbar=new $["a"](this.body,{}),Object(Y["m"])(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(Y["m"])(this.body,Object(Y["a"])(".header")),this.close=Object(Y["m"])(this.header,Object(Y["a"])("span.close")),this.close.title=I["a"]("readLess","Read less...{0}",this.triggerKeybindingLabel),this.type=Object(Y["m"])(this.header,Object(Y["a"])("p.type")),this.docs=Object(Y["m"])(this.body,Object(Y["a"])("p.docs")),this.ariaLabel=null,this.configureFont(),F["b"].chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo}).on(this.configureFont,this,this.disposables),i.onDidRenderCodeBlock(function(){return r.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),e.prototype.renderLoading=function(){this.type.textContent=I["a"]("loading","Loading..."),this.docs.textContent=""},e.prototype.renderItem=function(e,t){var n=this;this.renderDisposeable=Object(s["f"])(this.renderDisposeable);var i=e.completion,o=i.documentation,r=i.detail;if(t){var a="";a+="score: "+e.score[0]+(e.word?", compared '"+(e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label)+"' with '"+e.word+"'":" (no prefix)")+"\n",a+="distance: "+e.distance+", see localityBonus-setting\n",a+="index: "+e.idx+", based on "+(e.completion.sortText&&'sortText: "'+e.completion.sortText+'"'||"label")+"\n",o=(new ge["a"]).appendCodeblock("empty",a),r="Provider: "+e.provider._debugDisplayName}if(!t&&!ke(e))return this.type.textContent="",this.docs.textContent="",Object(Y["f"])(this.el,"no-docs"),void(this.ariaLabel=null);if(Object(Y["I"])(this.el,"no-docs"),"string"===typeof o)Object(Y["I"])(this.docs,"markdown-docs"),this.docs.textContent=o;else{Object(Y["f"])(this.docs,"markdown-docs"),this.docs.innerHTML="";var u=this.markdownRenderer.render(o);this.renderDisposeable=u,this.docs.appendChild(u.element)}r?(this.type.innerText=r,Object(Y["Q"])(this.type)):(this.type.innerText="",Object(Y["D"])(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.close.onmousedown=function(e){e.preventDefault(),e.stopPropagation()},this.close.onclick=function(e){e.preventDefault(),e.stopPropagation(),n.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode(),this.ariaLabel=B["r"]("{0}{1}",r||"",o?"string"===typeof o?o:o.value:"")},e.prototype.getAriaLabel=function(){return this.ariaLabel},e.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e},e.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e},e.prototype.scrollTop=function(){this.body.scrollTop=0},e.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},e.prototype.pageDown=function(){this.scrollDown(80)},e.prototype.pageUp=function(){this.scrollUp(80)},e.prototype.setBorderWidth=function(e){this.borderWidth=e},e.prototype.configureFont=function(){var e=this.editor.getConfiguration(),t=e.fontInfo.fontFamily,n=e.contribInfo.suggestFontSize||e.fontInfo.fontSize,i=e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight,o=e.fontInfo.fontWeight,r=n+"px",s=i+"px";this.el.style.fontSize=r,this.el.style.fontWeight=o,this.type.style.fontFamily=t,this.close.style.height=s,this.close.style.width=s},e.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(s["f"])(this.renderDisposeable)},e}(),Me=function(){function e(e,t,n,i,o,r,a,u,l){var c=this;this.editor=e,this.telemetryService=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.state=null,this.isAuto=!1,this.loadingTimeout=s["a"].None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new m["e"],this.toDispose=new s["b"],this.onDidSelectEmitter=new F["a"],this.onDidFocusEmitter=new F["a"],this.onDidHideEmitter=new F["a"],this.onDidShowEmitter=new F["a"],this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._lastAriaAlertLabel=null;var d=r.lookupKeybinding("editor.action.triggerSuggest"),h=d?" ("+d.getLabel()+")":"",p=this.toDispose.add(new ie["a"](e,a,u));this.isAuto=!1,this.focusedItem=null,this.storageService=o,this.element=Object(Y["a"])(".editor-widget.suggest-widget"),this.toDispose.add(Object(Y["h"])(this.element,"click",function(e){e.target===c.element&&c.hideWidget()})),this.messageElement=Object(Y["m"])(this.element,Object(Y["a"])(".message")),this.listElement=Object(Y["m"])(this.element,Object(Y["a"])(".tree")),this.details=l.createInstance(Ee,this.element,this,this.editor,p,h);var f=function(){return Object(Y["R"])(c.element,"no-icons",!c.editor.getConfiguration().contribInfo.suggest.showIcons)};f();var g=l.createInstance(Ie,this,this.editor,h);this.list=new X["b"](this.listElement,this,[g],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1}),this.toDispose.add(Object(ee["b"])(this.list,i,{listInactiveFocusBackground:Oe,listInactiveFocusOutline:ne["b"]})),this.toDispose.add(i.onThemeChange(function(e){return c.onThemeChange(e)})),this.toDispose.add(e.onDidLayoutChange(function(){return c.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(e){return c.onListMouseDown(e)})),this.toDispose.add(this.list.onSelectionChange(function(e){return c.onListSelection(e)})),this.toDispose.add(this.list.onFocusChange(function(e){return c.onListFocus(e)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return c.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(e){return e.contribInfo&&f()})),this.suggestWidgetVisible=T["b"].Visible.bindTo(n),this.suggestWidgetMultipleSuggestions=T["b"].MultipleSuggestions.bindTo(n),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(i.getTheme())}return e.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this)},e.prototype.onEditorLayoutChange=function(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()},e.prototype.onListMouseDown=function(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))},e.prototype.onListSelection=function(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])},e.prototype.select=function(e,t){var n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())},e.prototype._getSuggestionAriaAlertLabel=function(e){return this.expandDocsSettingFromStorage()?I["a"]("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",e.completion.label,this.details.getAriaLabel()):e.completion.label},e.prototype._ariaAlert=function(e){this._lastAriaAlertLabel!==e&&(this._lastAriaAlertLabel=e,this._lastAriaAlertLabel&&Object(i["a"])(this._lastAriaAlertLabel,!0))},e.prototype.onThemeChange=function(e){var t=e.getColor(Ce);t&&(this.listElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());var n=e.getColor(Se);n&&(this.listElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());var i=e.getColor(ne["S"]);i&&(this.detailsFocusBorderColor=i.toString()),this.details.setBorderWidth("hc"===e.type?2:1)},e.prototype.onListFocus=function(e){var t=this;if(!this.ignoreFocusEvents){if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this._ariaAlert(null);if(this.completionModel){var n=e.elements[0],i=e.indexes[0];this.firstFocusInCurrentList=!this.focusedItem,n!==this.focusedItem&&(this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=n,this.list.reveal(i),this.currentSuggestionDetails=Object(m["f"])(function(e){return be(t,void 0,void 0,function(){var t,i,o=this;return ye(this,function(r){switch(r.label){case 0:return t=Object(m["g"])(function(){return o.showDetails(!0)},250),e.onCancellationRequested(function(){return t.dispose()}),[4,n.resolve(e)];case 1:return i=r.sent(),t.dispose(),[2,i]}})})}),this.currentSuggestionDetails.then(function(){i>=t.list.length||n!==t.list.element(i)||(t.ignoreFocusEvents=!0,t.list.splice(i,1,[n]),t.list.setFocus([i]),t.ignoreFocusEvents=!1,t.expandDocsSettingFromStorage()?t.showDetails(!1):Object(Y["I"])(t.element,"docs-side"),t._ariaAlert(t._getSuggestionAriaAlertLabel(n)))}).catch(r["e"])),this.onDidFocusEmitter.fire({item:n,index:i,model:this.completionModel})}}},e.prototype.setState=function(t){if(this.element){var n=this.state!==t;switch(this.state=t,Object(Y["R"])(this.element,"frozen",4===t),t){case 0:Object(Y["D"])(this.messageElement,this.details.element,this.listElement),this.hide(),this.listHeight=0,n&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=e.LOADING_MESSAGE,Object(Y["D"])(this.listElement,this.details.element),Object(Y["Q"])(this.messageElement),Object(Y["I"])(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,Object(Y["D"])(this.listElement,this.details.element),Object(Y["Q"])(this.messageElement),Object(Y["I"])(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(Y["D"])(this.messageElement),Object(Y["Q"])(this.listElement),this.show();break;case 4:Object(Y["D"])(this.messageElement),Object(Y["Q"])(this.listElement),this.show();break;case 5:Object(Y["D"])(this.messageElement),Object(Y["Q"])(this.details.element,this.listElement),this.show(),this._ariaAlert(this.details.getAriaLabel());break}}},e.prototype.showTriggered=function(e,t){var n=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=Object(m["g"])(function(){return n.setState(1)},t)))},e.prototype.showSuggestions=function(e,t,n,i){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==e&&(this.completionModel=e),n&&2!==this.state&&0!==this.state)this.setState(4);else{var o=this.completionModel.items.length,r=0===o;if(this.suggestWidgetMultipleSuggestions.set(o>1),r)i?this.setState(0):this.setState(2),this.completionModel=null;else{if(3!==this.state){var s=this.completionModel.stats;s["wasAutomaticallyTriggered"]=!!i,this.telemetryService.publicLog("suggestWidget",me({},s))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,0),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}},e.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},e.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},e.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},e.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},e.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},e.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},e.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},e.prototype.toggleDetailsFocus=function(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},e.prototype.toggleDetails=function(){if(ke(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(Y["D"])(this.details.element),Object(Y["I"])(this.element,"docs-side"),Object(Y["I"])(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this._ariaAlert(this.details.getAriaLabel()),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},e.prototype.showDetails=function(e){this.expandSideOrBelow(),Object(Y["Q"])(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",e?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},e.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},e.prototype.show=function(){var e=this,t=this.updateListHeight();t!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=t),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(Y["f"])(e.element,"visible"),e.onDidShowEmitter.fire(e)},100)},e.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(Y["I"])(this.element,"visible")},e.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},e.prototype.getPosition=function(){if(0===this.state)return null;var e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.updateListHeight=function(){var e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else{var t=this.list.contentHeight/this.unfocusedHeight,n=this.editor.getConfiguration().contribInfo.suggest.maxVisibleSuggestions;e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.list.layout(e),e},e.prototype.adjustDocsPosition=function(){if(this.editor.hasModel()){var e=this.editor.getConfiguration().fontInfo.lineHeight,t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Object(Y["x"])(this.editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height,r=Object(Y["x"])(this.element),s=r.left,a=r.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<a&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=a,s<i-this.listWidth?Object(Y["f"])(this.element,"list-right"):Object(Y["I"])(this.element,"list-right"),Object(Y["C"])(this.element,"docs-side")&&o-e>a&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}},e.prototype.expandSideOrBelow=function(){if(!ke(this.focusedItem)&&this.firstFocusInCurrentList)return Object(Y["I"])(this.element,"docs-side"),void Object(Y["I"])(this.element,"docs-below");var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(Object(Y["f"])(this.element,"docs-below"),Object(Y["I"])(this.element,"docs-side")):ke(this.focusedItem)&&(Object(Y["f"])(this.element,"docs-side"),Object(Y["I"])(this.element,"docs-below"))},Object.defineProperty(e.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getConfiguration().contribInfo.suggest.maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unfocusedHeight",{get:function(){var e=this.editor.getConfiguration();return e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight},enumerable:!0,configurable:!0}),e.prototype.getHeight=function(e){return this.unfocusedHeight},e.prototype.getTemplateId=function(e){return"suggestion"},e.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,we)},e.prototype.updateExpandDocsSetting=function(e){this.storageService.store("expandSuggestionDocs",e,0)},e.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},e.ID="editor.widget.suggestWidget",e.LOADING_MESSAGE=I["a"]("suggestWidget.loading","Loading..."),e.NO_SUGGESTIONS_MESSAGE=I["a"]("suggestWidget.noSuggestions","No suggestions."),e=ve([_e(1,J["a"]),_e(2,M["c"]),_e(3,te["c"]),_e(4,f["a"]),_e(5,Q["a"]),_e(6,oe["a"]),_e(7,re["a"]),_e(8,v["a"])],e),e}();Object(te["f"])(function(e,t){var n=e.getColor(xe);n&&t.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+n+"; }");var i=e.getColor(Le);i&&t.addRule(".monaco-editor .suggest-widget { color: "+i+"; }");var o=e.getColor(ne["Ub"]);o&&t.addRule(".monaco-editor .suggest-widget a { color: "+o+"; }");var r=e.getColor(ne["Tb"]);r&&t.addRule(".monaco-editor .suggest-widget code { background-color: "+r+"; }")});var Te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pe=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Re=function(e,t){return function(n,i){t(n,i,e)}},Ae=function(e){function t(n,i){var o=e.call(this)||this;return o._editor=n,o._enabled=!1,o._ckAtEnd=t.AtEnd.bindTo(i),o._register(o._editor.onDidChangeConfiguration(function(e){return e.contribInfo&&o._update()})),o._update(),o}return Te(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),Object(s["f"])(this._selectionListener),this._ckAtEnd.reset()},t.prototype._update=function(){var e=this,t="on"===this._editor.getConfiguration().contribInfo.tabCompletion;if(this._enabled!==t)if(this._enabled=t,this._enabled){var n=function(){if(e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getSelection(),i=t.getWordAtPosition(n.getStartPosition());i?e._ckAtEnd.set(i.endColumn===n.getStartPosition().column):e._ckAtEnd.set(!1)}else e._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(n),n()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},t.AtEnd=new M["d"]("atEndOfWord",!1),t=Pe([Re(1,M["c"])],t),t}(s["a"]),Fe=n("a40b"),je=n("ef8e"),We=n("3170"),Ve=function(){function e(e,t,n){var i=this;this._disposables=new s["b"],this._disposables.add(t.onDidShow(function(){return i._onItem(t.getFocusedItem())})),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(function(t){if(i._active){var o=t.charCodeAt(t.length-1);i._active.acceptCharacters.has(o)&&e.getConfiguration().contribInfo.acceptSuggestionOnCommitCharacter&&n(i._active.item)}}))}return e.prototype._onItem=function(e){if(e&&Object(o["n"])(e.item.completion.commitCharacters)){if(!this._active||this._active.item.item!==e.item){for(var t=new We["b"],n=0,i=e.item.completion.commitCharacters;n<i.length;n++){var r=i[n];r.length>0&&t.add(r.charCodeAt(0))}this._active={acceptCharacters:t,item:e}}}else this.reset()},e.prototype.reset=function(){this._active=void 0},e.prototype.dispose=function(){this._disposables.dispose()},e}();n.d(t,"SuggestController",function(){return Ge}),n.d(t,"TriggerSuggestAction",function(){return Ze});var Be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),He=function(){return He=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},He.apply(this,arguments)},ze=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Ue=function(e,t){return function(n,i){t(n,i,e)}},Ke=!1,qe=function(){function e(e,t){this._model=e,this._position=t;var n=e.getLineMaxColumn(t.lineNumber);if(n!==t.column){var i=e.getOffsetAt(t),o=e.getPositionAt(i+1);this._marker=e.deltaDecorations([],[{range:l["a"].fromPositions(t,o),options:{stickiness:1}}])}}return e.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},e.prototype.delta=function(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){var t=this._model.getDecorationRange(this._marker[0]),n=this._model.getOffsetAt(t.getStartPosition());return n-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column},e}(),Ge=function(){function e(e,t,n,i,o,r){var a=this;this._editor=e,this._memoryService=n,this._commandService=i,this._contextKeyService=o,this._instantiationService=r,this._lineSuffix=new s["d"],this._toDispose=new s["b"],this._model=new Z(this._editor,t),this._widget=new m["b"](function(){var e=a._instantiationService.createInstance(Me,a._editor);a._toDispose.add(e),a._toDispose.add(e.onDidSelect(function(e){return a._insertSuggestion(e,!1,!0)},a));var t=new Ve(a._editor,e,function(e){return a._insertSuggestion(e,!1,!0)});a._toDispose.add(t),a._toDispose.add(a._model.onDidSuggest(function(e){0===e.completionModel.items.length&&t.reset()}));var n=T["b"].MakesTextEdit.bindTo(a._contextKeyService);return a._toDispose.add(e.onDidFocus(function(e){var t=e.item,i=a._editor.getPosition(),o=t.completion.range.startColumn,r=i.column,s=!0;if("smart"===a._editor.getConfiguration().contribInfo.acceptSuggestionOnEnter&&2===a._model.state&&!t.completion.command&&!t.completion.additionalTextEdits&&!(4&t.completion.insertTextRules)&&r-o===t.completion.insertText.length){var u=a._editor.getModel().getValueInRange({startLineNumber:i.lineNumber,startColumn:o,endLineNumber:i.lineNumber,endColumn:r});s=u!==t.completion.insertText}n.set(s)})),a._toDispose.add(Object(s["h"])(function(){return n.reset()})),e}),this._alternatives=new m["b"](function(){return a._toDispose.add(new A(a._editor,a._contextKeyService))}),this._toDispose.add(r.createInstance(Ae,e)),this._toDispose.add(this._model.onDidTrigger(function(e){a._widget.getValue().showTriggered(e.auto,e.shy?250:50),a._lineSuffix.value=new qe(a._editor.getModel(),e.position)})),this._toDispose.add(this._model.onDidSuggest(function(e){if(!e.shy){var t=a._memoryService.select(a._editor.getModel(),a._editor.getPosition(),e.completionModel.items);a._widget.getValue().showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}})),this._toDispose.add(this._model.onDidCancel(function(e){e.retrigger||a._widget.getValue().hideWidget()})),this._toDispose.add(this._editor.onDidBlurEditorWidget(function(){Ke||(a._model.cancel(),a._model.clear())}));var u=T["b"].AcceptSuggestionsOnEnter.bindTo(o),l=function(){var e=a._editor.getConfiguration().contribInfo.acceptSuggestionOnEnter;u.set("on"===e||"smart"===e)};this._toDispose.add(this._editor.onDidChangeConfiguration(function(){return l()})),l()}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this._widget.dispose(),this._model.dispose(),this._lineSuffix.dispose()},e.prototype._insertSuggestion=function(e,t,n){var i,o=this;if(!e||!e.item)return this._alternatives.getValue().reset(),this._model.cancel(),void this._model.clear();if(this._editor.hasModel()){var s=this._editor.getModel(),a=s.getAlternativeVersionId(),c=e.item,p=c.completion,f=c.position,g=this._editor.getPosition().column,m=g-f.column;n&&this._editor.pushUndoStop(),Array.isArray(p.additionalTextEdits)&&this._editor.executeEdits("suggestController.additionalTextEdits",p.additionalTextEdits.map(function(e){return u["a"].replace(l["a"].lift(e.range),e.text)})),this._memoryService.memorize(s,this._editor.getPosition(),e.item);var v=p.insertText;4&p.insertTextRules||(v=h["c"].escape(v));var _=f.column-p.range.startColumn,b=p.range.endColumn-f.column,y=this._lineSuffix.value?this._lineSuffix.value.delta(this._editor.getPosition()):0;d["SnippetController2"].get(this._editor).insert(v,{overwriteBefore:_+m,overwriteAfter:b+y,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&p.insertTextRules)}),n&&this._editor.pushUndoStop(),p.command?p.command.id===Ze.id?this._model.trigger({auto:!0,shy:!1},!0):((i=this._commandService).executeCommand.apply(i,[p.command.id].concat(p.command.arguments?p.command.arguments.slice():[])).catch(r["e"]).finally(function(){return o._model.clear()}),this._model.cancel()):(this._model.cancel(),this._model.clear()),t&&this._alternatives.getValue().set(e,function(e){while(s.canUndo()){a!==s.getAlternativeVersionId()&&s.undo(),o._insertSuggestion(e,!1,!1);break}}),this._alertCompletionItem(e.item)}},e.prototype._alertCompletionItem=function(e){var t=e.completion;if(Object(o["n"])(t.additionalTextEdits)){var n=I["a"]("arai.alert.snippet","Accepting '{0}' made {1} additional edits",t.label,t.additionalTextEdits.length);Object(i["a"])(n)}},e.prototype.triggerSuggest=function(e){this._editor.hasModel()&&(this._model.trigger({auto:!1,shy:!1},!1,e),this._editor.revealLine(this._editor.getPosition().lineNumber,0),this._editor.focus())},e.prototype.triggerSuggestAndAcceptBest=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getPosition(),i=function(){n.equals(t._editor.getPosition())&&t._commandService.executeCommand(e.fallback)},o=function(e){if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;var n=t._editor.getPosition(),i=e.completion.range.startColumn,o=n.column;if(o-i!==e.completion.insertText.length)return!0;var r=t._editor.getModel().getValueInRange({startLineNumber:n.lineNumber,startColumn:i,endLineNumber:n.lineNumber,endColumn:o});return r!==e.completion.insertText};F["b"].once(this._model.onDidTrigger)(function(e){var n=[];F["b"].any(t._model.onDidTrigger,t._model.onDidCancel)(function(){Object(s["f"])(n),i()},void 0,n),t._model.onDidSuggest(function(e){var r=e.completionModel;if(Object(s["f"])(n),0!==r.items.length){var a=t._memoryService.select(t._editor.getModel(),t._editor.getPosition(),r.items),u=r.items[a];o(u)?(t._editor.pushUndoStop(),t._insertSuggestion({index:a,item:u,model:r},!0,!1)):i()}else i()},void 0,n)}),this._model.trigger({auto:!1,shy:!0}),this._editor.revealLine(n.lineNumber,0),this._editor.focus()}},e.prototype.acceptSelectedSuggestion=function(e){var t=this._widget.getValue().getFocusedItem();this._insertSuggestion(t,!!e,!0)},e.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},e.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},e.prototype.cancelSuggestWidget=function(){this._model.cancel(),this._model.clear(),this._widget.getValue().hideWidget()},e.prototype.selectNextSuggestion=function(){this._widget.getValue().selectNext()},e.prototype.selectNextPageSuggestion=function(){this._widget.getValue().selectNextPage()},e.prototype.selectLastSuggestion=function(){this._widget.getValue().selectLast()},e.prototype.selectPrevSuggestion=function(){this._widget.getValue().selectPrevious()},e.prototype.selectPrevPageSuggestion=function(){this._widget.getValue().selectPreviousPage()},e.prototype.selectFirstSuggestion=function(){this._widget.getValue().selectFirst()},e.prototype.toggleSuggestionDetails=function(){this._widget.getValue().toggleDetails()},e.prototype.toggleExplainMode=function(){this._widget.getValue().toggleExplainMode()},e.prototype.toggleSuggestionFocus=function(){this._widget.getValue().toggleDetailsFocus()},e.ID="editor.contrib.suggestController",e=ze([Ue(1,Fe["a"]),Ue(2,D),Ue(3,E["b"]),Ue(4,M["c"]),Ue(5,v["a"])],e),e}(),Ze=function(e){function t(){return e.call(this,{id:t.id,label:I["a"]("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:M["a"].and(c["a"].writable,c["a"].hasCompletionItemProvider),kbOpts:{kbExpr:c["a"].textInputFocus,primary:2058,mac:{primary:266},weight:100}})||this}return Be(t,e),t.prototype.run=function(e,t){var n=Ge.get(t);n&&n.triggerSuggest()},t.id="editor.action.triggerSuggest",t}(a["b"]);Object(a["h"])(Ge),Object(a["f"])(Ze);var Ye=190,Xe=a["c"].bindToContribution(Ge.get);Object(a["g"])(new Xe({id:"acceptSelectedSuggestion",precondition:T["b"].Visible,handler:function(e){return e.acceptSelectedSuggestion(!0)},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:2}})),Object(a["g"])(new Xe({id:"acceptSelectedSuggestionOnEnter",precondition:T["b"].Visible,handler:function(e){return e.acceptSelectedSuggestion(!1)},kbOpts:{weight:Ye,kbExpr:M["a"].and(c["a"].textInputFocus,T["b"].AcceptSuggestionsOnEnter,T["b"].MakesTextEdit),primary:3}})),Object(a["g"])(new Xe({id:"hideSuggestWidget",precondition:T["b"].Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:9,secondary:[1033]}})),Object(a["g"])(new Xe({id:"selectNextSuggestion",precondition:M["a"].and(T["b"].Visible,T["b"].MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(a["g"])(new Xe({id:"selectNextPageSuggestion",precondition:M["a"].and(T["b"].Visible,T["b"].MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:12,secondary:[2060]}})),Object(a["g"])(new Xe({id:"selectLastSuggestion",precondition:M["a"].and(T["b"].Visible,T["b"].MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()}})),Object(a["g"])(new Xe({id:"selectPrevSuggestion",precondition:M["a"].and(T["b"].Visible,T["b"].MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(a["g"])(new Xe({id:"selectPrevPageSuggestion",precondition:M["a"].and(T["b"].Visible,T["b"].MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:11,secondary:[2059]}})),Object(a["g"])(new Xe({id:"selectFirstSuggestion",precondition:M["a"].and(T["b"].Visible,T["b"].MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()}})),Object(a["g"])(new Xe({id:"toggleSuggestionDetails",precondition:T["b"].Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:2058,mac:{primary:266}}})),Object(a["g"])(new Xe({id:"toggleExplainMode",precondition:T["b"].Visible,handler:function(e){return e.toggleExplainMode()},kbOpts:{weight:100,primary:2133}})),Object(a["g"])(new Xe({id:"toggleSuggestionFocus",precondition:T["b"].Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:2570,mac:{primary:778}}})),Object(a["g"])(new Xe({id:"insertBestCompletion",precondition:M["a"].and(M["a"].equals("config.editor.tabCompletion","on"),Ae.AtEnd,T["b"].Visible.toNegated(),A.OtherSuggestions.toNegated(),d["SnippetController2"].InSnippetMode.toNegated()),handler:function(e,t){e.triggerSuggestAndAcceptBest(Object(je["h"])(t)?He({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:Ye,primary:2}})),Object(a["g"])(new Xe({id:"insertNextSuggestion",precondition:M["a"].and(M["a"].equals("config.editor.tabCompletion","on"),A.OtherSuggestions,T["b"].Visible.toNegated(),d["SnippetController2"].InSnippetMode.toNegated()),handler:function(e){return e.acceptNextSuggestion()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:2}})),Object(a["g"])(new Xe({id:"insertPrevSuggestion",precondition:M["a"].and(M["a"].equals("config.editor.tabCompletion","on"),A.OtherSuggestions,T["b"].Visible.toNegated(),d["SnippetController2"].InSnippetMode.toNegated()),handler:function(e){return e.acceptPrevSuggestion()},kbOpts:{weight:Ye,kbExpr:c["a"].textInputFocus,primary:1026}}))},"7aad":function(e,t,n){},"7ab3":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i,o=n("3742");i="undefined"!==typeof TextDecoder?function(e){return new r(e)}:function(e){return new s};var r=function(){function e(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return e.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},e.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},e.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},e.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},e.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||o["w"](e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)},e}(),s=function(){function e(){this._pieces=[],this._piecesLen=0}return e.prototype.reset=function(){this._pieces=[],this._piecesLen=0},e.prototype.build=function(){return this._pieces.join("")},e.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},e.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},e.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e},e}()},"7c3e":function(e,t,n){"use strict";n.r(t),n.d(t,"ContextMenuController",function(){return m});var i=n("dff7"),o=n("11f7"),r=n("5aa5"),s=n("a666"),a=n("b2cc"),u=n("c101"),l=n("7e32"),c=n("4fc3"),d=n("533b"),h=n("6dec"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},g=function(e,t){return function(n,i){t(n,i,e)}},m=function(){function e(e,t,n,i,o,r){var a=this;this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=i,this._keybindingService=o,this._menuService=r,this._toDispose=new s["b"],this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(function(e){return a._onContextMenu(e)})),this._toDispose.add(this._editor.onMouseWheel(function(e){a._contextMenuIsBeingShownCount>0&&a._contextViewService.hideContextView()})),this._toDispose.add(this._editor.onKeyDown(function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),a.showContextMenu())}))}return e.get=function(t){return t.getContribution(e.ID)},e.prototype._onContextMenu=function(e){if(this._editor.hasModel()){if(!this._editor.getConfiguration().contribInfo.contextmenu)return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12!==e.target.type&&(e.event.preventDefault(),6===e.target.type||7===e.target.type||1===e.target.type)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);var t=null;1!==e.target.type&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}}},e.prototype.showContextMenu=function(e){if(this._editor.getConfiguration().contribInfo.contextmenu&&this._editor.hasModel())if(this._contextMenuService){var t=this._getMenuActions(this._editor.getModel());t.length>0&&this._doShowContextMenu(t,e)}else this._editor.focus()},e.prototype._getMenuActions=function(e){var t=[],n=this._menuService.createMenu(7,this._contextKeyService),i=n.getActions({arg:e.uri});n.dispose();for(var o=0,s=i;o<s.length;o++){var a=s[o],u=a[1];t.push.apply(t,u),t.push(new r["d"])}return t.pop(),t},e.prototype._doShowContextMenu=function(e,t){var n=this;if(void 0===t&&(t=null),this._editor.hasModel()){var i=this._editor.getConfiguration().contribInfo.hover;if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),a=o["x"](this._editor.getDomNode()),u=a.left+s.left,l=a.top+s.top+s.height;t={x:u,y:l}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return t},getActions:function(){return e},getActionViewItem:function(e){var t=n._keybindingFor(e);if(t)return new r["b"](e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});var i=e;return"function"===typeof i.getActionViewItem?i.getActionViewItem():new r["b"](e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(e){return n._keybindingFor(e)},onHide:function(e){n._contextMenuIsBeingShownCount--,n._editor.focus(),n._editor.updateOptions({hover:i})}})}},e.prototype._keybindingFor=function(e){return this._keybindingService.lookupKeybinding(e.id)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()},e.ID="editor.contrib.contextmenu",e=f([g(1,d["a"]),g(2,d["b"]),g(3,c["c"]),g(4,h["a"]),g(5,l["a"])],e),e}(),v=function(e){function t(){return e.call(this,{id:"editor.action.showContextMenu",label:i["a"]("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:u["a"].textInputFocus,primary:1092,weight:100}})||this}return p(t,e),t.prototype.run=function(e,t){var n=m.get(t);n.showContextMenu()},t}(a["b"]);Object(a["h"])(m),Object(a["f"])(v)},"7de1":function(e,t,n){"use strict";var i=n("aa3d"),o=n("a666"),r=n("a60f"),s=n("11f7"),a=n("308f"),u=n("e32d"),l=n("1898"),c=n("9ee1");function d(e,t){for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i];if(!(e.start>=r.range.end)){if(e.end<r.range.start)break;var s=c["a"].intersect(e,r.range);c["a"].isEmpty(s)||n.push({range:s,size:r.size})}}return n}function h(e,t){var n=e.start,i=e.end;return{start:n+t,end:i+t}}function p(e){for(var t=[],n=null,i=0,o=e;i<o.length;i++){var r=o[i],s=r.range.start,a=r.range.end,u=r.size;n&&u===n.size?n.range.end=a:(n={range:{start:s,end:a},size:u},t.push(n))}return t}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return p(e.reduce(function(e,t){return e.concat(t)},[]))}var g=function(){function e(){this.groups=[],this._size=0}return e.prototype.splice=function(e,t,n){void 0===n&&(n=[]);var i=n.length-t,o=d({start:0,end:e},this.groups),r=d({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(function(e){return{range:h(e.range,i),size:e.size}}),s=n.map(function(t,n){return{range:{start:e+n,end:e+n+1},size:t.size}});this.groups=f(o,s,r),this._size=this.groups.reduce(function(e,t){return e+t.size*(t.range.end-t.range.start)},0)},Object.defineProperty(e.prototype,"count",{get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.indexAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,o=this.groups;i<o.length;i++){var r=o[i],s=r.range.end-r.range.start,a=n+s*r.size;if(e<a)return t+Math.floor((e-n)/r.size);t+=s,n=a}return t},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.count)},e.prototype.positionAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,o=this.groups;i<o.length;i++){var r=o[i],s=r.range.end-r.range.start,a=n+s;if(e<a)return t+(e-n)*r.size;t+=s*r.size,n=a}return-1},e.prototype.dispose=function(){this.groups=null},e}();function m(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(t){}}var v=function(){function e(e){this.renderers=e,this.cache=new Map}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=Object(s["a"])(".monaco-list-row"),i=this.getRenderer(e),o=i.renderTemplate(n);t={domNode:n,templateId:e,templateData:o}}return t},e.prototype.release=function(e){e&&this.releaseRow(e)},e.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(Object(s["I"])(t,"scrolling"),m(t));var i=this.getTemplateCache(n);i.push(e)},e.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},e.prototype.garbageCollect=function(){var e=this;this.renderers&&(this.cache.forEach(function(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i],s=e.getRenderer(n);s.disposeTemplate(r.templateData),r.domNode=null,r.templateData=null}}),this.cache.clear())},e.prototype.dispose=function(){this.garbageCollect(),this.cache.clear(),this.renderers=null},e.prototype.getRenderer=function(e){var t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t},e}(),_=n("30db"),b=n("0f70"),y=n("6424"),w=n("e8e3"),C=n("650e"),S=n("5fe7");n.d(t,"a",function(){return x}),n.d(t,"b",function(){return I});var L=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},O={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},x=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),N=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),D=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,[0,this.types.length].concat(e.types)),e.files){this.files.splice(0,this.files.length);for(var n=0;n<e.files.length;n++){var i=e.files.item(n);i&&(i.size||i.type)&&this.files.push(i)}}},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}();function k(e,t){return Array.isArray(e)&&Array.isArray(t)?Object(w["g"])(e,t):e===t}var I=function(){function e(t,n,c,d){var h=this;if(void 0===d&&(d=O),this.virtualDelegate=n,this.domId="list_id_"+ ++e.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new S["a"](50),this.splicing=!1,this.dragOverAnimationStopDisposable=o["a"].None,this.dragOverMouseY=0,this.canUseTranslate3d=void 0,this.canDrop=!1,this.currentDragFeedbackDisposable=o["a"].None,this.onDragLeaveTimeout=o["a"].None,this._onDidChangeContentHeight=new a["a"],d.horizontalScrolling&&d.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new g;for(var p=0,f=c;p<f.length;p++){var m=f[p];this.renderers.set(m.templateId,m)}this.cache=new v(this.renderers),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",s["f"](this.domNode,this.domId),this.domNode.tabIndex=0,s["R"](this.domNode,"mouse-support","boolean"!==typeof d.mouseSupport||d.mouseSupport),this.horizontalScrolling=Object(i["f"])(d,function(e){return e.horizontalScrolling},O.horizontalScrolling),s["R"](this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight="undefined"===typeof d.additionalScrollHeight?0:d.additionalScrollHeight,this.ariaProvider=d.ariaProvider||{getSetSize:function(e,t,n){return n},getPosInSet:function(e,t){return t+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",r["b"].addTarget(this.rowsContainer),this.scrollableElement=new l["b"](this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(i["f"])(d,function(e){return e.verticalScrollMode},O.verticalScrollMode),useShadows:Object(i["f"])(d,function(e){return e.useShadows},O.useShadows)}),this.domNode.appendChild(this.scrollableElement.getDomNode()),t.appendChild(this.domNode),this.disposables=[this.rangeMap,this.scrollableElement,this.cache],this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(u["a"])(this.rowsContainer,r["a"].Change)(this.onTouchChange,this,this.disposables),Object(u["a"])(this.scrollableElement.getDomNode(),"scroll")(function(e){return e.target.scrollTop=0},null,this.disposables),a["b"].map(Object(u["a"])(this.domNode,"dragover"),function(e){return h.toDragEvent(e)})(this.onDragOver,this,this.disposables),a["b"].map(Object(u["a"])(this.domNode,"drop"),function(e){return h.toDragEvent(e)})(this.onDrop,this,this.disposables),Object(u["a"])(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(u["a"])(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(i["f"])(d,function(e){return e.setRowLineHeight},O.setRowLineHeight),this.supportDynamicHeights=Object(i["f"])(d,function(e){return e.supportDynamicHeights},O.supportDynamicHeights),this.dnd=Object(i["f"])(d,function(e){return e.dnd},O.dnd),this.layout()}return Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){if(void 0===n&&(n=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},e.prototype._splice=function(e,t,n){var i,r=this;void 0===n&&(n=[]);for(var s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),a={start:e,end:e+t},u=c["a"].intersect(s,a),l=u.start;l<u.end;l++)this.removeItemFromDOM(l);var d,p={start:e+t,end:this.items.length},f=c["a"].intersect(p,s),m=c["a"].relativeComplement(p,s),v=n.map(function(e){return{id:String(r.itemId++),element:e,templateId:r.virtualDelegate.getTemplateId(e),size:r.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!r.virtualDelegate.hasDynamicHeight&&r.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:o["a"].None}});0===e&&t>=this.items.length?(this.rangeMap=new g,this.rangeMap.splice(0,0,v),this.items=v,d=[]):(this.rangeMap.splice(e,t,v),d=(i=this.items).splice.apply(i,[e,t].concat(v)));var _=n.length-t,b=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),y=h(f,_),w=c["a"].intersect(b,y);for(l=w.start;l<w.end;l++)this.updateItemInDOM(this.items[l],l);for(var C=c["a"].relativeComplement(y,b),S=0,L=C;S<L.length;S++){var O=L[S];for(l=O.start;l<O.end;l++)this.removeItemFromDOM(l)}for(var x=m.map(function(e){return h(e,_)}),N={start:e,end:e+n.length},D=[N].concat(x).map(function(e){return c["a"].intersect(b,e)}),k=this.getNextToLastElement(D),I=0,E=D;I<E.length;I++)for(O=E[I],l=O.start;l<O.end;l++)this.insertItemInDOM(l,k);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map(function(e){return e.element})},e.prototype.eventuallyUpdateScrollDimensions=function(){var e=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=s["P"](function(){e.scrollableElement.setScrollDimensions({scrollHeight:e.scrollHeight}),e.updateScrollWidth(),e.scrollableElementUpdateDisposable=null}))},e.prototype.eventuallyUpdateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.scrollableElementWidthDelayer.trigger(function(){return e.updateScrollWidth()})},e.prototype.updateScrollWidth=function(){if(this.horizontalScrolling){0===this.items.length&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var e=0,t=0,n=this.items;t<n.length;t++){var i=n[t];"undefined"!==typeof i.width&&(e=Math.max(e,i.width))}this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e+10})}},e.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];n.lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)}},Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeight",{get:function(){var e=this.scrollableElement.getScrollDimensions();return e.height},enumerable:!0,configurable:!0}),e.prototype.element=function(e){return this.items[e].element},e.prototype.domElement=function(e){var t=this.items[e].row;return t&&t.domNode},e.prototype.elementHeight=function(e){return this.items[e].size},e.prototype.elementTop=function(e){return this.rangeMap.positionAt(e)},e.prototype.indexAt=function(e){return this.rangeMap.indexAt(e)},e.prototype.indexAfter=function(e){return this.rangeMap.indexAfter(e)},e.prototype.layout=function(e,t){var n={height:"number"===typeof e?e:s["v"](this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:s["w"](this.domNode)}))},e.prototype.render=function(e,t,n,i){for(var o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),r=this.getRenderRange(e,t),s=c["a"].relativeComplement(r,o),a=c["a"].relativeComplement(o,r),u=this.getNextToLastElement(s),l=0,d=s;l<d.length;l++)for(var h=d[l],p=h.start;p<h.end;p++)this.insertItemInDOM(p,u);for(var f=0,g=a;f<g.length;f++)for(h=g[f],p=h.start;p<h.end;p++)this.removeItemFromDOM(p);var m=!_["g"]&&!b["i"]&&0===b["c"]();if(m){var v="translate3d(-"+n+"px, -"+e+"px, 0px)";this.rowsContainer.style.transform=v,this.rowsContainer.style.webkitTransform=v,m!==this.canUseTranslate3d&&(this.rowsContainer.style.left="0",this.rowsContainer.style.top="0")}else this.rowsContainer.style.left="-"+n+"px",this.rowsContainer.style.top="-"+e+"px",m!==this.canUseTranslate3d&&(this.rowsContainer.style.transform="",this.rowsContainer.style.webkitTransform="");this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(i,this.renderWidth)+"px"),this.canUseTranslate3d=m,this.lastRenderTop=e,this.lastRenderHeight=t},e.prototype.insertItemInDOM=function(e,t){var n=this,i=this.items[e];if(!i.row){i.row=this.cache.alloc(i.templateId);var o=this.ariaProvider.getRole?this.ariaProvider.getRole(i.element):"treeitem";i.row.domNode.setAttribute("role",o);var r=this.ariaProvider.isChecked?this.ariaProvider.isChecked(i.element):void 0;"undefined"!==typeof r&&i.row.domNode.setAttribute("aria-checked",String(r))}i.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(i.row.domNode,t):this.rowsContainer.appendChild(i.row.domNode)),this.updateItemInDOM(i,e);var s=this.renderers.get(i.templateId);if(!s)throw new Error("No renderer found for template id "+i.templateId);s&&s.renderElement(i.element,e,i.row.templateData,i.size);var a=this.dnd.getDragURI(i.element);if(i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a){var l=Object(u["a"])(i.row.domNode,"dragstart");i.dragStartDisposable=l(function(e){return n.onDragStart(i.element,a,e)})}this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())},e.prototype.measureItemWidth=function(e){if(e.row&&e.row.domNode){e.row.domNode.style.width="fit-content",e.width=s["w"](e.row.domNode);var t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}},e.prototype.updateItemInDOM=function(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",e.row.domNode.style.height=e.size+"px",this.setRowLineHeight&&(e.row.domNode.style.lineHeight=e.size+"px"),e.row.domNode.setAttribute("data-index",""+t),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),s["R"](e.row.domNode,"drop-target",e.dropTarget)},e.prototype.removeItemFromDOM=function(e){var t=this.items[e];t.dragStartDisposable.dispose();var n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},e.prototype.getScrollTop=function(){var e=this.scrollableElement.getScrollPosition();return e.scrollTop},e.prototype.setScrollTop=function(e){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e})},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"click"),function(t){return e.toMouseEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"dblclick"),function(t){return e.toMouseEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){var e=this;return a["b"].filter(a["b"].map(Object(u["a"])(this.domNode,"auxclick"),function(t){return e.toMouseEvent(t)}),function(e){return 1===e.browserEvent.button})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"mousedown"),function(t){return e.toMouseEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"contextmenu"),function(t){return e.toMouseEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"touchstart"),function(t){return e.toTouchEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.rowsContainer,r["a"].Tap),function(t){return e.toGestureEvent(t)})},enumerable:!0,configurable:!0}),e.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toDragEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(t){throw console.error("Got bad scroll event:",e),t}},e.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},e.prototype.onDragStart=function(e,t,n){if(n.dataTransfer){var i=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(C["a"].RESOURCES,JSON.stringify([t])),n.dataTransfer.setDragImage){var o=void 0;this.dnd.getDragLabel&&(o=this.dnd.getDragLabel(i)),"undefined"===typeof o&&(o=String(i.length));var r=s["a"](".monaco-drag-image");r.textContent=o,document.body.appendChild(r),n.dataTransfer.setDragImage(r,-10,-10),setTimeout(function(){return document.body.removeChild(r)},0)}this.currentDragData=new x(i),C["c"].CurrentDragAndDropData=new N(i),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}},e.prototype.onDragOver=function(e){var t=this;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),C["c"].CurrentDragAndDropData&&"vscode-ui"===C["c"].CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(C["c"].CurrentDragAndDropData)this.currentDragData=C["c"].CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new D}var n,i=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"===typeof i?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;if(e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof i&&0===i.effect?"copy":"move",n="boolean"!==typeof i&&i.feedback?i.feedback:"undefined"===typeof e.index?[-1]:[e.index],n=Object(w["e"])(n).filter(function(e){return e>=-1&&e<t.length}).sort(),n=-1===n[0]?[-1]:n,0===n.length)throw new Error("Invalid empty feedback list");if(k(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])s["f"](this.domNode,"drop-target"),this.currentDragFeedbackDisposable=Object(o["h"])(function(){return s["I"](t.domNode,"drop-target")});else{for(var r=0,a=n;r<a.length;r++){var u=a[r],l=this.items[u];l.dropTarget=!0,l.row&&l.row.domNode&&s["f"](l.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(o["h"])(function(){for(var e=0,i=n;e<i.length;e++){var o=i[e],r=t.items[o];r.dropTarget=!1,r.row&&r.row.domNode&&s["I"](r.row.domNode,"drop-target")}})}return!0},e.prototype.onDragLeave=function(){var e=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(S["g"])(function(){return e.clearDragOverFeedback()},100)},e.prototype.onDrop=function(e){if(this.canDrop){var t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,C["c"].CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}},e.prototype.onDragEnd=function(){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,C["c"].CurrentDragAndDropData=void 0},e.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=o["a"].None},e.prototype.setupDragAndDropScrollTopAnimation=function(e){var t=this;if(!this.dragOverAnimationDisposable){var n=s["z"](this.domNode).top;this.dragOverAnimationDisposable=s["l"](this.animateDragAndDropScrollTop.bind(this,n))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(S["g"])(function(){t.dragOverAnimationDisposable&&(t.dragOverAnimationDisposable.dispose(),t.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY},e.prototype.animateDragAndDropScrollTop=function(e){if(void 0!==this.dragOverMouseY){var t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>n&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}},e.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},e.prototype.getItemIndexFromEventTarget=function(e){var t=e;while(t instanceof HTMLElement&&t!==this.rowsContainer){var n=t.getAttribute("data-index");if(n){var i=Number(n);if(!isNaN(i))return i}t=t.parentElement}},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},e.prototype._rerender=function(e,t){var n,i,o=this.getRenderRange(e,t);e===this.elementTop(o.start)?(n=o.start,i=0):o.end-o.start>1&&(n=o.start+1,i=this.elementTop(n)-e);var r=0;while(1){for(var s=this.getRenderRange(e,t),a=!1,u=s.start;u<s.end;u++){var l=this.probeDynamicHeight(u);0!==l&&this.rangeMap.splice(u,1,[this.items[u]]),r+=l,a=a||0!==l}if(!a){0!==r&&this.eventuallyUpdateScrollDimensions();for(var d=c["a"].relativeComplement(o,s),h=0,p=d;h<p.length;h++){var f=p[h];for(u=f.start;u<f.end;u++)this.items[u].row&&this.removeItemFromDOM(u)}for(var g=c["a"].relativeComplement(s,o),m=0,v=g;m<v.length;m++)for(f=v[m],u=f.start;u<f.end;u++){var _=u+1,b=_<this.items.length?this.items[_].row:null,y=b?b.domNode:null;this.insertItemInDOM(u,y)}for(u=s.start;u<s.end;u++)this.items[u].row&&this.updateItemInDOM(this.items[u],u);return"number"===typeof n&&(this.scrollTop=this.elementTop(n)-i),void this._onDidChangeContentHeight.fire(this.contentHeight)}}},e.prototype.probeDynamicHeight=function(e){var t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;var n=t.size,i=this.cache.alloc(t.templateId);i.domNode.style.height="",this.rowsContainer.appendChild(i.domNode);var o=this.renderers.get(t.templateId);return o&&(o.renderElement(t.element,e,i.templateData,void 0),o.disposeElement&&o.disposeElement(t.element,e,i.templateData,void 0)),t.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),t.size-n},e.prototype.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null},e.prototype.getElementDomId=function(e){return this.domId+"_"+e},e.prototype.dispose=function(){if(this.items){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];if(n.row){var i=this.renderers.get(n.row.templateId);i&&i.disposeTemplate(n.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.disposables=Object(o["f"])(this.disposables)},e.InstanceCount=0,L([y["a"]],e.prototype,"onMouseClick",null),L([y["a"]],e.prototype,"onMouseDblClick",null),L([y["a"]],e.prototype,"onMouseMiddleClick",null),L([y["a"]],e.prototype,"onMouseDown",null),L([y["a"]],e.prototype,"onContextMenu",null),L([y["a"]],e.prototype,"onTouchStart",null),L([y["a"]],e.prototype,"onTap",null),e}()},"7e32":function(e,t,n){"use strict";n.d(t,"e",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return g}),n.d(t,"b",function(){return m});var i=n("f070"),o=n("0a0f"),r=n("4fc3"),s=n("9e74"),a=n("308f"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},c=function(e,t){return function(n,i){t(n,i,e)}};function d(e){return void 0!==e.command}var h=Object(o["c"])("menuService"),p=new(function(){function e(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new a["a"],this.onDidChangeMenu=this._onDidChangeMenu.event}return e.prototype.addCommand=function(e){var t=this;return this._commands.set(e.id,e),this._onDidChangeMenu.fire(0),{dispose:function(){t._commands.delete(e.id)&&t._onDidChangeMenu.fire(0)}}},e.prototype.getCommand=function(e){return this._commands.get(e)},e.prototype.getCommands=function(){var e=new Map;return this._commands.forEach(function(t,n){return e.set(n,t)}),e},e.prototype.appendMenuItem=function(e,t){var n=this,i=this._menuItems.get(e);return i?i.push(t):(i=[t],this._menuItems.set(e,i)),this._onDidChangeMenu.fire(e),{dispose:function(){var o=i.indexOf(t);o>=0&&(i.splice(o,1),n._onDidChangeMenu.fire(e))}}},e.prototype.getMenuItems=function(e){var t=(this._menuItems.get(e)||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},e.prototype._appendImplicitItems=function(e){for(var t=new Set,n=e.filter(function(e){return d(e)}),i=0,o=n;i<o.length;i++){var r=o[i],s=r.command,a=r.alt;t.add(s.id),a&&t.add(a.id)}this._commands.forEach(function(n,i){t.has(i)||e.push({command:n})})},e}()),f=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o._commandService=i,o}return u(t,e),t.prototype.run=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._commandService).executeCommand.apply(e,[this.id].concat(t))},t=l([c(2,s["b"])],t),t}(i["a"]),g=function(e){function t(t){var n=this;return n="string"===typeof t.title?e.call(this,"",t.title,"submenu")||this:e.call(this,"",t.title.value,"submenu")||this,n.item=t,n}return u(t,e),t}(i["a"]),m=function(e){function t(n,i,o,r,s){var a=this;return a="string"===typeof n.title?e.call(this,n.id,n.title,s)||this:e.call(this,n.id,n.title.value,s)||this,a._cssClass=void 0,a._enabled=!n.precondition||r.contextMatchesRules(n.precondition),a._checked=Boolean(n.toggled&&r.contextMatchesRules(n.toggled)),a._options=o||{},a.item=n,a.alt=i?new t(i,void 0,a._options,r,s):void 0,a}return u(t,e),t.prototype.dispose=function(){this.alt&&this.alt.dispose(),e.prototype.dispose.call(this)},t.prototype.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=[];return this._options.arg&&(i=i.concat([this._options.arg])),this._options.shouldForwardArgs&&(i=i.concat(t)),e.prototype.run.apply(this,i)},t=l([c(3,r["c"]),c(4,s["b"])],t),t}(f)},"7e93":function(e,t,n){"use strict";n.d(t,"g",function(){return s}),n.d(t,"f",function(){return D}),n.d(t,"b",function(){return k}),n.d(t,"c",function(){return I}),n.d(t,"a",function(){return T}),n.d(t,"d",function(){return U}),n.d(t,"e",function(){return Q});var i=n("4035"),o=n("3742");function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var i=0,o=e.length;i<o;i++){var r=e[i](t,n);if(r)return r}return null}}var s=a.bind(void 0,!0);function a(e,t,n){return!n||n.length<t.length?null:(i=e?o["K"](n,t):0===n.indexOf(t),i?t.length>0?[{start:0,end:t.length}]:[]:null);var i}function u(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function l(e,t){return c(e.toLowerCase(),t.toLowerCase(),0,0)}function c(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){var o=null;return(o=c(e,t,n+1,i+1))?v({start:i,end:i+1},o):null}return c(e,t,n,i+1)}function d(e){return 97<=e&&e<=122}function h(e){return 65<=e&&e<=90}function p(e){return 48<=e&&e<=57}function f(e){return 32===e||9===e||10===e||13===e}var g=new Set;function m(e){return d(e)||h(e)||p(e)}function v(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function _(e,t){for(var n=t;n<e.length;n++){var i=e.charCodeAt(n);if(h(i)||p(i)||n>0&&!m(e.charCodeAt(n-1)))return n}return e.length}function b(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var o=null,r=i+1;o=b(e,t,n+1,i+1);while(!o&&(r=_(t,r))<t.length)o=b(e,t,n+1,r),r++;return null===o?null:v({start:i,end:i+1},o)}function y(e){for(var t=0,n=0,i=0,o=0,r=0,s=0;s<e.length;s++)r=e.charCodeAt(s),h(r)&&t++,d(r)&&n++,m(r)&&i++,p(r)&&o++;var a=t/e.length,u=n/e.length,l=i/e.length,c=o/e.length;return{upperPercent:a,lowerPercent:u,alphaPercent:l,numericPercent:c}}function w(e){var t=e.upperPercent,n=e.lowerPercent;return 0===n&&t>.6}function C(e){var t=e.upperPercent,n=e.lowerPercent,i=e.alphaPercent,o=e.numericPercent;return n>.2&&t<.8&&i>.6&&o<.2}function S(e){for(var t=0,n=0,i=0,o=0,r=0;r<e.length;r++)i=e.charCodeAt(r),h(i)&&t++,d(i)&&n++,f(i)&&o++;return 0!==t&&0!==n||0!==o?t<=5:e.length<=30}function L(e,t){if(!t)return null;if(t=t.trim(),0===t.length)return null;if(!S(e))return null;if(t.length>60)return null;var n=y(t);if(!C(n)){if(!w(n))return null;t=t.toLowerCase()}var i=null,o=0;e=e.toLowerCase();while(o<t.length&&null===(i=b(e,t,0,o)))o=_(t,o+1);return i}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(e){return g.add(e.charCodeAt(0))});var O=r(s,L,u),x=r(s,L,l),N=new i["a"](1e4);function D(e,t,n){if(void 0===n&&(n=!1),"string"!==typeof e||"string"!==typeof t)return null;var i=N.get(e);i||(i=new RegExp(o["j"](e),"i"),N.set(e,i));var r=i.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:n?x(e,t):O(e,t)}function k(e,t,n,i,o,r){var s=U(e,t,0,i,o,0,!0);if(s)return s;for(var a=0,u=0,l=r,c=0;c<t.length&&c<E;++c){var d=o.indexOf(t.charAt(c),l);if(d>=0)u+=1,a+=Math.pow(2,d),l=d+1;else if(0!==a)break}return[u,a,r]}function I(e){if("undefined"===typeof e)return[];for(var t=e[1].toString(2),n=e[2],i=[],o=n;o<E;o++)if("1"===t[t.length-(o+1)]){var r=i[i.length-1];r&&r.end===o?r.end=o+1:i.push({start:o,end:o+1})}return i}var E=128;function M(){for(var e=[],t=[0],n=1;n<=E;n++)t.push(-n);for(n=0;n<=E;n++){var i=t.slice(0);i[0]=-n,e.push(i)}return e}var T,P=M(),R=M(),A=M(),F=!1;function j(e,t,n,i,o){function r(e,t,n){void 0===n&&(n=" ");while(e.length<t)e=n+e;return e}for(var s=" | |"+i.split("").map(function(e){return r(e,3)}).join("|")+"\n",a=0;a<=n;a++)s+=0===a?" |":t[a-1]+"|",s+=e[a].slice(0,o+1).map(function(e){return r(e.toString(),3)}).join("|")+"\n";return s}function W(e,t,n,i){e=e.substr(t),n=n.substr(i),console.log(j(P,e,e.length,n,n.length)),console.log(j(A,e,e.length,n,n.length)),console.log(j(R,e,e.length,n,n.length))}function V(e,t){if(t<0||t>=e.length)return!1;var n=e.charCodeAt(t);switch(n){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function B(e,t){if(t<0||t>=e.length)return!1;var n=e.charCodeAt(t);switch(n){case 32:case 9:return!0;default:return!1}}function H(e,t,n){return t[e]!==n[e]}function z(e,t,n,i,o,r){while(t<n&&o<r)e[t]===i[o]&&(t+=1),o+=1;return t===n}function U(e,t,n,i,o,r,s){var a=e.length>E?E:e.length,u=i.length>E?E:i.length;if(!(n>=a||r>=u||a>u)&&z(t,n,a,o,r,u)){var l=1,c=1,d=n,h=r;for(l=1,d=n;d<a;l++,d++)for(c=1,h=r;h<u;c++,h++){var p=K(e,t,d,n,i,o,h);R[l][c]=p;var f=P[l-1][c-1]+(p>1?1:p),g=P[l-1][c]+-1,m=P[l][c-1]+-1;m>=g?m>f?(P[l][c]=m,A[l][c]=4):m===f?(P[l][c]=m,A[l][c]=6):(P[l][c]=f,A[l][c]=2):g>f?(P[l][c]=g,A[l][c]=1):g===f?(P[l][c]=g,A[l][c]=3):(P[l][c]=f,A[l][c]=2)}if(F&&W(e,n,i,r),q=0,Z=-100,Y=r,X=s,$(l-1,c-1,a===u?1:0,0,!1),0!==q)return[Z,G,r]}}function K(e,t,n,i,o,r,s){return t[n]!==r[s]?-1:s===n-i?e[n]===o[s]?7:5:!H(s,o,r)||0!==s&&H(s-1,o,r)?!V(r,s)||0!==s&&V(r,s-1)?V(r,s-1)||B(r,s-1)?5:1:5:e[n]===o[s]?7:5}(function(e){function t(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}e.Default=Object.freeze([-100,0,0]),e.isDefault=t})(T||(T={}));var q=0,G=0,Z=0,Y=0,X=!1;function $(e,t,n,i,o){if(!(q>=10||n<-25)){var r=0;while(e>0&&t>0){var s=R[e][t],a=A[e][t];if(4===a)t-=1,o?n-=5:0!==i&&(n-=1),o=!1,r=0;else{if(!(2&a))return;if(4&a&&$(e,t-1,0!==i?n-1:n,i,o),n+=s,e-=1,t-=1,o=!0,i+=Math.pow(2,t+Y),1===s){if(r+=1,0===e&&!X)return}else n+=1+r*(s-1),r=0}}n-=t>=3?9:3*t,q+=1,n>Z&&(Z=n,G=i)}}function Q(e,t,n,i,o,r,s){return J(e,t,n,i,o,r,!0,s)}function J(e,t,n,i,o,r,s,a){var u=U(e,t,n,i,o,r,a);if(u&&!s)return u;if(e.length>=3)for(var l=Math.min(7,e.length-1),c=n+1;c<l;c++){var d=ee(e,c);if(d){var h=U(d,d.toLowerCase(),n,i,o,r,a);h&&(h[0]-=3,(!u||h[0]>u[0])&&(u=h))}}return u}function ee(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}},8025:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("7061"),o=n("6a89"),r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i,o)||this;return r.selectionStartLineNumber=t,r.selectionStartColumn=n,r.positionLineNumber=i,r.positionColumn=o,r}return r(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new i["a"](this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0},t.isISelection=function(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn},t.createWithDirection=function(e,n,i,o,r){return 0===r?new t(e,n,i,o):new t(i,o,e,n)},t}(o["a"])},8090:function(e,t,n){"use strict";n.r(t);n("133b");var i=n("ceb8"),o=n("a666"),r=n("3742"),s=n("b2cc"),a=n("b707"),u=n("8bf1"),l=n("5818"),c=n("b1ca"),d=n("303e"),h=n("b7d0"),p=n("03d9"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){return function(n,i){t(n,i,e)}},v=function(e){function t(t,n,i){var o=e.call(this)||this;return o._editor=t,o._modeService=i,o._widget=null,o._register(o._editor.onDidChangeModel(function(e){return o.stop()})),o._register(o._editor.onDidChangeModelLanguage(function(e){return o.stop()})),o._register(a["y"].onDidChange(function(e){return o.stop()})),o}return f(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.dispose=function(){this.stop(),e.prototype.dispose.call(this)},t.prototype.launch=function(){this._widget||this._editor.hasModel()&&(this._widget=new w(this._editor,this._modeService))},t.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},t.ID="editor.contrib.inspectTokens",t=g([m(1,c["a"]),m(2,l["a"])],t),t}(o["a"]),_=function(e){function t(){return e.call(this,{id:"editor.action.inspectTokens",label:p["c"].inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}return f(t,e),t.prototype.run=function(e,t){var n=v.get(t);n&&n.launch()},t}(s["b"]);function b(e){for(var t="",n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);switch(o){case 9:t+="→";break;case 32:t+="·";break;case 60:t+="<";break;case 62:t+=">";break;case 38:t+="&";break;default:t+=String.fromCharCode(o)}}return t}function y(e){var t=a["y"].get(e.language);return t||{getInitialState:function(){return u["c"]},tokenize:function(t,n,i){return Object(u["d"])(e.language,t,n,i)},tokenize2:function(t,n,i){return Object(u["e"])(e.id,t,n,i)}}}var w=function(e){function t(t,n){var i=e.call(this)||this;return i.allowEditorOverflow=!0,i._editor=t,i._modeService=n,i._model=i._editor.getModel(),i._domNode=document.createElement("div"),i._domNode.className="tokens-inspect-widget",i._tokenizationSupport=y(i._model.getLanguageIdentifier()),i._compute(i._editor.getPosition()),i._register(i._editor.onDidChangeCursorPosition(function(e){return i._compute(i._editor.getPosition())})),i._editor.addContentWidget(i),i}return f(t,e),t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t._ID},t.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,o=t.tokens1.length-1;o>=0;o--){var s=t.tokens1[o];if(e.column-1>=s.offset){n=o;break}}var a=0;for(o=t.tokens2.length>>>1;o>=0;o--)if(e.column-1>=t.tokens2[o<<1]){a=o;break}var u="",l=this._model.getLineContent(e.lineNumber),c="";if(n<t.tokens1.length){var d=t.tokens1[n].offset,h=n+1<t.tokens1.length?t.tokens1[n+1].offset:l.length;c=l.substring(d,h)}u+='<h2 class="tm-token">'+b(c)+'<span class="tm-token-length">('+c.length+" "+(1===c.length?"char":"chars")+")</span></h2>",u+='<hr class="tokens-inspect-separator" style="clear:both"/>';var p=this._decodeMetadata(t.tokens2[1+(a<<1)]);u+='<table class="tm-metadata-table"><tbody>',u+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+Object(r["o"])(p.languageIdentifier.language)+"</td>",u+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(p.tokenType)+"</td>",u+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(p.fontStyle)+"</td>",u+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+i["a"].Format.CSS.formatHex(p.foreground)+"</td>",u+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+i["a"].Format.CSS.formatHex(p.background)+"</td>",u+="</tbody></table>",u+='<hr class="tokens-inspect-separator"/>',n<t.tokens1.length&&(u+='<span class="tm-token-type">'+Object(r["o"])(t.tokens1[n].type)+"</span>"),this._domNode.innerHTML=u,this._editor.layoutContentWidget(this)},t.prototype._decodeMetadata=function(e){var t=a["y"].getColorMap(),n=a["x"].getLanguageId(e),i=a["x"].getTokenType(e),o=a["x"].getFontStyle(e),r=a["x"].getForeground(e),s=a["x"].getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]}},t.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},t.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},t.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}},t.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;n<e;n++){var i=this._tokenizationSupport.tokenize(this._model.getLineContent(n),t,0);t=i.endState}return t},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},t._ID="editor.contrib.inspectTokensWidget",t}(o["a"]);Object(s["h"])(v),Object(s["f"])(_),Object(h["f"])(function(e,t){var n=e.getColor(d["B"]);if(n){var i=e.type===h["b"]?2:1;t.addRule(".monaco-editor .tokens-inspect-widget { border: "+i+"px solid "+n+"; }"),t.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+n+"; }")}var o=e.getColor(d["A"]);o&&t.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+o+"; }")})},"821d":function(e,t,n){"use strict";n.r(t);n("c4d7");var i=n("dff7"),o=n("5fe7"),r=n("fdcc"),s=n("78bc"),a=n("5818"),u=n("6a89"),l=n("b707"),c=n("b2cc"),d=n("507e"),h=n("a666"),p=n("b78f"),f=n("b7d0"),g=n("303e"),m=n("bc04"),v=n("9f72"),_=n("041a"),b=n("7061"),y=n("ef8e"),w=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){return function(n,i){t(n,i,e)}},S=function(){function e(e,t,n){var i=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=new h["b"],this.decorations=[],this.currentWordUnderMouse=null,this.previousPromise=null,this.editor=e;var o=new _["a"](e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown(function(e){var t=e[0],n=e[1];i.startFindDefinition(t,Object(y["m"])(n))})),this.toUnhook.add(o.onExecute(function(e){i.isEnabled(e)&&i.gotoDefinition(e.target,e.hasSideBySideModifier).then(function(){i.removeDecorations()},function(e){i.removeDecorations(),Object(r["e"])(e)})})),this.toUnhook.add(o.onCancel(function(){i.removeDecorations(),i.currentWordUnderMouse=null}))}return e.prototype.startFindDefinition=function(e,t){var n=this;if(!(9===e.target.type&&this.decorations.length>0)){if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordUnderMouse=null,void this.removeDecorations();var a=e.target.position?this.editor.getModel().getWordAtPosition(e.target.position):null;if(!a)return this.currentWordUnderMouse=null,void this.removeDecorations();var l=e.target.position;if(!this.currentWordUnderMouse||this.currentWordUnderMouse.startColumn!==a.startColumn||this.currentWordUnderMouse.endColumn!==a.endColumn||this.currentWordUnderMouse.word!==a.word){this.currentWordUnderMouse=a;var c=new m["a"](this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(o["f"])(function(t){return n.findDefinition(e.target,t)}),this.previousPromise.then(function(e){if(e&&e.length&&c.validate(n.editor))if(e.length>1)n.addDecoration(new u["a"](l.lineNumber,a.startColumn,l.lineNumber,a.endColumn),(new s["a"]).appendText(i["a"]("multipleResults","Click to show {0} definitions.",e.length)));else{var t=e[0];if(!t.uri)return;n.textModelResolverService.createModelReference(t.uri).then(function(e){if(e.object&&e.object.textEditorModel){var i=e.object.textEditorModel,o=t.range.startLineNumber;if(o<1||o>i.getLineCount())e.dispose();else{var r,c=n.getPreviewValue(i,o,t);r=t.originSelectionRange?u["a"].lift(t.originSelectionRange):new u["a"](l.lineNumber,a.startColumn,l.lineNumber,a.endColumn);var d=n.modeService.getModeIdByFilepathOrFirstLine(i.uri);n.addDecoration(r,(new s["a"]).appendCodeblock(d||"",c)),e.dispose()}}else e.dispose()})}else n.removeDecorations()}).then(void 0,r["e"])}}},e.prototype.getPreviewValue=function(t,n,i){var o=i.targetSelectionRange?i.range:this.getPreviewRangeBasedOnBrackets(t,n),r=o.endLineNumber-o.startLineNumber;r>=e.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(t,n));var s=this.stripIndentationFromPreviewRange(t,n,o);return s},e.prototype.stripIndentationFromPreviewRange=function(e,t,n){for(var i=e.getLineFirstNonWhitespaceColumn(t),o=i,r=t+1;r<n.endLineNumber;r++){var s=e.getLineFirstNonWhitespaceColumn(r);o=Math.min(o,s)}var a=e.getValueInRange(n).replace(new RegExp("^\\s{"+(o-1)+"}","gm"),"").trim();return a},e.prototype.getPreviewRangeBasedOnIndentation=function(t,n){for(var i=t.getLineFirstNonWhitespaceColumn(n),o=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),r=n+1;r<o;r++){var s=t.getLineFirstNonWhitespaceColumn(r);if(i===s)break}return new u["a"](n,1,r+1,1)},e.prototype.getPreviewRangeBasedOnBrackets=function(t,n){var i=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),o=[],r=!0,s=t.findNextBracket(new b["a"](n,1));while(null!==s){if(0===o.length)o.push(s);else{var a=o[o.length-1];if(a.open===s.open&&a.isOpen&&!s.isOpen?o.pop():o.push(s),0===o.length){if(!r)return new u["a"](n,1,s.range.endLineNumber+1,1);r=!1}}var l=t.getLineMaxColumn(n),c=s.range.endLineNumber,d=s.range.endColumn;if(l===s.range.endColumn&&(c++,d=1),c>i)return new u["a"](n,1,i+1,1);s=t.findNextBracket(new b["a"](c,d))}return new u["a"](n,1,i+1,1)},e.prototype.addDecoration=function(e,t){var n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.decorations=this.editor.deltaDecorations(this.decorations,[n])},e.prototype.removeDecorations=function(){this.decorations.length>0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]))},e.prototype.isEnabled=function(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&l["f"].has(this.editor.getModel())},e.prototype.findDefinition=function(e,t){var n=this.editor.getModel();return n?Object(d["b"])(n,e.position,t):Promise.resolve(null)},e.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e.position);var i=new v["DefinitionAction"](new v["DefinitionActionConfig"](t,!1,!0,!1),{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(e){return i.run(e,n.editor)})},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.toUnhook.dispose()},e.ID="editor.contrib.gotodefinitionwithmouse",e.MAX_SOURCE_PREVIEW_LINES=8,e=w([C(1,p["a"]),C(2,a["a"])],e),e}();Object(c["h"])(S),Object(f["f"])(function(e,t){var n=e.getColor(g["n"]);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")})},"82c9":function(e,t,n){"use strict";n.d(t,"c",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return g}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return v}),n.d(t,"h",function(){return b}),n.d(t,"a",function(){return i});var i,o=n("3d37"),r=n("32b8"),s=n("6d8e"),a=n("3742"),u=n("b589"),l=n("30db");function c(e){return!e||e.scheme!==u["b"].file||!l["c"]}function d(e){return f(e)||e.authority}function h(e,t){return e===t||Object(a["n"])(e,t)}function p(e,t,n){if(void 0===n&&(n=c(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!h(e.authority,t.authority))return!1;var i=e.path||"/",o=t.path||"/";return i===o||n&&Object(a["n"])(i||"/",o||"/")}function f(e){return r["posix"].basename(e.path)}function g(e){if(0===e.path.length)return e;if(e.scheme===u["b"].file)return s["a"].file(r["dirname"](_(e)));var t=r["posix"].dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error('dirname("'+e.toString+")) resulted in a relative path"),t="/"),e.with({path:t})}function m(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n=e.scheme===u["b"].file?s["a"].file(r["join"].apply(r,[_(e)].concat(i))).path:(t=r["posix"]).join.apply(t,[e.path||"/"].concat(i)),e.with({path:n})}function v(e){return e.path.length?(t=e.scheme===u["b"].file?s["a"].file(r["normalize"](_(e))).path:r["posix"].normalize(e.path),e.with({path:t})):e;var t}function _(e){var t,n=e.path;return t=e.authority&&n.length>1&&e.scheme===u["b"].file?"//"+e.authority+n:l["g"]&&47===n.charCodeAt(0)&&o["b"](n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,l["g"]&&(t=t.replace(/\//g,"\\")),t}function b(e,t,n){if(void 0===n&&(n=c(e)),e.scheme===t.scheme&&h(e.authority,t.authority)){if(e.scheme===u["b"].file){var i=r["relative"](e.path,t.path);return l["g"]?o["c"](i):i}var s=e.path||"/",a=t.path||"/";if(n){for(var d=0,p=Math.min(s.length,a.length);d<p;d++)if(s.charCodeAt(d)!==a.charCodeAt(d)&&s.charAt(d).toLowerCase()!==a.charAt(d).toLowerCase())break;s=a.substr(0,d)+s.substr(d)}return r["posix"].relative(s,a)}}(function(e){function t(t){var n=new Map,i=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));i.split(";").forEach(function(e){var t=e.split(":"),i=t[0],o=t[1];i&&o&&n.set(i,o)});var o=t.path.substring(0,t.path.indexOf(";"));return o&&n.set(e.META_DATA_MIME,o),n}e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=t})(i||(i={}))},"8478d":function(e,t,n){},8495:function(e,t,n){"use strict";n.d(t,"a",function(){return b});var i=n("e8e3"),o=n("2504"),r=n("fdcc"),s=n("6d8e"),a=n("b2cc"),u=n("6a89"),l=n("8025"),c=n("b707"),d=n("1b69"),h=n("a65a"),p=n("bc04"),f=n("a666"),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},v=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},_=function(e){function t(n,o){var r=e.call(this)||this;return r._register(o),r.actions=Object(i["o"])(n.slice(),t.codeActionsComparator),r}return g(t,e),t.codeActionsComparator=function(e,t){return Object(i["n"])(e.diagnostics)?Object(i["n"])(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(i["n"])(t.diagnostics)?1:0},Object.defineProperty(t.prototype,"hasAutoFix",{get:function(){return this.actions.some(function(e){return!!e.kind&&h["a"].QuickFix.contains(new h["a"](e.kind))&&!!e.isPreferred})},enumerable:!0,configurable:!0}),t}(f["a"]);function b(e,t,n,o){var s=n.filter||{},a={only:s.kind?s.kind.value:void 0,trigger:"manual"===n.type?2:1},u=new p["d"](e,o),l=y(e,s),d=new f["b"],g=l.map(function(n){return Promise.resolve(n.provideCodeActions(e,t,a,u.token)).then(function(e){return u.token.isCancellationRequested||!e?[]:(d.add(e),e.actions.filter(function(e){return e&&Object(h["b"])(s,e)}))},function(e){if(Object(r["d"])(e))throw e;return Object(r["f"])(e),[]})}),m=c["a"].onDidChange(function(){var t=c["a"].all(e);Object(i["g"])(t,l)||u.cancel()});return Promise.all(g).then(i["k"]).then(function(e){return new _(e,d)}).finally(function(){m.dispose(),u.dispose()})}function y(e,t){return c["a"].all(e).filter(function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some(function(e){return Object(h["c"])(t,new h["a"](e))})})}Object(a["j"])("_executeCodeActionProvider",function(e,t){return m(this,void 0,void 0,function(){var n,i,a,c,p,f;return v(this,function(g){switch(g.label){case 0:if(n=t.resource,i=t.rangeOrSelection,a=t.kind,!(n instanceof s["a"]))throw Object(r["b"])();if(c=e.get(d["a"]).getModel(n),!c)throw Object(r["b"])();if(p=l["a"].isISelection(i)?l["a"].liftSelection(i):u["a"].isIRange(i)?c.validateRange(i):void 0,!p)throw Object(r["b"])();return[4,b(c,p,{type:"manual",filter:{includeSourceActions:!0,kind:a&&a.value?new h["a"](a.value):void 0}},o["a"].None)];case 1:return f=g.sent(),setTimeout(function(){return f.dispose()},100),[2,f.actions]}})})})},8830:function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"a",function(){return b}),n.d(t,"d",function(){return L}),n.d(t,"c",function(){return O});var i=n("dff7"),o=n("308f"),r=n("a666"),s=n("aa3d"),a=n("30db"),u=n("fd49"),l=n("62bd"),c=n("fb71"),d=n("0910"),h=n("89cd"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=u["a"],g=u["b"],m=u["c"],v=new(function(){function e(){this._tabFocus=!1,this._onDidChangeTabFocus=new o["a"],this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return e.prototype.getTabFocusMode=function(){return this._tabFocus},e.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},e}()),_=Object.hasOwnProperty,b=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidChange=i._register(new o["a"]),i.onDidChange=i._onDidChange.event,i.isSimpleWidget=t,i._rawOptions=s["g"]({},n||{}),i._rawOptions.scrollbar=s["g"]({},i._rawOptions.scrollbar||{}),i._rawOptions.minimap=s["g"]({},i._rawOptions.minimap||{}),i._rawOptions.find=s["g"]({},i._rawOptions.find||{}),i._rawOptions.hover=s["g"]({},i._rawOptions.hover||{}),i._rawOptions.parameterHints=s["g"]({},i._rawOptions.parameterHints||{}),i._validatedOptions=u["d"].validate(i._rawOptions,f),i._isDominatedByLongLines=!1,i._lineNumbersDigitCount=1,i._register(l["a"].onDidChangeZoomLevel(function(e){return i._recomputeOptions()})),i._register(v.onDidChangeTabFocus(function(e){return i._recomputeOptions()})),i}return p(t,e),t.prototype.observeReferenceElement=function(e){},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._recomputeOptions=function(){var e=this.editor,t=this._computeInternalOptions();e&&e.equals(t)||(this.editor=t,e&&this._onDidChange.fire(e.createChangeEvent(t)))},t.prototype.getRawOptions=function(){return this._rawOptions},t.prototype._computeInternalOptions=function(){var e=this._validatedOptions,t=this._getEnvConfiguration(),n=c["a"].createFromRawSettings(this._rawOptions,t.zoomLevel,this.isSimpleWidget),i={outerWidth:t.outerWidth,outerHeight:t.outerHeight,fontInfo:this.readConfiguration(n),extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:v.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport};return u["f"].createInternalEditorOptions(i,e)},t._primitiveArrayEquals=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},t._subsetEquals=function(e,t){for(var n in t)if(_.call(t,n)){var i=t[n],o=e[n];if(o===i)continue;if(Array.isArray(o)&&Array.isArray(i)){if(!this._primitiveArrayEquals(o,i))return!1;continue}if("object"===typeof o&&"object"===typeof i){if(!this._subsetEquals(o,i))return!1;continue}return!1}return!0},t.prototype.updateOptions=function(e){"undefined"!==typeof e&&(t._subsetEquals(this._rawOptions,e)||(this._rawOptions=s["g"](this._rawOptions,e||{}),this._validatedOptions=u["d"].validate(this._rawOptions,f),this._recomputeOptions()))},t.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},t.prototype.setMaxLineNumber=function(e){var n=t._digitCount(e);this._lineNumbersDigitCount!==n&&(this._lineNumbersDigitCount=n,this._recomputeOptions())},t._digitCount=function(e){var t=0;while(e)e=Math.floor(e/10),t++;return t||1},t}(r["a"]),y=h["a"].as(d["a"].Configuration),w={id:"editor",order:5,type:"object",title:i["a"]("editorConfigurationTitle","Editor"),overridable:!0,scope:4,properties:{"editor.fontFamily":{type:"string",default:g.fontFamily,description:i["a"]("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:g.fontWeight,description:i["a"]("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:g.fontSize,description:i["a"]("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:g.lineHeight,description:i["a"]("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.letterSpacing":{type:"number",default:g.letterSpacing,description:i["a"]("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[i["a"]("lineNumbers.off","Line numbers are not rendered."),i["a"]("lineNumbers.on","Line numbers are rendered as absolute number."),i["a"]("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),i["a"]("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:i["a"]("lineNumbers","Controls the display of line numbers.")},"editor.cursorSurroundingLines":{type:"number",default:f.viewInfo.cursorSurroundingLines,description:i["a"]("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")},"editor.renderFinalNewline":{type:"boolean",default:f.viewInfo.renderFinalNewline,description:i["a"]("renderFinalNewline","Render last line number when the file ends with a newline.")},"editor.rulers":{type:"array",items:{type:"number"},default:f.viewInfo.rulers,description:i["a"]("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")},"editor.wordSeparators":{type:"string",default:f.wordSeparators,description:i["a"]("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")},"editor.tabSize":{type:"number",default:m.tabSize,minimum:1,markdownDescription:i["a"]("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:m.insertSpaces,markdownDescription:i["a"]("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:m.detectIndentation,markdownDescription:i["a"]("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:f.viewInfo.roundedSelection,description:i["a"]("roundedSelection","Controls whether selections should have rounded corners.")},"editor.scrollBeyondLastLine":{type:"boolean",default:f.viewInfo.scrollBeyondLastLine,description:i["a"]("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")},"editor.scrollBeyondLastColumn":{type:"number",default:f.viewInfo.scrollBeyondLastColumn,description:i["a"]("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")},"editor.smoothScrolling":{type:"boolean",default:f.viewInfo.smoothScrolling,description:i["a"]("smoothScrolling","Controls whether the editor will scroll using an animation.")},"editor.minimap.enabled":{type:"boolean",default:f.viewInfo.minimap.enabled,description:i["a"]("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:f.viewInfo.minimap.side,description:i["a"]("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:f.viewInfo.minimap.showSlider,description:i["a"]("minimap.showSlider","Controls whether the minimap slider is automatically hidden.")},"editor.minimap.renderCharacters":{type:"boolean",default:f.viewInfo.minimap.renderCharacters,description:i["a"]("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:f.viewInfo.minimap.maxColumn,description:i["a"]("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.hover.enabled":{type:"boolean",default:f.contribInfo.hover.enabled,description:i["a"]("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:f.contribInfo.hover.delay,description:i["a"]("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:f.contribInfo.hover.sticky,description:i["a"]("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:f.contribInfo.find.seedSearchStringFromSelection,description:i["a"]("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"boolean",default:f.contribInfo.find.autoFindInSelection,description:i["a"]("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:f.contribInfo.find.globalFindClipboard,description:i["a"]("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:a["d"]},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:!0,description:i["a"]("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[i["a"]("wordWrap.off","Lines will never wrap."),i["a"]("wordWrap.on","Lines will wrap at the viewport width."),i["a"]({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),i["a"]({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],default:f.wordWrap,description:i["a"]({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")},"editor.wordWrapColumn":{type:"integer",default:f.wordWrapColumn,minimum:1,markdownDescription:i["a"]({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[i["a"]("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),i["a"]("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),i["a"]("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),i["a"]("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:i["a"]("wrappingIndent","Controls the indentation of wrapped lines.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:f.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:i["a"]("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},"editor.fastScrollSensitivity":{type:"number",default:f.viewInfo.scrollbar.fastScrollSensitivity,markdownDescription:i["a"]("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[i["a"]("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),i["a"]("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:i["a"]({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:f.multiCursorMergeOverlapping,description:i["a"]("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:i["a"]("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:i["a"]("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:i["a"]("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:f.contribInfo.quickSuggestions,description:i["a"]("quickSuggestions","Controls whether suggestions should automatically show up while typing.")},"editor.quickSuggestionsDelay":{type:"integer",default:f.contribInfo.quickSuggestionsDelay,minimum:0,description:i["a"]("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")},"editor.parameterHints.enabled":{type:"boolean",default:f.contribInfo.parameterHints.enabled,description:i["a"]("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:f.contribInfo.parameterHints.cycle,description:i["a"]("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",i["a"]("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),i["a"]("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:f.autoClosingBrackets,description:i["a"]("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",i["a"]("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),i["a"]("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:f.autoClosingQuotes,description:i["a"]("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")},"editor.autoClosingOvertype":{type:"string",enum:["always","auto","never"],enumDescriptions:[i["a"]("editor.autoClosingOvertype.always","Always type over closing quotes or brackets."),i["a"]("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),i["a"]("editor.autoClosingOvertype.never","Never type over closing quotes or brackets.")],default:f.autoClosingOvertype,description:i["a"]("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[i["a"]("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),i["a"]("editor.autoSurround.brackets","Surround with brackets but not quotes."),i["a"]("editor.autoSurround.quotes","Surround with quotes but not brackets."),""],default:f.autoSurround,description:i["a"]("autoSurround","Controls whether the editor should automatically surround selections.")},"editor.formatOnType":{type:"boolean",default:f.contribInfo.formatOnType,description:i["a"]("formatOnType","Controls whether the editor should automatically format the line after typing.")},"editor.formatOnPaste":{type:"boolean",default:f.contribInfo.formatOnPaste,description:i["a"]("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")},"editor.autoIndent":{type:"boolean",default:f.autoIndent,description:i["a"]("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:f.contribInfo.suggestOnTriggerCharacters,description:i["a"]("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:f.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",i["a"]("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:i["a"]("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:f.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:i["a"]("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[i["a"]("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),i["a"]("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),i["a"]("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),i["a"]("snippetSuggestions.none","Do not show snippet suggestions.")],default:f.contribInfo.suggest.snippets,description:i["a"]("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:f.emptySelectionClipboard,description:i["a"]("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:f.copyWithSyntaxHighlighting,description:i["a"]("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")},"editor.wordBasedSuggestions":{type:"boolean",default:f.contribInfo.wordBasedSuggestions,description:i["a"]("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[i["a"]("suggestSelection.first","Always select the first suggestion."),i["a"]("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),i["a"]("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:i["a"]("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:i["a"]("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:i["a"]("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[i["a"]("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),i["a"]("tabCompletion.off","Disable tab completions."),i["a"]("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:i["a"]("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:i["a"]("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:i["a"]("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:!1,markdownDescription:i["a"]("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:i["a"]("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:f.contribInfo.suggest.showIcons,description:i["a"]("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:f.contribInfo.suggest.maxVisibleSuggestions,minimum:1,maximum:15,description:i["a"]("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0,snippet:!0},markdownDescription:i["a"]("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},class:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},interface:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},enum:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean",default:!0,markdownDescription:i["a"]("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:i["a"]("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string",enum:["peek","gotoAndPeek","goto"],default:f.contribInfo.gotoLocation.multiple,enumDescriptions:[i["a"]("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),i["a"]("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),i["a"]("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},"editor.selectionHighlight":{type:"boolean",default:f.contribInfo.selectionHighlight,description:i["a"]("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean",default:f.contribInfo.occurrencesHighlight,description:i["a"]("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:i["a"]("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:f.viewInfo.overviewRulerBorder,description:i["a"]("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:u["h"](f.viewInfo.cursorBlinking),description:i["a"]("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:f.viewInfo.mouseWheelZoom,markdownDescription:i["a"]("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:f.viewInfo.cursorSmoothCaretAnimation,description:i["a"]("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:u["i"](f.viewInfo.cursorStyle),description:i["a"]("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:f.viewInfo.cursorWidth,markdownDescription:i["a"]("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:f.viewInfo.fontLigatures,description:i["a"]("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:f.viewInfo.hideCursorInOverviewRuler,description:i["a"]("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","selection","all"],enumDescriptions:["",i["a"]("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),i["a"]("renderWhitespace.selection","Render whitespace characters only on selected text."),""],default:f.viewInfo.renderWhitespace,description:i["a"]("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:f.viewInfo.renderControlCharacters,description:i["a"]("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:f.viewInfo.renderIndentGuides,description:i["a"]("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:f.viewInfo.highlightActiveIndentGuide,description:i["a"]("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",i["a"]("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:f.viewInfo.renderLineHighlight,description:i["a"]("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:f.contribInfo.codeLens,description:i["a"]("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean",default:f.contribInfo.folding,description:i["a"]("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:f.contribInfo.foldingStrategy,markdownDescription:i["a"]("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:f.contribInfo.showFoldingControls,description:i["a"]("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:f.contribInfo.matchBrackets,description:i["a"]("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:f.viewInfo.glyphMargin,description:i["a"]("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:f.useTabStops,description:i["a"]("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:m.trimAutoWhitespace,description:i["a"]("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:i["a"]("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:f.dragAndDrop,description:i["a"]("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[i["a"]("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),i["a"]("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),i["a"]("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:f.accessibilitySupport,description:i["a"]("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:f.showUnused,description:i["a"]("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:f.contribInfo.links,description:i["a"]("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:f.contribInfo.colorDecorators,description:i["a"]("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:f.contribInfo.lightbulbEnabled,description:i["a"]("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:i["a"]("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:i["a"]("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:i["a"]("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},default:f.contribInfo.codeActionsOnSave,description:i["a"]("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:f.contribInfo.codeActionsOnSaveTimeout,description:i["a"]("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:f.contribInfo.selectionClipboard,description:i["a"]("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:a["c"]},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:i["a"]("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:i["a"]("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean",default:m.largeFileOptimizations,description:i["a"]("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:i["a"]("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},C=null;function S(){return null===C&&(C=Object.create(null),Object.keys(w.properties).forEach(function(e){C[e]=!0})),C}function L(e){var t=S();return t["editor."+e]||!1}function O(e){var t=S();return t["diffEditor."+e]||!1}y.registerConfiguration(w)},8899:function(e,t,n){},"89cd":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("ef8e"),o=n("1569"),r=function(){function e(){this.data=new Map}return e.prototype.add=function(e,t){o["a"](i["i"](e)),o["a"](i["h"](t)),o["a"](!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)},e.prototype.as=function(e){return this.data.get(e)||null},e}(),s=new r},"8ad2":function(e,t,n){"use strict";var i=n("55f3"),o=n.n(i);o.a},"8ae8":function(e,t,n){"use strict";function i(e){return e&&"string"===typeof e.id}n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var o={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},r={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},"8b4e":function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var i=n("dff7"),o=function(){function e(e,t,n){void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}return e.prototype.toLabel=function(e,t,n){if(0===t.length)return null;for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],u=n(s);if(null===u)return null;i[o]=a(s,u,this.modifierLabels[e])}return i.join(" ")},e}(),r=new o({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:i["a"]({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:i["a"]({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:i["a"]({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:i["a"]({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),s=new o({ctrlKey:i["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:i["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:i["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function a(e,t,n){if(null===t)return"";var i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),i.push(t),i.join(n.separator)}},"8bf1":function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return c});var i=n("4dc7"),o=n("b707"),r=function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}(),s=new r,a="vs.editor.nullMode",u=new o["p"](a,0);function l(e,t,n,o){return new i["b"]([new i["a"](o,"",e)],n)}function c(e,t,n,o){var r=new Uint32Array(2);return r[0]=o,r[1]=(16384|e<<0|2<<23)>>>0,new i["c"](r,null===n?s:n)}},"8bf4":function(e,t,n){},"8c02":function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"d",function(){return h}),n.d(t,"c",function(){return f}),n.d(t,"e",function(){return v}),n.d(t,"b",function(){return _});var i=n("3742"),o=n("e6ff"),r=n("7061"),s=n("6a89"),a=n("3352"),u=999,l=function(){function e(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}return e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?c(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=i["k"](this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch(r){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new d(t,this.wordSeparators?Object(o["a"])(this.wordSeparators):null,n?this.searchString:null)},e}();function c(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(92===i){if(t++,t>=n)break;var o=e.charCodeAt(t);if(110===o||114===o||87===o)return!0}}return!1}var d=function(){function e(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}return e}();function h(e,t,n){if(!n)return new a["b"](e,null);for(var i=[],o=0,r=t.length;o<r;o++)i[o]=t[o];return new a["b"](e,i)}var p=function(){function e(e){for(var t=[],n=0,i=0,o=e.length;i<o;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}return e.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;while(n<i){var o=n+((i-n)/2>>0);t[o]>=e?i=o-1:t[o+1]>=e?(n=o,i=o):n=o+1}return n+1},e}(),f=function(){function e(){}return e.findMatches=function(e,t,n,i,o){var r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,n,new _(r.wordSeparators,r.regex),i,o):this._doFindMatchesLineByLine(e,n,r,i,o):[]},e._getMultilineMatchRange=function(e,t,n,i,o,r){var a,u,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o,i){var c=i.findLineFeedCountBeforeOffset(o+r.length),d=c-l;u=a+r.length+d}else u=a+r.length;var h=e.getPositionAt(a),p=e.getPositionAt(u);return new s["a"](h.lineNumber,h.column,p.lineNumber,p.column)},e._doFindMatchesMultiline=function(e,t,n,i,o){var r,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),u="\r\n"===e.getEOL()?new p(a):null,l=[],c=0;n.reset(0);while(r=n.next(a))if(l[c++]=h(this._getMultilineMatchRange(e,s,a,u,r.index,r[0]),r,i),c>=o)return l;return l},e._doFindMatchesLineByLine=function(e,t,n,i,o){var r=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,r,i,o),r}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,s,r,i,o);for(var l=t.startLineNumber+1;l<t.endLineNumber&&s<o;l++)s=this._findMatchesInLine(n,e.getLineContent(l),l,0,s,r,i,o);if(s<o){var c=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,c,t.endLineNumber,0,s,r,i,o)}return r},e._findMatchesInLine=function(e,t,n,i,o,r,u,l){var c=e.wordSeparators;if(!u&&e.simpleSearch){var d=e.simpleSearch,p=d.length,f=t.length,g=-p;while(-1!==(g=t.indexOf(d,g+p)))if((!c||v(c,t,f,g,p))&&(r[o++]=new a["b"](new s["a"](n,g+1+i,n,g+1+p+i),null),o>=l))return o;return o}var m,b=new _(e.wordSeparators,e.regex);b.reset(0);do{if(m=b.next(t),m&&(r[o++]=h(new s["a"](n,m.index+1+i,n,m.index+1+m[0].length+i),m,u),o>=l))return o}while(m);return o},e.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new _(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,r,i):this._doFindNextMatchLineByLine(e,n,r,i)},e._doFindNextMatchMultiline=function(e,t,n,i){var o=new r["a"](t.lineNumber,1),a=e.getOffsetAt(o),u=e.getLineCount(),l=e.getValueInRange(new s["a"](o.lineNumber,o.column,u,e.getLineMaxColumn(u)),1),c="\r\n"===e.getEOL()?new p(l):null;n.reset(t.column-1);var d=n.next(l);return d?h(this._getMultilineMatchRange(e,a,l,c,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r["a"](1,1),n,i):null},e._doFindNextMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r),a=this._findFirstMatchInLine(n,s,r,t.column,i);if(a)return a;for(var u=1;u<=o;u++){var l=(r+u-1)%o,c=e.getLineContent(l+1),d=this._findFirstMatchInLine(n,c,l+1,1,i);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,n,i,o){e.reset(i-1);var r=e.next(t);return r?h(new s["a"](n,r.index+1,n,r.index+1+r[0].length),r,o):null},e.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new _(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,i):this._doFindPreviousMatchLineByLine(e,n,r,i)},e._doFindPreviousMatchMultiline=function(e,t,n,i){var o=this._doFindMatchesMultiline(e,new s["a"](1,1,t.lineNumber,t.column),n,i,10*u);if(o.length>0)return o[o.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r["a"](a,e.getLineMaxColumn(a)),n,i):null},e._doFindPreviousMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,r,i);if(a)return a;for(var u=1;u<=o;u++){var l=(o+r-u-1)%o,c=e.getLineContent(l+1),d=this._findLastMatchInLine(n,c,l+1,i);if(d)return d}return null},e._findLastMatchInLine=function(e,t,n,i){var o,r=null;e.reset(0);while(o=e.next(t))r=h(new s["a"](n,o.index+1,n,o.index+1+o[0].length),o,i);return r},e}();function g(e,t,n,i,o){if(0===i)return!0;var r=t.charCodeAt(i-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i);if(0!==e.get(s))return!0}return!1}function m(e,t,n,i,o){if(i+o===n)return!0;var r=t.charCodeAt(i+o);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i+o-1);if(0!==e.get(s))return!0}return!1}function v(e,t,n,i,o){return g(e,t,n,i,o)&&m(e,t,n,i,o)}var _=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(t=this._searchRegex.exec(e),!t)return null;var i=t.index,o=t[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||v(this._wordSeparators,e,n,i,o))return t}while(t);return null},e}()},9146:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"monaco-view",attrs:{id:"monaco-"+e.id}})},o=[],r=n("75fc"),s=n("33f9");n("28a5"),n("a481"),n("4917"),n("ac6a"),n("7f7f");function a(e,t){return e}function u(e,t,n){var i=n.word,o=[];return e.length&&(o=e.map(function(e){return{label:e.name,kind:e.type?s["languages"].CompletionItemKind[e.type]:s["languages"].CompletionItemKind.Function,documentation:e.documentation,insertText:a(e.name,i),detail:e.detail||"EMQX",range:t}})),o}function l(e){var t=e.name,n=e.default,i=e.valueType;return i&&(t="".concat(t,": ").concat(i)),n?"".concat(t,", value: ").concat(n):t}function c(e,t){var n=[];return t.forEach(function(t){var i=t.name;t.name.match(/\$events\//)&&(i=t.name.split("/")[1].replace('"',"")),e===i&&n.push({value:l(t)},{value:t.documentation})}),n}var d={name:"Monaco",props:{id:{type:String,required:!0},value:{type:String,required:!0},lang:{type:String,required:!0},disabled:{type:Boolean,default:!1},warp:{type:Boolean,default:!1},provider:{type:Array,default:function(){return[]}}},data:function(){return{editor:null,providerDisposeID:null,hoverDisposeID:null,sqlHints:[{name:"SELECT",type:"Keyword",detail:"SQL",documentation:"SQL selector."},{name:"FROM",type:"Keyword",detail:"SQL",documentation:"What event."},{name:"WHERE",type:"Keyword",detail:"SQL",documentation:"Filters a result set to include only records that fulfill a specified condition. "},{name:"and",type:"Keyword",detail:"SQL",documentation:"Operator."},{name:"or",type:"Keyword",detail:"SQL",documentation:"Operator."}]}},watch:{value:function(e){this.editor&&e!==this.editor.getValue()&&this.editor.setValue(e)},lang:function(){this.editor&&(this.editor.dispose(),this.initEditor())}},created:function(){var e=this;window.onresize=function(){e.editor&&e.editor.layout()},this.provider.length&&(this.registerCustomHintsProvider(),this.registerCustomHoverProvider())},mounted:function(){this.initEditor()},beforeDestroy:function(){this.editor&&(this.editor.getModel().dispose(),this.editor.dispose(),this.editor=null),this.providerDisposeID&&this.providerDisposeID.dispose(),this.hoverDisposeID&&this.hoverDisposeID.dispose()},methods:{initEditor:function(){var e=this,t="monaco-".concat(this.id),n={value:this.value,language:this.lang,readOnly:this.disabled,fontSize:14,automaticLayout:!0,scrollBeyondLastLine:!1,lineNumbersMinChars:2,theme:"vs",minimap:{enabled:!1},hover:{delay:500,enabled:!0}},i=this.beforeMonacoCreate(n);this.editor=s["editor"].create(document.getElementById(t),i),this.editor.onDidChangeModelContent(function(t){var n=e.editor.getValue();n!==e.value&&(e.$emit("input",n,t),e.$emit("change",n,t))}),this.editor.addCommand(s["KeyMod"].CtrlCmd|s["KeyCode"].KEY_S,function(){e.$emit("qucik-save",e.value)}),this.editor.getModel().updateOptions({tabSize:2})},beforeMonacoCreate:function(e){if(this.warp){var t={wordWrap:"on",wrappingIndent:"indent"};Object.assign(e,t)}return e},getHints:function(){var e=Object(r["a"])(this.provider);return"sql"===this.lang&&e.push.apply(e,Object(r["a"])(this.sqlHints)),e},registerCustomHintsProvider:function(){var e=this;this.providerDisposeID=s["languages"].registerCompletionItemProvider(this.lang,{provideCompletionItems:function(t,n){var i=t.getWordUntilPosition(n),o=e.getHints(i),r={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn};return{suggestions:u(o,r,i)}},triggerCharacters:[" "]})},registerCustomHoverProvider:function(){var e=this;s["languages"].register({id:this.lang}),this.hoverDisposeID=s["languages"].registerHoverProvider(this.lang,{provideHover:function(t,n){if(!t.getWordAtPosition(n))return{};var i=t.getWordAtPosition(n),o=i.word;return{contents:c(o,e.provider)}}})}}},h=d,p=(n("8ad2"),n("2877")),f=Object(p["a"])(h,i,o,!1,null,null,null);t["a"]=f.exports},"918c":function(e,t,n){"use strict";n.d(t,"i",function(){return a}),n.d(t,"j",function(){return u}),n.d(t,"g",function(){return d}),n.d(t,"f",function(){return h}),n.d(t,"h",function(){return f}),n.d(t,"a",function(){return g}),n.d(t,"k",function(){return m}),n.d(t,"b",function(){return _}),n.d(t,"m",function(){return b}),n.d(t,"e",function(){return y}),n.d(t,"c",function(){return w}),n.d(t,"d",function(){return C}),n.d(t,"l",function(){return S}),n.d(t,"n",function(){return O}),n.d(t,"o",function(){return x}),n.d(t,"p",function(){return N}),n.d(t,"r",function(){return D}),n.d(t,"q",function(){return k});var i=n("dff7"),o=n("ceb8"),r=n("303e"),s=n("b7d0"),a=Object(r["Kb"])("editor.lineHighlightBackground",{dark:null,light:null,hc:null},i["a"]("lineHighlight","Background color for the highlight of line at the cursor position.")),u=Object(r["Kb"])("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},i["a"]("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=Object(r["Kb"])("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},i["a"]("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),c=Object(r["Kb"])("editor.rangeHighlightBorder",{dark:null,light:null,hc:r["b"]},i["a"]("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),d=Object(r["Kb"])("editorCursor.foreground",{dark:"#AEAFAD",light:o["a"].black,hc:o["a"].white},i["a"]("caret","Color of the editor cursor.")),h=Object(r["Kb"])("editorCursor.background",null,i["a"]("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),p=Object(r["Kb"])("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},i["a"]("editorWhitespaces","Color of whitespace characters in the editor.")),f=Object(r["Kb"])("editorIndentGuide.background",{dark:p,light:p,hc:p},i["a"]("editorIndentGuides","Color of the editor indentation guides.")),g=Object(r["Kb"])("editorIndentGuide.activeBackground",{dark:p,light:p,hc:p},i["a"]("editorActiveIndentGuide","Color of the active editor indentation guides.")),m=Object(r["Kb"])("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:o["a"].white},i["a"]("editorLineNumbers","Color of editor line numbers.")),v=Object(r["Kb"])("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:r["b"]},i["a"]("editorActiveLineNumber","Color of editor active line number"),!1,i["a"]("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),_=Object(r["Kb"])("editorLineNumber.activeForeground",{dark:v,light:v,hc:v},i["a"]("editorActiveLineNumber","Color of editor active line number")),b=Object(r["Kb"])("editorRuler.foreground",{dark:"#5A5A5A",light:o["a"].lightgrey,hc:o["a"].white},i["a"]("editorRuler","Color of the editor rulers.")),y=Object(r["Kb"])("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},i["a"]("editorCodeLensForeground","Foreground color of editor code lenses")),w=Object(r["Kb"])("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},i["a"]("editorBracketMatchBackground","Background color behind matching brackets")),C=Object(r["Kb"])("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:r["e"]},i["a"]("editorBracketMatchBorder","Color for matching brackets boxes")),S=Object(r["Kb"])("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},i["a"]("editorOverviewRulerBorder","Color of the overview ruler border.")),L=Object(r["Kb"])("editorGutter.background",{dark:r["o"],light:r["o"],hc:r["o"]},i["a"]("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),O=Object(r["Kb"])("editorUnnecessaryCode.border",{dark:null,light:null,hc:o["a"].fromHex("#fff").transparent(.8)},i["a"]("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),x=Object(r["Kb"])("editorUnnecessaryCode.opacity",{dark:o["a"].fromHex("#000a"),light:o["a"].fromHex("#0007"),hc:null},i["a"]("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),N=Object(r["Kb"])("editorOverviewRuler.errorForeground",{dark:new o["a"](new o["c"](255,18,18,.7)),light:new o["a"](new o["c"](255,18,18,.7)),hc:new o["a"](new o["c"](255,50,50,1))},i["a"]("overviewRuleError","Overview ruler marker color for errors.")),D=Object(r["Kb"])("editorOverviewRuler.warningForeground",{dark:r["M"],light:r["M"],hc:r["L"]},i["a"]("overviewRuleWarning","Overview ruler marker color for warnings.")),k=Object(r["Kb"])("editorOverviewRuler.infoForeground",{dark:r["G"],light:r["G"],hc:r["F"]},i["a"]("overviewRuleInfo","Overview ruler marker color for infos."));Object(s["f"])(function(e,t){var n=e.getColor(r["o"]);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var i=e.getColor(r["x"]);i&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+i+"; }");var o=e.getColor(L);o&&t.addRule(".monaco-editor .margin { background-color: "+o+"; }");var s=e.getColor(l);s&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+s+"; }");var a=e.getColor(c);a&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+a+"; }");var u=e.getColor(p);u&&t.addRule(".vs-whitespace { color: "+u+" !important; }")})},"92a6":function(e,t,n){"use strict";n.r(t);var i=n("5fe7"),o=n("ceb8"),r=n("fdcc");function s(e,t){switch(void 0===t&&(t=0),typeof e){case"object":return null===e?a(349,t):Array.isArray(e)?c(e,t):d(e,t);case"string":return l(e,t);case"boolean":return u(e,t);case"number":return a(e,t);case"undefined":return a(0,937);default:return a(0,617)}}function a(e,t){return(t<<5)-t+e|0}function u(e,t){return a(e?433:863,t)}function l(e,t){t=a(149417,t);for(var n=0,i=e.length;n<i;n++)t=a(e.charCodeAt(n),t);return t}function c(e,t){return t=a(104579,t),e.reduce(function(e,t){return s(t,e)},t)}function d(e,t){return t=a(181387,t),Object.keys(e).sort().reduce(function(t,n){return t=l(n,t),s(e[n],t)},t)}var h=n("a666"),p=n("b2cc"),f=n("5717"),g=n("6a89"),m=n("b57f"),v=n("b707"),_=n("6483"),b=n("fbba");n.d(t,"ColorDetector",function(){return L});var y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){return function(n,i){t(n,i,e)}},S=500,L=function(e){function t(t,n,i){var o=e.call(this)||this;return o._editor=t,o._codeEditorService=n,o._configurationService=i,o._localToDispose=o._register(new h["b"]),o._decorationsIds=[],o._colorDatas=new Map,o._colorDecoratorIds=[],o._decorationsTypes=new Set,o._register(t.onDidChangeModel(function(e){o._isEnabled=o.isEnabled(),o.onModelChanged()})),o._register(t.onDidChangeModelLanguage(function(e){return o.onModelChanged()})),o._register(v["c"].onDidChange(function(e){return o.onModelChanged()})),o._register(t.onDidChangeConfiguration(function(e){var t=o._isEnabled;o._isEnabled=o.isEnabled(),t!==o._isEnabled&&(o._isEnabled?o.onModelChanged():o.removeAllDecorations())})),o._timeoutTimer=null,o._computePromise=null,o._isEnabled=o.isEnabled(),o.onModelChanged(),o}return y(t,e),t.prototype.isEnabled=function(){var e=this._editor.getModel();if(!e)return!1;var t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n){var i=n["colorDecorators"];if(i&&void 0!==i["enable"]&&!i["enable"])return i["enable"]}return this._editor.getConfiguration().contribInfo.colorDecorators},t.prototype.getId=function(){return t.ID},t.get=function(e){return e.getContribution(this.ID)},t.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),e.prototype.dispose.call(this)},t.prototype.onModelChanged=function(){var e=this;if(this.stop(),this._isEnabled){var n=this._editor.getModel();n&&v["c"].has(n)&&(this._localToDispose.add(this._editor.onDidChangeModelContent(function(n){e._timeoutTimer||(e._timeoutTimer=new i["e"],e._timeoutTimer.cancelAndSet(function(){e._timeoutTimer=null,e.beginCompute()},t.RECOMPUTE_TIME))})),this.beginCompute())}},t.prototype.beginCompute=function(){var e=this;this._computePromise=Object(i["f"])(function(t){var n=e._editor.getModel();return n?Object(_["b"])(n,t):Promise.resolve([])}),this._computePromise.then(function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null},r["e"])},t.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},t.prototype.updateDecorations=function(e){var t=this,n=e.map(function(e){return{range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:m["a"].EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,n),this._colorDatas=new Map,this._decorationsIds.forEach(function(n,i){return t._colorDatas.set(n,e[i])})},t.prototype.updateColorDecorators=function(e){for(var t=this,n=[],i={},r=0;r<e.length&&n.length<S;r++){var a=e[r].colorInfo.color,u=a.red,l=a.green,c=a.blue,d=a.alpha,h=new o["c"](Math.round(255*u),Math.round(255*l),Math.round(255*c),d),p=s(h).toString(16),f="rgba("+h.r+", "+h.g+", "+h.b+", "+h.a+")",g="colorBox-"+p;this._decorationsTypes.has(g)||i[g]||this._codeEditorService.registerDecorationType(g,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:f},dark:{before:{border:"solid 0.1em #eee"}}}),i[g]=!0,n.push({range:{startLineNumber:e[r].colorInfo.range.startLineNumber,startColumn:e[r].colorInfo.range.startColumn,endLineNumber:e[r].colorInfo.range.endLineNumber,endColumn:e[r].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(g,!0)})}this._decorationsTypes.forEach(function(e){i[e]||t._codeEditorService.removeDecorationType(e)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,n)},t.prototype.removeAllDecorations=function(){var e=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(function(t){e._codeEditorService.removeDecorationType(t)})},t.prototype.getColorData=function(e){var t=this,n=this._editor.getModel();if(!n)return null;var i=n.getDecorationsInRange(g["a"].fromPositions(e,e)).filter(function(e){return t._colorDatas.has(e.id)});return 0===i.length?null:this._colorDatas.get(i[0].id)},t.ID="editor.contrib.colorDetector",t.RECOMPUTE_TIME=1e3,t=w([C(1,f["a"]),C(2,b["a"])],t),t}(h["a"]);Object(p["h"])(L)},"930f":function(e,t,n){},"93ba":function(e,t,n){"use strict";n.r(t),n.d(t,"ToggleTabFocusModeAction",function(){return u});var i=n("dff7"),o=n("3813"),r=n("b2cc"),s=n("8830"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(e){function t(){return e.call(this,{id:t.ID,label:i["a"]({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})||this}return a(t,e),t.prototype.run=function(e,t){var n=s["b"].getTabFocusMode(),r=!n;s["b"].setTabFocusMode(r),r?Object(o["a"])(i["a"]("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(o["a"])(i["a"]("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},t.ID="editor.action.toggleTabFocusMode",t}(r["b"]);Object(r["f"])(u)},"93d9":function(e,t,n){"use strict";var i=n("11f7"),o=n("72a7"),r=n("a666"),s=n("dff7"),a=n("fbba"),u=n("0910"),l=n("4fc3"),c=n("0a0f"),d=n("6dec"),h=n("89cd"),p=n("a6d7"),f=n("b7d0"),g=(n("d95f"),n("308f")),m=n("b835"),v=n("650e"),_=n("e8e3"),b=n("7de1"),y=n("e32d"),w=n("7e93"),C=n("258a");function S(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function L(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function O(e){var t=e.element,n=e.collapsed,i=C["d"].map(C["d"].fromArray(e.children),O);return{element:t,children:i,collapsed:n}}var x=function(){function e(e,t,n){void 0===n&&(n={}),this.list=e,this.rootRef=[],this.eventBufferer=new g["c"],this._onDidChangeCollapseState=new g["a"],this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new g["a"],this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new g["a"],this.onDidSplice=this._onDidSplice.event,this.collapseByDefault="undefined"!==typeof n.collapseByDefault&&n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren="undefined"!==typeof n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:t,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return e.prototype.splice=function(e,t,n,i,o){var r,s=this;if(0===e.length)throw new Error("Invalid tree location");for(var a=this.getParentNodeWithListIndex(e),u=a.parentNode,l=a.listIndex,c=a.revealed,d=a.visible,h=[],p=C["d"].map(C["d"].from(n),function(e){return s.createTreeNode(e,u,u.visible?1:0,c,h,i)}),f=e[e.length-1],g=0,m=f;m>=0&&m<u.children.length;m--){var v=u.children[m];if(v.visible){g=v.visibleChildIndex;break}}var _=[],b=0,y=0;C["d"].forEach(p,function(e){_.push(e),y+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=g+b++)});for(var w=(r=u.children).splice.apply(r,[f,t].concat(_)),S=0,L=0,x=w;L<x.length;L++){v=x[L];v.visible&&S++}if(0!==S)for(m=f+_.length;m<u.children.length;m++){v=u.children[m];v.visible&&(v.visibleChildIndex-=S)}if(u.visibleChildrenCount+=b-S,c&&d){var N=w.reduce(function(e,t){return e+t.renderNodeCount},0);this._updateAncestorsRenderNodeCount(u,y-N),this.list.splice(l,N,h)}if(w.length>0&&o){var D=function(e){o(e),e.children.forEach(D)};w.forEach(D)}var k=C["d"].map(C["d"].fromArray(w),O);return this._onDidSplice.fire({insertedNodes:_,deletedNodes:w}),k},e.prototype.rerender=function(e){if(0===e.length)throw new Error("Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,i=t.listIndex,o=t.revealed;o&&this.list.splice(i,1,[n])},e.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,i=t.visible,o=t.revealed;return i&&o?n:-1},e.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},e.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},e.prototype.setCollapsed=function(e,t,n){var i=this,o=this.getTreeNode(e);return"undefined"===typeof t&&(t=!o.collapsed),this.eventBufferer.bufferEvents(function(){return i._setCollapsed(e,t,n)})},e.prototype._setCollapsed=function(e,t,n){var i=this.getTreeNodeWithListIndex(e),o=i.node,r=i.listIndex,s=i.revealed,a=this._setListNodeCollapsed(o,r,s,t,n||!1);if(o!==this.root&&this.autoExpandSingleChildren&&!t&&!n){for(var u=-1,l=0;l<o.children.length;l++){var c=o.children[l];if(c.visible){if(u>-1){u=-1;break}u=l}}u>-1&&this._setCollapsed(e.concat([u]),!1,!1)}return a},e.prototype._setListNodeCollapsed=function(e,t,n,i,o){var r=this._setNodeCollapsed(e,i,o,!1);if(!n||!e.visible)return r;var s=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),u=s-(-1===t?0:1);return this.list.splice(t+1,u,a.slice(1)),r},e.prototype._setNodeCollapsed=function(e,t,n,i){var o=e.collapsible&&e.collapsed!==t;if(e.collapsible&&(e.collapsed=t,o&&this._onDidChangeCollapseState.fire({node:e,deep:i})),n)for(var r=0,s=e.children;r<s.length;r++){var a=s[r];o=this._setNodeCollapsed(a,t,!0,!0)||o}return o},e.prototype.expandTo=function(e){var t=this;this.eventBufferer.bufferEvents(function(){var n=t.getTreeNode(e);while(n.parent)n=n.parent,e=e.slice(0,e.length-1),n.collapsed&&t._setCollapsed(e,!1)})},e.prototype.refilter=function(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)},e.prototype.createTreeNode=function(e,t,n,i,o,r){var s=this,a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},u=this._filterNode(a,n);i&&o.push(a);var l=C["d"].from(e.children),c=i&&0!==u&&!a.collapsed,d=C["d"].map(l,function(e){return s.createTreeNode(e,a,u,c,o,r)}),h=0,p=1;return C["d"].forEach(d,function(e){a.children.push(e),p+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=h++)}),a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=h,a.visible=2===u?h>0:1===u,a.visible?a.collapsed||(a.renderNodeCount=p):(a.renderNodeCount=0,i&&o.pop()),r&&r(a),a},e.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},e.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var n=0,i=e.children;n<i.length;n++){var o=i[n];e.renderNodeCount+=this._updateNodeAfterCollapseChange(o,t)}return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount},e.prototype.updateNodeAfterFilterChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},e.prototype._updateNodeAfterFilterChange=function(e,t,n,i){var o;if(void 0===i&&(i=!0),e!==this.root){if(o=this._filterNode(e,t),0===o)return e.visible=!1,!1;i&&n.push(e)}var r=n.length;e.renderNodeCount=e===this.root?0:1;var s=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{for(var a=0,u=0,l=e.children;u<l.length;u++){var c=l[u];s=this._updateNodeAfterFilterChange(c,o,n,i&&!e.collapsed)||s,c.visible&&(c.visibleChildIndex=a++)}e.visibleChildrenCount=a}return e!==this.root&&(e.visible=2===o?s:1===o),e.visible?e.collapsed||(e.renderNodeCount+=n.length-r):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible},e.prototype._updateAncestorsRenderNodeCount=function(e,t){if(0!==t)while(e)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent},e.prototype._filterNode=function(e,t){var n=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof n?(e.filterData=void 0,n?1:0):S(n)?(e.filterData=n.data,L(n.visibility)):(e.filterData=void 0,L(n))},e.prototype.getTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return t;var n=e[0],i=e.slice(1);if(n<0||n>t.children.length)throw new Error("Invalid tree location");return this.getTreeNode(i,t.children[n])},e.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),n=t.parentNode,i=t.listIndex,o=t.revealed,r=t.visible,s=e[e.length-1];if(s<0||s>n.children.length)throw new Error("Invalid tree location");var a=n.children[s];return{node:a,listIndex:i,revealed:o,visible:r&&a.visible}},e.prototype.getParentNodeWithListIndex=function(e,t,n,i,o){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0);var r=e[0],s=e.slice(1);if(r<0||r>t.children.length)throw new Error("Invalid tree location");for(var a=0;a<r;a++)n+=t.children[a].renderNodeCount;return i=i&&!t.collapsed,o=o&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:i,visible:o}:this.getParentNodeWithListIndex(s,t.children[r],n+1,i,o)},e.prototype.getNode=function(e){return void 0===e&&(e=[]),this.getTreeNode(e)},e.prototype.getNodeLocation=function(e){var t=[];while(e.parent)t.push(e.parent.children.indexOf(e)),e=e.parent;return t.reverse()},e.prototype.getParentNodeLocation=function(e){return e.length<=1?[]:Object(_["t"])(e)[0]},e}(),N=n("5fe7"),D=n("30db"),k=n("4035"),I=n("49d9"),E=n("be5f"),M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),T=function(){return T=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)};function P(e){if(e instanceof b["a"]){var t=e.elements;return new b["a"](t.map(function(e){return e.element}))}return e}var R=function(){function e(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=r["a"].None}return e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(function(e){return e.element}))},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(P(e),t)},e.prototype.onDragOver=function(e,t,n,i,o){var r=this;void 0===o&&(o=!0);var s=this.dnd.onDragOver(P(e),t&&t.element,n,i),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return s;if(a&&"boolean"!==typeof s&&s.autoExpand&&(this.autoExpandDisposable=Object(N["g"])(function(){var e=r.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),r.autoExpandNode=void 0},500)),"boolean"===typeof s||!s.accept||"undefined"===typeof s.bubble){if(!o){var u="boolean"===typeof s?s:s.accept,l="boolean"===typeof s?void 0:s.effect;return{accept:u,effect:l,feedback:[n]}}return s}if(1===s.bubble){var c=t.parent,d=this.modelProvider(),h=c&&d.getListIndex(d.getNodeLocation(c));return this.onDragOver(e,c,h,i,!1)}var p=this.modelProvider(),f=p.getNodeLocation(t),g=p.getListIndex(f),m=p.getListRenderCount(f);return T({},s,{feedback:Object(_["r"])(g,g+m)})},e.prototype.drop=function(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(P(e),t&&t.element,n,i)},e}();function A(e,t){return t&&T({},t,{identityProvider:t.identityProvider&&{getId:function(e){return t.identityProvider.getId(e.element)}},dnd:t.dnd&&new R(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return t.multipleSelectionController.isSelectionSingleChangeEvent(T({},e,{element:e.element}))},isSelectionRangeChangeEvent:function(e){return t.multipleSelectionController.isSelectionRangeChangeEvent(T({},e,{element:e.element}))}},accessibilityProvider:t.accessibilityProvider&&{getAriaLabel:function(e){return t.accessibilityProvider.getAriaLabel(e.element)},getAriaLevel:function(e){return e.depth}},keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&T({},t.keyboardNavigationLabelProvider,{getKeyboardNavigationLabel:function(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:t.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(e){return e.parent.visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1}}})}var F,j=function(){function e(e){this.delegate=e}return e.prototype.getHeight=function(e){return this.delegate.getHeight(e.element)},e.prototype.getTemplateId=function(e){return this.delegate.getTemplateId(e.element)},e.prototype.hasDynamicHeight=function(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)},e.prototype.setDynamicHeight=function(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)},e}();(function(e){e["None"]="none",e["OnHover"]="onHover",e["Always"]="always"})(F||(F={}));var W=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.onDidChange=e,this._elements=t,this.disposables=new r["b"],e(function(e){return n._elements=e},null,this.disposables)}return Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposables.dispose()},e}(),V=function(){function e(t,n,i,o){void 0===o&&(o={}),this.renderer=t,this.activeNodes=i,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=e.DefaultIndent,this._renderIndentGuides=F.None,this.renderedIndentGuides=new E["a"],this.activeIndentNodes=new Set,this.indentGuidesDisposable=r["a"].None,this.disposables=[],this.templateId=t.templateId,this.updateOptions(o),g["b"].map(n,function(e){return e.node})(this.onDidChangeNodeTwistieState,this,this.disposables),t.onDidChangeTwistieState&&t.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return e.prototype.updateOptions=function(e){if(void 0===e&&(e={}),"undefined"!==typeof e.indent&&(this.indent=Object(I["a"])(e.indent,0,40)),"undefined"!==typeof e.renderIndentGuides){var t=e.renderIndentGuides;if(t!==this._renderIndentGuides)if(this._renderIndentGuides=t,t){var n=new r["b"];this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,n),this.indentGuidesDisposable=n,this._onDidChangeActiveNodes(this.activeNodes.elements)}else this.indentGuidesDisposable.dispose()}},e.prototype.renderTemplate=function(e){var t=Object(i["m"])(e,Object(i["a"])(".monaco-tl-row")),n=Object(i["m"])(t,Object(i["a"])(".monaco-tl-indent")),o=Object(i["m"])(t,Object(i["a"])(".monaco-tl-twistie")),s=Object(i["m"])(t,Object(i["a"])(".monaco-tl-contents")),a=this.renderer.renderTemplate(s);return{container:e,indent:n,twistie:o,indentGuidesDisposable:r["a"].None,templateData:a}},e.prototype.renderElement=function(t,n,i,o){"number"===typeof o&&(this.renderedNodes.set(t,{templateData:i,height:o}),this.renderedElements.set(t.element,t));var r=e.DefaultIndent+(t.depth-1)*this.indent;i.twistie.style.marginLeft=r+"px",i.indent.style.width=r+this.indent-16+"px",this.renderTwistie(t,i),"number"===typeof o&&this.renderIndentGuides(t,i),this.renderer.renderElement(t,n,i.templateData,o)},e.prototype.disposeElement=function(e,t,n,i){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,i),"number"===typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.onDidChangeTwistieState=function(e){var t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)},e.prototype.onDidChangeNodeTwistieState=function(e){var t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))},e.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),Object(i["R"])(t.twistie,"collapsible",e.collapsible),Object(i["R"])(t.twistie,"collapsed",e.collapsible&&e.collapsed),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")},e.prototype.renderIndentGuides=function(e,t){var n=this;if(Object(i["p"])(t.indent),t.indentGuidesDisposable.dispose(),this._renderIndentGuides!==F.None){var o=new r["b"],s=e,a=function(){var e=s.parent,a=Object(i["a"])(".indent-guide",{style:"width: "+u.indent+"px"});u.activeIndentNodes.has(e)&&Object(i["f"])(a,"active"),0===t.indent.childElementCount?t.indent.appendChild(a):t.indent.insertBefore(a,t.indent.firstElementChild),u.renderedIndentGuides.add(e,a),o.add(Object(r["h"])(function(){return n.renderedIndentGuides.delete(e,a)})),s=e},u=this;while(s.parent&&s.parent.parent)a();t.indentGuidesDisposable=o}},e.prototype._onDidChangeActiveNodes=function(e){var t=this;if(this._renderIndentGuides!==F.None){var n=new Set;e.forEach(function(e){e.collapsible&&e.children.length>0&&!e.collapsed?n.add(e):e.parent&&n.add(e.parent)}),this.activeIndentNodes.forEach(function(e){n.has(e)||t.renderedIndentGuides.forEach(e,function(e){return Object(i["I"])(e,"active")})}),n.forEach(function(e){t.activeIndentNodes.has(e)||t.renderedIndentGuides.forEach(e,function(e){return Object(i["f"])(e,"active")})}),this.activeIndentNodes=n}},e.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),this.disposables=Object(r["f"])(this.disposables)},e.DefaultIndent=8,e}(),B=function(){function e(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=[],e.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(e.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pattern",{set:function(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()},enumerable:!0,configurable:!0}),e.prototype.filter=function(e,t){if(this._filter){var n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;var i=void 0;if(i="boolean"===typeof n?n?1:0:S(n)?L(n.visibility):n,0===i)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:w["a"].Default,visibility:!0};var o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),r=o&&o.toString();if("undefined"===typeof r)return{data:w["a"].Default,visibility:!0};var s=Object(w["d"])(this._pattern,this._lowercasePattern,0,r,r.toLowerCase(),0,!0);return s?(this._matchCount++,{data:s,visibility:!0}):this.tree.options.filterOnType?2:{data:w["a"].Default,visibility:!0}},e.prototype.reset=function(){this._totalCount=0,this._matchCount=0},e.prototype.dispose=function(){this.disposables=Object(r["f"])(this.disposables)},e}(),H=function(){function e(e,t,n,o,r){this.tree=e,this.view=n,this.filter=o,this.keyboardNavigationLabelProvider=r,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new g["a"],this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new g["a"],this.enabledDisposables=[],this.disposables=[],this.domNode=Object(i["a"])(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(y["a"])(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(i["m"])(n.getHTMLElement(),Object(i["a"])(".monaco-list-type-filter-message")),this.labelDomNode=Object(i["m"])(this.domNode,Object(i["a"])("span.label"));var a=Object(i["m"])(this.domNode,Object(i["a"])(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Object(i["m"])(a,Object(i["a"])("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(y["a"])(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(i["m"])(a,Object(i["a"])("button.clear")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(s["a"])("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){e.simpleKeyboardNavigation?this.disable():this.enable(),"undefined"!==typeof e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},e.prototype.enable=function(){var e=this;if(!this._enabled){var t=this.keyboardNavigationLabelProvider.mightProducePrintableCharacter?function(t){return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter(t)}:function(e){return Object(o["f"])(e)},n=g["b"].chain(Object(y["a"])(this.view.getHTMLElement(),"keydown")).filter(function(t){return!z(t.target)||t.target===e.filterOnTypeDomNode}).map(function(e){return new m["a"](e)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return e.automaticKeyboardNavigation||e.triggered}).filter(function(n){return t(n)||(e.pattern.length>0||e.triggered)&&(9===n.keyCode||1===n.keyCode)&&!n.altKey&&!n.ctrlKey&&!n.metaKey||1===n.keyCode&&(D["d"]?n.altKey&&!n.metaKey:n.ctrlKey)&&!n.shiftKey}).forEach(function(e){e.stopPropagation(),e.preventDefault()}).event,i=Object(y["a"])(this.clearDomNode,"click");g["b"].chain(g["b"].any(n,i)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables=Object(r["f"])(this.enabledDisposables),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)},e.prototype.onEventOrInput=function(e){"string"===typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(D["d"]?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)},e.prototype.onInput=function(e){var t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,function(e){return!w["a"].isDefault(e.filterData)});var n=this.tree.getFocus();if(n.length>0){var i=n[0];null===this.tree.getRelativeTop(i)&&this.tree.reveal(i,.5)}this.render(),e||(this.triggered=!1)},e.prototype.onDragStart=function(){var e=this,t=this.view.getHTMLElement(),n=Object(i["x"])(t).left,o=t.clientWidth,s=o/2,a=this.domNode.clientWidth,u=[],l=this.positionClassName,c=function(){switch(l){case"nw":e.domNode.style.top="4px",e.domNode.style.left="4px";break;case"ne":e.domNode.style.top="4px",e.domNode.style.left=o-a-6+"px";break}},d=function(e){e.preventDefault();var t=e.screenX-n;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),l=t<s?"nw":"ne",c()},h=function(){e.positionClassName=l,e.domNode.className="monaco-list-type-filter "+e.positionClassName,e.domNode.style.top=null,e.domNode.style.left=null,Object(r["f"])(u)};c(),Object(i["I"])(this.domNode,l),Object(i["f"])(this.domNode,"dragging"),u.push(Object(r["h"])(function(){return Object(i["I"])(e.domNode,"dragging")})),Object(y["a"])(document,"dragover")(d,null,u),Object(y["a"])(this.domNode,"dragend")(h,null,u),v["c"].CurrentDragAndDropData=new v["b"]("vscode-ui"),u.push(Object(r["h"])(function(){return v["c"].CurrentDragAndDropData=void 0}))},e.prototype.onDidSpliceModel=function(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())},e.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},e.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(s["a"])("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(s["a"])("enable filter on type","Enable Filter on Type")},e.prototype.render=function(){var e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(s["a"])("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(i["R"])(this.domNode,"no-matches",e),this.domNode.title=Object(s["a"])("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},e.prototype.shouldAllowFocus=function(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||(this.filter.totalCount>0&&this.filter.matchCount<=1||!w["a"].isDefault(e.filterData))},e.prototype.dispose=function(){this.disable(),this._onDidChangePattern.dispose(),this.disposables=Object(r["f"])(this.disposables)},e}();function z(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function U(e){return{elements:e.elements.map(function(e){return e.element}),browserEvent:e.browserEvent}}function K(e,t){t(e),e.children.forEach(function(e){return K(e,t)})}var q=function(){function e(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new g["a"],this.onDidChange=this._onDidChange.event}return Object.defineProperty(e.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t){Object(_["g"])(this.nodes,e)||this._set(e,!1,t)},e.prototype._set=function(e,t,n){if(this.nodes=e.slice(),this.elements=void 0,this._nodeSet=void 0,!t){var i=this;this._onDidChange.fire({get elements(){return i.get()},browserEvent:n})}},e.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(e){return e.element})),this.elements.slice()},e.prototype.getNodes=function(){return this.nodes},e.prototype.has=function(e){return this.nodeSet.has(e)},e.prototype.onDidModelSplice=function(e){var t=this,n=e.insertedNodes,i=e.deletedNodes;if(!this.identityProvider){var o=this.createNodeSet(),r=function(e){return o.delete(e)};return i.forEach(function(e){return K(e,r)}),void this.set(Object(k["e"])(o))}var s=new Set,a=function(e){return s.add(t.identityProvider.getId(e.element).toString())};i.forEach(function(e){return K(e,a)});var u=new Map,l=function(e){return u.set(t.identityProvider.getId(e.element).toString(),e)};n.forEach(function(e){return K(e,l)});for(var c=[],d=!0,h=0,p=this.nodes;h<p.length;h++){var f=p[h],g=this.identityProvider.getId(f.element).toString(),m=s.has(g);if(m){var v=u.get(g);v?c.push(v):d=!1}else c.push(f)}this._set(c,d)},e.prototype.createNodeSet=function(){for(var e=new Set,t=0,n=this.nodes;t<n.length;t++){var i=n[t];e.add(i)}return e},e}(),G=function(e){function t(t,n){var i=e.call(this,t)||this;return i.tree=n,i}return M(t,e),t.prototype.onPointer=function(t){if(!z(t.browserEvent.target)){var n=t.element;if(!n)return e.prototype.onPointer.call(this,t);if(this.isSelectionRangeChangeEvent(t)||this.isSelectionSingleChangeEvent(t))return e.prototype.onPointer.call(this,t);var o=Object(i["C"])(t.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&2!==t.browserEvent.detail&&!o)return e.prototype.onPointer.call(this,t);var r=!1;if(r="function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(n.element):!!this.tree.expandOnlyOnTwistieClick,r&&!o)return e.prototype.onPointer.call(this,t);var s=this.tree.model,a=s.getNodeLocation(n),u=t.browserEvent.altKey;s.setCollapsed(a,void 0,u),r&&o||e.prototype.onPointer.call(this,t)}},t.prototype.onDoubleClick=function(t){var n=Object(i["C"])(t.browserEvent.target,"monaco-tl-twistie");n||e.prototype.onDoubleClick.call(this,t)},t}(o["c"]),Z=function(e){function t(t,n,i,o,r,s){var a=e.call(this,t,n,i,s)||this;return a.focusTrait=o,a.selectionTrait=r,a}return M(t,e),t.prototype.createMouseController=function(e){return new G(this,e.tree)},t.prototype.splice=function(t,n,i){var o=this;if(void 0===i&&(i=[]),e.prototype.splice.call(this,t,n,i),0!==i.length){var r=[],s=[];i.forEach(function(e,n){o.focusTrait.has(e)&&r.push(t+n),o.selectionTrait.has(e)&&s.push(t+n)}),r.length>0&&e.prototype.setFocus.call(this,Object(_["f"])(e.prototype.getFocus.call(this).concat(r))),s.length>0&&e.prototype.setSelection.call(this,Object(_["f"])(e.prototype.getSelection.call(this).concat(s)))}},t.prototype.setFocus=function(t,n,i){var o=this;void 0===i&&(i=!1),e.prototype.setFocus.call(this,t,n),i||this.focusTrait.set(t.map(function(e){return o.element(e)}),n)},t.prototype.setSelection=function(t,n,i){var o=this;void 0===i&&(i=!1),e.prototype.setSelection.call(this,t,n),i||this.selectionTrait.set(t.map(function(e){return o.element(e)}),n)},t}(o["b"]),Y=function(){function e(e,t,n,o){var r,s=this;void 0===o&&(o={}),this._options=o,this.eventBufferer=new g["c"],this.disposables=[],this._onWillRefilter=new g["a"],this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new g["a"];var a,u=new j(t),l=new g["f"],c=new g["f"],d=new W(c.event);if(this.disposables.push(d),this.renderers=n.map(function(e){return new V(e,l.event,d,o)}),(r=this.disposables).push.apply(r,this.renderers),o.keyboardNavigationLabelProvider&&(a=new B(this,o.keyboardNavigationLabelProvider,o.filter),o=T({},o,{filter:a}),this.disposables.push(a)),this.focus=new q(o.identityProvider),this.selection=new q(o.identityProvider),this.view=new Z(e,u,this.renderers,this.focus,this.selection,T({},A(function(){return s.model},o),{tree:this})),this.model=this.createModel(this.view,o),l.input=this.model.onDidChangeCollapseState,this.model.onDidSplice(function(e){s.focus.onDidModelSplice(e),s.selection.onDidModelSplice(e)},null,this.disposables),c.input=g["b"].map(g["b"].any(this.focus.onDidChange,this.selection.onDidChange,this.model.onDidSplice),function(){return s.focus.getNodes().concat(s.selection.getNodes())}),!1!==o.keyboardSupport){var h=g["b"].chain(this.view.onKeyDown).filter(function(e){return!z(e.target)}).map(function(e){return new m["a"](e)});h.filter(function(e){return 15===e.keyCode}).on(this.onLeftArrow,this,this.disposables),h.filter(function(e){return 17===e.keyCode}).on(this.onRightArrow,this,this.disposables),h.filter(function(e){return 10===e.keyCode}).on(this.onSpace,this,this.disposables)}o.keyboardNavigationLabelProvider&&(this.typeFilterController=new H(this,this.model,this.view,a,o.keyboardNavigationLabelProvider),this.focusNavigationFilter=function(e){return s.typeFilterController.shouldAllowFocus(e)},this.disposables.push(this.typeFilterController)),this.styleElement=Object(i["s"])(this.view.getHTMLElement()),Object(i["R"])(this.getHTMLElement(),"always",this._options.renderIndentGuides===F.Always)}return Object.defineProperty(e.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpen",{get:function(){return g["b"].map(this.view.onDidOpen,U)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return"undefined"===typeof this._options.openOnSingleClick||this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandOnlyOnTwistieClick",{get:function(){return"undefined"!==typeof this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=T({},this._options,e);for(var t=0,n=this.renderers;t<n.length;t++){var o=n[t];o.updateOptions(e)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(i["R"])(this.getHTMLElement(),"always",this._options.renderIndentGuides===F.Always)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(e){this.view.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domFocus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.style=function(e){var t="."+this.view.domId,n=[];e.treeIndentGuidesStroke&&(n.push(".monaco-list"+t+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+t+".always .monaco-tl-indent > .indent-guide { border-color: "+e.treeIndentGuidesStroke.transparent(.4)+"; }"),n.push(".monaco-list"+t+" .monaco-tl-indent > .indent-guide.active { border-color: "+e.treeIndentGuidesStroke+"; }"));var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i),this.view.style(e)},e.prototype.getNode=function(e){return this.model.getNode(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!0,t)},e.prototype.expand=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!1,t)},e.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},e.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},e.prototype.setSelection=function(e,t){var n=this,i=e.map(function(e){return n.model.getNode(e)});this.selection.set(i,t);var o=e.map(function(e){return n.model.getListIndex(e)}).filter(function(e){return e>-1});this.view.setSelection(o,t,!0)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.setFocus=function(e,t){var n=this,i=e.map(function(e){return n.model.getNode(e)});this.focus.set(i,t);var o=e.map(function(e){return n.model.getListIndex(e)}).filter(function(e){return e>-1});this.view.setFocus(o,t,!0)},e.prototype.focusNext=function(e,t,n,i){void 0===e&&(e=1),void 0===t&&(t=!1),void 0===i&&(i=this.focusNavigationFilter),this.view.focusNext(e,t,n,i)},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.reveal=function(e,t){this.model.expandTo(e);var n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)},e.prototype.getRelativeTop=function(e){var t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)},e.prototype.onLeftArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),o=this.model.setCollapsed(i,!0);if(!o){var r=this.model.getParentNodeLocation(i);if(null===r)return;var s=this.model.getListIndex(r);this.view.reveal(s),this.view.setFocus([s])}}},e.prototype.onRightArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),o=this.model.setCollapsed(i,!1);if(!o){if(!n.children.some(function(e){return e.visible}))return;var r=this.view.getFocus()[0],s=r+1;this.view.reveal(s),this.view.setFocus([s])}}},e.prototype.onSpace=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),o=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,o)}},e.prototype.dispose=function(){this.disposables=Object(r["f"])(this.disposables),this.view.dispose()},e}(),X=function(){return X=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},X.apply(this,arguments)},$=function(){function e(e,t){void 0===t&&(t={}),this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new x(e,null,t),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,t.sorter&&(this.sorter={compare:function(e,n){return t.sorter.compare(e.element,n.element)}}),this.identityProvider=t.identityProvider}return e.prototype.setChildren=function(e,t,n,i){var o=this.getElementLocation(e);return this._setChildren(o,this.preserveCollapseState(t),n,i)},e.prototype._setChildren=function(e,t,n,i){var o=this,r=new Set,s=new Set,a=function(e){if(r.add(e.element),o.nodes.set(e.element,e),o.identityProvider){var t=o.identityProvider.getId(e.element).toString();s.add(t),o.nodesByIdentity.set(t,e)}n&&n(e)},u=function(e){if(r.has(e.element)||o.nodes.delete(e.element),o.identityProvider){var t=o.identityProvider.getId(e.element).toString();s.has(t)||o.nodesByIdentity.delete(t)}i&&i(e)},l=this.model.splice(e.concat([0]),Number.MAX_VALUE,t,a,u);return l},e.prototype.preserveCollapseState=function(e){var t=this,n=e?Object(C["f"])(e):C["d"].empty();return this.sorter&&(n=C["d"].fromArray(C["d"].collect(n).sort(this.sorter.compare.bind(this.sorter)))),C["d"].map(n,function(e){var n=t.nodes.get(e.element);if(!n&&t.identityProvider){var i=t.identityProvider.getId(e.element).toString();n=t.nodesByIdentity.get(i)}if(!n)return X({},e,{children:t.preserveCollapseState(e.children)});var o="boolean"===typeof e.collapsible?e.collapsible:n.collapsible,r="undefined"!==typeof e.collapsed?e.collapsed:n.collapsed;return X({},e,{collapsible:o,collapsed:r,children:t.preserveCollapseState(e.children)})})},e.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},e.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},e.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},e.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},e.prototype.setCollapsed=function(e,t,n){var i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)},e.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},e.prototype.refilter=function(){this.model.refilter()},e.prototype.getNode=function(e){if(void 0===e&&(e=null),null===e)return this.model.getNode(this.model.rootRef);var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return t},e.prototype.getNodeLocation=function(e){return e.element},e.prototype.getParentNodeLocation=function(e){if(null===e)throw new Error("Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return t.parent.element},e.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return this.model.getNodeLocation(t)},e}(),Q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),J=function(e){function t(t,n,i,o){return void 0===o&&(o={}),e.call(this,t,n,i,o)||this}return Q(t,e),Object.defineProperty(t.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),t.prototype.setChildren=function(e,t){return this.model.setChildren(e,t)},t.prototype.rerender=function(e){void 0!==e?this.model.rerender(e):this.view.rerender()},t.prototype.createModel=function(e,t){return new $(e,t)},t}(Y),ee=n("fdcc"),te=function(){return te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},te.apply(this,arguments)},ne=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},ie=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function oe(e){return te({},e,{children:[],loading:!1,stale:!0,slow:!1,collapsedByDefault:void 0})}function re(e,t){return!!t.parent&&(t.parent===e||re(e,t.parent))}function se(e,t){return e===t||re(e,t)||re(t,e)}var ae,ue=function(){function e(e){this.node=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.node.parent&&new e(this.node.parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.node.children.map(function(t){return new e(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),e}(),le=function(){function e(e,t){this.renderer=e,this.onDidChangeTwistieState=t,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}return e.prototype.renderTemplate=function(e){var t=this.renderer.renderTemplate(e);return{templateData:t}},e.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(new ue(e),t,n.templateData,i)},e.prototype.renderTwistie=function(e,t){return Object(i["R"])(t,"loading",e.slow),!1},e.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(new ue(e),t,n.templateData,i)},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(r["f"])(this.disposables)},e}();function ce(e){return{browserEvent:e.browserEvent,elements:e.elements.map(function(e){return e.element})}}function de(e){if(e instanceof b["a"]){var t=e.elements;return new b["a"](t.map(function(e){return e.element}))}return e}(function(e){e[e["Refresh"]=0]="Refresh",e[e["Expand"]=1]="Expand"})(ae||(ae={}));var he=function(){function e(e){this.dnd=e}return e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(function(e){return e.element}))},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(de(e),t)},e.prototype.onDragOver=function(e,t,n,i,o){return void 0===o&&(o=!0),this.dnd.onDragOver(de(e),t&&t.element,n,i)},e.prototype.drop=function(e,t,n,i){this.dnd.drop(de(e),t&&t.element,n,i)},e}();function pe(e){return e&&te({},e,{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:function(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new he(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:function(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(te({},t,{element:t.element}))},isSelectionRangeChangeEvent:function(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(te({},t,{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&{getAriaLabel:function(t){return e.accessibilityProvider.getAriaLabel(t.element)}},filter:e.filter&&{filter:function(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&te({},e.keyboardNavigationLabelProvider,{getKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:function(t){return e.expandOnlyOnTwistieClick(t.element)},ariaProvider:void 0,additionalScrollHeight:e.additionalScrollHeight})}function fe(e,t){var n;return n=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?C["d"].map(C["d"].fromArray(e.children),function(e){return fe(e,t)}):[],collapsible:e.hasChildren,collapsed:n}}function ge(e,t){t(e),e.children.forEach(function(e){return ge(e,t)})}var me=function(){function e(e,t,n,i,o){var r=this;void 0===o&&(o={}),this.dataSource=i,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new g["a"],this._onDidChangeNodeSlowState=new g["a"],this.disposables=[],this.identityProvider=o.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof o.autoExpandSingleChildren&&o.autoExpandSingleChildren,this.sorter=o.sorter,this.collapseByDefault=o.collapseByDefault;var s=new j(t),a=n.map(function(e){return new le(e,r._onDidChangeNodeSlowState.event)}),u=pe(o)||{};this.tree=new J(e,s,a,u),this.root=oe({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=te({},this.root,{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(e.prototype,"onDidChangeFocus",{get:function(){return g["b"].map(this.tree.onDidChangeFocus,ce)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeSelection",{get:function(){return g["b"].map(this.tree.onDidChangeSelection,ce)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpen",{get:function(){return g["b"].map(this.tree.onDidOpen,ce)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},e.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(e){this.tree.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.tree.domFocus()},e.prototype.layout=function(e,t){this.tree.layout(e,t)},e.prototype.style=function(e){this.tree.style(e)},e.prototype.getInput=function(){return this.root.element},e.prototype.setInput=function(e,t){return ne(this,void 0,void 0,function(){var n;return ie(this,function(i){switch(i.label){case 0:return this.refreshPromises.forEach(function(e){return e.cancel()}),this.refreshPromises.clear(),this.root.element=e,n=t&&{viewState:t,focus:[],selection:[]},[4,this.updateChildren(e,!0,n)];case 1:return i.sent(),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop),[2]}})})},e.prototype.updateChildren=function(e,t,n){return void 0===e&&(e=this.root.element),void 0===t&&(t=!0),ne(this,void 0,void 0,function(){return ie(this,function(i){switch(i.label){case 0:if("undefined"===typeof this.root.element)throw new Error("Tree input not set");return this.root.loading?[4,this.subTreeRefreshPromises.get(this.root)]:[3,3];case 1:return i.sent(),[4,g["b"].toPromise(this._onDidRender.event)];case 2:i.sent(),i.label=3;case 3:return[4,this.refreshAndRenderNode(this.getDataNode(e),t,ae.Refresh,n)];case 4:return i.sent(),[2]}})})},e.prototype.rerender=function(e){if(void 0!==e&&e!==this.root.element){var t=this.getDataNode(e);this.tree.rerender(t)}else this.tree.rerender()},e.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)},e.prototype.expand=function(e,t){return void 0===t&&(t=!1),ne(this,void 0,void 0,function(){var n,i;return ie(this,function(o){switch(o.label){case 0:if("undefined"===typeof this.root.element)throw new Error("Tree input not set");return this.root.loading?[4,this.subTreeRefreshPromises.get(this.root)]:[3,3];case 1:return o.sent(),[4,g["b"].toPromise(this._onDidRender.event)];case 2:o.sent(),o.label=3;case 3:return n=this.getDataNode(e),n===this.root||n.loading||this.tree.isCollapsed(n)?(i=this.tree.expand(n===this.root?null:n,t),n.loading?[4,this.subTreeRefreshPromises.get(n)]:[3,6]):[2,!1];case 4:return o.sent(),[4,g["b"].toPromise(this._onDidRender.event)];case 5:o.sent(),o.label=6;case 6:return[2,i]}})})},e.prototype.setSelection=function(e,t){var n=this,i=e.map(function(e){return n.getDataNode(e)});this.tree.setSelection(i,t)},e.prototype.getSelection=function(){var e=this.tree.getSelection();return e.map(function(e){return e.element})},e.prototype.setFocus=function(e,t){var n=this,i=e.map(function(e){return n.getDataNode(e)});this.tree.setFocus(i,t)},e.prototype.getFocus=function(){var e=this.tree.getFocus();return e.map(function(e){return e.element})},e.prototype.reveal=function(e,t){this.tree.reveal(this.getDataNode(e),t)},e.prototype.getDataNode=function(e){var t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Error("Data tree node not found: "+e);return t},e.prototype.refreshAndRenderNode=function(e,t,n,i){return ne(this,void 0,void 0,function(){var o,r;return ie(this,function(s){switch(s.label){case 0:return[4,this.refreshNode(e,t,i)];case 1:return s.sent(),this.render(e,i),e!==this.root&&this.autoExpandSingleChildren&&n===ae.Expand?(o=this.tree.getNode(e),r=o.children.filter(function(e){return e.visible}),1!==r.length?[3,3]:[4,this.tree.expand(r[0].element,!1)]):[3,3];case 2:s.sent(),s.label=3;case 3:return[2]}})})},e.prototype.refreshNode=function(e,t,n){return ne(this,void 0,void 0,function(){var i,o=this;return ie(this,function(r){switch(r.label){case 0:if(this.subTreeRefreshPromises.forEach(function(r,s){!i&&se(s,e)&&(i=r.then(function(){return o.refreshNode(e,t,n)}))}),i)return[2,i];i=this.doRefreshSubTree(e,t,n),this.subTreeRefreshPromises.set(e,i),r.label=1;case 1:return r.trys.push([1,,3,4]),[4,i];case 2:return r.sent(),[3,4];case 3:return this.subTreeRefreshPromises.delete(e),[7];case 4:return[2]}})})},e.prototype.doRefreshSubTree=function(e,t,n){return ne(this,void 0,void 0,function(){var i,o=this;return ie(this,function(r){switch(r.label){case 0:e.loading=!0,r.label=1;case 1:return r.trys.push([1,,4,5]),[4,this.doRefreshNode(e,t,n)];case 2:return i=r.sent(),e.stale=!1,[4,Promise.all(i.map(function(e){return o.doRefreshSubTree(e,t,n)}))];case 3:return r.sent(),[3,5];case 4:return e.loading=!1,[7];case 5:return[2]}})})},e.prototype.doRefreshNode=function(e,t,n){return ne(this,void 0,void 0,function(){var i,o,r,s,a=this;return ie(this,function(u){switch(u.label){case 0:e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren?(o=Object(N["l"])(800),o.then(function(){e.slow=!0,a._onDidChangeNodeSlowState.fire(e)},function(e){return null}),i=this.doGetChildren(e).finally(function(){return o.cancel()})):i=Promise.resolve([]),u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,i];case 2:return r=u.sent(),[2,this.setChildren(e,r,t,n)];case 3:if(s=u.sent(),e!==this.root&&this.tree.collapse(e===this.root?null:e),Object(ee["d"])(s))return[2,[]];throw s;case 4:return e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e)),[7];case 5:return[2]}})})},e.prototype.doGetChildren=function(e){var t=this,n=this.refreshPromises.get(e);return n||(n=Object(N["f"])(function(){return ne(t,void 0,void 0,function(){var t;return ie(this,function(n){switch(n.label){case 0:return[4,this.dataSource.getChildren(e.element)];case 1:return t=n.sent(),this.sorter&&t.sort(this.sorter.compare.bind(this.sorter)),[2,t]}})})}),this.refreshPromises.set(e,n),n.finally(function(){return t.refreshPromises.delete(e)}))},e.prototype._onDidChangeCollapseState=function(e){var t=e.node,n=e.deep;!t.collapsed&&t.element.stale&&(n?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1,ae.Expand).catch(ee["e"]))},e.prototype.setChildren=function(e,t,n,i){var o,r=this;if(0===e.children.length&&0===t.length)return[];for(var s=new Map,a=new Map,u=0,l=e.children;u<l.length;u++){var c=l[u];s.set(c.element,c),this.identityProvider&&a.set(c.id,this.tree.getNode(c))}for(var d=[],h=t.map(function(t){var o=!!r.dataSource.hasChildren(t);if(!r.identityProvider){var u=oe({element:t,parent:e,hasChildren:o});return o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(u.collapsedByDefault=!1,d.push(u)),u}var l=r.identityProvider.getId(t).toString(),c=a.get(l);if(c){u=c.element;return s.delete(u.element),r.nodes.delete(u.element),r.nodes.set(t,u),u.element=t,u.hasChildren=o,n?c.collapsed?ge(u,function(e){return e.stale=!0}):d.push(u):o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(u.collapsedByDefault=!1,d.push(u)),u}var h=oe({element:t,parent:e,id:l,hasChildren:o});return i&&i.viewState.focus&&i.viewState.focus.indexOf(l)>-1&&i.focus.push(h),i&&i.viewState.selection&&i.viewState.selection.indexOf(l)>-1&&i.selection.push(h),i&&i.viewState.expanded&&i.viewState.expanded.indexOf(l)>-1?d.push(h):o&&r.collapseByDefault&&!r.collapseByDefault(t)&&(h.collapsedByDefault=!1,d.push(h)),h}),p=0,f=Object(k["e"])(s);p<f.length;p++){var g=f[p];ge(g,function(e){return r.nodes.delete(e.element)})}for(var m=0,v=h;m<v.length;m++){c=v[m];this.nodes.set(c.element,c)}return(o=e.children).splice.apply(o,[0,e.children.length].concat(h)),d},e.prototype.render=function(e,t){var n=e.children.map(function(e){return fe(e,t)});this.tree.setChildren(e===this.root?null:e,n),this._onDidRender.fire()},e.prototype.dispose=function(){Object(r["f"])(this.disposables)},e}(),ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_e=function(e){function t(t,n,i,o,r){void 0===r&&(r={});var s=e.call(this,t,n,i,r)||this;return s.dataSource=o,s.identityProvider=r.identityProvider,s}return ve(t,e),t.prototype.createModel=function(e,t){return new $(e,t)},t}(Y),be=n("4779");n.d(t,"a",function(){return Oe}),n.d(t,"b",function(){return xe}),n.d(t,"c",function(){return Je});var ye,we=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ce=function(){return Ce=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ce.apply(this,arguments)},Se=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Le=function(e,t){return function(n,i){t(n,i,e)}},Oe=Object(c["c"])("listService"),xe=function(){function e(e){this.lists=[],this._lastFocusedWidget=void 0}return Object.defineProperty(e.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;if(this.lists.some(function(t){return t.widget===e}))throw new Error("Cannot register the same widget multiple times");var i={widget:e,extraContextKeys:t};return this.lists.push(i),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Object(r["e"])(e.onDidFocus(function(){return n._lastFocusedWidget=e}),Object(r["h"])(function(){return n.lists.splice(n.lists.indexOf(i),1)}),e.onDidDispose(function(){n.lists=n.lists.filter(function(e){return e!==i}),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)}))},e=Se([Le(0,l["c"])],e),e}(),Ne=new l["d"]("listFocus",!0),De=new l["d"]("listSupportsMultiselect",!0),ke=new l["d"]("listHasSelectionOrFocus",!1),Ie=new l["d"]("listDoubleSelection",!1),Ee=new l["d"]("listMultiSelection",!1),Me=new l["d"]("listSupportsKeyboardNavigation",!0),Te="listAutomaticKeyboardNavigation",Pe=new l["d"](Te,!0),Re=!1;function Ae(e,t){var n=e.createScoped(t.getHTMLElement());return Ne.bindTo(n),n}var Fe="workbench.list.multiSelectModifier",je="workbench.list.openMode",We="workbench.list.horizontalScrolling",Ve="workbench.list.keyboardNavigation",Be="workbench.list.automaticKeyboardNavigation",He="workbench.tree.indent",ze="workbench.tree.renderIndentGuides";function Ue(e){return Object(a["f"])(e,We,"workbench.tree.horizontalScrolling")}function Ke(e){return"alt"===e.getValue(Fe)}function qe(e){return"doubleClick"!==e.getValue(je)}var Ge,Ze=function(e){function t(t){var n=e.call(this)||this;return n.configurationService=t,n.useAltAsMultipleSelectionModifier=Ke(t),n.registerListeners(),n}return we(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration(Fe)&&(e.useAltAsMultipleSelectionModifier=Ke(e.configurationService))}))},t.prototype.isSelectionSingleChangeEvent=function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(o["e"])(e)},t.prototype.isSelectionRangeChangeEvent=function(e){return Object(o["d"])(e)},t}(r["a"]),Ye=function(e){function t(t,n){var i=e.call(this)||this;return i.configurationService=t,i.existingOpenController=n,i.openOnSingleClick=qe(t),i.registerListeners(),i}return we(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration(je)&&(e.openOnSingleClick=qe(e.configurationService))}))},t.prototype.shouldOpen=function(e){if(e instanceof MouseEvent){var t=0===e.button,n=2===e.detail;return!(t&&!this.openOnSingleClick&&!n)&&(!(!t&&1!==e.button)&&(!this.existingOpenController||this.existingOpenController.shouldOpen(e)))}return!this.existingOpenController||this.existingOpenController.shouldOpen(e)},t}(r["a"]);function Xe(e,t,n){var i=new r["b"],o=Ce({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){var s=new Ze(t);o.multipleSelectionController=s,i.add(s)}var a=new Ye(t,e.openController);if(o.openController=a,i.add(a),e.keyboardNavigationLabelProvider){var u=e.keyboardNavigationLabelProvider;o.keyboardNavigationLabelProvider={getKeyboardNavigationLabel:function(e){return u.getKeyboardNavigationLabel(e)},mightProducePrintableCharacter:function(e){return n.mightProducePrintableCharacter(e)}}}return[o,i]}function $e(){return Ge||(Ge=Object(i["s"])()),Ge}function Qe(e,t){var n=!1;return function(i){if(n)return n=!1,!1;var o=t.softDispatch(i,e);return o&&o.enterChord?(n=!0,!1):(n=!1,!0)}}(function(e){function t(t,n,i,o,r,s,a,u,l,c){var d=this,h=et(t,o,r,a,u,l,c),p=h.options,f=h.getAutomaticKeyboardNavigation,g=h.disposable;return d=e.call(this,t,n,i,p)||this,d.disposables.push(g),d.internals=new tt(d,p,f,r,s,a,u,c),d.disposables.push(d.internals),d}we(t,e),t=Se([Le(4,l["c"]),Le(5,Oe),Le(6,f["c"]),Le(7,a["a"]),Le(8,d["a"]),Le(9,be["b"])],t)})(J),function(e){function t(t,n,i,o,r,s,a,u,l,c,d){var h=this,p=et(t,r,s,u,l,c,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return h=e.call(this,t,n,i,o,f)||this,h.disposables.push(m),h.internals=new tt(h,f,g,s,a,u,l,d),h.disposables.push(h.internals),h}we(t,e),t=Se([Le(5,l["c"]),Le(6,Oe),Le(7,f["c"]),Le(8,a["a"]),Le(9,d["a"]),Le(10,be["b"])],t)}(_e);var Je=function(e){function t(t,n,i,o,r,s,a,u,l,c,d){var h=this,p=et(t,r,s,u,l,c,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return h=e.call(this,t,n,i,o,f)||this,h.disposables.push(m),h.internals=new tt(h,f,g,s,a,u,l,d),h.disposables.push(h.internals),h}return we(t,e),Object.defineProperty(t.prototype,"contextKeyService",{get:function(){return this.internals.contextKeyService},enumerable:!0,configurable:!0}),t=Se([Le(5,l["c"]),Le(6,Oe),Le(7,f["c"]),Le(8,a["a"]),Le(9,d["a"]),Le(10,be["b"])],t),t}(me);function et(e,t,n,i,r,s,a){Me.bindTo(n),Re||(Pe.bindTo(n),Re=!0);var u=function(){var e=n.getContextKeyValue(Te);return e&&(e=r.getValue(Be)),e},l=2===a.getAccessibilitySupport(),c=l?"simple":r.getValue(Ve),d="undefined"!==typeof t.horizontalScrolling?t.horizontalScrolling:Ue(r),h=qe(r),f=Xe(t,r,s),g=f[0],m=f[1],v=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:u,disposable:m,options:Ce({keyboardSupport:!1,styleController:new o["a"]($e())},Object(p["e"])(i.getTheme(),p["f"]),g,{indent:r.getValue(He),renderIndentGuides:r.getValue(ze),automaticKeyboardNavigation:u(),simpleKeyboardNavigation:"simple"===c,filterOnType:"filter"===c,horizontalScrolling:d,openOnSingleClick:h,keyboardNavigationEventFilter:Qe(e,s),additionalScrollHeight:v})}}var tt=function(){function e(e,t,n,i,o,r,s,a){var u=this;this.disposables=[],this.contextKeyService=Ae(i,e);var l=De.bindTo(this.contextKeyService);l.set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=ke.bindTo(this.contextKeyService),this.hasDoubleSelection=Ie.bindTo(this.contextKeyService),this.hasMultiSelection=Ee.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Ke(s);var c=new Set;c.add(Te);var d=function(){var t=2===a.getAccessibilitySupport(),n=t?"simple":s.getValue(Ve);e.updateOptions({simpleKeyboardNavigation:"simple"===n,filterOnType:"filter"===n})};this.disposables.push(this.contextKeyService,o.register(e),Object(p["b"])(e,r),e.onDidChangeSelection(function(){var t=e.getSelection(),n=e.getFocus();u.hasSelectionOrFocus.set(t.length>0||n.length>0),u.hasMultiSelection.set(t.length>1),u.hasDoubleSelection.set(2===t.length)}),e.onDidChangeFocus(function(){var t=e.getSelection(),n=e.getFocus();u.hasSelectionOrFocus.set(t.length>0||n.length>0)}),s.onDidChangeConfiguration(function(t){if(t.affectsConfiguration(je)&&e.updateOptions({openOnSingleClick:qe(s)}),t.affectsConfiguration(Fe)&&(u._useAltAsMultipleSelectionModifier=Ke(s)),t.affectsConfiguration(He)){var i=s.getValue(He);e.updateOptions({indent:i})}if(t.affectsConfiguration(ze)){var o=s.getValue(ze);e.updateOptions({renderIndentGuides:o})}t.affectsConfiguration(Ve)&&d(),t.affectsConfiguration(Be)&&e.updateOptions({automaticKeyboardNavigation:n()})}),this.contextKeyService.onDidChangeContext(function(t){t.affectsSome(c)&&e.updateOptions({automaticKeyboardNavigation:n()})}),a.onDidChangeAccessibilitySupport(function(){return d()}))}return e.prototype.dispose=function(){this.disposables=Object(r["f"])(this.disposables)},e=Se([Le(3,l["c"]),Le(4,Oe),Le(5,f["c"]),Le(6,a["a"]),Le(7,be["b"])],e),e}(),nt=h["a"].as(u["a"].Configuration);nt.registerConfiguration({id:"workbench",order:7,title:Object(s["a"])("workbenchConfigurationTitle","Workbench"),type:"object",properties:(ye={},ye[Fe]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(s["a"])("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(s["a"])("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(s["a"])({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},ye[je]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(s["a"])({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},ye[We]={type:"boolean",default:!1,description:Object(s["a"])("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},ye["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(s["a"])("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(s["a"])("deprecated","This setting is deprecated, please use '{0}' instead.",We)},ye[He]={type:"number",default:8,minimum:0,maximum:40,description:Object(s["a"])("tree indent setting","Controls tree indentation in pixels.")},ye[ze]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(s["a"])("render tree indent guides","Controls whether the tree should render indent guides.")},ye[Ve]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(s["a"])("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(s["a"])("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(s["a"])("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(s["a"])("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},ye[Be]={type:"boolean",default:!0,markdownDescription:Object(s["a"])("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},ye)})},"94a7":function(e,t,n){},"958f":function(e,t,n){"use strict";n.r(t);var i,o=n("dff7"),r=n("308f"),s=n("a666"),a=n("4fc3"),u=n("b400"),l=n("6a89"),c=n("b2cc"),d=n("b7d0"),h=n("c101"),p=(n("fe86"),n("11f7")),f=n("303e"),g=n("ceb8"),m=n("1898"),v=n("debc"),_=n("e8e3"),b=n("e5aa"),y=n("82c9"),w=n("7121"),C=n("4b76"),S=encodeURIComponent('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.58318 2.02842C9.96435 2.16331 11.2561 2.77279 12.2383 3.75307C13.3643 4.87923 13.9978 6.40584 14 7.99829C14.0004 9.38617 13.5196 10.7313 12.6396 11.8045C11.7595 12.8778 10.5345 13.6127 9.17333 13.8841C7.81215 14.1556 6.39895 13.9467 5.1745 13.2931C3.95005 12.6394 2.99008 11.5815 2.45814 10.2995C1.92619 9.0175 1.85517 7.59072 2.25717 6.26222C2.65917 4.93373 3.50933 3.7857 4.66282 3.0137C5.8163 2.24171 7.20177 1.89351 8.58318 2.02842ZM8.68038 1.03316C10.292 1.19055 11.7993 1.90184 12.9453 3.04585C14.2587 4.35938 14.9976 6.14013 15 7.99764C15.0005 9.61695 14.4396 11.1864 13.4129 12.4385C12.3861 13.6907 10.9569 14.5482 9.36889 14.8648C7.78084 15.1815 6.13211 14.9378 4.70359 14.1752C3.27506 13.4127 2.1551 12.1784 1.53449 10.6828C0.913887 9.18708 0.831027 7.52251 1.30003 5.97259C1.76903 4.42268 2.76089 3.08331 4.10662 2.18265C5.45236 1.28199 7.06873 0.875761 8.68038 1.03316ZM5.52498 5L8.00004 7.47506L10.4751 5L11.1822 5.70711L8.70714 8.18217L11.1818 10.6569L10.4747 11.364L8.00004 8.88927L5.52535 11.364L4.81824 10.6569L7.29293 8.18217L4.81787 5.70711L5.52498 5Z" fill="'),L=encodeURIComponent('"/></svg>'),O=encodeURIComponent('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.58318 2.02842C9.96435 2.16331 11.2561 2.77279 12.2383 3.75307C13.3643 4.87923 13.9978 6.40584 14 7.99829C14.0004 9.38617 13.5196 10.7313 12.6396 11.8045C11.7595 12.8778 10.5345 13.6127 9.17333 13.8841C7.81215 14.1556 6.39895 13.9467 5.1745 13.2931C3.95005 12.6394 2.99008 11.5815 2.45814 10.2995C1.92619 9.0175 1.85517 7.59072 2.25717 6.26222C2.65917 4.93373 3.50933 3.7857 4.66282 3.0137C5.8163 2.24171 7.20177 1.89351 8.58318 2.02842ZM8.68038 1.03316C10.292 1.19055 11.7993 1.90184 12.9453 3.04585C14.2587 4.35938 14.9976 6.14013 15 7.99764C15.0005 9.61695 14.4396 11.1864 13.4129 12.4385C12.3861 13.6907 10.9569 14.5482 9.36889 14.8648C7.78084 15.1815 6.13211 14.9378 4.70359 14.1752C3.27506 13.4127 2.1551 12.1784 1.53449 10.6828C0.913887 9.18708 0.831027 7.52251 1.30003 5.97259C1.76903 4.42268 2.76089 3.08331 4.10662 2.18265C5.45236 1.28199 7.06873 0.875761 8.68038 1.03316ZM5.52498 5L8.00004 7.47506L10.4751 5L11.1822 5.70711L8.70714 8.18217L11.1818 10.6569L10.4747 11.364L8.00004 8.88927L5.52535 11.364L4.81824 10.6569L7.29293 8.18217L4.81787 5.70711L5.52498 5Z" fill="'),x=encodeURIComponent('"/></svg>'),N=encodeURIComponent('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.12 13.9725L15 12.5L9.37927 2H7.61924L1.9985 12.5L2.87852 13.9725H14.12ZM2.87852 12.9725L8.49925 2.47249L14.12 12.9725H2.87852ZM7.98952 6H8.98802V10H7.98952V6ZM7.98952 11H8.98802V12H7.98952V11Z" fill="'),D=encodeURIComponent('"/></svg>'),k=encodeURIComponent('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.12 13.9725L15 12.5L9.37927 2H7.61924L1.9985 12.5L2.87852 13.9725H14.12ZM2.87852 12.9725L8.49925 2.47249L14.12 12.9725H2.87852ZM7.98952 6H8.98802V10H7.98952V6ZM7.98952 11H8.98802V12H7.98952V11Z" fill="'),I=encodeURIComponent('"/></svg>'),E=encodeURIComponent('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3 7.5C3 4.46243 5.46243 2 8.5 2C11.5376 2 14 4.46243 14 7.5C14 10.5376 11.5376 13 8.5 13C5.46243 13 3 10.5376 3 7.5ZM2 7.5C2 3.91015 4.91015 1 8.5 1C12.0899 1 15 3.91015 15 7.5C15 11.0899 12.0899 14 8.5 14C4.91015 14 2 11.0899 2 7.5ZM8 4V5H9V4H8ZM8 6L8 10H9L9 6H8Z" fill="'),M=encodeURIComponent('"/></svg>'),T=encodeURIComponent('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3 7.5C3 4.46243 5.46243 2 8.5 2C11.5376 2 14 4.46243 14 7.5C14 10.5376 11.5376 13 8.5 13C5.46243 13 3 10.5376 3 7.5ZM2 7.5C2 3.91015 4.91015 1 8.5 1C12.0899 1 15 3.91015 15 7.5C15 11.0899 12.0899 14 8.5 14C4.91015 14 2 11.0899 2 7.5ZM8 4V5H9V4H8ZM8 6L8 10H9L9 6H8Z" fill="'),P=encodeURIComponent('"/></svg>');function R(e,t){return"."+i.className(e).split(" ").join(".")+' { background: url("data:image/svg+xml,'+i.getSVGData(e,t)+'") center center no-repeat; height: 16px; width: 16px; }'}(function(e){function t(e,t){switch(e){case C["a"].Ignore:var n=t.type===d["d"]?g["a"].fromHex("#75BEFF"):g["a"].fromHex("#007ACC");return t.type===d["d"]?E+encodeURIComponent(n.toString())+M:T+encodeURIComponent(n.toString())+P;case C["a"].Info:var i=t.type===d["d"]?g["a"].fromHex("#007ACC"):g["a"].fromHex("#75BEFF");return t.type===d["d"]?E+encodeURIComponent(i.toString())+M:T+encodeURIComponent(i.toString())+P;case C["a"].Warning:var o=t.type===d["d"]?g["a"].fromHex("#DDB100"):g["a"].fromHex("#fc0");return t.type===d["d"]?N+encodeURIComponent(o.toString())+D:k+encodeURIComponent(o.toString())+I;case C["a"].Error:var r=t.type===d["d"]?g["a"].fromHex("#A1260D"):g["a"].fromHex("#F48771");return t.type===d["d"]?S+encodeURIComponent(r.toString())+L:O+encodeURIComponent(r.toString())+x}return""}function n(e){switch(e){case C["a"].Ignore:return"severity-icon severity-ignore";case C["a"].Info:return"severity-icon severity-info";case C["a"].Warning:return"severity-icon severity-warning";case C["a"].Error:return"severity-icon severity-error"}return""}e.getSVGData=t,e.className=n})(i||(i={})),Object(d["f"])(function(e,t){t.addRule(R(C["a"].Error,e)),t.addRule(R(C["a"].Warning,e)),t.addRule(R(C["a"].Info,e)),t.addRule(R(C["a"].Ignore,e))});var A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),F=function(){function e(e,t,n){var i=this;this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=[],this._editor=t;var o=document.createElement("div");o.className="descriptioncontainer",o.setAttribute("aria-live","assertive"),o.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),p["f"](this._messageBlock,"message"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.push(p["k"](this._relatedBlock,"click",function(e){e.preventDefault();var t=i._relatedDiagnostics.get(e.target);t&&n(t)})),this._scrollable=new m["b"](o,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.push(this._scrollable.onScroll(function(e){o.style.left="-"+e.scrollLeft+"px",o.style.top="-"+e.scrollTop+"px"})),this._disposables.push(this._scrollable)}return e.prototype.dispose=function(){Object(s["f"])(this._disposables)},e.prototype.update=function(e){var t=e.source,n=e.message,i=e.relatedInformation,o=e.code,r=n.split(/\r\n|\r|\n/g);this._lines=r.length,this._longestLineLength=0;for(var s=0,a=r;s<a.length;s++){var u=a[s];this._longestLineLength=Math.max(u.length,this._longestLineLength)}p["p"](this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var l=this._messageBlock,c=0,d=r;c<d.length;c++){u=d[c];l=document.createElement("div"),l.innerText=u,""===u&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l)}if(t||o){var h=document.createElement("span");if(p["f"](h,"details"),l.appendChild(h),t){var f=document.createElement("span");f.innerText=t,p["f"](f,"source"),h.appendChild(f)}if(o){var g=document.createElement("span");g.innerText="("+o+")",p["f"](g,"code"),h.appendChild(g)}}if(p["p"](this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(_["n"])(i)){var m=this._relatedBlock.appendChild(document.createElement("div"));m.style.paddingTop=Math.floor(.66*this._editor.getConfiguration().lineHeight)+"px",this._lines+=1;for(var b=0,y=i;b<y.length;b++){var w=y[b],C=document.createElement("div"),S=document.createElement("a");p["f"](S,"filename"),S.innerHTML=Object(v["a"])(w.resource)+"("+w.startLineNumber+", "+w.startColumn+"): ",S.title=Object(v["b"])(w.resource,void 0),this._relatedDiagnostics.set(S,w);var L=document.createElement("span");L.innerText=w.message,C.appendChild(S),C.appendChild(L),this._lines+=1,m.appendChild(C)}}var O=this._editor.getConfiguration().fontInfo,x=Math.ceil(O.typicalFullwidthCharacterWidth*this._longestLineLength*.75),N=O.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:x,scrollHeight:N})},e.prototype.layout=function(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})},e.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},e}(),j=function(e){function t(t,n,i){var o=e.call(this,t,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return o.actions=n,o._themeService=i,o._callOnDispose=new s["b"],o._onDidSelectRelatedInformation=new r["a"],o.onDidSelectRelatedInformation=o._onDidSelectRelatedInformation.event,o._severity=u["c"].Warning,o._backgroundColor=g["a"].white,o._applyTheme(i.getTheme()),o._callOnDispose.add(i.onThemeChange(o._applyTheme.bind(o))),o.create(),o}return A(t,e),t.prototype._applyTheme=function(e){this._backgroundColor=e.getColor(K);var t=H;this._severity===u["c"].Warning?t=z:this._severity===u["c"].Info&&(t=U);var n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(w["d"]),secondaryHeadingColor:e.getColor(w["e"])})},t.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),e.prototype._applyStyles.call(this)},t.prototype.dispose=function(){this._callOnDispose.dispose(),e.prototype.dispose.call(this)},t.prototype._fillHead=function(t){e.prototype._fillHead.call(this,t),this._actionbarWidget.push(this.actions,{label:!1,icon:!0})},t.prototype._fillTitleIcon=function(e){this._icon=p["m"](e,p["a"](""))},t.prototype._getActionBarOptions=function(){return{orientation:1}},t.prototype._fillBody=function(e){var t=this;this._parentContainer=e,p["f"](e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new F(this._container,this.editor,function(e){return t._onDidSelectRelatedInformation.fire(e)}),this._disposables.add(this._message)},t.prototype.show=function(e,t){throw new Error("call showAtMarker")},t.prototype.showAtMarker=function(t,n,r){this._container.classList.remove("stale"),this._message.update(t),this._severity=t.severity,this._applyTheme(this._themeService.getTheme());var s=l["a"].lift(t),a=this.editor.getPosition(),c=a&&s.containsPosition(a)?a:s.getStartPosition();e.prototype.show.call(this,c,this.computeRequiredHeight());var d=this.editor.getModel();if(d){var h=r>1?o["a"]("problems","{0} of {1} problems",n,r):o["a"]("change","{0} of {1} problem",n,r);this.setTitle(Object(y["b"])(d.uri),h)}this._icon.className=i.className(u["c"].toSeverity(this._severity)),this.editor.revealPositionInCenter(c,0)},t.prototype.updateMarker=function(e){this._container.classList.remove("stale"),this._message.update(e)},t.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},t.prototype._doLayoutBody=function(t,n){e.prototype._doLayoutBody.call(this,t,n),this._heightInPixel=t,this._message.layout(t,n),this._container.style.height=t+"px"},t.prototype._onWidth=function(e){this._message.layout(this._heightInPixel,e)},t.prototype._relayout=function(){e.prototype._relayout.call(this,this.computeRequiredHeight())},t.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},t}(b["c"]),W=Object(f["Eb"])(f["q"],f["p"]),V=Object(f["Eb"])(f["M"],f["L"]),B=Object(f["Eb"])(f["G"],f["F"]),H=Object(f["Kb"])("editorMarkerNavigationError.background",{dark:W,light:W,hc:W},o["a"]("editorMarkerNavigationError","Editor marker navigation widget error color.")),z=Object(f["Kb"])("editorMarkerNavigationWarning.background",{dark:V,light:V,hc:V},o["a"]("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),U=Object(f["Kb"])("editorMarkerNavigationInfo.background",{dark:B,light:B,hc:B},o["a"]("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),K=Object(f["Kb"])("editorMarkerNavigation.background",{dark:"#2D2D30",light:g["a"].white,hc:"#0C141F"},o["a"]("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(d["f"])(function(e,t){var n=e.getColor(f["Ub"]);n&&t.addRule(".monaco-editor .marker-widget a { color: "+n+"; }")});var q=n("3742"),G=n("5717"),Z=n("fdcc"),Y=n("7e32"),X=n("f070"),$=n("6dec");n.d(t,"MarkerController",function(){return oe}),n.d(t,"NextMarkerAction",function(){return se});var Q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),J=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},ee=function(e,t){return function(n,i){t(n,i,e)}},te=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},ne=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},ie=function(){function e(e,t){var n=this;this._toUnbind=new s["b"],this._editor=e,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new r["a"],this._onMarkerSetChanged=new r["a"],this.setMarkers(t),this._toUnbind.add(this._editor.onDidDispose(function(){return n.dispose()})),this._toUnbind.add(this._editor.onDidChangeCursorPosition(function(){n._ignoreSelectionChange||n.currentMarker&&n._editor.getPosition()&&l["a"].containsPosition(n.currentMarker,n._editor.getPosition())||(n._nextIdx=-1)}))}return Object.defineProperty(e.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),e.prototype.setMarkers=function(e){var t=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(re.compareMarker),this._nextIdx=t?Math.max(-1,Object(_["c"])(this._markers,t,re.compareMarker)):-1,this._onMarkerSetChanged.fire(this)},e.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},e.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i<this._markers.length;i++){var o=l["a"].lift(this._markers[i]);if(o.isEmpty()&&this._editor.getModel()){var r=this._editor.getModel().getWordAtPosition(o.getStartPosition());r&&(o=new l["a"](o.startLineNumber,r.startColumn,o.startLineNumber,r.endColumn))}if(n&&(o.containsPosition(n)||n.isBeforeOrEqual(o.getStartPosition()))){this._nextIdx=i,t=!0;break}}t||(this._nextIdx=e?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(e.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(e){var t=this._nextIdx;this._nextIdx=-1,e&&(this._nextIdx=this.indexOf(e)),this._nextIdx!==t&&this._onCurrentMarkerChanged.fire(e)},enumerable:!0,configurable:!0}),e.prototype.move=function(e,t){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!t;var n=this._nextIdx,i=!1;if(-1===this._nextIdx?this._initIdx(e):e?t||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:i=!0:e||(t||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:i=!0),n!==this._nextIdx){var o=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(o)}return i},e.prototype.canNavigate=function(){return this._markers.length>0},e.prototype.findMarkerAtPosition=function(e){for(var t=0,n=this._markers;t<n.length;t++){var i=n[t];if(l["a"].containsPosition(i,e))return i}},Object.defineProperty(e.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return 1+this._markers.indexOf(e)},e.prototype.dispose=function(){this._toUnbind.dispose()},e}(),oe=function(){function e(e,t,n,i,o,r){this._markerService=t,this._contextKeyService=n,this._themeService=i,this._editorService=o,this._keybindingService=r,this._model=null,this._widget=null,this._disposeOnClose=new s["b"],this._editor=e,this._widgetVisible=ce.bindTo(this._contextKeyService)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},e.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},e.prototype.getOrCreateModel=function(){var e=this;if(this._model)return this._model;var t=this._getMarkers();this._model=new ie(this._editor,t),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var n=this._keybindingService.lookupKeybinding(ae.ID),i=this._keybindingService.lookupKeybinding(se.ID),o=[new X["a"](ae.ID,ae.LABEL+(n?" ("+n.getLabel()+")":""),"show-previous-problem chevron-up",this._model.canNavigate(),function(){return te(e,void 0,void 0,function(){return ne(this,function(e){return this._model&&this._model.move(!1,!0),[2]})})}),new X["a"](se.ID,se.LABEL+(i?" ("+i.getLabel()+")":""),"show-next-problem chevron-down",this._model.canNavigate(),function(){return te(e,void 0,void 0,function(){return ne(this,function(e){return this._model&&this._model.move(!0,!0),[2]})})})];this._widget=new j(this._editor,o,this._themeService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return e._cleanUp()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var r=0,s=o;r<s.length;r++){var a=s[r];this._disposeOnClose.add(a)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation(function(t){e._editorService.openCodeEditor({resource:t.resource,options:{pinned:!0,revealIfOpened:!0,selection:l["a"].lift(t).collapseToStart()}},e._editor).then(void 0,Z["e"]),e.closeMarkersNavigation(!1)})),this._disposeOnClose.add(this._editor.onDidChangeModel(function(){return e._cleanUp()})),this._disposeOnClose.add(this._model.onCurrentMarkerChanged(function(t){t&&e._model?e._model.withoutWatchingEditorPosition(function(){e._widget&&e._model&&e._widget.showAtMarker(t,e._model.indexOf(t),e._model.total)}):e._cleanUp()})),this._disposeOnClose.add(this._model.onMarkerSetChanged(function(){if(e._widget&&e._widget.position&&e._model){var t=e._model.findMarkerAtPosition(e._widget.position);t?e._widget.updateMarker(t):e._widget.showStale()}})),this._model},e.prototype.closeMarkersNavigation=function(e){void 0===e&&(e=!0),this._cleanUp(),e&&this._editor.focus()},e.prototype.show=function(e){var t=this.getOrCreateModel();t.currentMarker=e},e.prototype._onMarkerChanged=function(e){var t=this._editor.getModel();t&&this._model&&e.some(function(e){return t.uri.toString()===e.toString()})&&this._model.setMarkers(this._getMarkers())},e.prototype._getMarkers=function(){var e=this._editor.getModel();return e?this._markerService.read({resource:e.uri,severities:u["c"].Error|u["c"].Warning|u["c"].Info}):[]},e.ID="editor.contrib.markerController",e=J([ee(1,u["b"]),ee(2,a["c"]),ee(3,d["c"]),ee(4,G["a"]),ee(5,$["a"])],e),e}(),re=function(e){function t(t,n,i){var o=e.call(this,i)||this;return o._isNext=t,o._multiFile=n,o}return Q(t,e),t.prototype.run=function(e,n){var i=this,o=e.get(u["b"]),r=e.get(G["a"]),s=oe.get(n);if(!s)return Promise.resolve(void 0);var a=s.getOrCreateModel(),l=a.move(this._isNext,!this._multiFile);if(!l||!this._multiFile)return Promise.resolve(void 0);var c=o.read({severities:u["c"].Error|u["c"].Warning|u["c"].Info}).sort(t.compareMarker);if(0===c.length)return Promise.resolve(void 0);var d=n.getModel();if(!d)return Promise.resolve(void 0);var h=a.currentMarker||{resource:d.uri,severity:u["c"].Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},p=Object(_["c"])(c,h,t.compareMarker);p<0?(p=~p,p%=c.length):p=this._isNext?(p+1)%c.length:(p+c.length-1)%c.length;var f=c[p];return f.resource.toString()===d.uri.toString()?(a.move(this._isNext,!0),Promise.resolve(void 0)):(s.closeMarkersNavigation(),r.openCodeEditor({resource:f.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:f}},n).then(function(e){if(e)return e.getAction(i.id).run()}))},t.compareMarker=function(e,t){var n=Object(q["d"])(e.resource.toString(),t.resource.toString());return 0===n&&(n=u["c"].compare(e.severity,t.severity)),0===n&&(n=l["a"].compareRangesUsingStarts(e,t)),n},t}(c["b"]),se=function(e){function t(){return e.call(this,!0,!1,{id:t.ID,label:t.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:h["a"].writable,kbOpts:{kbExpr:h["a"].editorTextFocus,primary:578,weight:100}})||this}return Q(t,e),t.ID="editor.action.marker.next",t.LABEL=o["a"]("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),t}(re),ae=function(e){function t(){return e.call(this,!1,!1,{id:t.ID,label:t.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:h["a"].writable,kbOpts:{kbExpr:h["a"].editorTextFocus,primary:1602,weight:100}})||this}return Q(t,e),t.ID="editor.action.marker.prev",t.LABEL=o["a"]("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),t}(re),ue=function(e){function t(){return e.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:o["a"]("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:h["a"].writable,kbOpts:{kbExpr:h["a"].focus,primary:66,weight:100}})||this}return Q(t,e),t}(re),le=function(e){function t(){return e.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:o["a"]("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:h["a"].writable,kbOpts:{kbExpr:h["a"].focus,primary:1090,weight:100}})||this}return Q(t,e),t}(re);Object(c["h"])(oe),Object(c["f"])(se),Object(c["f"])(ae),Object(c["f"])(ue),Object(c["f"])(le);var ce=new a["d"]("markersNavigationVisible",!1),de=c["c"].bindToContribution(oe.get);Object(c["g"])(new de({id:"closeMarkersNavigation",precondition:ce,handler:function(e){return e.closeMarkersNavigation()},kbOpts:{weight:150,kbExpr:h["a"].focus,primary:9,secondary:[1033]}})),Y["c"].appendMenuItem(16,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:o["a"]({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),Y["c"].appendMenuItem(16,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:o["a"]({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2})},"96b9":function(e,t,n){},9768:function(e,t,n){"use strict";n.d(t,"a",function(){return T});var i=n("e8e3"),o=n("3742"),r=n("3d37"),s=n("32b8"),a=n("4035"),u=n("5fe7"),l="**",c="/",d="[/\\\\]",h="[^/\\\\]",p=/\//g;function f(e){switch(e){case 0:return"";case 1:return h+"*?";default:return"(?:"+d+"|"+h+"+"+d+"|"+d+h+"+)*?"}}function g(e,t){if(!e)return[];for(var n=[],i=!1,o=!1,r="",s=0,a=e;s<a.length;s++){var u=a[s];switch(u){case t:if(!i&&!o){n.push(r),r="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":o=!0;break;case"]":o=!1;break}r+=u}return r&&n.push(r),n}function m(e){if(!e)return"";var t="",n=g(e,c);if(n.every(function(e){return e===l}))t=".*";else{var i=!1;n.forEach(function(e,r){if(e!==l){for(var s=!1,a="",u=!1,p="",v=0,_=e;v<_.length;v++){var b=_[v];if("}"!==b&&s)a+=b;else if(!u||"]"===b&&p)switch(b){case"{":s=!0;continue;case"[":u=!0;continue;case"}":var y=g(a,","),w="(?:"+y.map(function(e){return m(e)}).join("|")+")";t+=w,s=!1,a="";break;case"]":t+="["+p+"]",u=!1,p="";break;case"?":t+=h;continue;case"*":t+=f(1);continue;default:t+=o["p"](b)}else{var C=void 0;C="-"===b?b:"^"!==b&&"!"!==b||p?b===c?"":o["p"](b):"^",p+=C}}r<n.length-1&&(n[r+1]!==l||r+2<n.length)&&(t+=d),i=!1}else i||(t+=f(2),i=!0)})}return t}var v=/^\*\*\/\*\.[\w\.-]+$/,_=/^\*\*\/([\w\.-]+)\/?$/,b=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,y=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,w=/^\*\*((\/[\w\.-]+)+)\/?$/,C=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,S=new a["a"](1e4),L=function(){return!1},O=function(){return null};function x(e,t){if(!e)return O;var n;n="string"!==typeof e?e.pattern:e,n=n.trim();var i,r=n+"_"+!!t.trimForExclusions,s=S.get(r);if(s)return N(s,e);if(v.test(n)){var a=n.substr(4);s=function(e,t){return"string"===typeof e&&o["m"](e,a)?n:null}}else s=(i=_.exec(D(n,t)))?k(i[1],n):(t.trimForExclusions?y:b).test(n)?I(n,t):(i=w.exec(D(n,t)))?E(i[1].substr(1),n,!0):(i=C.exec(D(n,t)))?E(i[1],n,!1):M(n);return S.set(r,s),N(s,e)}function N(e,t){return"string"===typeof t?e:function(n,i){return r["a"](n,t.base)?e(s["relative"](t.base,n),i):null}}function D(e,t){return t.trimForExclusions&&o["m"](e,"/**")?e.substr(0,e.length-2):e}function k(e,t){var n="/"+e,i="\\"+e,r=function(r,s){return"string"!==typeof r?null:s?s===e?t:null:r===e||o["m"](r,n)||o["m"](r,i)?t:null},s=[e];return r.basenames=s,r.patterns=[t],r.allBasenames=s,r}function I(e,t){var n=j(e.slice(1,-1).split(",").map(function(e){return x(e,t)}).filter(function(e){return e!==O}),e),o=n.length;if(!o)return O;if(1===o)return n[0];var r=function(t,i){for(var o=0,r=n.length;o<r;o++)if(n[o](t,i))return e;return null},s=i["i"](n,function(e){return!!e.allBasenames});s&&(r.allBasenames=s.allBasenames);var a=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);return a.length&&(r.allPaths=a),r}function E(e,t,n){var i=s["sep"]!==s["posix"].sep?e.replace(p,s["sep"]):e,r=s["sep"]+i,a=n?function(e,n){return"string"!==typeof e||e!==i&&!o["m"](e,r)?null:t}:function(e,n){return"string"===typeof e&&e===i?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function M(e){try{var t=new RegExp("^"+m(e)+"$");return function(n,i){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(n){return O}}function T(e,t,n){return!(!e||"string"!==typeof t)&&P(e)(t,void 0,n)}function P(e,t){if(void 0===t&&(t={}),!e)return L;if("string"===typeof e||R(e)){var n=x(e,t);if(n===O)return L;var i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return A(e,t)}function R(e){var t=e;return t&&"string"===typeof t.base&&"string"===typeof t.pattern}function A(e,t){var n=j(Object.getOwnPropertyNames(e).map(function(n){return F(n,e[n],t)}).filter(function(e){return e!==O})),o=n.length;if(!o)return O;if(!n.some(function(e){return!!e.requiresSiblings})){if(1===o)return n[0];var r=function(e,t){for(var i=0,o=n.length;i<o;i++){var r=n[i](e,t);if(r)return r}return null},a=i["i"](n,function(e){return!!e.allBasenames});a&&(r.allBasenames=a.allBasenames);var u=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);return u.length&&(r.allPaths=u),r}var l=function(e,t,i){for(var o=void 0,r=0,a=n.length;r<a;r++){var u=n[r];u.requiresSiblings&&i&&(t||(t=s["basename"](e)),o||(o=t.substr(0,t.length-s["extname"](e).length)));var l=u(e,t,o,i);if(l)return l}return null},c=i["i"](n,function(e){return!!e.allBasenames});c&&(l.allBasenames=c.allBasenames);var d=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);return d.length&&(l.allPaths=d),l}function F(e,t,n){if(!1===t)return O;var i=x(e,n);if(i===O)return O;if("boolean"===typeof t)return i;if(t){var o=t.when;if("string"===typeof o){var r=function(t,n,r,s){if(!s||!i(t,n))return null;var a=o.replace("$(basename)",r),l=s(a);return Object(u["i"])(l)?l.then(function(t){return t?e:null}):l?e:null};return r.requiresSiblings=!0,r}}return i}function j(e,t){var n=e.filter(function(e){return!!e.basenames});if(n.length<2)return e;var i,o=n.reduce(function(e,t){var n=t.basenames;return n?e.concat(n):e},[]);if(t){i=[];for(var r=0,s=o.length;r<s;r++)i.push(t)}else i=n.reduce(function(e,t){var n=t.patterns;return n?e.concat(n):e},[]);var a=function(e,t){if("string"!==typeof e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break}t=e.substr(n)}var s=o.indexOf(t);return-1!==s?i[s]:null};a.basenames=o,a.patterns=i,a.allBasenames=o;var u=e.filter(function(e){return!e.basenames});return u.push(a),u}},"9c1d":function(e,t,n){"use strict";n("96b9"),n("b768");var i=n("dff7"),o=n("11f7"),r=n("fdcc"),s=n("308f"),a=n("a666"),u=n("b589"),l=n("1ddc"),c=n("b2cc"),d=n("5717"),h=n("6653"),p=n("a60f"),f=n("0f70"),g=n("5d28"),m=n("5fe7"),v=n("30db"),_=n("00a3"),b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toClientCoordinates=function(){return new w(this.x-o["e"].scrollX,this.y-o["e"].scrollY)},e}(),w=function(){function e(e,t){this.clientX=e,this.clientY=t}return e.prototype.toPageCoordinates=function(){return new y(this.clientX+o["e"].scrollX,this.clientY+o["e"].scrollY)},e}(),C=function(){function e(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}return e}();function S(e){var t=o["x"](e);return new C(t.left,t.top,t.width,t.height)}var L=function(e){function t(t,n){var i=e.call(this,t)||this;return i.pos=new y(i.posx,i.posy),i.editorPos=S(n),i}return b(t,e),t}(g["b"]),O=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new L(e,this._editorViewDomNode)},e.prototype.onContextMenu=function(e,t){var n=this;return o["h"](e,"contextmenu",function(e){t(n._create(e))})},e.prototype.onMouseUp=function(e,t){var n=this;return o["h"](e,"mouseup",function(e){t(n._create(e))})},e.prototype.onMouseDown=function(e,t){var n=this;return o["h"](e,"mousedown",function(e){t(n._create(e))})},e.prototype.onMouseLeave=function(e,t){var n=this;return o["i"](e,function(e){t(n._create(e))})},e.prototype.onMouseMoveThrottled=function(e,t,n,i){var r=this,s=function(e,t){return n(e,r._create(t))};return o["j"](e,"mousemove",t,s,i)},e}(),x=function(e){function t(t){var n=e.call(this)||this;return n._editorViewDomNode=t,n._globalMouseMoveMonitor=n._register(new _["a"]),n._keydownListener=null,n}return b(t,e),t.prototype.startMonitoring=function(e,t,n){var i=this;this._keydownListener=o["k"](document,"keydown",function(e){var t=e.toKeybinding();t.isModifierKey()||i._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var r=function(t,n){return e(t,new L(n,i._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(r,t,function(){i._keydownListener.dispose(),n()})},t}(a["a"]),N=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),D=function(e){function t(){var t=e.call(this)||this;return t._shouldRender=!0,t}return N(t,e),t.prototype.shouldRender=function(){return this._shouldRender},t.prototype.forceShouldRender=function(){this._shouldRender=!0},t.prototype.setShouldRender=function(){this._shouldRender=!0},t.prototype.onDidRender=function(){this._shouldRender=!1},t.prototype.onConfigurationChanged=function(e){return!1},t.prototype.onCursorStateChanged=function(e){return!1},t.prototype.onDecorationsChanged=function(e){return!1},t.prototype.onFlushed=function(e){return!1},t.prototype.onFocusChanged=function(e){return!1},t.prototype.onLanguageConfigurationChanged=function(e){return!1},t.prototype.onLineMappingChanged=function(e){return!1},t.prototype.onLinesChanged=function(e){return!1},t.prototype.onLinesDeleted=function(e){return!1},t.prototype.onLinesInserted=function(e){return!1},t.prototype.onRevealRangeRequest=function(e){return!1},t.prototype.onScrollChanged=function(e){return!1},t.prototype.onTokensChanged=function(e){return!1},t.prototype.onTokensColorsChanged=function(e){return!1},t.prototype.onZonesChanged=function(e){return!1},t.prototype.onThemeChanged=function(e){return!1},t.prototype.handleEvents=function(e){for(var t=!1,n=0,i=e.length;n<i;n++){var o=e[n];switch(o.type){case 1:this.onConfigurationChanged(o)&&(t=!0);break;case 2:this.onCursorStateChanged(o)&&(t=!0);break;case 3:this.onDecorationsChanged(o)&&(t=!0);break;case 4:this.onFlushed(o)&&(t=!0);break;case 5:this.onFocusChanged(o)&&(t=!0);break;case 16:this.onLanguageConfigurationChanged(o)&&(t=!0);break;case 6:this.onLineMappingChanged(o)&&(t=!0);break;case 7:this.onLinesChanged(o)&&(t=!0);break;case 8:this.onLinesDeleted(o)&&(t=!0);break;case 9:this.onLinesInserted(o)&&(t=!0);break;case 10:this.onRevealRangeRequest(o)&&(t=!0);break;case 11:this.onScrollChanged(o)&&(t=!0);break;case 12:this.onTokensChanged(o)&&(t=!0);break;case 13:this.onTokensColorsChanged(o)&&(t=!0);break;case 14:this.onZonesChanged(o)&&(t=!0);break;case 15:this.onThemeChanged(o)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(o)}}t&&(this._shouldRender=!0)},t}(a["a"]),k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),I=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._context.addEventHandler(n),n}return k(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t}(D),E=function(){function e(){}return e.write=function(e,t){h["a"],e.setAttribute("data-mprt",String(t))},e.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},e.collect=function(e,t){var n=[],i=0;while(e&&e!==document.body){if(e===t)break;e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement}for(var o=new Uint8Array(i),r=0;r<i;r++)o[r]=n[i-r-1];return o},e}(),M=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),T=function(){function e(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}return e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},e}(),P=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o._viewLines=i,o}return M(t,e),t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},t.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},t}(T),R=function(){function e(e,t){this.lineNumber=e,this.ranges=t}return e}(),A=function(){function e(e,t){this.left=Math.round(e),this.width=Math.round(t)}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e}(),F=function(){function e(e,t){this.left=e,this.width=t}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e.compare=function(e,t){return e.left-t.left},e}(),j=function(){function e(){}return e._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},e._detachRange=function(e,t){e.selectNodeContents(t)},e._readClientRects=function(e,t,n,i,o){var r=this._createRange();try{return r.setStart(e,t),r.setEnd(n,i),r.getClientRects()}catch(s){return null}finally{this._detachRange(r,o)}},e._mergeAdjacentRanges=function(e){if(1===e.length)return[new A(e[0].left,e[0].width)];e.sort(F.compare);for(var t=[],n=0,i=e[0].left,o=e[0].width,r=1,s=e.length;r<s;r++){var a=e[r],u=a.left,l=a.width;i+o+.9>=u?o=Math.max(o,u+l-i):(t[n++]=new A(i,o),i=u,o=l)}return t[n++]=new A(i,o),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];n[i]=new F(Math.max(0,r.left-t),r.width)}return this._mergeAdjacentRanges(n)},e.readHorizontalRanges=function(e,t,n,i,o,r,s){var a=0,u=e.children.length-1;if(a>u)return null;t=Math.min(u,Math.max(a,t)),i=Math.min(u,Math.max(a,i)),t!==i&&i>0&&0===o&&(i--,o=1073741824);var l=e.children[t].firstChild,c=e.children[i].firstChild;if(l&&c||(!l&&0===n&&t>0&&(l=e.children[t-1].firstChild,n=1073741824),!c&&0===o&&i>0&&(c=e.children[i-1].firstChild,o=1073741824)),!l||!c)return null;n=Math.min(l.textContent.length,Math.max(0,n)),o=Math.min(c.textContent.length,Math.max(0,o));var d=this._readClientRects(l,n,c,o,s);return this._createHorizontalRangesFromClientRects(d,r)},e}(),W=n("7416"),V=n("6da2"),B=n("b7d0"),H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),z=function(){return!!v["e"]||!(v["c"]||f["i"]||f["l"])}(),U=f["g"],K=function(){function e(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(e.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),e}(),q=function(){function e(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.canUseHalfwidthRightwardsArrow=e.editor.fontInfo.canUseHalfwidthRightwardsArrow,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}(),G=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(h["b"])(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},e.prototype.onSelectionChanged=function(){return!(!U&&this._options.themeType!==B["b"]&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)},e.prototype.renderLine=function(t,n,i,o){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var r=i.getViewLineRenderingData(t),s=this._options,a=W["a"].filter(r.inlineDecorations,t,r.minColumn,r.maxColumn),u=null;if(U||s.themeType===B["b"]||"selection"===this._options.renderWhitespace)for(var l=i.selections,c=0,d=l;c<d.length;c++){var h=d[c];if(!(h.endLineNumber<t||h.startLineNumber>t)){var p=h.startLineNumber===t?h.startColumn:r.minColumn,f=h.endLineNumber===t?h.endColumn:r.maxColumn;p<f&&("selection"!==this._options.renderWhitespace?a.push(new W["a"](p,f,"inline-selected-text",0)):(u||(u=[]),u.push(new V["b"](p-1,f-1))))}}var g=new V["c"](s.useMonospaceOptimizations,s.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,s.spaceWidth,s.stopRenderingLineAfter,s.renderWhitespace,s.renderControlCharacters,s.fontLigatures,u);if(this._renderedViewLine&&this._renderedViewLine.input.equals(g))return!1;o.appendASCIIString('<div style="top:'),o.appendASCIIString(String(n)),o.appendASCIIString("px;height:"),o.appendASCIIString(String(this._options.lineHeight)),o.appendASCIIString('px;" class="'),o.appendASCIIString(e.CLASS_NAME),o.appendASCIIString('">');var m=Object(V["d"])(g,o);o.appendASCIIString("</div>");var v=null;return z&&r.isBasicASCII&&s.useMonospaceOptimizations&&0===m.containsForeignElements&&r.content.length<300&&g.lineTokens.getCount()<100&&(v=new Z(this._renderedViewLine?this._renderedViewLine.domNode:null,g,m.characterMapping)),v||(v=$(this._renderedViewLine?this._renderedViewLine.domNode:null,g,m.characterMapping,m.containsRTL,m.containsForeignElements)),this._renderedViewLine=v,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==i&&e>i&&t>i?null:(-1!==i&&e>i&&(e=i),-1!==i&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},e.CLASS_NAME="view-line",e}(),Z=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new A(i,o-i)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){var i=t.textContent.length,o=-1;while(t)t=t.previousSibling,o++;var r=this._characterMapping.partDataToCharOffset(o,i,n);return r+1},e}(),Y=function(){function e(e,t,n,i,o){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,s=this._characterMapping.length;r<=s;r++)this._pixelOffsetCache[r]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(e,n);if(-1===i)return null;var o=this._readPixelOffset(t,n);return-1===o?null:[new A(i,o-i)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var i=this._readPixelOffset(e,n);return-1===i?null:[new A(i,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth()}if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)return n;var i=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=i,i}return this._actualReadPixelOffset(e,t)},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=j.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),o=V["a"].getPartIndex(i),r=V["a"].getCharIndex(i),s=j.readHorizontalRanges(this._getReadingTarget(),o,r,o,r,t.clientRectDeltaLeft,t.endNode);return s&&0!==s.length?s[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new A(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=V["a"].getPartIndex(i),r=V["a"].getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),a=V["a"].getPartIndex(s),u=V["a"].getCharIndex(s);return j.readHorizontalRanges(this._getReadingTarget(),o,r,a,u,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){var i=t.textContent.length,o=-1;while(t)t=t.previousSibling,o++;var r=this._characterMapping.partDataToCharOffset(o,i,n);return r+1},e}(),X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype._readVisibleRangesForRange=function(t,n,i){var o=e.prototype._readVisibleRangesForRange.call(this,t,n,i);if(!o||0===o.length||t===n||1===t&&n===this._characterMapping.length)return o;if(!this.input.containsRTL){var r=this._readPixelOffset(n,i);if(-1!==r){var s=o[o.length-1];s.left<r&&(s.width=r-s.left)}}return o},t}(Y),$=function(){return f["m"]?Q:J}();function Q(e,t,n,i,o){return new X(e,t,n,i,o)}function J(e,t,n,i,o){return new Y(e,t,n,i,o)}var ee=n("7061"),te=n("6a89"),ne=n("2e5d"),ie=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),oe=function(){function e(e,t,n,i,o,r){void 0===n&&(n=0),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),this.element=e,this.type=t,this.mouseColumn=n,this.position=i,!o&&i&&(o=new te["a"](i.lineNumber,i.column,i.lineNumber,i.column)),this.range=o,this.detail=r}return e._typeToString=function(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"},e.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail},e.prototype.toString=function(){return e.toString(this)},e}(),re=function(){function e(){}return e.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1]},e.isChildOfViewLines=function(e){return e.length>=4&&3===e[0]&&7===e[3]},e.isStrictChildOfViewLines=function(e){return e.length>4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]},e}(),se=function(){function e(e,t,n){this.model=e.model,this.layoutInfo=e.configuration.editor.layoutInfo,this.viewDomNode=t.viewDomNode,this.lineHeight=e.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=n,this._context=e,this._viewHelper=t}return e.prototype.getZoneAtCoord=function(t){return e.getZoneAtCoord(this._context,t)},e.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var i=n.verticalOffset+n.height/2,o=e.model.getLineCount(),r=null,s=void 0,a=null;return n.afterLineNumber!==o&&(a=new ee["a"](n.afterLineNumber+1,1)),n.afterLineNumber>0&&(r=new ee["a"](n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),s=null===a?r:null===r?a:t<i?r:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:r,positionAfter:a,position:s}}return null},e.prototype.getFullLineRangeAtCoord=function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.model.getLineCount(),n=this._context.model.getLineMaxColumn(t);return{range:new te["a"](t,n,t,n),isAfterLines:!0}}var i=this._context.viewLayout.getLineNumberAtVerticalOffset(e),o=this._context.model.getLineMaxColumn(i);return{range:new te["a"](i,1,i,o),isAfterLines:!1}},e.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)},e.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e)},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.findAttribute=function(t,n){return e._findAttribute(t,n,this._viewHelper.viewDomNode)},e._findAttribute=function(e,t,n){while(e&&e!==document.body){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null},e.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e)},e.prototype.visibleRangeForPosition2=function(e,t){return this._viewHelper.visibleRangeForPosition2(e,t)},e.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)},e.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},e.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},e}(),ae=function(){function e(e,t,n){this.editorPos=t,this.pos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,de._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}return e}(),ue=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r._ctx=t,o?(r.target=o,r.targetPath=E.collect(o,t.viewDomNode)):(r.target=null,r.targetPath=new Uint8Array(0)),r}return ie(t,e),t.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+"\n\ttarget: "+(this.target?this.target.outerHTML:null)},t.prototype.fulfill=function(e,t,n,i){void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null);var o=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(o=ne["a"].visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getOptions().tabSize)+1),new oe(this.target,e,o,t,n,i)},t.prototype.withTarget=function(e){return new t(this._ctx,this.editorPos,this.pos,e)},t}(ae),le={isAfterLines:!0};function ce(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var de=function(){function e(e,t){this._context=e,this._viewHelper=t}return e.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=E.collect(t,this._viewHelper.viewDomNode);return!(!re.isChildOfContentWidgets(n)&&!re.isChildOfOverflowingContentWidgets(n))||!!re.isChildOfOverlayWidgets(n)},e.prototype.createMouseTarget=function(t,n,i,o){var r=new se(this._context,this._viewHelper,t),s=new ue(r,n,i,o);try{var a=e._createMouseTarget(r,s,!1);return a}catch(u){return s.fulfill(0)}},e._createMouseTarget=function(t,n,i){if(null===n.target){if(i)return n.fulfill(0);var o=e._doHitTest(t,n);return o.position?e.createMouseTargetFromHitTestPosition(t,n,o.position.lineNumber,o.position.column):this._createMouseTarget(t,n.withTarget(o.hitTarget),!0)}var r=n,s=null;return s=s||e._hitTestContentWidget(t,r),s=s||e._hitTestOverlayWidget(t,r),s=s||e._hitTestMinimap(t,r),s=s||e._hitTestScrollbarSlider(t,r),s=s||e._hitTestViewZone(t,r),s=s||e._hitTestMargin(t,r),s=s||e._hitTestViewCursor(t,r),s=s||e._hitTestTextArea(t,r),s=s||e._hitTestViewLines(t,r,i),s=s||e._hitTestScrollbar(t,r),s||n.fulfill(0)},e._hitTestContentWidget=function(e,t){if(re.isChildOfContentWidgets(t.targetPath)||re.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},e._hitTestOverlayWidget=function(e,t){if(re.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=e.lastViewCursorsRenderData,i=0,o=n;i<o.length;i++){var r=o[i];if(t.target===r.domNode)return t.fulfill(6,r.position)}if(t.isInContentArea){n=e.lastViewCursorsRenderData;for(var s=t.mouseContentHorizontalOffset,a=t.mouseVerticalOffset,u=0,l=n;u<l.length;u++){r=l[u];if(!(s<r.contentLeft)&&!(s>r.contentLeft+r.width)){var c=e.getVerticalOffsetForLineNumber(r.position.lineNumber);if(c<=a&&a<=c+r.height)return t.fulfill(6,r.position)}}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?8:5;return t.fulfill(i,n.position,null,n)}return null},e._hitTestTextArea=function(e,t){return re.isTextArea(t.targetPath)?t.fulfill(1):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),r={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,r):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,r)))}return null},e._hitTestViewLines=function(t,n,i){if(!re.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var o=t.model.getLineCount(),r=t.model.getLineMaxColumn(o);return n.fulfill(7,new ee["a"](o,r),void 0,le)}if(i){if(re.isStrictChildOfViewLines(n.targetPath)){var s=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.model.getLineLength(s)){var a=t.getLineWidth(s),u=ce(n.mouseContentHorizontalOffset-a);return n.fulfill(7,new ee["a"](s,1),void 0,u)}}return n.fulfill(0)}var l=e._doHitTest(t,n);return l.position?e.createMouseTargetFromHitTestPosition(t,n,l.position.lineNumber,l.position.column):this._createMouseTarget(t,n.withTarget(l.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(re.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new ee["a"](n,i))}return null},e._hitTestScrollbarSlider=function(e,t){if(re.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(11,new ee["a"](i,o))}}return null},e._hitTestScrollbar=function(e,t){if(re.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new ee["a"](n,i))}return null},e.prototype.getMouseColumn=function(t,n){var i=this._context.configuration.editor.layoutInfo,o=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-i.contentLeft;return e._getMouseColumn(o,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){if(e<0)return 1;var n=Math.round(e/t);return n+1},e.createMouseTargetFromHitTestPosition=function(e,t,n,i){var o=new ee["a"](n,i),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r){if(f["f"]&&1===o.column){var s=ce(t.mouseContentHorizontalOffset-r);return t.fulfill(7,new ee["a"](n,e.model.getLineMaxColumn(n)),void 0,s)}var a=ce(t.mouseContentHorizontalOffset-r);return t.fulfill(7,o,void 0,a)}var u=e.visibleRangeForPosition2(n,i);if(!u)return t.fulfill(0,o);var l=u.left;if(t.mouseContentHorizontalOffset===l)return t.fulfill(6,o);var c=[];if(c.push({offset:u.left,column:i}),i>1){var d=e.visibleRangeForPosition2(n,i-1);d&&c.push({offset:d.left,column:i-1})}var h=e.model.getLineMaxColumn(n);if(i<h){var p=e.visibleRangeForPosition2(n,i+1);p&&c.push({offset:p.left,column:i+1})}c.sort(function(e,t){return e.offset-t.offset});for(var g=1;g<c.length;g++){var m=c[g-1],v=c[g];if(m.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=v.offset){var _=new te["a"](n,m.column,n,v.column);return t.fulfill(6,o,_)}}return t.fulfill(6,o)},e._doHitTestWithCaretRangeFromPoint=function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n),o=i+Math.floor(e.lineHeight/2),r=t.pos.y+(o-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+e.layoutInfo.height&&(r=t.editorPos.y+e.layoutInfo.height-1);var s=new y(t.pos.x,r),a=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates());return a.position?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var i=n.startContainer,o=null;if(i.nodeType===i.TEXT_NODE){var r=i.parentNode,s=r?r.parentNode:null,a=s?s.parentNode:null,u=a&&a.nodeType===a.ELEMENT_NODE?a.className:null;if(u===G.CLASS_NAME){var l=e.getPositionFromDOMInfo(r,n.startOffset);return{position:l,hitTarget:null}}o=i.parentNode}else if(i.nodeType===i.ELEMENT_NODE){r=i.parentNode,s=r?r.parentNode:null;var c=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(c===G.CLASS_NAME){l=e.getPositionFromDOMInfo(i,i.textContent.length);return{position:l,hitTarget:null}}o=i}return{position:null,hitTarget:o}},e._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var i=n.offsetNode.parentNode,o=i?i.parentNode:null,r=o?o.parentNode:null,s=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(s===G.CLASS_NAME){var a=e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset);return{position:a,hitTarget:null}}return{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch(c){return{position:null,hitTarget:null}}o.collapse(!0);var r=o?o.parentElement():null,s=r?r.parentNode:null,a=s?s.parentNode:null,u=a&&a.nodeType===a.ELEMENT_NODE?a.className:"";if(u===G.CLASS_NAME){var l=o.duplicate();l.moveToElementText(r),l.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,l.text.length),l.moveToElementText(e.viewDomNode)}else i=r;return o.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}},e._doHitTest=function(e,t){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},e}(),he=n("62bd"),pe=n("8025"),fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ge(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var me=function(e){function t(n,i,r){var s=e.call(this)||this;s._isFocused=!1,s._context=n,s.viewController=i,s.viewHelper=r,s.mouseTargetFactory=new de(s._context,r),s._mouseDownOperation=s._register(new ve(s._context,s.viewController,s.viewHelper,function(e,t){return s._createMouseTarget(e,t)},function(e){return s._getMouseColumn(e)})),s._asyncFocus=s._register(new m["d"](function(){return s.viewHelper.focusTextArea()},0)),s.lastMouseLeaveTime=-1;var a=new O(s.viewHelper.viewDomNode);s._register(a.onContextMenu(s.viewHelper.viewDomNode,function(e){return s._onContextMenu(e,!0)})),s._register(a.onMouseMoveThrottled(s.viewHelper.viewDomNode,function(e){return s._onMouseMove(e)},ge(s.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),s._register(a.onMouseUp(s.viewHelper.viewDomNode,function(e){return s._onMouseUp(e)})),s._register(a.onMouseLeave(s.viewHelper.viewDomNode,function(e){return s._onMouseLeave(e)})),s._register(a.onMouseDown(s.viewHelper.viewDomNode,function(e){return s._onMouseDown(e)}));var u=function(e){if(s.viewController.emitMouseWheel(e),s._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new g["c"](e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=he["a"].getZoomLevel(),i=t.deltaY>0?1:-1;he["a"].setZoomLevel(n+i),t.preventDefault(),t.stopPropagation()}}};return s._register(o["h"](s.viewHelper.viewDomNode,f["g"]?"mousewheel":"wheel",u,!0)),s._context.addEventHandler(s),s}return fe(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new w(e,t),i=n.toPageCoordinates(),o=S(this.viewHelper.viewDomNode);if(i.y<o.y||i.y>o.y+o.height||i.x<o.x||i.x>o.x+o.width)return null;var r=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(r,o,i,null)},t.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){if(!this._mouseDownOperation.isActive()){var t=e.timestamp;t<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}},t.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})},t.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},t.prototype._onMouseDown=function(e){var t=this,n=this._createMouseTarget(e,!0),i=6===n.type||7===n.type,o=2===n.type||3===n.type||4===n.type,r=3===n.type,s=this._context.configuration.editor.viewInfo.selectOnLineNumbers,a=8===n.type||5===n.type,u=9===n.type,l=e.leftButton||e.middleButton;v["d"]&&e.leftButton&&e.ctrlKey&&(l=!1);var c=function(){f["j"]&&!t._isFocused?t._asyncFocus.schedule():(e.preventDefault(),t.viewHelper.focusTextArea())};if(l&&(i||r&&s))c(),this._mouseDownOperation.start(n.type,e);else if(o)e.preventDefault();else if(a){var d=n.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(c(),this._mouseDownOperation.start(n.type,e),e.preventDefault())}else u&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)&&(c(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:n})},t.MOUSE_MOVE_MINIMUM_TIME=100,t}(D),ve=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s._context=t,s._viewController=n,s._viewHelper=i,s._createMouseTarget=o,s._getMouseColumn=r,s._mouseMoveMonitor=s._register(new x(s._viewHelper.viewDomNode)),s._onScrollTimeout=s._register(new m["e"]),s._mouseState=new _e,s._currentSelection=new pe["a"](1,1,1,1),s._isActive=!1,s._lastMouseEvent=null,s}return fe(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.isActive=function(){return this._isActive},t.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))},t.prototype.start=function(e,t){var n=this;this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);var i=this._findMousePosition(t,!0);if(i&&i.position){if(this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count,!this._context.configuration.editor.readOnly&&this._context.configuration.editor.dragAndDrop&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===i.type&&i.position&&this._currentSelection.containsPosition(i.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(ge(null),function(e){return n._onMouseDownThenMove(e)},function(){var e=n._findMousePosition(n._lastMouseEvent,!0);n._viewController.emitMouseDrop({event:n._lastMouseEvent,target:e?n._createMouseTarget(n._lastMouseEvent,!0):null}),n._stop()});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(ge(null),function(e){return n._onMouseDownThenMove(e)},function(){return n._stop()}))}},t.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},t.prototype.onScrollChanged=function(){var e=this;this._isActive&&this._onScrollTimeout.setIfNotSet(function(){if(e._lastMouseEvent){var t=e._findMousePosition(e._lastMouseEvent,!1);t&&(e._mouseState.isDragAndDrop||e._dispatchMouse(t,!0))}},10)},t.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},t.prototype._getPositionOutsideEditor=function(e){var t=e.editorPos,n=this._context.model,i=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posy<t.y){var r=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0),s=se.getZoneAtCoord(this._context,r);if(s){var a=this._helpPositionJumpOverViewZone(s);if(a)return new oe(null,13,o,a)}var u=i.getLineNumberAtVerticalOffset(r);return new oe(null,13,o,new ee["a"](u,1))}if(e.posy>t.y+t.height){r=i.getCurrentScrollTop()+(e.posy-t.y),s=se.getZoneAtCoord(this._context,r);if(s){a=this._helpPositionJumpOverViewZone(s);if(a)return new oe(null,13,o,a)}var l=i.getLineNumberAtVerticalOffset(r);return new oe(null,13,o,new ee["a"](l,n.getLineMaxColumn(l)))}var c=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new oe(null,13,o,new ee["a"](c,1)):e.posx>t.x+t.width?new oe(null,13,o,new ee["a"](c,n.getLineMaxColumn(c))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t),o=i.position;if(!o)return null;if(8===i.type||5===i.type){var r=this._helpPositionJumpOverViewZone(i.detail);if(r)return new oe(i.element,i.type,i.mouseColumn,r,null,i.detail)}return i},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new ee["a"](this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null},t.prototype._dispatchMouse=function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},t}(a["a"]),_e=function(){function e(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),e.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},e.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},e.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},e.prototype.trySetCount=function(t,n){var i=(new Date).getTime();i-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=i,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)},e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}(),be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ye(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var we=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.viewHelper.linesContentDomNode.style.msTouchAction="none",r.viewHelper.linesContentDomNode.style.msContentZooming="none",r._installGestureHandlerTimeout=window.setTimeout(function(){if(r._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=r.viewHelper.linesContentDomNode,t.target=r.viewHelper.linesContentDomNode,r.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var i=n.pointerType;i!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?i===(n.MSPOINTER_TYPE_TOUCH||"touch")?(r._lastPointerType="touch",e.addPointer(n.pointerId)):(r._lastPointerType="pen",t.addPointer(n.pointerId)):r._lastPointerType="mouse"}),r._register(o["j"](r.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return r._onGestureChange(e)},ye)),r._register(o["h"](r.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return r._onCaptureGestureTap(e)},!0))}},100),r._lastPointerType="mouse",r}return be(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new L(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(me),Ce=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.viewHelper.linesContentDomNode.style.touchAction="none",r._installGestureHandlerTimeout=window.setTimeout(function(){if(r._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=r.viewHelper.linesContentDomNode,t.target=r.viewHelper.linesContentDomNode,r.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var i=n.pointerType;"mouse"!==i?"touch"===i?(r._lastPointerType="touch",e.addPointer(n.pointerId)):(r._lastPointerType="pen",t.addPointer(n.pointerId)):r._lastPointerType="mouse"}),r._register(o["j"](r.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return r._onGestureChange(e)},ye)),r._register(o["h"](r.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return r._onCaptureGestureTap(e)},!0))}},100),r._lastPointerType="mouse",r}return be(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new L(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(me),Se=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return p["b"].addTarget(r.viewHelper.linesContentDomNode),r._register(o["h"](r.viewHelper.linesContentDomNode,p["a"].Tap,function(e){return r.onTap(e)})),r._register(o["h"](r.viewHelper.linesContentDomNode,p["a"].Change,function(e){return r.onChange(e)})),r._register(o["h"](r.viewHelper.linesContentDomNode,p["a"].Contextmenu,function(e){return r._onContextMenu(new L(e,r.viewHelper.viewDomNode),!1)})),r}return be(t,e),t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new L(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}(me),Le=function(e){function t(t,n,i){var o=e.call(this)||this;return window.navigator.msPointerEnabled?o.handler=o._register(new we(t,n,i)):window.TouchEvent?o.handler=o._register(new Se(t,n,i)):window.navigator.pointerEnabled||window.PointerEvent?o.handler=o._register(new Ce(t,n,i)):o.handler=o._register(new me(t,n,i)),o}return be(t,e),t.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},t}(a["a"]),Oe=(n("56f3"),n("3742")),xe=n("e53c"),Ne=n("0a89"),De=(n("2ab7"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t}(D),Ie=n("918c"),Ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Me=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._readConfig(),n._lastCursorModelPosition=new ee["a"](1,1),n._renderResult=null,n._context.addEventHandler(n),n}return Ee(t,e),t.prototype._readConfig=function(){var e=this._context.configuration.editor;this._lineHeight=e.lineHeight,this._renderLineNumbers=e.viewInfo.renderLineNumbers,this._renderCustomLineNumbers=e.viewInfo.renderCustomLineNumbers,this._renderFinalNewline=e.viewInfo.renderFinalNewline,this._lineNumbersLeft=e.layoutInfo.lineNumbersLeft,this._lineNumbersWidth=e.layoutInfo.lineNumbersWidth},t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ee["a"](e,1));if(1!==t.column)return"";var n=t.lineNumber;if(!this._renderFinalNewline){var i=this._context.model.getLineCount(),o=this._context.model.getLineContent(n);if(n===i&&""===o)return""}if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){var r=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===r?'<span class="relative-current-line-number">'+n+"</span>":String(r)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10===0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=v["c"]?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,r='<div class="'+t.CLASS_NAME+n+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',s=[],a=i;a<=o;a++){var u=a-i,l=this._getLineRenderLineNumber(a);s[u]=l?r+l+"</div>":""}this._renderResult=s}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.CLASS_NAME="line-numbers",t}(ke);Object(B["f"])(function(e,t){var n=e.getColor(Ie["k"]);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(Ie["b"]);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var Te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pe=function(e){function t(n){var i=e.call(this,n)||this;return i._canUseLayerHinting=i._context.configuration.editor.canUseLayerHinting,i._contentLeft=i._context.configuration.editor.layoutInfo.contentLeft,i._glyphMarginLeft=i._context.configuration.editor.layoutInfo.glyphMarginLeft,i._glyphMarginWidth=i._context.configuration.editor.layoutInfo.glyphMarginWidth,i._domNode=Object(h["b"])(document.createElement("div")),i._domNode.setClassName(t.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(h["b"])(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return Te(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return e.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting);var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)},t.CLASS_NAME="glyph-margin",t.OUTER_CLASS_NAME="margin",t}(I),Re=n("e6ff"),Ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fe=function(){function e(e){this.type=1,this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo}return e}(),je=function(){function e(e){this.type=2,this.selections=e}return e}(),We=function(){function e(){this.type=3}return e}(),Ve=function(){function e(){this.type=4}return e}(),Be=function(){function e(e){this.type=5,this.isFocused=e}return e}(),He=function(){function e(){this.type=6}return e}(),ze=function(){function e(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t}return e}(),Ue=function(){function e(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t}return e}(),Ke=function(){function e(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}return e}(),qe=function(){function e(e,t,n,i){this.type=10,this.range=e,this.verticalType=t,this.revealHorizontal=n,this.scrollType=i}return e}(),Ge=function(){function e(e){this.type=11,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}return e}(),Ze=function(){function e(e){this.type=12,this.ranges=e}return e}(),Ye=function(){function e(){this.type=15}return e}(),Xe=function(){function e(){this.type=13}return e}(),$e=function(){function e(){this.type=14}return e}(),Qe=function(){function e(){this.type=16}return e}(),Je=function(e){function t(){var t=e.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return Ae(t,e),t.prototype.dispose=function(){this._listeners=[],e.prototype.dispose.call(this)},t.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new et),this._collector},t.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,i=t.length;n<i;n++)tt(t[n],e)},t.prototype.addEventListener=function(e){var t=this;return this._listeners.push(e),Object(a["h"])(function(){for(var n=t._listeners,i=0,o=n.length;i<o;i++)if(n[i]===e){n.splice(i,1);break}})},t}(a["a"]),et=function(){function e(){this._eventsLen=0,this._events=[],this._eventsLen=0}return e.prototype.emit=function(e){this._events[this._eventsLen++]=e},e.prototype.finalize=function(){var e=this._events;return this._events=[],e},e}();function tt(e,t){try{e(t)}catch(n){r["e"](n)}}var nt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),it=function(){function e(e,t,n){this.top=e,this.left=t,this.width=n}return e.prototype.setWidth=function(t){return new e(this.top,this.left,t)},e}(),ot=f["g"]||f["i"],rt=function(){function e(){this._lastState=null}return e.prototype.set=function(e){this._lastState=e},e.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState:(this._lastState=null,null)},e.INSTANCE=new e,e}(),st=function(e){function t(t,n,i){var o=e.call(this,t)||this;o._primaryCursorVisibleRange=null,o._viewController=n,o._viewHelper=i;var r=o._context.configuration.editor;o._accessibilitySupport=r.accessibilitySupport,o._contentLeft=r.layoutInfo.contentLeft,o._contentWidth=r.layoutInfo.contentWidth,o._contentHeight=r.layoutInfo.contentHeight,o._scrollLeft=0,o._scrollTop=0,o._fontInfo=r.fontInfo,o._lineHeight=r.lineHeight,o._emptySelectionClipboard=r.emptySelectionClipboard,o._copyWithSyntaxHighlighting=r.copyWithSyntaxHighlighting,o._visibleTextArea=null,o._selections=[new pe["a"](1,1,1,1)],o.textArea=Object(h["b"])(document.createElement("textarea")),E.write(o.textArea,6),o.textArea.setClassName("inputarea"),o.textArea.setAttribute("wrap","off"),o.textArea.setAttribute("autocorrect","off"),o.textArea.setAttribute("autocapitalize","off"),o.textArea.setAttribute("autocomplete","off"),o.textArea.setAttribute("spellcheck","false"),o.textArea.setAttribute("aria-label",r.viewInfo.ariaLabel),o.textArea.setAttribute("role","textbox"),o.textArea.setAttribute("aria-multiline","true"),o.textArea.setAttribute("aria-haspopup","false"),o.textArea.setAttribute("aria-autocomplete","both"),o.textAreaCover=Object(h["b"])(document.createElement("div")),o.textAreaCover.setPosition("absolute");var s={getLineCount:function(){return o._context.model.getLineCount()},getLineMaxColumn:function(e){return o._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return o._context.model.getValueInRange(e,t)}},a={getPlainTextToCopy:function(){var e=o._context.model.getPlainTextToCopy(o._selections,o._emptySelectionClipboard,v["g"]),t=o._context.model.getEOL(),n=o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty(),i=Array.isArray(e)?e:null,r=Array.isArray(e)?e.join(t):e,s=null;if(n||i){var a=f["i"]?r.replace(/\r\n/g,"\n"):r;s={lastCopiedValue:a,isFromEmptySelection:o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty(),multicursorText:i}}return rt.INSTANCE.set(s),r},getHTMLToCopy:function(){return o._copyWithSyntaxHighlighting||xe["a"].forceCopyWithSyntaxHighlighting?o._context.model.getHTMLToCopy(o._selections,o._emptySelectionClipboard):null},getScreenReaderContent:function(e){if(f["k"])return Ne["b"].EMPTY;if(1===o._accessibilitySupport){if(v["d"]){var t=o._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),i=o._getWordBeforePosition(n);if(0===i.length&&(i=o._getCharacterBeforePosition(n)),i.length>0)return new Ne["b"](i,i.length,i.length,n,n)}}return Ne["b"].EMPTY}return Ne["a"].fromEditorSelection(e,s,o._selections[0],0===o._accessibilitySupport)},deduceModelPosition:function(e,t,n){return o._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return o._textAreaInput=o._register(new xe["b"](a,o.textArea)),o._register(o._textAreaInput.onKeyDown(function(e){o._viewController.emitKeyDown(e)})),o._register(o._textAreaInput.onKeyUp(function(e){o._viewController.emitKeyUp(e)})),o._register(o._textAreaInput.onPaste(function(e){var t=rt.INSTANCE.get(e.text),n=!1,i=null;t&&(n=o._emptySelectionClipboard&&t.isFromEmptySelection,i=t.multicursorText),o._viewController.paste("keyboard",e.text,n,i)})),o._register(o._textAreaInput.onCut(function(){o._viewController.cut("keyboard")})),o._register(o._textAreaInput.onType(function(e){e.replaceCharCnt?o._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):o._viewController.type("keyboard",e.text)})),o._register(o._textAreaInput.onSelectionChangeRequest(function(e){o._viewController.setSelection("keyboard",e)})),o._register(o._textAreaInput.onCompositionStart(function(){var e=o._selections[0].startLineNumber,t=o._selections[0].startColumn;o._context.privateViewEventBus.emit(new qe(new te["a"](e,t,e,t),0,!0,1));var n=o._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(o._visibleTextArea=new it(o._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,ot?0:1),o._render()),o.textArea.setClassName("inputarea ime-input"),o._viewController.compositionStart("keyboard")})),o._register(o._textAreaInput.onCompositionUpdate(function(e){f["g"]?o._visibleTextArea=o._visibleTextArea.setWidth(0):o._visibleTextArea=o._visibleTextArea.setWidth(at(e.data,o._fontInfo)),o._render()})),o._register(o._textAreaInput.onCompositionEnd(function(){o._visibleTextArea=null,o._render(),o.textArea.setClassName("inputarea"),o._viewController.compositionEnd("keyboard")})),o._register(o._textAreaInput.onFocus(function(){o._context.privateViewEventBus.emit(new Be(!0))})),o._register(o._textAreaInput.onBlur(function(){o._context.privateViewEventBus.emit(new Be(!1))})),o}return nt(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){var t=this._context.model.getLineContent(e.lineNumber),n=Object(Re["a"])(this._context.configuration.editor.wordSeparators),i=e.column,o=0;while(i>1){var r=t.charCodeAt(i-2),s=n.get(r);if(0!==s||o>50)return t.substring(i-1,e.column-1);o++,i--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber),n=t.charAt(e.column-2);if(!Oe["w"](n.charCodeAt(0)))return n}return""},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;return e.fontInfo&&(this._fontInfo=t.fontInfo),e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel),e.layoutInfo&&(this._contentLeft=t.layoutInfo.contentLeft,this._contentWidth=t.layoutInfo.contentWidth,this._contentHeight=t.layoutInfo.contentHeight),e.lineHeight&&(this._lineHeight=t.lineHeight),e.accessibilitySupport&&(this._accessibilitySupport=t.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard),e.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=t.copyWithSyntaxHighlighting),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.isFocused=function(){return this._textAreaInput.isFocused()},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},t.prototype.prepareRender=function(e){var t=new ee["a"](this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t)},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():this._renderInsideEditor(t,e,ot?0:1,ot?0:1,!1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,i,o){var r=this.textArea,s=this.textAreaCover;o?l["a"].applyFontInfo(r,this._fontInfo):(r.setFontSize(1),r.setLineHeight(this._fontInfo.lineHeight)),r.setTop(e),r.setLeft(t),r.setWidth(n),r.setHeight(i),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},t.prototype._renderAtTopLeft=function(){var e=this.textArea,t=this.textAreaCover;if(l["a"].applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),ot)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),this._context.configuration.editor.viewInfo.glyphMargin?t.setClassName("monaco-editor-background textAreaCover "+Pe.OUTER_CLASS_NAME):0!==this._context.configuration.editor.viewInfo.renderLineNumbers?t.setClassName("monaco-editor-background textAreaCover "+Me.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},t}(I);function at(e,t){var n=document.createElement("canvas"),i=n.getContext("2d");i.font=ut(t);var o=i.measureText(e);return f["i"]?o.width+2:o.width}function ut(e){return lt("normal",e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}function lt(e,t,n,i,o){return e+" normal "+t+" "+n+"px / "+i+"px "+o}var ct=n("d585"),dt=function(){function e(e,t,n,i){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=i}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},e.prototype.paste=function(e,t,n,i){this.commandDelegate.paste(e,t,n,i)},e.prototype.type=function(e,t){this.commandDelegate.type(e,t)},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},e.prototype.cut=function(e){this.commandDelegate.cut(e)},e.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(ct["CoreNavigationCommands"].SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new ee["a"](e.lineNumber,t):e},e.prototype._hasMulticursorModifier=function(e){switch(this.configuration.editor.multiCursorModifier){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey}return!1},e.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.editor.multiCursorModifier){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey}return!1},e.prototype.dispatchMouse=function(e){e.middleButton?e.inSelectionMode?this._columnSelect(e.position,e.mouseColumn,!0):this.moveTo(e.position):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!1):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},e.prototype.moveTo=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].MoveTo,this._usualArgs(e))},e.prototype._moveToSelect=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].MoveToSelect,this._usualArgs(e))},e.prototype._columnSelect=function(e,t,n){e=this._validateViewColumn(e),this._execMouseCommand(ct["CoreNavigationCommands"].ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,setAnchorIfNotSet:n})},e.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(ct["CoreNavigationCommands"].CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].LastCursorMoveToSelect,this._usualArgs(e))},e.prototype._wordSelect=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].WordSelect,this._usualArgs(e))},e.prototype._wordSelectDrag=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].WordSelectDrag,this._usualArgs(e))},e.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].LastCursorWordSelect,this._usualArgs(e))},e.prototype._lineSelect=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].LineSelect,this._usualArgs(e))},e.prototype._lineSelectDrag=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].LineSelectDrag,this._usualArgs(e))},e.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].LastCursorLineSelect,this._usualArgs(e))},e.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(ct["CoreNavigationCommands"].LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype._selectAll=function(){this._execMouseCommand(ct["CoreNavigationCommands"].SelectAll,{})},e.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},e.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},e}(),ht=n("7ab3"),pt=function(){function e(e){this._createLine=e,this._set(1,[])}return e.prototype.flush=function(){this._set(1,[])},e.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},e.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},e.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},e.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},e.prototype.getCount=function(){return this._lines.length},e.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){var o=t-e+1;return this._rendLineNumberStart-=o,null}if(e>i)return null;for(var r=0,s=0,a=n;a<=i;a++){var u=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(r=u,s=1):s++)}if(e<n){var l=0;l=t<n?t-e+1:n-e,this._rendLineNumberStart-=l}var c=this._lines.splice(r,s);return c},e.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;for(var n=this.getStartLineNumber(),i=this.getEndLineNumber(),o=!1,r=e;r<=t;r++)r>=n&&r<=i&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>o)return null;if(n+e>o){var r=this._lines.splice(e-this._rendLineNumberStart,o-e+1);return r}for(var s=[],a=0;a<n;a++)s[a]=this._createLine();var u=e-this._rendLineNumberStart,l=this._lines.slice(0,u),c=this._lines.slice(u,this._lines.length-n),d=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=l.concat(s).concat(c),d},e.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),i=!1,o=0,r=e.length;o<r;o++){var s=e[o];if(!(s.toLineNumber<t||s.fromLineNumber>n))for(var a=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),l=a;l<=u;l++){var c=l-this._rendLineNumberStart;this._lines[c].onTokensChanged(),i=!0}}return i},e}(),ft=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new pt(function(){return t._host.createVisibleLine()})}return e.prototype._createDomNode=function(){var e=Object(h["b"])(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n].getDomNode();o&&this.domNode.domNode.removeChild(o)}return!0},e.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n].getDomNode();o&&this.domNode.domNode.removeChild(o)}return!0},e.prototype.onScrollChanged=function(e){return e.scrollTopChanged},e.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges)},e.prototype.onZonesChanged=function(e){return!0},e.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},e.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},e.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e)},e.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new gt(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},o=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(o.rendLineNumberStart,o.lines)},e}(),gt=function(){function e(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}return e.prototype.render=function(e,t,n,i){var o={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(o.rendLineNumberStart+o.linesLength-1<t||n<o.rendLineNumberStart){o.rendLineNumberStart=t,o.linesLength=n-t+1,o.lines=[];for(var r=t;r<=n;r++)o.lines[r-t]=this.host.createVisibleLine();return this._finishRendering(o,!0,i),o}if(this._renderUntouchedLines(o,Math.max(t-o.rendLineNumberStart,0),Math.min(n-o.rendLineNumberStart,o.linesLength-1),i,t),o.rendLineNumberStart>t){var s=t,a=Math.min(n,o.rendLineNumberStart-1);s<=a&&(this._insertLinesBefore(o,s,a,i,t),o.linesLength+=a-s+1)}else if(o.rendLineNumberStart<t){var u=Math.min(o.linesLength,t-o.rendLineNumberStart);u>0&&(this._removeLinesBefore(o,u),o.linesLength-=u)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1<n){s=o.rendLineNumberStart+o.linesLength,a=n;s<=a&&(this._insertLinesAfter(o,s,a,i,t),o.linesLength+=a-s+1)}else if(o.rendLineNumberStart+o.linesLength-1>n){s=Math.max(0,n-o.rendLineNumberStart+1),a=o.linesLength-1,u=a-s+1;u>0&&(this._removeLinesAfter(o,u),o.linesLength-=u)}return this._finishRendering(o,!1,i),o},e.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var u=r+a;s[a].layoutLine(u,i[u-o])}},e.prototype._insertLinesBefore=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n<t;n++){var i=e.lines[n].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(0,t)},e.prototype._insertLinesAfter=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(r)},e.prototype._removeLinesAfter=function(e,t){for(var n=e.linesLength-t,i=0;i<t;i++){var o=e.lines[n+i].getDomNode();o&&this.domNode.removeChild(o)}e.lines.splice(n,t)},e.prototype._finishRenderingNewLines=function(e,t,n,i){var o=this.domNode.lastChild;t||!o?this.domNode.innerHTML=n:o.insertAdjacentHTML("afterend",n);for(var r=this.domNode.lastChild,s=e.linesLength-1;s>=0;s--){var a=e.lines[s];i[s]&&(a.setDomNode(r),r=r.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o<e.linesLength;o++){var r=e.lines[o];if(n[o]){var s=i.firstChild,a=r.getDomNode();a.parentNode.replaceChild(s,a),r.setDomNode(s)}}},e.prototype._finishRendering=function(t,n,i){var o=e._sb,r=t.linesLength,s=t.lines,a=t.rendLineNumberStart,u=[];o.reset();for(var l=!1,c=0;c<r;c++){var d=s[c];u[c]=!1;var h=d.getDomNode();if(!h){var p=d.renderLine(c+a,i[c],this.viewportData,o);p&&(u[c]=!0,l=!0)}}l&&this._finishRenderingNewLines(t,n,o.build(),u),o.reset();var f=!1,g=[];for(c=0;c<r;c++){d=s[c];if(g[c]=!1,!u[c]){p=d.renderLine(c+a,i[c],this.viewportData,o);p&&(g[c]=!0,f=!0)}}f&&this._finishRenderingInvalidLines(t,o.build(),g)},e._sb=Object(ht["a"])(1e5),e}(),mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vt=function(e){function t(t){var n=e.call(this,t)||this;return n._visibleLines=new ft(n),n.domNode=n._visibleLines.domNode,n._dynamicOverlays=[],n._isFocused=!1,n.domNode.setClassName("view-overlays"),n}return mt(t,e),t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;t<n;t++){var i=this._dynamicOverlays[t];if(i.shouldRender())return!0}return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0,n=this._dynamicOverlays.length;t<n;t++){var i=this._dynamicOverlays[t];i.dispose()}this._dynamicOverlays=[]},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new _t(this._context.configuration,this._dynamicOverlays)},t.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){var o=this._visibleLines.getVisibleLine(i);o.onConfigurationChanged(e)}return!0},t.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},t.prototype.prepareRender=function(e){for(var t=this._dynamicOverlays.filter(function(e){return e.shouldRender()}),n=0,i=t.length;n<i;n++){var o=t[n];o.prepareRender(e),o.onDidRender()}},t.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},t.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},t}(I),_t=function(){function e(e,t){this._configuration=e,this._lineHeight=this._configuration.editor.lineHeight,this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}return e.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},e.prototype.setDomNode=function(e){this._domNode=Object(h["b"])(e)},e.prototype.onContentChanged=function(){},e.prototype.onTokensChanged=function(){},e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._configuration.editor.lineHeight)},e.prototype.renderLine=function(e,t,n,i){for(var o="",r=0,s=this._dynamicOverlays.length;r<s;r++){var a=this._dynamicOverlays[r];o+=a.render(n.startLineNumber,e)}return this._renderedContent!==o&&(this._renderedContent=o,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(o),i.appendASCIIString("</div>"),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}(),bt=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n}return mt(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),e.prototype.onConfigurationChanged.call(this,t)},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(vt),yt=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),l["a"].applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n}return mt(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(l["a"].applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(vt),wt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ct=function(){function e(e,t){this.top=e,this.left=t}return e}(),St=function(e){function t(t,n){var i=e.call(this,t)||this;return i._viewDomNode=n,i._widgets={},i.domNode=Object(h["b"])(document.createElement("div")),E.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=Object(h["b"])(document.createElement("div")),E.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i}return wt(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.onConfigurationChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].onConfigurationChanged(e)}return!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLineMappingChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].onLineMappingChanged(e)}return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.addWidget=function(e){var t=new Lt(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t,n,i){var o=this._widgets[e.getId()];o.setPosition(t,n,i),this.setShouldRender()},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var i=n.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},t.prototype.shouldSuppressMouseDownOnWidget=function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown},t.prototype.onBeforeRender=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].onBeforeRender(e)}},t.prototype.prepareRender=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].prepareRender(e)}},t.prototype.render=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var o=i[n];this._widgets[o].render(e)}},t}(I),Lt=function(){function e(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Object(h["b"])(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1,this._fixedOverflowWidgets=this._context.configuration.editor.viewInfo.fixedOverflowWidgets,this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._lineHeight=this._context.configuration.editor.lineHeight,this._position=null,this._range=null,this._viewPosition=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}return e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._maxWidth=this._getMaxWidth())},e.prototype.onLineMappingChanged=function(e){this._setPosition(this._position,this._range)},e.prototype._setPosition=function(e,t){if(this._position=e,this._range=t,this._viewPosition=null,this._viewRange=null,this._position){var n=this._context.model.validateModelPosition(this._position);this._context.model.coordinatesConverter.modelPositionIsVisible(n)&&(this._viewPosition=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n))}if(this._range){var i=this._context.model.validateModelRange(this._range);this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(i)}},e.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},e.prototype.setPosition=function(e,t,n){this._setPosition(e,t),this._preference=n,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},e.prototype._layoutBoxInViewport=function(e,t,n,i,o){var r=e.top,s=r,a=t.top+this._lineHeight,u=o.viewportHeight-a,l=r-i,c=s>=i,d=a,h=u>=i,p=e.left,f=t.left;return p+n>o.scrollLeft+o.viewportWidth&&(p=o.scrollLeft+o.viewportWidth-n),f+n>o.scrollLeft+o.viewportWidth&&(f=o.scrollLeft+o.viewportWidth-n),p<o.scrollLeft&&(p=o.scrollLeft),f<o.scrollLeft&&(f=o.scrollLeft),{fitsAbove:c,aboveTop:l,aboveLeft:p,fitsBelow:h,belowTop:d,belowLeft:f}},e.prototype._layoutBoxInPage=function(e,t,n,i,r){var s=e.left-r.scrollLeft,a=t.left-r.scrollLeft,u=e.top-i,l=t.top+this._lineHeight,c=s+this._contentLeft,d=a+this._contentLeft,h=o["x"](this._viewDomNode.domNode),p=h.top+u-o["e"].scrollY,f=h.top+l-o["e"].scrollY,g=h.left+c-o["e"].scrollX,m=h.left+d-o["e"].scrollX,v=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,_=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,b=22,y=22,w=p>=b,C=f+i<=_-y;if(g+n+20>v){var S=g-(v-n-20);g-=S,c-=S}if(m+n+20>v){S=m-(v-n-20);m-=S,d-=S}if(g<0){S=g;g-=S,c-=S}if(m<0){S=m;m-=S,d-=S}return this._fixedOverflowWidgets&&(u=p,l=f,c=g,d=m),{fitsAbove:w,aboveTop:u,aboveLeft:c,fitsBelow:C,belowTop:l,belowLeft:d}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new Ct(e.top,e.left+this._contentLeft)},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,i=new Ct(n,t.left),o=this._viewPosition.lineNumber,r=t.left;if(this._viewRange){var s=e.linesVisibleRangesForRange(this._viewRange,!1);if(s&&s.length>0)for(var a=s.length-1;a>=0;a--){var u=s[a];if(u.lineNumber>=o){u.lineNumber>o&&(o=u.lineNumber,r=1073741824);for(var l=0,c=u.ranges.length;l<c;l++){var d=u.ranges[l];d.left<r&&(r=d.left)}}}}var h=e.getVerticalOffsetForLineNumber(o)-e.scrollTop,p=new Ct(h,r);return[i,p]},e.prototype._prepareRenderWidget=function(e){var t,n=this._getTopAndBottomLeft(e),i=n[0],o=n[1];if(!i||!o)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){var r=this.domNode.domNode;this._cachedDomNodeClientWidth=r.clientWidth,this._cachedDomNodeClientHeight=r.clientHeight}if(t=this.allowEditorOverflow?this._layoutBoxInPage(i,o,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(i,o,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(var s=1;s<=2;s++)for(var a=0,u=this._preference;a<u.length;a++){var l=u[a];if(1===l){if(!t)return null;if(2===s||t.fitsAbove)return new Ct(t.aboveTop,t.aboveLeft)}else{if(2!==l)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i;if(!t)return null;if(2===s||t.fitsBelow)return new Ct(t.belowTop,t.belowLeft)}}return null},e.prototype.onBeforeRender=function(e){this._viewPosition&&this._preference&&(this._viewPosition.lineNumber<e.startLineNumber||this._viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}(),Ot=(n("930f"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),xt=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._scrollWidth=0,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._context.addEventHandler(n),n}return Ot(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){if(this._shouldShowCurrentLine()){var n=this._willRenderMarginCurrentLine(),i="current-line"+(n?" current-line-both":"");return'<div class="'+i+'" style="width:'+String(Math.max(this._scrollWidth,this._contentWidth))+"px; height:"+String(this._lineHeight)+'px;"></div>'}return""}return""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(ke);Object(B["f"])(function(e,t){var n=e.getColor(Ie["i"]);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(Ie["j"])){var i=e.getColor(Ie["j"]);i&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}});n("4e7d");var Nt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Dt=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n}return Nt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";if(this._shouldShowCurrentLine()){var i=this._willRenderContentCurrentLine();n="current-line current-line-margin"+(i?" current-line-margin-both":"")}return'<div class="'+n+'" style="width:'+String(this._contentLeft)+"px; height:"+String(this._lineHeight)+'px;"></div>'}return""},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(ke);Object(B["f"])(function(e,t){var n=e.getColor(Ie["i"]);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var i=e.getColor(Ie["j"]);i&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}});n("56dc");var kt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),It=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return kt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o];s.options.className&&(n[i++]=s)}n=n.sort(function(e,t){if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;var n=e.options.className,i=t.options.className;return n<i?-1:n>i?1:te["a"].compareRangesUsingStarts(e.range,t.range)});for(var a=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,l=[],c=a;c<=u;c++){var d=c-a;l[d]=""}this._renderWholeLineDecorations(e,n,l),this._renderNormalDecorations(e,n,l),this._renderResult=l},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,s=0,a=t.length;s<a;s++){var u=t[s];if(u.options.isWholeLine)for(var l='<div class="cdr '+u.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',c=Math.max(u.range.startLineNumber,o),d=Math.min(u.range.endLineNumber,r),h=c;h<=d;h++){var p=h-o;n[p]+=l}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=null,s=!1,a=null,u=0,l=t.length;u<l;u++){var c=t[u];if(!c.options.isWholeLine){var d=c.options.className,h=Boolean(c.options.showIfCollapsed),p=c.range;h&&1===p.endColumn&&p.endLineNumber!==p.startLineNumber&&(p=new te["a"](p.startLineNumber,p.startColumn,p.endLineNumber-1,this._context.model.getLineMaxColumn(p.endLineNumber-1))),r===d&&s===h&&te["a"].areIntersectingOrTouching(a,p)?a=te["a"].plusRange(a,p):(null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n),r=d,s=h,a=p)}}null!==r&&this._renderNormalDecoration(e,a,r,s,i,o,n)},t.prototype._renderNormalDecoration=function(e,t,n,i,o,r,s){var a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(var u=0,l=a.length;u<l;u++){var c=a[u],d=c.lineNumber-r;if(i&&1===c.ranges.length){var h=c.ranges[0];0===h.width&&(c.ranges[0]=new A(h.left,this._typicalHalfwidthCharacterWidth))}for(var p=0,f=c.ranges.length;p<f;p++){var g=c.ranges[p],m='<div class="cdr '+n+'" style="left:'+String(g.left)+"px;width:"+String(g.width)+"px;height:"+o+'px;"></div>';s[d]+=m}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(ke),Et=n("1898"),Mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Tt=function(e){function t(t,n,i,r){var s=e.call(this,t)||this,a=s._context.configuration.editor,u=a.viewInfo.scrollbar,l={listenOnDomNode:i.domNode,className:"editor-scrollable "+Object(B["e"])(t.theme.type),useShadows:!1,lazyRender:!0,vertical:u.vertical,horizontal:u.horizontal,verticalHasArrows:u.verticalHasArrows,horizontalHasArrows:u.horizontalHasArrows,verticalScrollbarSize:u.verticalScrollbarSize,verticalSliderSize:u.verticalSliderSize,horizontalScrollbarSize:u.horizontalScrollbarSize,horizontalSliderSize:u.horizontalSliderSize,handleMouseWheel:u.handleMouseWheel,arrowSize:u.arrowSize,mouseWheelScrollSensitivity:u.mouseWheelScrollSensitivity,fastScrollSensitivity:u.fastScrollSensitivity};s.scrollbar=s._register(new Et["c"](n.domNode,l,s._context.viewLayout.scrollable)),E.write(s.scrollbar.getDomNode(),5),s.scrollbarDomNode=Object(h["b"])(s.scrollbar.getDomNode()),s.scrollbarDomNode.setPosition("absolute"),s._setLayout();var c=function(e,t,n){var i={};if(t){var o=e.scrollTop;o&&(i.scrollTop=s._context.viewLayout.getCurrentScrollTop()+o,e.scrollTop=0)}if(n){var r=e.scrollLeft;r&&(i.scrollLeft=s._context.viewLayout.getCurrentScrollLeft()+r,e.scrollLeft=0)}s._context.viewLayout.setScrollPositionNow(i)};return s._register(o["h"](i.domNode,"scroll",function(e){return c(i.domNode,!0,!0)})),s._register(o["h"](n.domNode,"scroll",function(e){return c(n.domNode,!0,!1)})),s._register(o["h"](r.domNode,"scroll",function(e){return c(r.domNode,!0,!1)})),s._register(o["h"](s.scrollbarDomNode.domNode,"scroll",function(e){return c(s.scrollbarDomNode.domNode,!0,!1)})),s}return Mt(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft);var t=this._context.configuration.editor.viewInfo.minimap.side;"right"===t?this.scrollbarDomNode.setWidth(e.contentWidth+e.minimapWidth):this.scrollbarDomNode.setWidth(e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight)},t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},t.prototype.getDomNode=function(){return this.scrollbarDomNode},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var t=this._context.configuration.editor,n={handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity,fastScrollSensitivity:t.viewInfo.scrollbar.fastScrollSensitivity};this.scrollbar.updateOptions(n)}return e.layoutInfo&&this._setLayout(),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(B["e"])(this._context.theme.type)),!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow()},t}(I),Pt=(n("8478d"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),Rt=function(){function e(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}return e}(),At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pt(t,e),t.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++){var r=o-e;i[r]=[]}if(0===n.length)return i;n.sort(function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1});for(var s=null,a=0,u=0,l=n.length;u<l;u++){var c=n[u],d=c.className,h=Math.max(c.startLineNumber,e)-e,p=Math.min(c.endLineNumber,t)-e;s===d?(h=Math.max(a+1,h),a=Math.max(a,p)):(s=d,a=p);for(var f=h;f<=a;f++)i[f].push(s)}return i},t}(ke),Ft=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._glyphMargin=n._context.configuration.editor.viewInfo.glyphMargin,n._glyphMarginLeft=n._context.configuration.editor.layoutInfo.glyphMarginLeft,n._glyphMarginWidth=n._context.configuration.editor.layoutInfo.glyphMarginWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Pt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._glyphMargin=this._context.configuration.editor.viewInfo.glyphMargin),e.layoutInfo&&(this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.glyphMarginClassName;a&&(n[i++]=new Rt(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){if(this._glyphMargin){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=this._lineHeight.toString(),r=this._glyphMarginLeft.toString(),s=this._glyphMarginWidth.toString(),a='" style="left:'+r+"px;width:"+s+"px;height:"+o+'px;"></div>',u=[],l=t;l<=n;l++){var c=l-t,d=i[c];0===d.length?u[c]="":u[c]='<div class="cgmr '+d.join(" ")+a}this._renderResult=u}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(At),jt=(n("0baa"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),Wt=function(e){function t(t){var n=e.call(this)||this;n._context=t,n._primaryLineNumber=0,n._lineHeight=n._context.configuration.editor.lineHeight,n._spaceWidth=n._context.configuration.editor.fontInfo.spaceWidth,n._enabled=n._context.configuration.editor.viewInfo.renderIndentGuides,n._activeIndentEnabled=n._context.configuration.editor.viewInfo.highlightActiveIndentGuide;var i=n._context.configuration.editor.wrappingInfo.wrappingColumn;return n._maxIndentLeft=-1===i?-1:i*n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return jt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){if(e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),e.wrappingInfo||e.fontInfo){var t=this._context.configuration.editor.wrappingInfo.wrappingColumn;this._maxIndentLeft=-1===t?-1:t*this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth}return!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLanguageConfigurationChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getOptions().indentSize,o=i*this._spaceWidth,r=e.scrollWidth,s=this._lineHeight,a=this._context.model.getLinesIndentGuides(t,n),u=0,l=0,c=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var d=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);u=d.startLineNumber,l=d.endLineNumber,c=d.indent}for(var h=[],p=t;p<=n;p++){for(var f=u<=p&&p<=l,g=p-t,m=a[g],v="",_=e.visibleRangeForPosition(new ee["a"](p,1)),b=_?_.left:0,y=1;y<=m;y++){var w=f&&y===c?"cigra":"cigr";if(v+='<div class="'+w+'" style="left:'+b+"px;height:"+s+"px;width:"+o+'px"></div>',b+=o,b>r||this._maxIndentLeft>0&&b>this._maxIndentLeft)break}h[g]=v}this._renderResult=h}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(ke);Object(B["f"])(function(e,t){var n=e.getColor(Ie["h"]);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(Ie["a"])||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});n("38a2b");var Vt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Bt=function(){function e(){this._currentVisibleRange=new te["a"](1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),Ht=function(){function e(e,t,n,i,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=r}return e}(),zt=function(e){function t(t,n){var i=e.call(this,t)||this;i._linesContent=n,i._textRangeRestingSpot=document.createElement("div"),i._visibleLines=new ft(i),i.domNode=i._visibleLines.domNode;var o=i._context.configuration;return i._lineHeight=o.editor.lineHeight,i._typicalHalfwidthCharacterWidth=o.editor.fontInfo.typicalHalfwidthCharacterWidth,i._isViewportWrapping=o.editor.wrappingInfo.isViewportWrapping,i._revealHorizontalRightPadding=o.editor.viewInfo.revealHorizontalRightPadding,i._scrollOff=o.editor.viewInfo.cursorSurroundingLines,i._canUseLayerHinting=o.editor.canUseLayerHinting,i._viewLineOptions=new q(o,i._context.theme.type),E.write(i.domNode,7),i.domNode.setClassName("view-lines"),l["a"].applyFontInfo(i.domNode,o.editor.fontInfo),i._maxLineWidth=0,i._asyncUpdateLineWidths=new m["d"](function(){i._updateLineWidthsSlow()},200),i._lastRenderedData=new Bt,i._horizontalRevealRequest=null,i}return Vt(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new G(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding,this._scrollOff=t.editor.viewInfo.cursorSurroundingLines),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&l["a"].applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new q(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=n;o<=i;o++){var r=this._visibleLines.getVisibleLine(o);r.onOptionsChanged(this._viewLineOptions)}return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,o=t;o<=n;o++)i=this._visibleLines.getVisibleLine(o).onSelectionChanged()||i;return i},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new Ht(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new ee["a"](i,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(i<o||i>r)return null;var s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),a=this._context.model.getLineMinColumn(i);return s<a&&(s=a),new ee["a"](i,s)},t.prototype._getViewLineDomNode=function(e){while(e&&1===e.nodeType){if(e.className===G.CLASS_NAME)return e;e=e.parentElement}return null},t.prototype._getLineNumberFor=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){var o=this._visibleLines.getVisibleLine(i);if(e===o.getDomNode())return i}return-1},t.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,i=te["a"].intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;var o=[],r=0,s=new K(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ee["a"](i.startLineNumber,1)).lineNumber);for(var u=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=i.startLineNumber;c<=i.endLineNumber;c++)if(!(c<u||c>l)){var d=c===i.startLineNumber?i.startColumn:1,h=c===i.endLineNumber?i.endColumn:this._context.model.getLineMaxColumn(c),p=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(d,h,s);if(p&&0!==p.length){if(t&&c<n){var f=a;a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ee["a"](c+1,1)).lineNumber,f!==a&&(p[p.length-1].width+=this._typicalHalfwidthCharacterWidth)}o[r++]=new R(c,p)}}return 0===r?null:o},t.prototype.visibleRangesForRange2=function(e){if(this.shouldRender())return null;var t=te["a"].intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!t)return null;for(var n=[],i=new K(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber(),s=t.startLineNumber;s<=t.endLineNumber;s++)if(!(s<o||s>r)){var a=s===t.startLineNumber?t.startColumn:1,u=s===t.endLineNumber?t.endColumn:this._context.model.getLineMaxColumn(s),l=this._visibleLines.getVisibleLine(s).getVisibleRangesForRange(a,u,i);l&&0!==l.length&&(n=n.concat(l))}return 0===n.length?null:n},t.prototype.visibleRangeForPosition=function(e){var t=this.visibleRangesForRange2(new te["a"](e.lineNumber,e.column,e.lineNumber,e.column));return t?t[0]:null},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,o=!0,r=t;r<=n;r++){var s=this._visibleLines.getVisibleLine(r);!e||s.getWidthIsFast()?i=Math.max(i,s.getWidth()):o=!1}return o&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),o},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,i=this._horizontalRevealRequest.endColumn,o=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,n,i),s=this._isViewportWrapping;s||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===o?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:r.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:r.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var a=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},t.prototype._computeScrollTopToRevealRange=function(e,t,n){var i,o,r=e.top,s=e.height,a=r+s;i=this._context.viewLayout.getVerticalOffsetForLineNumber(t.startLineNumber),o=this._context.viewLayout.getVerticalOffsetForLineNumber(t.endLineNumber)+this._lineHeight;var u,l=Math.min(s/this._lineHeight/2,this._scrollOff);if(i-=l*this._lineHeight,o+=Math.max(0,l-1)*this._lineHeight,0!==n&&4!==n||(o+=this._lineHeight),1===n||2===n)if(2===n&&r<=i&&o<=a)u=r;else{var c=(i+o)/2;u=Math.max(0,c-s/2)}else u=this._computeMinimumScrolling(r,a,i,o,3===n,4===n);return u},t.prototype._computeScrollLeftToRevealRange=function(e,n,i){var o=0,r=this._context.viewLayout.getCurrentViewport(),s=r.left,a=s+r.width,u=this.visibleRangesForRange2(new te["a"](e,n,e,i)),l=Number.MAX_VALUE,c=0;if(!u)return{scrollLeft:s,maxHorizontalOffset:o};for(var d=0,h=u;d<h.length;d++){var p=h[d];p.left<l&&(l=p.left),p.left+p.width>c&&(c=p.left+p.width)}o=c,l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX),c+=this._revealHorizontalRightPadding;var f=this._computeMinimumScrolling(s,a,l,c);return{scrollLeft:f,maxHorizontalOffset:o}},t.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){e|=0,t|=0,n|=0,i|=0,o=!!o,r=!!r;var s=t-e,a=i-n;return a<s?o?n:r?Math.max(0,i-s):n<e?n:i>t?Math.max(0,i-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(I),Ut=(n("27e6"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),Kt=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft,n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Ut(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.linesDecorationsClassName;a&&(n[i++]=new Rt(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=this._decorationsLeft.toString(),r=this._decorationsWidth.toString(),s='" style="left:'+o+"px;width:"+r+'px;"></div>',a=[],u=t;u<=n;u++){for(var l=u-t,c=i[l],d="",h=0,p=c.length;h<p;h++)d+='<div class="cldr '+c[h]+s;a[l]=d}this._renderResult=a},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(At),qt=(n("5d70"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),Gt=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._renderResult=null,n._context.addEventHandler(n),n}return qt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o<r;o++){var s=t[o],a=s.options.marginClassName;a&&(n[i++]=new Rt(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),o=[],r=t;r<=n;r++){for(var s=r-t,a=i[s],u="",l=0,c=a.length;l<c;l++)u+='<div class="cmdr '+a[l]+'" style=""></div>';o[s]=u}this._renderResult=o},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(At),Zt=(n("f20b"),function(){function e(t,n,i,o){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(i),this.a=e._clamp(o)}return e._clamp=function(e){return e<0?0:e>255?255:0|e},e.Empty=new e(0,0,0,0),e}()),Yt=n("b707"),Xt=function(){function e(){var e=this;this._onDidChange=new s["a"],this.onDidChange=this._onDidChange.event,this._updateColorMap(),Yt["y"].onDidChange(function(t){t.changedColorMap&&e._updateColorMap()})}return e.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new e),this._INSTANCE},e.prototype._updateColorMap=function(){var e=Yt["y"].getColorMap();if(!e)return this._colors=[Zt.Empty],void(this._backgroundIsLight=!0);this._colors=[Zt.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new Zt(n.r,n.g,n.b,Math.round(255*n.a))}var i=e[2].getRelativeLuminance();this._backgroundIsLight=i>=.5,this._onDidChange.fire(void 0)},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight},e._INSTANCE=null,e}(),$t=function(){function e(t,n){var i=760;if(t.length!==i)throw new Error("Invalid x2CharData");var o=190;if(n.length!==o)throw new Error("Invalid x1CharData");this.x2charData=t,this.x1charData=n,this.x2charDataLight=e.soften(t,.8),this.x1charDataLight=e.soften(n,50/60)}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,o=e.length;i<o;i++)n[i]=e[i]*t;return n},e._getChIndex=function(e){return e-=32,e<0&&(e+=95),e%95},e.prototype.x2RenderChar=function(t,n,i,o,r,s,a){if(n+2>t.width||i+4>t.height)console.warn("bad render request outside image data");else{var u=a?this.x2charDataLight:this.x2charData,l=e._getChIndex(o),c=4*t.width,d=s.r,h=s.g,p=s.b,f=r.r-d,g=r.g-h,m=r.b-p,v=t.data,_=4*l*2,b=i*c+4*n,y=u[_]/255;v[b+0]=d+f*y,v[b+1]=h+g*y,v[b+2]=p+m*y;y=u[_+1]/255;v[b+4]=d+f*y,v[b+5]=h+g*y,v[b+6]=p+m*y,b+=c;y=u[_+2]/255;v[b+0]=d+f*y,v[b+1]=h+g*y,v[b+2]=p+m*y;y=u[_+3]/255;v[b+4]=d+f*y,v[b+5]=h+g*y,v[b+6]=p+m*y,b+=c;y=u[_+4]/255;v[b+0]=d+f*y,v[b+1]=h+g*y,v[b+2]=p+m*y;y=u[_+5]/255;v[b+4]=d+f*y,v[b+5]=h+g*y,v[b+6]=p+m*y,b+=c;y=u[_+6]/255;v[b+0]=d+f*y,v[b+1]=h+g*y,v[b+2]=p+m*y;y=u[_+7]/255;v[b+4]=d+f*y,v[b+5]=h+g*y,v[b+6]=p+m*y}},e.prototype.x1RenderChar=function(t,n,i,o,r,s,a){if(n+1>t.width||i+2>t.height)console.warn("bad render request outside image data");else{var u=a?this.x1charDataLight:this.x1charData,l=e._getChIndex(o),c=4*t.width,d=s.r,h=s.g,p=s.b,f=r.r-d,g=r.g-h,m=r.b-p,v=t.data,_=2*l*1,b=i*c+4*n,y=u[_]/255;v[b+0]=d+f*y,v[b+1]=h+g*y,v[b+2]=p+m*y,b+=c;y=u[_+1]/255;v[b+0]=d+f*y,v[b+1]=h+g*y,v[b+2]=p+m*y}},e.prototype.x2BlockRenderChar=function(e,t,n,i,o,r){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=.5,u=o.r,l=o.g,c=o.b,d=i.r-u,h=i.g-l,p=i.b-c,f=u+d*a,g=l+h*a,m=c+p*a,v=e.data,_=n*s+4*t;v[_+0]=f,v[_+1]=g,v[_+2]=m,v[_+4]=f,v[_+5]=g,v[_+6]=m,_+=s,v[_+0]=f,v[_+1]=g,v[_+2]=m,v[_+4]=f,v[_+5]=g,v[_+6]=m,_+=s,v[_+0]=f,v[_+1]=g,v[_+2]=m,v[_+4]=f,v[_+5]=g,v[_+6]=m,_+=s,v[_+0]=f,v[_+1]=g,v[_+2]=m,v[_+4]=f,v[_+5]=g,v[_+6]=m}},e.prototype.x1BlockRenderChar=function(e,t,n,i,o,r){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=.5,u=o.r,l=o.g,c=o.b,d=i.r-u,h=i.g-l,p=i.b-c,f=u+d*a,g=l+h*a,m=c+p*a,v=e.data,_=n*s+4*t;v[_+0]=f,v[_+1]=g,v[_+2]=m,_+=s,v[_+0]=f,v[_+1]=g,v[_+2]=m}},e}();function Qt(e){for(var t=new Uint8ClampedArray(e.length),n=0,i=e.length;n<i;n++)t[n]=e[n];return t}var Jt=null;function en(){if(!Jt){var e=Qt(nn);nn=null;var t=Qt(tn);tn=null,Jt=new $t(t,e)}return Jt}var tn=[0,0,0,0,0,0,0,0,39,14,39,14,14,5,29,10,96,96,29,29,0,0,0,0,49,113,195,214,227,166,135,42,40,29,194,38,75,148,197,187,145,0,160,61,75,143,2,183,138,58,163,6,177,223,197,227,38,13,11,4,0,0,0,0,10,54,52,8,62,4,71,122,73,2,19,40,10,50,155,36,79,70,145,121,7,5,0,0,2,1,36,12,204,166,16,5,0,0,0,0,1,0,154,34,0,0,0,0,96,83,0,0,0,0,0,0,0,0,46,34,0,82,2,56,53,3,146,0,146,119,152,132,152,131,145,119,170,42,15,42,15,42,172,194,131,132,0,139,80,28,227,143,159,135,15,118,11,126,171,144,20,124,88,106,217,196,0,106,189,92,168,43,5,130,164,133,130,115,183,65,134,120,141,141,170,196,2,106,31,32,105,2,145,130,116,114,132,135,138,140,138,113,147,137,81,183,129,94,0,0,21,16,4,3,46,34,0,0,45,34,1,0,160,49,0,0,43,143,203,23,1,76,0,0,38,28,131,96,38,28,0,0,168,31,29,191,98,0,118,139,5,113,45,13,37,6,97,115,161,179,204,105,223,224,83,52,111,100,184,186,120,132,212,145,180,139,174,161,212,182,104,162,131,0,131,0,104,161,219,120,110,116,110,116,219,120,207,154,163,40,147,22,207,154,202,159,161,47,145,23,111,0,139,154,144,30,144,135,139,187,110,110,168,161,150,145,110,110,185,162,43,16,43,16,185,162,73,129,0,110,0,110,191,87,149,149,236,48,195,91,146,149,146,0,146,0,146,0,187,173,200,201,222,215,172,147,95,95,193,97,224,129,159,206,97,192,155,139,153,115,153,115,156,140,189,158,123,136,190,64,111,0,155,139,153,115,153,114,156,241,197,148,150,152,170,116,110,157,156,128,169,14,13,159,158,149,212,189,43,16,43,16,43,16,148,110,148,110,147,109,182,151,133,121,106,118,114,103,89,66,94,94,211,188,205,207,139,168,151,152,87,76,101,79,151,152,130,156,125,116,47,29,43,16,169,228,11,103,120,6,230,176,55,49,55,6,55,6,193,102,92,0,71,0,13,30,0,147,63,43,12,43,12,43,142,152,71,53,61,61,0,0,0,0,0,0,0,0,0,0,158,146,25,2,0,0,0,0,0,0,0,0,107,130,170,194,176,188,109,0,203,159,113,111,202,158,0,0,135,135,114,0,136,135,0,109,187,190,148,126,177,187,0,0,149,130,218,105,169,135,37,113,146,113,49,13,49,13,0,0,178,195,147,114,255,255,109,0,193,149,110,109,109,109,12,15,125,41,33,41,144,188,1,6,75,53,10,53,210,161,110,0,152,148,210,60,110,156,213,5,63,5,63,5,45,111,0,0,232,172,190,168,190,169,0,0,190,144,109,109,109,109,0,0,168,140,148,111,168,140,0,0,200,151,113,110,255,158,0,0,184,188,147,139,186,255,0,0,122,130,111,0,109,0,0,0,132,69,109,93,110,136,51,5,205,103,61,6,47,106,0,0,110,109,110,122,155,179,0,0,132,120,113,114,84,63,0,0,124,108,202,189,160,174,0,0,144,142,79,57,159,146,0,0,138,138,119,117,255,69,0,0,97,198,47,38,208,84,23,112,41,14,157,7,121,192,35,11,35,11,35,11,160,61,129,9,40,19,20,139,236,44,0,0,15,3,97,93,0,0],nn=[0,0,23,12,53,0,130,127,58,149,67,77,72,198,13,0,25,51,25,49,94,2,8,64,0,24,0,21,0,9,19,27,126,126,51,80,72,105,87,98,73,93,106,85,111,123,87,30,116,126,123,110,4,16,9,28,21,53,8,62,23,52,73,21,132,183,78,142,168,175,70,70,128,128,123,110,125,43,100,139,125,119,78,78,54,77,139,139,33,87,201,117,162,149,130,130,138,60,130,172,149,127,95,98,95,25,118,135,110,85,147,175,105,110,121,30,101,113,34,68,20,26,34,68,56,0,0,44,3,0,27,175,80,133,31,66,85,147,32,150,90,25,45,230,77,101,36,83,22,84,71,118,44,44,52,172,38,101,35,130,40,197,43,197,29,26,23,103,67,44,25,129,29,85,27,177,33,97,32,145,33,77,38,96,20,55,36,95,2,22],on=n("303e"),rn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function sn(e){return 2===e?4:4===e?6:1===e?2:3}function an(e){return 2===e?2:4===e?2:1}var un=140,ln=function(){function e(e){var t=e.editor.pixelRatio,n=e.editor.layoutInfo,i=e.editor.viewInfo,o=e.editor.fontInfo;this.renderMinimap=0|n.renderMinimap,this.scrollBeyondLastLine=i.scrollBeyondLastLine,this.showSlider=i.minimap.showSlider,this.pixelRatio=t,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.lineHeight=e.editor.lineHeight,this.minimapLeft=n.minimapLeft,this.minimapWidth=n.minimapWidth,this.minimapHeight=n.height,this.canvasInnerWidth=Math.max(1,Math.floor(t*this.minimapWidth)),this.canvasInnerHeight=Math.max(1,Math.floor(t*this.minimapHeight)),this.canvasOuterWidth=this.canvasInnerWidth/t,this.canvasOuterHeight=this.canvasInnerHeight/t}return e.prototype.equals=function(e){return this.renderMinimap===e.renderMinimap&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight},e}(),cn=function(){function e(e,t,n,i,o,r,s){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=n,this.sliderTop=i,this.sliderHeight=o,this.startLineNumber=r,this.endLineNumber=s}return e.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},e.create=function(t,n,i,o,r,s,a,u,l){var c,d,h=t.pixelRatio,p=sn(t.renderMinimap),f=Math.floor(t.canvasInnerHeight/p),g=t.lineHeight;if(r&&i!==s){var m=i-n+1;c=Math.floor(m*p/h)}else{var v=o/g;c=Math.floor(v*p/h)}d=t.scrollBeyondLastLine?(s-1)*p/h:Math.max(0,s*p/h-c),d=Math.min(t.minimapHeight-c,d);var _=d/(u-o),b=a*_,y=0;if(t.scrollBeyondLastLine){v=o/g;y=v}if(f>=s+y){var w=1,C=s;return new e(a,u,_,b,c,w,C)}w=Math.max(1,Math.floor(n-b*h/p));l&&l.scrollHeight===u&&(l.scrollTop>a&&(w=Math.min(w,l.startLineNumber)),l.scrollTop<a&&(w=Math.max(w,l.startLineNumber)));C=Math.min(s,w+f-1);return new e(a,u,_,b,c,w,C)},e}(),dn=function(){function e(e){this.dy=e}return e.prototype.onContentChanged=function(){this.dy=-1},e.prototype.onTokensChanged=function(){this.dy=-1},e.INVALID=new e(-1),e}(),hn=function(){function e(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new pt(function(){return dn.INVALID}),this._renderedLines._set(e.startLineNumber,n)}return e.prototype.linesEquals=function(e){if(!this.scrollEquals(e))return!1;for(var t=this._renderedLines._get(),n=t.lines,i=0,o=n.length;i<o;i++)if(-1===n[i].dy)return!1;return!0},e.prototype.scrollEquals=function(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber},e.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}},e.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber)},e.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges)},e}(),pn=function(){function e(t,n,i,o){this._backgroundFillData=e._createBackgroundFillData(n,i,o),this._buffers=[t.createImageData(n,i),t.createImageData(n,i)],this._lastUsedBuffer=0}return e.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e},e._createBackgroundFillData=function(e,t,n){for(var i=n.r,o=n.g,r=n.b,s=new Uint8ClampedArray(e*t*4),a=0,u=0;u<t;u++)for(var l=0;l<e;l++)s[a]=i,s[a+1]=o,s[a+2]=r,s[a+3]=255,a+=4;return s},e}(),fn=function(e){function t(t){var n=e.call(this,t)||this;return n._renderDecorations=!1,n._options=new ln(n._context.configuration),n._lastRenderData=null,n._buffers=null,n._domNode=Object(h["b"])(document.createElement("div")),E.write(n._domNode,8),n._domNode.setClassName(n._getMinimapDomNodeClassName()),n._domNode.setPosition("absolute"),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._shadow=Object(h["b"])(document.createElement("div")),n._shadow.setClassName("minimap-shadow-hidden"),n._domNode.appendChild(n._shadow),n._canvas=Object(h["b"])(document.createElement("canvas")),n._canvas.setPosition("absolute"),n._canvas.setLeft(0),n._domNode.appendChild(n._canvas),n._decorationsCanvas=Object(h["b"])(document.createElement("canvas")),n._decorationsCanvas.setPosition("absolute"),n._decorationsCanvas.setClassName("minimap-decorations-layer"),n._decorationsCanvas.setLeft(0),n._domNode.appendChild(n._decorationsCanvas),n._slider=Object(h["b"])(document.createElement("div")),n._slider.setPosition("absolute"),n._slider.setClassName("minimap-slider"),n._slider.setLayerHinting(!0),n._domNode.appendChild(n._slider),n._sliderHorizontal=Object(h["b"])(document.createElement("div")),n._sliderHorizontal.setPosition("absolute"),n._sliderHorizontal.setClassName("minimap-slider-horizontal"),n._slider.appendChild(n._sliderHorizontal),n._tokensColorTracker=Xt.getInstance(),n._applyLayout(),n._mouseDownListener=o["k"](n._domNode.domNode,"mousedown",function(e){e.preventDefault();var t=n._options.renderMinimap;if(0!==t&&n._lastRenderData){var i=sn(t),o=n._options.pixelRatio*e.browserEvent.offsetY,r=Math.floor(o/i),s=r+n._lastRenderData.renderedLayout.startLineNumber;s=Math.min(s,n._context.model.getLineCount()),n._context.privateViewEventBus.emit(new qe(new te["a"](s,1,s,1),1,!1,0))}}),n._sliderMouseMoveMonitor=new _["a"],n._sliderMouseDownListener=o["k"](n._slider.domNode,"mousedown",function(e){if(e.preventDefault(),e.stopPropagation(),e.leftButton&&n._lastRenderData){var t=e.posy,i=e.posx,o=n._lastRenderData.renderedLayout;n._slider.toggleClassName("active",!0),n._sliderMouseMoveMonitor.startMonitoring(_["b"],function(e){var r=Math.abs(e.posx-i);if(v["g"]&&r>un)n._context.viewLayout.setScrollPositionNow({scrollTop:o.scrollTop});else{var s=e.posy-t;n._context.viewLayout.setScrollPositionNow({scrollTop:o.getDesiredScrollTopFromDelta(s)})}},function(){n._slider.toggleClassName("active",!1)})}}),n}return rn(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new pn(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new ln(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},t.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._renderDecorations=!!this._lastDecorations,!!this._lastDecorations},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){var t=this._options.renderMinimap;if(0===t)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var n=cn.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(n.sliderTop),this._slider.setHeight(n.sliderHeight);var i=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,o=Math.min(this._options.minimapWidth,Math.round(i*an(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(o),this._sliderHorizontal.setWidth(this._options.minimapWidth-o),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(n.sliderHeight),this.renderDecorations(n),this._lastRenderData=this.renderLines(n)},t.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._context.model.getDecorationsInViewport(new te["a"](e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),n=this._options,i=n.renderMinimap,o=n.canvasInnerWidth,r=n.canvasInnerHeight,s=sn(i),a=an(i),u=this._context.model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,o,r);for(var c=new Map,d=0;d<t.length;d++){var h=t[d];if(h.options.minimap)for(var p=h.range.startLineNumber;p<=h.range.endLineNumber;p++)this.renderDecorationOnLine(l,c,h,e,p,s,s,u,a)}this._lastDecorations=t}},t.prototype.renderDecorationOnLine=function(e,t,n,i,o,r,s,a,u){var l=(o-i.startLineNumber)*s,c=t.get(o),d=!c;if(!c){var h=this._context.model.getLineContent(o);c=[0];for(var p=1;p<h.length+1;p++){var f=h.charCodeAt(p-1),g=9===f?a*u:Oe["v"](f)?2*u:u;c[p]=c[p-1]+g}t.set(o,c)}var m=n.range,v=m.startColumn,_=m.endColumn,b=m.startLineNumber,y=m.endLineNumber,w=b===o?c[v-1]:0,C=y>o?c.length-1:_-1;if(C>0){var S=c[C]-w||2;this.renderDecoration(e,n.options.minimap,w,l,S,r)}d&&this.renderLineHighlight(e,n.options.minimap,l,r)},t.prototype.renderLineHighlight=function(e,t,n,i){var o=t.getColor(this._context.theme);e.fillStyle=o&&o.transparent(.5).toString()||"",e.fillRect(0,n,e.canvas.width,i)},t.prototype.renderDecoration=function(e,t,n,i,o,r){var s=t.getColor(this._context.theme);e.fillStyle=s&&s.toString()||"",e.fillRect(n,i,o,r)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,i=e.startLineNumber,o=e.endLineNumber,r=sn(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new hn(e,s.imageData,s.lines)}for(var a=this._getBuffer(),u=t._renderUntouchedLines(a,i,o,r,this._lastRenderData),l=u[0],c=u[1],d=u[2],h=this._context.model.getMinimapLinesRenderingData(i,o,d),p=h.tabSize,f=this._tokensColorTracker.getColor(2),g=this._tokensColorTracker.backgroundIsLight(),m=0,v=[],_=0,b=o-i+1;_<b;_++)d[_]&&t._renderLine(a,f,g,n,this._tokensColorTracker,en(),m,p,h.data[_]),v[_]=new dn(m),m+=r;var y=-1===l?0:l,w=-1===c?a.height:c,C=w-y,S=this._canvas.domNode.getContext("2d");return S.putImageData(a,0,0,0,y,a.width,C),new hn(e,a,v)},t._renderUntouchedLines=function(e,t,n,i,o){var r=[];if(!o){for(var s=0,a=n-t+1;s<a;s++)r[s]=!0;return[-1,-1,r]}for(var u=o._get(),l=u.imageData.data,c=u.rendLineNumberStart,d=u.lines,h=d.length,p=e.width,f=e.data,g=(n-t+1)*i*p*4,m=-1,v=-1,_=-1,b=-1,y=-1,w=-1,C=0,S=t;S<=n;S++){var L=S-t,O=S-c,x=O>=0&&O<h?d[O].dy:-1;if(-1!==x){var N=x*p*4,D=(x+i)*p*4,k=C*p*4,I=(C+i)*p*4;b===N&&w===k?(b=D,w=I):(-1!==_&&(f.set(l.subarray(_,b),y),-1===m&&0===_&&_===y&&(m=b),-1===v&&b===g&&_===y&&(v=_)),_=N,b=D,y=k,w=I),r[L]=!1,C+=i}else r[L]=!0,C+=i}-1!==_&&(f.set(l.subarray(_,b),y),-1===m&&0===_&&_===y&&(m=b),-1===v&&b===g&&_===y&&(v=_));var E=-1===m?-1:m/(4*p),M=-1===v?-1:v/(4*p);return[E,M,r]},t._renderLine=function(e,t,n,i,o,r,s,a,u){for(var l=u.content,c=u.tokens,d=an(i),h=e.width-d,p=0,f=0,g=0,m=0,v=c.getCount();m<v;m++)for(var _=c.getEndOffset(m),b=c.getForeground(m),y=o.getColor(b);f<_;f++){if(p>h)return;var w=l.charCodeAt(f);if(9===w){var C=a-(f+g)%a;g+=C-1,p+=C*d}else if(32===w)p+=d;else for(var S=Oe["v"](w)?2:1,L=0;L<S;L++)if(2===i?r.x2RenderChar(e,p,s,w,y,t,n):1===i?r.x1RenderChar(e,p,s,w,y,t,n):4===i?r.x2BlockRenderChar(e,p,s,y,t,n):r.x1BlockRenderChar(e,p,s,y,t,n),p+=d,p>h)return}},t}(I);Object(B["f"])(function(e,t){var n=e.getColor(on["Nb"]);if(n){var i=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var o=e.getColor(on["Ob"]);if(o){var r=o.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }")}var s=e.getColor(on["Mb"]);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var u=e.getColor(on["Lb"]);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")});n("725e");var gn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mn=function(e){function t(t){var n=e.call(this,t)||this;return n._widgets={},n._verticalScrollbarWidth=n._context.configuration.editor.layoutInfo.verticalScrollbarWidth,n._minimapWidth=n._context.configuration.editor.layoutInfo.minimapWidth,n._horizontalScrollbarHeight=n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,n._editorHeight=n._context.configuration.editor.layoutInfo.height,n._editorWidth=n._context.configuration.editor.layoutInfo.width,n._domNode=Object(h["b"])(document.createElement("div")),E.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n}return gn(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=Object(h["b"])(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t],i=n.domNode.domNode;delete this._widgets[t],i.parentNode.removeChild(i),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var o=t[n];this._renderWidget(this._widgets[o])}},t}(I),vn=n("ceb8"),_n=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bn=function(){function e(e,t){this.lineHeight=e.editor.lineHeight,this.pixelRatio=e.editor.pixelRatio,this.overviewRulerLanes=e.editor.viewInfo.overviewRulerLanes,this.renderBorder=e.editor.viewInfo.overviewRulerBorder;var n=t.getColor(Ie["l"]);this.borderColor=n?n.toString():null,this.hideCursor=e.editor.viewInfo.hideCursorInOverviewRuler;var i=t.getColor(Ie["g"]);this.cursorColor=i?i.transparent(.7).toString():null,this.themeType=t.type;var o=e.editor.viewInfo.minimap.enabled,r=e.editor.viewInfo.minimap.side,s=o?Yt["y"].getDefaultBackground():null;this.backgroundColor=null===s||"left"===r?null:vn["a"].Format.CSS.formatHex(s);var a=e.editor.layoutInfo.overviewRuler;this.top=a.top,this.right=a.right,this.domWidth=a.width,this.domHeight=a.height,this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0;var u=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),l=u[0],c=u[1];this.x=l,this.w=c}return e.prototype._initLanes=function(e,t,n){var i=t-e;if(n>=3){var o=Math.floor(i/3),r=Math.floor(i/3),s=i-o-r,a=e,u=a+o,l=a+o+s;return[[0,a,u,a,l,a,u,a],[0,o,s,o+s,r,o+s+r,s+r,o+s+r]]}if(2===n){o=Math.floor(i/2),r=i-o,a=e,l=a+o;return[[0,a,a,a,l,a,a,a],[0,o,o,o,r,o+r,o+r,o+r]]}var c=e,d=i;return[[0,c,c,c,c,c,c,c],[0,d,d,d,d,d,d,d]]},e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight},e}(),yn=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=Object(h["b"])(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setAttribute("aria-hidden","true"),n._updateSettings(!1),n._tokensColorTrackerListener=Yt["y"].onDidChange(function(e){e.changedColorMap&&n._updateSettings(!0)}),n._cursorPositions=[],n}return _n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new bn(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(ee["a"].compare),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._render()},t.prototype._render=function(){var e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,o=this._context.viewLayout.getScrollHeight(),r=t/o,s=this._context.model.getAllOverviewRulerDecorations(this._context.theme),a=6*this._settings.pixelRatio|0,u=a/2|0,l=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?l.clearRect(0,0,e,t):(l.fillStyle=this._settings.backgroundColor,l.fillRect(0,0,e,t));var c=this._settings.x,d=this._settings.w,h=Object.keys(s);h.sort();for(var p=0,f=h.length;p<f;p++){var g=h[p],m=s[g];l.fillStyle=g;for(var v=0,_=0,b=0,y=0,w=m.length;y<w;y++){var C=m[3*y],S=m[3*y+1],L=m[3*y+2],O=i.getVerticalOffsetForLineNumber(S)*r|0,x=(i.getVerticalOffsetForLineNumber(L)+n)*r|0,N=x-O;if(N<a){var D=(O+x)/2|0;D<u?D=u:D+u>t&&(D=t-u),O=D-u,x=D+u}O>b+1||C!==v?(0!==y&&l.fillRect(c[v],_,d[v],b-_),v=C,_=O,b=x):x>b&&(b=x)}l.fillRect(c[v],_,d[v],b-_)}if(!this._settings.hideCursor&&this._settings.cursorColor){var k=2*this._settings.pixelRatio|0,I=k/2|0,E=this._settings.x[7],M=this._settings.w[7];l.fillStyle=this._settings.cursorColor;for(_=-100,b=-100,y=0,w=this._cursorPositions.length;y<w;y++){var T=this._cursorPositions[y];D=i.getVerticalOffsetForLineNumber(T.lineNumber)*r|0;D<I?D=I:D+I>t&&(D=t-I);O=D-I,x=O+k;O>b+1?(0!==y&&l.fillRect(E,_,M,b-_),_=O,b=x):x>b&&(b=x)}l.fillRect(E,_,M,b-_)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())},t}(I),wn=n("32f2"),Cn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Sn=function(e){function t(t,n){var i=e.call(this)||this;return i._context=t,i._domNode=Object(h["b"])(document.createElement("canvas")),i._domNode.setClassName(n),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._zoneManager=new wn["b"](function(e){return i._context.viewLayout.getVerticalOffsetForLineNumber(e)}),i._zoneManager.setDOMWidth(0),i._zoneManager.setDOMHeight(0),i._zoneManager.setOuterHeight(i._context.viewLayout.getScrollHeight()),i._zoneManager.setLineHeight(i._context.configuration.editor.lineHeight),i._zoneManager.setPixelRatio(i._context.configuration.editor.pixelRatio),i._context.addEventHandler(i),i}return Cn(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),e.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},t.prototype.onFlushed=function(e){return this._render(),!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},t.prototype.onZonesChanged=function(e){return this._render(),!0},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(o,n,i,e),!0},t.prototype._renderOneLane=function(e,t,n,i){for(var o=0,r=0,s=0,a=0,u=t;a<u.length;a++){var l=u[a],c=l.colorId,d=l.from,h=l.to;c!==o?(e.fillRect(0,r,i,s-r),o=c,e.fillStyle=n[o],r=d,s=h):s>=d?s=Math.max(s,h):(e.fillRect(0,r,i,s-r),r=d,s=h)}e.fillRect(0,r,i,s-r)},t}(D),Ln=(n("ef37"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),On=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=Object(h["b"])(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[],n._rulers=n._context.configuration.editor.viewInfo.rulers,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n}return Ln(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!!(e.viewInfo||e.layoutInfo||e.fontInfo)&&(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0)},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t){var n=this._context.model.getOptions().tabSize,i=n,o=t-e;while(o>0){var r=Object(h["b"])(document.createElement("div"));r.setClassName("view-ruler"),r.setWidth(i),this.domNode.appendChild(r),this._renderedRulers.push(r),o--}}else{var s=e-t;while(s>0){r=this._renderedRulers.pop();this.domNode.removeChild(r),s--}}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var i=this._renderedRulers[t];i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth)}},t}(I);Object(B["f"])(function(e,t){var n=e.getColor(Ie["m"]);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }")});n("d8c3");var xn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Nn=function(e){function t(t){var n=e.call(this,t)||this;return n._scrollTop=0,n._width=0,n._updateWidth(),n._shouldShow=!1,n._useShadows=n._context.configuration.editor.viewInfo.scrollbar.useShadows,n._domNode=Object(h["b"])(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n}return xn(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e=this._context.configuration.editor.layoutInfo,t=0;return t=0===e.renderMinimap||e.minimapWidth>0&&0===e.minimapLeft?e.width:e.width-e.minimapWidth-e.verticalScrollbarWidth,this._width!==t&&(this._width=t,!0)},t.prototype.onConfigurationChanged=function(e){var t=!1;return e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),e.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(I);Object(B["f"])(function(e,t){var n=e.getColor(on["Lb"]);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")});n("782d");var Dn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kn=function(){function e(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}return e}(),In=function(){function e(e,t){this.lineNumber=e,this.ranges=t}return e}();function En(e){return new kn(e)}function Mn(e){return new In(e.lineNumber,e.ranges.map(En))}var Tn=f["g"],Pn=function(e){function t(t){var n=e.call(this)||this;return n._previousFrameVisibleRangesWithStyle=[],n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._roundedSelection=n._context.configuration.editor.viewInfo.roundedSelection,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return Dn(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i.ranges.length>1)return!0}return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,o=null,r=null;if(n&&n.length>0&&t.length>0){var s=t[0].lineNumber;if(s===e.startLineNumber)for(var a=0;!o&&a<n.length;a++)n[a].lineNumber===s&&(o=n[a].ranges[0]);var u=t[t.length-1].lineNumber;if(u===e.endLineNumber)for(a=n.length-1;!r&&a>=0;a--)n[a].lineNumber===u&&(r=n[a].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}a=0;for(var l=t.length;a<l;a++){var c=t[a].ranges[0],d=c.left,h=c.left+c.width,p={top:0,bottom:0},f={top:0,bottom:0};if(a>0){var g=t[a-1].ranges[0].left,m=t[a-1].ranges[0].left+t[a-1].ranges[0].width;Rn(d-g)<i?p.top=2:d>g&&(p.top=1),Rn(h-m)<i?f.top=2:g<h&&h<m&&(f.top=1)}else o&&(p.top=o.startStyle.top,f.top=o.endStyle.top);if(a+1<l){var v=t[a+1].ranges[0].left,_=t[a+1].ranges[0].left+t[a+1].ranges[0].width;Rn(d-v)<i?p.bottom=2:v<d&&d<_&&(p.bottom=1),Rn(h-_)<i?f.bottom=2:h<_&&(f.bottom=1)}else r&&(p.bottom=r.startStyle.bottom,f.bottom=r.endStyle.bottom);c.startStyle=p,c.endStyle=f}},t.prototype._getVisibleRangesWithStyle=function(e,t,n){var i=t.linesVisibleRangesForRange(e,!0)||[],o=i.map(Mn),r=this._visibleRangesHaveGaps(o);return Tn||r||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,o,n),o},t.prototype._createSelectionPiece=function(e,t,n,i,o){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+o.toString()+"px;height:"+t+'px;"></div>'},t.prototype._actualRenderOneSelection=function(e,n,i,o){for(var r=o.length>0&&o[0].ranges[0].startStyle,s=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),u=o.length>0?o[0].lineNumber:0,l=o.length>0?o[o.length-1].lineNumber:0,c=0,d=o.length;c<d;c++){for(var h=o[c],p=h.lineNumber,f=p-n,g=i&&(p===l||p===u)?a:s,m=i&&p===u?1:0,v="",_=0,b=h.ranges.length;_<b;_++){var y=h.ranges[_];if(r){var w=y.startStyle,C=y.endStyle;if(1===w.top||1===w.bottom){v+=this._createSelectionPiece(m,g,t.SELECTION_CLASS_NAME,y.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH);var S=t.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(S+=" "+t.SELECTION_TOP_RIGHT),1===w.bottom&&(S+=" "+t.SELECTION_BOTTOM_RIGHT),v+=this._createSelectionPiece(m,g,S,y.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH)}if(1===C.top||1===C.bottom){v+=this._createSelectionPiece(m,g,t.SELECTION_CLASS_NAME,y.left+y.width,t.ROUNDED_PIECE_WIDTH);var L=t.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(L+=" "+t.SELECTION_TOP_LEFT),1===C.bottom&&(L+=" "+t.SELECTION_BOTTOM_LEFT),v+=this._createSelectionPiece(m,g,L,y.left+y.width,t.ROUNDED_PIECE_WIDTH)}}var O=t.SELECTION_CLASS_NAME;if(r){w=y.startStyle,C=y.endStyle;0===w.top&&(O+=" "+t.SELECTION_TOP_LEFT),0===w.bottom&&(O+=" "+t.SELECTION_BOTTOM_LEFT),0===C.top&&(O+=" "+t.SELECTION_TOP_RIGHT),0===C.bottom&&(O+=" "+t.SELECTION_BOTTOM_RIGHT)}v+=this._createSelectionPiece(m,g,O,y.left,y.width)}e[f]+=v}},t.prototype.prepareRender=function(e){for(var t=[],n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o=n;o<=i;o++){var r=o-n;t[r]=""}for(var s=[],a=0,u=this._selections.length;a<u;a++){var l=this._selections[a];if(l.isEmpty())s[a]=null;else{var c=this._getVisibleRangesWithStyle(l,e,this._previousFrameVisibleRangesWithStyle[a]);s[a]=c,this._actualRenderOneSelection(t,n,this._selections.length>1,c)}}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(ke);function Rn(e){return e<0?-e:e}Object(B["f"])(function(e,t){var n=e.getColor(on["H"]);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(on["E"]);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var o=e.getColor(on["I"]);o&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+o+"; }")});n("d93b");var An=n("fd49"),Fn=function(){function e(e,t,n,i,o,r){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=o,this.textContentClassName=r}return e}(),jn=function(){function e(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(h["b"])(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),l["a"].applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this._position=new ee["a"](1,1),this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return this._position},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},e.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(l["a"].applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},e.prototype.onCursorPositionChanged=function(e){return this._position=e,!0},e.prototype._prepareRender=function(e){var t="",n="";if(this._cursorStyle===An["g"].Line||this._cursorStyle===An["g"].LineThin){var i,r=e.visibleRangeForPosition(this._position);if(!r)return null;if(this._cursorStyle===An["g"].Line){if(i=o["q"](this._lineCursorWidth>0?this._lineCursorWidth:2),i>2){var s=this._context.model.getLineContent(this._position.lineNumber);t=s.charAt(this._position.column-1)}}else i=o["q"](1);var a=r.left;i>=2&&a>=1&&(a-=1);var u=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new Fn(u,a,i,this._lineHeight,t,n)}var l=e.linesVisibleRangesForRange(new te["a"](this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!l||0===l.length||0===l[0].ranges.length)return null;var c=l[0].ranges[0],d=c.width<1?this._typicalHalfwidthCharacterWidth:c.width;if(this._cursorStyle===An["g"].Block){var h=this._context.model.getViewLineData(this._position.lineNumber);t=h.content.charAt(this._position.column-1),Oe["w"](h.content.charCodeAt(this._position.column-1))&&(t+=h.content.charAt(this._position.column));var p=h.tokens.findTokenIndexAtOffset(this._position.column-1);n=h.tokens.getClassName(p)}var f=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,g=this._lineHeight;return this._cursorStyle!==An["g"].Underline&&this._cursorStyle!==An["g"].UnderlineThin||(f+=this._lineHeight-2,g=2),new Fn(f,c.left,d,g,t,n)},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},e.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},e}(),Wn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Vn=function(e){function t(t){var n=e.call(this,t)||this;return n._readOnly=n._context.configuration.editor.readOnly,n._cursorBlinking=n._context.configuration.editor.viewInfo.cursorBlinking,n._cursorStyle=n._context.configuration.editor.viewInfo.cursorStyle,n._cursorSmoothCaretAnimation=n._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation,n._selectionIsEmpty=!0,n._isVisible=!1,n._primaryCursor=new jn(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=Object(h["b"])(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._updateDomClassName(),n._domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new m["e"],n._cursorFlatBlinkInterval=new m["c"],n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return Wn(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){e.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),e.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._cursorSmoothCaretAnimation=this._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation),this._primaryCursor.onConfigurationChanged(e),this._updateBlinking(),e.viewInfo&&this._updateDomClassName();for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0},t.prototype._onCursorPositionChanged=function(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length)for(var n=t.length-this._secondaryCursors.length,i=0;i<n;i++){var o=new jn(this._context);this._domNode.domNode.insertBefore(o.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(o)}else if(this._secondaryCursors.length>t.length){var r=this._secondaryCursors.length-t.length;for(i=0;i<r;i++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(i=0;i<t.length;i++)this._secondaryCursors[i].onCursorPositionChanged(t[i])},t.prototype.onCursorStateChanged=function(e){for(var t=[],n=0,i=e.selections.length;n<i;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var o=e.selections[0].isEmpty();return this._selectionIsEmpty!==o&&(this._selectionIsEmpty=o,this._updateDomClassName()),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onTokensChanged=function(e){var t=function(t){for(var n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(var n=0,i=this._secondaryCursors;n<i.length;n++){var o=i[n];if(t(o.getPosition()))return!0}return!1},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},t.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var n=this._getCursorBlinking(),i=0===n,o=5===n;i?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),i||o||(1===n?this._cursorFlatBlinkInterval.cancelAndSet(function(){e._isVisible?e._hide():e._show()},t.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){e._blinkingEnabled=!0,e._updateDomClassName()},t.BLINK_INTERVAL))},t.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},t.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case An["g"].Line:e+=" cursor-line-style";break;case An["g"].Block:e+=" cursor-block-style";break;case An["g"].Underline:e+=" cursor-underline-style";break;case An["g"].LineThin:e+=" cursor-line-thin-style";break;case An["g"].BlockOutline:e+=" cursor-block-outline-style";break;case An["g"].UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e},t.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0},t.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1},t.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)},t.prototype.render=function(e){var t=[],n=0,i=this._primaryCursor.render(e);i&&(t[n++]=i);for(var o=0,r=this._secondaryCursors.length;o<r;o++){var s=this._secondaryCursors[o].render(e);s&&(t[n++]=s)}this._renderData=t},t.prototype.getLastRenderData=function(){return this._renderData},t.BLINK_INTERVAL=500,t}(I);Object(B["f"])(function(e,t){var n=e.getColor(Ie["g"]);if(n){var i=e.getColor(Ie["f"]);i||(i=n.opposite()),t.addRule(".monaco-editor .cursor { background-color: "+n+"; border-color: "+n+"; color: "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}});var Bn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Hn=function(e){function t(t){var n=e.call(this,t)||this;return n._lineHeight=n._context.configuration.editor.lineHeight,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode=Object(h["b"])(document.createElement("div")),n.domNode.setClassName("view-zones"),n.domNode.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.marginDomNode=Object(h["b"])(document.createElement("div")),n.marginDomNode.setClassName("margin-view-zones"),n.marginDomNode.setPosition("absolute"),n.marginDomNode.setAttribute("role","presentation"),n.marginDomNode.setAttribute("aria-hidden","true"),n._zones={},n}return Bn(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=!1,t=Object.keys(this._zones),n=0,i=t.length;n<i;n++){var o=t[n],r=this._zones[o],s=this._computeWhitespaceProps(r.delegate);this._context.viewLayout.changeWhitespace(o,s.afterViewLineNumber,s.heightInPx)&&(this._safeCallOnComputedHeight(r.delegate,s.heightInPx),e=!0)}return e},t.prototype.onConfigurationChanged=function(e){return e.lineHeight?(this._lineHeight=this._context.configuration.editor.lineHeight,this._recomputeWhitespacesProps()):(e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0)},t.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();return t&&this._context.viewLayout.onHeightMaybeChanged(),t},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype._getZoneOrdinal=function(e){return"undefined"!==typeof e.afterColumn?e.afterColumn:1e4},t.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t,n;if("undefined"!==typeof e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var i=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new ee["a"](i,this._context.model.getModelLineMaxColumn(i))}n=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});var o=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),r=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:o.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},t.prototype.addZone=function(e){var t=this._computeWhitespaceProps(e),n=this._context.viewLayout.addWhitespace(t.afterViewLineNumber,this._getZoneOrdinal(e),t.heightInPx,t.minWidthInPx),i={whitespaceId:n,delegate:e,isVisible:!1,domNode:Object(h["b"])(e.domNode),marginDomNode:e.marginDomNode?Object(h["b"])(e.marginDomNode):null};return this._safeCallOnComputedHeight(i.delegate,t.heightInPx),i.domNode.setPosition("absolute"),i.domNode.domNode.style.width="100%",i.domNode.setDisplay("none"),i.domNode.setAttribute("monaco-view-zone",i.whitespaceId),this.domNode.appendChild(i.domNode),i.marginDomNode&&(i.marginDomNode.setPosition("absolute"),i.marginDomNode.domNode.style.width="100%",i.marginDomNode.setDisplay("none"),i.marginDomNode.setAttribute("monaco-view-zone",i.whitespaceId),this.marginDomNode.appendChild(i.marginDomNode)),this._zones[i.whitespaceId]=i,this.setShouldRender(),i.whitespaceId},t.prototype.removeZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return delete this._zones[e],this._context.viewLayout.removeWhitespace(t.whitespaceId),t.domNode.removeAttribute("monaco-visible-view-zone"),t.domNode.removeAttribute("monaco-view-zone"),t.domNode.domNode.parentNode.removeChild(t.domNode.domNode),t.marginDomNode&&(t.marginDomNode.removeAttribute("monaco-visible-view-zone"),t.marginDomNode.removeAttribute("monaco-view-zone"),t.marginDomNode.domNode.parentNode.removeChild(t.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},t.prototype.layoutZone=function(e){var t=!1;if(this._zones.hasOwnProperty(e)){var n=this._zones[e],i=this._computeWhitespaceProps(n.delegate);t=this._context.viewLayout.changeWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx)||t,t&&(this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender())}return t},t.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1},t.prototype._heightInPixels=function(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight},t.prototype._minWidthInPixels=function(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0},t.prototype._safeCallOnComputedHeight=function(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(n){Object(r["e"])(n)}},t.prototype._safeCallOnDomNodeTop=function(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(n){Object(r["e"])(n)}},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){for(var t=e.viewportData.whitespaceViewportData,n={},i=!1,o=0,r=t.length;o<r;o++)n[t[o].id]=t[o],i=!0;var s=Object.keys(this._zones);for(o=0,r=s.length;o<r;o++){var a=s[o],u=this._zones[a],l=0,c=0,d="none";n.hasOwnProperty(a)?(l=n[a].verticalOffset-e.bigNumbersDelta,c=n[a].height,d="block",u.isVisible||(u.domNode.setAttribute("monaco-visible-view-zone","true"),u.isVisible=!0),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset))):(u.isVisible&&(u.domNode.removeAttribute("monaco-visible-view-zone"),u.isVisible=!1),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),u.domNode.setTop(l),u.domNode.setHeight(c),u.domNode.setDisplay(d),u.marginDomNode&&(u.marginDomNode.setTop(l),u.marginDomNode.setHeight(c),u.marginDomNode.setDisplay(d))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},t}(I),zn=function(){function e(e,t,n,i){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=i}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},e}(),Un=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)},e.prototype.removeEventHandler=function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}},e.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e],this._isConsumingQueue||this.consumeQueue()},e.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e,this._isConsumingQueue||this.consumeQueue()},e.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper(function(){try{e._isConsumingQueue=!0,e._doConsumeQueue()}finally{e._isConsumingQueue=!1}})},e.prototype._doConsumeQueue=function(){while(this._eventQueue){var e=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),n=0,i=t.length;n<i;n++)t[n].handleEvents(e)}},e}(),Kn=function(){function e(e,t,n,i){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new te["a"](t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return e.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)},e.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},e}(),qn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Gn=function(){throw new Error("Invalid change accessor")},Zn=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;a._cursor=r,a._renderAnimationFrame=null,a.outgoingEvents=s;var u=new dt(n,o,a.outgoingEvents,t);a.eventDispatcher=new Un(function(e){return a._renderOnce(e)}),a.eventDispatcher.addEventHandler(a),a._context=new zn(n,i.getTheme(),o,a.eventDispatcher),a._register(i.onThemeChange(function(e){a._context.theme=e,a.eventDispatcher.emit(new Ye),a.render(!0,!1)})),a.viewParts=[],a._textAreaHandler=new st(a._context,u,a.createTextAreaHandlerHelper()),a.viewParts.push(a._textAreaHandler),a.linesContent=Object(h["b"])(document.createElement("div")),a.linesContent.setClassName("lines-content monaco-editor-background"),a.linesContent.setPosition("absolute"),a.domNode=Object(h["b"])(document.createElement("div")),a.domNode.setClassName(a.getEditorClassName()),a.overflowGuardContainer=Object(h["b"])(document.createElement("div")),E.write(a.overflowGuardContainer,3),a.overflowGuardContainer.setClassName("overflow-guard"),a._scrollbar=new Tt(a._context,a.linesContent,a.domNode,a.overflowGuardContainer),a.viewParts.push(a._scrollbar),a.viewLines=new zt(a._context,a.linesContent),a.viewZones=new Hn(a._context),a.viewParts.push(a.viewZones);var l=new yn(a._context);a.viewParts.push(l);var c=new Nn(a._context);a.viewParts.push(c);var d=new bt(a._context);a.viewParts.push(d),d.addDynamicOverlay(new xt(a._context)),d.addDynamicOverlay(new Pn(a._context)),d.addDynamicOverlay(new Wt(a._context)),d.addDynamicOverlay(new It(a._context));var p=new yt(a._context);a.viewParts.push(p),p.addDynamicOverlay(new Dt(a._context)),p.addDynamicOverlay(new Ft(a._context)),p.addDynamicOverlay(new Gt(a._context)),p.addDynamicOverlay(new Kt(a._context)),p.addDynamicOverlay(new Me(a._context));var f=new Pe(a._context);f.getDomNode().appendChild(a.viewZones.marginDomNode),f.getDomNode().appendChild(p.getDomNode()),a.viewParts.push(f),a.contentWidgets=new St(a._context,a.domNode),a.viewParts.push(a.contentWidgets),a.viewCursors=new Vn(a._context),a.viewParts.push(a.viewCursors),a.overlayWidgets=new mn(a._context),a.viewParts.push(a.overlayWidgets);var g=new On(a._context);a.viewParts.push(g);var m=new fn(a._context);if(a.viewParts.push(m),l){var v=a._scrollbar.getOverviewRulerLayoutInfo();v.parent.insertBefore(l.getDomNode(),v.insertBefore)}return a.linesContent.appendChild(d.getDomNode()),a.linesContent.appendChild(g.domNode),a.linesContent.appendChild(a.viewZones.domNode),a.linesContent.appendChild(a.viewLines.getDomNode()),a.linesContent.appendChild(a.contentWidgets.domNode),a.linesContent.appendChild(a.viewCursors.getDomNode()),a.overflowGuardContainer.appendChild(f.getDomNode()),a.overflowGuardContainer.appendChild(a._scrollbar.getDomNode()),a.overflowGuardContainer.appendChild(c.getDomNode()),a.overflowGuardContainer.appendChild(a._textAreaHandler.textArea),a.overflowGuardContainer.appendChild(a._textAreaHandler.textAreaCover),a.overflowGuardContainer.appendChild(a.overlayWidgets.getDomNode()),a.overflowGuardContainer.appendChild(m.getDomNode()),a.domNode.appendChild(a.overflowGuardContainer),a.domNode.appendChild(a.contentWidgets.overflowingContentWidgetsDomNode),a._setLayout(),a.pointerHandler=a._register(new Le(a._context,u,a.createPointerHandlerHelper())),a._register(o.addEventListener(function(e){a.eventDispatcher.emitMany(e)})),a._register(a._cursor.addEventListener(function(e){a.eventDispatcher.emitMany(e)})),a}return qn(t,e),t.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastViewCursorsRenderData:function(){return e.viewCursors.getLastRenderData()||[]},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition2:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new ee["a"](t,n))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new ee["a"](t,n))}}},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this.overflowGuardContainer.setWidth(e.width),this.overflowGuardContainer.setHeight(e.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},t.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.editor.editorClassName+" "+Object(B["e"])(this._context.theme.type)+e},t.prototype.onConfigurationChanged=function(e){return e.editorClassName&&this.domNode.setClassName(this.getEditorClassName()),e.layoutInfo&&this._setLayout(),!1},t.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},t.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},t.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var t=0,n=this.viewParts.length;t<n;t++)this.viewParts[t].dispose();this.viewParts=[],e.prototype.dispose.call(this)},t.prototype._renderOnce=function(e){var t=Yn(e);return this._scheduleRender(),t},t.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=o["N"](this._onRenderScheduled.bind(this),100))},t.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},t.prototype._renderNow=function(){var e=this;Yn(function(){return e._actualRender()})},t.prototype._getViewPartsToRender=function(){for(var e=[],t=0,n=0,i=this.viewParts.length;n<i;n++){var o=this.viewParts[n];o.shouldRender()&&(e[t++]=o)}return e},t.prototype._actualRender=function(){if(o["G"](this.domNode.domNode)){var e=this._getViewPartsToRender();if(this.viewLines.shouldRender()||0!==e.length){var t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var n=new Kn(this._cursor.getViewSelections(),t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(n),this.viewLines.shouldRender()&&(this.viewLines.renderText(n),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var i=new P(this._context.viewLayout,n,this.viewLines),r=0,s=e.length;r<s;r++){var a=e[r];a.prepareRender(i)}for(r=0,s=e.length;r<s;r++){a=e[r];a.render(i),a.onDidRender()}}}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},t.prototype.getOffsetForColumn=function(e,t){var n=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var o=this.viewLines.visibleRangeForPosition(new ee["a"](i.lineNumber,i.column));return o?o.left:-1},t.prototype.getTargetAtClientPoint=function(e,t){return this.pointerHandler.getTargetAtClientPoint(e,t)},t.prototype.createOverviewRuler=function(e){return new Sn(this._context,e)},t.prototype.change=function(e){var t=this,n=!1;return this._renderOnce(function(){var i={addZone:function(e){return n=!0,t.viewZones.addZone(e)},removeZone:function(e){e&&(n=t.viewZones.removeZone(e)||n)},layoutZone:function(e){e&&(n=t.viewZones.layoutZone(e)||n)}};Xn(e,i),i.addZone=Gn,i.removeZone=Gn,i.layoutZone=Gn,n&&(t._context.viewLayout.onHeightMaybeChanged(),t._context.privateViewEventBus.emit(new $e))}),n},t.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var n=0,i=this.viewParts.length;n<i;n++){var o=this.viewParts[n];o.forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},t.prototype.focus=function(){this._textAreaHandler.focusTextArea()},t.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},t.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},t.prototype.layoutContentWidget=function(e){var t=e.position?e.position.position:null,n=e.position&&e.position.range||null,i=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,n,i),this._scheduleRender()},t.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},t.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},t.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null,n=this.overlayWidgets.setWidgetPosition(e.widget,t);n&&this._scheduleRender()},t.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},t}(D);function Yn(e){try{return e()}catch(t){Object(r["e"])(t)}}function Xn(e,t){try{return e(t)}catch(n){Object(r["e"])(n)}}var $n=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Qn=function(e){function t(t){var n=e.call(this)||this;return n.onDidScroll=null,n.onDidGainFocus=null,n.onDidLoseFocus=null,n.onKeyDown=null,n.onKeyUp=null,n.onContextMenu=null,n.onMouseMove=null,n.onMouseLeave=null,n.onMouseUp=null,n.onMouseDown=null,n.onMouseDrag=null,n.onMouseDrop=null,n.onMouseWheel=null,n._viewModel=t,n}return $n(t,e),t.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},t.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},t.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},t.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},t.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},t.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},t.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},t.prototype._convertViewToModelMouseTarget=function(e){return new Jn(e.element,e.type,e.mouseColumn,e.position?this._convertViewToModelPosition(e.position):null,e.range?this._convertViewToModelRange(e.range):null,e.detail)},t.prototype._convertViewToModelPosition=function(e){return this._viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},t.prototype._convertViewToModelRange=function(e){return this._viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},t}(a["a"]),Jn=function(){function e(e,t,n,i,o,r){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=o,this.detail=r}return e.prototype.toString=function(){return oe.toString(this)},e}(),ei=function(){function e(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new ne["f"](new te["a"](1,1,1,1),0,new ee["a"](1,1),0),new ne["f"](new te["a"](1,1,1,1),0,new ee["a"](1,1),0))}return e.prototype.dispose=function(e){this._removeTrackedRange(e)},e.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e)},e.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e)},e.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},e.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)},e.prototype.asCursorState=function(){return new ne["d"](this.modelState,this.viewState)},e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new pe["a"](t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new pe["a"](t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},e.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},e.prototype.setState=function(e,t,n){this._setState(e,t,n)},e.prototype._setState=function(e,t,n){if(t){r=e.model.validateRange(t.selectionStart);var i=t.selectionStart.equalsRange(r)?t.selectionStartLeftoverVisibleColumns:0,o=(s=e.model.validatePosition(t.position),t.position.equals(s)?t.leftoverVisibleColumns:0);t=new ne["f"](r,i,s,o)}else{if(!n)return;var r=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),s=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new ne["f"](r,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns)}if(n){l=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position);n=new ne["f"](l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}else{var a=e.convertModelPositionToViewPosition(new ee["a"](t.selectionStart.startLineNumber,t.selectionStart.startColumn)),u=e.convertModelPositionToViewPosition(new ee["a"](t.selectionStart.endLineNumber,t.selectionStart.endColumn)),l=new te["a"](a.lineNumber,a.column,u.lineNumber,u.column),c=e.convertModelPositionToViewPosition(t.position);n=new ne["f"](l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)},e}(),ti=function(){function e(e){this.context=e,this.primaryCursor=new ei(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return e.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},e.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)},e.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)},e.prototype.updateContext=function(e){this.context=e},e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)},e.prototype.readSelectionFromMarkers=function(){var e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e},e.prototype.getAll=function(){var e=[];e[0]=this.primaryCursor.asCursorState();for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e},e.prototype.getViewPositions=function(){var e=[];e[0]=this.primaryCursor.viewState.position;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e},e.prototype.getSelections=function(){var e=[];e[0]=this.primaryCursor.modelState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e},e.prototype.getViewSelections=function(){var e=[];e[0]=this.primaryCursor.viewState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e},e.prototype.setSelections=function(e){this.setStates(ne["d"].fromModelSelections(e))},e.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},e.prototype.setStates=function(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))},e.prototype._setSecondaryStates=function(e){var t=this.secondaryCursors.length,n=e.length;if(t<n)for(var i=n-t,o=0;o<i;o++)this._addSecondaryCursor();else if(t>n){var r=t-n;for(o=0;o<r;o++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(o=0;o<n;o++)this.secondaryCursors[o].setState(this.context,e[o].modelState,e[o].viewState)},e.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},e.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new ei(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},e.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex},e.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e},e.prototype.normalize=function(){if(0!==this.secondaryCursors.length){for(var e=this._getAll(),t=[],n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort(function(e,t){return e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber});for(var o=0;o<t.length-1;o++){var r=t[o],s=t[o+1],a=r.selection,u=s.selection;if(this.context.config.multiCursorMergeOverlapping){var l=void 0;if(l=u.isEmpty()||a.isEmpty()?u.getStartPosition().isBeforeOrEqual(a.getEndPosition()):u.getStartPosition().isBefore(a.getEndPosition()),l){var c=r.index<s.index?o:o+1,d=r.index<s.index?o+1:o,h=t[d].index,p=t[c].index,f=t[d].selection,g=t[c].selection;if(!f.equalsSelection(g)){var m=f.plusRange(g),v=f.selectionStartLineNumber===f.startLineNumber&&f.selectionStartColumn===f.startColumn,_=g.selectionStartLineNumber===g.startLineNumber&&g.selectionStartColumn===g.startColumn,b=void 0;h===this.lastAddedCursorIndex?(b=v,this.lastAddedCursorIndex=p):b=_;var y=void 0;y=b?new pe["a"](m.startLineNumber,m.startColumn,m.endLineNumber,m.endColumn):new pe["a"](m.endLineNumber,m.endColumn,m.startLineNumber,m.startColumn),t[c].selection=y;var w=ne["d"].fromModelSelection(y);e[p].setState(this.context,w.modelState,w.viewState)}for(var C=0,S=t;C<S.length;C++){var L=S[C];L.index>h&&L.index--}e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),o--}}}}},e}(),ni=n("b272"),ii=n("191f"),oi=n("8ae8"),ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function si(e){for(var t=0,n=e.length;t<n;t++)if(6===e[t].type)return!0;return!1}var ai=function(){function e(e,t,n){this.selections=e,this.source=t,this.reason=n}return e}(),ui=function(){function e(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}return e.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0},e}(),li=function(){function e(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}return e.getAllAutoClosedCharacters=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n];t=t.concat(o.getAutoClosedCharactersRanges())}return t},e.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},e.prototype.getAutoClosedCharactersRanges=function(){for(var e=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e},e.prototype.isValid=function(e){for(var t=[],n=0;n<this._autoClosedEnclosingDecorations.length;n++){var i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}t.sort(te["a"].compareRangesUsingStarts),e.sort(te["a"].compareRangesUsingStarts);for(n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0},e}(),ci=function(e){function t(t,n,i){var o=e.call(this)||this;o._onDidReachMaxCursorCount=o._register(new s["a"]),o.onDidReachMaxCursorCount=o._onDidReachMaxCursorCount.event,o._onDidAttemptReadOnlyEdit=o._register(new s["a"]),o.onDidAttemptReadOnlyEdit=o._onDidAttemptReadOnlyEdit.event,o._onDidChange=o._register(new s["a"]),o.onDidChange=o._onDidChange.event,o._configuration=t,o._model=n,o._knownModelVersionId=o._model.getVersionId(),o._viewModel=i,o.context=new ne["c"](o._configuration,o._model,o._viewModel),o._cursors=new ti(o.context),o._isHandling=!1,o._isDoingComposition=!1,o._columnSelectData=null,o._autoClosedActions=[],o._prevEditOperationType=0,o._register(o._model.onDidChangeRawContent(function(e){if(o._knownModelVersionId=e.versionId,!o._isHandling){var t=e.containsEvent(1);o._onModelContentChanged(t)}})),o._register(i.addEventListener(function(e){si(e)&&o._knownModelVersionId===o._model.getVersionId()&&o.setStates("viewModel",0,o.getAll())}));var r=function(){o.context=new ne["c"](o._configuration,o._model,o._viewModel),o._cursors.updateContext(o.context)};return o._register(o._model.onDidChangeLanguage(function(e){r()})),o._register(o._model.onDidChangeLanguageConfiguration(function(){r()})),o._register(o._model.onDidChangeOptions(function(){r()})),o._register(o._configuration.onDidChange(function(e){ne["b"].shouldRecreate(e)&&r()})),o}return ri(t,e),t.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(a["f"])(this._autoClosedActions),e.prototype.dispose.call(this)},t.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var e=this._cursors.getSelections(),t=0;t<this._autoClosedActions.length;t++){var n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}},t.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},t.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},t.prototype.getAll=function(){return this._cursors.getAll()},t.prototype.setStates=function(e,n,i){null!==i&&i.length>t.MAX_CURSOR_COUNT&&(i=i.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var o=new ui(this._model,this);this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,n,o)},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e},t.prototype.reveal=function(e,t,n){this._revealRange(t,0,e,n)},t.prototype.revealRange=function(e,t,n,i){this.emitCursorRevealRange(t,n,e,i)},t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},t.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;n<i;n++){var o=t[n];e.push({inSelectionMode:!o.isEmpty(),selectionStart:{lineNumber:o.selectionStartLineNumber,column:o.selectionStartColumn},position:{lineNumber:o.positionLineNumber,column:o.positionColumn}})}return e},t.prototype.restoreState=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n],r=1,s=1;o.position&&o.position.lineNumber&&(r=o.position.lineNumber),o.position&&o.position.column&&(s=o.position.column);var a=r,u=s;o.selectionStart&&o.selectionStart.lineNumber&&(a=o.selectionStart.lineNumber),o.selectionStart&&o.selectionStart.column&&(u=o.selectionStart.column),t.push({selectionStartLineNumber:a,selectionStartColumn:u,positionLineNumber:r,positionColumn:s})}this.setStates("restoreState",0,ne["d"].fromModelSelections(t)),this.reveal(!0,0,1)},t.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new ti(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,ne["d"].fromModelSelections(t))}},t.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},t.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor(),t=e.viewState.position,n=t.lineNumber,i=ne["a"].visibleColumnFromColumn2(this.context.config,this.context.viewModel,t);return{isReal:!1,fromViewLineNumber:n,fromViewVisualColumn:i,toViewLineNumber:n,toViewVisualColumn:i}},t.prototype.getSelections=function(){return this._cursors.getSelections()},t.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},t.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},t.prototype.setSelections=function(e,t){this.setStates(e,0,ne["d"].fromModelSelections(t))},t.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},t.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},t.prototype._pushAutoClosedAction=function(e,t){for(var n=[],i=[],o=0,r=e.length;o<r;o++)n.push({range:e[o],options:{inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[o],options:{stickiness:1}});var s=this._model.deltaDecorations([],n),a=this._model.deltaDecorations([],i);this._autoClosedActions.push(new li(this._model,s,a))},t.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=di.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);for(var n=[],i=[],o=0;o<e.commands.length;o++){var r=e.commands[o];r instanceof ii["b"]&&r.enclosingRange&&r.closeCharacterRange&&(n.push(r.closeCharacterRange),i.push(r.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},t.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},t.prototype._emitStateChangedIfNecessary=function(e,t,n){var i=new ui(this._model,this);if(i.equals(n))return!1;var o=this._cursors.getSelections(),r=this._cursors.getViewSelections();try{var s=this._beginEmit();s.emit(new je(r))}finally{this._endEmit()}return n&&n.cursorState.length===i.cursorState.length&&!i.cursorState.some(function(e,t){return!e.modelState.equals(n.cursorState[t].modelState)})||this._onDidChange.fire(new ai(o,e||"keyboard",t)),!0},t.prototype._revealRange=function(e,t,n,i){var o=this._cursors.getViewPositions(),r=o[0];if(1===e)for(var s=1;s<o.length;s++)o[s].isBefore(r)&&(r=o[s]);else if(2===e)for(s=1;s<o.length;s++)r.isBeforeOrEqual(o[s])&&(r=o[s]);else if(o.length>1)return;var a=new te["a"](r.lineNumber,r.column,r.lineNumber,r.column);this.emitCursorRevealRange(a,t,n,i)},t.prototype.emitCursorRevealRange=function(e,t,n,i){try{var o=this._beginEmit();o.emit(new qe(e,t,n,i))}finally{this._endEmit()}},t.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!o.text||o.text.indexOf("\n")>=0)return null;var r=o.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;var s=r[1],a=this.context.config.autoClosingPairsClose2.get(s);if(!a||1!==a.length)return null;var u=a[0].open,l=o.text.length-r[2].length-1,c=o.text.lastIndexOf(u,l-1);if(-1===c)return null;t.push([c,l])}return t},t.prototype.executeEdits=function(e,t,n){var i=this,o=null;"snippet"===e&&(o=this._findAutoClosingPairs(t)),o&&(t[0]._isTracked=!0);var r=[],s=[],a=this._model.pushEditOperations(this.getSelections(),t,function(e){if(o)for(var t=0,a=o.length;t<a;t++){var u=o[t],l=u[0],c=u[1],d=e[t],h=d.range.startLineNumber,p=d.range.startColumn-1+l,f=d.range.startColumn-1+c;r.push(new te["a"](h,f+1,h,f+2)),s.push(new te["a"](h,p+1,h,f+2))}var g=n(e);return g&&(i._isHandling=!0),g});a&&(this._isHandling=!1,this.setSelections(e,a)),r.length>0&&this._pushAutoClosedAction(r,s)},t.prototype.trigger=function(e,t,n){var i=oi["b"];if(t!==i.CompositionStart)if(t===i.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly)this._onDidAttemptReadOnlyEdit.fire(void 0);else{var o=new ui(this._model,this),s=0;t!==i.Undo&&t!==i.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case i.Type:this._type(e,n.text);break;case i.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case i.Paste:s=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case i.Cut:this._cut();break;case i.Undo:s=5,this._interpretCommandResult(this._model.undo());break;case i.Redo:s=6,this._interpretCommandResult(this._model.redo());break;case i.ExecuteCommand:this._externalExecuteCommand(n);break;case i.ExecuteCommands:this._externalExecuteCommands(n);break;case i.CompositionEnd:this._interpretCompositionEnd(e);break}}catch(a){Object(r["e"])(a)}this._isHandling=!1,t!==i.Undo&&t!==i.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,s,o)&&this._revealRange(0,0,!0,0)}else this._isDoingComposition=!0},t.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&"keyboard"===e){var t=li.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(ii["a"].compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t))}},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(ii["a"].typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,i=t.length;n<i;n++){var o=t.charCodeAt(n),r=void 0;Oe["w"](o)&&n+1<i?(r=t.charAt(n)+t.charAt(n+1),n++):r=t.charAt(n);var s=li.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(ii["a"].typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),s,r))}},t.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(ii["a"].replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))},t.prototype._paste=function(e,t,n){this._executeEditOperation(ii["a"].paste(this.context.config,this.context.model,this.getSelections(),e,t,n))},t.prototype._cut=function(){this._executeEditOperation(ni["a"].cut(this.context.config,this.context.model,this.getSelections()))},t.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new ne["e"](0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new ne["e"](0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.MAX_CURSOR_COUNT=1e4,t}(Je),di=function(){function e(){}return e.executeCommands=function(e,t,n){for(var i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(i,n),r=0,s=i.trackedRanges.length;r<s;r++)i.model._setTrackedRange(i.trackedRanges[r],null,0);return o},e._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var i=n.operations,o=this._getLoserCursorMap(i);if(o.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var r=[],s=0,a=i.length;s<a;s++)o.hasOwnProperty(i[s].identifier.major.toString())||r.push(i[s]);n.hadTrackedEditOperation&&r.length>0&&(r[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,r,function(n){for(var i=[],o=0;o<e.selectionsBefore.length;o++)i[o]=[];for(var r=0,s=n;r<s.length;r++){var a=s[r];a.identifier&&i[a.identifier.major].push(a)}var u=function(e,t){return e.identifier.minor-t.identifier.minor},l=[],c=function(n){i[n].length>0?(i[n].sort(u),l[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new pe["a"](i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new pe["a"](i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):l[n]=e.selectionsBefore[n]};for(o=0;o<e.selectionsBefore.length;o++)c(o);return l});u||(u=e.selectionsBefore);var l=[];for(var c in o)o.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort(function(e,t){return t-e});for(var d=0,h=l;d<h.length;d++){var p=h[d];u.splice(p,1)}return u},e._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0},e._getEditOperations=function(e,t){for(var n=[],i=!1,o=0,r=t.length;o<r;o++){var s=t[o];if(s){var a=this._getEditOperationsFromCommand(e,o,s);n=n.concat(a.operations),i=i||a.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}},e._getEditOperationsFromCommand=function(e,t,n){var i=[],o=0,s=function(e,r){e.isEmpty()&&""===r||i.push({identifier:{major:t,minor:o++},range:e,text:r,forceMoveMarkers:!1,isAutoWhitespaceEdit:n.insertsAutoWhitespace})},a=!1,u=function(e,t){a=!0,s(e,t)},l=function(t,n){var i;if(t.isEmpty())if("boolean"===typeof n)i=n?2:3;else{var o=e.model.getLineMaxColumn(t.startLineNumber);i=t.startColumn===o?2:3}else i=1;var r=e.trackedRanges.length,s=e.model._setTrackedRange(null,t,i);return e.trackedRanges[r]=s,e.trackedRangesDirection[r]=t.getDirection(),r.toString()},c={addEditOperation:s,addTrackedEditOperation:u,trackSelection:l};try{n.getEditOperations(e.model,c)}catch(d){return Object(r["e"])(d),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:a}},e._getLoserCursorMap=function(e){e=e.slice(0),e.sort(function(e,t){return-te["a"].compareRangesUsingEnds(e.range,t.range)});for(var t={},n=1;n<e.length;n++){var i=e[n-1],o=e[n];if(i.range.getStartPosition().isBefore(o.range.getEndPosition())){var r=void 0;r=i.identifier.major>o.identifier.major?i.identifier.major:o.identifier.major,t[r.toString()]=!0;for(var s=0;s<e.length;s++)e[s].identifier.major===r&&(e.splice(s,1),s<n&&n--,s--);n>0&&n--}}return t},e}(),hi=n("f58f"),pi=n("c101"),fi=n("4d05"),gi=n("42e3"),mi=function(){function e(){this._instanceId=Oe["I"](++e.INSTANCE_COUNT),this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1}return e.findInsertionIndex=function(e,t,n,i){var o=0,r=e.length;while(o<r){var s=o+r>>>1;t===e[s]?i<n[s]?r=s:o=s+1:t<e[s]?r=s:o=s+1}return o},e.prototype.insertWhitespace=function(t,n,i,o){t|=0,n|=0,i|=0,o|=0;var r=this._instanceId+ ++this._lastWhitespaceId,s=e.findInsertionIndex(this._afterLineNumbers,t,this._ordinals,n);return this._insertWhitespaceAtIndex(r,s,t,n,i,o),this._minWidth=-1,r},e.prototype._insertWhitespaceAtIndex=function(e,t,n,i,o,r){t|=0,n|=0,i|=0,o|=0,r|=0,this._heights.splice(t,0,o),this._minWidths.splice(t,0,r),this._ids.splice(t,0,e),this._afterLineNumbers.splice(t,0,n),this._ordinals.splice(t,0,i),this._prefixSum.splice(t,0,0);for(var s=Object.keys(this._whitespaceId2Index),a=0,u=s.length;a<u;a++){var l=s[a],c=this._whitespaceId2Index[l];c>=t&&(this._whitespaceId2Index[l]=c+1)}this._whitespaceId2Index[e]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,n){t|=0,n|=0;var i=!1;return i=this.changeWhitespaceHeight(e,n)||i,i=this.changeWhitespaceAfterLineNumber(e,t)||i,i},e.prototype.changeWhitespaceHeight=function(e,t){if(t|=0,this._whitespaceId2Index.hasOwnProperty(e)){var n=this._whitespaceId2Index[e];if(this._heights[n]!==t)return this._heights[n]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,n){if(n|=0,this._whitespaceId2Index.hasOwnProperty(t)){var i=this._whitespaceId2Index[t];if(this._afterLineNumbers[i]!==n){var o=this._ordinals[i],r=this._heights[i],s=this._minWidths[i];this.removeWhitespace(t);var a=e.findInsertionIndex(this._afterLineNumbers,n,this._ordinals,o);return this._insertWhitespaceAtIndex(t,a,n,o,r,s),!0}}return!1},e.prototype.removeWhitespace=function(e){if(this._whitespaceId2Index.hasOwnProperty(e)){var t=this._whitespaceId2Index[e];return delete this._whitespaceId2Index[e],this._removeWhitespaceAtIndex(t),this._minWidth=-1,!0}return!1},e.prototype._removeWhitespaceAtIndex=function(e){e|=0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),n=0,i=t.length;n<i;n++){var o=t[n],r=this._whitespaceId2Index[o];r>=e&&(this._whitespaceId2Index[o]=r-1)}},e.prototype.onLinesDeleted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;n<i;n++){var o=this._afterLineNumbers[n];e<=o&&o<=t?this._afterLineNumbers[n]=e-1:o>t&&(this._afterLineNumbers[n]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;n<i;n++){var o=this._afterLineNumbers[n];e<=o&&(this._afterLineNumbers[n]+=t-e+1)}},e.prototype.getTotalHeight=function(){return 0===this._heights.length?0:this.getAccumulatedHeight(this._heights.length-1)},e.prototype.getAccumulatedHeight=function(e){e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._prefixSum[0]=this._heights[0],t++);for(var n=t;n<=e;n++)this._prefixSum[n]=this._prefixSum[n-1]+this._heights[n];return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._prefixSum[e]},e.prototype.getAccumulatedHeightBeforeLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getAccumulatedHeight(t)},e.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;var t=this._afterLineNumbers,n=0,i=t.length-1;while(n<=i){var o=i-n|0,r=o/2|0,s=n+r|0;if(t[s]<e){if(s+1>=t.length||t[s+1]>=e)return s;n=s+1|0}else i=s-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e),n=t+1;return n<this._heights.length?n:-1},e.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){return e|=0,this._findFirstWhitespaceAfterLineNumber(e)},e.prototype.getCount=function(){return this._heights.length},e.prototype.getMinWidth=function(){if(-1===this._minWidth){for(var e=0,t=0,n=this._minWidths.length;t<n;t++)e=Math.max(e,this._minWidths[t]);this._minWidth=e}return this._minWidth},e.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return e|=0,this._afterLineNumbers[e]},e.prototype.getIdForWhitespaceIndex=function(e){return e|=0,this._ids[e]},e.prototype.getHeightForWhitespaceIndex=function(e){return e|=0,this._heights[e]},e.prototype.getWhitespaces=function(e){e|=0;for(var t=[],n=0;n<this._heights.length;n++)t.push({id:this._ids[n],afterLineNumber:this._afterLineNumbers[n],heightInLines:this._heights[n]/e});return t},e.INSTANCE_COUNT=0,e}(),vi=function(){function e(e,t){this._lineCount=e,this._lineHeight=t,this._whitespaces=new mi}return e.prototype.setLineHeight=function(e){this._lineHeight=e},e.prototype.onFlushed=function(e){this._lineCount=e},e.prototype.insertWhitespace=function(e,t,n,i){return this._whitespaces.insertWhitespace(e,t,n,i)},e.prototype.changeWhitespace=function(e,t,n){return this._whitespaces.changeWhitespace(e,t,n)},e.prototype.removeWhitespace=function(e){return this._whitespaces.removeWhitespace(e)},e.prototype.onLinesDeleted=function(e,t){this._lineCount-=t-e+1,this._whitespaces.onLinesDeleted(e,t)},e.prototype.onLinesInserted=function(e,t){this._lineCount+=t-e+1,this._whitespaces.onLinesInserted(e,t)},e.prototype.getLinesTotalHeight=function(){var e=this._lineHeight*this._lineCount,t=this._whitespaces.getTotalHeight();return e+t},e.prototype.getVerticalOffsetForLineNumber=function(e){var t;e|=0,t=e>1?this._lineHeight*(e-1):0;var n=this._whitespaces.getAccumulatedHeightBeforeLineNumber(e);return t+n},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},e.prototype.isAfterLines=function(e){var t=this.getLinesTotalHeight();return e>t},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(e|=0,e<0)return 1;var t=0|this._lineCount,n=this._lineHeight,i=1,o=t;while(i<o){var r=(i+o)/2|0,s=0|this.getVerticalOffsetForLineNumber(r);if(e>=s+n)i=r+1;else{if(e>=s)return r;o=r}}return i>t?t:i},e.prototype.getLinesViewportData=function(e,t){e|=0,t|=0;var n,i,o=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(r),a=0|this._lineCount,u=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(r),l=0|this._whitespaces.getCount();-1===u?(u=l,i=a+1,n=0):(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));var c=s,d=c,h=5e5,p=0;s>=h&&(p=Math.floor(s/h)*h,p=Math.floor(p/o)*o,d-=p);for(var f=[],g=e+(t-e)/2,m=-1,v=r;v<=a;v++){if(-1===m){var _=c,b=c+o;(_<=g&&g<b||_>g)&&(m=v)}c+=o,f[v-r]=d,d+=o;while(i===v)d+=n,c+=n,u++,u>=l?i=a+1:(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));if(c>=t){a=v;break}}-1===m&&(m=a);var y=0|this.getVerticalOffsetForLineNumber(a),w=r,C=a;return w<C&&s<e&&w++,w<C&&y+o>t&&C--,{bigNumbersDelta:p,startLineNumber:r,endLineNumber:a,relativeVerticalOffset:f,centeredLineNumber:m,completelyVisibleStartLineNumber:w,completelyVisibleEndLineNumber:C}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t,n,i=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);return t=i>=1?this._lineHeight*i:0,n=e>0?this._whitespaces.getAccumulatedHeight(e-1):0,t+n},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n,i,o=0,r=this._whitespaces.getCount()-1;if(r<0)return-1;var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this._whitespaces.getHeightForWhitespaceIndex(r);if(e>=s+a)return-1;while(o<r)if(t=Math.floor((o+r)/2),n=this.getVerticalOffsetForWhitespaceIndex(t),i=this._whitespaces.getHeightForWhitespaceIndex(t),e>=n+i)o=t+1;else{if(e>=n)return t;r=t}return o},e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var i=this._whitespaces.getHeightForWhitespaceIndex(t),o=this._whitespaces.getIdForWhitespaceIndex(t),r=this._whitespaces.getAfterLineNumberForWhitespaceIndex(t);return{id:o,afterLineNumber:r,verticalOffset:n,height:i}},e.prototype.getWhitespaceViewportData=function(e,t){e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this._whitespaces.getCount()-1;if(n<0)return[];for(var o=[],r=n;r<=i;r++){var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this._whitespaces.getHeightForWhitespaceIndex(r);if(s>=t)break;o.push({id:this._whitespaces.getIdForWhitespaceIndex(r),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a})}return o},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}(),_i=n("a8d0"),bi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),yi=125,wi=function(e){function t(t,n,i){var o=e.call(this)||this;return o._configuration=t,o._linesLayout=new vi(n,o._configuration.editor.lineHeight),o.scrollable=o._register(new gi["a"](0,i)),o._configureSmoothScrollDuration(),o.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),o.onDidScroll=o.scrollable.onScroll,o._updateHeight(),o}return bi(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onHeightMaybeChanged=function(){this._updateHeight()},t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?yi:0)},t.prototype.onConfigurationChanged=function(e){e.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),e.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),e.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)},t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)},t.prototype._getHorizontalScrollbarHeight=function(e){return 2===this._configuration.editor.viewInfo.scrollbar.horizontal?0:e.width>=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new _i["f"](t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new _i["f"](t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,t){var n=this._configuration.editor.wrappingInfo.isViewportWrapping;if(!n){var i=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,o=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+i,t,o)}return Math.max(e,t)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),i=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return{scrollTop:t,scrollTopWithoutViewZones:t-i,scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,n,i){return this._linesLayout.insertWhitespace(e,t,n,i)},t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){var e=this.scrollable.getScrollDimensions();return e.scrollWidth},t.prototype.getScrollHeight=function(){var e=this.scrollable.getScrollDimensions();return e.scrollHeight},t.prototype.getCurrentScrollLeft=function(){var e=this.scrollable.getCurrentScrollPosition();return e.scrollLeft},t.prototype.getCurrentScrollTop=function(){var e=this.scrollable.getCurrentScrollPosition();return e.scrollTop},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},t}(a["a"]),Ci=n("3170"),Si=n("507c"),Li=n("2de5"),Oi=n("b57f"),xi=function(){function e(e,t){this.outputLineIndex=e,this.outputOffset=t}return e}(),Ni=function(){function e(e){this._lines=e}return e.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},e.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new te["a"](t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},e.prototype.validateViewRange=function(e,t){var n=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new te["a"](n.lineNumber,n.column,i.lineNumber,i.column)},e.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},e.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new te["a"](t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},e}(),Di=function(){function e(e,t,n,i,o,r){this.model=e,this._validModelVersionId=-1,this.tabSize=n,this.wrappingColumn=i,this.columnsForFullWidthChar=o,this.wrappingIndent=r,this.linePositionMapperFactory=t,this._constructLines(!0)}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},e.prototype.createCoordinatesConverter=function(){return new Ni(this)},e.prototype._ensureValidState=function(){var e=this.model.getVersionId();if(e!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},e.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),i=n.length,o=new Uint32Array(i),r=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(te["a"].compareRangesUsingStarts),s=1,a=0,u=-1,l=u+1<r.length?a+1:i+2,c=0;c<i;c++){var d=c+1;d===l&&(u++,s=r[u].startLineNumber,a=r[u].endLineNumber,l=u+1<r.length?a+1:i+2);var h=d>=s&&d<=a,p=Mi(this.linePositionMapperFactory,n[c],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);o[c]=p.getViewLineCount(),this.lines[c]=p}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Li["b"](o)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t)})},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map(function(e){return t.model.validateRange(e)}).sort(te["a"].compareRangesUsingStarts),i=[],o=n[0].startLineNumber,r=n[0].endLineNumber,s=1,a=n.length;s<a;s++){var u=n[s];u.startLineNumber>r+1?(i.push(new te["a"](o,1,r,1)),o=u.startLineNumber,r=u.endLineNumber):u.endLineNumber>r&&(r=u.endLineNumber)}return i.push(new te["a"](o,1,r,1)),i},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(te["a"].compareRangesUsingStarts);if(n.length===i.length){for(var o=!1,r=0;r<n.length;r++)if(!n[r].equalsRange(i[r])){o=!0;break}if(!o)return!1}for(var s=[],a=0,u=n;a<u.length;a++){var l=u[a];s.push({range:l,options:Oi["a"].EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,s);var c=n,d=1,h=0,p=-1,f=p+1<c.length?h+1:this.lines.length+2,g=!1;for(r=0;r<this.lines.length;r++){var m=r+1;m===f&&(p++,d=c[p].startLineNumber,h=c[p].endLineNumber,f=p+1<c.length?h+1:this.lines.length+2);var v=!1;if(m>=d&&m<=h?this.lines[r].isVisible()&&(this.lines[r]=this.lines[r].setVisible(!1),v=!0):(g=!0,this.lines[r].isVisible()||(this.lines[r]=this.lines[r].setVisible(!0),v=!0)),v){var _=this.lines[r].getViewLineCount();this.prefixSumComputer.changeValue(r,_)}}return g||this.setHiddenAreas([]),!0},e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0)},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new Ue(i,o)},e.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),r=!1,s=new ee["a"](t,1),a=0,u=o;a<u.length;a++){var l=u[a];if(l.containsPosition(s)){r=!0;break}}for(var c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,d=0,h=[],p=new Uint32Array(i.length),f=0,g=i.length;f<g;f++){var m=Mi(this.linePositionMapperFactory,i[f],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!r);h.push(m);var v=m.getViewLineCount();d+=v,p[f]=v}return this.lines=this.lines.slice(0,t-1).concat(h).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,p),new Ke(c,c+d-1)},e.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var i=t-1,o=this.lines[i].getViewLineCount(),r=this.lines[i].isVisible(),s=Mi(this.linePositionMapperFactory,n,this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,r);this.lines[i]=s;var a=this.lines[i].getViewLineCount(),u=!1,l=0,c=-1,d=0,h=-1,p=0,f=-1;o>a?(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+a-1,p=c+1,f=p+(o-a)-1,u=!0):o<a?(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+o-1,d=c+1,h=d+(a-o)-1,u=!0):(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+a-1),this.prefixSumComputer.changeValue(i,a);var g=l<=c?new ze(l,c):null,m=d<=h?new Ke(d,h):null,v=p<=f?new Ue(p,f):null;return[u,g,m,v]},e.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])},e.prototype.getViewLineCount=function(){return this._ensureValidState(),this.prefixSumComputer.getTotalValue()},e.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();return e>t?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getActiveIndentGuide=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),r=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(i.lineNumber,o.lineNumber,r.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),u=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:u.lineNumber,indent:s.indent}},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),o=[],r=[],s=[],a=n.lineNumber-1,u=i.lineNumber-1,l=null,c=a;c<=u;c++){var d=this.lines[c];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,c===a?n.column:1),p=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1)),f=p-h+1,g=0;f>1&&1===d.getViewLineMinColumn(this.model,c+1,p)&&(g=0===h?1:2),r.push(f),s.push(g),null===l&&(l=new ee["a"](c+1,0))}else null!==l&&(o=o.concat(this.model.getLinesIndentGuides(l.lineNumber,c)),l=null)}null!==l&&(o=o.concat(this.model.getLinesIndentGuides(l.lineNumber,i.lineNumber)),l=null);for(var m=t-e+1,v=new Array(m),_=0,b=0,y=o.length;b<y;b++){var w=o[b],C=(f=Math.min(m-_,r[b]),g=s[b],void 0);C=2===g?0:1===g?1:f;for(var S=0;S<f;S++)S===C&&(w=0),v[_++]=w}return v},e.prototype.getViewLineContent=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,i)},e.prototype.getViewLineLength=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,i)},e.prototype.getViewLineMinColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,i)},e.prototype.getViewLineMaxColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,i)},e.prototype.getViewLineData=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,i)},e.prototype.getViewLinesData=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var i=this.prefixSumComputer.getIndexOf(e-1),o=e,r=i.index,s=i.remainder,a=[],u=r,l=this.model.getLineCount();u<l;u++){var c=this.lines[u];if(c.isVisible()){var d=u===r?s:0,h=c.getViewLineCount()-d,p=!1;o+h>t&&(p=!0,h=t-o+1);var f=d+h;if(c.getViewLinesData(this.model,u+1,d,f,o-e,n,a),o+=h,p)break}}return a},e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,r=i.remainder,s=this.lines[o],a=s.getViewLineMinColumn(this.model,o+1,r),u=s.getViewLineMaxColumn(this.model,o+1,r);t<a&&(t=a),t>u&&(t=u);var l=s.getModelColumnOfViewPosition(r,t),c=this.model.validatePosition(new ee["a"](o+1,l));return c.equals(n)?new ee["a"](e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,o=n.remainder,r=this.lines[i].getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new ee["a"](i+1,r))},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();var n=this.model.validatePosition(new ee["a"](e,t)),i=n.lineNumber,o=n.column,r=i-1,s=!1;while(r>0&&!this.lines[r].isVisible())r--,s=!0;if(0===r&&!this.lines[r].isVisible())return new ee["a"](1,1);var a,u=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));return a=s?this.lines[r].getViewPositionOfModelPosition(u,this.model.getLineMaxColumn(r+1)):this.lines[i-1].getViewPositionOfModelPosition(u,o),a},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,t)}while(n>0&&!this.lines[n].isVisible())n--;if(0===n&&!this.lines[n].isVisible())return 1;var o=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(n+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new Ri,r=0,s=i;r<s.length;r++){var a=s[r],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=this._getViewLineNumberForModelPosition(a.range.startLineNumber,a.range.startColumn),h=this._getViewLineNumberForModelPosition(a.range.endLineNumber,a.range.endColumn);o.accept(c,d,h,l)}}return o.result},e.prototype.getDecorationsInRange=function(e,t,n){var i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new te["a"](i.lineNumber,1,o.lineNumber,o.column),t,n);for(var r=[],s=i.lineNumber-1,a=o.lineNumber-1,u=null,l=s;l<=a;l++){var c=this.lines[l];if(c.isVisible())null===u&&(u=new ee["a"](l+1,l===s?i.column:1));else if(null!==u){var d=this.model.getLineMaxColumn(l);r=r.concat(this.model.getDecorationsInRange(new te["a"](u.lineNumber,u.column,l,d),t,n)),u=null}}null!==u&&(r=r.concat(this.model.getDecorationsInRange(new te["a"](u.lineNumber,u.column,o.lineNumber,o.column),t,n)),u=null),r.sort(function(e,t){var n=te["a"].compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n});for(var h=[],p=0,f=null,g=0,m=r;g<m.length;g++){var v=m[g],_=v.id;f!==_&&(f=_,h[p++]=v)}return h},e}(),ki=function(){function e(){}return e.prototype.isVisible=function(){return!0},e.prototype.setVisible=function(e){return e?this:Ii.INSTANCE},e.prototype.getViewLineCount=function(){return 1},e.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t)},e.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t)},e.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)},e.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)},e.prototype.getViewLineData=function(e,t,n){var i=e.getLineTokens(t),o=i.getLineContent();return new _i["c"](o,!1,1,o.length+1,i.inflate())},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){r[o]?s[o]=this.getViewLineData(e,t,0):s[o]=null},e.prototype.getModelColumnOfViewPosition=function(e,t){return t},e.prototype.getViewPositionOfModelPosition=function(e,t){return new ee["a"](e,t)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){return e},e.INSTANCE=new e,e}(),Ii=function(){function e(){}return e.prototype.isVisible=function(){return!1},e.prototype.setVisible=function(e){return e?ki.INSTANCE:this},e.prototype.getViewLineCount=function(){return 0},e.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){throw new Error("Not supported")},e.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported")},e.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported")},e.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported")},e.INSTANCE=new e,e}(),Ei=function(){function e(e,t){this.positionMapper=e,this.wrappedIndent=this.positionMapper.getWrappedLinesIndent(),this.wrappedIndentLength=this.wrappedIndent.length,this.outputLineCount=this.positionMapper.getOutputLineCount(),this._isVisible=t}return e.prototype.isVisible=function(){return this._isVisible},e.prototype.setVisible=function(e){return this._isVisible=e,this},e.prototype.getViewLineCount=function(){return this._isVisible?this.outputLineCount:0},e.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return this.positionMapper.getInputOffsetOfOutputPosition(e,0)},e.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){return n+1===this.outputLineCount?e.getLineMaxColumn(t)-1:this.positionMapper.getInputOffsetOfOutputPosition(n+1,0)},e.prototype.getViewLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});return n>0&&(r=this.wrappedIndent+r),r},e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=o-i;return n>0&&(r=this.wrappedIndent.length+r),r},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});n>0&&(r=this.wrappedIndent+r);var s=n>0?this.wrappedIndentLength+1:1,a=r.length+1,u=n+1<this.getViewLineCount(),l=0;n>0&&(l=this.wrappedIndentLength);var c=e.getLineTokens(t);return new _i["c"](r,u,s,a,c.sliceAndInflate(i,o,l))},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a<i;a++){var u=o+a-n;r[u]?s[u]=this.getViewLineData(e,t,a):s[u]=null}},e.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return e>0&&(n<this.wrappedIndentLength?n=0:n-=this.wrappedIndentLength),this.positionMapper.getInputOffsetOfOutputPosition(e,n)+1},e.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=this.positionMapper.getOutputPositionOfInputOffset(t-1),i=n.outputLineIndex,o=n.outputOffset+1;return i>0&&(o+=this.wrappedIndentLength),new ee["a"](e+i,o)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=this.positionMapper.getOutputPositionOfInputOffset(t-1);return e+n.outputLineIndex},e}();function Mi(e,t,n,i,o,r,s){var a=e.createLineMapping(t,n,i,o,r);return null===a?s?ki.INSTANCE:Ii.INSTANCE:new Ei(a,s)}var Ti=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},e}(),Pi=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new Ti(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(e){return!1},e.prototype.setTabSize=function(e){return!1},e.prototype.setWrappingSettings=function(e,t,n){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new Ue(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,i){return new Ke(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new ze(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(e,t){},e.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),o=0;o<n;o++)i[o]=0;return i},e.prototype.getViewLineContent=function(e){return this.model.getLineContent(e)},e.prototype.getViewLineLength=function(e){return this.model.getLineLength(e)},e.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e)},e.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},e.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),n=t.getLineContent();return new _i["c"](n,!1,1,n.length+1,t.inflate())},e.prototype.getViewLinesData=function(e,t,n){var i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);for(var o=[],r=e;r<=t;r++){var s=r-e;n[s]||(o[s]=null),o[s]=this.getViewLineData(r)}return o},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new Ri,r=0,s=i;r<s.length;r++){var a=s[r],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=a.range.startLineNumber,h=a.range.endLineNumber;o.accept(c,d,h,l)}}return o.result},e.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n)},e}(),Ri=function(){function e(){this.result=Object.create(null)}return e.prototype.accept=function(e,t,n,i){var o=this.result[e];if(o){var r=o[o.length-3],s=o[o.length-1];if(r===i&&s+1>=t)return void(n>s&&(o[o.length-1]=n));o.push(i,t,n)}else this.result[e]=[i,t,n]},e}(),Ai=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fi=function(e){function t(t,n,i){for(var o=e.call(this,0)||this,r=0;r<t.length;r++)o.set(t.charCodeAt(r),1);for(r=0;r<n.length;r++)o.set(n.charCodeAt(r),2);for(r=0;r<i.length;r++)o.set(i.charCodeAt(r),3);return o}return Ai(t,e),t.prototype.get=function(t){return t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:e.prototype.get.call(this,t)},t}(Ci["a"]),ji=function(){function e(e,t,n){this.classifier=new Fi(e,t,n)}return e.nextVisibleColumn=function(e,t,n,i){return e=+e,t=+t,i=+i,n?e+(t-e%t):e+i},e.prototype.createLineMapping=function(t,n,i,o,r){if(-1===i)return null;n=+n,i=+i,o=+o,r=+r;var s=0,a="",u=-1;if(0!==r&&(u=Oe["q"](t),-1!==u)){a=t.substring(0,u);for(var l=0;l<u;l++)s=e.nextVisibleColumn(s,n,9===t.charCodeAt(l),1);var c=0;2===r?c=1:3===r&&(c=2);for(l=0;l<c;l++)a+="\t",s=e.nextVisibleColumn(s,n,!0,1);s+o>i&&(a="",s=0)}var d=this.classifier,h=0,p=[],f=0,g=0,m=-1,v=0,_=-1,b=0,y=t.length;for(l=0;l<y;l++){var w=t.charCodeAt(l),C=9===w,S=d.get(w);if(Oe["x"](w))g+=1;else{if(1===S&&(m=l,v=s),4===S&&l>0){var L=t.charCodeAt(l-1),O=d.get(L);1!==O&&(m=l,v=s)}var x=1;if(Oe["v"](w)&&(x=o),g=e.nextVisibleColumn(g,n,C,x),g>i&&0!==l){var N=void 0,D=void 0;-1!==m&&v<=i?(N=m,D=v):-1!==_&&b<=i?(N=_,D=b):(N=l,D=s),p[f++]=N-h,h=N,g=e.nextVisibleColumn(D,n,C,x),m=-1,v=0,_=-1,b=0}if(-1!==m&&(v=e.nextVisibleColumn(v,n,C,x)),-1!==_&&(b=e.nextVisibleColumn(b,n,C,x)),2===S&&(0===r||l>=u)&&(m=l+1,v=s),4===S&&l<y-1){var k=t.charCodeAt(l+1),I=d.get(k);2!==I&&(m=l+1,v=s)}3===S&&(_=l+1,b=s)}}return 0===f?null:(p[f++]=y-h,new Wi(new Li["a"](Object(Si["c"])(p)),a))},e}(),Wi=function(){function e(e,t){this._prefixSums=e,this._wrappedLinesIndent=t}return e.prototype.getOutputLineCount=function(){return this._prefixSums.getCount()},e.prototype.getWrappedLinesIndent=function(){return this._wrappedLinesIndent},e.prototype.getInputOffsetOfOutputPosition=function(e,t){return 0===e?t:this._prefixSums.getAccumulatedValue(e-1)+t},e.prototype.getOutputPositionOfInputOffset=function(e){var t=this._prefixSums.getIndexOf(e);return new xi(t.index,t.remainder)},e}(),Vi=function(){function e(e,t,n,i,o){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var i=e.range,o=e.options,r=void 0;if(o.isWholeLine){var s=this._coordinatesConverter.convertModelPositionToViewPosition(new ee["a"](i.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new ee["a"](i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));r=new te["a"](s.lineNumber,s.column,a.lineNumber,a.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new _i["e"](r,o),this._decorationsCache[t]=n}return n},e.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),n=e.startLineNumber,i=e.endLineNumber,o=[],r=0,s=[],a=n;a<=i;a++)s[a-n]=[];for(var u=0,l=t.length;u<l;u++){var c=t[u],d=c.options,h=this._getOrCreateViewModelDecoration(c),p=h.range;if(o[r++]=h,d.inlineClassName){var f=new _i["a"](p,d.inlineClassName,d.inlineClassNameAffectsLetterSpacing?3:0),g=Math.max(n,p.startLineNumber),m=Math.min(i,p.endLineNumber);for(a=g;a<=m;a++)s[a-n].push(f)}if(d.beforeContentClassName&&n<=p.startLineNumber&&p.startLineNumber<=i){f=new _i["a"](new te["a"](p.startLineNumber,p.startColumn,p.startLineNumber,p.startColumn),d.beforeContentClassName,1);s[p.startLineNumber-n].push(f)}if(d.afterContentClassName&&n<=p.endLineNumber&&p.endLineNumber<=i){f=new _i["a"](new te["a"](p.endLineNumber,p.endColumn,p.endLineNumber,p.endColumn),d.afterContentClassName,2);s[p.endLineNumber-n].push(f)}}return{decorations:o,inlineDecorations:s}},e}(),Bi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Hi=!0,zi=function(e){function t(t,n,i,o){var r=e.call(this)||this;if(r.editorId=t,r.configuration=n,r.model=i,r._tokenizeViewportSoon=r._register(new m["d"](function(){return r.tokenizeViewport()},50)),r.hasFocus=!1,r.viewportStartLine=-1,r.viewportStartLineTrackedRange=null,r.viewportStartLineDelta=0,Hi&&r.model.isTooLargeForTokenization())r.lines=new Pi(r.model);else{var s=r.configuration.editor,a=new ji(s.wrappingInfo.wordWrapBreakBeforeCharacters,s.wrappingInfo.wordWrapBreakAfterCharacters,s.wrappingInfo.wordWrapBreakObtrusiveCharacters);r.lines=new Di(r.model,a,r.model.getOptions().tabSize,s.wrappingInfo.wrappingColumn,s.fontInfo.typicalFullwidthCharacterWidth/s.fontInfo.typicalHalfwidthCharacterWidth,s.wrappingInfo.wrappingIndent)}return r.coordinatesConverter=r.lines.createCoordinatesConverter(),r.viewLayout=r._register(new wi(r.configuration,r.getLineCount(),o)),r._register(r.viewLayout.onDidScroll(function(e){e.scrollTopChanged&&r._tokenizeViewportSoon.schedule();try{var t=r._beginEmit();t.emit(new Ge(e))}finally{r._endEmit()}})),r.decorations=new Vi(r.editorId,r.model,r.configuration,r.lines,r.coordinatesConverter),r._registerModelEvents(),r._register(r.configuration.onDidChange(function(e){try{var t=r._beginEmit();r._onConfigurationChanged(t,e)}finally{r._endEmit()}})),r._register(Xt.getInstance().onDidChange(function(){try{var e=r._beginEmit();e.emit(new Xe)}finally{r._endEmit()}})),r}return Bi(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},t.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new ee["a"](e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new ee["a"](e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)},t.prototype.setHasFocus=function(e){this.hasFocus=e},t.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var i=new ee["a"](this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(i)}var o=!1,r=this.configuration.editor;if(this.lines.setWrappingSettings(r.wrappingInfo.wrappingIndent,r.wrappingInfo.wrappingColumn,r.fontInfo.typicalFullwidthCharacterWidth/r.fontInfo.typicalHalfwidthCharacterWidth)&&(e.emit(new Ve),e.emit(new He),e.emit(new We),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(o=!0)),t.readOnly&&(this.decorations.reset(),e.emit(new We)),e.emit(new Fe(t)),this.viewLayout.onConfigurationChanged(t),o&&n){var s=this.coordinatesConverter.convertModelPositionToViewPosition(n),a=this.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:a+this.viewportStartLineDelta})}},t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast(function(t){try{for(var n=e._beginEmit(),i=!1,o=!1,r=t.changes,s=t.versionId,a=0,u=r.length;a<u;a++){var l=r[a];switch(l.changeType){case 1:e.lines.onModelFlushed(),n.emit(new Ve),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),i=!0;break;case 3:var c=e.lines.onModelLinesDeleted(s,l.fromLineNumber,l.toLineNumber);null!==c&&(n.emit(c),e.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber)),i=!0;break;case 4:var d=e.lines.onModelLinesInserted(s,l.fromLineNumber,l.toLineNumber,l.detail);null!==d&&(n.emit(d),e.viewLayout.onLinesInserted(d.fromLineNumber,d.toLineNumber)),i=!0;break;case 2:var h=e.lines.onModelLineChanged(s,l.lineNumber,l.detail),p=h[0],f=h[1];d=h[2],c=h[3];o=p,f&&n.emit(f),d&&(n.emit(d),e.viewLayout.onLinesInserted(d.fromLineNumber,d.toLineNumber)),c&&(n.emit(c),e.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber));break;case 5:break}}e.lines.acceptVersionId(s),e.viewLayout.onHeightMaybeChanged(),!i&&o&&(n.emit(new He),n.emit(new We),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var g=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(g){var m=e.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),v=e.viewLayout.getVerticalOffsetForLineNumber(m.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:v+e.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(t){for(var n=[],i=0,o=t.ranges.length;i<o;i++){var r=t.ranges[i],s=e.coordinatesConverter.convertModelPositionToViewPosition(new ee["a"](r.fromLineNumber,1)).lineNumber,a=e.coordinatesConverter.convertModelPositionToViewPosition(new ee["a"](r.toLineNumber,e.model.getLineMaxColumn(r.toLineNumber))).lineNumber;n[i]={fromLineNumber:s,toLineNumber:a}}try{var u=e._beginEmit();u.emit(new Ze(n))}finally{e._endEmit()}t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(t){try{var n=e._beginEmit();n.emit(new Qe)}finally{e._endEmit()}})),this._register(this.model.onDidChangeOptions(function(t){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var n=e._beginEmit();n.emit(new Ve),n.emit(new He),n.emit(new We)}finally{e._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(t){e.decorations.onModelDecorationsChanged();try{var n=e._beginEmit();n.emit(new We)}finally{e._endEmit()}}))},t.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit(),n=this.lines.setHiddenAreas(e);n&&(t.emit(new Ve),t.emit(new He),t.emit(new We),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},t.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this.lines.getHiddenAreas();if(0===n.length)return[t];for(var i=[],o=0,r=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,u=t.endColumn,l=0,c=n.length;l<c;l++){var d=n[l].startLineNumber,h=n[l].endLineNumber;h<r||(d>a||(r<d&&(i[o++]=new te["a"](r,s,d-1,this.model.getLineMaxColumn(d-1))),r=h+1,s=1))}return(r<a||r===a&&s<u)&&(i[o++]=new te["a"](r,s,a,u)),i},t.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new te["a"](t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))},t.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new te["a"](n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))},t.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new ee["a"](n,this.getLineMinColumn(n))),o=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:o}},t.prototype.reduceRestoreState=function(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}},t.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},t.prototype.getTabSize=function(){return this.model.getOptions().tabSize},t.prototype.getOptions=function(){return this.model.getOptions()},t.prototype.getLineCount=function(){return this.lines.getViewLineCount()},t.prototype.setViewport=function(e,t,n){this.lines.warmUpLookupCache(e,t),this.viewportStartLine=e;var i=this.coordinatesConverter.convertViewPositionToModelPosition(new ee["a"](e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new te["a"](i.lineNumber,i.column,i.lineNumber,i.column),1);var o=this.viewLayout.getVerticalOffsetForLineNumber(e),r=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=r-o},t.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n)},t.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t)},t.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},t.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},t.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},t.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},t.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=Oe["q"](this.getLineContent(e));return-1===t?0:t+1},t.prototype.getLineLastNonWhitespaceColumn=function(e){var t=Oe["A"](this.getLineContent(e));return-1===t?0:t+2},t.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},t.prototype.getViewLineRenderingData=function(e,t){var n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),o=this.getTabSize(),r=this.lines.getViewLineData(t),s=this.decorations.getDecorationsViewportData(e).inlineDecorations,a=s[t-e.startLineNumber];return new _i["d"](r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,n,i,r.tokens,a,o)},t.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},t.prototype.getMinimapLinesRenderingData=function(e,t,n){var i=this.lines.getViewLinesData(e,t,n);return new _i["b"](this.getTabSize(),i)},t.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,this.configuration.editor.readOnly,e)},t.prototype.invalidateOverviewRulerColorCache=function(){for(var e=this.model.getOverviewRulerDecorations(),t=0,n=e;t<n.length;t++){var i=n[t],o=i.options.overviewRuler;o&&o.invalidateCachedColor()}},t.prototype.invalidateMinimapColorCache=function(){for(var e=this.model.getAllDecorations(),t=0,n=e;t<n.length;t++){var i=n[t],o=i.options.minimap;o&&o.invalidateCachedColor()}},t.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)},t.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},t.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},t.prototype.validateModelRange=function(e){return this.model.validateRange(e)},t.prototype.deduceModelPositionRelativeToViewPosition=function(e,t,n){var i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var o=this.model.getOffsetAt(i),r=o+t;return this.model.getPositionAt(r)},t.prototype.getEOL=function(){return this.model.getEOL()},t.prototype.getPlainTextToCopy=function(e,t,n){var i=this,o=n?"\r\n":this.model.getEOL();e=e.slice(0),e.sort(te["a"].compareRangesUsingStarts);var r=e.filter(function(e){return!e.isEmpty()});if(0===r.length){if(!t)return"";for(var s=e.map(function(e){var t=new ee["a"](e.startLineNumber,1);return i.coordinatesConverter.convertViewPositionToModelPosition(t).lineNumber}),a="",u=0;u<s.length;u++)u>0&&s[u-1]===s[u]||(a+=this.model.getLineContent(s[u])+o);return a}for(var l=[],c=0,d=r;c<d.length;c++){var h=d[c];l.push(this.getValueInRange(h,n?2:0))}return 1===l.length?l[0]:l},t.prototype.getHTMLToCopy=function(e,t){if(1===this.model.getLanguageIdentifier().id)return null;if(1!==e.length)return null;var n=this.coordinatesConverter.convertViewRangeToModelRange(e[0]);if(n.isEmpty()){if(!t)return null;var i=n.startLineNumber;n=new te["a"](i,this.model.getLineMinColumn(i),i,this.model.getLineMaxColumn(i))}var o=this.configuration.editor.fontInfo,r=this._getColorMap(),s=o.fontFamily===An["b"].fontFamily?o.fontFamily:"'"+o.fontFamily+"', "+An["b"].fontFamily;return'<div style="color: '+r[1]+";background-color: "+r[2]+";font-family: "+s+";font-weight: "+o.fontWeight+";font-size: "+o.fontSize+"px;line-height: "+o.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(n,r)+"</div>"},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize(),a="",u=n;u<=o;u++){var l=this.model.getLineTokens(u),c=l.getLineContent(),d=u===n?i-1:0,h=u===o?r-1:c.length;a+=""===c?"<br>":Object(fi["a"])(c,l.inflate(),t,d,h,s)}return a},t.prototype._getColorMap=function(){var e=Yt["y"].getColorMap(),t=["#000000"];if(e)for(var n=1,i=e.length;n<i;n++)t[n]=vn["a"].Format.CSS.formatHex(e[n]);return t},t}(Je),Ui=n("9e74"),Ki=n("4fc3"),qi=n("0a0f"),Gi=n("f07b"),Zi=n("b0cd"),Yi=n("4779"),Xi=n("ef8e");n.d(t,"a",function(){return io});var $i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Qi=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Ji=function(e,t){return function(n,i){t(n,i,e)}},eo=0,to="showUnused",no=function(){function e(e,t,n,i,o,r){this.model=e,this.viewModel=t,this.cursor=n,this.view=i,this.hasRealView=o,this.listenersToRemove=r}return e.prototype.dispose=function(){Object(a["f"])(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},e}(),io=function(e){function t(t,n,i,o,a,u,l,d,h,p){var f,g=e.call(this)||this;g._onDidDispose=g._register(new s["a"]),g.onDidDispose=g._onDidDispose.event,g._onDidChangeModelContent=g._register(new s["a"]),g.onDidChangeModelContent=g._onDidChangeModelContent.event,g._onDidChangeModelLanguage=g._register(new s["a"]),g.onDidChangeModelLanguage=g._onDidChangeModelLanguage.event,g._onDidChangeModelLanguageConfiguration=g._register(new s["a"]),g.onDidChangeModelLanguageConfiguration=g._onDidChangeModelLanguageConfiguration.event,g._onDidChangeModelOptions=g._register(new s["a"]),g.onDidChangeModelOptions=g._onDidChangeModelOptions.event,g._onDidChangeModelDecorations=g._register(new s["a"]),g.onDidChangeModelDecorations=g._onDidChangeModelDecorations.event,g._onDidChangeConfiguration=g._register(new s["a"]),g.onDidChangeConfiguration=g._onDidChangeConfiguration.event,g._onDidChangeModel=g._register(new s["a"]),g.onDidChangeModel=g._onDidChangeModel.event,g._onDidChangeCursorPosition=g._register(new s["a"]),g.onDidChangeCursorPosition=g._onDidChangeCursorPosition.event,g._onDidChangeCursorSelection=g._register(new s["a"]),g.onDidChangeCursorSelection=g._onDidChangeCursorSelection.event,g._onDidAttemptReadOnlyEdit=g._register(new s["a"]),g.onDidAttemptReadOnlyEdit=g._onDidAttemptReadOnlyEdit.event,g._onDidLayoutChange=g._register(new s["a"]),g.onDidLayoutChange=g._onDidLayoutChange.event,g._editorTextFocus=g._register(new oo),g.onDidFocusEditorText=g._editorTextFocus.onDidChangeToTrue,g.onDidBlurEditorText=g._editorTextFocus.onDidChangeToFalse,g._editorWidgetFocus=g._register(new oo),g.onDidFocusEditorWidget=g._editorWidgetFocus.onDidChangeToTrue,g.onDidBlurEditorWidget=g._editorWidgetFocus.onDidChangeToFalse,g._onWillType=g._register(new s["a"]),g.onWillType=g._onWillType.event,g._onDidType=g._register(new s["a"]),g.onDidType=g._onDidType.event,g._onCompositionStart=g._register(new s["a"]),g.onCompositionStart=g._onCompositionStart.event,g._onCompositionEnd=g._register(new s["a"]),g.onCompositionEnd=g._onCompositionEnd.event,g._onDidPaste=g._register(new s["a"]),g.onDidPaste=g._onDidPaste.event,g._onMouseUp=g._register(new s["a"]),g.onMouseUp=g._onMouseUp.event,g._onMouseDown=g._register(new s["a"]),g.onMouseDown=g._onMouseDown.event,g._onMouseDrag=g._register(new s["a"]),g.onMouseDrag=g._onMouseDrag.event,g._onMouseDrop=g._register(new s["a"]),g.onMouseDrop=g._onMouseDrop.event,g._onContextMenu=g._register(new s["a"]),g.onContextMenu=g._onContextMenu.event,g._onMouseMove=g._register(new s["a"]),g.onMouseMove=g._onMouseMove.event,g._onMouseLeave=g._register(new s["a"]),g.onMouseLeave=g._onMouseLeave.event,g._onMouseWheel=g._register(new s["a"]),g.onMouseWheel=g._onMouseWheel.event,g._onKeyUp=g._register(new s["a"]),g.onKeyUp=g._onKeyUp.event,g._onKeyDown=g._register(new s["a"]),g.onKeyDown=g._onKeyDown.event,g._onDidScrollChange=g._register(new s["a"]),g.onDidScrollChange=g._onDidScrollChange.event,g._onDidChangeViewZones=g._register(new s["a"]),g.onDidChangeViewZones=g._onDidChangeViewZones.event,g._domElement=t,g._id=++eo,g._decorationTypeKeysToIds={},g._decorationTypeSubtypes={},g.isSimpleWidget=i.isSimpleWidget||!1,g._telemetryData=i.telemetryData,n=n||{},g._configuration=g._register(g._createConfiguration(n,p)),g._register(g._configuration.onDidChange(function(e){g._onDidChangeConfiguration.fire(e),e.layoutInfo&&g._onDidLayoutChange.fire(g._configuration.editor.layoutInfo),g._configuration.editor.showUnused?g._domElement.classList.add(to):g._domElement.classList.remove(to)})),g._contextKeyService=g._register(l.createScoped(g._domElement)),g._notificationService=h,g._codeEditorService=a,g._commandService=u,g._themeService=d,g._register(new ro(g,g._contextKeyService)),g._register(new so(g,g._contextKeyService)),g._instantiationService=o.createChild(new Gi["a"]([Ki["c"],g._contextKeyService])),g._modelData=null,g._contributions={},g._actions={},g._focusTracker=new ao(t),g._focusTracker.onChange(function(){g._editorWidgetFocus.setValue(g._focusTracker.hasFocus())}),g._contentWidgets={},g._overlayWidgets={},f=Array.isArray(i.contributions)?i.contributions:c["d"].getEditorContributions();for(var m=0,v=f.length;m<v;m++){var _=f[m];try{var b=g._instantiationService.createInstance(_,g);g._contributions[b.getId()]=b}catch(y){Object(r["e"])(y)}}return c["d"].getEditorActions().forEach(function(e){var t=new hi["a"](e.id,e.label,e.alias,Object(Xi["m"])(e.precondition),function(){return g._instantiationService.invokeFunction(function(t){return Promise.resolve(e.runEditorCommand(t,g,null))})},g._contextKeyService);g._actions[t.id]=t}),g._codeEditorService.addCodeEditor(g),g}return $i(t,e),t.prototype._createConfiguration=function(e,t){return new l["a"](this.isSimpleWidget,e,this._domElement,t)},t.prototype.getId=function(){return this.getEditorType()+":"+this._id},t.prototype.getEditorType=function(){return oi["a"].ICodeEditor},t.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),n=0,i=t.length;n<i;n++){var o=t[n];this._contributions[o].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),e.prototype.dispose.call(this)},t.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},t.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},t.prototype.getConfiguration=function(){return this._configuration.editor},t.prototype.getRawConfiguration=function(){return this._configuration.getRawOptions()},t.prototype.getValue=function(e){if(void 0===e&&(e=null),!this._modelData)return"";var t=!(!e||!e.preserveBOM),n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t)},t.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e)},t.prototype.getModel=function(){return this._modelData?this._modelData.model:null},t.prototype.setModel=function(e){void 0===e&&(e=null);var t=e;if((null!==this._modelData||null!==t)&&(!this._modelData||this._modelData.model!==t)){var n=this._detachModel();this._attachModel(t);var i={oldModelUrl:n?n.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(n)}},t.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}},t.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},t.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},t._getVerticalOffsetForPosition=function(e,t,n){var i=e.model.validatePosition({lineNumber:t,column:n}),o=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)},t.prototype.getTopForLineNumber=function(e){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,1):-1},t.prototype.getTopForPosition=function(e,n){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,n):-1},t.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(function(e){return te["a"].lift(e)}))},t.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return ne["a"].visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1},t.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},t.prototype.setPosition=function(e){if(this._modelData){if(!ee["a"].isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},t.prototype._sendRevealRange=function(e,t,n,i){if(this._modelData){if(!te["a"].isIRange(e))throw new Error("Invalid arguments");var o=this._modelData.model.validateRange(e),r=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.cursor.emitCursorRevealRange(r,t,n,i)}},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t)},t.prototype._revealLine=function(e,t,n){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new te["a"](e,1,e,1),t,!1,n)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t)},t.prototype._revealPosition=function(e,t,n,i){if(!ee["a"].isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new te["a"](e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)},t.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},t.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},t.prototype.setSelection=function(e){var t=pe["a"].isISelection(e),n=te["a"].isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){var i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i)}},t.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new pe["a"](e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])}},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,0,n)},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,1,n)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,2,n)},t.prototype._revealLines=function(e,t,n,i){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new te["a"](e,1,t,1),n,!1,i)},t.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this._revealRange(e,n?1:0,i,t)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t)},t.prototype._revealRange=function(e,t,n,i){if(!te["a"].isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(te["a"].lift(e),t,n,i)},t.prototype.setSelections=function(e,t){if(void 0===t&&(t="api"),this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(var n=0,i=e.length;n<i;n++)if(!pe["a"].isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)}},t.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},t.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},t.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},t.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},t.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},t.prototype.setScrollTop=function(e){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},t.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},t.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=Object.keys(this._contributions),n=0,i=t;n<i.length;n++){var o=i[n],r=this._contributions[o];"function"===typeof r.saveViewState&&(e[o]=r.saveViewState())}var s=this._modelData.cursor.saveState(),a=this._modelData.viewModel.saveState();return{cursorState:s,viewState:a,contributionsState:e}},t.prototype.restoreViewState=function(e){if(this._modelData&&this._modelData.hasRealView){var t=e;if(t&&t.cursorState&&t.viewState){var n=t.cursorState;Array.isArray(n)?this._modelData.cursor.restoreState(n):this._modelData.cursor.restoreState([n]);for(var i=t.contributionsState||{},o=Object.keys(this._contributions),r=0,s=o.length;r<s;r++){var a=o[r],u=this._contributions[a];"function"===typeof u.restoreViewState&&u.restoreViewState(i[a])}var l=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(l)}}},t.prototype.getContribution=function(e){return this._contributions[e]||null},t.prototype.getActions=function(){for(var e=[],t=Object.keys(this._actions),n=0,i=t.length;n<i;n++){var o=t[n];e.push(this._actions[o])}return e},t.prototype.getSupportedActions=function(){var e=this.getActions();return e=e.filter(function(e){return e.isSupported()}),e},t.prototype.getAction=function(e){return this._actions[e]||null},t.prototype.trigger=function(e,t,n){if(n=n||{},t===oi["b"].Type){if(!this._modelData||"string"!==typeof n.text||0===n.text.length)return;return"keyboard"===e&&this._onWillType.fire(n.text),this._modelData.cursor.trigger(e,t,n),void("keyboard"===e&&this._onDidType.fire(n.text))}if(t!==oi["b"].Paste){t===oi["b"].CompositionStart&&this._onCompositionStart.fire(),t===oi["b"].CompositionEnd&&this._onCompositionEnd.fire();var i=this.getAction(t);i?Promise.resolve(i.run()).then(void 0,r["e"]):this._modelData&&(this._triggerEditorCommand(e,t,n)||this._modelData.cursor.trigger(e,t,n))}else{if(!this._modelData||"string"!==typeof n.text||0===n.text.length)return;var o=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,n);var s=this._modelData.cursor.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire(new te["a"](o.lineNumber,o.column,s.lineNumber,s.column))}},t.prototype._triggerEditorCommand=function(e,t,n){var i=this,o=c["d"].getEditorCommand(t);return!!o&&(n=n||{},n.source=e,this._instantiationService.invokeFunction(function(e){Promise.resolve(o.runEditorCommand(e,i,n)).then(void 0,r["e"])}),!0)},t.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},t.prototype.pushUndoStop=function(){return!!this._modelData&&(!this._configuration.editor.readOnly&&(this._modelData.model.pushStackElement(),!0))},t.prototype.executeEdits=function(e,t,n){return!!this._modelData&&(!this._configuration.editor.readOnly&&(i=n?Array.isArray(n)?function(){return n}:n:function(){return null},this._modelData.cursor.executeEdits(e,t,i),!0));var i},t.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,oi["b"].ExecuteCommand,t)},t.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,oi["b"].ExecuteCommands,t)},t.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},t.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,this._configuration.editor.readOnly):null},t.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]},t.prototype.removeDecorations=function(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]},t.prototype.getLayoutInfo=function(){return this._configuration.editor.layoutInfo},t.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null},t.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)},t.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},t.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()},t.prototype.hasTextFocus=function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()},t.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},t.prototype.addContentWidget=function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)},t.prototype.layoutContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}},t.prototype.removeContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(n)}},t.prototype.addOverlayWidget=function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)},t.prototype.layoutOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}},t.prototype.removeOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(n)}},t.prototype.changeViewZones=function(e){if(this._modelData&&this._modelData.hasRealView){var t=this._modelData.view.change(e);t&&this._onDidChangeViewZones.fire()}},t.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null},t.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var n=this._modelData.model.validatePosition(e),i=this._configuration.editor.layoutInfo,o=t._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),r=this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+i.glyphMarginWidth+i.lineNumbersWidth+i.decorationsWidth-this.getScrollLeft();return{top:o,left:r,height:this._configuration.editor.lineHeight}},t.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1},t.prototype.render=function(e){void 0===e&&(e=!1),this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)},t.prototype.applyFontInfo=function(e){l["a"].applyFontInfoSlow(e,this._configuration.editor.fontInfo)},t.prototype._attachModel=function(e){var t=this;if(e){var n=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var r=new zi(this._id,this._configuration,e,function(e){return o["P"](e)});n.push(e.onDidChangeDecorations(function(e){return t._onDidChangeModelDecorations.fire(e)})),n.push(e.onDidChangeLanguage(function(n){t._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),t._onDidChangeModelLanguage.fire(n)})),n.push(e.onDidChangeLanguageConfiguration(function(e){return t._onDidChangeModelLanguageConfiguration.fire(e)})),n.push(e.onDidChangeContent(function(e){return t._onDidChangeModelContent.fire(e)})),n.push(e.onDidChangeOptions(function(e){return t._onDidChangeModelOptions.fire(e)})),n.push(e.onWillDispose(function(){return t.setModel(null)}));var s=new ci(this._configuration,e,r);n.push(s.onDidReachMaxCursorCount(function(){t._notificationService.warn(i["a"]("cursors.maximum","The number of cursors has been limited to {0}.",ci.MAX_CURSOR_COUNT))})),n.push(s.onDidAttemptReadOnlyEdit(function(){t._onDidAttemptReadOnlyEdit.fire(void 0)})),n.push(s.onDidChange(function(e){for(var n=[],i=0,o=e.selections.length;i<o;i++)n[i]=e.selections[i].getPosition();var r={position:n[0],secondaryPositions:n.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(r);var s={selection:e.selections[0],secondarySelections:e.selections.slice(1),source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(s)}));var a=this._createView(r,s),u=a[0],l=a[1];if(l){this._domElement.appendChild(u.domNode.domNode);for(var c=Object.keys(this._contentWidgets),d=0,h=c.length;d<h;d++){var p=c[d];u.addContentWidget(this._contentWidgets[p])}c=Object.keys(this._overlayWidgets);for(d=0,h=c.length;d<h;d++){p=c[d];u.addOverlayWidget(this._overlayWidgets[p])}u.render(!1,!0),u.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new no(e,r,s,u,l,n)}else this._modelData=null},t.prototype._createView=function(e,t){var n,i=this;n=this.isSimpleWidget?{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,o){i.trigger(e,oi["b"].Paste,{text:t,pasteOnNewLine:n,multicursorText:o})},type:function(e,t){i.trigger(e,oi["b"].Type,{text:t})},replacePreviousChar:function(e,t,n){i.trigger(e,oi["b"].ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){i.trigger(e,oi["b"].CompositionStart,void 0)},compositionEnd:function(e){i.trigger(e,oi["b"].CompositionEnd,void 0)},cut:function(e){i.trigger(e,oi["b"].Cut,void 0)}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,o){i._commandService.executeCommand(oi["b"].Paste,{text:t,pasteOnNewLine:n,multicursorText:o})},type:function(e,t){i._commandService.executeCommand(oi["b"].Type,{text:t})},replacePreviousChar:function(e,t,n){i._commandService.executeCommand(oi["b"].ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){i._commandService.executeCommand(oi["b"].CompositionStart,{})},compositionEnd:function(e){i._commandService.executeCommand(oi["b"].CompositionEnd,{})},cut:function(e){i._commandService.executeCommand(oi["b"].Cut,{})}};var o=new Qn(e);o.onDidGainFocus=function(){i._editorTextFocus.setValue(!0),i._editorWidgetFocus.setValue(!0)},o.onDidScroll=function(e){return i._onDidScrollChange.fire(e)},o.onDidLoseFocus=function(){return i._editorTextFocus.setValue(!1)},o.onContextMenu=function(e){return i._onContextMenu.fire(e)},o.onMouseDown=function(e){return i._onMouseDown.fire(e)},o.onMouseUp=function(e){return i._onMouseUp.fire(e)},o.onMouseDrag=function(e){return i._onMouseDrag.fire(e)},o.onMouseDrop=function(e){return i._onMouseDrop.fire(e)},o.onKeyUp=function(e){return i._onKeyUp.fire(e)},o.onMouseMove=function(e){return i._onMouseMove.fire(e)},o.onMouseLeave=function(e){return i._onMouseLeave.fire(e)},o.onMouseWheel=function(e){return i._onMouseWheel.fire(e)},o.onKeyDown=function(e){return i._onKeyDown.fire(e)};var r=new Zn(n,this._configuration,this._themeService,e,t,o);return[r,!0]},t.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},t.prototype._detachModel=function(){if(!this._modelData)return null;var e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.removeChild(t),e},t.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},t.prototype.hasModel=function(){return null!==this._modelData},t=Qi([Ji(3,qi["a"]),Ji(4,d["a"]),Ji(5,Ui["b"]),Ji(6,Ki["c"]),Ji(7,B["c"]),Ji(8,Zi["a"]),Ji(9,Yi["b"])],t),t}(a["a"]),oo=function(e){function t(){var t=e.call(this)||this;return t._onDidChangeToTrue=t._register(new s["a"]),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new s["a"]),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return $i(t,e),t.prototype.setValue=function(e){var t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())},t}(a["a"]),ro=function(e){function t(t,n){var i=e.call(this)||this;return i._editor=t,n.createKey("editorId",t.getId()),i._editorFocus=pi["a"].focus.bindTo(n),i._textInputFocus=pi["a"].textInputFocus.bindTo(n),i._editorTextFocus=pi["a"].editorTextFocus.bindTo(n),i._editorTabMovesFocus=pi["a"].tabMovesFocus.bindTo(n),i._editorReadonly=pi["a"].readOnly.bindTo(n),i._hasMultipleSelections=pi["a"].hasMultipleSelections.bindTo(n),i._hasNonEmptySelection=pi["a"].hasNonEmptySelection.bindTo(n),i._canUndo=pi["a"].canUndo.bindTo(n),i._canRedo=pi["a"].canRedo.bindTo(n),i._register(i._editor.onDidChangeConfiguration(function(){return i._updateFromConfig()})),i._register(i._editor.onDidChangeCursorSelection(function(){return i._updateFromSelection()})),i._register(i._editor.onDidFocusEditorWidget(function(){return i._updateFromFocus()})),i._register(i._editor.onDidBlurEditorWidget(function(){return i._updateFromFocus()})),i._register(i._editor.onDidFocusEditorText(function(){return i._updateFromFocus()})),i._register(i._editor.onDidBlurEditorText(function(){return i._updateFromFocus()})),i._register(i._editor.onDidChangeModel(function(){return i._updateFromModel()})),i._register(i._editor.onDidChangeConfiguration(function(){return i._updateFromModel()})),i._updateFromConfig(),i._updateFromSelection(),i._updateFromFocus(),i._updateFromModel(),i}return $i(t,e),t.prototype._updateFromConfig=function(){var e=this._editor.getConfiguration();this._editorTabMovesFocus.set(e.tabFocusMode),this._editorReadonly.set(e.readOnly)},t.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(function(e){return!e.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},t.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},t}(a["a"]),so=function(e){function t(t,n){var i=e.call(this)||this;i._editor=t,i._contextKeyService=n,i._langId=pi["a"].languageId.bindTo(n),i._hasCompletionItemProvider=pi["a"].hasCompletionItemProvider.bindTo(n),i._hasCodeActionsProvider=pi["a"].hasCodeActionsProvider.bindTo(n),i._hasCodeLensProvider=pi["a"].hasCodeLensProvider.bindTo(n),i._hasDefinitionProvider=pi["a"].hasDefinitionProvider.bindTo(n),i._hasDeclarationProvider=pi["a"].hasDeclarationProvider.bindTo(n),i._hasImplementationProvider=pi["a"].hasImplementationProvider.bindTo(n),i._hasTypeDefinitionProvider=pi["a"].hasTypeDefinitionProvider.bindTo(n),i._hasHoverProvider=pi["a"].hasHoverProvider.bindTo(n),i._hasDocumentHighlightProvider=pi["a"].hasDocumentHighlightProvider.bindTo(n),i._hasDocumentSymbolProvider=pi["a"].hasDocumentSymbolProvider.bindTo(n),i._hasReferenceProvider=pi["a"].hasReferenceProvider.bindTo(n),i._hasRenameProvider=pi["a"].hasRenameProvider.bindTo(n),i._hasSignatureHelpProvider=pi["a"].hasSignatureHelpProvider.bindTo(n),i._hasDocumentFormattingProvider=pi["a"].hasDocumentFormattingProvider.bindTo(n),i._hasDocumentSelectionFormattingProvider=pi["a"].hasDocumentSelectionFormattingProvider.bindTo(n),i._hasMultipleDocumentFormattingProvider=pi["a"].hasMultipleDocumentFormattingProvider.bindTo(n),i._hasMultipleDocumentSelectionFormattingProvider=pi["a"].hasMultipleDocumentSelectionFormattingProvider.bindTo(n),i._isInWalkThrough=pi["a"].isInEmbeddedEditor.bindTo(n);var o=function(){return i._update()};return i._register(t.onDidChangeModel(o)),i._register(t.onDidChangeModelLanguage(o)),i._register(Yt["d"].onDidChange(o)),i._register(Yt["a"].onDidChange(o)),i._register(Yt["b"].onDidChange(o)),i._register(Yt["f"].onDidChange(o)),i._register(Yt["e"].onDidChange(o)),i._register(Yt["o"].onDidChange(o)),i._register(Yt["z"].onDidChange(o)),i._register(Yt["n"].onDidChange(o)),i._register(Yt["i"].onDidChange(o)),i._register(Yt["k"].onDidChange(o)),i._register(Yt["s"].onDidChange(o)),i._register(Yt["t"].onDidChange(o)),i._register(Yt["g"].onDidChange(o)),i._register(Yt["j"].onDidChange(o)),i._register(Yt["v"].onDidChange(o)),o(),i}return $i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents(function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()})},t.prototype._update=function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents(function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(Yt["d"].has(t)),e._hasCodeActionsProvider.set(Yt["a"].has(t)),e._hasCodeLensProvider.set(Yt["b"].has(t)),e._hasDefinitionProvider.set(Yt["f"].has(t)),e._hasDeclarationProvider.set(Yt["e"].has(t)),e._hasImplementationProvider.set(Yt["o"].has(t)),e._hasTypeDefinitionProvider.set(Yt["z"].has(t)),e._hasHoverProvider.set(Yt["n"].has(t)),e._hasDocumentHighlightProvider.set(Yt["i"].has(t)),e._hasDocumentSymbolProvider.set(Yt["k"].has(t)),e._hasReferenceProvider.set(Yt["s"].has(t)),e._hasRenameProvider.set(Yt["t"].has(t)),e._hasSignatureHelpProvider.set(Yt["v"].has(t)),e._hasDocumentFormattingProvider.set(Yt["g"].has(t)||Yt["j"].has(t)),e._hasDocumentSelectionFormattingProvider.set(Yt["j"].has(t)),e._hasMultipleDocumentFormattingProvider.set(Yt["g"].all(t).length+Yt["j"].all(t).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(Yt["j"].all(t).length>1),e._isInWalkThrough.set(t.uri.scheme===u["b"].walkThroughSnippet)}):this.reset()},t}(a["a"]),ao=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new s["a"]),n.onChange=n._onChange.event,n._hasFocus=!1,n._domFocusTracker=n._register(o["S"](t)),n._register(n._domFocusTracker.onDidFocus(function(){n._hasFocus=!0,n._onChange.fire(void 0)})),n._register(n._domFocusTracker.onDidBlur(function(){n._hasFocus=!1,n._onChange.fire(void 0)})),n}return $i(t,e),t.prototype.hasFocus=function(){return this._hasFocus},t}(a["a"]),uo=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),lo=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function co(e){return uo+encodeURIComponent(e.toString())+lo}var ho=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),po=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function fo(e){return ho+encodeURIComponent(e.toString())+po}Object(B["f"])(function(e,t){var n=e.getColor(on["p"]);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(on["q"]);i&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+co(i)+'") repeat-x bottom left; }');var o=e.getColor(on["L"]);o&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(on["M"]);r&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+co(r)+'") repeat-x bottom left; }');var s=e.getColor(on["F"]);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(on["G"]);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+co(a)+'") repeat-x bottom left; }');var u=e.getColor(on["y"]);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(on["z"]);l&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+fo(l)+'") no-repeat bottom left; }');var c=e.getColor(Ie["o"]);c&&t.addRule("."+to+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=e.getColor(Ie["n"]);d&&t.addRule("."+to+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");var h=e.getColor(on["x"])||"inherit";t.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+h+"}")})},"9c3e":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var i=function(){function e(e){this._prefix=e,this._lastId=0}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId},e}(),o=new i("id#")},"9e74":function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c});var i=n("a666"),o=n("ef8e"),r=n("0a0f"),s=n("308f"),a=n("db88"),u=n("4035"),l=Object(r["c"])("commandService"),c=new(function(){function e(){this._commands=new Map,this._onDidRegisterCommand=new s["a"],this.onDidRegisterCommand=this._onDidRegisterCommand.event}return e.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var r=[],s=0,u=e.description.args;s<u.length;s++){var l=u[s];r.push(l.constraint)}var c=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object(o["l"])(t,r),c.apply(void 0,[e].concat(t))}}var d=e.id,h=this._commands.get(d);h||(h=new a["a"],this._commands.set(d,h));var p=h.unshift(e),f=Object(i["h"])(function(){p();var e=n._commands.get(d);e&&e.isEmpty()&&n._commands.delete(d)});return this._onDidRegisterCommand.fire(d),f},e.prototype.registerCommandAlias=function(e,t){return c.registerCommand(e,function(e){for(var n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return(n=e.get(l)).executeCommand.apply(n,[t].concat(i))})},e.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},e.prototype.getCommands=function(){for(var e=new Map,t=0,n=Object(u["d"])(this._commands);t<n.length;t++){var i=n[t],o=this.getCommand(i);o&&e.set(i,o)}return e},e}())},"9eb8":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("fe45"),o=n("30db"),r=n("9e74"),s=n("89cd"),a=function(){function e(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return e.bindToCurrentPlatform=function(e){if(1===o["a"]){if(e&&e.win)return e.win}else if(2===o["a"]){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},e.prototype.registerKeybindingRule=function(t){var n=e.bindToCurrentPlatform(t);if(n&&n.primary){var r=Object(i["f"])(n.primary,o["a"]);r&&this._registerDefaultKeybinding(r,t.id,void 0,t.weight,0,t.when)}if(n&&Array.isArray(n.secondary))for(var s=0,a=n.secondary.length;s<a;s++){var u=n.secondary[s];r=Object(i["f"])(u,o["a"]);r&&this._registerDefaultKeybinding(r,t.id,void 0,t.weight,-s-1,t.when)}},e.prototype.registerCommandAndKeybindingRule=function(e){this.registerKeybindingRule(e),r["a"].registerCommand(e)},e._mightProduceChar=function(e){return e>=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)},e.prototype._registerDefaultKeybinding=function(e,t,n,i,r,s){1===o["a"]&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:s,weight1:i,weight2:r}),this._cachedMergedKeybindings=null},e.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)},e}(),u=new a,l={EditorModes:"platform.keybindingsRegistry"};function c(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2}s["a"].add(l.EditorModes,u)},"9ee1":function(e,t,n){"use strict";var i;n.d(t,"a",function(){return i}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function n(e){return e.end-e.start<=0}function i(e,i){return!n(t(e,i))}function o(e,t){var i=[],o={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return n(o)||i.push(o),n(r)||i.push(r),i}e.intersect=t,e.isEmpty=n,e.intersects=i,e.relativeComplement=o}(i||(i={}))},"9f4d":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("fe45"),r=n("b2cc"),s=n("c101"),a=n("d3f49"),u=n("7061"),l=n("6a89"),c=n("8025"),d=n("70cb"),h=function(){function e(e){this._selection=e,this._usedEndToken=null}return e._haystackHasNeedleAtOffset=function(e,t,n){if(n<0)return!1;var i=t.length,o=e.length;if(n+i>o)return!1;for(var r=0;r<i;r++){var s=e.charCodeAt(n+r),a=t.charCodeAt(r);if(s!==a&&(!(s>=65&&s<=90&&s+32===a)&&!(a>=65&&a<=90&&a+32===s)))return!1}return!0},e.prototype._createOperationsForBlockComment=function(t,n,i,o,r){var s,a=t.startLineNumber,u=t.startColumn,c=t.endLineNumber,d=t.endColumn,h=o.getLineContent(a),p=o.getLineContent(c),f=h.lastIndexOf(n,u-1+n.length),g=p.indexOf(i,d-1-i.length);if(-1!==f&&-1!==g)if(a===c){var m=h.substring(f+n.length,g);m.indexOf(i)>=0&&(f=-1,g=-1)}else{var v=h.substring(f+n.length),_=p.substring(0,g);(v.indexOf(i)>=0||_.indexOf(i)>=0)&&(f=-1,g=-1)}-1!==f&&-1!==g?(f+n.length<h.length&&32===h.charCodeAt(f+n.length)&&(n+=" "),g>0&&32===p.charCodeAt(g-1)&&(i=" "+i,g-=1),s=e._createRemoveBlockCommentOperations(new l["a"](a,f+n.length+1,c,g+1),n,i)):(s=e._createAddBlockCommentOperations(t,n,i),this._usedEndToken=1===s.length?i:null);for(var b=0,y=s;b<y.length;b++){var w=y[b];r.addTrackedEditOperation(w.range,w.text)}},e._createRemoveBlockCommentOperations=function(e,t,n){var i=[];return l["a"].isEmpty(e)?i.push(a["a"].delete(new l["a"](e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(a["a"].delete(new l["a"](e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(a["a"].delete(new l["a"](e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i},e._createAddBlockCommentOperations=function(e,t,n){var i=[];return l["a"].isEmpty(e)?i.push(a["a"].replace(new l["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(i.push(a["a"].insert(new u["a"](e.startLineNumber,e.startColumn),t+" ")),i.push(a["a"].insert(new u["a"](e.endLineNumber,e.endColumn)," "+n))),i},e.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);var o=e.getLanguageIdAtPosition(n,i),r=d["a"].getComments(o);r&&r.blockCommentStartToken&&r.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,r.blockCommentStartToken,r.blockCommentEndToken,e,t)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var i=n[0],o=n[1];return new c["a"](i.range.endLineNumber,i.range.endColumn,o.range.startLineNumber,o.range.startColumn)}var r=n[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new c["a"](r.endLineNumber,r.endColumn+s,r.endLineNumber,r.endColumn+s)},e}(),p=n("3742"),f=function(){function e(e,t,n){this._selection=e,this._selectionId=null,this._tabSize=t,this._type=n,this._deltaColumn=0,this._moveEndPositionDown=!1}return e._gatherPreflightCommentStrings=function(e,t,n){e.tokenizeIfCheap(t);var i=e.getLanguageIdAtPosition(t,1),o=d["a"].getComments(i),r=o?o.lineCommentToken:null;if(!r)return null;for(var s=[],a=0,u=n-t+1;a<u;a++)s[a]={ignore:!1,commentStr:r,commentStrOffset:0,commentStrLength:r.length};return s},e._analyzeLines=function(e,t,n,i){var o,r=!0;o=0===e||1!==e;for(var s=0,a=n.length;s<a;s++){var u=n[s],l=i+s,c=t.getLineContent(l),d=p["q"](c);if(-1!==d){if(r=!1,u.ignore=!1,u.commentStrOffset=d,o&&!h._haystackHasNeedleAtOffset(c,u.commentStr,d)&&(0===e?o=!1:1===e||(u.ignore=!0)),o){var f=d+u.commentStrLength;f<c.length&&32===c.charCodeAt(f)&&(u.commentStrLength+=1)}}else u.ignore=!0,u.commentStrOffset=c.length}if(0===e&&r){o=!1;for(s=0,a=n.length;s<a;s++)n[s].ignore=!1}return{supported:!0,shouldRemoveComments:o,lines:n}},e._gatherPreflightData=function(t,n,i,o){var r=e._gatherPreflightCommentStrings(n,i,o);return null===r?{supported:!1}:e._analyzeLines(t,n,r,i)},e.prototype._executeLineComments=function(t,n,i,o){var r;i.shouldRemoveComments?r=e._createRemoveLineCommentsOperations(i.lines,o.startLineNumber):(e._normalizeInsertionPoint(t,i.lines,o.startLineNumber,this._tabSize),r=e._createAddLineCommentsOperations(i.lines,o.startLineNumber));for(var s=new u["a"](o.positionLineNumber,o.positionColumn),a=0,l=r.length;a<l;a++)if(n.addEditOperation(r[a].range,r[a].text),r[a].range.isEmpty()&&r[a].range.getStartPosition().equals(s)){var c=t.getLineContent(s.lineNumber);c.length+1===s.column&&(this._deltaColumn=(r[a].text||"").length)}this._selectionId=n.trackSelection(o)},e.prototype._attemptRemoveBlockComment=function(e,t,n,i){var o=t.startLineNumber,r=t.endLineNumber,s=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),a=e.getLineContent(o).lastIndexOf(n,s-1),u=e.getLineContent(r).indexOf(i,t.endColumn-1-n.length);return-1!==a&&-1===u&&(u=e.getLineContent(o).indexOf(i,a+n.length),r=o),-1===a&&-1!==u&&(a=e.getLineContent(r).lastIndexOf(n,u),o=r),!t.isEmpty()||-1!==a&&-1!==u||(a=e.getLineContent(o).indexOf(n),-1!==a&&(u=e.getLineContent(o).indexOf(i,a+n.length))),-1!==a&&32===e.getLineContent(o).charCodeAt(a+n.length)&&(n+=" "),-1!==u&&32===e.getLineContent(r).charCodeAt(u-1)&&(i=" "+i,u-=1),-1!==a&&-1!==u?h._createRemoveBlockCommentOperations(new l["a"](o,a+n.length+1,r,u+1),n,i):null},e.prototype._executeBlockComment=function(e,t,n){e.tokenizeIfCheap(n.startLineNumber);var i=e.getLanguageIdAtPosition(n.startLineNumber,1),o=d["a"].getComments(i);if(o&&o.blockCommentStartToken&&o.blockCommentEndToken){var r=o.blockCommentStartToken,s=o.blockCommentEndToken,a=this._attemptRemoveBlockComment(e,n,r,s);if(!a){if(n.isEmpty()){var u=e.getLineContent(n.startLineNumber),c=p["q"](u);-1===c&&(c=u.length),a=h._createAddBlockCommentOperations(new l["a"](n.startLineNumber,c+1,n.startLineNumber,u.length+1),r,s)}else a=h._createAddBlockCommentOperations(new l["a"](n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),r,s);1===a.length&&(this._deltaColumn=r.length+1)}this._selectionId=t.trackSelection(n);for(var f=0,g=a;f<g.length;f++){var m=g[f];t.addEditOperation(m.range,m.text)}}},e.prototype.getEditOperations=function(t,n){var i=this._selection;this._moveEndPositionDown=!1,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,t.getLineMaxColumn(i.endLineNumber-1)));var o=e._gatherPreflightData(this._type,t,i.startLineNumber,i.endLineNumber);return o.supported?this._executeLineComments(t,n,o,i):this._executeBlockComment(t,n,i)},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new c["a"](n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)},e._createRemoveLineCommentsOperations=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];r.ignore||n.push(a["a"].delete(new l["a"](t+i,r.commentStrOffset+1,t+i,r.commentStrOffset+r.commentStrLength+1)))}return n},e._createAddLineCommentsOperations=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=e[i];r.ignore||n.push(a["a"].insert(new u["a"](t+i,r.commentStrOffset+1),r.commentStr+" "))}return n},e.nextVisibleColumn=function(e,t,n,i){return n?e+(t-e%t):e+i},e._normalizeInsertionPoint=function(t,n,i,o){for(var r,s,a=Number.MAX_VALUE,u=0,l=n.length;u<l;u++)if(!n[u].ignore){for(var c=t.getLineContent(i+u),d=0,h=0,p=n[u].commentStrOffset;d<a&&h<p;h++)d=e.nextVisibleColumn(d,o,9===c.charCodeAt(h),1);d<a&&(a=d)}a=Math.floor(a/o)*o;for(u=0,l=n.length;u<l;u++)if(!n[u].ignore){c=t.getLineContent(i+u),d=0;for(r=0,s=n[u].commentStrOffset;d<a&&r<s;r++)d=e.nextVisibleColumn(d,o,9===c.charCodeAt(r),1);n[u].commentStrOffset=d>a?r-1:r}},e}(),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(e){function t(t,n){var i=e.call(this,n)||this;return i._type=t,i}return g(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],o=t.getSelections(),r=n.getOptions(),s=0,a=o;s<a.length;s++){var u=a[s];i.push(new f(u,r.tabSize,this._type))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},t}(r["b"]),v=function(e){function t(){return e.call(this,0,{id:"editor.action.commentLine",label:i["a"]("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:2133,weight:100},menubarOpts:{menuId:14,group:"5_insert",title:i["a"]({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return g(t,e),t}(m),_=function(e){function t(){return e.call(this,1,{id:"editor.action.addCommentLine",label:i["a"]("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:Object(o["a"])(2089,2081),weight:100}})||this}return g(t,e),t}(m),b=function(e){function t(){return e.call(this,2,{id:"editor.action.removeCommentLine",label:i["a"]("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:Object(o["a"])(2089,2099),weight:100}})||this}return g(t,e),t}(m),y=function(e){function t(){return e.call(this,{id:"editor.action.blockComment",label:i["a"]("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menubarOpts:{menuId:14,group:"5_insert",title:i["a"]({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return g(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=t.getSelections(),o=0,r=i;o<r.length;o++){var s=r[o];n.push(new h(s))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},t}(r["b"]);Object(r["f"])(v),Object(r["f"])(_),Object(r["f"])(b),Object(r["f"])(y)},"9f72":function(e,t,n){"use strict";n.r(t);var i=n("3813"),o=n("5fe7"),r=n("fe45"),s=n("30db"),a=n("b2cc"),u=n("5717"),l=n("6a89"),c=n("c101"),d=n("b707"),h=n("351f"),p=n("e5aa"),f=n("aa43"),g=n("3a57"),m=n("dff7"),v=n("7e32"),_=n("4fc3"),b=n("b0cd"),y=n("b539"),w=n("507e"),C=n("9e74"),S=n("bc04"),L=n("0a0f"),O=n("f5f3"),x=n("9eb8"),N=n("a666"),D=n("308f"),k=n("6dec"),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},M=function(e,t){return function(n,i){t(n,i,e)}},T=new _["d"]("hasSymbols",!1),P=Object(L["c"])("ISymbolNavigationService"),R=function(){function e(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=T.bindTo(e)}return e.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(N["f"])(this._currentState),Object(N["f"])(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},e.prototype.put=function(e){var t=this,n=e.parent.parent;if(n.references.length<=1)this.reset();else{this._currentModel=n,this._currentIdx=n.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();var i=new A(this._editorService),o=i.onDidChange(function(e){if(!t._ignoreEditorChange){var i=t._editorService.getActiveCodeEditor();if(i){var o=i.getModel(),r=i.getPosition();if(o&&r){for(var s=!1,a=!1,u=0,c=n.references;u<c.length;u++){var d=c[u];if(d.uri.toString()===o.uri.toString())s=!0,a=a||l["a"].containsPosition(d.range,r);else if(s)break}s&&a||t.reset()}}}});this._currentState=Object(N["e"])(i,o)}},e.prototype.revealNext=function(e){var t=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var n=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:n.uri,options:{selection:l["a"].collapseToStart(n.range),revealInCenterIfOutsideViewport:!0}},e).finally(function(){t._ignoreEditorChange=!1})},e.prototype._showMessage=function(){Object(N["f"])(this._currentMessage);var e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?Object(m["a"])("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):Object(m["a"])("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)},e=E([M(0,_["c"]),M(1,u["a"]),M(2,b["a"]),M(3,k["a"])],e),e}();Object(O["b"])(P,R,!0),Object(a["g"])(new(function(e){function t(){return e.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:_["a"].and(T,_["a"].equals("config.editor.gotoLocation.multiple","goto")),kbOpts:{weight:100,primary:70}})||this}return I(t,e),t.prototype.runEditorCommand=function(e,t){return e.get(P).revealNext(t)},t}(a["c"]))),x["a"].registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:T,primary:9,handler:function(e){e.get(P).reset()}});var A=function(){function e(e){this._listener=new Map,this._disposables=new N["b"],this._onDidChange=new D["a"],this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}return e.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(N["f"])},e.prototype._onDidAddEditor=function(e){var t=this;this._listener.set(e,Object(N["e"])(e.onDidChangeCursorPosition(function(n){return t._onDidChange.fire({editor:e})}),e.onDidChangeModelContent(function(n){return t._onDidChange.fire({editor:e})})))},e.prototype._onDidRemoveEditor=function(e){Object(N["f"])(this._listener.get(e)),this._listener.delete(e)},e=E([M(0,u["a"])],e),e}();n.d(t,"DefinitionActionConfig",function(){return V}),n.d(t,"DefinitionAction",function(){return B}),n.d(t,"GoToDefinitionAction",function(){return z}),n.d(t,"OpenDefinitionToSideAction",function(){return U}),n.d(t,"PeekDefinitionAction",function(){return K}),n.d(t,"DeclarationAction",function(){return q}),n.d(t,"GoToDeclarationAction",function(){return G}),n.d(t,"PeekDeclarationAction",function(){return Z}),n.d(t,"ImplementationAction",function(){return Y}),n.d(t,"GoToImplementationAction",function(){return X}),n.d(t,"PeekImplementationAction",function(){return $}),n.d(t,"TypeDefinitionAction",function(){return Q}),n.d(t,"GoToTypeDefinitionAction",function(){return J}),n.d(t,"PeekTypeDefinitionAction",function(){return ee});var F=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),j=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},W=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},V=function(){function e(e,t,n,i){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===i&&(i=!0),this.openToSide=e,this.openInPeek=t,this.filterCurrent=n,this.showMessage=i}return e}(),B=function(e){function t(t,n){var i=e.call(this,n)||this;return i._configuration=t,i}return F(t,e),t.prototype.run=function(e,t){var n=this;if(!t.hasModel())return Promise.resolve(void 0);var i=e.get(b["a"]),r=e.get(u["a"]),s=e.get(y["a"]),a=e.get(P),c=t.getModel(),d=t.getPosition(),p=new S["b"](t,5),f=Object(o["j"])(this._getTargetLocationForPosition(c,d,p.token),p.token).then(function(e){return j(n,void 0,void 0,function(){var n,i,o,s,u,p,f,m;return W(this,function(v){if(!e||c.isDisposed())return[2];for(n=-1,i=[],o=0,s=e;o<s.length;o++)u=s[o],u&&u.range&&(p=i.push(u),this._configuration.filterCurrent&&u.uri.toString()===c.uri.toString()&&l["a"].containsPosition(u.range,d)&&-1===n&&(n=p-1));return 0!==i.length?1===i.length&&-1!==n?(m=i[0],[2,this._openReference(t,r,m,!1).then(function(){})]):[2,this._onResult(r,a,t,new g["c"](i))]:(this._configuration.showMessage&&(f=c.getWordAtPosition(d),h["a"].get(t).showMessage(this._getNoResultFoundMessage(f),d)),[2])})})},function(e){i.error(e)}).finally(function(){p.dispose()});return s.showWhile(f,250),f},t.prototype._getTargetLocationForPosition=function(e,t,n){return Object(w["b"])(e,t,n)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?m["a"]("noResultWord","No definition found for '{0}'",e.word):m["a"]("generic.noResults","No definition found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?m["a"]("meta.title"," – {0} definitions",e.references.length):""},t.prototype._onResult=function(e,t,n,o){return j(this,void 0,void 0,function(){var r,s,a,u;return W(this,function(l){switch(l.label){case 0:return r=o.getAriaMessage(),Object(i["a"])(r),s=n.getConfiguration().contribInfo.gotoLocation,this._configuration.openInPeek||"peek"===s.multiple&&o.references.length>1?(this._openInPeek(e,n,o),[3,3]):[3,1];case 1:return n.hasModel()?(a=o.firstReference(),a?[4,this._openReference(n,e,a,this._configuration.openToSide)]:[2]):[3,3];case 2:u=l.sent(),u&&o.references.length>1&&"gotoAndPeek"===s.multiple?this._openInPeek(e,u,o):o.dispose(),"goto"===s.multiple&&t.put(a),l.label=3;case 3:return[2]}})})},t.prototype._openReference=function(e,t,n,i){var o=void 0;return Object(d["C"])(n)&&(o=n.targetSelectionRange),o||(o=n.range),t.openCodeEditor({resource:n.uri,options:{selection:l["a"].collapseToStart(o),revealInCenterIfOutsideViewport:!0}},e,i)},t.prototype._openInPeek=function(e,t,n){var i=this,r=f["a"].get(t);r&&t.hasModel()?r.toggleWidget(t.getSelection(),Object(o["f"])(function(e){return Promise.resolve(n)}),{getMetaTitle:function(e){return i._getMetaTitle(e)},onGoto:function(n){return r.closeWidget(),i._openReference(t,e,n,!1)}}):n.dispose()},t}(a["b"]),H=s["f"]?2118:70,z=function(e){function t(){var n=e.call(this,new V,{id:t.id,label:m["a"]("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:_["a"].and(c["a"].hasDefinitionProvider,c["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:H,weight:100},menuOpts:{group:"navigation",order:1.1}})||this;return C["a"].registerCommandAlias("editor.action.goToDeclaration",t.id),n}return F(t,e),t.id="editor.action.revealDefinition",t}(B),U=function(e){function t(){var n=e.call(this,new V(!0),{id:t.id,label:m["a"]("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:_["a"].and(c["a"].hasDefinitionProvider,c["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:Object(r["a"])(2089,H),weight:100}})||this;return C["a"].registerCommandAlias("editor.action.openDeclarationToTheSide",t.id),n}return F(t,e),t.id="editor.action.revealDefinitionAside",t}(B),K=function(e){function t(){var n=e.call(this,new V(void 0,!0,!1),{id:t.id,label:m["a"]("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:_["a"].and(c["a"].hasDefinitionProvider,p["b"].notInPeekEditor,c["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:582,linux:{primary:3140},weight:100},menuOpts:{group:"navigation",order:1.2}})||this;return C["a"].registerCommandAlias("editor.action.previewDeclaration",t.id),n}return F(t,e),t.id="editor.action.peekDefinition",t}(B),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype._getTargetLocationForPosition=function(e,t,n){return Object(w["a"])(e,t,n)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?m["a"]("decl.noResultWord","No declaration found for '{0}'",e.word):m["a"]("decl.generic.noResults","No declaration found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?m["a"]("decl.meta.title"," – {0} declarations",e.references.length):""},t}(B),G=function(e){function t(){return e.call(this,new V,{id:t.id,label:m["a"]("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:_["a"].and(c["a"].hasDeclarationProvider,c["a"].isInEmbeddedEditor.toNegated()),menuOpts:{group:"navigation",order:1.3}})||this}return F(t,e),t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?m["a"]("decl.noResultWord","No declaration found for '{0}'",e.word):m["a"]("decl.generic.noResults","No declaration found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?m["a"]("decl.meta.title"," – {0} declarations",e.references.length):""},t.id="editor.action.revealDeclaration",t}(q),Z=function(e){function t(){return e.call(this,new V(void 0,!0,!1),{id:"editor.action.peekDeclaration",label:m["a"]("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:_["a"].and(c["a"].hasDeclarationProvider,p["b"].notInPeekEditor,c["a"].isInEmbeddedEditor.toNegated()),menuOpts:{group:"navigation",order:1.31}})||this}return F(t,e),t}(q),Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype._getTargetLocationForPosition=function(e,t,n){return Object(w["c"])(e,t,n)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?m["a"]("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):m["a"]("goToImplementation.generic.noResults","No implementation found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?m["a"]("meta.implementations.title"," – {0} implementations",e.references.length):""},t}(B),X=function(e){function t(){return e.call(this,new V,{id:t.ID,label:m["a"]("actions.goToImplementation.label","Go to Implementation"),alias:"Go to Implementation",precondition:_["a"].and(c["a"].hasImplementationProvider,c["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:2118,weight:100}})||this}return F(t,e),t.ID="editor.action.goToImplementation",t}(Y),$=function(e){function t(){return e.call(this,new V(!1,!0,!1),{id:t.ID,label:m["a"]("actions.peekImplementation.label","Peek Implementation"),alias:"Peek Implementation",precondition:_["a"].and(c["a"].hasImplementationProvider,c["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:3142,weight:100}})||this}return F(t,e),t.ID="editor.action.peekImplementation",t}(Y),Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return F(t,e),t.prototype._getTargetLocationForPosition=function(e,t,n){return Object(w["d"])(e,t,n)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?m["a"]("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):m["a"]("goToTypeDefinition.generic.noResults","No type definition found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?m["a"]("meta.typeDefinitions.title"," – {0} type definitions",e.references.length):""},t}(B),J=function(e){function t(){return e.call(this,new V,{id:t.ID,label:m["a"]("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:_["a"].and(c["a"].hasTypeDefinitionProvider,c["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:0,weight:100},menuOpts:{group:"navigation",order:1.4}})||this}return F(t,e),t.ID="editor.action.goToTypeDefinition",t}(Q),ee=function(e){function t(){return e.call(this,new V(!1,!0,!1),{id:t.ID,label:m["a"]("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:_["a"].and(c["a"].hasTypeDefinitionProvider,c["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:0,weight:100}})||this}return F(t,e),t.ID="editor.action.peekTypeDefinition",t}(Q);Object(a["f"])(z),Object(a["f"])(U),Object(a["f"])(K),Object(a["f"])(G),Object(a["f"])(Z),Object(a["f"])(X),Object(a["f"])($),Object(a["f"])(J),Object(a["f"])(ee),v["c"].appendMenuItem(16,{group:"4_symbol_nav",command:{id:"editor.action.goToDeclaration",title:m["a"]({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},order:2}),v["c"].appendMenuItem(16,{group:"4_symbol_nav",command:{id:"editor.action.goToTypeDefinition",title:m["a"]({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},order:3}),v["c"].appendMenuItem(16,{group:"4_symbol_nav",command:{id:"editor.action.goToImplementation",title:m["a"]({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementation")},order:4})},a007:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return i});var i,o=n("ef8e"),r=n("2e5d"),s=n("f85a"),a=n("d48d"),u=n("7061"),l=n("6a89"),c=function(){function e(){}return e.addCursorDown=function(e,t,n){for(var i=[],o=0,a=0,u=t.length;a<u;a++){var l=t[a];i[o++]=new r["d"](l.modelState,l.viewState),i[o++]=n?r["d"].fromModelState(s["a"].translateDown(e.config,e.model,l.modelState)):r["d"].fromViewState(s["a"].translateDown(e.config,e.viewModel,l.viewState))}return i},e.addCursorUp=function(e,t,n){for(var i=[],o=0,a=0,u=t.length;a<u;a++){var l=t[a];i[o++]=new r["d"](l.modelState,l.viewState),i[o++]=n?r["d"].fromModelState(s["a"].translateUp(e.config,e.model,l.modelState)):r["d"].fromViewState(s["a"].translateUp(e.config,e.viewModel,l.viewState))}return i},e.moveToBeginningOfLine=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=this._moveToLineStart(e,s,n)}return i},e._moveToLineStart=function(e,t,n){var i=t.viewState.position.column,o=t.modelState.position.column,r=i===o,s=t.viewState.position.lineNumber,a=e.viewModel.getLineFirstNonWhitespaceColumn(s),u=i===a;return r||u?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)},e._moveToLineStartByView=function(e,t,n){return r["d"].fromViewState(s["a"].moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n))},e._moveToLineStartByModel=function(e,t,n){return r["d"].fromModelState(s["a"].moveToBeginningOfLine(e.config,e.model,t.modelState,n))},e.moveToEndOfLine=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o];i[o]=this._moveToLineEnd(e,s,n)}return i},e._moveToLineEnd=function(e,t,n){var i=t.viewState.position,o=e.viewModel.getLineMaxColumn(i.lineNumber),r=i.column===o,s=t.modelState.position,a=e.model.getLineMaxColumn(s.lineNumber),u=o-i.column===a-s.column;return r||u?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n)},e._moveToLineEndByView=function(e,t,n){return r["d"].fromViewState(s["a"].moveToEndOfLine(e.config,e.viewModel,t.viewState,n))},e._moveToLineEndByModel=function(e,t,n){return r["d"].fromModelState(s["a"].moveToEndOfLine(e.config,e.model,t.modelState,n))},e.expandLineSelection=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var s=t[i],a=s.viewState.selection,c=a.startLineNumber,d=e.viewModel.getLineCount(),h=a.endLineNumber,p=void 0;h===d?p=e.viewModel.getLineMaxColumn(d):(h++,p=1),n[i]=r["d"].fromViewState(new r["f"](new l["a"](c,1,c,1),0,new u["a"](h,p),0))}return n},e.moveToBeginningOfBuffer=function(e,t,n){for(var i=[],o=0,a=t.length;o<a;o++){var u=t[o];i[o]=r["d"].fromModelState(s["a"].moveToBeginningOfBuffer(e.config,e.model,u.modelState,n))}return i},e.moveToEndOfBuffer=function(e,t,n){for(var i=[],o=0,a=t.length;o<a;o++){var u=t[o];i[o]=r["d"].fromModelState(s["a"].moveToEndOfBuffer(e.config,e.model,u.modelState,n))}return i},e.selectAll=function(e,t){var n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return r["d"].fromModelState(new r["f"](new l["a"](1,1,1,1),0,new u["a"](n,i),0))},e.line=function(e,t,n,i,o){var s=e.model.validatePosition(i),a=o?e.validateViewPosition(new u["a"](o.lineNumber,o.column),s):e.convertModelPositionToViewPosition(s);if(!n||!t.modelState.hasSelection()){var c=e.model.getLineCount(),d=s.lineNumber+1,h=1;return d>c&&(d=c,h=e.model.getLineMaxColumn(d)),r["d"].fromModelState(new r["f"](new l["a"](s.lineNumber,1,d,h),0,new u["a"](d,h),0))}var p=t.modelState.selectionStart.getStartPosition().lineNumber;if(s.lineNumber<p)return r["d"].fromViewState(t.viewState.move(t.modelState.hasSelection(),a.lineNumber,1,0));if(s.lineNumber>p){c=e.viewModel.getLineCount();var f=a.lineNumber+1,g=1;return f>c&&(f=c,g=e.viewModel.getLineMaxColumn(f)),r["d"].fromViewState(t.viewState.move(t.modelState.hasSelection(),f,g,0))}var m=t.modelState.selectionStart.getEndPosition();return r["d"].fromModelState(t.modelState.move(t.modelState.hasSelection(),m.lineNumber,m.column,0))},e.word=function(e,t,n,i){var o=e.model.validatePosition(i);return r["d"].fromModelState(a["a"].word(e.config,e.model,t.modelState,n,o))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new r["d"](t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return r["d"].fromViewState(new r["f"](new l["a"](n,i,n,i),0,new u["a"](n,i),0))},e.moveTo=function(e,t,n,i,o){var s=e.model.validatePosition(i),a=o?e.validateViewPosition(new u["a"](o.lineNumber,o.column),s):e.convertModelPositionToViewPosition(s);return r["d"].fromViewState(t.viewState.move(n,a.lineNumber,a.column,0))},e.move=function(e,t,n){var i=n.select,o=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 11:r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 10:r=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 12:for(var l=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;d<h;d++){r=t[d];c[d]=this.findPositionInViewportIfOutside(e,r,l,i)}return c}return null},e.findPositionInViewportIfOutside=function(e,t,n,i){var o=t.viewState.position.lineNumber;if(n.startLineNumber<=o&&o<=n.endLineNumber-1)return new r["d"](t.modelState,t.viewState);o>n.endLineNumber-1&&(o=n.endLineNumber-1),o<n.startLineNumber&&(o=n.startLineNumber);var s=e.viewModel.getLineFirstNonWhitespaceColumn(o);return this._moveToViewPosition(e,t,i,o,s)},e._firstLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)},e._lastLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)},e._moveLeft=function(e,t,n,i){for(var o=[],a=0,u=t.length;a<u;a++){var l=t[a],c=s["a"].moveLeft(e.config,e.viewModel,l.viewState,n,i);if(1===i&&c.position.lineNumber!==l.viewState.position.lineNumber){var d=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(c.position);d.lineNumber===l.modelState.position.lineNumber&&(c=s["a"].moveLeft(e.config,e.viewModel,c,n,1))}o[a]=r["d"].fromViewState(c)}return o},e._moveHalfLineLeft=function(e,t,n){for(var i=[],o=0,a=t.length;o<a;o++){var u=t[o],l=u.viewState.position.lineNumber,c=Math.round(e.viewModel.getLineContent(l).length/2);i[o]=r["d"].fromViewState(s["a"].moveLeft(e.config,e.viewModel,u.viewState,n,c))}return i},e._moveRight=function(e,t,n,i){for(var o=[],a=0,u=t.length;a<u;a++){var l=t[a],c=s["a"].moveRight(e.config,e.viewModel,l.viewState,n,i);if(1===i&&c.position.lineNumber!==l.viewState.position.lineNumber){var d=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(c.position);d.lineNumber===l.modelState.position.lineNumber&&(c=s["a"].moveRight(e.config,e.viewModel,c,n,1))}o[a]=r["d"].fromViewState(c)}return o},e._moveHalfLineRight=function(e,t,n){for(var i=[],o=0,a=t.length;o<a;o++){var u=t[o],l=u.viewState.position.lineNumber,c=Math.round(e.viewModel.getLineContent(l).length/2);i[o]=r["d"].fromViewState(s["a"].moveRight(e.config,e.viewModel,u.viewState,n,c))}return i},e._moveDownByViewLines=function(e,t,n,i){for(var o=[],a=0,u=t.length;a<u;a++){var l=t[a];o[a]=r["d"].fromViewState(s["a"].moveDown(e.config,e.viewModel,l.viewState,n,i))}return o},e._moveDownByModelLines=function(e,t,n,i){for(var o=[],a=0,u=t.length;a<u;a++){var l=t[a];o[a]=r["d"].fromModelState(s["a"].moveDown(e.config,e.model,l.modelState,n,i))}return o},e._moveUpByViewLines=function(e,t,n,i){for(var o=[],a=0,u=t.length;a<u;a++){var l=t[a];o[a]=r["d"].fromViewState(s["a"].moveUp(e.config,e.viewModel,l.viewState,n,i))}return o},e._moveUpByModelLines=function(e,t,n,i){for(var o=[],a=0,u=t.length;a<u;a++){var l=t[a];o[a]=r["d"].fromModelState(s["a"].moveUp(e.config,e.model,l.modelState,n,i))}return o},e._moveToViewPosition=function(e,t,n,i,o){return r["d"].fromViewState(t.viewState.move(n,i,o,0))},e._moveToModelPosition=function(e,t,n,i,o){return r["d"].fromModelState(t.modelState.move(n,i,o,0))},e._moveToViewMinColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMinColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewFirstNonWhitespaceColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineFirstNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewCenterColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=Math.round((e.viewModel.getLineMaxColumn(a)+e.viewModel.getLineMinColumn(a))/2);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewMaxColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMaxColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewLastNonWhitespaceColumn=function(e,t,n){for(var i=[],o=0,r=t.length;o<r;o++){var s=t[o],a=s.viewState.position.lineNumber,u=e.viewModel.getLineLastNonWhitespaceColumn(a);i[o]=this._moveToViewPosition(e,s,n,a,u)}return i},e}();(function(e){var t=function(e){if(!o["h"](e))return!1;var t=e;return!!o["i"](t.to)&&(!(!o["j"](t.select)&&!o["d"](t.select))&&(!(!o["j"](t.by)&&!o["i"](t.by))&&!(!o["j"](t.value)&&!o["g"](t.value))))};function n(t){if(!t.to)return null;var n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.WrappedLineStart:n=4;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=5;break;case e.RawDirection.WrappedLineColumnCenter:n=6;break;case e.RawDirection.WrappedLineEnd:n=7;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=8;break;case e.RawDirection.ViewPortTop:n=9;break;case e.RawDirection.ViewPortBottom:n=11;break;case e.RawDirection.ViewPortCenter:n=10;break;case e.RawDirection.ViewPortIfOutside:n=12;break;default:return null}var i=0;switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Character:i=3;break;case e.RawUnit.HalfLine:i=4;break}return{direction:n,unit:i,select:!!t.select,value:t.value||1}}e.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=n})(i||(i={}))},a106:function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("5fe7"),r=n("a666"),s=n("3742"),a=n("b2cc"),u=n("c101"),l=n("2c29"),c=n("7061"),d=n("6a89"),h=n("8025"),p=n("8c02"),f=n("3352"),g=n("b57f"),m=n("303e"),v=n("b7d0"),_=function(){function e(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return e.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.getCount=function(){return this._decorations.length},e.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},e.prototype.getStartPosition=function(){return this._startPosition},e.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null)},e.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return t>=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=this._editor.getModel().getDecorationsInRange(t),i=0,o=n;i<o.length;i++){var r=o[i],s=r.options;if(s===e._FIND_MATCH_DECORATION||s===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(r.id)}return 1},e.prototype.setCurrentFindMatch=function(t){var n=this,i=null,o=0;if(t)for(var r=0,s=this._decorations.length;r<s;r++){var a=this._editor.getModel().getDecorationRange(this._decorations[r]);if(t.equalsRange(a)){i=this._decorations[r],o=r+1;break}}return null===this._highlightedDecorationId&&null===i||this._editor.changeDecorations(function(t){if(null!==n._highlightedDecorationId&&(t.changeDecorationOptions(n._highlightedDecorationId,e._FIND_MATCH_DECORATION),n._highlightedDecorationId=null),null!==i&&(n._highlightedDecorationId=i,t.changeDecorationOptions(n._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)),null!==n._rangeHighlightDecorationId&&(t.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),null!==i){var o=n._editor.getModel().getDecorationRange(i);if(o.startLineNumber!==o.endLineNumber&&1===o.endColumn){var r=o.endLineNumber-1,s=n._editor.getModel().getLineMaxColumn(r);o=new d["a"](o.startLineNumber,o.startColumn,r,s)}n._rangeHighlightDecorationId=t.addDecoration(o,e._RANGE_HIGHLIGHT_DECORATION)}}),o},e.prototype.set=function(t,n){var i=this;this._editor.changeDecorations(function(o){var r=e._FIND_MATCH_DECORATION,s=[];if(t.length>1e3){r=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=i._editor.getModel().getLineCount(),u=i._editor.getLayoutInfo().height,l=u/a,c=Math.max(2,Math.ceil(3/l)),h=t[0].range.startLineNumber,p=t[0].range.endLineNumber,f=1,g=t.length;f<g;f++){var m=t[f].range;p+c>=m.startLineNumber?m.endLineNumber>p&&(p=m.endLineNumber):(s.push({range:new d["a"](h,1,p,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=m.startLineNumber,p=m.endLineNumber)}s.push({range:new d["a"](h,1,p,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var v=new Array(t.length);for(f=0,g=t.length;f<g;f++)v[f]={range:t[f].range,options:r};i._decorations=o.deltaDecorations(i._decorations,v),i._overviewRulerApproximateDecorations=o.deltaDecorations(i._overviewRulerApproximateDecorations,s),i._rangeHighlightDecorationId&&(o.removeDecoration(i._rangeHighlightDecorationId),i._rangeHighlightDecorationId=null),i._findScopeDecorationId&&(o.removeDecoration(i._findScopeDecorationId),i._findScopeDecorationId=null),n&&(i._findScopeDecorationId=o.addDecoration(n,e._FIND_SCOPE_DECORATION))})},e.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;t>=0;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumber<e.lineNumber)return i;if(!(i.endColumn>e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var i=this._decorations[t],o=this._editor.getModel().getDecorationRange(i);if(o&&!(o.startLineNumber<e.lineNumber)){if(o.startLineNumber>e.lineNumber)return o;if(!(o.startColumn<e.column))return o}}return this._editor.getModel().getDecorationRange(this._decorations[0])},e.prototype._allDecorations=function(){var e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&e.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e},e._CURRENT_FIND_MATCH_DECORATION=g["a"].register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v["g"])(m["Fb"]),position:f["d"].Center},minimap:{color:Object(v["g"])(m["Db"]),position:f["c"].Inline}}),e._FIND_MATCH_DECORATION=g["a"].register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v["g"])(m["Fb"]),position:f["d"].Center},minimap:{color:Object(v["g"])(m["Db"]),position:f["c"].Inline}}),e._FIND_MATCH_NO_OVERVIEW_DECORATION=g["a"].register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),e._FIND_MATCH_ONLY_OVERVIEW_DECORATION=g["a"].register({stickiness:1,overviewRuler:{color:Object(v["g"])(m["Fb"]),position:f["d"].Center}}),e._RANGE_HIGHLIGHT_DECORATION=g["a"].register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),e._FIND_SCOPE_DECORATION=g["a"].register({className:"findScope",isWholeLine:!0}),e}(),b=function(){function e(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var n=[],i=0;i<this._ranges.length;i++)n.push({range:this._ranges[i],text:this._replaceStrings[i]});n.sort(function(e,t){return d["a"].compareRangesUsingStarts(e.range,t.range)});var o=[],r=n[0];for(i=1;i<n.length;i++)r.range.endLineNumber===n[i].range.startLineNumber&&r.range.endColumn===n[i].range.startColumn?(r.range=r.range.plusRange(n[i].range),r.text=r.text+n[i].text):(o.push(r),r=n[i]);o.push(r);for(var s=0,a=o;s<a.length;s++){var u=a[s];t.addEditOperation(u.range,u.text)}}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)},e}();function y(e,t){return e&&""!==e[0]?e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():s["i"](e[0][0])?w(e,t,"-")?C(e,t,"-"):t[0].toUpperCase()+t.substr(1):t:t}function w(e,t,n){var i=-1!==e[0].indexOf(n)&&-1!==t.indexOf(n);return i&&e[0].split(n).length===t.split(n).length}function C(e,t,n){var i=t.split(n),o=e[0].split(n),r="";return i.forEach(function(e,t){r+=y([o[t]],e)+n}),r.slice(0,-1)}var S=function(){function e(e){this.staticValue=e,this.kind=0}return e}(),L=function(){function e(e){this.pieces=e,this.kind=1}return e}(),O=function(){function e(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new S(e[0].staticValue):this._state=new L(e):this._state=new S("")}return e.fromStaticValue=function(t){return new e([x.staticValue(t)])},Object.defineProperty(e.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind},enumerable:!0,configurable:!0}),e.prototype.buildReplaceString=function(t,n){if(0===this._state.kind)return n?y(t,this._state.staticValue):this._state.staticValue;for(var i="",o=0,r=this._state.pieces.length;o<r;o++){var s=this._state.pieces[o];null===s.staticValue?i+=e._substitute(s.matchIndex,t):i+=s.staticValue}return i},e._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];var n="";while(e>0){if(e<t.length){var i=t[e]||"";return i+n}n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n},e}(),x=function(){function e(e,t){this.staticValue=e,this.matchIndex=t}return e.staticValue=function(t){return new e(t,-1)},e.matchIndex=function(t){return new e(null,t)},e}(),N=function(){function e(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return e.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e},e.prototype.emitStatic=function(e,t){this._emitStatic(e),this._lastCharIndex=t},e.prototype._emitStatic=function(e){0!==e.length&&(this._currentStaticPiece+=e)},e.prototype.emitMatchIndex=function(e,t){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=x.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=x.matchIndex(e),this._lastCharIndex=t},e.prototype.finalize=function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=x.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new O(this._result)},e}();function D(e){if(!e||0===e.length)return new O(null);for(var t=new N(e),n=0,i=e.length;n<i;n++){var o=e.charCodeAt(n);if(92!==o){if(36===o){if(n++,n>=i)break;a=e.charCodeAt(n);if(36===a){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=a&&a<=57){var r=a-48;if(n+1<i){var s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,r=10*r+(s-48),t.emitUnchanged(n-2),t.emitMatchIndex(r,n+1);continue}}t.emitUnchanged(n-1),t.emitMatchIndex(r,n+1);continue}}}else{if(n++,n>=i)break;var a=e.charCodeAt(n);switch(a){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1);break}}}return t.finalize()}var k=n("4fc3"),I=new k["d"]("findWidgetVisible",!1),E=new k["d"]("findInputFocussed",!1),M=new k["d"]("replaceInputFocussed",!1),T={primary:545,mac:{primary:2593}},P={primary:565,mac:{primary:2613}},R={primary:560,mac:{primary:2608}},A={primary:554,mac:{primary:2602}},F={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},j=19999,W=240,V=function(){function e(e,t){var n=this;this._toDispose=new r["b"],this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new o["e"],this._decorations=new _(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new o["d"](function(){return n.research(!1)},100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(function(e){3!==e.reason&&5!==e.reason&&6!==e.reason||n._decorations.setStartPosition(n._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(function(e){n._ignoreModelContentChanged||(e.isFlush&&n._decorations.reset(),n._decorations.setStartPosition(n._editor.getPosition()),n._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(function(e){return n._onStateChanged(e)})),this.research(!1,this._state.searchScope)}return e.prototype.dispose=function(){this._isDisposed=!0,Object(r["f"])(this._startSearchingTimer),this._toDispose.dispose()},e.prototype._onStateChanged=function(e){var t=this;if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){var n=this._editor.getModel();n.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor)},W)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}},e._getSearchRange=function(e,t){return t||e.getFullModelRange()},e.prototype.research=function(e,t){var n=null;n="undefined"!==typeof t?t:this._decorations.getFindScope(),null!==n&&n.startLineNumber!==n.endLineNumber&&(n=1===n.endColumn?new d["a"](n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new d["a"](n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var i=this._findMatches(n,!1,j);this._decorations.set(i,n),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),e&&this._moveToNextMatch(this._decorations.getStartPosition())},e.prototype._hasMatches=function(){return this._state.matchesCount>0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)},e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||1===i?(1===n?n=o.getLineCount():n--,i=o.getLineMaxColumn(n)):i--,new c["a"](n,i)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<j){var i=this._decorations.matchBeforePosition(t);return i&&i.isEmpty()&&i.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),i=this._decorations.matchBeforePosition(t)),void(i&&this._setCurrentFindMatch(i))}if(!this._cannotFind()){var o=this._decorations.getFindScope(),r=e._getSearchRange(this._editor.getModel(),o);r.getEndPosition().isBefore(t)&&(t=r.getEndPosition()),t.isBefore(r.getStartPosition())&&(t=r.getEndPosition());var s=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new c["a"](s,a),d=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);if(d&&d.range.isEmpty()&&d.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),d=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1)),d)return n||r.containsRange(d.range)?void this._setCurrentFindMatch(d.range):this._moveToPrevMatch(d.range.getStartPosition(),!0)}},e.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},e.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||i===o.getLineMaxColumn(n)?(n===o.getLineCount()?n=1:n++,i=1):i++,new c["a"](n,i)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<j){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)},e.prototype._getNextMatch=function(t,n,i,o){if(void 0===o&&(o=!1),this._cannotFind())return null;var r=this._decorations.getFindScope(),s=e._getSearchRange(this._editor.getModel(),r);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),d=new c["a"](a,u),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n)),h?o||s.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),n,i,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?D(this._state.replaceString):O.fromStaticValue(this._state.replaceString)},e.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches,this._state.preserveCase),o=new l["a"](t,i);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new c["a"](t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},e.prototype._findMatches=function(t,n,i){var o=e._getSearchRange(this._editor.getModel(),t);return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n,i)},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=j?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new p["a"](this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null),t=e.parseSearchRequest();if(t){var n=t.regex;if(!n.multiline){var i="m";n.ignoreCase&&(i+="i"),n.global&&(i+="g"),n=new RegExp(n.source,i)}var o,r=this._editor.getModel(),s=r.getValue(1),a=r.getFullModelRange(),u=this._getReplacePattern(),c=this._state.preserveCase;o=u.hasReplacementPatterns||c?s.replace(n,function(){return u.buildReplaceString(arguments,c)}):s.replace(n,u.buildReplaceString(null,c));var d=new l["b"](a,o,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),i=[],o=0,r=n.length;o<r;o++)i[o]=t.buildReplaceString(n[o].matches,this._state.preserveCase);var s=new b(this._editor.getSelection(),n.map(function(e){return e.range}),i);this._executeEditorCommand("replaceAll",s)},e.prototype.selectAllMatches=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._findMatches(e,!1,1073741824),n=t.map(function(e){return new h["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)}),i=this._editor.getSelection(),o=0,r=n.length;o<r;o++){var s=n[o];if(s.equalsRange(i)){n=[i].concat(n.slice(0,o)).concat(n.slice(o+1));break}}this._editor.setSelections(n)}},e.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},e}(),B=n("11f7"),H=(n("8899"),n("1b7d")),z=n("ceb8"),U=n("308f"),K=n("aa3d"),q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),G={inputActiveOptionBorder:z["a"].fromHex("#007ACC00"),inputActiveOptionBackground:z["a"].fromHex("#0E639C50")},Z=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new U["a"]),n.onChange=n._onChange.event,n._onKeyDown=n._register(new U["a"]),n.onKeyDown=n._onKeyDown.event,n._opts=K["c"](t),K["g"](n._opts,G,!1),n._checked=n._opts.isChecked,n.domNode=document.createElement("div"),n.domNode.title=n._opts.title,n.domNode.className="monaco-custom-checkbox "+(n._opts.actionClassName||"")+" "+(n._checked?"checked":"unchecked"),n.domNode.tabIndex=0,n.domNode.setAttribute("role","checkbox"),n.domNode.setAttribute("aria-checked",String(n._checked)),n.domNode.setAttribute("aria-label",n._opts.title),n.applyStyles(),n.onclick(n.domNode,function(e){n.checked=!n._checked,n._onChange.fire(!1),e.preventDefault()}),n.onkeydown(n.domNode,function(e){if(10===e.keyCode||3===e.keyCode)return n.checked=!n._checked,n._onChange.fire(!0),void e.preventDefault();n._onKeyDown.fire(e)}),n}return q(t,e),t.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),t.prototype.width=function(){return 22},t.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()},t.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},t.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},t.prototype.disable=function(){B["L"](this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},t}(H["a"]),Y=(n("a96a"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),X=i["a"]("caseDescription","Match Case"),$=i["a"]("wordsDescription","Match Whole Word"),Q=i["a"]("regexDescription","Use Regular Expression"),J=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:X+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return Y(t,e),t}(Z),ee=function(e){function t(t){return e.call(this,{actionClassName:"monaco-whole-word",title:$+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return Y(t,e),t}(Z),te=function(e){function t(t){return e.call(this,{actionClassName:"monaco-regex",title:Q+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return Y(t,e),t}(Z),ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ie=function(e){function t(t,n,i,r){var s=e.call(this)||this;s._hideSoon=s._register(new o["d"](function(){return s._hide()},2e3)),s._isVisible=!1,s._editor=t,s._state=n,s._keybindingService=i,s._domNode=document.createElement("div"),s._domNode.className="findOptionsWidget",s._domNode.style.display="none",s._domNode.style.top="10px",s._domNode.setAttribute("role","presentation"),s._domNode.setAttribute("aria-hidden","true");var a=r.getTheme().getColor(m["V"]),u=r.getTheme().getColor(m["U"]);return s.caseSensitive=s._register(new J({appendTitle:s._keybindingLabelFor(F.ToggleCaseSensitiveCommand),isChecked:s._state.matchCase,inputActiveOptionBorder:a,inputActiveOptionBackground:u})),s._domNode.appendChild(s.caseSensitive.domNode),s._register(s.caseSensitive.onChange(function(){s._state.change({matchCase:s.caseSensitive.checked},!1)})),s.wholeWords=s._register(new ee({appendTitle:s._keybindingLabelFor(F.ToggleWholeWordCommand),isChecked:s._state.wholeWord,inputActiveOptionBorder:a,inputActiveOptionBackground:u})),s._domNode.appendChild(s.wholeWords.domNode),s._register(s.wholeWords.onChange(function(){s._state.change({wholeWord:s.wholeWords.checked},!1)})),s.regex=s._register(new te({appendTitle:s._keybindingLabelFor(F.ToggleRegexCommand),isChecked:s._state.isRegex,inputActiveOptionBorder:a,inputActiveOptionBackground:u})),s._domNode.appendChild(s.regex.domNode),s._register(s.regex.onChange(function(){s._state.change({isRegex:s.regex.checked},!1)})),s._editor.addOverlayWidget(s),s._register(s._state.onFindReplaceStateChange(function(e){var t=!1;e.isRegex&&(s.regex.checked=s._state.isRegex,t=!0),e.wholeWord&&(s.wholeWords.checked=s._state.wholeWord,t=!0),e.matchCase&&(s.caseSensitive.checked=s._state.matchCase,t=!0),!s._state.isRevealed&&t&&s._revealTemporarily()})),s._register(B["i"](s._domNode,function(e){return s._onMouseOut()})),s._register(B["h"](s._domNode,"mouseover",function(e){return s._onMouseOver()})),s._applyTheme(r.getTheme()),s._register(r.onThemeChange(s._applyTheme.bind(s))),s}return ne(t,e),t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:0}},t.prototype.highlightFindOptions=function(){this._revealTemporarily()},t.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},t.prototype._onMouseOut=function(){this._hideSoon.schedule()},t.prototype._onMouseOver=function(){this._hideSoon.cancel()},t.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},t.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(m["V"]),inputActiveOptionBackground:e.getColor(m["U"])};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},t.ID="editor.contrib.findOptionsWidget",t}(H["a"]);function oe(e,t){return 1===e||2!==e&&t}Object(v["f"])(function(e,t){var n=e.getColor(m["N"]);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var i=e.getColor(m["Wb"]);i&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(m["e"]);o&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+o+"; }")});var re=function(){function e(){this._onFindReplaceStateChange=new U["a"],this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null}return Object.defineProperty(e.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRegex",{get:function(){return oe(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wholeWord",{get:function(){return oe(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchCase",{get:function(){return oe(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveCase",{get:function(){return oe(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){},e.prototype.changeMatchInfo=function(e,t,n){var i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,o=!0),"undefined"!==typeof n&&(d["a"].equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(i)},e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var i={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,r=this.isRegex,s=this.wholeWord,a=this.matchCase,u=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,i.searchString=!0,o=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,i.replaceString=!0,o=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,i.isRevealed=!0,o=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,i.isReplaceRevealed=!0,o=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&(d["a"].equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,i.searchScope=!0,o=!0)),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(o=!0,i.isRegex=!0),s!==this.wholeWord&&(o=!0,i.wholeWord=!0),a!==this.matchCase&&(o=!0,i.matchCase=!0),u!==this.preserveCase&&(o=!0,i.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(i)},e}(),se=(n("01b0"),n("3813")),ae=n("70c3"),ue=n("fdcc"),le=n("30db"),ce=(n("caa1"),n("d3ef")),de=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),he=i["a"]("defaultLabel","input"),pe=function(e){function t(t,n,i,o){var r=e.call(this)||this;r._showOptionButtons=i,r.fixFocusOnOptionClickEnabled=!0,r._onDidOptionChange=r._register(new U["a"]),r.onDidOptionChange=r._onDidOptionChange.event,r._onKeyDown=r._register(new U["a"]),r.onKeyDown=r._onKeyDown.event,r._onMouseDown=r._register(new U["a"]),r.onMouseDown=r._onMouseDown.event,r._onInput=r._register(new U["a"]),r._onKeyUp=r._register(new U["a"]),r._onCaseSensitiveKeyDown=r._register(new U["a"]),r.onCaseSensitiveKeyDown=r._onCaseSensitiveKeyDown.event,r._onRegexKeyDown=r._register(new U["a"]),r.onRegexKeyDown=r._onRegexKeyDown.event,r._lastHighlightFindOptions=0,r.contextViewProvider=n,r.placeholder=o.placeholder||"",r.validation=o.validation,r.label=o.label||he,r.inputActiveOptionBorder=o.inputActiveOptionBorder,r.inputActiveOptionBackground=o.inputActiveOptionBackground,r.inputBackground=o.inputBackground,r.inputForeground=o.inputForeground,r.inputBorder=o.inputBorder,r.inputValidationInfoBorder=o.inputValidationInfoBorder,r.inputValidationInfoBackground=o.inputValidationInfoBackground,r.inputValidationInfoForeground=o.inputValidationInfoForeground,r.inputValidationWarningBorder=o.inputValidationWarningBorder,r.inputValidationWarningBackground=o.inputValidationWarningBackground,r.inputValidationWarningForeground=o.inputValidationWarningForeground,r.inputValidationErrorBorder=o.inputValidationErrorBorder,r.inputValidationErrorBackground=o.inputValidationErrorBackground,r.inputValidationErrorForeground=o.inputValidationErrorForeground;var s=o.appendCaseSensitiveLabel||"",a=o.appendWholeWordsLabel||"",u=o.appendRegexLabel||"",l=o.history||[],c=!!o.flexibleHeight,d=!!o.flexibleWidth,h=o.flexibleMaxHeight;r.domNode=document.createElement("div"),B["f"](r.domNode,"monaco-findInput"),r.inputBox=r._register(new ce["a"](r.domNode,r.contextViewProvider,{placeholder:r.placeholder||"",ariaLabel:r.label||"",validationOptions:{validation:r.validation},inputBackground:r.inputBackground,inputForeground:r.inputForeground,inputBorder:r.inputBorder,inputValidationInfoBackground:r.inputValidationInfoBackground,inputValidationInfoForeground:r.inputValidationInfoForeground,inputValidationInfoBorder:r.inputValidationInfoBorder,inputValidationWarningBackground:r.inputValidationWarningBackground,inputValidationWarningForeground:r.inputValidationWarningForeground,inputValidationWarningBorder:r.inputValidationWarningBorder,inputValidationErrorBackground:r.inputValidationErrorBackground,inputValidationErrorForeground:r.inputValidationErrorForeground,inputValidationErrorBorder:r.inputValidationErrorBorder,history:l,flexibleHeight:c,flexibleWidth:d,flexibleMaxHeight:h})),r.regex=r._register(new te({appendTitle:u,isChecked:!1,inputActiveOptionBorder:r.inputActiveOptionBorder,inputActiveOptionBackground:r.inputActiveOptionBackground})),r._register(r.regex.onChange(function(e){r._onDidOptionChange.fire(e),!e&&r.fixFocusOnOptionClickEnabled&&r.inputBox.focus(),r.validate()})),r._register(r.regex.onKeyDown(function(e){r._onRegexKeyDown.fire(e)})),r.wholeWords=r._register(new ee({appendTitle:a,isChecked:!1,inputActiveOptionBorder:r.inputActiveOptionBorder,inputActiveOptionBackground:r.inputActiveOptionBackground})),r._register(r.wholeWords.onChange(function(e){r._onDidOptionChange.fire(e),!e&&r.fixFocusOnOptionClickEnabled&&r.inputBox.focus(),r.validate()})),r.caseSensitive=r._register(new J({appendTitle:s,isChecked:!1,inputActiveOptionBorder:r.inputActiveOptionBorder,inputActiveOptionBackground:r.inputActiveOptionBackground})),r._register(r.caseSensitive.onChange(function(e){r._onDidOptionChange.fire(e),!e&&r.fixFocusOnOptionClickEnabled&&r.inputBox.focus(),r.validate()})),r._register(r.caseSensitive.onKeyDown(function(e){r._onCaseSensitiveKeyDown.fire(e)})),r._showOptionButtons&&(r.inputBox.paddingRight=r.caseSensitive.width()+r.wholeWords.width()+r.regex.width());var p=[r.caseSensitive.domNode,r.wholeWords.domNode,r.regex.domNode];r.onkeydown(r.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=p.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%p.length:e.equals(15)&&(n=0===t?p.length-1:t-1),e.equals(9)?p[t].blur():n>=0&&p[n].focus(),B["c"].stop(e,!0)}}});var f=document.createElement("div");return f.className="controls",f.style.display=r._showOptionButtons?"block":"none",f.appendChild(r.caseSensitive.domNode),f.appendChild(r.wholeWords.domNode),f.appendChild(r.regex.domNode),r.domNode.appendChild(f),t&&t.appendChild(r.domNode),r.onkeydown(r.inputBox.inputElement,function(e){return r._onKeyDown.fire(e)}),r.onkeyup(r.inputBox.inputElement,function(e){return r._onKeyUp.fire(e)}),r.oninput(r.inputBox.inputElement,function(e){return r._onInput.fire()}),r.onmousedown(r.inputBox.inputElement,function(e){return r._onMouseDown.fire(e)}),r}return de(t,e),t.prototype.enable=function(){B["I"](this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){B["f"](this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.highlightFindOptions=function(){B["I"](this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,B["f"](this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},t.prototype.clearMessage=function(){this.inputBox&&this.inputBox.hideMessage()},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(H["a"]),fe=n("9eb8"),ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),me=i["a"]("defaultLabel","input"),ve=i["a"]("label.preserveCaseCheckbox","Preserve Case"),_e=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:ve+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return ge(t,e),t}(Z),be=function(e){function t(t,n,i,o){var r=e.call(this)||this;r._showOptionButtons=i,r.fixFocusOnOptionClickEnabled=!0,r.cachedOptionsWidth=0,r._onDidOptionChange=r._register(new U["a"]),r.onDidOptionChange=r._onDidOptionChange.event,r._onKeyDown=r._register(new U["a"]),r.onKeyDown=r._onKeyDown.event,r._onMouseDown=r._register(new U["a"]),r._onInput=r._register(new U["a"]),r._onKeyUp=r._register(new U["a"]),r._onPreserveCaseKeyDown=r._register(new U["a"]),r.onPreserveCaseKeyDown=r._onPreserveCaseKeyDown.event,r.contextViewProvider=n,r.placeholder=o.placeholder||"",r.validation=o.validation,r.label=o.label||me,r.inputActiveOptionBorder=o.inputActiveOptionBorder,r.inputBackground=o.inputBackground,r.inputForeground=o.inputForeground,r.inputBorder=o.inputBorder,r.inputValidationInfoBorder=o.inputValidationInfoBorder,r.inputValidationInfoBackground=o.inputValidationInfoBackground,r.inputValidationInfoForeground=o.inputValidationInfoForeground,r.inputValidationWarningBorder=o.inputValidationWarningBorder,r.inputValidationWarningBackground=o.inputValidationWarningBackground,r.inputValidationWarningForeground=o.inputValidationWarningForeground,r.inputValidationErrorBorder=o.inputValidationErrorBorder,r.inputValidationErrorBackground=o.inputValidationErrorBackground,r.inputValidationErrorForeground=o.inputValidationErrorForeground;var s=!!o.flexibleHeight,a=!!o.flexibleWidth,u=o.flexibleMaxHeight;return r.buildDomNode(o.history||[],s,a,u),t&&t.appendChild(r.domNode),r.onkeydown(r.inputBox.inputElement,function(e){return r._onKeyDown.fire(e)}),r.onkeyup(r.inputBox.inputElement,function(e){return r._onKeyUp.fire(e)}),r.oninput(r.inputBox.inputElement,function(e){return r._onInput.fire()}),r.onmousedown(r.inputBox.inputElement,function(e){return r._onMouseDown.fire(e)}),r}return ge(t,e),t.prototype.enable=function(){B["I"](this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},t.prototype.disable=function(){B["f"](this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.preserveCase.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getPreserveCase=function(){return this.preserveCase.checked},t.prototype.setPreserveCase=function(e){this.preserveCase.checked=e},t.prototype.focusOnPreserve=function(){this.preserveCase.focus()},t.prototype.buildDomNode=function(e,t,n,i){var o=this;this.domNode=document.createElement("div"),B["f"](this.domNode,"monaco-findInput"),this.inputBox=this._register(new ce["a"](this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:e,flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:i})),this.preserveCase=this._register(new _e({appendTitle:"",isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.preserveCase.onChange(function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()})),this._register(this.preserveCase.onKeyDown(function(e){o._onPreserveCaseKeyDown.fire(e)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;var r=[this.preserveCase.domNode];this.onkeydown(this.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=r.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%r.length:e.equals(15)&&(n=0===t?r.length-1:t-1),e.equals(9)?r[t].blur():n>=0&&r[n].focus(),B["c"].stop(e,!0)}}});var s=document.createElement("div");s.className="controls",s.style.display=this._showOptionButtons?"block":"none",s.appendChild(this.preserveCase.domNode),this.domNode.appendChild(s)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(t.prototype,"width",{set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(H["a"]),ye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),we=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Ce=function(e,t){return function(n,i){t(n,i,e)}},Se="historyNavigationWidget",Le="historyNavigationEnabled";function Oe(e,t,n){new k["d"](n,t).bindTo(e)}function xe(e,t){return e.createScoped(t.target)}function Ne(e,t){return e.getContext(document.activeElement).getValue(t)}function De(e,t){var n=xe(e,t);Oe(n,t,Se);var i=new k["d"](Le,!0).bindTo(n);return{scopedContextKeyService:n,historyNavigationEnablement:i}}var ke=function(e){function t(t,n,i,o,r){void 0===r&&(r=!1);var s=e.call(this,t,n,r,i)||this;return s._register(De(o,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return ye(t,e),t=we([Ce(3,k["c"])],t),t}(pe),Ie=function(e){function t(t,n,i,o,r){void 0===r&&(r=!1);var s=e.call(this,t,n,r,i)||this;return s._register(De(o,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return ye(t,e),t=we([Ce(3,k["c"])],t),t}(be);fe["a"].registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:k["a"].and(k["a"].has(Se),k["a"].equals(Le,!0)),primary:16,secondary:[528],handler:function(e,t){var n=Ne(e.get(k["c"]),Se);if(n){var i=n.historyNavigator;i.showPreviousValue()}}}),fe["a"].registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:k["a"].and(k["a"].has(Se),k["a"].equals(Le,!0)),primary:18,secondary:[530],handler:function(e,t){var n=Ne(e.get(k["c"]),Se);if(n){var i=n.historyNavigator;i.showNextValue()}}});var Ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Me=i["a"]("label.find","Find"),Te=i["a"]("placeholder.find","Find"),Pe=i["a"]("label.previousMatchButton","Previous match"),Re=i["a"]("label.nextMatchButton","Next match"),Ae=i["a"]("label.toggleSelectionFind","Find in selection"),Fe=i["a"]("label.closeButton","Close"),je=i["a"]("label.replace","Replace"),We=i["a"]("placeholder.replace","Replace"),Ve=i["a"]("label.replaceButton","Replace"),Be=i["a"]("label.replaceAllButton","Replace All"),He=i["a"]("label.toggleReplaceButton","Toggle Replace mode"),ze=i["a"]("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",j),Ue=i["a"]("label.matchesLocation","{0} of {1}"),Ke=i["a"]("label.noResults","No Results"),qe=419,Ge=275,Ze=Ge-54,Ye=69,Xe=17+(Ye+3+1)+92+2,$e=33,Qe="ctrlEnterReplaceAll.windows.donotask",Je=le["d"]?256:2048,et=function(){function e(e){this.afterLineNumber=e,this.heightInPx=$e,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return e}();function tt(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionStart>0&&e.stopPropagation()}function nt(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionEnd<n.value.length&&e.stopPropagation()}var it=function(e){function t(t,n,i,s,a,u,l,c,d){var h=e.call(this)||this;return h._codeEditor=t,h._controller=n,h._state=i,h._contextViewProvider=s,h._keybindingService=a,h._contextKeyService=u,h._storageService=c,h._notificationService=d,h._ctrlEnterReplaceAllWarningPrompted=!!c.getBoolean(Qe,0),h._isVisible=!1,h._isReplaceVisible=!1,h._ignoreChangeEvent=!1,h._updateHistoryDelayer=new o["a"](500),h._register(Object(r["h"])(function(){return h._updateHistoryDelayer.cancel()})),h._register(h._state.onFindReplaceStateChange(function(e){return h._onStateChanged(e)})),h._buildDomNode(),h._updateButtons(),h._tryUpdateWidgetWidth(),h._findInput.inputBox.layout(),h._register(h._codeEditor.onDidChangeConfiguration(function(e){if(e.readOnly&&(h._codeEditor.getConfiguration().readOnly&&h._state.change({isReplaceRevealed:!1},!1),h._updateButtons()),e.layoutInfo&&h._tryUpdateWidgetWidth(),e.accessibilitySupport&&h.updateAccessibilitySupport(),e.contribInfo){var t=h._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop;t&&!h._viewZone&&(h._viewZone=new et(0),h._showViewZone()),!t&&h._viewZone&&h._removeViewZone()}})),h.updateAccessibilitySupport(),h._register(h._codeEditor.onDidChangeCursorSelection(function(){h._isVisible&&h._updateToggleSelectionFindButton()})),h._register(h._codeEditor.onDidFocusEditorWidget(function(){if(h._isVisible){var e=h._controller.getGlobalBufferTerm();e&&e!==h._state.searchString&&(h._state.change({searchString:e},!0),h._findInput.select())}})),h._findInputFocused=E.bindTo(u),h._findFocusTracker=h._register(B["S"](h._findInput.inputBox.inputElement)),h._register(h._findFocusTracker.onDidFocus(function(){h._findInputFocused.set(!0),h._updateSearchScope()})),h._register(h._findFocusTracker.onDidBlur(function(){h._findInputFocused.set(!1)})),h._replaceInputFocused=M.bindTo(u),h._replaceFocusTracker=h._register(B["S"](h._replaceInput.inputBox.inputElement)),h._register(h._replaceFocusTracker.onDidFocus(function(){h._replaceInputFocused.set(!0),h._updateSearchScope()})),h._register(h._replaceFocusTracker.onDidBlur(function(){h._replaceInputFocused.set(!1)})),h._codeEditor.addOverlayWidget(h),h._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop&&(h._viewZone=new et(0)),h._applyTheme(l.getTheme()),h._register(l.onThemeChange(h._applyTheme.bind(h))),h._register(h._codeEditor.onDidChangeModel(function(){h._isVisible&&(h._viewZoneId=void 0)})),h._register(h._codeEditor.onDidScrollChange(function(e){e.scrollTopChanged?h._layoutViewZone():setTimeout(function(){h._layoutViewZone()},0)})),h}return Ee(t,e),t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},t.prototype._onStateChanged=function(e){if(e.searchString){this._state.searchString.indexOf("\n")>=0?B["f"](this._domNode,"multipleline"):B["I"](this._domNode,"multipleline");try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getConfiguration().readOnly||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=B["B"](this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){var t=this._state.searchString.length>0&&0===this._state.matchesCount;B["R"](this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},t.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=Ye+"px",this._state.matchesCount>=j?this._matchesCount.title=ze:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=j&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=s["r"](Ue,n,t)}else e=Ke;this._matchesCount.appendChild(document.createTextNode(e)),Object(se["a"])(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString),!0),Ye=Math.max(Ye,this._matchesCount.clientWidth)},t.prototype._getAriaLabel=function(e,t,n){return e===Ke?""===n?i["a"]("ariaSearchNoResultEmpty","{0} found",e):i["a"]("ariaSearchNoResult","{0} found for {1}",e,n):t?i["a"]("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",e,n,t.startLineNumber+":"+t.startColumn):i["a"]("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",e,n)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t))},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t),this._nextBtn.setEnabled(this._isVisible&&e&&t),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),B["R"](this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getConfiguration().readOnly;this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},t.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection(),n=!!t&&(t.startLineNumber!==t.endLineNumber||t.startColumn!==t.endColumn);n&&this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){B["f"](e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){e._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&t){var o=this._codeEditor.getDomNode();if(o){var r=B["x"](o),s=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),a=r.left+(s?s.left:0),u=s?s.top:0;if(this._viewZone&&u<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(i=!1);var l=B["z"](this._domNode).left;a>l&&(i=!1);var c=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition()),d=r.left+(c?c.left:0);d>l&&(i=!1)}}}this._showViewZone(i)}},t.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),B["I"](this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},t.prototype._layoutViewZone=function(){var e=this,t=this._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop;if(t){if(this._isVisible){var n=this._viewZone;void 0===this._viewZoneId&&n&&this._codeEditor.changeViewZones(function(t){n.heightInPx=e._getHeight(),e._viewZoneId=t.addZone(n),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+n.heightInPx)})}}else this._removeViewZone()},t.prototype._showViewZone=function(e){var t=this;if(void 0===e&&(e=!0),this._isVisible){var n=this._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop;if(n){void 0===this._viewZone&&(this._viewZone=new et(0));var i=this._viewZone;this._codeEditor.changeViewZones(function(n){if(void 0!==t._viewZoneId){var o=t._getHeight();if(o===i.heightInPx)return;var r=o-i.heightInPx;return i.heightInPx=o,n.layoutZone(t._viewZoneId),void(e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r))}r=t._getHeight();i.heightInPx=r,t._viewZoneId=n.addZone(i),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r)})}}},t.prototype._removeViewZone=function(){var e=this;this._codeEditor.changeViewZones(function(t){void 0!==e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0,e._viewZone&&(e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()-e._viewZone.heightInPx),e._viewZone=void 0))})},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(m["V"]),inputActiveOptionBackground:e.getColor(m["U"]),inputBackground:e.getColor(m["W"]),inputForeground:e.getColor(m["Y"]),inputBorder:e.getColor(m["X"]),inputValidationInfoBackground:e.getColor(m["cb"]),inputValidationInfoForeground:e.getColor(m["eb"]),inputValidationInfoBorder:e.getColor(m["db"]),inputValidationWarningBackground:e.getColor(m["fb"]),inputValidationWarningForeground:e.getColor(m["hb"]),inputValidationWarningBorder:e.getColor(m["gb"]),inputValidationErrorBackground:e.getColor(m["Z"]),inputValidationErrorForeground:e.getColor(m["bb"]),inputValidationErrorBorder:e.getColor(m["ab"])};this._findInput.style(t),this._replaceInput.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible){var e=this._codeEditor.getConfiguration().layoutInfo.contentWidth;if(e<=0)B["f"](this._domNode,"hiddenEditor");else{B["C"](this._domNode,"hiddenEditor")&&B["I"](this._domNode,"hiddenEditor");var t=this._codeEditor.getConfiguration().layoutInfo.width,n=this._codeEditor.getConfiguration().layoutInfo.minimapWidth,i=!1,o=!1,r=!1;if(this._resized){var s=B["B"](this._domNode);if(s>qe)return this._domNode.style.maxWidth=t-28-n-15+"px",void(this._replaceInput.width=B["B"](this._findInput.domNode))}if(qe+28+n>=t&&(o=!0),qe+28+n-Ye>=t&&(r=!0),qe+28+n-Ye>=t+50&&(i=!0),B["R"](this._domNode,"collapsed-find-widget",i),B["R"](this._domNode,"narrow-find-widget",r),B["R"](this._domNode,"reduced-find-widget",o),r||i||(this._domNode.style.maxWidth=t-28-n-15+"px"),this._resized){this._findInput.inputBox.layout();var a=this._findInput.inputBox.width;a>0&&(this._replaceInput.width=a)}}}},t.prototype._getHeight=function(){var e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e},t.prototype._tryUpdateHeight=function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},t.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},t.prototype._updateSearchScope=function(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(d["a"].equalsRange(e,t)||this._state.change({searchScope:e},!0))}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},t.prototype._onFindInputKeyDown=function(e){if(e.equals(3|Je)){var t=this._findInput.inputBox.inputElement,n=t.selectionStart,i=t.selectionEnd,o=t.value;if(null!==n&&null!==i){var r=o.substr(0,n)+"\n"+o.substr(i);return this._findInput.inputBox.value=r,t.setSelectionRange(n+1,n+1),this._findInput.inputBox.layout(),void e.preventDefault()}}return e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?tt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?nt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0},t.prototype._onReplaceInputKeyDown=function(e){if(e.equals(3|Je)){le["g"]&&le["e"]&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(i["a"]("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Qe,!0,0));var t=this._replaceInput.inputBox.inputElement,n=t.selectionStart,o=t.selectionEnd,r=t.value;if(null!==n&&null!==o){var s=r.substr(0,n)+"\n"+r.substr(o);return this._replaceInput.inputBox.value=s,t.setSelectionRange(n+1,n+1),this._replaceInput.inputBox.layout(),void e.preventDefault()}}return e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?tt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?nt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0},t.prototype.getHorizontalSashTop=function(e){return 0},t.prototype.getHorizontalSashLeft=function(e){return 0},t.prototype.getHorizontalSashWidth=function(e){return 500},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype._buildDomNode=function(){var e=this,t=!0,n=!0;this._findInput=this._register(new ke(null,this._contextViewProvider,{width:Ze,label:Me,placeholder:Te,appendCaseSensitiveLabel:this._keybindingLabelFor(F.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(F.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(F.ToggleRegexCommand),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(n){return{content:n.message}}},flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(t){return e._onFindInputKeyDown(t)})),this._register(this._findInput.inputBox.onDidChange(function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInput.focus(),t.preventDefault())})),this._register(this._findInput.onRegexKeyDown(function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceInput.focusOnPreserve(),t.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(function(t){e._tryUpdateHeight()&&e._showViewZone()})),le["c"]&&this._register(this._findInput.onMouseDown(function(t){return e._onFindInputMouseDown(t)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new rt({label:Pe+this._keybindingLabelFor(F.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(F.PreviousMatchFindAction).run().then(void 0,ue["e"])}})),this._nextBtn=this._register(new rt({label:Re+this._keybindingLabelFor(F.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(F.NextMatchFindAction).run().then(void 0,ue["e"])}}));var i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);var o=document.createElement("div");o.className="find-actions",i.appendChild(o),o.appendChild(this._matchesCount),o.appendChild(this._prevBtn.domNode),o.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ot({parent:o,title:Ae+this._keybindingLabelFor(F.ToggleSearchScopeCommand),onChange:function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()||e._state.change({searchScope:t},!0)}}else e._state.change({searchScope:null},!0)}})),this._closeBtn=this._register(new rt({label:Fe+this._keybindingLabelFor(F.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),o.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Ie(null,void 0,{label:je,placeholder:We,history:[],flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(t){return e._onReplaceInputKeyDown(t)})),this._register(this._replaceInput.inputBox.onDidChange(function(){e._state.change({replaceString:e._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(t){e._isReplaceVisible&&e._tryUpdateHeight()&&e._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){e._state.change({preserveCase:e._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(t){t.equals(2)&&(e._prevBtn.isEnabled()?e._prevBtn.focus():e._nextBtn.isEnabled()?e._nextBtn.focus():e._toggleSelectionFind.isEnabled()?e._toggleSelectionFind.focus():e._closeBtn.isEnabled()&&e._closeBtn.focus(),t.preventDefault())})),this._replaceBtn=this._register(new rt({label:Ve+this._keybindingLabelFor(F.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new rt({label:Be+this._keybindingLabelFor(F.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var r=document.createElement("div");r.className="replace-part",r.appendChild(this._replaceInput.domNode);var s=document.createElement("div");s.className="replace-actions",r.appendChild(s),s.appendChild(this._replaceBtn.domNode),s.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new rt({label:He,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=B["B"](e._findInput.domNode),e._replaceInput.inputBox.layout()),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=qe+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(r),this._resizeSash=new ae["a"](this._domNode,this,{orientation:0}),this._resized=!1;var a=qe;this._register(this._resizeSash.onDidStart(function(){a=B["B"](e._domNode)})),this._register(this._resizeSash.onDidChange(function(t){e._resized=!0;var n=a+t.startX-t.currentX;if(!(n<qe)){var i=n-Xe,o=parseFloat(B["u"](e._domNode).maxWidth)||0;n>o||(e._domNode.style.width=n+"px",e._findInput.inputBox.width=i,e._isReplaceVisible&&(e._replaceInput.width=B["B"](e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight())}})),this._register(this._resizeSash.onDidReset(function(){var t=B["B"](e._domNode);if(!(t<qe)){var n=qe;e._resized&&t!==qe||(n=e._codeEditor.getConfiguration().layoutInfo.width-28-e._codeEditor.getConfiguration().layoutInfo.minimapWidth-15,e._resized=!0);var i=n-Xe;e._domNode.style.width=n+"px",e._findInput.inputBox.width=i,e._isReplaceVisible&&(e._replaceInput.width=B["B"](e._findInput.domNode)),e._findInput.inputBox.layout()}}))},t.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getConfiguration().accessibilitySupport;this._findInput.setFocusInputOnOptionClick(2!==e)},t.ID="editor.contrib.findWidget",t}(H["a"]),ot=function(e){function t(n){var i=e.call(this)||this;return i._opts=n,i._domNode=document.createElement("div"),i._domNode.className="monaco-checkbox",i._domNode.title=i._opts.title,i._domNode.tabIndex=0,i._checkbox=document.createElement("input"),i._checkbox.type="checkbox",i._checkbox.className="checkbox",i._checkbox.id="checkbox-"+t._COUNTER++,i._checkbox.tabIndex=-1,i._label=document.createElement("label"),i._label.className="label",i._label.htmlFor=i._checkbox.id,i._label.tabIndex=-1,i._domNode.appendChild(i._checkbox),i._domNode.appendChild(i._label),i._opts.parent.appendChild(i._domNode),i.onchange(i._checkbox,function(){i._opts.onChange()}),i}return Ee(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checkbox.checked},set:function(e){this._checkbox.checked=e},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._domNode.focus()},t.prototype.enable=function(){this._checkbox.removeAttribute("disabled")},t.prototype.disable=function(){this._checkbox.disabled=!0},t.prototype.setEnabled=function(e){e?(this.enable(),this.domNode.tabIndex=0):(this.disable(),this.domNode.tabIndex=-1)},t._COUNTER=0,t}(H["a"]),rt=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,function(e){n._opts.onTrigger(),e.preventDefault()}),n.onkeydown(n._domNode,function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)}),n}return Ee(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},t.prototype.focus=function(){this._domNode.focus()},t.prototype.setEnabled=function(e){B["R"](this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},t.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))},t.prototype.toggleClass=function(e,t){B["R"](this._domNode,e,t)},t}(H["a"]);Object(v["f"])(function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")};n(".findMatch",e.getColor(m["t"])),n(".currentFindMatch",e.getColor(m["r"])),n(".findScope",e.getColor(m["v"]));var i=e.getColor(m["N"]);n(".find-widget",i);var o=e.getColor(m["Wb"]);o&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+o+"; }");var r=e.getColor(m["u"]);r&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+r+"; box-sizing: border-box; }");var s=e.getColor(m["s"]);s&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+s+"; padding: 1px; box-sizing: border-box; }");var a=e.getColor(m["w"]);a&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; }");var u=e.getColor(m["e"]);u&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+u+"; }");var l=e.getColor(m["P"]);l&&t.addRule(".monaco-editor .find-widget { color: "+l+"; }");var c=e.getColor(m["R"]);c&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+c+"; }");var d=e.getColor(m["Q"]);if(d)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}");else{var h=e.getColor(m["O"]);h&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+h+"; width: 3px !important; margin-left: -4px;}")}var p=e.getColor(m["V"]);p&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { border: 1px solid "+p.toString()+"; }");var f=e.getColor(m["U"]);f&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { background-color: "+f.toString()+"; }");var g=e.getColor(m["S"]);g&&t.addRule(".monaco-workbench .monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+g+"; }")});var st=n("f577"),at=n("533b"),ut=n("0a0f"),lt=n("6dec"),ct=n("03e8"),dt=n("b0cd");n.d(t,"getSelectionSearchString",function(){return mt}),n.d(t,"CommonFindController",function(){return vt}),n.d(t,"FindController",function(){return _t}),n.d(t,"StartFindAction",function(){return bt}),n.d(t,"StartFindWithSelectionAction",function(){return yt}),n.d(t,"MatchFindAction",function(){return wt}),n.d(t,"NextMatchFindAction",function(){return Ct}),n.d(t,"NextMatchFindAction2",function(){return St}),n.d(t,"PreviousMatchFindAction",function(){return Lt}),n.d(t,"PreviousMatchFindAction2",function(){return Ot}),n.d(t,"SelectionMatchFindAction",function(){return xt}),n.d(t,"NextSelectionMatchFindAction",function(){return Nt}),n.d(t,"PreviousSelectionMatchFindAction",function(){return Dt}),n.d(t,"StartFindReplaceAction",function(){return kt});var ht=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pt=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},ft=function(e,t){return function(n,i){t(n,i,e)}},gt=524288;function mt(e){if(!e.hasModel())return null;var t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}else if(e.getModel().getValueLengthInRange(t)<gt)return e.getModel().getValueInRange(t);return null}var vt=function(e){function t(t,n,i,r){var s=e.call(this)||this;return s._editor=t,s._findWidgetVisible=I.bindTo(n),s._contextKeyService=n,s._storageService=i,s._clipboardService=r,s._updateHistoryDelayer=new o["a"](500),s._state=s._register(new re),s.loadQueryState(),s._register(s._state.onFindReplaceStateChange(function(e){return s._onStateChanged(e)})),s._model=null,s._register(s._editor.onDidChangeModel(function(){var e=s._editor.getModel()&&s._state.isRevealed;s.disposeModel(),s._state.change({searchScope:null,matchCase:s._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:s._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:s._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:s._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&s._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),s}return ht(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this)},t.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},t.prototype.getId=function(){return t.ID},t.prototype._onStateChanged=function(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)},t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},t.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},t.prototype.isFindInputFocused=function(){return!!E.getValue(this._contextKeyService)},t.prototype.getState=function(){return this._state},t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()||this._state.change({searchScope:e},!0)}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=s["p"](e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t={isRevealed:!0};if(e.seedSearchStringFromSelection){var n=mt(this._editor);n&&(this._state.isRegex?t.searchString=s["p"](n):t.searchString=n)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){n=this.getGlobalBufferTerm();n&&(t.searchString=n)}if(e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),e.updateSearchScope){var i=this._editor.getSelection();i.isEmpty()||(t.searchScope=i)}this._state.change(t,!1),this._model||(this._model=new V(this._editor,this._state))}},t.prototype.start=function(e){this._start(e)},t.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},t.prototype.getGlobalBufferTerm=function(){return this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=pt([ft(1,k["c"]),ft(2,ct["a"]),ft(3,st["a"])],t),t}(r["a"]),_t=function(e){function t(t,n,i,o,r,s,a,u){var l=e.call(this,t,i,a,u)||this;return l._contextViewService=n,l._keybindingService=o,l._themeService=r,l._notificationService=s,l._widget=null,l._findOptionsWidget=null,l}return ht(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget(),!this._widget.getPosition()&&this._editor.getConfiguration().contribInfo.find.autoFindInSelection&&(t.updateSearchScope=!0),e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t.prototype._createFindWidget=function(){this._widget=this._register(new it(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ie(this._editor,this._state,this._keybindingService,this._themeService))},t=pt([ft(1,at["b"]),ft(2,k["c"]),ft(3,lt["a"]),ft(4,v["c"]),ft(5,dt["a"]),ft(6,ct["a"]),ft(7,Object(ut["d"])(st["a"]))],t),t}(vt),bt=function(e){function t(){return e.call(this,{id:F.StartFindAction,label:i["a"]("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menubarOpts:{menuId:14,group:"3_find",title:i["a"]({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return ht(t,e),t.prototype.run=function(e,t){var n=vt.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},t}(a["b"]),yt=function(e){function t(){return e.call(this,{id:F.StartFindWithSelection,label:i["a"]("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}return ht(t,e),t.prototype.run=function(e,t){var n=vt.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},t}(a["b"]),wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ht(t,e),t.prototype.run=function(e,t){var n=vt.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},t}(a["b"]),Ct=function(e){function t(){return e.call(this,{id:F.NextMatchFindAction,label:i["a"]("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}return ht(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(wt),St=function(e){function t(){return e.call(this,{id:F.NextMatchFindAction,label:i["a"]("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:k["a"].and(u["a"].focus,E),primary:3,weight:100}})||this}return ht(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(wt),Lt=function(e){function t(){return e.call(this,{id:F.PreviousMatchFindAction,label:i["a"]("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}return ht(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(wt),Ot=function(e){function t(){return e.call(this,{id:F.PreviousMatchFindAction,label:i["a"]("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:k["a"].and(u["a"].focus,E),primary:1027,weight:100}})||this}return ht(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(wt),xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ht(t,e),t.prototype.run=function(e,t){var n=vt.get(t);if(n){var i=mt(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},t}(a["b"]),Nt=function(e){function t(){return e.call(this,{id:F.NextSelectionMatchFindAction,label:i["a"]("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:2109,weight:100}})||this}return ht(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(xt),Dt=function(e){function t(){return e.call(this,{id:F.PreviousSelectionMatchFindAction,label:i["a"]("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:3133,weight:100}})||this}return ht(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(xt),kt=function(e){function t(){return e.call(this,{id:F.StartFindReplaceAction,label:i["a"]("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menubarOpts:{menuId:14,group:"3_find",title:i["a"]({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return ht(t,e),t.prototype.run=function(e,t){if(t.hasModel()&&!t.getConfiguration().readOnly){var n=vt.get(t),i=t.getSelection(),o=n.isFindInputFocused(),r=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&!o,s=o||r?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1})}},t}(a["b"]);Object(a["h"])(_t),Object(a["f"])(bt),Object(a["f"])(yt),Object(a["f"])(Ct),Object(a["f"])(St),Object(a["f"])(Lt),Object(a["f"])(Ot),Object(a["f"])(Nt),Object(a["f"])(Dt),Object(a["f"])(kt);var It=a["c"].bindToContribution(vt.get);Object(a["g"])(new It({id:F.CloseFindWidgetCommand,precondition:I,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:9,secondary:[1033]}})),Object(a["g"])(new It({id:F.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:T.primary,mac:T.mac,win:T.win,linux:T.linux}})),Object(a["g"])(new It({id:F.ToggleWholeWordCommand,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),Object(a["g"])(new It({id:F.ToggleRegexCommand,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),Object(a["g"])(new It({id:F.ToggleSearchScopeCommand,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),Object(a["g"])(new It({id:F.ReplaceOneAction,precondition:I,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:3094}})),Object(a["g"])(new It({id:F.ReplaceOneAction,precondition:I,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:k["a"].and(u["a"].focus,M),primary:3}})),Object(a["g"])(new It({id:F.ReplaceAllAction,precondition:I,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:2563}})),Object(a["g"])(new It({id:F.ReplaceAllAction,precondition:I,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:k["a"].and(u["a"].focus,M),primary:void 0,mac:{primary:2051}}})),Object(a["g"])(new It({id:F.SelectAllMatchesAction,precondition:I,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:515}}))},a222:function(e,t,n){"use strict";n.r(t),n.d(t,"IPadShowKeyboard",function(){return u});n("722f9");var i=n("0f70"),o=n("11f7"),r=n("a666"),s=n("b2cc"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n.widget=null,i["k"]&&(n._register(t.onDidChangeConfiguration(function(){return n.update()})),n.update()),n}return a(t,e),t.prototype.update=function(){var e=!this.editor.getConfiguration().readOnly;!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)},t.prototype.getId=function(){return t.ID},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},t.ID="editor.contrib.iPadShowKeyboard",t}(r["a"]),l=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n._domNode=document.createElement("textarea"),n._domNode.className="iPadShowKeyboard",n._register(o["h"](n._domNode,"touchstart",function(e){n.editor.focus()})),n._register(o["h"](n._domNode,"focus",function(e){n.editor.focus()})),n.editor.addOverlayWidget(n),n}return a(t,e),t.prototype.dispose=function(){this.editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:1}},t.ID="editor.contrib.ShowKeyboardWidget",t}(r["a"]);Object(s["h"])(u)},a40b:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("0a0f"),o="editorWorkerService",r=Object(i["c"])(o)},a60f:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return c});var i,o=n("e8e3"),r=n("a666"),s=n("11f7"),a=n("6424"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};(function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"})(i||(i={}));var c=function(e){function t(){var t=e.call(this)||this;return t.dispatched=!1,t.activeTouches={},t.handle=null,t.targets=[],t._register(s["h"](document,"touchstart",function(e){return t.onTouchStart(e)})),t._register(s["h"](document,"touchend",function(e){return t.onTouchEnd(e)})),t._register(s["h"](document,"touchmove",function(e){return t.onTouchMove(e)})),t}return u(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e))},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,o=e.targetTouches.length;n<o;n++){var r=e.targetTouches.item(n);this.activeTouches[r.identifier]={id:r.identifier,initialTarget:r.target,initialTimeStamp:t,initialPageX:r.pageX,initialPageY:r.pageY,rollingTimestamps:[t],rollingPageX:[r.pageX],rollingPageY:[r.pageY]};var s=this.newGestureEvent(i.Start,r.target);s.pageX=r.pageX,s.pageY=r.pageY,this.dispatchEvent(s)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.onTouchEnd=function(e){for(var n=Date.now(),r=Object.keys(this.activeTouches).length,s=function(s,u){var l=e.changedTouches.item(s);if(!a.activeTouches.hasOwnProperty(String(l.identifier)))return console.warn("move of an UNKNOWN touch",l),"continue";var c=a.activeTouches[l.identifier],d=Date.now()-c.initialTimeStamp;if(d<t.HOLD_DELAY&&Math.abs(c.initialPageX-o["s"](c.rollingPageX))<30&&Math.abs(c.initialPageY-o["s"](c.rollingPageY))<30){var h=a.newGestureEvent(i.Tap,c.initialTarget);h.pageX=o["s"](c.rollingPageX),h.pageY=o["s"](c.rollingPageY),a.dispatchEvent(h)}else if(d>=t.HOLD_DELAY&&Math.abs(c.initialPageX-o["s"](c.rollingPageX))<30&&Math.abs(c.initialPageY-o["s"](c.rollingPageY))<30){h=a.newGestureEvent(i.Contextmenu,c.initialTarget);h.pageX=o["s"](c.rollingPageX),h.pageY=o["s"](c.rollingPageY),a.dispatchEvent(h)}else if(1===r){var p=o["s"](c.rollingPageX),f=o["s"](c.rollingPageY),g=o["s"](c.rollingTimestamps)-c.rollingTimestamps[0],m=p-c.rollingPageX[0],v=f-c.rollingPageY[0],_=a.targets.filter(function(e){return c.initialTarget instanceof Node&&e.contains(c.initialTarget)});a.inertia(_,n,Math.abs(m)/g,m>0?1:-1,p,Math.abs(v)/g,v>0?1:-1,f)}a.dispatchEvent(a.newGestureEvent(i.End,c.initialTarget)),delete a.activeTouches[l.identifier]},a=this,u=0,l=e.changedTouches.length;u<l;u++)s(u,l);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n},t.prototype.dispatchEvent=function(e){var t=this;this.targets.forEach(function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)})},t.prototype.inertia=function(e,n,o,r,a,u,l,c){var d=this;this.handle=s["P"](function(){var s=Date.now(),h=s-n,p=0,f=0,g=!0;o+=t.SCROLL_FRICTION*h,u+=t.SCROLL_FRICTION*h,o>0&&(g=!1,p=r*o*h),u>0&&(g=!1,f=l*u*h);var m=d.newGestureEvent(i.Change);m.translationX=p,m.translationY=f,e.forEach(function(e){return e.dispatchEvent(m)}),g||d.inertia(e,s,o,r,a+p,u,l,c+f)})},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n<r;n++){var s=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(s.identifier))){var a=this.activeTouches[s.identifier],u=this.newGestureEvent(i.Change,a.initialTarget);u.translationX=s.pageX-o["s"](a.rollingPageX),u.translationY=s.pageY-o["s"](a.rollingPageY),u.pageX=s.pageX,u.pageY=s.pageY,this.dispatchEvent(u),a.rollingPageX.length>3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(s.pageX),a.rollingPageY.push(s.pageY),a.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",s)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,l([a["a"]],t,"isTouchDevice",null),t}(r["a"])},a65a:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"c",function(){return r}),n.d(t,"b",function(){return s});var i=n("3742"),o=function(){function e(e){this.value=e}return e.prototype.equals=function(e){return this.value===e.value},e.prototype.contains=function(t){return this.equals(t)||Object(i["J"])(t.value,this.value+e.sep)},e.prototype.intersects=function(e){return this.contains(e)||e.contains(this)},e.sep=".",e.Empty=new e(""),e.QuickFix=new e("quickfix"),e.Refactor=new e("refactor"),e.Source=new e("source"),e.SourceOrganizeImports=new e("source.organizeImports"),e.SourceFixAll=new e("source.fixAll"),e}();function r(e,t){return!(e.kind&&!e.kind.intersects(t))&&!(o.Source.contains(t)&&!e.includeSourceActions)}function s(e,t){var n=t.kind?new o(t.kind):void 0;return!!(!e.kind||n&&e.kind.contains(n))&&(!(!e.includeSourceActions&&n&&o.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred))}},a666:function(e,t,n){"use strict";n.d(t,"g",function(){return a}),n.d(t,"f",function(){return u}),n.d(t,"e",function(){return l}),n.d(t,"h",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return f});var i=!1,o="__is_disposable_tracked__";function r(e){if(i&&e&&e!==h.None)try{e[o]=!0}catch(t){}}function s(e){if(!i)return e;var t=new Error("Potentially leaked disposable").stack;return setTimeout(function(){e[o]||console.log(t)},3e3),e}function a(e){return"function"===typeof e.dispose&&0===e.dispose.length}function u(e){return Array.isArray(e)?(e.forEach(function(e){e&&(r(e),e.dispose())}),[]):e?(r(e),e.dispose(),e):void 0}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(r),s({dispose:function(){return u(e)}})}function c(e){var t=s({dispose:function(){r(t),e()}});return t}var d=function(){function e(){this._toDispose=new Set,this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed||(r(this),this._isDisposed=!0,this.clear())},e.prototype.clear=function(){this._toDispose.forEach(function(e){return e.dispose()}),this._toDispose.clear()},e.prototype.add=function(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return r(e),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e},e}(),h=function(){function e(){this._store=new d,s(this)}return e.prototype.dispose=function(){r(this),this._store.dispose()},e.prototype._register=function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)},e.None=Object.freeze({dispose:function(){}}),e}(),p=function(){function e(){this._isDisposed=!1,s(this)}return Object.defineProperty(e.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&r(e),this._value=e)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.value=void 0},e.prototype.dispose=function(){this._isDisposed=!0,r(this),this._value&&this._value.dispose(),this._value=void 0},e}(),f=function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}()},a6d7:function(e,t,n){"use strict";n.d(t,"e",function(){return s}),n.d(t,"a",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"f",function(){return d}),n.d(t,"c",function(){return p});var i=n("303e"),o=n("aa3d"),r=function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function s(e,t){var n=Object.create(null);for(var i in t){var o=t[i];"string"===typeof o?n[i]=e.getColor(o):"function"===typeof o&&(n[i]=o(e))}return n}function a(e,t,n){function i(i){var o=s(e.getTheme(),t);"function"===typeof n?n(o):n.style(o)}return i(e.getTheme()),e.onThemeChange(i)}function u(e,t,n){return a(t,{badgeBackground:n&&n.badgeBackground||i["c"],badgeForeground:n&&n.badgeForeground||i["d"],badgeBorder:i["e"]},e)}function l(e,t,n){return a(t,{foreground:n&&n.foreground||i["T"],background:n&&n.background||i["o"],borderColor:n&&n.borderColor||i["e"],widgetShadow:n&&n.widgetShadow||i["Wb"],progressBarBackground:n&&n.progressBarBackground||i["Jb"],pickerGroupForeground:n&&n.pickerGroupForeground||i["Ib"],pickerGroupBorder:n&&n.pickerGroupBorder||i["Hb"],inputBackground:n&&n.inputBackground||i["W"],inputForeground:n&&n.inputForeground||i["Y"],inputBorder:n&&n.inputBorder||i["X"],inputValidationInfoBorder:n&&n.inputValidationInfoBorder||i["db"],inputValidationInfoBackground:n&&n.inputValidationInfoBackground||i["cb"],inputValidationInfoForeground:n&&n.inputValidationInfoForeground||i["eb"],inputValidationWarningBorder:n&&n.inputValidationWarningBorder||i["gb"],inputValidationWarningBackground:n&&n.inputValidationWarningBackground||i["fb"],inputValidationWarningForeground:n&&n.inputValidationWarningForeground||i["hb"],inputValidationErrorBorder:n&&n.inputValidationErrorBorder||i["ab"],inputValidationErrorBackground:n&&n.inputValidationErrorBackground||i["Z"],inputValidationErrorForeground:n&&n.inputValidationErrorForeground||i["bb"],listFocusBackground:n&&n.listFocusBackground||i["ob"],listFocusForeground:n&&n.listFocusForeground||i["pb"],listActiveSelectionBackground:n&&n.listActiveSelectionBackground||Object(i["f"])(i["ib"],.1),listActiveSelectionForeground:n&&n.listActiveSelectionForeground||i["jb"],listFocusAndSelectionBackground:n&&n.listFocusAndSelectionBackground||i["ib"],listFocusAndSelectionForeground:n&&n.listFocusAndSelectionForeground||i["jb"],listInactiveSelectionBackground:n&&n.listInactiveSelectionBackground||i["ub"],listInactiveSelectionForeground:n&&n.listInactiveSelectionForeground||i["vb"],listInactiveFocusBackground:n&&n.listInactiveFocusBackground||i["tb"],listHoverBackground:n&&n.listHoverBackground||i["rb"],listHoverForeground:n&&n.listHoverForeground||i["sb"],listDropBackground:n&&n.listDropBackground||i["kb"],listFocusOutline:n&&n.listFocusOutline||i["b"],listSelectionOutline:n&&n.listSelectionOutline||i["b"],listHoverOutline:n&&n.listHoverOutline||i["b"]},e)}function c(e,t,n){return a(t,Object(o["g"])(n||Object.create(null),d,!1),e)}var d={listFocusBackground:i["ob"],listFocusForeground:i["pb"],listActiveSelectionBackground:Object(i["f"])(i["ib"],.1),listActiveSelectionForeground:i["jb"],listFocusAndSelectionBackground:i["ib"],listFocusAndSelectionForeground:i["jb"],listInactiveSelectionBackground:i["ub"],listInactiveSelectionForeground:i["vb"],listInactiveFocusBackground:i["tb"],listHoverBackground:i["rb"],listHoverForeground:i["sb"],listDropBackground:i["kb"],listFocusOutline:i["b"],listSelectionOutline:i["b"],listHoverOutline:i["b"],listFilterWidgetBackground:i["lb"],listFilterWidgetOutline:i["nb"],listFilterWidgetNoMatchesOutline:i["mb"],listMatchesShadow:i["Wb"],treeIndentGuidesStroke:i["Vb"]},h={shadowColor:i["Wb"],borderColor:i["xb"],foregroundColor:i["yb"],backgroundColor:i["wb"],selectionForegroundColor:i["Bb"],selectionBackgroundColor:i["zb"],selectionBorderColor:i["Ab"],separatorColor:i["Cb"]};function p(e,t,n){return a(t,r({},h,n),e)}},a79b:function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",function(){return o});n("33f9");var i=monaco.Emitter,o=function(){function e(e,t,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),r={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},s={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0},a=new o("json",r,s);function u(){return{jsonDefaults:a}}function l(){return n.e("chunk-2d0c1ed0").then(n.bind(null,"47b9"))}monaco.languages.json=u(),monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){l().then(function(e){return e.setupMode(a)})})},a87d:function(e,t,n){},a8d0:function(e,t,n){"use strict";n.d(t,"f",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"e",function(){return l});var i=n("3742"),o=function(){function e(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i}return e}(),r=function(){function e(e,t){this.tabSize=e,this.data=t}return e}(),s=function(){function e(e,t,n,i,o){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.tokens=o}return e}(),a=function(){function e(t,n,i,o,r,s,a,u,l){this.minColumn=t,this.maxColumn=n,this.content=i,this.continuesWithWrappedLine=o,this.isBasicASCII=e.isBasicASCII(i,s),this.containsRTL=e.containsRTL(i,this.isBasicASCII,r),this.tokens=a,this.inlineDecorations=u,this.tabSize=l}return e.isBasicASCII=function(e,t){return!t||i["t"](e)},e.containsRTL=function(e,t,n){return!(t||!n)&&i["h"](e)},e}(),u=function(){function e(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}return e}(),l=function(){function e(e,t){this.range=e,this.options=t}return e}()},a96a:function(e,t,n){},aa3d:function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"d",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"g",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return h});var i=n("ef8e");function o(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){e[n]&&"object"===typeof e[n]?t[n]=o(e[n]):t[n]=e[n]}),t}function r(e){if(!e||"object"!==typeof e)return e;var t=[e];while(t.length>0){var n=t.shift();for(var i in Object.freeze(n),n)if(s.call(n,i)){var o=n[i];"object"!==typeof o||Object.isFrozen(o)||t.push(o)}}return e}var s=Object.prototype.hasOwnProperty;function a(e,t){return u(e,t,new Set)}function u(e,t,n){if(Object(i["k"])(e))return e;var o=t(e);if("undefined"!==typeof o)return o;if(Object(i["c"])(e)){for(var r=[],a=0,l=e;a<l.length;a++){var c=l[a];r.push(u(c,t,n))}return r}if(Object(i["h"])(e)){if(n.has(e))throw new Error("Cannot clone recursive data-structure");n.add(e);var d={};for(var h in e)s.call(e,h)&&(d[h]=u(e[h],t,n));return n.delete(e),d}return e}function l(e,t,n){return void 0===n&&(n=!0),Object(i["h"])(e)?(Object(i["h"])(t)&&Object.keys(t).forEach(function(o){o in e?n&&(Object(i["h"])(e[o])&&Object(i["h"])(t[o])?l(e[o],t[o],n):e[o]=t[o]):e[o]=t[o]}),e):t}function c(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}function d(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1}else{var o=[];for(i in e)o.push(i);o.sort();var r=[];for(i in t)r.push(i);if(r.sort(),!d(o,r))return!1;for(n=0;n<o.length;n++)if(!d(e[o[n]],t[o[n]]))return!1}return!0}function h(e,t,n){var i=t(e);return"undefined"===typeof i?n:i}},aa43:function(e,t,n){"use strict";n.d(t,"b",function(){return b}),n.d(t,"a",function(){return y});var i=n("dff7"),o=n("fdcc"),r=n("a666"),s=n("5717"),a=n("0a0f"),u=n("4fc3"),l=n("fbba"),c=n("03e8"),d=n("7121"),h=n("6a89"),p=n("7061"),f=n("b0cd"),g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){return function(n,i){t(n,i,e)}},v=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},_=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},b=new u["d"]("referenceSearchVisible",!1),y=function(){function e(e,t,n,i,o,s,a,u){this._defaultTreeKeyboardSupport=e,this._editorService=i,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=u,this._disposables=new r["b"],this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._editor=t,this._referenceSearchVisible=b.bindTo(n)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._referenceSearchVisible.reset(),Object(r["f"])(this._disposables),this._widget&&(Object(r["f"])(this._widget),this._widget=void 0),this._model&&(Object(r["f"])(this._model),this._model=void 0)},e.prototype.toggleWidget=function(e,t,n){var o,r=this;if(this._widget&&(o=this._widget.position),this.closeWidget(),!o||!e.containsPosition(o)){this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(function(){r.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(function(){r._ignoreModelChangeEvent||r.closeWidget()}));var s="peekViewLayout",a=d["a"].fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(d["b"],this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(i["a"]("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(function(){t.cancel(),r._widget&&(r._storageService.store(s,JSON.stringify(r._widget.layoutData),0),r._widget=void 0),r.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(function(e){var t=e.element,i=e.kind;switch(i){case"open":if("editor"===e.source&&r._configurationService.getValue("editor.stablePeek"))break;case"side":t&&r.openReference(t,"side"===i);break;case"goto":t&&(n.onGoto?n.onGoto(t):r._gotoReference(t));break}}));var u=++this._requestIdPool;t.then(function(t){if(u===r._requestIdPool&&r._widget)return r._model&&r._model.dispose(),r._model=t,r._widget.setModel(r._model).then(function(){if(r._widget&&r._model&&r._editor.hasModel()){r._widget.setMetaTitle(n.getMetaTitle(r._model));var t=r._editor.getModel().uri,i=new p["a"](e.startLineNumber,e.startColumn),o=r._model.nearestReference(t,i);if(o)return r._widget.setSelection(o)}})},function(e){r._notificationService.error(e)})}},e.prototype.goToNextOrPreviousReference=function(e){return v(this,void 0,void 0,function(){var t,n,i,o;return _(this,function(r){switch(r.label){case 0:return this._editor.hasModel()&&this._model&&this._widget?(t=this._widget.position,t?(n=this._model.nearestReference(this._editor.getModel().uri,t),n?(i=this._model.nextOrPreviousReference(n,e),o=this._editor.hasTextFocus(),[4,this._widget.setSelection(i)]):[2]):[2]):[2];case 1:return r.sent(),[4,this._gotoReference(i)];case 2:return r.sent(),o&&this._editor.focus(),[2]}})})},e.prototype.closeWidget=function(){this._widget&&(Object(r["f"])(this._widget),this._widget=void 0),this._referenceSearchVisible.reset(),this._disposables.clear(),this._model&&(Object(r["f"])(this._model),this._model=void 0),this._editor.focus(),this._requestIdPool+=1},e.prototype._gotoReference=function(e){var t=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var n=h["a"].lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n}},this._editor).then(function(e){t._ignoreModelChangeEvent=!1,e&&e===t._editor?t._widget&&(t._widget.show(n),t._widget.focus()):t.closeWidget()},function(e){t._ignoreModelChangeEvent=!1,Object(o["e"])(e)})},e.prototype.openReference=function(e,t){t||this.closeWidget();var n=e.uri,i=e.range;this._editorService.openCodeEditor({resource:n,options:{selection:i}},this._editor,t)},e.ID="editor.contrib.referencesController",e=g([m(2,u["c"]),m(3,s["a"]),m(4,f["a"]),m(5,a["a"]),m(6,c["a"]),m(7,l["a"])],e),e}()},abf2:function(e,t,n){},aee8:function(e,t,n){"use strict";n.r(t);n("b805");var i=n("dff7"),o=n("fe45"),r=n("a666"),s=n("b2cc"),a=n("6a89"),u=n("c101"),l=n("5818"),c=n("11f7"),d=n("2504"),h=n("ceb8"),p=n("78bc"),f=n("7061"),g=n("b57f"),m=n("b707"),v=n("6483"),_=n("92a6"),b=n("308f"),y=function(){function e(e,t,n){this.presentationIndex=n,this._onColorFlushed=new b["a"],this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new b["a"],this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new b["a"],this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}return Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},e.prototype.guessColorPresentation=function(e,t){for(var n=0;n<this.colorPresentations.length;n++)if(t===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break}},e.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},e}(),w=(n("10f4"),n("0f70")),C=n("00a3"),S=n("1b7d"),L=n("303e"),O=n("b7d0"),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=c["a"],D=function(e){function t(t,n,i){var o=e.call(this)||this;o.model=n,o.domNode=N(".colorpicker-header"),c["m"](t,o.domNode),o.pickedColorNode=c["m"](o.domNode,N(".picked-color"));var r=c["m"](o.domNode,N(".original-color"));return r.style.backgroundColor=h["a"].Format.CSS.format(o.model.originalColor),o.backgroundColor=i.getTheme().getColor(L["A"])||h["a"].white,o._register(Object(O["f"])(function(e,t){o.backgroundColor=e.getColor(L["A"])||h["a"].white})),o._register(c["h"](o.pickedColorNode,c["d"].CLICK,function(){return o.model.selectNextColorPresentation()})),o._register(c["h"](r,c["d"].CLICK,function(){o.model.color=o.model.originalColor,o.model.flushColor()})),o._register(n.onDidChangeColor(o.onDidChangeColor,o)),o._register(n.onDidChangePresentation(o.onDidChangePresentation,o)),o.pickedColorNode.style.backgroundColor=h["a"].Format.CSS.format(n.color),c["R"](o.pickedColorNode,"light",n.color.rgba.a<.5?o.backgroundColor.isLighter():n.color.isLighter()),o}return x(t,e),t.prototype.onDidChangeColor=function(e){this.pickedColorNode.style.backgroundColor=h["a"].Format.CSS.format(e),c["R"](this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()},t.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},t}(r["a"]),k=function(e){function t(t,n,i){var o=e.call(this)||this;return o.model=n,o.pixelRatio=i,o.domNode=N(".colorpicker-body"),c["m"](t,o.domNode),o.saturationBox=new I(o.domNode,o.model,o.pixelRatio),o._register(o.saturationBox),o._register(o.saturationBox.onDidChange(o.onDidSaturationValueChange,o)),o._register(o.saturationBox.onColorFlushed(o.flushColor,o)),o.opacityStrip=new M(o.domNode,o.model),o._register(o.opacityStrip),o._register(o.opacityStrip.onDidChange(o.onDidOpacityChange,o)),o._register(o.opacityStrip.onColorFlushed(o.flushColor,o)),o.hueStrip=new T(o.domNode,o.model),o._register(o.hueStrip),o._register(o.hueStrip.onDidChange(o.onDidHueChange,o)),o._register(o.hueStrip.onColorFlushed(o.flushColor,o)),o}return x(t,e),t.prototype.flushColor=function(){this.model.flushColor()},t.prototype.onDidSaturationValueChange=function(e){var t=e.s,n=e.v,i=this.model.color.hsva;this.model.color=new h["a"](new h["b"](i.h,t,n,i.a))},t.prototype.onDidOpacityChange=function(e){var t=this.model.color.hsva;this.model.color=new h["a"](new h["b"](t.h,t.s,t.v,e))},t.prototype.onDidHueChange=function(e){var t=this.model.color.hsva,n=360*(1-e);this.model.color=new h["a"](new h["b"](360===n?0:n,t.s,t.v,t.a))},t.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},t}(r["a"]),I=function(e){function t(t,n,i){var o=e.call(this)||this;return o.model=n,o.pixelRatio=i,o._onDidChange=new b["a"],o.onDidChange=o._onDidChange.event,o._onColorFlushed=new b["a"],o.onColorFlushed=o._onColorFlushed.event,o.domNode=N(".saturation-wrap"),c["m"](t,o.domNode),o.canvas=document.createElement("canvas"),o.canvas.className="saturation-box",c["m"](o.domNode,o.canvas),o.selection=N(".saturation-selection"),c["m"](o.domNode,o.selection),o.layout(),o._register(c["h"](o.domNode,c["d"].MOUSE_DOWN,function(e){return o.onMouseDown(e)})),o._register(o.model.onDidChangeColor(o.onDidChangeColor,o)),o.monitor=null,o}return x(t,e),t.prototype.onMouseDown=function(e){var t=this;this.monitor=this._register(new C["a"]);var n=c["x"](this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(C["b"],function(e){return t.onDidChangePosition(e.posx-n.left,e.posy-n.top)},function(){return null});var i=c["h"](document,c["d"].MOUSE_UP,function(){t._onColorFlushed.fire(),i.dispose(),t.monitor&&(t.monitor.stopMonitoring(!0),t.monitor=null)},!0)},t.prototype.onDidChangePosition=function(e,t){var n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})},t.prototype.layout=function(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var e=this.model.color.hsva;this.paintSelection(e.s,e.v)},t.prototype.paint=function(){var e=this.model.color.hsva,t=new h["a"](new h["b"](e.h,1,1,1)),n=this.canvas.getContext("2d"),i=n.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");var o=n.createLinearGradient(0,0,0,this.canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=h["a"].Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=o,n.fill()},t.prototype.paintSelection=function(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"},t.prototype.onDidChangeColor=function(){this.monitor&&this.monitor.isMonitoring()||this.paint()},t}(r["a"]),E=function(e){function t(t,n){var i=e.call(this)||this;return i.model=n,i._onDidChange=new b["a"],i.onDidChange=i._onDidChange.event,i._onColorFlushed=new b["a"],i.onColorFlushed=i._onColorFlushed.event,i.domNode=c["m"](t,N(".strip")),i.overlay=c["m"](i.domNode,N(".overlay")),i.slider=c["m"](i.domNode,N(".slider")),i.slider.style.top="0px",i._register(c["h"](i.domNode,c["d"].MOUSE_DOWN,function(e){return i.onMouseDown(e)})),i.layout(),i}return x(t,e),t.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e)},t.prototype.onMouseDown=function(e){var t=this,n=this._register(new C["a"]),i=c["x"](this.domNode);c["f"](this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),n.startMonitoring(C["b"],function(e){return t.onDidChangeTop(e.posy-i.top)},function(){return null});var o=c["h"](document,c["d"].MOUSE_UP,function(){t._onColorFlushed.fire(),o.dispose(),n.stopMonitoring(!0),c["I"](t.domNode,"grabbing")},!0)},t.prototype.onDidChangeTop=function(e){var t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)},t.prototype.updateSliderPosition=function(e){this.slider.style.top=(1-e)*this.height+"px"},t}(r["a"]),M=function(e){function t(t,n){var i=e.call(this,t,n)||this;return c["f"](i.domNode,"opacity-strip"),i._register(n.onDidChangeColor(i.onDidChangeColor,i)),i.onDidChangeColor(i.model.color),i}return x(t,e),t.prototype.onDidChangeColor=function(e){var t=e.rgba,n=t.r,i=t.g,o=t.b,r=new h["a"](new h["c"](n,i,o,1)),s=new h["a"](new h["c"](n,i,o,0));this.overlay.style.background="linear-gradient(to bottom, "+r+" 0%, "+s+" 100%)"},t.prototype.getValue=function(e){return e.hsva.a},t}(E),T=function(e){function t(t,n){var i=e.call(this,t,n)||this;return c["f"](i.domNode,"hue-strip"),i}return x(t,e),t.prototype.getValue=function(e){return 1-e.hsva.h/360},t}(E),P=function(e){function t(t,n,i,o){var r=e.call(this)||this;r.model=n,r.pixelRatio=i,r._register(Object(w["o"])(function(){return r.layout()}));var s=N(".colorpicker-widget");t.appendChild(s);var a=new D(s,r.model,o);return r.body=new k(s,r.model,r.pixelRatio),r._register(a),r._register(r.body),r}return x(t,e),t.prototype.layout=function(){this.body.layout()},t}(S["a"]),R=n("e8e3"),A=n("fdcc");function F(e,t,n){var i=m["n"].ordered(e),o=i.map(function(i){return Promise.resolve(i.provideHover(e,t,n)).then(function(e){return e&&j(e)?e:void 0},function(e){Object(A["f"])(e)})});return Promise.all(o).then(R["d"])}function j(e){var t="undefined"!==typeof e.range,n="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&n}Object(s["e"])("_executeHoverProvider",function(e,t){return F(e,t,d["a"].None)});var W=n("5fe7"),V=function(){function e(e,t,n,i,o){var r=this;this._computer=e,this._state=0,this._hoverTime=o,this._firstWaitScheduler=new W["d"](function(){return r._triggerAsyncComputation()},0),this._secondWaitScheduler=new W["d"](function(){return r._triggerSyncComputation()},0),this._loadingMessageScheduler=new W["d"](function(){return r._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}return e.prototype.setHoverTime=function(e){this._hoverTime=e},e.prototype._firstWaitTime=function(){return this._hoverTime/2},e.prototype._secondWaitTime=function(){return this._hoverTime/2},e.prototype._loadingMessageTime=function(){return 3*this._hoverTime},e.prototype._triggerAsyncComputation=function(){var e=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(W["f"])(function(t){return e._computer.computeAsync(t)}),this._asyncComputationPromise.then(function(t){e._asyncComputationPromiseDone=!0,e._withAsyncResult(t)},function(t){return e._onError(t)})):this._asyncComputationPromiseDone=!0},e.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},e.prototype._showLoadingMessage=function(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())},e.prototype._withAsyncResult=function(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))},e.prototype._onComplete=function(e){this._completeCallback&&this._completeCallback(e)},e.prototype._onError=function(e){this._errorCallback?this._errorCallback(e):Object(A["e"])(e)},e.prototype._onProgress=function(e){this._progressCallback&&this._progressCallback(e)},e.prototype.start=function(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},e.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0},e}(),B=n("1898"),H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),z=function(e){function t(t,n){var i=e.call(this)||this;return i.allowEditorOverflow=!0,i._id=t,i._editor=n,i._isVisible=!1,i._stoleFocus=!1,i._containerDomNode=document.createElement("div"),i._containerDomNode.className="monaco-editor-hover hidden",i._containerDomNode.tabIndex=0,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover-content",i.scrollbar=new B["a"](i._domNode,{}),i._register(i.scrollbar),i._containerDomNode.appendChild(i.scrollbar.getDomNode()),i.onkeydown(i._containerDomNode,function(e){e.equals(9)&&i.hide()}),i._register(i._editor.onDidChangeConfiguration(function(e){e.fontInfo&&i.updateFont()})),i._editor.onDidLayoutChange(function(e){return i.layout()}),i.layout(),i._editor.addContentWidget(i),i._showAtPosition=null,i._showAtRange=null,i._stoleFocus=!1,i}return H(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(c["R"])(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._containerDomNode},t.prototype.showAt=function(e,t,n){this._showAtPosition=e,this._showAtRange=t,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=n,n&&this._containerDomNode.focus()},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())},t.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));t.forEach(function(t){return e._editor.applyFontInfo(t)})},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},t.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},t.prototype.layout=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getConfiguration().fontInfo,n=t.fontSize,i=t.lineHeight;this._domNode.style.fontSize=n+"px",this._domNode.style.lineHeight=i+"px",this._domNode.style.maxHeight=e+"px",this._domNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"},t}(S["a"]),U=function(e){function t(t,n){var i=e.call(this)||this;return i._id=t,i._editor=n,i._isVisible=!1,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover hidden",i._domNode.setAttribute("aria-hidden","true"),i._domNode.setAttribute("role","presentation"),i._showAtLineNumber=-1,i._register(i._editor.onDidChangeConfiguration(function(e){e.fontInfo&&i.updateFont()})),i._editor.addOverlayWidget(i),i}return H(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(c["R"])(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._domNode},t.prototype.showAt=function(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);var t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),o=this._editor.getConfiguration().lineHeight,r=this._domNode.clientHeight,s=n-i-(r-o)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(s),0)+"px"},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.getPosition=function(){return null},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),n=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));t.concat(n).forEach(function(t){return e._editor.applyFontInfo(t)})},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()},t}(S["a"]),K=n("dea0"),q=n("b400"),G=n("82c9"),Z=n("5bd7"),Y=n("958f"),X=n("8495"),$=n("0b54"),Q=n("a65a"),J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ee=c["a"],te=function(){function e(e,t,n){this.range=e,this.color=t,this.provider=n}return e}(),ne=function(){function e(e,t){this.range=e,this.marker=t}return e}(),ie=function(){function e(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}return e.prototype.setRange=function(e){this._range=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeAsync=function(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var t=this._editor.getModel();return m["n"].has(t)?F(t,new f["a"](this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])},e.prototype.computeSync=function(){var e=this;if(!this._editor.hasModel()||!this._range)return[];var t=this._editor.getModel(),n=this._range.startLineNumber;if(n>this._editor.getModel().getLineCount())return[];var i=_["ColorDetector"].get(this._editor),o=t.getLineMaxColumn(n),r=this._editor.getLineDecorations(n),s=!1,u=this._range,l=r.map(function(r){var l=r.range.startLineNumber===n?r.range.startColumn:1,c=r.range.endLineNumber===n?r.range.endColumn:o;if(l>u.startColumn||u.endColumn>c)return null;var d=new a["a"](u.startLineNumber,l,u.startLineNumber,c),h=e._markerDecorationsService.getMarker(t,r);if(h)return new ne(d,h);var f=i.getColorData(r.range.getStartPosition());if(!s&&f){s=!0;var g=f.colorInfo,m=g.color,v=g.range;return new te(v,m,f.provider)}if(Object(p["b"])(r.options.hoverMessage))return null;var _=r.options.hoverMessage?Object(R["b"])(r.options.hoverMessage):[];return{contents:_,range:d}});return Object(R["d"])(l)},e.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort(function(e,t){return e instanceof te?-1:t instanceof te?1:0})):this._result.concat(e)},e.prototype.getResult=function(){return this._result.slice(0)},e.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},e.prototype._getLoadingMessage=function(){return{range:this._range,contents:[(new p["a"]).appendText(i["a"]("modesContentHover.loading","Loading..."))]}},e}(),oe=function(e){function t(n,i,o,s,a,u){void 0===u&&(u=Z["b"]);var l=e.call(this,t.ID,n)||this;return l._themeService=o,l._keybindingService=s,l._modeService=a,l._openerService=u,l.renderDisposable=l._register(new r["d"]),l._messages=[],l._lastRange=null,l._computer=new ie(l._editor,i),l._highlightDecorations=[],l._isChangingDecorations=!1,l._shouldFocus=!1,l._colorPicker=null,l._hoverOperation=new V(l._computer,function(e){return l._withResult(e,!0)},null,function(e){return l._withResult(e,!1)},l._editor.getConfiguration().contribInfo.hover.delay),l._register(c["k"](l.getDomNode(),c["d"].FOCUS,function(){l._colorPicker&&c["f"](l.getDomNode(),"colorpicker-hover")})),l._register(c["k"](l.getDomNode(),c["d"].BLUR,function(){c["I"](l.getDomNode(),"colorpicker-hover")})),l._register(n.onDidChangeConfiguration(function(e){l._hoverOperation.setHoverTime(l._editor.getConfiguration().contribInfo.hover.delay)})),l}return J(t,e),t.prototype.dispose=function(){this._hoverOperation.cancel(),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},t.prototype.startShowingAt=function(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition&&this._showAtPosition.lineNumber===e.startLineNumber){for(var i=[],o=0,r=this._messages.length;o<r;o++){var s=this._messages[o],a=s.range;a&&a.startColumn<=e.startColumn&&a.endColumn>=e.endColumn&&i.push(s)}if(i.length>0){if(re(i,this._messages))return;this._renderMessages(e,i)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}},t.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),e.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},t.prototype.isColorPickerVisible=function(){return!!this._colorPicker},t.prototype._withResult=function(e,t){this._messages=e,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},t.prototype._renderMessages=function(e,n){var i=this;this.renderDisposable.dispose(),this._colorPicker=null;var o=Number.MAX_VALUE,s=n[0].range?a["a"].lift(n[0].range):null,u=document.createDocumentFragment(),l=!0,g=!1,m=new r["b"],_=[];if(n.forEach(function(e){if(e.range)if(o=Math.min(o,e.range.startColumn),s=s?a["a"].plusRange(s,e.range):a["a"].lift(e.range),e instanceof te){g=!0;var t=e.color,n=t.red,f=t.green,b=t.blue,w=t.alpha,C=new h["c"](255*n,255*f,255*b,w),S=new h["a"](C);if(!i._editor.hasModel())return;var L=i._editor.getModel(),O=new a["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),x={range:e.range,color:e.color},N=new y(S,[],0),D=new P(u,N,i._editor.getConfiguration().pixelRatio,i._themeService);Object(v["a"])(L,x,e.provider,d["a"].None).then(function(t){if(N.colorPresentations=t||[],i._editor.hasModel()){var n=i._editor.getModel().getValueInRange(e.range);N.guessColorPresentation(S,n);var o=function(){var e,t;N.presentation.textEdit?(e=[N.presentation.textEdit],t=new a["a"](N.presentation.textEdit.range.startLineNumber,N.presentation.textEdit.range.startColumn,N.presentation.textEdit.range.endLineNumber,N.presentation.textEdit.range.endColumn),t=t.setEndPosition(t.endLineNumber,t.startColumn+N.presentation.textEdit.text.length)):(e=[{identifier:null,range:O,text:N.presentation.label,forceMoveMarkers:!1}],t=O.setEndPosition(O.endLineNumber,O.startColumn+N.presentation.label.length)),i._editor.pushUndoStop(),i._editor.executeEdits("colorpicker",e),N.presentation.additionalTextEdits&&(e=N.presentation.additionalTextEdits.slice(),i._editor.executeEdits("colorpicker",e),i.hide()),i._editor.pushUndoStop(),O=t},s=function(t){return Object(v["a"])(L,{range:O,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},e.provider,d["a"].None).then(function(e){N.colorPresentations=e||[]})},l=N.onColorFlushed(function(e){s(e).then(o)}),c=N.onDidChangeColor(s);i._colorPicker=D,i.showAt(O.getStartPosition(),O,i._shouldFocus),i.updateContents(u),i._colorPicker.layout(),i.renderDisposable.value=Object(r["e"])(l,c,D,m)}})}else e instanceof ne?(_.push(e),l=!1):e.contents.filter(function(e){return!Object(p["b"])(e)}).forEach(function(e){var t=ee("div.hover-row.markdown-hover"),n=c["m"](t,ee("div.hover-contents")),o=m.add(new K["a"](i._editor,i._modeService,i._openerService));m.add(o.onDidRenderCodeBlock(function(){n.className="hover-contents code-hover-contents",i.onContentsChange()}));var r=m.add(o.render(e));n.appendChild(r.element),u.appendChild(t),l=!1})}),_.length){_.forEach(function(e){return u.appendChild(i.renderMarkerHover(e))});var b=1===_.length?_[0]:_.sort(function(e,t){return q["c"].compare(e.marker.severity,t.marker.severity)})[0];u.appendChild(this.renderMarkerStatusbar(b))}g||l||(this.showAt(new f["a"](e.startLineNumber,o),s,this._shouldFocus),this.updateContents(u)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,s?[{range:s,options:t._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},t.prototype.renderMarkerHover=function(e){var t=this,n=ee("div.hover-row"),i=c["m"](n,ee("div.marker.hover-contents")),o=e.marker,r=o.source,s=o.message,a=o.code,u=o.relatedInformation;this._editor.applyFontInfo(i);var l=c["m"](i,ee("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=s,r||a){var d=c["m"](i,ee("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=r&&a?r+"("+a+")":r||"("+a+")"}if(Object(R["n"])(u))for(var h=function(e,n,o,r){var s=c["m"](i,ee("div"));s.style.marginTop="8px";var a=c["m"](s,ee("a"));a.innerText=Object(G["b"])(n)+"("+o+", "+r+"): ",a.style.cursor="pointer",a.onclick=function(e){e.stopPropagation(),e.preventDefault(),t._openerService&&t._openerService.open(n.with({fragment:o+","+r})).catch(A["e"])};var u=c["m"](s,ee("span"));u.innerText=e,p._editor.applyFontInfo(u)},p=this,f=0,g=u;f<g.length;f++){var m=g[f],v=m.message,_=m.resource,b=m.startLineNumber,y=m.startColumn;h(v,_,b,y)}return n},t.prototype.renderMarkerStatusbar=function(e){var t=this,n=ee("div.hover-row.status-bar"),o=new r["b"],s=c["m"](n,ee("div.actions"));e.marker.severity!==q["c"].Error&&e.marker.severity!==q["c"].Warning&&e.marker.severity!==q["c"].Info||o.add(this.renderAction(s,{label:i["a"]("peek problem","Peek Problem"),commandId:Y["NextMarkerAction"].ID,run:function(){t.hide(),Y["MarkerController"].get(t._editor).show(e.marker),t._editor.focus()}}));var a=c["m"](s,ee("div"));a.style.opacity="0",a.style.transition="opacity 0.2s",setTimeout(function(){return a.style.opacity="1"},200),a.textContent=i["a"]("checkingForQuickFixes","Checking for quick fixes..."),o.add(Object(r["h"])(function(){return a.remove()}));var u=this.getCodeActions(e.marker);return o.add(Object(r["h"])(function(){return u.cancel()})),u.then(function(e){if(a.style.transition="",a.style.opacity="1",!e.actions.length)return e.dispose(),void(a.textContent=i["a"]("noQuickFixes","No quick fixes available"));a.remove();var n=!1;o.add(Object(r["h"])(function(){n||e.dispose()})),o.add(t.renderAction(s,{label:i["a"]("quick fixes","Quick Fix..."),commandId:$["e"].Id,run:function(i){n=!0;var o=$["f"].get(t._editor),r=c["x"](i);o.showCodeActions(e,{x:r.left+6,y:r.top+r.height+6})}}))}),this.renderDisposable.value=o,n},t.prototype.getCodeActions=function(e){var t=this;return Object(W["f"])(function(n){return Object(X["a"])(t._editor.getModel(),new a["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),{type:"manual",filter:{kind:Q["a"].QuickFix}},n)})},t.prototype.renderAction=function(e,t){var n=c["m"](e,ee("div.action-container")),i=c["m"](n,ee("a.action"));t.iconClass&&c["m"](i,ee("span.icon."+t.iconClass));var o=c["m"](i,ee("span"));o.textContent=t.label;var r=this._keybindingService.lookupKeybinding(t.commandId);return r&&(o.title=t.label+" ("+r.getLabel()+")"),c["h"](n,c["d"].CLICK,function(e){e.stopPropagation(),e.preventDefault(),t.run(n)})},t.ID="editor.contrib.modesContentHoverWidget",t._DECORATION_OPTIONS=g["a"].register({className:"hoverHighlight"}),t}(z);function re(e,t){if(!e&&t||e&&!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(i instanceof ne&&o instanceof ne)return q["a"].makeKey(i.marker)===q["a"].makeKey(o.marker);if(i instanceof te||o instanceof te)return!1;if(i instanceof ne||o instanceof ne)return!1;if(!Object(p["c"])(i.contents,o.contents))return!1}return!0}var se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ae=function(){function e(e){this._editor=e,this._lineNumber=-1,this._result=[]}return e.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeSync=function(){var e=function(e){return{value:e}},t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.options.glyphMarginClassName){var s=r.options.glyphMarginHoverMessage;s&&!Object(p["b"])(s)&&n.push.apply(n,Object(R["b"])(s).map(e))}}return n},e.prototype.onResult=function(e,t){this._result=this._result.concat(e)},e.prototype.getResult=function(){return this._result},e.prototype.getResultWithLoadingMessage=function(){return this.getResult()},e}(),ue=function(e){function t(n,i,o){void 0===o&&(o=Z["b"]);var s=e.call(this,t.ID,n)||this;return s._renderDisposeables=s._register(new r["b"]),s._messages=[],s._lastLineNumber=-1,s._markdownRenderer=s._register(new K["a"](s._editor,i,o)),s._computer=new ae(s._editor),s._hoverOperation=new V(s._computer,function(e){return s._withResult(e)},void 0,function(e){return s._withResult(e)},300),s}return se(t,e),t.prototype.dispose=function(){this._hoverOperation.cancel(),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},t.prototype.startShowingAt=function(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))},t.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),e.prototype.hide.call(this)},t.prototype._withResult=function(e){this._messages=e,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},t.prototype._renderMessages=function(e,t){this._renderDisposeables.clear();for(var n=document.createDocumentFragment(),i=0,o=t;i<o.length;i++){var r=o[i],s=this._markdownRenderer.render(r.value);this._renderDisposeables.add(s),n.appendChild(Object(c["a"])("div.hover-row",void 0,s.element))}this.updateContents(n),this.showAt(e)},t.ID="editor.contrib.modesGlyphHoverWidget",t}(U),le=n("efdb"),ce=n("6dec");n.d(t,"ModesHoverController",function(){return fe});var de=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),he=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},pe=function(e,t){return function(n,i){t(n,i,e)}},fe=function(){function e(e,t,n,i,o,s){var a=this;this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=i,this._keybindingService=o,this._themeService=s,this._toUnhook=new r["b"],this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(e){e.contribInfo&&(a._hideWidgets(),a._unhookEvents(),a._hookEvents())})}return Object.defineProperty(e.prototype,"contentWidget",{get:function(){return this._contentWidget||this._createHoverWidgets(),this._contentWidget},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"glyphWidget",{get:function(){return this._glyphWidget||this._createHoverWidgets(),this._glyphWidget},enumerable:!0,configurable:!0}),e.get=function(t){return t.getContribution(e.ID)},e.prototype._hookEvents=function(){var e=this,t=function(){return e._hideWidgets()},n=this._editor.getConfiguration().contribInfo.hover;this._isHoverEnabled=n.enabled,this._isHoverSticky=n.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(t){return e._onEditorMouseDown(t)})),this._toUnhook.add(this._editor.onMouseUp(function(t){return e._onEditorMouseUp(t)})),this._toUnhook.add(this._editor.onMouseMove(function(t){return e._onEditorMouseMove(t)})),this._toUnhook.add(this._editor.onKeyDown(function(t){return e._onKeyDown(t)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return e._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(t)),this._toUnhook.add(this._editor.onMouseLeave(t)),this._toUnhook.add(this._editor.onDidChangeModel(t)),this._toUnhook.add(this._editor.onDidScrollChange(function(t){return e._onEditorScrollChanged(t)}))},e.prototype._unhookEvents=function(){this._toUnhook.clear()},e.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},e.prototype._onEditorScrollChanged=function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()},e.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;9!==t||e.target.detail!==oe.ID?12===t&&e.target.detail===ue.ID||(12!==t&&e.target.detail!==ue.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0},e.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},e.prototype._onEditorMouseMove=function(e){var t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())&&(!this._isHoverSticky||9!==t||e.target.detail!==oe.ID)&&(!this._isHoverSticky||12!==t||e.target.detail!==ue.ID)){if(7===t){var n=this._editor.getConfiguration().fontInfo.typicalHalfwidthCharacterWidth/2,i=e.target.detail;i&&!i.isAfterLines&&"number"===typeof i.horizontalDistanceToText&&i.horizontalDistanceToText<n&&(t=6)}6===t?(this.glyphWidget.hide(),this._isHoverEnabled&&e.target.range&&this.contentWidget.startShowingAt(e.target.range,0,!1)):2===t?(this.contentWidget.hide(),this._isHoverEnabled&&e.target.position&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets()}},e.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()},e.prototype._hideWidgets=function(){!this._glyphWidget||!this._contentWidget||this._isMouseDown&&this._hoverClicked&&this._contentWidget.isColorPickerVisible()||(this._glyphWidget.hide(),this._contentWidget.hide())},e.prototype._createHoverWidgets=function(){this._contentWidget=new oe(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget=new ue(this._editor,this._modeService,this._openerService)},e.prototype.showContentHover=function(e,t,n){this.contentWidget.startShowingAt(e,t,n)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget&&this._glyphWidget.dispose(),this._contentWidget&&this._contentWidget.dispose()},e.ID="editor.contrib.hover",e=he([pe(1,Z["a"]),pe(2,l["a"]),pe(3,le["a"]),pe(4,ce["a"]),pe(5,O["c"])],e),e}(),ge=function(e){function t(){return e.call(this,{id:"editor.action.showHover",label:i["a"]({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:u["a"].editorTextFocus,primary:Object(o["a"])(2089,2087),weight:100}})||this}return de(t,e),t.prototype.run=function(e,t){if(t.hasModel()){var n=fe.get(t);if(n){var i=t.getPosition(),o=new a["a"](i.lineNumber,i.column,i.lineNumber,i.column),r=2===t.getConfiguration().accessibilitySupport;n.showContentHover(o,1,r)}}},t}(s["b"]);Object(s["h"])(fe),Object(s["f"])(ge),Object(O["f"])(function(e,t){var n=e.getColor(L["C"]);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var i=e.getColor(L["A"]);i&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+i+"; }");var o=e.getColor(L["B"]);o&&(t.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+o+"; }"),t.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+o.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+o.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+o.transparent(.5)+"; }"));var r=e.getColor(L["Ub"]);r&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+r+"; }");var s=e.getColor(L["D"]);s&&t.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+s+"; }");var a=e.getColor(L["Tb"]);a&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+a+"; }")})},af33:function(e,t,n){"use strict";n("a87d");var i=n("b2cc"),o=n("b57f"),r=n("11f7"),s=(n("52c8"),n("dff7")),a=n("30db"),u=n("ef8e"),l=function(){function e(e){this.modelProvider=Object(u["f"])(e.getModel)?e:{getModel:function(){return e}}}return e.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},e.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return!!(n&&n===t&&n.entries.length>0)},e.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Promise.resolve(n===t?n.entries:[])},e.prototype.getParent=function(e,t){return Promise.resolve(null)},e}(),c=function(){function e(e){this.modelProvider=e}return e.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider?n.accessibilityProvider.getAriaLabel(t):null},e.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel(),i=0;if(n.filter)for(var o=0,r=n.entries;o<r.length;o++){var s=r[o];if(n.filter.isVisible(s)&&i++,s===t)break}else i=n.entries.indexOf(t)+1;return String(i)},e.prototype.getSetSize=function(){var e=this.modelProvider.getModel(),t=0;if(e.filter)for(var n=0,i=e.entries;n<i.length;n++){var o=i[n];e.filter.isVisible(o)&&t++}else t=e.entries.length;return String(t)},e}(),d=function(){function e(e){this.modelProvider=e}return e.prototype.isVisible=function(e,t){var n=this.modelProvider.getModel();return!n.filter||n.filter.isVisible(t)},e}(),h=function(){function e(e,t){this.modelProvider=e,this.styles=t}return e.prototype.updateStyles=function(e){this.styles=e},e.prototype.getHeight=function(e,t){var n=this.modelProvider.getModel();return n.renderer.getHeight(t)},e.prototype.getTemplateId=function(e,t){var n=this.modelProvider.getModel();return n.renderer.getTemplateId(t)},e.prototype.renderTemplate=function(e,t,n){var i=this.modelProvider.getModel();return i.renderer.renderTemplate(t,n,this.styles)},e.prototype.renderElement=function(e,t,n,i){var o=this.modelProvider.getModel();o.renderer.renderElement(t,n,i,this.styles)},e.prototype.disposeTemplate=function(e,t,n){var i=this.modelProvider.getModel();i.renderer.disposeTemplate(t,n)},e}(),p=n("d3ef"),f=(n("bcc1"),n("fdcc")),g=n("fe45"),m=function(){function e(){this._arr=[]}return e.prototype.set=function(e,t){this._arr.push({keybinding:Object(g["f"])(e,a["a"]),callback:t})},e.prototype.dispatch=function(e){for(var t=this._arr.length-1;t>=0;t--){var n=this._arr[t];if(e.toChord().equals(n.keybinding))return n.callback}return null},e}(),v=function(){function e(e){var t=this;void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=e,this.downKeyBindingDispatcher=new m,this.upKeyBindingDispatcher=new m,("boolean"!==typeof e.keyboardSupport||e.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(e,n){return t.onUp(e,n)}),this.downKeyBindingDispatcher.set(18,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(15,function(e,n){return t.onLeft(e,n)}),this.downKeyBindingDispatcher.set(17,function(e,n){return t.onRight(e,n)}),a["d"]&&(this.downKeyBindingDispatcher.set(2064,function(e,n){return t.onLeft(e,n)}),this.downKeyBindingDispatcher.set(300,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(302,function(e,n){return t.onUp(e,n)})),this.downKeyBindingDispatcher.set(11,function(e,n){return t.onPageUp(e,n)}),this.downKeyBindingDispatcher.set(12,function(e,n){return t.onPageDown(e,n)}),this.downKeyBindingDispatcher.set(14,function(e,n){return t.onHome(e,n)}),this.downKeyBindingDispatcher.set(13,function(e,n){return t.onEnd(e,n)}),this.downKeyBindingDispatcher.set(10,function(e,n){return t.onSpace(e,n)}),this.downKeyBindingDispatcher.set(9,function(e,n){return t.onEscape(e,n)}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this)))}return e.prototype.onMouseDown=function(e,t,n,i){if(void 0===i&&(i="mouse"),0===this.options.clickBehavior&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(r["t"](n.target,"scrollbar","monaco-tree"))return!1;if(r["t"](n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)}return!1},e.prototype.onClick=function(e,t,n){var i=a["d"];return i&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&((0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)&&this.onLeftClick(e,t,n))},e.prototype.onLeftClick=function(e,t,n,i){void 0===i&&(i="mouse");var o=n,r={origin:i,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(o)};if(e.getInput()===t)e.clearFocus(r),e.clearSelection(r);else{var s=n&&o.browserEvent&&"mousedown"===o.browserEvent.type&&1===o.browserEvent.detail;s||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],r),e.setFocus(t,r),this.shouldToggleExpansion(t,o,i)&&(e.isExpanded(t)?e.collapse(t).then(void 0,f["e"]):e.expand(t).then(void 0,f["e"]))}return!0},e.prototype.shouldToggleExpansion=function(e,t,n){var i="mouse"===n&&2===t.detail;return this.openOnSingleClick||i||this.isClickOnTwistie(t)},Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode},enumerable:!0,configurable:!0}),e.prototype.isClickOnTwistie=function(e){var t=e.target;if(!r["C"](t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var i=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=i},e.prototype.onContextMenu=function(e,t,n){return(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(n&&(n.preventDefault(),n.stopPropagation()),!1)},e.prototype.onTap=function(e,t,n){var i=n.initialTarget;return(!i||!i.tagName||"input"!==i.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},e.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},e.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},e.prototype.onKey=function(e,t,n){var i=e.dispatch(n.toKeybinding());return!(!i||!i(t,n))&&(n.preventDefault(),n.stopPropagation(),!0)},e.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPrevious(1,n),e.reveal(e.getFocus()).then(void 0,f["e"])),!0},e.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPreviousPage(n),e.reveal(e.getFocus()).then(void 0,f["e"])),!0},e.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNext(1,n),e.reveal(e.getFocus()).then(void 0,f["e"])),!0},e.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNextPage(n),e.reveal(e.getFocus()).then(void 0,f["e"])),!0},e.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusFirst(n),e.reveal(e.getFocus()).then(void 0,f["e"])),!0},e.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusLast(n),e.reveal(e.getFocus()).then(void 0,f["e"])),!0},e.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.collapse(i).then(function(t){if(i&&!t)return e.focusParent(n),e.reveal(e.getFocus())}).then(void 0,f["e"])}return!0},e.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.expand(i).then(function(t){if(i&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus())}).then(void 0,f["e"])}return!0},e.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var i=e.getFocus();return i&&e.setSelection([i],n),!0},e.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},e.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?(e.clearHighlight(n),!0):e.getSelection().length?(e.clearSelection(n),!0):!!e.getFocus()&&(e.clearFocus(n),!0)},e}(),_=function(){function e(){}return e.prototype.getDragURI=function(e,t){return null},e.prototype.onDragStart=function(e,t,n){},e.prototype.onDragOver=function(e,t,n,i){return null},e.prototype.drop=function(e,t,n,i){},e}(),b=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0},e}(),y=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return null},e}(),w=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}(),C=n("1569"),S=n("a666"),L=n("308f"),O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(){function e(e){this._onDispose=new L["a"],this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},e}(),N=function(){function e(){this.locks=Object.create({})}return e.prototype.isLocked=function(e){return!!this.locks[e.id]},e.prototype.run=function(e,t){var n,i=this,o=this.getLock(e);return o?new Promise(function(n,r){L["b"].once(o.onDispose)(function(){return i.run(e,t).then(n,r)})}):new Promise(function(o,r){if(e.isDisposed())return r(new Error("Item is disposed."));var s=i.locks[e.id]=new x(e);return n=t().then(function(t){return delete i.locks[e.id],s.dispose(),t}).then(o,r),n})},e.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n}return null},e}(),D=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new L["d"],this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new L["d"],this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new L["d"],this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new L["d"],this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new L["d"],this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new L["d"],this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new L["d"],this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new L["d"],this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new L["d"],this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new L["d"],this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new L["d"],this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){C["a"](!this.isRegistered(e.id),"item already registered: "+e.id);var t=Object(S["e"])(this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose));this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){C["a"](this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items=null,this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e}(),k=function(){function e(e,t,n,i,o){this._onDidCreate=new L["a"],this._onDidReveal=new L["a"],this.onDidReveal=this._onDidReveal.event,this._onExpand=new L["a"],this.onExpand=this._onExpand.event,this._onDidExpand=new L["a"],this.onDidExpand=this._onDidExpand.event,this._onCollapse=new L["a"],this.onCollapse=this._onCollapse.event,this._onDidCollapse=new L["a"],this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new L["a"],this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new L["a"],this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new L["a"],this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new L["a"],this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new L["a"],this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new L["a"],this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=i,this.element=o,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!(!this.context.dataSource.shouldAutoexpand||!this.context.dataSource.shouldAutoexpand(this.context.tree,o)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},e.prototype.expand=function(){var e=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return Promise.resolve(!1);var t=this.lock.run(this,function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t,n={item:e};return e._onExpand.fire(n),t=e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null),t.then(function(){return e._setExpanded(!0),e._onDidExpand.fire(n),!0})});return t.then(function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then(function(){return!0}):t)})},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Promise.resolve(null);return this.forEachChild(function(e){n=n.then(function(){return e.collapse(!0)})}),n.then(function(){return t.collapse(!1)})}return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)})},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,n,i){var o=this;if(void 0===n&&(n=!1),void 0===i&&(i=!1),!i&&!this.isExpanded()){var r=function(e){e.needsChildrenRefresh=!0,e.forEachChild(r)};return r(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var s=function(){var i,r={item:o,isNested:n};o._onRefreshChildren.fire(r),i=o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):Promise.resolve([]);var s=i.then(function(n){if(o.isDisposed()||o.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(n))return Promise.reject(new Error("Please return an array of children."));n=n?n.slice(0):[],n=o.sort(n);var i={};while(null!==o.firstChild)i[o.firstChild.id]=o.firstChild,o.removeChild(o.firstChild);for(var r=0,s=n.length;r<s;r++){var a=n[r],u=o.context.dataSource.getId(o.context.tree,a),l=i[u]||new e(u,o.registry,o.context,o.lock,a);l.element=a,t&&(l.needsChildrenRefresh=t),delete i[u],o.addChild(l)}for(var c in i)i.hasOwnProperty(c)&&i[c].dispose();return t?Promise.all(o.mapEachChild(function(e){return e.doRefresh(t,!0)})):Promise.all(o.mapEachChild(function(e){return e.isExpanded()&&e.needsChildrenRefresh?e.doRefresh(t,!0):(e.updateVisibility(),Promise.resolve(null))}))});return s.then(void 0,f["e"]).then(function(){return o._onDidRefreshChildren.fire(r)})};return n?s():this.lock.run(this,s)},e.prototype.doRefresh=function(e,t){return void 0===t&&(t=!1),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.height=this._getHeight(),this.updateVisibility(),this._onDidRefresh.fire(this),this.refreshChildren(e,t)},e.prototype.updateVisibility=function(){this.setVisible(this._isVisible())},e.prototype.refresh=function(e){return this.doRefresh(e)},e.prototype.getNavigator=function(){return new E(this)},e.prototype.intersects=function(e){return this.isAncestorOf(e)||e.isAncestorOf(this)},e.prototype.isAncestorOf=function(e){var t=e;while(t){if(t.id===this.id)return!0;t=t.parent}return!1},e.prototype.addChild=function(e,t){void 0===t&&(t=this.lastChild);var n=null===this.firstChild,i=null===t,o=t===this.lastChild;if(n)this.firstChild=this.lastChild=e,e.next=e.previous=null;else if(i){if(!this.firstChild)throw new Error("Invalid tree state");this.firstChild.previous=e,e.next=this.firstChild,e.previous=null,this.firstChild=e}else if(o){if(!this.lastChild)throw new Error("Invalid tree state");this.lastChild.next=e,e.next=null,e.previous=this.lastChild,this.lastChild=e}else{if(e.previous=t,!t)throw new Error("Invalid tree state");if(e.next=t.next,!t.next)throw new Error("Invalid tree state");t.next.previous=e,t.next=e}e.parent=this,e.depth=this.depth+1},e.prototype.removeChild=function(e){var t=this.firstChild===e,n=this.lastChild===e;if(t&&n)this.firstChild=this.lastChild=null;else if(t){if(!e.next)throw new Error("Invalid tree state");e.next.previous=null,this.firstChild=e.next}else if(n){if(!e.previous)throw new Error("Invalid tree state");e.previous.next=null,this.lastChild=e.previous}else{if(!e.next)throw new Error("Invalid tree state");if(e.next.previous=e.previous,!e.previous)throw new Error("Invalid tree state");e.previous.next=e.next}e.parent=null,e.depth=NaN},e.prototype.forEachChild=function(e){var t,n=this.firstChild;while(n)t=n.next,e(n),n=t},e.prototype.mapEachChild=function(e){var t=[];return this.forEachChild(function(n){t.push(e(n))}),t},e.prototype.sort=function(e){var t=this,n=this.context.sorter;return n?e.sort(function(e,i){return n.compare(t.context.tree,e,i)}):e},e.prototype._getHeight=function(){return this.context.renderer?this.context.renderer.getHeight(this.context.tree,this.element):0},e.prototype._isVisible=function(){return!!this.context.filter&&this.context.filter.isVisible(this.context.tree,this.element)},e.prototype.isDisposed=function(){return this._isDisposed},e.prototype.dispose=function(){this.forEachChild(function(e){return e.dispose()}),this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this._onDidDispose.fire(this),this.registry.deregister(this),this._onDidCreate.dispose(),this._onDidReveal.dispose(),this._onExpand.dispose(),this._onDidExpand.dispose(),this._onCollapse.dispose(),this._onDidCollapse.dispose(),this._onDidAddTrait.dispose(),this._onDidRemoveTrait.dispose(),this._onDidRefresh.dispose(),this._onRefreshChildren.dispose(),this._onDidRefreshChildren.dispose(),this._onDidDispose.dispose(),this._isDisposed=!0},e}(),I=function(e){function t(t,n,i,o,r){return e.call(this,t,n,i,o,r)||this}return O(t,e),t.prototype.isVisible=function(){return!1},t.prototype.setVisible=function(e){},t.prototype.isExpanded=function(){return!0},t.prototype._setExpanded=function(e){},t.prototype._getHeight=function(){return 0},t.prototype._isVisible=function(){return!1},t}(k),E=function(){function e(e,t){void 0===t&&(t=!0),this.item=e,this.start=t?e:null}return e.lastDescendantOf=function(t){return t?t instanceof I?e.lastDescendantOf(t.lastChild):t.isVisible()?t.isExpanded()&&null!==t.lastChild?e.lastDescendantOf(t.lastChild):t:e.lastDescendantOf(t.previous):null},e.prototype.current=function(){return this.item||null},e.prototype.next=function(){if(this.item)do{if((this.item instanceof I||this.item.isVisible()&&this.item.isExpanded())&&this.item.firstChild)this.item=this.item.firstChild;else if(this.item===this.start)this.item=null;else{while(this.item&&this.item!==this.start&&!this.item.next)this.item=this.item.parent;this.item===this.start&&(this.item=null),this.item=this.item?this.item.next:null}}while(this.item&&!this.item.isVisible());return this.item||null},e.prototype.previous=function(){if(this.item)do{var t=e.lastDescendantOf(this.item.previous);t?this.item=t:this.item.parent&&this.item.parent!==this.start&&this.item.parent.isVisible()?this.item=this.item.parent:this.item=null}while(this.item&&!this.item.isVisible());return this.item||null},e.prototype.parent=function(){if(this.item){var e=this.item.parent;e&&e!==this.start&&e.isVisible()?this.item=e:this.item=null}return this.item||null},e.prototype.first=function(){return this.item=this.start,this.next(),this.item||null},e.prototype.last=function(){return e.lastDescendantOf(this.start)},e}(),M=function(){function e(e){this._onSetInput=new L["a"],this.onSetInput=this._onSetInput.event,this._onDidSetInput=new L["a"],this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new L["a"],this.onRefresh=this._onRefresh.event,this._onDidRefresh=new L["a"],this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new L["a"],this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new L["a"],this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new L["a"],this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new L["f"],this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new L["f"],this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new L["f"],this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new L["f"],this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new L["f"],this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new L["f"],this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new L["f"],this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new L["f"],this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new L["f"],this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new L["f"],this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new L["f"],this.context=e,this.input=null,this.traitsToItems={}}return e.prototype.setInput=function(e){var t=this,n={item:this.input};this._onSetInput.fire(n),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new N,this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new D,this._onDidRevealItem.input=this.registry.onDidRevealItem,this._onExpandItem.input=this.registry.onExpandItem,this._onDidExpandItem.input=this.registry.onDidExpandItem,this._onCollapseItem.input=this.registry.onCollapseItem,this._onDidCollapseItem.input=this.registry.onDidCollapseItem,this._onDidAddTraitItem.input=this.registry.onDidAddTraitItem,this._onDidRemoveTraitItem.input=this.registry.onDidRemoveTraitItem,this._onDidRefreshItem.input=this.registry.onDidRefreshItem,this._onRefreshItemChildren.input=this.registry.onRefreshItemChildren,this._onDidRefreshItemChildren.input=this.registry.onDidRefreshItemChildren,this._onDidDisposeItem.input=this.registry.onDidDisposeItem,this.registryDisposable=this.registry.onDidDisposeItem(function(e){return e.getAllTraits().forEach(function(n){return delete t.traitsToItems[n][e.id]})});var i=this.context.dataSource.getId(this.context.tree,e);return this.input=new I(i,this.registry,this.context,this.lock,e),n={item:this.input},this._onDidSetInput.fire(n),this.refresh(this.input)},e.prototype.getInput=function(){return this.input?this.input.getElement():null},e.prototype.refresh=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!0);var i=this.getItem(e);if(!i)return Promise.resolve(null);var o={item:i,recursive:t};return this._onRefresh.fire(o),i.refresh(t).then(function(){n._onDidRefresh.fire(o)})},e.prototype.expand=function(e){var t=this.getItem(e);return t?t.expand():Promise.resolve(!1)},e.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getItem(e);return n?n.collapse(t):Promise.resolve(!1)},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.isExpanded(e)?this.collapse(e,t):this.expand(e)},e.prototype.isExpanded=function(e){var t=this.getItem(e);return!!t&&t.isExpanded()},e.prototype.reveal=function(e,t){var n=this;return void 0===t&&(t=null),this.resolveUnknownParentChain(e).then(function(e){var t=Promise.resolve(null);return e.forEach(function(e){t=t.then(function(){return n.expand(e)})}),t}).then(function(){var i=n.getItem(e);if(i)return i.reveal(t)})},e.prototype.resolveUnknownParentChain=function(e){var t=this;return this.context.dataSource.getParent(this.context.tree,e).then(function(e){return e?t.resolveUnknownParentChain(e).then(function(t){return t.push(e),t}):Promise.resolve([])})},e.prototype.setHighlight=function(e,t){this.setTraits("highlighted",e?[e]:[]);var n={highlight:this.getHighlight(),payload:t};this._onDidHighlight.fire(n)},e.prototype.getHighlight=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("highlighted",e);return 0===t.length?null:t[0]},e.prototype.setSelection=function(e,t){this.setTraits("selected",e);var n={selection:this.getSelection(),payload:t};this._onDidSelect.fire(n)},e.prototype.getSelection=function(e){return void 0===e&&(e=!1),this.getElementsWithTrait("selected",e)},e.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n)},e.prototype.getFocus=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},e.prototype.focusNext=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r<e;r++){if(n=o.next(),!n)break;i=n}this.setFocus(i,t)},e.prototype.focusPrevious=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r<e;r++){if(n=o.previous(),!n)break;i=n}this.setFocus(i,t)},e.prototype.focusParent=function(e){var t=this.getFocus()||this.input,n=this.getNavigator(t,!1),i=n.parent();i&&this.setFocus(i,e)},e.prototype.focusFirstChild=function(e){var t=this.getItem(this.getFocus()||this.input),n=this.getNavigator(t,!1),i=n.next(),o=n.parent();o===t&&this.setFocus(i,e)},e.prototype.focusFirst=function(e,t){this.focusNth(0,e,t)},e.prototype.focusNth=function(e,t,n){for(var i=this.getParent(n),o=this.getNavigator(i),r=o.first(),s=0;s<e;s++)r=o.next();r&&this.setFocus(r,t)},e.prototype.focusLast=function(e,t){var n,i=this.getParent(t);if(t&&i)n=i.lastChild;else{var o=this.getNavigator(i);n=o.last()}n&&this.setFocus(n,e)},e.prototype.getParent=function(e){if(e){var t=this.getItem(e);if(t&&t.parent)return t.parent}return this.getItem(this.input)},e.prototype.getNavigator=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),new E(this.getItem(e),t)},e.prototype.getItem=function(e){return void 0===e&&(e=null),null===e?this.input:e instanceof k?e:"string"===typeof e?this.registry.getItem(e):this.registry.getItem(this.context.dataSource.getId(this.context.tree,e))},e.prototype.removeTraits=function(e,t){var n,i,o=this.traitsToItems[e]||{};if(0===t.length){for(i in o)o.hasOwnProperty(i)&&(n=o[i],n.removeTrait(e));delete this.traitsToItems[e]}else for(var r=0,s=t.length;r<s;r++)n=this.getItem(t[r]),n&&(n.removeTrait(e),delete o[n.id])},e.prototype.setTraits=function(e,t){if(0===t.length)this.removeTraits(e,t);else{for(var n={},i=void 0,o=0,r=t.length;o<r;o++)i=this.getItem(t[o]),i&&(n[i.id]=i);var s=this.traitsToItems[e]||{},a=[],u=void 0;for(u in s)s.hasOwnProperty(u)&&(n.hasOwnProperty(u)?delete n[u]:a.push(s[u]));for(o=0,r=a.length;o<r;o++)i=a[o],i.removeTrait(e),delete s[i.id];for(u in n)n.hasOwnProperty(u)&&(i=n[u],i.addTrait(e),s[u]=i);this.traitsToItems[e]=s}},e.prototype.getElementsWithTrait=function(e,t){var n,i=[],o=this.traitsToItems[e]||{};for(n in o)o.hasOwnProperty(n)&&(o[n].isVisible()||t)&&i.push(o[n].getElement());return i},e.prototype.dispose=function(){this.registry&&(this.registry.dispose(),this.registry=null),this._onSetInput.dispose(),this._onDidSetInput.dispose(),this._onRefresh.dispose(),this._onDidRefresh.dispose(),this._onDidHighlight.dispose(),this._onDidSelect.dispose(),this._onDidFocus.dispose(),this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._onDidDisposeItem.dispose()},e}(),T=n("0f70"),P=n("1b0e"),R=n("a60f"),A=n("3742"),F=n("5d28"),j=n("b835"),W=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}(),V=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}(),B=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){e.types&&(this.types=[],Array.prototype.push.apply(this.types,e.types)),e.files&&(this.files=[],Array.prototype.push.apply(this.files,e.files),this.files=this.files.filter(function(e){return e.size||e.type}))},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}(),H=n("258a"),z=n("1898"),U=function(){function e(){this.heightMap=[],this.indexes={}}return e.prototype.getContentHeight=function(){var e=this.heightMap[this.heightMap.length-1];return e?e.top+e.height:0},e.prototype.onInsertItems=function(e,t){void 0===t&&(t=null);var n,i,o,r,s=null,a=0;if(null===t)i=0,r=0;else{if(i=this.indexes[t]+1,n=this.heightMap[i-1],!n)return void console.error("view item doesnt exist");r=n.top+n.height}var u=this.heightMap.splice.bind(this.heightMap,i,0),l=[];while(s=e.next())n=this.createViewItem(s),n.top=r+a,this.indexes[s.id]=i++,l.push(n),a+=n.height;for(u.apply(this.heightMap,l),o=i;o<this.heightMap.length;o++)n=this.heightMap[o],n.top+=a,this.indexes[n.model.id]=o;for(o=l.length-1;o>=0;o--)this.onInsertItem(l[o]);for(o=this.heightMap.length-1;o>=i;o--)this.onRefreshItem(this.heightMap[o]);return a},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){var t,n=null,i=null,o=0,r=0;while(n=e.next()){if(o=this.indexes[n],t=this.heightMap[o],!t)return void console.error("view item doesnt exist");r-=t.height,delete this.indexes[n],this.onRemoveItem(t),null===i&&(i=o)}if(0!==r&&null!==i)for(this.heightMap.splice(i,o-i+1),o=i;o<this.heightMap.length;o++)t=this.heightMap[o],t.top+=r,this.indexes[t.model.id]=o,this.onRefreshItem(t)},e.prototype.onRemoveItem=function(e){},e.prototype.onRefreshItemSet=function(e){var t=this,n=e.sort(function(e,n){return t.indexes[e.id]-t.indexes[n.id]});this.onRefreshItems(new H["a"](n))},e.prototype.onRefreshItems=function(e){var t,n,i,o=null,r=null,s=0;while(o=e.next()){for(i=this.indexes[o.id];0!==s&&null!==r&&r<i;r++)t=this.heightMap[r],t.top+=s,this.onRefreshItem(t);t=this.heightMap[i],n=o.getHeight(),t.top+=s,s+=n-t.height,t.height=n,this.onRefreshItem(t,!0),r=i+1}if(0!==s&&null!==r)for(;r<this.heightMap.length;r++)t=this.heightMap[r],t.top+=s,this.onRefreshItem(t)},e.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1)},e.prototype.indexAt=function(e){var t,n,i=0,o=this.heightMap.length;while(i<o)if(t=Math.floor((i+o)/2),n=this.heightMap[t],e<n.top)o=t;else{if(!(e>=n.top+n.height))return t;if(i===t)break;i=t}return this.heightMap.length},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=[],this.indexes={}},e}(),K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(){function e(e,t,n){this._posx=e,this._posy=t,this._target=n}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}(),G=function(e){function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n}return K(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(q),Z=function(e){function t(t,n,i){var o=e.call(this,t,n,i.target)||this;return o.originalEvent=i,o}return K(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(q),Y=n("650e"),X=n("5fe7"),$=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Q(e){try{e.parentElement.removeChild(e)}catch(t){}}var J=function(){function e(e){this.context=e,this._cache={"":[]}}return e.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var i=document.createElement("div");i.appendChild(n);var o=null;try{o=this.context.renderer.renderTemplate(this.context.tree,e,n)}catch(r){console.error("Tree usage error: exception while rendering template"),console.error(r)}t={element:i,templateId:e,templateData:o}}return t},e.prototype.release=function(e,t){Q(t.element),this.cache(e).push(t)},e.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},e.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach(function(t){e._cache[t].forEach(function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData),n.element=null,n.templateData=null}),delete e._cache[t]})},e.prototype.dispose=function(){this.garbageCollect(),this._cache=null},e}(),ee=function(){function e(e,t){var n=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=S["a"].None,this._draggable=!1,this.context=e,this.model=t,this.id=this.model.id,this.row=null,this.top=0,this.height=t.getHeight(),this._styles={},t.getAllTraits().forEach(function(e){return n._styles[e]=!0}),t.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(e.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loading",{set:function(e){e?this.addClass("loading"):this.removeClass("loading")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),e.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},e.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},e.prototype.render=function(e){var t=this;if(void 0===e&&(e=!1),this.model&&this.element){var n=["monaco-tree-row"];n.push.apply(n,Object.keys(this._styles)),this.model.hasChildren()&&n.push("has-children"),this.element.className=n.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var i=this.context.accessibilityProvider,o=i.getAriaLabel(this.context.tree,this.model.getElement());if(o&&this.element.setAttribute("aria-label",o),i.getPosInSet&&i.getSetSize&&(this.element.setAttribute("aria-setsize",i.getSetSize()),this.element.setAttribute("aria-posinset",i.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var s=A["H"](this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",s)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles["expanded"])):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var a=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(a!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),a?(this.uri=a,this.draggable=!0,this.unbindDragStart=r["h"](this.element,"dragstart",function(e){t.onDragStart(e)})):this.uri=null),!e&&this.element){var u=0;if(this.context.horizontalScrolling){var l=window.getComputedStyle(this.element);u=parseFloat(l.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width="fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(c){console.error("Tree usage error: exception while rendering element"),console.error(c)}this.context.horizontalScrolling&&(this.width=r["w"](this.element)+u,this.element.style.width="")}}},e.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[ie.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(n){console.warn("Failed to locate previous tree element"),e.appendChild(this.element)}this.render()}},e.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart.dispose(),this.uri=null,this.element[ie.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},e.prototype.dispose=function(){this.row=null},e}(),te=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.row={element:i,templateData:null,templateId:null},o}return $(t,e),t.prototype.render=function(){if(this.model&&this.element){var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles)),this.model.hasChildren()&&e.push("has-children"),this.element.className=e.join(" ")}},t.prototype.insertInDOM=function(e,t){},t.prototype.removeFromDOM=function(){},t}(ee);function ne(e,t){return!e&&!t||!(!e||!t)&&(e.accept===t.accept&&(e.bubble===t.bubble&&e.effect===t.effect))}var ie=function(e){function t(n,i){var o=e.call(this)||this;o.model=null,o.lastPointerType="",o.lastClickTimeStamp=0,o.contentWidthUpdateDelayer=new X["a"](50),o.isRefreshing=!1,o.refreshingPreviousChildrenIds={},o.currentDragAndDropData=null,o.currentDropTarget=null,o.currentDropTargets=null,o.currentDropDisposable=S["a"].None,o.dragAndDropScrollInterval=null,o.dragAndDropScrollTimeout=null,o.dragAndDropMouseY=null,o.highlightedItemWasDraggable=!1,o.onHiddenScrollTop=null,o._onDOMFocus=new L["a"],o.onDOMFocus=o._onDOMFocus.event,o._onDOMBlur=new L["a"],o._onDidScroll=new L["a"],t.counter++,o.instance=t.counter;var s="undefined"===typeof n.options.horizontalScrollMode?2:n.options.horizontalScrollMode;o.horizontalScrolling=2!==s,o.context={dataSource:n.dataSource,renderer:n.renderer,controller:n.controller,dnd:n.dnd,filter:n.filter,sorter:n.sorter,tree:n.tree,accessibilityProvider:n.accessibilityProvider,options:n.options,cache:new J(n),horizontalScrolling:o.horizontalScrolling},o.modelListeners=[],o.viewListeners=[],o.items={},o.domNode=document.createElement("div"),o.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+o.instance,o.domNode.tabIndex=n.options.preventRootFocus?-1:0,o.styleElement=r["s"](o.domNode),o.treeStyler=n.styler||new w(o.styleElement,"monaco-tree-instance-"+o.instance),o.domNode.setAttribute("role","tree"),o.context.options.ariaLabel&&o.domNode.setAttribute("aria-label",o.context.options.ariaLabel),o.context.options.alwaysFocused&&r["f"](o.domNode,"focused"),o.context.options.paddingOnRow||r["f"](o.domNode,"no-row-padding"),o.wrapper=document.createElement("div"),o.wrapper.className="monaco-tree-wrapper",o.scrollableElement=new z["b"](o.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:s,vertical:"undefined"!==typeof n.options.verticalScrollMode?n.options.verticalScrollMode:1,useShadows:n.options.useShadows}),o.scrollableElement.onScroll(function(e){o.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),o._onDidScroll.fire()}),T["j"]?(o.wrapper.style.msTouchAction="none",o.wrapper.style.msContentZooming="none"):R["b"].addTarget(o.wrapper),o.rowsContainer=document.createElement("div"),o.rowsContainer.className="monaco-tree-rows",n.options.showTwistie&&(o.rowsContainer.className+=" show-twisties");var a=r["S"](o.domNode);return o.viewListeners.push(a.onDidFocus(function(){return o.onFocus()})),o.viewListeners.push(a.onDidBlur(function(){return o.onBlur()})),o.viewListeners.push(a),o.viewListeners.push(r["h"](o.domNode,"keydown",function(e){return o.onKeyDown(e)})),o.viewListeners.push(r["h"](o.domNode,"keyup",function(e){return o.onKeyUp(e)})),o.viewListeners.push(r["h"](o.domNode,"mousedown",function(e){return o.onMouseDown(e)})),o.viewListeners.push(r["h"](o.domNode,"mouseup",function(e){return o.onMouseUp(e)})),o.viewListeners.push(r["h"](o.wrapper,"auxclick",function(e){e&&1===e.button&&o.onMouseMiddleClick(e)})),o.viewListeners.push(r["h"](o.wrapper,"click",function(e){return o.onClick(e)})),o.viewListeners.push(r["h"](o.domNode,"contextmenu",function(e){return o.onContextMenu(e)})),o.viewListeners.push(r["h"](o.wrapper,R["a"].Tap,function(e){return o.onTap(e)})),o.viewListeners.push(r["h"](o.wrapper,R["a"].Change,function(e){return o.onTouchChange(e)})),T["j"]&&(o.viewListeners.push(r["h"](o.wrapper,"MSPointerDown",function(e){return o.onMsPointerDown(e)})),o.viewListeners.push(r["h"](o.wrapper,"MSGestureTap",function(e){return o.onMsGestureTap(e)})),o.viewListeners.push(r["j"](o.wrapper,"MSGestureChange",function(e){return o.onThrottledMsGestureChange(e)},function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}))),o.viewListeners.push(r["h"](window,"dragover",function(e){return o.onDragOver(e)})),o.viewListeners.push(r["h"](o.wrapper,"drop",function(e){return o.onDrop(e)})),o.viewListeners.push(r["h"](window,"dragend",function(e){return o.onDragEnd(e)})),o.viewListeners.push(r["h"](window,"dragleave",function(e){return o.onDragOver(e)})),o.wrapper.appendChild(o.rowsContainer),o.domNode.appendChild(o.scrollableElement.getDomNode()),i.appendChild(o.domNode),o.lastRenderTop=0,o.lastRenderHeight=0,o.didJustPressContextMenuKey=!1,o.currentDropTarget=null,o.currentDropTargets=[],o.shouldInvalidateDropReaction=!1,o.dragAndDropScrollInterval=null,o.dragAndDropScrollTimeout=null,o.onRowsChanged(),o.layout(),o.setupMSGesture(),o.applyStyles(n.options),o}return $(t,e),t.prototype.applyStyles=function(e){this.treeStyler.style(e)},t.prototype.createViewItem=function(e){return new ee(this.context,e)},t.prototype.getHTMLElement=function(){return this.domNode},t.prototype.focus=function(){this.domNode.focus()},t.prototype.isFocused=function(){return document.activeElement===this.domNode},t.prototype.blur=function(){this.domNode.blur()},t.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return e.msGesture.target=e.wrapper},100))},t.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},t.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||r["v"](this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||r["w"](this.wrapper)))},t.prototype.render=function(e,t,n,i,o){var r,s,a=e,u=e+t,l=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(u)-1,s=this.indexAt(Math.max(l,a));r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(u))-1,s=this.indexAt(a);r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(l));r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));for(r=Math.max(this.indexAfter(u),this.indexAt(this.lastRenderTop)),s=this.indexAfter(l);r<s;r++)this.removeItemFromDOM(this.itemAtIndex(r));var c=this.itemAtIndex(this.indexAt(a));c&&(this.rowsContainer.style.top=c.top-a+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-n+"px",this.rowsContainer.style.width=Math.max(o,i)+"px"),this.lastRenderTop=a,this.lastRenderHeight=u-a},t.prototype.setModel=function(e){this.releaseModel(),this.model=e,this.model.onRefresh(this.onRefreshing,this,this.modelListeners),this.model.onDidRefresh(this.onRefreshed,this,this.modelListeners),this.model.onSetInput(this.onClearingInput,this,this.modelListeners),this.model.onDidSetInput(this.onSetInput,this,this.modelListeners),this.model.onDidFocus(this.onModelFocusChange,this,this.modelListeners),this.model.onRefreshItemChildren(this.onItemChildrenRefreshing,this,this.modelListeners),this.model.onDidRefreshItemChildren(this.onItemChildrenRefreshed,this,this.modelListeners),this.model.onDidRefreshItem(this.onItemRefresh,this,this.modelListeners),this.model.onExpandItem(this.onItemExpanding,this,this.modelListeners),this.model.onDidExpandItem(this.onItemExpanded,this,this.modelListeners),this.model.onCollapseItem(this.onItemCollapsing,this,this.modelListeners),this.model.onDidRevealItem(this.onItemReveal,this,this.modelListeners),this.model.onDidAddTraitItem(this.onItemAddTrait,this,this.modelListeners),this.model.onDidRemoveTraitItem(this.onItemRemoveTrait,this,this.modelListeners)},t.prototype.onRefreshing=function(){this.isRefreshing=!0},t.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},t.prototype.onRowsChanged=function(e){void 0===e&&(e=this.scrollTop),this.isRefreshing||(this.scrollTop=e,this.updateScrollWidth())},t.prototype.updateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.contentWidthUpdateDelayer.trigger(function(){for(var t=Object.keys(e.items),n=0,i=0,o=t;i<o.length;i++){var r=o[i];n=Math.max(n,e.items[r].width)}e.scrollWidth=n+10})},t.prototype.focusNextPage=function(e){var t=this,n=this.indexAt(this.scrollTop+this.viewHeight);n=0===n?0:n-1;var i=this.itemAtIndex(n).model.getElement(),o=this.model.getFocus();if(o!==i)this.model.setFocus(i,e);else{var r=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==r&&setTimeout(function(){t.focusNextPage(e)},0)}},t.prototype.focusPreviousPage=function(e){var t,n=this;t=0===this.scrollTop?this.indexAt(this.scrollTop):this.indexAfter(this.scrollTop-1);var i=this.itemAtIndex(t).model.getElement(),o=this.model.getFocus();if(o!==i)this.model.setFocus(i,e);else{var r=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==r&&setTimeout(function(){n.focusPreviousPage(e)},0)}},Object.defineProperty(t.prototype,"viewHeight",{get:function(){var e=this.scrollableElement.getScrollDimensions();return e.height},set:function(e){this.scrollableElement.setScrollDimensions({height:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{set:function(e){e+=this.horizontalScrolling?10:0,this.scrollableElement.setScrollDimensions({scrollHeight:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWidth",{get:function(){var e=this.scrollableElement.getScrollDimensions();return e.width},set:function(e){this.scrollableElement.setScrollDimensions({width:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollWidth",{set:function(e){this.scrollableElement.setScrollDimensions({scrollWidth:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollTop",{get:function(){var e=this.scrollableElement.getScrollPosition();return e.scrollTop},set:function(e){var t=this.getContentHeight()+(this.horizontalScrolling?10:0);this.scrollableElement.setScrollDimensions({scrollHeight:t}),this.scrollableElement.setScrollPosition({scrollTop:e})},enumerable:!0,configurable:!0}),t.prototype.onClearingInput=function(e){var t=e.item;t&&(this.onRemoveItems(new H["e"](t.getNavigator(),function(e){return e&&e.id})),this.onRowsChanged())},t.prototype.onSetInput=function(e){this.context.cache.garbageCollect(),this.inputItem=new te(this.context,e.item,this.wrapper)},t.prototype.onItemChildrenRefreshing=function(e){var n=e.item,i=this.items[n.id];if(i&&this.context.options.showLoading&&(i.loadingTimer=setTimeout(function(){i.loadingTimer=0,i.loading=!0},t.LOADING_DECORATION_DELAY)),!e.isNested){var o=[],r=n.getNavigator(),s=void 0;while(s=r.next())o.push(s.id);this.refreshingPreviousChildrenIds[n.id]=o}},t.prototype.onItemChildrenRefreshed=function(e){var t=this,n=e.item,i=this.items[n.id];if(i&&(i.loadingTimer&&(clearTimeout(i.loadingTimer),i.loadingTimer=0),i.loading=!1),!e.isNested){var o=this.refreshingPreviousChildrenIds[n.id],r=[],s=n.getNavigator(),a=void 0;while(a=s.next())r.push(a);var u=Math.abs(o.length-r.length)>1e3,l=[],c=!1;if(!u){var d=new P["a"]({getLength:function(){return o.length},getElementAtIndex:function(e){return o[e]}},{getLength:function(){return r.length},getElementAtIndex:function(e){return r[e].id}},null);l=d.ComputeDiff(!1),c=l.some(function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n<i;n++)if(t.items.hasOwnProperty(r[n].id))return!0;return!1})}if(!u&&!c&&l.length<50)for(var h=0,p=l;h<p.length;h++){var f=p[h];if(f.originalLength>0&&this.onRemoveItems(new H["a"](o,f.originalStart,f.originalStart+f.originalLength)),f.modifiedLength>0){var g=r[f.modifiedStart-1]||n;g=g.getDepth()>0?g:null,this.onInsertItems(new H["a"](r,f.modifiedStart,f.modifiedStart+f.modifiedLength),g?g.id:null)}}else(u||l.length)&&(this.onRemoveItems(new H["a"](o)),this.onInsertItems(new H["a"](r),n.getDepth()>0?n.id:null));(u||l.length)&&this.onRowsChanged()}},t.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},t.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter(function(e){return t.items.hasOwnProperty(e.id)})),this.onRowsChanged()},t.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},t.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var i=this.onInsertItems(t.getNavigator(),t.id)||0,o=this.scrollTop;n.top+n.height<=this.scrollTop&&(o+=i),this.onRowsChanged(o)}},t.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new H["e"](t.getNavigator(),function(e){return e&&e.id})),this.onRowsChanged())},t.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,i=this.items[t.id];if(i)if(null!==n){n=n<0?0:n,n=n>1?1:n;var o=i.height-this.viewHeight;this.scrollTop=o*n+i.top}else{var r=i.top+i.height,s=this.scrollTop+this.viewHeight;i.top<this.scrollTop?this.scrollTop=i.top:r>=s&&(this.scrollTop=r-this.viewHeight)}},t.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.addClass(n),"highlighted"===n&&(r["f"](this.domNode,n),i&&(this.highlightedItemWasDraggable=!!i.draggable,i.draggable&&(i.draggable=!1)))},t.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.removeClass(n),"highlighted"===n&&(r["I"](this.domNode,n),this.highlightedItemWasDraggable&&(i.draggable=!0),this.highlightedItemWasDraggable=!1)},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();r["R"](this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",A["H"](this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},t.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n)},e.needsRender=!0,this.refreshViewItem(e),this.items[e.id]=e},t.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e)},t.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id]},t.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},t.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new F["b"](e),n=this.getItemAround(t.target);n&&(T["j"]&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},t.prototype.onMouseMiddleClick=function(e){if(this.context.controller.onMouseMiddleClick){var t=new F["b"](e),n=this.getItemAround(t.target);n&&this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t)}},t.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new F["b"](e);if(!(t.ctrlKey&&a["e"]&&a["d"])){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)}}},t.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new F["b"](e);if(!(t.ctrlKey&&a["e"]&&a["d"])){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.model.getElement(),t)}}},t.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},t.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},t.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var i=new j["a"](e);n=this.model.getFocus();var o=void 0;if(n){var s=this.context.dataSource.getId(this.context.tree,n),a=this.items[s];o=r["x"](a.element)}else n=this.model.getInput(),o=r["x"](this.inputItem.element);t=new Z(o.left+o.width,o.top,i)}else{var u=new F["b"](e),l=this.getItemAround(u.target);if(!l)return;n=l.model.getElement(),t=new G(u)}this.context.controller.onContextMenu(this.context.tree,n,t)},t.prototype.onKeyDown=function(e){var t=new j["a"](e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode,t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase()||(this.didJustPressContextMenuKey&&(t.preventDefault(),t.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,t))},t.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new j["a"](e))},t.prototype.onDragStart=function(e,t){if(!this.model.getHighlight()){var n,i=e.model.getElement(),o=this.model.getSelection();if(n=o.indexOf(i)>-1?o:[i],t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setData(Y["a"].RESOURCES,JSON.stringify([e.uri])),t.dataTransfer.setDragImage){var r=void 0;r=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,n):String(n.length);var s=document.createElement("div");s.className="monaco-tree-drag-image",s.textContent=r,document.body.appendChild(s),t.dataTransfer.setDragImage(s,-10,-10),setTimeout(function(){return document.body.removeChild(s)},0)}this.currentDragAndDropData=new W(n),Y["c"].CurrentDragAndDropData=new V(n),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new F["a"](t))}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=r["z"](this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(null!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.viewHeight-35;n<35?i=Math.max(-14,.2*(n-35)):n>o&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i}},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null},1e3))},t.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},t.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},t.prototype.onDragOver=function(e){var t=this;e.preventDefault();var n,i=new F["a"](e),o=this.getItemAround(i.target);if(!o||0===i.posx&&0===i.posy&&i.browserEvent.type===r["d"].DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=i.posy,!this.currentDragAndDropData)if(Y["c"].CurrentDragAndDropData)this.currentDragAndDropData=Y["c"].CurrentDragAndDropData;else{if(!i.dataTransfer.types)return!1;this.currentDragAndDropData=new B}this.currentDragAndDropData.update(i.browserEvent.dataTransfer);var s,a=o.model;do{if(n=a?a.getElement():this.model.getInput(),s=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,i),!s||1!==s.bubble)break;a=a&&a.parent}while(a);if(!a)return this.currentDropElement=null,!1;var u=s&&s.accept;u?(this.currentDropElement=a.getElement(),i.preventDefault(),i.dataTransfer.dropEffect=0===s.effect?"copy":"move"):this.currentDropElement=null;var l=a.id===this.inputItem.id?this.inputItem:this.items[a.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==l||!ne(this.currentDropElementReaction,s))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=l,this.currentDropElementReaction=s,u)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),0===s.bubble){var c=a.getNavigator(),d=void 0;while(d=c.next())o=this.items[d.id],o&&(o.dropTarget=!0,this.currentDropTargets.push(o))}if(s.autoExpand){var h=Object(X["l"])(500);this.currentDropDisposable=S["h"](function(){return h.cancel()}),h.then(function(){return t.context.tree.expand(t.currentDropElement)}).then(function(){return t.shouldInvalidateDropReaction=!0})}}return!0},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new F["a"](e);t.preventDefault(),this.currentDragAndDropData.update(t.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()},t.prototype.onDragEnd=function(e){this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,Y["c"].CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},t.prototype.onFocus=function(){this.context.options.alwaysFocused||r["f"](this.domNode,"focused"),this._onDOMFocus.fire()},t.prototype.onBlur=function(){this.context.options.alwaysFocused||r["I"](this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse"}},t.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},t.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},t.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},t.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM()},t.prototype.shouldBeRendered=function(e){return e.top<this.lastRenderTop+this.lastRenderHeight&&e.top+e.height>this.lastRenderTop},t.prototype.getItemAround=function(e){var n=this.inputItem,i=e;do{if(i[t.BINDING]&&(n=i[t.BINDING]),i===this.wrapper||i===this.domNode)return n;if(i===this.scrollableElement.getDomNode()||i===document.body)return}while(i=i.parentElement)},t.prototype.releaseModel=function(){this.model&&(this.modelListeners=S["f"](this.modelListeners),this.model=null)},t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=S["f"](this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach(function(e){return t.items[e].removeFromDOM()}),this.context.cache&&this.context.cache.dispose(),e.prototype.dispose.call(this)},t.BINDING="monaco-tree-row",t.LOADING_DECORATION_DELAY=800,t.counter=0,t}(U),oe=n("ceb8"),re=n("aa3d"),se=function(){function e(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new v({clickBehavior:1,keyboardSupport:"boolean"!==typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new _,this.filter=t.filter||new b,this.sorter=t.sorter,this.accessibilityProvider=t.accessibilityProvider||new y,this.styler=t.styler}return e}(),ae={listFocusBackground:oe["a"].fromHex("#073655"),listActiveSelectionBackground:oe["a"].fromHex("#0E639C"),listActiveSelectionForeground:oe["a"].fromHex("#FFFFFF"),listFocusAndSelectionBackground:oe["a"].fromHex("#094771"),listFocusAndSelectionForeground:oe["a"].fromHex("#FFFFFF"),listInactiveSelectionBackground:oe["a"].fromHex("#3F3F46"),listHoverBackground:oe["a"].fromHex("#2A2D2E"),listDropBackground:oe["a"].fromHex("#383B3D")},ue=function(){function e(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new L["f"],this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new L["f"],this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new L["f"],this._onDidExpandItem=new L["f"],this._onDidCollapseItem=new L["f"],this._onDispose=new L["a"],this.onDidDispose=this._onDispose.event,this.container=e,Object(re["g"])(n,ae,!1),n.twistiePixels="number"===typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"===typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,n.showLoading=!1!==n.showLoading,this.context=new se(this,t,n),this.model=new M(this.context),this.view=new ie(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return e.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view&&this.view.onDOMFocus},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.domFocus=function(){this.view.focus()},e.prototype.isDOMFocused=function(){return this.view.isFocused()},e.prototype.domBlur=function(){this.view.blur()},e.prototype.setInput=function(e){return this.model.setInput(e)},e.prototype.getInput=function(){return this.model.getInput()},e.prototype.expand=function(e){return this.model.expand(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},e.prototype.isExpanded=function(e){return this.model.isExpanded(e)},e.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},e.prototype.getHighlight=function(){return this.model.getHighlight()},e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},e.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},e.prototype.getSelection=function(){return this.model.getSelection()},e.prototype.clearSelection=function(e){this.model.setSelection([],e)},e.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},e.prototype.getFocus=function(){return this.model.getFocus()},e.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},e.prototype.focusParent=function(e){this.model.focusParent(e)},e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},e.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},e.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},e.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},e.prototype.clearFocus=function(e){this.model.setFocus(null,e)},e.prototype.dispose=function(){this._onDispose.fire(),null!==this.model&&(this.model.dispose(),this.model=null),null!==this.view&&(this.view.dispose(),this.view=null),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},e}(),le=(n("1f26"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),ce="done",de="active",he="infinite",pe="discrete",fe="monaco-progress-container",ge="progress-bit",me={progressBarBackground:oe["a"].fromHex("#0E70C0")},ve=function(e){function t(t,n){var i=e.call(this)||this;return i.options=n||Object.create(null),Object(re["g"])(i.options,me,!1),i.workedVal=0,i.progressBarBackground=i.options.progressBarBackground,i._register(i.showDelayedScheduler=new X["d"](function(){return Object(r["Q"])(i.element)},0)),i.create(t),i}return le(t,e),t.prototype.create=function(e){this.element=document.createElement("div"),Object(r["f"])(this.element,fe),e.appendChild(this.element),this.bit=document.createElement("div"),Object(r["f"])(this.bit,ge),this.element.appendChild(this.bit),this.applyStyles()},t.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(r["J"])(this.element,de,he,pe),this.workedVal=0,this.totalWork=void 0},t.prototype.stop=function(){return this.doDone(!1)},t.prototype.doDone=function(e){var t=this;return Object(r["f"])(this.element,ce),Object(r["C"])(this.element,he)?(this.bit.style.opacity="0",e?setTimeout(function(){return t.off()},200):this.off()):(this.bit.style.width="inherit",e?setTimeout(function(){return t.off()},200):this.off()),this},t.prototype.hide=function(){Object(r["D"])(this.element),this.showDelayedScheduler.cancel()},t.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},t.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():null;this.bit.style.backgroundColor=e}},t}(S["a"]),_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _e(t,e),t.prototype.onContextMenu=function(t,n,i){return a["d"]?this.onLeftClick(t,n,i):e.prototype.onContextMenu.call(this,t,n,i)},t}(v),ye={background:oe["a"].fromHex("#1E1E1E"),foreground:oe["a"].fromHex("#CCCCCC"),pickerGroupForeground:oe["a"].fromHex("#0097FB"),pickerGroupBorder:oe["a"].fromHex("#3F3F46"),widgetShadow:oe["a"].fromHex("#000000"),progressBarBackground:oe["a"].fromHex("#0E70C0")},we=s["a"]("quickOpenAriaLabel","Quick picker. Type to narrow down results."),Ce=function(e){function t(t,n,i){var o=e.call(this)||this;return o.isDisposed=!1,o.container=t,o.callbacks=n,o.options=i,o.styles=i||Object.create(null),Object(re["g"])(o.styles,ye,!1),o.model=null,o}return _e(t,e),t.prototype.getModel=function(){return this.model},t.prototype.create=function(){var e=this;this.element=document.createElement("div"),r["f"](this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(r["h"](this.element,r["d"].CONTEXT_MENU,function(e){return r["c"].stop(e,!0)})),this._register(r["h"](this.element,r["d"].FOCUS,function(t){return e.gainingFocus()},!0)),this._register(r["h"](this.element,r["d"].BLUR,function(t){return e.loosingFocus(t)},!0)),this._register(r["h"](this.element,r["d"].KEY_DOWN,function(t){var n=new j["a"](t);if(9===n.keyCode)r["c"].stop(t,!0),e.hide(2);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var i=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===i[0]?(r["c"].stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(r["c"].stop(t,!0),i[0].focus())}})),this.progressBar=this._register(new ve(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),r["f"](this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new p["b"](this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:we,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(r["h"](this.inputBox.inputElement,r["d"].INPUT,function(t){return e.onType()})),this._register(r["h"](this.inputBox.inputElement,r["d"].KEY_DOWN,function(t){var n=new j["a"](t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)r["c"].stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){r["c"].stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?2:1)}})),this.resultCount=document.createElement("div"),r["f"](this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),r["f"](this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new ue(e,t,n)};return this.tree=this._register(t(this.treeContainer,{dataSource:new l(this),controller:new be({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new h(this,this.styles),filter:new d(this),accessibilityProvider:new c(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:s["a"]("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(t){e.elementFocused(t.focus,t)})),this._register(this.tree.onDidChangeSelection(function(t){if(t.selection&&t.selection.length>0){var n=t.payload&&t.payload.originalEvent instanceof F["b"]?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?2:1)}})),this._register(r["h"](this.treeContainer,r["d"].KEY_DOWN,function(t){var n=new j["a"](t);e.quickNavigateConfiguration&&(18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(r["c"].stop(t,!0),e.navigateInTree(n.keyCode)))})),this._register(r["h"](this.treeContainer,r["d"].KEY_UP,function(t){var n=new j["a"](t),i=n.keyCode;if(e.quickNavigateConfiguration){var o=e.quickNavigateConfiguration.keybindings,r=3===i||o.some(function(e){var t=e.getParts(),o=t[0],r=t[1];return!r&&(o.shiftKey&&4===i?!(n.ctrlKey||n.altKey||n.metaKey):!(!o.altKey||6!==i)||(!(!o.ctrlKey||5!==i)||!(!o.metaKey||57!==i)))});if(r){var s=e.tree.getFocus();s&&e.elementSelected(s,t)}}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(r["h"](this.treeContainer,r["d"].KEY_DOWN,function(t){var n=new j["a"](t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(r["c"].stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus())})),this.element},t.prototype.style=function(e){this.styles=e,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.styles.foreground?this.styles.foreground.toString():null,t=this.styles.background?this.styles.background.toString():null,n=this.styles.borderColor?this.styles.borderColor.toString():null,i=this.styles.widgetShadow?this.styles.widgetShadow.toString():null;this.element.style.color=e,this.element.style.backgroundColor=t,this.element.style.borderColor=n,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.boxShadow=i?"0 5px 8px "+i:null}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},t.prototype.shouldOpenInBackground=function(e){if(e instanceof j["a"]){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd}return e.middleButton},t.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?r["D"](this.helpText):r["Q"](this.helpText)),this.callbacks.onType(e)},t.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),i=n?n.entries:[],o=this.tree.getFocus();switch(e){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:t?this.tree.focusPrevious():this.tree.focusNext();break}var r=this.tree.getFocus();i.length>1&&o===r&&(16===e||2===e&&t?this.tree.focusLast():(18===e||2===e&&!t)&&this.tree.focusFirst()),r=this.tree.getFocus(),r&&this.tree.reveal(r)},t.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){var n=this.treeElement.getAttribute("aria-activedescendant");n?this.inputElement.setAttribute("aria-activedescendant",n):this.inputElement.removeAttribute("aria-activedescendant");var i={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,0,i)}},t.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||1,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r)}i&&this.hide(0)},t.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)}},t.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(r["D"](this.inputContainer),r["Q"](this.element),this.tree.domFocus()):(r["Q"](this.inputContainer),r["Q"](this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||u["i"](e)?r["D"](this.helpText):r["Q"](this.helpText)),u["i"](e)?this.doShowWithPrefix(e):(t&&t.value&&this.restoreLastInput(t.value),this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{})),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},t.prototype.restoreLastInput=function(e){this.inputBox.value=e,this.inputBox.select(),this.callbacks.onType(e)},t.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},t.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},t.prototype.setInputAndLayout=function(e,t){var n=this;this.treeContainer.style.height=this.getHeight(e)+"px",this.tree.setInput(null).then(function(){return n.model=e,n.inputElement.setAttribute("aria-haspopup",String(e&&e.entries&&e.entries.length>0)),n.tree.setInput(e)}).then(function(){n.tree.layout();var i=e?e.entries.filter(function(t){return n.isElementVisible(e,t)}):[];n.updateResultCount(i.length),i.length&&n.autoFocus(e,i,t)})},t.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},t.prototype.autoFocus=function(e,t,n){if(void 0===n&&(n={}),n.autoFocusPrefixMatch){for(var i=void 0,o=void 0,r=n.autoFocusPrefixMatch,s=r.toLowerCase(),a=0,u=t;a<u.length;a++){var l=u[a],c=e.dataSource.getLabel(l)||"";if(i||0!==c.indexOf(r)?o||0!==c.toLowerCase().indexOf(s)||(o=l):i=l,i&&o)break}var d=i||o;if(d)return this.tree.setFocus(d),void this.tree.reveal(d,.5)}n.autoFocusFirstEntry?(this.tree.focusFirst(),this.tree.reveal(this.tree.getFocus())):"number"===typeof n.autoFocusIndex?t.length>n.autoFocusIndex&&(this.tree.focusNth(n.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):n.autoFocusSecondEntry?t.length>1&&this.tree.focusNth(1):n.autoFocusLastEntry&&t.length>1&&this.tree.focusLast()},t.prototype.getHeight=function(e){var n=this,i=e.renderer;if(!e){var o=i.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*o:0}var r,s=0;this.layoutDimensions&&this.layoutDimensions.height&&(r=.4*(this.layoutDimensions.height-50)),(!r||r>t.MAX_ITEMS_HEIGHT)&&(r=t.MAX_ITEMS_HEIGHT);for(var a=e.entries.filter(function(t){return n.isElementVisible(e,t)}),u=this.options.maxItemsToShow||a.length,l=0;l<u&&l<a.length;l++){var c=i.getHeight(a[l]);if(!(s+c<=r))break;s+=c}return s},t.prototype.updateResultCount=function(e){this.resultCount.textContent=s["a"]({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results",e)},t.prototype.hide=function(e){this.isVisible()&&(this.visible=!1,r["D"](this.element),this.element.blur(),this.inputBox.value="",this.tree.setInput(null),this.inputElement.setAttribute("aria-haspopup","false"),this.treeContainer.style.height=(this.options.minItemsToShow?22*this.options.minItemsToShow:0)+"px",this.progressBar.stop().hide(),this.tree.isDOMFocused()?this.tree.domBlur():this.inputBox.hasFocus()&&this.inputBox.blur(),0===e?this.callbacks.onOk():this.callbacks.onCancel(),this.callbacks.onHide&&this.callbacks.onHide(e))},t.prototype.setInput=function(e,t,n){this.isVisible()&&(this.getInput()&&this.onInputChanging(),this.setInputAndLayout(e,t),this.inputBox&&this.inputBox.setAriaLabel(n||we))},t.prototype.onInputChanging=function(){var e=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),r["f"](this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout(function(){r["I"](e.element,"content-changing")},500)},t.prototype.getInput=function(){return this.tree.getInput()},t.prototype.isVisible=function(){return this.visible},t.prototype.layout=function(e){this.layoutDimensions=e;var n=Math.min(.62*this.layoutDimensions.width,t.MAX_WIDTH);this.element&&(this.element.style.width=n+"px",this.element.style.marginLeft="-"+n/2+"px",this.inputContainer.style.width=n-12+"px")},t.prototype.gainingFocus=function(){this.isLoosingFocus=!1},t.prototype.loosingFocus=function(e){var t=this;if(this.isVisible()){var n=e.relatedTarget;!this.quickNavigateConfiguration&&r["E"](n,this.element)||(this.isLoosingFocus=!0,setTimeout(function(){if(t.isLoosingFocus&&!t.isDisposed){var e=t.callbacks.onFocusLost&&t.callbacks.onFocusLost();e||t.hide(1)}},0))}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.isDisposed=!0},t.MAX_WIDTH=600,t.MAX_ITEMS_HEIGHT=440,t}(S["a"]),Se=n("303e"),Le=n("a6d7"),Oe=function(){function e(e,t,n,i,o,r){this.codeEditor=e,this.themeService=r,this.create(t,n,i,o)}return e.prototype.create=function(e,t,n,i){this.domNode=document.createElement("div"),this.quickOpenWidget=new Ce(this.domNode,{onOk:e,onCancel:t,onType:n},{inputPlaceHolder:void 0,inputAriaLabel:i.inputAriaLabel,keyboardSupport:!0}),this.styler=Object(Le["d"])(this.quickOpenWidget,this.themeService,{pickerGroupForeground:Se["T"]}),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this)},e.prototype.setInput=function(e,t){this.quickOpenWidget.setInput(e,t)},e.prototype.getId=function(){return e.ID},e.prototype.getDomNode=function(){return this.domNode},e.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose()},e.prototype.show=function(e){this.visible=!0;var t=this.codeEditor.getLayoutInfo();t&&this.quickOpenWidget.layout(new r["b"](t.width,t.height)),this.quickOpenWidget.show(e),this.codeEditor.layoutOverlayWidget(this)},e.prototype.getPosition=function(){return this.visible?{preference:2}:null},e.ID="editor.contrib.quickOpenEditorWidget",e}(),xe=n("b7d0");n.d(t,"a",function(){return Ee});var Ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),De=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},ke=function(e,t){return function(n,i){t(n,i,e)}},Ie=function(){function e(e,t){this.themeService=t,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=e}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},e.prototype.run=function(e){var t=this;this.widget&&(this.widget.destroy(),this.widget=null);var n=function(e){t.clearDecorations(),e&&t.lastKnownEditorSelection&&(t.editor.setSelection(t.lastKnownEditorSelection),t.editor.revealRangeInCenterIfOutsideViewport(t.lastKnownEditorSelection,0)),t.lastKnownEditorSelection=null,document.activeElement!==document.body&&e||t.editor.focus()};this.widget=new Oe(this.editor,function(){return n(!1)},function(){return n(!0)},function(n){t.widget.setInput(e.getModel(n),e.getAutoFocus(n))},{inputAriaLabel:e.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},e.prototype.decorateLine=function(t,n){var i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var o=[{range:t,options:e._RANGE_HIGHLIGHT_DECORATION}],r=n.deltaDecorations(i,o);this.rangeHighlightDecorationId=r[0]},e.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},e.ID="editor.controller.quickOpenController",e._RANGE_HIGHLIGHT_DECORATION=o["a"].register({className:"rangeHighlight",isWholeLine:!0}),e=De([ke(1,xe["c"])],e),e}(),Ee=function(e){function t(t,n){var i=e.call(this,n)||this;return i._inputAriaLabel=t,i}return Ne(t,e),t.prototype.getController=function(e){return Ie.get(e)},t.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e)},getAutoFocus:function(e){return t.getAutoFocus(e)}})},t}(i["b"]);Object(i["h"])(Ie)},af40:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}return e}()},b055:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("8ae8");function o(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===i["a"].ICodeEditor}},b0cd:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var i=n("4b76"),o=n("0a0f"),r=(i["a"],Object(o["c"])("notificationService")),s=function(){function e(){}return e}()},b1ca:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("themeService")},b223:function(e,t,n){},b272:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("3742"),o=n("2c29"),r=n("2e5d"),s=n("f85a"),a=n("6a89"),u=function(){function e(){}return e.deleteRight=function(e,t,n,i){for(var r=[],u=3!==e,l=0,c=i.length;l<c;l++){var d=i[l],h=d;if(h.isEmpty()){var p=d.getPosition(),f=s["a"].right(t,n,p.lineNumber,p.column);h=new a["a"](f.lineNumber,f.column,p.lineNumber,p.column)}h.isEmpty()?r[l]=null:(h.startLineNumber!==h.endLineNumber&&(u=!0),r[l]=new o["a"](h,""))}return[u,r]},e._isAutoClosingPairDelete=function(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var i=0,o=n.length;i<o;i++){var s=n[i],a=s.getPosition();if(!s.isEmpty())return!1;var u=t.getLineContent(a.lineNumber),l=u[a.column-2],c=e.autoClosingPairsOpen2.get(l);if(!c)return!1;if(Object(r["g"])(l)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;for(var d=u[a.column-1],h=!1,p=0,f=c;p<f.length;p++){var g=f[p];g.open===l&&g.close===d&&(h=!0)}if(!h)return!1}return!0},e._runAutoClosingPairDelete=function(e,t,n){for(var i=[],r=0,s=n.length;r<s;r++){var u=n[r].getPosition(),l=new a["a"](u.lineNumber,u.column-1,u.lineNumber,u.column+1);i[r]=new o["a"](l,"")}return[!0,i]},e.deleteLeft=function(e,t,n,u){if(this._isAutoClosingPairDelete(t,n,u))return this._runAutoClosingPairDelete(t,n,u);for(var l=[],c=2!==e,d=0,h=u.length;d<h;d++){var p=u[d],f=p;if(f.isEmpty()){var g=p.getPosition();if(t.useTabStops&&g.column>1){var m=n.getLineContent(g.lineNumber),v=i["q"](m),_=-1===v?m.length+1:v+1;if(g.column<=_){var b=r["a"].visibleColumnFromColumn2(t,n,g),y=r["a"].prevIndentTabStop(b,t.indentSize),w=r["a"].columnFromVisibleColumn2(t,n,g.lineNumber,y);f=new a["a"](g.lineNumber,w,g.lineNumber,g.column)}else f=new a["a"](g.lineNumber,g.column-1,g.lineNumber,g.column)}else{var C=s["a"].left(t,n,g.lineNumber,g.column);f=new a["a"](C.lineNumber,C.column,g.lineNumber,g.column)}}f.isEmpty()?l[d]=null:(f.startLineNumber!==f.endLineNumber&&(c=!0),l[d]=new o["a"](f,""))}return[c,l]},e.cut=function(e,t,n){for(var i=[],s=0,u=n.length;s<u;s++){var l=n[s];if(l.isEmpty())if(e.emptySelectionClipboard){var c=l.getPosition(),d=void 0,h=void 0,p=void 0,f=void 0;c.lineNumber<t.getLineCount()?(d=c.lineNumber,h=1,p=c.lineNumber+1,f=1):c.lineNumber>1?(d=c.lineNumber-1,h=t.getLineMaxColumn(c.lineNumber-1),p=c.lineNumber,f=t.getLineMaxColumn(c.lineNumber)):(d=c.lineNumber,h=1,p=c.lineNumber,f=t.getLineMaxColumn(c.lineNumber));var g=new a["a"](d,h,p,f);g.isEmpty()?i[s]=null:i[s]=new o["a"](g,"")}else i[s]=null;else i[s]=new o["a"](l,"")}return new r["e"](0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}()},b2cc:function(e,t,n){"use strict";n.d(t,"a",function(){return _}),n.d(t,"c",function(){return b}),n.d(t,"b",function(){return y}),n.d(t,"j",function(){return w}),n.d(t,"e",function(){return C}),n.d(t,"g",function(){return S}),n.d(t,"f",function(){return L}),n.d(t,"i",function(){return O}),n.d(t,"h",function(){return x}),n.d(t,"d",function(){return i});var i,o=n("fdcc"),r=n("6d8e"),s=n("5717"),a=n("7061"),u=n("1b69"),l=n("b78f"),c=n("7e32"),d=n("9e74"),h=n("4fc3"),p=n("9eb8"),f=n("89cd"),g=n("5d75"),m=n("ef8e"),v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=function(){function e(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menubarOpts=e.menubarOpts,this._description=e.description}return e.prototype.register=function(){var e=this;if(this._menubarOpts&&c["c"].appendMenuItem(this._menubarOpts.menuId,{group:this._menubarOpts.group,command:{id:this.id,title:this._menubarOpts.title},when:this._menubarOpts.when,order:this._menubarOpts.order}),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?h["a"].and(t,this.precondition):this.precondition),p["a"].registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n)},weight:this._kbOpts.weight,when:t,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else d["a"].registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},e}(),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return v(t,e),t.bindToContribution=function(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._callback=e.handler,n}return v(n,t),n.prototype.runEditorCommand=function(t,n,i){var o=e(n);o&&this._callback(e(n),i)},n}(t)},t.prototype.runCommand=function(e,t){var n=this,i=e.get(s["a"]),o=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(o)return o.invokeWithinContext(function(e){var i=e.get(h["c"]);if(i.contextMatchesRules(Object(m["m"])(n.precondition)))return n.runEditorCommand(e,o,t)})},t}(_),y=function(e){function t(t){var n=e.call(this,t)||this;return n.label=t.label,n.alias=t.alias,n.menuOpts=t.menuOpts,n}return v(t,e),t.prototype.register=function(){this.menuOpts&&c["c"].appendMenuItem(7,{command:{id:this.id,title:this.label},when:h["a"].and(this.precondition,this.menuOpts.when),group:this.menuOpts.group,order:this.menuOpts.order}),e.prototype.register.call(this)},t.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},t.prototype.reportTelemetry=function(e,t){e.get(g["a"]).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},t}(b);function w(e,t){d["a"].registerCommand(e,function(e,n){return t(e,n||{})})}function C(e,t){w(e,function(e,n){var i=n.resource,s=n.position;if(!(i instanceof r["a"]))throw Object(o["b"])("resource");if(!a["a"].isIPosition(s))throw Object(o["b"])("position");var c=e.get(u["a"]).getModel(i);if(c){var d=a["a"].lift(s);return t(c,d,n)}return e.get(l["a"]).createModelReference(i).then(function(e){return new Promise(function(i,o){try{var r=t(e.object.textEditorModel,a["a"].lift(s),n);i(r)}catch(u){o(u)}}).finally(function(){e.dispose()})})})}function S(e){return D.INSTANCE.registerEditorCommand(e),e}function L(e){D.INSTANCE.registerEditorAction(new e)}function O(e){D.INSTANCE.registerEditorAction(e)}function x(e){D.INSTANCE.registerEditorContribution(e)}(function(e){function t(e){return D.INSTANCE.getEditorCommand(e)}function n(){return D.INSTANCE.getEditorActions()}function i(){return D.INSTANCE.getEditorContributions()}e.getEditorCommand=t,e.getEditorActions=n,e.getEditorContributions=i})(i||(i={}));var N={EditorCommonContributions:"editor.contributions"},D=function(){function e(){this.editorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return e.prototype.registerEditorContribution=function(e){this.editorContributions.push(e)},e.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},e.prototype.getEditorActions=function(){return this.editorActions.slice(0)},e.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},e.INSTANCE=new e,e}();f["a"].add(N.EditorCommonContributions,D.INSTANCE)},b329:function(e,t,n){},b3b2:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveWordCommand",function(){return m}),n.d(t,"WordLeftCommand",function(){return v}),n.d(t,"WordRightCommand",function(){return _}),n.d(t,"CursorWordStartLeft",function(){return b}),n.d(t,"CursorWordEndLeft",function(){return y}),n.d(t,"CursorWordLeft",function(){return w}),n.d(t,"CursorWordStartLeftSelect",function(){return C}),n.d(t,"CursorWordEndLeftSelect",function(){return S}),n.d(t,"CursorWordLeftSelect",function(){return L}),n.d(t,"CursorWordAccessibilityLeft",function(){return O}),n.d(t,"CursorWordAccessibilityLeftSelect",function(){return x}),n.d(t,"CursorWordStartRight",function(){return N}),n.d(t,"CursorWordEndRight",function(){return D}),n.d(t,"CursorWordRight",function(){return k}),n.d(t,"CursorWordStartRightSelect",function(){return I}),n.d(t,"CursorWordEndRightSelect",function(){return E}),n.d(t,"CursorWordRightSelect",function(){return M}),n.d(t,"CursorWordAccessibilityRight",function(){return T}),n.d(t,"CursorWordAccessibilityRightSelect",function(){return P}),n.d(t,"DeleteWordCommand",function(){return R}),n.d(t,"DeleteWordLeftCommand",function(){return A}),n.d(t,"DeleteWordRightCommand",function(){return F}),n.d(t,"DeleteWordStartLeft",function(){return j}),n.d(t,"DeleteWordEndLeft",function(){return W}),n.d(t,"DeleteWordLeft",function(){return V}),n.d(t,"DeleteWordStartRight",function(){return B}),n.d(t,"DeleteWordEndRight",function(){return H}),n.d(t,"DeleteWordRight",function(){return z});var i=n("b2cc"),o=n("2c29"),r=n("2e5d"),s=n("d48d"),a=n("e6ff"),u=n("7061"),l=n("6a89"),c=n("8025"),d=n("c101"),h=n("4779"),p=n("4fc3"),f=n("fd49"),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n._wordNavigationType=t.wordNavigationType,n}return g(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var o=t.getConfiguration(),s=Object(a["a"])(o.wordSeparators),l=t.getModel(),c=t.getSelections(),d=c.map(function(e){var t=new u["a"](e.positionLineNumber,e.positionColumn),n=i._move(s,l,t,i._wordNavigationType);return i._moveTo(e,n,i._inSelectionMode)});if(t._getCursors().setStates("moveWordCommand",0,d.map(function(e){return r["d"].fromModelSelection(e)})),1===d.length){var h=new u["a"](d[0].positionLineNumber,d[0].positionColumn);t.revealPosition(h,0)}}},t.prototype._moveTo=function(e,t,n){return n?new c["a"](e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new c["a"](t.lineNumber,t.column,t.lineNumber,t.column)},t}(i["c"]),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype._move=function(e,t,n,i){return s["a"].moveWordLeft(e,t,n,i)},t}(m),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype._move=function(e,t,n,i){return s["a"].moveWordRight(e,t,n,i)},t}(m),b=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:d["a"].textInputFocus,primary:2063,mac:{primary:527},weight:100}})||this}return g(t,e),t}(v),y=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return g(t,e),t}(v),w=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return g(t,e),t}(v),C=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:d["a"].textInputFocus,primary:3087,mac:{primary:1551},weight:100}})||this}return g(t,e),t}(v),S=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return g(t,e),t}(v),L=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return g(t,e),t}(v),O=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:p["a"].and(d["a"].textInputFocus,h["a"]),primary:2063,mac:{primary:527},weight:101}})||this}return g(t,e),t.prototype._move=function(t,n,i,o){return e.prototype._move.call(this,Object(a["a"])(f["a"].wordSeparators),n,i,o)},t}(v),x=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:p["a"].and(d["a"].textInputFocus,h["a"]),primary:3087,mac:{primary:1551},weight:101}})||this}return g(t,e),t.prototype._move=function(t,n,i,o){return e.prototype._move.call(this,Object(a["a"])(f["a"].wordSeparators),n,i,o)},t}(v),N=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return g(t,e),t}(_),D=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:d["a"].textInputFocus,primary:2065,mac:{primary:529},weight:100}})||this}return g(t,e),t}(_),k=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return g(t,e),t}(_),I=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return g(t,e),t}(_),E=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:d["a"].textInputFocus,primary:3089,mac:{primary:1553},weight:100}})||this}return g(t,e),t}(_),M=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return g(t,e),t}(_),T=function(e){function t(){return e.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:p["a"].and(d["a"].textInputFocus,h["a"]),primary:2065,mac:{primary:529},weight:101}})||this}return g(t,e),t.prototype._move=function(t,n,i,o){return e.prototype._move.call(this,Object(a["a"])(f["a"].wordSeparators),n,i,o)},t}(_),P=function(e){function t(){return e.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:p["a"].and(d["a"].textInputFocus,h["a"]),primary:3089,mac:{primary:1553},weight:101}})||this}return g(t,e),t.prototype._move=function(t,n,i,o){return e.prototype._move.call(this,Object(a["a"])(f["a"].wordSeparators),n,i,o)},t}(_),R=function(e){function t(t){var n=e.call(this,t)||this;return n._whitespaceHeuristics=t.whitespaceHeuristics,n._wordNavigationType=t.wordNavigationType,n}return g(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this;if(t.hasModel()){var r=t.getConfiguration(),s=Object(a["a"])(r.wordSeparators),u=t.getModel(),l=t.getSelections(),c=l.map(function(e){var t=i._delete(s,u,e,i._whitespaceHeuristics,i._wordNavigationType);return new o["a"](t,"")});t.pushUndoStop(),t.executeCommands(this.id,c),t.pushUndoStop()}},t}(i["c"]),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype._delete=function(e,t,n,i,o){var r=s["a"].deleteWordLeft(e,t,n,i,o);return r||new l["a"](1,1,1,1)},t}(R),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype._delete=function(e,t,n,i,o){var r=s["a"].deleteWordRight(e,t,n,i,o);if(r)return r;var a=t.getLineCount(),u=t.getLineMaxColumn(a);return new l["a"](a,u,a,u)},t}(R),j=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:d["a"].writable})||this}return g(t,e),t}(A),W=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:d["a"].writable})||this}return g(t,e),t}(A),V=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:d["a"].writable,kbOpts:{kbExpr:d["a"].textInputFocus,primary:2049,mac:{primary:513},weight:100}})||this}return g(t,e),t}(A),B=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:d["a"].writable})||this}return g(t,e),t}(F),H=function(e){function t(){return e.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:d["a"].writable})||this}return g(t,e),t}(F),z=function(e){function t(){return e.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:d["a"].writable,kbOpts:{kbExpr:d["a"].textInputFocus,primary:2068,mac:{primary:532},weight:100}})||this}return g(t,e),t}(F);Object(i["g"])(new b),Object(i["g"])(new y),Object(i["g"])(new w),Object(i["g"])(new C),Object(i["g"])(new S),Object(i["g"])(new L),Object(i["g"])(new N),Object(i["g"])(new D),Object(i["g"])(new k),Object(i["g"])(new I),Object(i["g"])(new E),Object(i["g"])(new M),Object(i["g"])(new O),Object(i["g"])(new x),Object(i["g"])(new T),Object(i["g"])(new P),Object(i["g"])(new j),Object(i["g"])(new W),Object(i["g"])(new V),Object(i["g"])(new B),Object(i["g"])(new H),Object(i["g"])(new z)},b400:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return u});var i,o,r=n("0a0f"),s=n("dff7"),a=n("4b76");(function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"})(i||(i={})),function(e){function t(e,t){return t-e}e.compare=t;var n=Object.create(null);function i(e){return n[e]||""}function o(t){switch(t){case a["a"].Error:return e.Error;case a["a"].Warning:return e.Warning;case a["a"].Info:return e.Info;case a["a"].Ignore:return e.Hint}}function r(t){switch(t){case e.Error:return a["a"].Error;case e.Warning:return a["a"].Warning;case e.Info:return a["a"].Info;case e.Hint:return a["a"].Ignore}}n[e.Error]=Object(s["a"])("sev.error","Error"),n[e.Warning]=Object(s["a"])("sev.warning","Warning"),n[e.Info]=Object(s["a"])("sev.info","Info"),e.toString=i,e.fromSeverity=o,e.toSeverity=r}(i||(i={})),function(e){var t="";function n(e){return o(e,!0)}function o(e,n){var o=[t];return e.source?o.push(e.source.replace("¦","¦")):o.push(t),e.code?o.push(e.code.replace("¦","¦")):o.push(t),void 0!==e.severity&&null!==e.severity?o.push(i.toString(e.severity)):o.push(t),e.message&&n?o.push(e.message.replace("¦","¦")):o.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?o.push(e.startLineNumber.toString()):o.push(t),void 0!==e.startColumn&&null!==e.startColumn?o.push(e.startColumn.toString()):o.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?o.push(e.endLineNumber.toString()):o.push(t),void 0!==e.endColumn&&null!==e.endColumn?o.push(e.endColumn.toString()):o.push(t),o.push(t),o.join("¦")}e.makeKey=n,e.makeKeyOptionalMessage=o}(o||(o={}));var u=Object(r["c"])("markerService")},b539:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("editorProgressService")},b574:function(e,t,n){"use strict";n.r(t);var i=n("a666"),o=n("3742"),r=n("b2cc"),s=n("6a89"),a=n("8025"),u=n("c101"),l=n("4153"),c=n("4fc3"),d=n("d3d7"),h=n("e8e3"),p=(n("7457"),n("d3f49")),f=n("b57f"),g=n("f577"),m=n("1165"),v=n("0a0f"),_=n("b800"),b=n("dff7"),y=n("32b8"),w=n("82c9"),C=n("70cb"),S=n("6d8e"),L="code-workspace";function O(e){return e instanceof S["a"]}function x(e){return e.configuration?{configPath:e.configuration,id:e.id}:1===e.folders.length?e.folders[0].uri:void 0}var N=function(){function e(e){this._delegates=e}return e.prototype.resolve=function(e){for(var t=0,n=this._delegates;t<n.length;t++){var i=n[t],o=i.resolve(e);if(void 0!==o)return o}},e}(),D=function(){function e(e,t){this._model=e,this._selection=t}return e.prototype.resolve=function(e){var t=e.name;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){var n=this._model.getValueInRange(this._selection)||void 0;if(n&&this._selection.startLineNumber!==this._selection.endLineNumber&&e.snippet){var i=this._model.getLineContent(this._selection.startLineNumber),r=Object(o["s"])(i,0,this._selection.startColumn-1),s=r;e.snippet.walk(function(t){return t!==e&&(t instanceof _["d"]&&(s=Object(o["s"])(t.value.split(/\r\n|\r|\n/).pop())),!0)});var a=Object(o["b"])(s,r);n=n.replace(/(\r\n|\r|\n)(.*)/g,function(e,t,n){return""+t+s.substr(a)+n})}return n}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){var u=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return u&&u.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0},e}(),k=function(){function e(e,t){this._labelService=e,this._model=t}return e.prototype.resolve=function(e){var t=e.name;if("TM_FILENAME"===t)return y["basename"](this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){var n=y["basename"](this._model.uri.fsPath),i=n.lastIndexOf(".");return i<=0?n:n.slice(0,i)}return"TM_DIRECTORY"===t&&this._labelService?"."===y["dirname"](this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(w["d"])(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0},e}(),I=function(){function e(e,t,n){this._clipboardText=e,this._selectionIdx=t,this._selectionCount=n}return e.prototype.resolve=function(e){if("CLIPBOARD"===e.name&&this._clipboardText){var t=this._clipboardText.split(/\r\n|\n|\r/).filter(function(e){return!Object(o["u"])(e)});return t.length===this._selectionCount?t[this._selectionIdx]:this._clipboardText}},e}(),E=function(){function e(e){this._model=e}return e.prototype.resolve=function(e){var t=e.name,n=this._model.getLanguageIdentifier(),i=C["a"].getComments(n.id);if(i)return"LINE_COMMENT"===t?i.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?i.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&i.blockCommentEndToken||void 0},e}(),M=function(){function e(){}return e.prototype.resolve=function(t){var n=t.name;return"CURRENT_YEAR"===n?String((new Date).getFullYear()):"CURRENT_YEAR_SHORT"===n?String((new Date).getFullYear()).slice(-2):"CURRENT_MONTH"===n?Object(o["C"])((new Date).getMonth().valueOf()+1,2):"CURRENT_DATE"===n?Object(o["C"])((new Date).getDate().valueOf(),2):"CURRENT_HOUR"===n?Object(o["C"])((new Date).getHours().valueOf(),2):"CURRENT_MINUTE"===n?Object(o["C"])((new Date).getMinutes().valueOf(),2):"CURRENT_SECOND"===n?Object(o["C"])((new Date).getSeconds().valueOf(),2):"CURRENT_DAY_NAME"===n?e.dayNames[(new Date).getDay()]:"CURRENT_DAY_NAME_SHORT"===n?e.dayNamesShort[(new Date).getDay()]:"CURRENT_MONTH_NAME"===n?e.monthNames[(new Date).getMonth()]:"CURRENT_MONTH_NAME_SHORT"===n?e.monthNamesShort[(new Date).getMonth()]:"CURRENT_SECONDS_UNIX"===n?String(Math.floor(Date.now()/1e3)):void 0},e.dayNames=[b["a"]("Sunday","Sunday"),b["a"]("Monday","Monday"),b["a"]("Tuesday","Tuesday"),b["a"]("Wednesday","Wednesday"),b["a"]("Thursday","Thursday"),b["a"]("Friday","Friday"),b["a"]("Saturday","Saturday")],e.dayNamesShort=[b["a"]("SundayShort","Sun"),b["a"]("MondayShort","Mon"),b["a"]("TuesdayShort","Tue"),b["a"]("WednesdayShort","Wed"),b["a"]("ThursdayShort","Thu"),b["a"]("FridayShort","Fri"),b["a"]("SaturdayShort","Sat")],e.monthNames=[b["a"]("January","January"),b["a"]("February","February"),b["a"]("March","March"),b["a"]("April","April"),b["a"]("May","May"),b["a"]("June","June"),b["a"]("July","July"),b["a"]("August","August"),b["a"]("September","September"),b["a"]("October","October"),b["a"]("November","November"),b["a"]("December","December")],e.monthNamesShort=[b["a"]("JanuaryShort","Jan"),b["a"]("FebruaryShort","Feb"),b["a"]("MarchShort","Mar"),b["a"]("AprilShort","Apr"),b["a"]("MayShort","May"),b["a"]("JuneShort","Jun"),b["a"]("JulyShort","Jul"),b["a"]("AugustShort","Aug"),b["a"]("SeptemberShort","Sep"),b["a"]("OctoberShort","Oct"),b["a"]("NovemberShort","Nov"),b["a"]("DecemberShort","Dec")],e}(),T=function(){function e(e){this._workspaceService=e}return e.prototype.resolve=function(e){if("WORKSPACE_NAME"===e.name&&this._workspaceService){var t=x(this._workspaceService.getWorkspace());if(t){if(O(t))return y["basename"](t.path);var n=y["basename"](t.configPath.path);return Object(o["m"])(n,L)&&(n=n.substr(0,n.length-L.length-1)),n}}},e}(),P=n("b7d0"),R=n("303e"),A=n("47cb");Object(P["f"])(function(e,t){function n(t){var n=e.getColor(t);return n?n.toString():"transparent"}t.addRule(".monaco-editor .snippet-placeholder { background-color: "+n(R["Rb"])+"; outline-color: "+n(R["Sb"])+"; }"),t.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+n(R["Pb"])+"; outline-color: "+n(R["Qb"])+"; }")});var F=function(){function e(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Object(h["l"])(t.placeholders,_["b"].compareByIndex),this._placeholderGroupsIdx=-1}return e.prototype.dispose=function(){if(this._placeholderDecorations){var e=[];this._placeholderDecorations.forEach(function(t){return e.push(t)}),this._editor.deltaDecorations(e,[])}this._placeholderGroups.length=0},e.prototype._initDecorations=function(){var t=this;if(!this._placeholderDecorations){this._placeholderDecorations=new Map;var n=this._editor.getModel();this._editor.changeDecorations(function(i){for(var o=0,r=t._snippet.placeholders;o<r.length;o++){var a=r[o],u=t._snippet.offset(a),l=t._snippet.fullLen(a),c=s["a"].fromPositions(n.getPositionAt(t._offset+u),n.getPositionAt(t._offset+u+l)),d=a.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive,h=i.addDecoration(c,d);t._placeholderDecorations.set(a,h)}})}},e.prototype.move=function(t){var n=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var i=[],o=0,r=this._placeholderGroups[this._placeholderGroupsIdx];o<r.length;o++){var s=r[o];if(s.transform){var u=this._placeholderDecorations.get(s),l=this._editor.getModel().getDecorationRange(u),c=this._editor.getModel().getValueInRange(l);i.push(p["a"].replaceMove(l,s.transform.resolve(c)))}}i.length>0&&this._editor.executeEdits("snippet.placeholderTransform",i)}var d=!1;!0===t&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,d=!0):!1===t&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,d=!0);var h=this._editor.getModel().changeDecorations(function(t){for(var i=new Set,o=[],r=0,s=n._placeholderGroups[n._placeholderGroupsIdx];r<s.length;r++){var u=s[r],l=n._placeholderDecorations.get(u),c=n._editor.getModel().getDecorationRange(l);o.push(new a["a"](c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),d=d&&n._hasPlaceholderBeenCollapsed(u),t.changeDecorationOptions(l,u.isFinalTabstop?e._decor.activeFinal:e._decor.active),i.add(u);for(var h=0,p=n._snippet.enclosingPlaceholders(u);h<p.length;h++){var f=p[h],g=n._placeholderDecorations.get(f);t.changeDecorationOptions(g,f.isFinalTabstop?e._decor.activeFinal:e._decor.active),i.add(f)}}return n._placeholderDecorations.forEach(function(n,o){i.has(o)||t.changeDecorationOptions(n,o.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive)}),o});return d?this.move(t):h},e.prototype._hasPlaceholderBeenCollapsed=function(e){var t=e;while(t){if(t instanceof _["b"]){var n=this._placeholderDecorations.get(t),i=this._editor.getModel().getDecorationRange(n);if(i.isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1},Object.defineProperty(e.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),e.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t<n.length;t++)for(var i=n[t],o=void 0,r=0,s=i;r<s.length;r++){var a=s[r];if(a.isFinalTabstop)break;o||(o=[],e.set(a.index,o));var u=this._placeholderDecorations.get(a),l=this._editor.getModel().getDecorationRange(u);if(!l){e.delete(a.index);break}o.push(l)}return e},Object.defineProperty(e.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){var n=this,i=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(o){for(var r=0,a=n._placeholderGroups[n._placeholderGroupsIdx];r<a.length;r++){var u=a[r],l=t.shift();console.assert(!l._placeholderDecorations);for(var c=l._snippet.placeholderInfo.last.index,d=0,p=l._snippet.placeholderInfo.all;d<p.length;d++){var f=p[d];f.isFinalTabstop?f.index=u.index+(c+1)/n._nestingLevel:f.index=u.index+f.index/n._nestingLevel}n._snippet.replace(u,l._snippet.children);var g=n._placeholderDecorations.get(u);o.removeDecoration(g),n._placeholderDecorations.delete(u);for(var m=0,v=l._snippet.placeholders;m<v.length;m++){var b=v[m],y=l._snippet.offset(b),w=l._snippet.fullLen(b),C=s["a"].fromPositions(i.getPositionAt(l._offset+y),i.getPositionAt(l._offset+y+w)),S=o.addDecoration(C,e._decor.inactive);n._placeholderDecorations.set(b,S)}}n._placeholderGroups=Object(h["l"])(n._snippet.placeholders,_["b"].compareByIndex)})},e._decor={active:f["a"].register({stickiness:0,className:"snippet-placeholder"}),inactive:f["a"].register({stickiness:1,className:"snippet-placeholder"}),activeFinal:f["a"].register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:f["a"].register({stickiness:1,className:"finish-snippet-placeholder"})},e}(),j={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},W=function(){function e(e,t,n){void 0===n&&(n=j),this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}return e.adjustWhitespace=function(e,t,n){var i=e.getLineContent(t.lineNumber),r=Object(o["s"])(i,0,t.column-1);n.walk(function(t){if(t instanceof _["d"]&&!(t.parent instanceof _["a"])){for(var n=t.value.split(/\r\n|\r|\n/),i=1;i<n.length;i++){var s=Object(o["s"])(n[i]);n[i]=e.normalizeIndentation(r+s)+n[i].substr(s.length)}var a=n.join(e.getEOL());a!==t.value&&t.parent.replace(t,[new _["d"](a)])}return!0})},e.adjustSelection=function(e,t,n,i){if(0!==n||0!==i){var o=t.positionLineNumber,r=t.positionColumn,s=r-n,u=r+i,l=e.validateRange({startLineNumber:o,startColumn:s,endLineNumber:o,endColumn:u});t=a["a"].createWithDirection(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn,t.getDirection())}return t},e.createEditsAndSnippets=function(t,n,i,o,r,a,u){var l=[],c=[];if(!t.hasModel())return{edits:l,snippets:c};var d=t.getModel(),h=t.invokeWithinContext(function(e){return e.get(m["a"],v["d"])}),f=t.invokeWithinContext(function(e){return new k(e.get(A["a"],v["d"]),d)}),b=t.invokeWithinContext(function(e){return e.get(g["a"],v["d"])});u=u||b&&b.readTextSync();for(var y=0,w=d.getValueInRange(e.adjustSelection(d,t.getSelection(),i,0)),C=d.getValueInRange(e.adjustSelection(d,t.getSelection(),0,o)),S=d.getLineFirstNonWhitespaceColumn(t.getSelection().positionLineNumber),L=t.getSelections().map(function(e,t){return{selection:e,idx:t}}).sort(function(e,t){return s["a"].compareRangesUsingStarts(e.selection,t.selection)}),O=0,x=L;O<x.length;O++){var P=x[O],R=P.selection,j=P.idx,W=e.adjustSelection(d,R,i,0),V=e.adjustSelection(d,R,0,o);w!==d.getValueInRange(W)&&(W=R),C!==d.getValueInRange(V)&&(V=R);var B=R.setStartPosition(W.startLineNumber,W.startColumn).setEndPosition(V.endLineNumber,V.endColumn),H=(new _["c"]).parse(n,!0,r),z=B.getStartPosition();(a||j>0&&S!==d.getLineFirstNonWhitespaceColumn(R.positionLineNumber))&&e.adjustWhitespace(d,z,H),H.resolveVariables(new N([f,new I(u,j,L.length),new D(d,R),new E(d),new M,new T(h)]));var U=d.getOffsetAt(z)+y;y+=H.toString().length-d.getValueLengthInRange(B),l[j]=p["a"].replace(B,H.toString()),c[j]=new F(t,H,U)}return{edits:l,snippets:c}},e.prototype.dispose=function(){Object(i["f"])(this._snippets)},e.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},e.prototype.insert=function(){var t=this;if(this._editor.hasModel()){var n=e.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),i=n.edits,o=n.snippets;this._snippets=o,this._editor.executeEdits("snippet",i,function(e){return t._snippets[0].hasPlaceholder?t._move(!0):e.map(function(e){return a["a"].fromPositions(e.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])}},e.prototype.merge=function(t,n){var i=this;if(void 0===n&&(n=j),this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var o=e.createEditsAndSnippets(this._editor,t,n.overwriteBefore,n.overwriteAfter,!0,n.adjustWhitespace,n.clipboardText),r=o.edits,s=o.snippets;this._editor.executeEdits("snippet",r,function(e){for(var t=0,n=i._snippets;t<n.length;t++){var o=n[t];o.merge(s)}return console.assert(0===s.length),i._snippets[0].hasPlaceholder?i._move(void 0):e.map(function(e){return a["a"].fromPositions(e.range.getEndPosition())})})}},e.prototype.next=function(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},e.prototype.prev=function(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},e.prototype._move=function(e){for(var t=[],n=0,i=this._snippets;n<i.length;n++){var o=i[n],r=o.move(e);t.push.apply(t,r)}return t},Object.defineProperty(e.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),e.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;for(var t=new Map,n=function(n){var i=n.computePossibleSelections();if(0===t.size&&i.forEach(function(n,i){n.sort(s["a"].compareRangesUsingStarts);for(var o=0,r=e;o<r.length;o++){var a=r[o];if(n[0].containsRange(a)){t.set(i,[]);break}}}),0===t.size)return{value:!1};t.forEach(function(e,t){e.push.apply(e,i.get(t))})},i=0,o=this._snippets;i<o.length;i++){var r=o[i],a=n(r);if("object"===typeof a)return a.value}return e.sort(s["a"].compareRangesUsingStarts),t.forEach(function(n,i){if(n.length===e.length){n.sort(s["a"].compareRangesUsingStarts);for(var o=0;o<n.length;o++)if(!n[o].containsRange(e[o]))return void t.delete(i)}else t.delete(i)}),t.size>0},e}();n.d(t,"SnippetController2",function(){return U});var V=function(){return V=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},V.apply(this,arguments)},B=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},H=function(e,t){return function(n,i){t(n,i,e)}},z={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},U=function(){function e(t,n,o){this._editor=t,this._logService=n,this._snippetListener=new i["b"],this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(o),this._hasNextTabstop=e.HasNextTabstop.bindTo(o),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(o)}return e.get=function(e){return e.getContribution("snippetController2")},e.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(i["f"])(this._session),this._snippetListener.dispose()},e.prototype.getId=function(){return"snippetController2"},e.prototype.insert=function(e,t){try{this._doInsert(e,"undefined"===typeof t?z:V({},z,t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},e.prototype._doInsert=function(e,t){var n=this;this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new W(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(e){return e.isFlush&&n.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return n.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return n._updateState()})))},e.prototype._updateState=function(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}},e.prototype._handleChoice=function(){var e=this;if(this._session&&this._editor.hasModel()){var t=this._session.choice;if(t){if(this._currentChoice!==t){this._currentChoice=t,this._editor.setSelections(this._editor.getSelections().map(function(e){return a["a"].fromPositions(e.getStartPosition())}));var n=t.options[0];Object(l["f"])(this._editor,t.options.map(function(t,i){return{kind:13,label:t.value,insertText:t.value,sortText:Object(o["F"])("a",i+1),range:s["a"].fromPositions(e._editor.getPosition(),e._editor.getPosition().delta(0,n.value.length))}}))}}else this._currentChoice=void 0}else this._currentChoice=void 0},e.prototype.finish=function(){while(this._inSnippet.get())this.next()},e.prototype.cancel=function(e){void 0===e&&(e=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(i["f"])(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])},e.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},e.prototype.next=function(){this._session&&this._session.next(),this._updateState()},e.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},e.InSnippetMode=new c["d"]("inSnippetMode",!1),e.HasNextTabstop=new c["d"]("hasNextTabstop",!1),e.HasPrevTabstop=new c["d"]("hasPrevTabstop",!1),e=B([H(1,d["a"]),H(2,c["c"])],e),e}();Object(r["h"])(U);var K=r["c"].bindToContribution(U.get);Object(r["g"])(new K({id:"jumpToNextSnippetPlaceholder",precondition:c["a"].and(U.InSnippetMode,U.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:u["a"].editorTextFocus,primary:2}})),Object(r["g"])(new K({id:"jumpToPrevSnippetPlaceholder",precondition:c["a"].and(U.InSnippetMode,U.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:u["a"].editorTextFocus,primary:1026}})),Object(r["g"])(new K({id:"leaveSnippet",precondition:U.InSnippetMode,handler:function(e){return e.cancel(!0)},kbOpts:{weight:130,kbExpr:u["a"].editorTextFocus,primary:9,secondary:[1033]}})),Object(r["g"])(new K({id:"acceptSnippet",precondition:U.InSnippetMode,handler:function(e){return e.finish()}}))},b57f:function(e,t,n){"use strict";var i=n("fdcc"),o=n("308f"),r=n("a666"),s=n("3742"),a=n("6d8e"),u=n("fd49"),l=n("7061"),c=n("6a89"),d=n("8025"),h=n("3352"),p=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return e.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e}();function f(e){var t=e.getEOL();return"\n"===t?0:1}var g=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t}return e.prototype.undo=function(e){var t=f(e);e.setEOL(this.eol),this.eol=t},e.prototype.redo=function(e){var t=f(e);e.setEOL(this.eol),this.eol=t},e}(),m=function(){function e(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}return e.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},e.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=f(this.model),n=new g(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement()},e.prototype.pushEditOperation=function(t,n,i){this.future=[];var o=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof p?o=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(o=new p(this.model.getAlternativeVersionId(),t),this.currentOpenStackElement=o);var r={operations:this.model.applyEdits(n)};return o.editOperations.push(r),o.afterCursorState=e._computeCursorState(i,r.operations),o.afterVersionId=this.model.getVersionId(),o.afterCursorState},e._computeCursorState=function(e,t){try{return e?e(t):null}catch(n){return Object(i["e"])(n),null}},e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var e=this.past.pop();try{e.undo(this.model)}catch(t){return Object(i["e"])(t),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.canUndo=function(){return this.past.length>0||null!==this.currentOpenStackElement},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(t){return Object(i["e"])(t),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e.prototype.canRedo=function(){return this.future.length>0},e}(),v=function(){function e(){this.spacesDiff=0,this.looksLikeAlignment=!1}return e}();function _(e,t,n,i,o){var r;for(o.spacesDiff=0,o.looksLikeAlignment=!1,r=0;r<t&&r<i;r++){var s=e.charCodeAt(r),a=n.charCodeAt(r);if(s!==a)break}for(var u=0,l=0,c=r;c<t;c++){s=e.charCodeAt(c);32===s?u++:l++}var d=0,h=0;for(c=r;c<i;c++){a=n.charCodeAt(c);32===a?d++:h++}if(!(u>0&&l>0)&&!(d>0&&h>0)){var p=Math.abs(l-h),f=Math.abs(u-d);if(0===p)return o.spacesDiff=f,void(f>0&&0<=d-1&&d-1<e.length&&d<n.length&&32!==n.charCodeAt(d)&&32===e.charCodeAt(d-1)&&(o.looksLikeAlignment=!0));f%p!==0||(o.spacesDiff=f/p)}}function b(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),o=0,r=0,s="",a=0,u=[2,4,6,8,3,5,7],l=8,c=[0,0,0,0,0,0,0,0,0],d=new v,h=1;h<=i;h++){for(var p=e.getLineLength(h),f=e.getLineContent(h),g=p<=65536,m=!1,b=0,y=0,w=0,C=0,S=p;C<S;C++){var L=g?f.charCodeAt(C):e.getLineCharCode(h,C);if(9===L)w++;else{if(32!==L){m=!0,b=C;break}y++}}if(m&&(w>0?o++:y>1&&r++,_(s,a,f,b,d),!d.looksLikeAlignment||n&&t===d.spacesDiff)){var O=d.spacesDiff;O<=l&&c[O]++,s=f,a=b}}var x=n;o!==r&&(x=o<r);var N=t;if(x){var D=x?0:.1*i;u.forEach(function(e){var t=c[e];t>D&&(D=t,N=e)}),4===N&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(N=2)}return{insertSpaces:x,tabSize:N}}function y(e){return(1&e.metadata)>>>0}function w(e,t){e.metadata=254&e.metadata|t<<0}function C(e){return(2&e.metadata)>>>1===1}function S(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function L(e){return(4&e.metadata)>>>2===1}function O(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function x(e){return(8&e.metadata)>>>3===1}function N(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function D(e){return(48&e.metadata)>>>4}function k(e,t){e.metadata=207&e.metadata|t<<4}function I(e){return(64&e.metadata)>>>6===1}function E(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var M=function(){function e(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,w(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,O(this,!1),k(this,1),N(this,!1),E(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,S(this,!1)}return e.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;O(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),k(this,this.options.stickiness),N(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),E(this,this.options.collapseOnReplaceEdit)},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),T=new M(null,0,0);T.parent=T,T.left=T,T.right=T,w(T,0);var P=function(){function e(){this.root=T,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,t,n,i,o){return this.root===T?[]:z(this,e,t,n,i,o)},e.prototype.search=function(e,t,n){return this.root===T?[]:H(this,e,t,n)},e.prototype.collectNodesFromOwner=function(e){return V(this,e)},e.prototype.collectNodesPostOrder=function(){return B(this)},e.prototype.insert=function(e){U(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){q(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){var n=e,i=0;while(e!==this.root)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var o=n.start+i,r=n.end+i;n.setCachedOffsets(o,r,t)},e.prototype.acceptReplace=function(e,t,n,i){for(var o=j(this,e,e+t),r=0,s=o.length;r<s;r++){var a=o[r];q(this,a)}this._normalizeDeltaIfNecessary(),W(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(r=0,s=o.length;r<s;r++){a=o[r];a.start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,F(a,e,e+t,n,i),a.maxEnd=a.end,U(this,a)}this._normalizeDeltaIfNecessary()},e.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,R(this))},e}();function R(e){var t=e.root,n=0;while(t!==T)t.left===T||C(t.left)?t.right===T||C(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,Q(t),S(t,!0),S(t.left,!1),S(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;S(e.root,!1)}function A(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function F(e,t,n,i,o){var r=D(e),s=0===r||2===r,a=1===r||2===r,u=n-t,l=i,c=Math.min(u,l),d=e.start,h=!1,p=e.end,f=!1;t<=d&&p<=n&&I(e)&&(e.start=t,h=!0,e.end=t,f=!0);var g=o?1:u>0?2:0;if(!h&&A(d,s,t,g)&&(h=!0),!f&&A(p,a,t,g)&&(f=!0),c>0&&!o){g=u>l?2:0;!h&&A(d,s,t+c,g)&&(h=!0),!f&&A(p,a,t+c,g)&&(f=!0)}g=o?1:0;!h&&A(d,s,n,g)&&(e.start=t+l,h=!0),!f&&A(p,a,n,g)&&(e.end=t+l,f=!0);var m=l-u;h||(e.start=Math.max(0,d+m)),f||(e.end=Math.max(0,p+m)),e.start>e.end&&(e.end=e.start)}function j(e,t,n){var i=e.root,o=0,r=0,s=0,a=0,u=[],l=0;while(i!==T)if(C(i))S(i.left,!1),S(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else{if(!C(i.left)){if(r=o+i.maxEnd,r<t){S(i,!0);continue}if(i.left!==T){i=i.left;continue}}s=o+i.start,s>n?S(i,!0):(a=o+i.end,a>=t&&(i.setCachedOffsets(s,a,0),u[l++]=i),S(i,!0),i.right===T||C(i.right)||(o+=i.delta,i=i.right))}return S(e.root,!1),u}function W(e,t,n,i){var o=e.root,r=0,s=0,a=0,u=i-(n-t);while(o!==T)if(C(o))S(o.left,!1),S(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),Q(o),o=o.parent;else{if(!C(o.left)){if(s=r+o.maxEnd,s<t){S(o,!0);continue}if(o.left!==T){o=o.left;continue}}a=r+o.start,a>n?(o.start+=u,o.end+=u,o.delta+=u,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),S(o,!0)):(S(o,!0),o.right===T||C(o.right)||(r+=o.delta,o=o.right))}S(e.root,!1)}function V(e,t){var n=e.root,i=[],o=0;while(n!==T)C(n)?(S(n.left,!1),S(n.right,!1),n=n.parent):n.left===T||C(n.left)?(n.ownerId===t&&(i[o++]=n),S(n,!0),n.right===T||C(n.right)||(n=n.right)):n=n.left;return S(e.root,!1),i}function B(e){var t=e.root,n=[],i=0;while(t!==T)C(t)?(S(t.left,!1),S(t.right,!1),t=t.parent):t.left===T||C(t.left)?t.right===T||C(t.right)?(n[i++]=t,S(t,!0)):t=t.right:t=t.left;return S(e.root,!1),n}function H(e,t,n,i){var o=e.root,r=0,s=0,a=0,u=[],l=0;while(o!==T)if(C(o))S(o.left,!1),S(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;else if(o.left===T||C(o.left)){s=r+o.start,a=r+o.end,o.setCachedOffsets(s,a,i);var c=!0;t&&o.ownerId&&o.ownerId!==t&&(c=!1),n&&L(o)&&(c=!1),c&&(u[l++]=o),S(o,!0),o.right===T||C(o.right)||(r+=o.delta,o=o.right)}else o=o.left;return S(e.root,!1),u}function z(e,t,n,i,o,r){var s=e.root,a=0,u=0,l=0,c=0,d=[],h=0;while(s!==T)if(C(s))S(s.left,!1),S(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!C(s.left)){if(u=a+s.maxEnd,u<t){S(s,!0);continue}if(s.left!==T){s=s.left;continue}}if(l=a+s.start,l>n)S(s,!0);else{if(c=a+s.end,c>=t){s.setCachedOffsets(l,c,r);var p=!0;i&&s.ownerId&&s.ownerId!==i&&(p=!1),o&&L(s)&&(p=!1),p&&(d[h++]=s)}S(s,!0),s.right===T||C(s.right)||(a+=s.delta,s=s.right)}}return S(e.root,!1),d}function U(e,t){if(e.root===T)return t.parent=T,t.left=T,t.right=T,w(t,0),e.root=t,e.root;K(e,t),J(t.parent);var n=t;while(n!==e.root&&1===y(n.parent))if(n.parent===n.parent.parent.left){var i=n.parent.parent.right;1===y(i)?(w(n.parent,0),w(i,0),w(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,Y(e,n)),w(n.parent,0),w(n.parent.parent,1),X(e,n.parent.parent))}else{i=n.parent.parent.left;1===y(i)?(w(n.parent,0),w(i,0),w(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,X(e,n)),w(n.parent,0),w(n.parent.parent,1),Y(e,n.parent.parent))}return w(e.root,0),t}function K(e,t){var n=0,i=e.root,o=t.start,r=t.end;while(1){var s=ee(o,r,i.start+n,i.end+n);if(s<0){if(i.left===T){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===T){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=T,t.right=T,w(t,1)}function q(e,t){var n,i;if(t.left===T?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===T?(n=t.left,i=t):(i=G(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,w(n,0),t.detach(),Z(),Q(n),void(e.root.parent=T);var o,r=1===y(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,w(i,y(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==T&&(i.left.parent=i),i.right!==T&&(i.right.parent=i)),t.detach(),r)return J(n.parent),i!==t&&(J(i),J(i.parent)),void Z();J(n),J(n.parent),i!==t&&(J(i),J(i.parent));while(n!==e.root&&0===y(n))n===n.parent.left?(o=n.parent.right,1===y(o)&&(w(o,0),w(n.parent,1),Y(e,n.parent),o=n.parent.right),0===y(o.left)&&0===y(o.right)?(w(o,1),n=n.parent):(0===y(o.right)&&(w(o.left,0),w(o,1),X(e,o),o=n.parent.right),w(o,y(n.parent)),w(n.parent,0),w(o.right,0),Y(e,n.parent),n=e.root)):(o=n.parent.left,1===y(o)&&(w(o,0),w(n.parent,1),X(e,n.parent),o=n.parent.left),0===y(o.left)&&0===y(o.right)?(w(o,1),n=n.parent):(0===y(o.left)&&(w(o.right,0),w(o,1),Y(e,o),o=n.parent.left),w(o,y(n.parent)),w(n.parent,0),w(o.left,0),X(e,n.parent),n=e.root));w(n,0),Z()}function G(e){while(e.left!==T)e=e.left;return e}function Z(){T.parent=T,T.delta=0,T.start=0,T.end=0}function Y(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==T&&(n.left.parent=t),n.parent=t.parent,t.parent===T?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,Q(t),Q(n)}function X(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==T&&(n.right.parent=t),n.parent=t.parent,t.parent===T?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,Q(t),Q(n)}function $(e){var t=e.end;if(e.left!==T){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==T){var i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function Q(e){e.maxEnd=$(e)}function J(e){while(e!==T){var t=$(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function ee(e,t,n,i){return e===n?t-i:e-n}var te=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return e.prototype.next=function(){if(this.right!==ne)return ie(this.right);var e=this;while(e.parent!==ne){if(e.parent.left===e)break;e=e.parent}return e.parent===ne?ne:e.parent},e.prototype.prev=function(){if(this.left!==ne)return oe(this.left);var e=this;while(e.parent!==ne){if(e.parent.right===e)break;e=e.parent}return e.parent===ne?ne:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),ne=new te(null,0);function ie(e){while(e.left!==ne)e=e.left;return e}function oe(e){while(e.right!==ne)e=e.right;return e}function re(e){return e===ne?0:e.size_left+e.piece.length+re(e.right)}function se(e){return e===ne?0:e.lf_left+e.piece.lineFeedCnt+se(e.right)}function ae(){ne.parent=ne}function ue(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==ne&&(n.left.parent=t),n.parent=t.parent,t.parent===ne?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function le(e,t){var n=t.left;t.left=n.right,n.right!==ne&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===ne?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function ce(e,t){var n,i;if(t.left===ne?(i=t,n=i.right):t.right===ne?(i=t,n=i.left):(i=ie(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),ae(),void(e.root.parent=ne);var o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,pe(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,pe(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==ne&&(i.left.parent=i),i.right!==ne&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,pe(e,i)),t.detach(),n.parent.left===n){var r=re(n),s=se(n);if(r!==n.parent.size_left||s!==n.parent.lf_left){var a=r-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=s,he(e,n.parent,a,u)}}if(pe(e,n.parent),o)ae();else{var l;while(n!==e.root&&0===n.color)n===n.parent.left?(l=n.parent.right,1===l.color&&(l.color=0,n.parent.color=1,ue(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,le(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,ue(e,n.parent),n=e.root)):(l=n.parent.left,1===l.color&&(l.color=0,n.parent.color=1,le(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,ue(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,le(e,n.parent),n=e.root));n.color=0,ae()}}function de(e,t){pe(e,t);while(t!==e.root&&1===t.parent.color)if(t.parent===t.parent.parent.left){var n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&(t=t.parent,ue(e,t)),t.parent.color=0,t.parent.parent.color=1,le(e,t.parent.parent))}else{n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&(t=t.parent,le(e,t)),t.parent.color=0,t.parent.parent.color=1,ue(e,t.parent.parent))}e.root.color=0}function he(e,t,n,i){while(t!==e.root&&t!==ne)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function pe(e,t){var n=0,i=0;if(t!==e.root){if(0===n){while(t!==e.root&&t===t.parent.right)t=t.parent;if(t===e.root)return;t=t.parent,n=re(t.left)-t.size_left,i=se(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}while(t!==e.root&&(0!==n||0!==i))t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}ne.parent=ne,ne.left=ne,ne.right=ne,ne.color=0;var fe=n("8c02"),ge=65535;function me(e){var t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}var ve=function(){function e(e,t,n,i,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=o}return e}();function _e(e,t){void 0===t&&(t=!0);for(var n=[0],i=1,o=0,r=e.length;o<r;o++){var s=e.charCodeAt(o);13===s?o+1<r&&10===e.charCodeAt(o+1)?(n[i++]=o+2,o++):n[i++]=o+1:10===s&&(n[i++]=o+1)}return t?me(n):n}function be(e,t){e.length=0,e[0]=0;for(var n=1,i=0,o=0,r=0,s=!0,a=0,u=t.length;a<u;a++){var l=t.charCodeAt(a);13===l?a+1<u&&10===t.charCodeAt(a+1)?(r++,e[n++]=a+2,a++):(i++,e[n++]=a+1):10===l?(o++,e[n++]=a+1):s&&9!==l&&(l<32||l>126)&&(s=!1)}var c=new ve(me(e),i,o,r,s);return e.length=0,c}var ye=function(){function e(e,t,n,i,o){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=o}return e}(),we=function(){function e(e,t){this.buffer=e,this.lineStarts=t}return e}(),Ce=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=this._cache,i=0;i<n.length;i++){var o=n[i];(null===o.node.parent||o.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){for(var r=[],s=0,a=n;s<a.length;s++){var u=a[s];null!==u&&r.push(u)}this._cache=r}},e}(),Se=function(){function e(e,t,n){this.create(e,t,n)}return e.prototype.create=function(e,t,n){this._buffers=[new we("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=ne,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var i=null,o=0,r=e.length;o<r;o++)if(e[o].buffer.length>0){e[o].lineStarts||(e[o].lineStarts=_e(e[o].buffer));var s=new ye(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),i=this.rbInsertRight(i,s)}this._searchCache=new Ce(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var t=this,n=ge,i=n-Math.floor(n/3),o=2*i,r="",s=0,a=[];if(this.iterate(this.root,function(n){var u=t.getNodeContent(n),l=u.length;if(s<=i||s+l<o)return r+=u,s+=l,!0;var c=r.replace(/\r\n|\r|\n/g,e);return a.push(new we(c,_e(c))),r=u,s=l,!0}),s>0){var u=r.replace(/\r\n|\r|\n/g,e);a.push(new we(u,_e(u)))}this.create(a,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.getOffsetAt=function(e,t){var n=0,i=this.root;while(i!==ne)if(i.left!==ne&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;var o=this.getAccumulatedValue(i,e-i.lf_left-2);return n+(o+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);var t=this.root,n=0,i=e;while(t!==ne)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0===o.index){var r=this.getOffsetAt(n+1,1),s=i-r;return new l["a"](n+1,s+1)}return new l["a"](n+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===ne){r=this.getOffsetAt(n+1,1),s=i-e-r;return new l["a"](n+1,s+1)}t=t.right}return new l["a"](1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(o+e.remainder,o+t.remainder)}var r=e.node,s=this._buffers[r.piece.bufferIndex].buffer,a=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start),u=s.substring(a+e.remainder,a+r.piece.length);r=r.next();while(r!==ne){var l=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){u+=l.substring(c,c+t.remainder);break}u+=l.substr(c,r.piece.length),r=r.next()}return u},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var i=n.node.next();if(!i)return 0;var o=this._buffers[i.piece.bufferIndex],r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o.buffer.charCodeAt(r)}o=this._buffers[n.node.piece.bufferIndex],r=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start);var s=r+n.remainder;return o.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,i,o,r,s,a,u,l,d){var h,p=this._buffers[e.piece.bufferIndex],f=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,o),m=this.offsetInBuffer(e.piece.bufferIndex,r);t.reset(g);var v={line:0,column:0};do{if(h=t.next(p.buffer),h){if(h.index>=m)return l;this.positionInBuffer(e,h.index-f,v);var _=this.getLineFeedCnt(e.piece.bufferIndex,o,v),b=v.line===o.line?v.column-o.column+i:v.column+1,y=b+h[0].length;if(d[l++]=Object(fe["d"])(new c["a"](n+_,b,n+_,y),h,a),h.index+h[0].length>=m)return l;if(l>=u)return l}}while(h);return l},e.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],r=0,s=new fe["b"](t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,l,c,t,n,i,r,o),o;var d=e.startLineNumber,h=a.node;while(h!==u.node){var p=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(p>=1){var f=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=f[l.line+p],v=d===e.startLineNumber?e.startColumn:1;if(r=this.findMatchesInNode(h,s,d,v,l,this.positionInBuffer(h,m-g),t,n,i,r,o),r>=i)return o;d+=p}var _=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var b=this.getLineContent(d).substring(_,e.endColumn-1);return r=this._findMatchesInLine(t,s,b,e.endLineNumber,_,r,o,n,i),o}if(r=this._findMatchesInLine(t,s,this.getLineContent(d).substr(_),d,_,r,o,n,i),r>=i)return o;d++,a=this.nodeAt2(d,1),h=a.node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var y=d===e.startLineNumber?e.startColumn-1:0;b=this.getLineContent(d).substring(y,e.endColumn-1);return r=this._findMatchesInLine(t,s,b,e.endLineNumber,y,r,o,n,i),o}var w=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(u.node,s,d,w,l,c,t,n,i,r,o),o},e.prototype._findMatchesInLine=function(e,t,n,i,o,r,s,a,u){var l,d=e.wordSeparators;if(!a&&e.simpleSearch){var p=e.simpleSearch,f=p.length,g=n.length,m=-f;while(-1!==(m=n.indexOf(p,m+f)))if((!d||Object(fe["e"])(d,n,g,m,f))&&(s[r++]=new h["b"](new c["a"](i,m+1+o,i,m+1+f+o),null),r>=u))return r;return r}t.reset(0);do{if(l=t.next(n),l&&(s[r++]=Object(fe["d"])(new c["a"](i,l.index+1+o,i,l.index+1+l[0].length+o),l,a),r>=u))return r}while(l);return r},e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==ne){var i=this.nodeAt(e),o=i.node,r=i.remainder,s=i.nodeStartOffset,a=o.piece,u=a.bufferIndex,l=this.positionInBuffer(o,r);if(0===o.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&s+a.length===e&&t.length<ge)return this.appendToNode(o,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,o),this._searchCache.valdiate(e);else if(s+o.piece.length>e){var c=[],d=new ye(a.bufferIndex,l,a.end,this.getLineFeedCnt(a.bufferIndex,l,a.end),this.offsetInBuffer(u,a.end)-this.offsetInBuffer(u,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)){var h=this.nodeCharCodeAt(o,r);if(10===h){var p={line:d.start.line+1,column:0};d=new ye(d.bufferIndex,p,d.end,this.getLineFeedCnt(d.bufferIndex,p,d.end),d.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){var f=this.nodeCharCodeAt(o,r-1);if(13===f){var g=this.positionInBuffer(o,r-1);this.deleteNodeTail(o,g),t="\r"+t,0===o.piece.length&&c.push(o)}else this.deleteNodeTail(o,l)}else this.deleteNodeTail(o,l);var m=this.createNewPieces(t);d.length>0&&this.rbInsertRight(o,d);for(var v=o,_=0;_<m.length;_++)v=this.rbInsertRight(v,m[_]);this.deleteNodes(c)}else this.insertContentToNodeRight(t,o)}else{var b=this.createNewPieces(t);for(o=this.rbInsertLeft(null,b[0]),_=1;_<b.length;_++)o=this.rbInsertRight(o,b[_])}this.computeBufferMetadata()},e.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===ne)){var n=this.nodeAt(e),i=this.nodeAt(e+t),o=n.node,r=i.node;if(o===r){var s=this.positionInBuffer(o,n.remainder),a=this.positionInBuffer(o,i.remainder);if(n.nodeStartOffset===e){if(t===o.piece.length){var u=o.next();return ce(this,o),this.validateCRLFWithPrevNode(u),void this.computeBufferMetadata()}return this.deleteNodeHead(o,a),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata()}return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,s),this.validateCRLFWithNextNode(o),void this.computeBufferMetadata()):(this.shrinkNode(o,s,a),void this.computeBufferMetadata())}var l=[],c=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,c),this._searchCache.valdiate(e),0===o.piece.length&&l.push(o);var d=this.positionInBuffer(r,i.remainder);this.deleteNodeHead(r,d),0===r.piece.length&&l.push(r);for(var h=o.next(),p=h;p!==ne&&p!==r;p=p.next())l.push(p);var f=0===o.piece.length?o.prev():o;this.deleteNodes(l),this.validateCRLFWithNextNode(f),this.computeBufferMetadata()}},e.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var i=t.piece,o={line:i.start.line+1,column:0},r=new ye(i.bufferIndex,o,i.end,this.getLineFeedCnt(i.bufferIndex,o,i.end),i.length-1);t.piece=r,e+="\n",he(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var s=this.createNewPieces(e),a=this.rbInsertLeft(t,s[s.length-1]),u=s.length-2;u>=0;u--)a=this.rbInsertLeft(a,s[u]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),o=i,r=1;r<n.length;r++)o=this.rbInsertRight(o,n[r]);this.validateCRLFWithPrevNode(i)},e.prototype.positionInBuffer=function(e,t,n){var i=e.piece,o=e.piece.bufferIndex,r=this._buffers[o].lineStarts,s=r[i.start.line]+i.start.column,a=s+t,u=i.start.line,l=i.end.line,c=0,d=0,h=0;while(u<=l){if(c=u+(l-u)/2|0,h=r[c],c===l)break;if(d=r[c+1],a<h)l=c-1;else{if(!(a>=d))break;u=c+1}}return n?(n.line=c,n.column=a-h,null):{line:c,column:a-h}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var o=i[n.line+1],r=i[n.line]+n.column;if(o>r+1)return n.line-t.line;var s=r-1,a=this._buffers[e].buffer;return 13===a.charCodeAt(s)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){var n=this._buffers[e].lineStarts;return n[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)ce(this,e[t])},e.prototype.createNewPieces=function(e){if(e.length>ge){var t=[];while(e.length>ge){var n=e.charCodeAt(ge-1),i=void 0;13===n||n>=55296&&n<=56319?(i=e.substring(0,ge-1),e=e.substring(ge-1)):(i=e.substring(0,ge),e=e.substring(ge));var o=_e(i);t.push(new ye(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new we(i,o))}var r=_e(e);return t.push(new ye(this._buffers.length,{line:0,column:0},{line:r.length-1,column:e.length-r[r.length-1]},r.length-1,e.length)),this._buffers.push(new we(e,r)),t}var s=this._buffers[0].buffer.length,a=_e(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var l=0;l<a.length;l++)a[l]+=s+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+="_"+e,s+=1}else{if(0!==s)for(l=0;l<a.length;l++)a[l]+=s;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+=e}var c=this._buffers[0].buffer.length,d=this._buffers[0].lineStarts.length-1,h=c-this._buffers[0].lineStarts[d],p={line:d,column:h},f=new ye(0,u,p,this.getLineFeedCnt(0,u,p),c-s);return this._lastChangeBufferPos=p,[f]},e.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root,i="",o=this._searchCache.get2(e);if(o){n=o.node;var r=this.getAccumulatedValue(n,e-o.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(o.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var u=this.getAccumulatedValue(n,e-o.nodeStartLineNumber);return s.substring(a+r,a+u-t)}i=s.substring(a+r,a+n.piece.length)}else{var l=0,c=e;while(n!==ne)if(n.left!==ne&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),u=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return l+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:l,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+r,a+u-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=s.substring(a+r,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,l+=n.size_left+n.piece.length,n=n.right}}n=n.next();while(n!==ne){s=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){u=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=s.substring(a,a+u-t),i}a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=s.substr(a,n.piece.length),n=n.next()}return i},e.prototype.computeBufferMetadata=function(){var e=this.root,t=1,n=0;while(e!==ne)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),o=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var r=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(r!==o)return{index:r,remainder:0}}return{index:o,remainder:i.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[o]-i[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),r=t,s=this.offsetInBuffer(n.bufferIndex,r),a=this.getLineFeedCnt(n.bufferIndex,n.start,r),u=a-i,l=s-o,c=n.length+l;e.piece=new ye(n.bufferIndex,n.start,r,a,c),he(this,e,l,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),r=t,s=this.getLineFeedCnt(n.bufferIndex,r,n.end),a=this.offsetInBuffer(n.bufferIndex,r),u=s-i,l=o-a,c=n.length+l;e.piece=new ye(n.bufferIndex,r,n.end,s,c),he(this,e,l,u)},e.prototype.shrinkNode=function(e,t,n){var i=e.piece,o=i.start,r=i.end,s=i.length,a=i.lineFeedCnt,u=t,l=this.getLineFeedCnt(i.bufferIndex,i.start,u),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new ye(i.bufferIndex,i.start,u,l,c),he(this,e,c-s,l-a);var d=new ye(i.bufferIndex,n,r,this.getLineFeedCnt(i.bufferIndex,n,r),this.offsetInBuffer(i.bufferIndex,r)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=_e(t,!1),r=0;r<o.length;r++)o[r]+=i;if(n){var s=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-s}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));var a=this._buffers[0].lineStarts.length-1,u=this._buffers[0].buffer.length-this._buffers[0].lineStarts[a],l={line:a,column:u},c=e.piece.length+t.length,d=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,l),p=h-d;e.piece=new ye(e.piece.bufferIndex,e.piece.start,l,h,c),this._lastChangeBufferPos=l,he(this,e,t.length,p)},e.prototype.nodeAt=function(e){var t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};var i=0;while(t!==ne)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var o={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(o),o}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){var n=this.root,i=0;while(n!==ne)if(n.left!==ne&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2),r=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(o+t-1,r),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2);if(o+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:i};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}n=n.next();while(n!==ne){if(n.piece.lineFeedCnt>0){r=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,r),nodeStartOffset:s}}if(n.piece.length>=t-1){var a=this.offsetOfNode(n);return{node:n,remainder:t-1,nodeStartOffset:a}}t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},e.prototype.offsetOfNode=function(e){if(!e)return 0;var t=e.size_left;while(e!==this.root)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===ne||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,o=n[i]+t.start.column;if(i===n.length-1)return!1;var r=n[i+1];return!(r>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)},e.prototype.endWithCR=function(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==ne&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n,i=[],o=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var r=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new ye(e.piece.bufferIndex,e.piece.start,n,s,r),he(this,e,-1,-1),0===e.piece.length&&i.push(e);var a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new ye(t.piece.bufferIndex,a,t.piece.end,l,u),he(this,t,-1,-1),0===t.piece.length&&i.push(t);var c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(var d=0;d<i.length;d++)ce(this,i[d])},e.prototype.adjustCarriageReturnFromNext=function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)ce(this,n);else{var i=n.piece,o={line:i.start.line+1,column:0},r=i.length-1,s=this.getLineFeedCnt(i.bufferIndex,o,i.end);n.piece=new ye(i.bufferIndex,o,i.end,s,r),he(this,n,-1,-1)}return!0}}return!1},e.prototype.iterate=function(e,t){if(e===ne)return t(ne);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n},e.prototype.getNodeContent=function(e){if(e===ne)return"";var t,n=this._buffers[e.piece.bufferIndex],i=e.piece,o=this.offsetInBuffer(i.bufferIndex,i.start),r=this.offsetInBuffer(i.bufferIndex,i.end);return t=n.buffer.substring(o,r),t},e.prototype.rbInsertRight=function(e,t){var n=new te(t,1);n.left=ne,n.right=ne,n.parent=ne,n.size_left=0,n.lf_left=0;var i=this.root;if(i===ne)this.root=n,n.color=0;else if(e.right===ne)e.right=n,n.parent=e;else{var o=ie(e.right);o.left=n,n.parent=o}return de(this,n),n},e.prototype.rbInsertLeft=function(e,t){var n=new te(t,1);if(n.left=ne,n.right=ne,n.parent=ne,n.size_left=0,n.lf_left=0,this.root===ne)this.root=n,n.color=0;else if(e.left===ne)e.left=n,n.parent=e;else{var i=oe(e.left);i.right=n,n.parent=i}return de(this,n),n},e.prototype.getContentOfSubTree=function(e){var t=this,n="";return this.iterate(e,function(e){return n+=t.getNodeContent(e),!0}),n},e}(),Le=function(){function e(e,t,n,i,o,r){this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._pieceTree=new Se(e,n,r)}return e.prototype.mightContainRTL=function(){return this._mightContainRTL},e.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},e.prototype.getBOM=function(){return this._BOM},e.prototype.getEOL=function(){return this._pieceTree.getEOL()},e.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)},e.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)},e.prototype.getRangeAt=function(e,t){var n=e+t,i=this.getPositionAt(e),o=this.getPositionAt(n);return new c["a"](i.lineNumber,i.column,o.lineNumber,o.column)},e.prototype.getValueInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)},e.prototype.getValueLengthInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);return i-n},e.prototype.getLength=function(){return this._pieceTree.getLength()},e.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},e.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},e.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)},e.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)},e.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)},e.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=s["q"](this.getLineContent(e));return-1===t?0:t+1},e.prototype.getLineLastNonWhitespaceColumn=function(e){var t=s["A"](this.getLineContent(e));return-1===t?0:t+2},e.prototype._getEndOfLine=function(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},e.prototype.setEOL=function(e){this._pieceTree.setEOL(e)},e.prototype.applyEdits=function(t,n){for(var i=this._mightContainRTL,o=this._mightContainNonBasicASCII,r=!0,a=[],u=0;u<t.length;u++){var l=t[u];r&&l._isTracked&&(r=!1);var c=l.range;!i&&l.text&&(i=s["h"](l.text)),!o&&l.text&&(o=!s["t"](l.text)),a[u]={sortIndex:u,identifier:l.identifier||null,range:c,rangeOffset:this.getOffsetAt(c.startLineNumber,c.startColumn),rangeLength:this.getValueLengthInRange(c),lines:l.text?l.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(l.forceMoveMarkers),isAutoWhitespaceEdit:l.isAutoWhitespaceEdit||!1}}a.sort(e._sortOpsAscending);for(var d=!1,p=(u=0,a.length-1);u<p;u++){var f=a[u].range.getEndPosition(),g=a[u+1].range.getStartPosition();if(g.isBeforeOrEqual(f)){if(g.isBefore(f))throw new Error("Overlapping ranges are not allowed!");d=!0}}r&&(a=this._reduceOperations(a));var m=e._getInverseEditRanges(a),v=[];for(u=0;u<a.length;u++){l=a[u];var _=m[u];if(n&&l.isAutoWhitespaceEdit&&l.range.isEmpty())for(var b=_.startLineNumber;b<=_.endLineNumber;b++){var y="";b===_.startLineNumber&&(y=this.getLineContent(l.range.startLineNumber),-1!==s["q"](y))||v.push({lineNumber:b,oldContent:y})}}var w=[];for(u=0;u<a.length;u++){l=a[u],_=m[u];w[u]={sortIndex:l.sortIndex,identifier:l.identifier,range:_,text:this.getValueInRange(l.range),forceMoveMarkers:l.forceMoveMarkers}}d||w.sort(function(e,t){return e.sortIndex-t.sortIndex}),this._mightContainRTL=i,this._mightContainNonBasicASCII=o;var C=this._doApplyEdits(a),S=null;if(n&&v.length>0){v.sort(function(e,t){return t.lineNumber-e.lineNumber}),S=[];u=0;for(var L=v.length;u<L;u++){b=v[u].lineNumber;if(!(u>0&&v[u-1].lineNumber===b)){var O=v[u].oldContent,x=this.getLineContent(b);0!==x.length&&x!==O&&-1===s["q"](x)&&S.push(b)}}}return new h["a"](w,C,S)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,o=new c["a"](n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),r=n.startLineNumber,s=n.startColumn,a=[],u=0,l=e.length;u<l;u++){var d=e[u],h=d.range;t=t||d.forceMoveMarkers;for(var p=r;p<h.startLineNumber;p++)p===r?a.push(this.getLineContent(p).substring(s-1)):(a.push("\n"),a.push(this.getLineContent(p)));if(h.startLineNumber===r?a.push(this.getLineContent(h.startLineNumber).substring(s-1,h.startColumn-1)):(a.push("\n"),a.push(this.getLineContent(h.startLineNumber).substring(0,h.startColumn-1))),d.lines)for(var f=0,g=d.lines.length;f<g;f++)0!==f&&a.push("\n"),a.push(d.lines[f]);r=d.range.endLineNumber,s=d.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),lines:a.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},e.prototype._doApplyEdits=function(t){t.sort(e._sortOpsDescending);for(var n=[],i=0;i<t.length;i++){var o=t[i],r=o.range.startLineNumber,s=o.range.startColumn,a=o.range.endLineNumber,u=o.range.endColumn;if(r!==a||s!==u||o.lines&&0!==o.lines.length){var l=a-r,d=o.lines?o.lines.length-1:0,h=Math.min(l,d),p=o.lines?o.lines.join(this.getEOL()):"";if(p?(this._pieceTree.delete(o.rangeOffset,o.rangeLength),this._pieceTree.insert(o.rangeOffset,p,!0)):this._pieceTree.delete(o.rangeOffset,o.rangeLength),h<d){for(var f=[],g=h+1;g<=d;g++)f.push(o.lines[g]);f[f.length-1]=this.getLineContent(r+d-1)}var m=new c["a"](r,s,a,u);n.push({range:m,rangeLength:o.rangeLength,text:p,rangeOffset:o.rangeOffset,forceMoveMarkers:o.forceMoveMarkers})}}return n},e.prototype.findMatchesLineByLine=function(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)},e._getInverseEditRanges=function(e){for(var t=[],n=0,i=0,o=null,r=0,s=e.length;r<s;r++){var a=e[r],u=void 0,l=void 0;o?o.range.endLineNumber===a.range.startLineNumber?(u=n,l=i+(a.range.startColumn-o.range.endColumn)):(u=n+(a.range.startLineNumber-o.range.endLineNumber),l=a.range.startColumn):(u=a.range.startLineNumber,l=a.range.startColumn);var d=void 0;if(a.lines&&a.lines.length>0){var h=a.lines.length,p=a.lines[0],f=a.lines[h-1];d=1===h?new c["a"](u,l,u,l+p.length):new c["a"](u,l,u+h-1,f.length+1)}else d=new c["a"](u,l,u,l);n=d.endLineNumber,i=d.endColumn,t.push(d),o=a}return t},e._sortOpsAscending=function(e,t){var n=c["a"].compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=c["a"].compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}(),Oe=function(){function e(e,t,n,i,o,r,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=o,this._containsRTL=r,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,o=n.length;i<o;i++){var r=n[i].buffer.replace(/\r\n|\r|\n/g,t),s=_e(r);n[i]=new we(r,s)}return new Le(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},e}(),xe=function(){function e(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return e.prototype.acceptChunk=function(e){if(0!==e.length){0===this.chunks.length&&s["L"](e)&&(this.BOM=s["a"],e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},e.prototype._acceptChunk2=function(e){var t=be(this._tmpLineStarts,e);this.chunks.push(new we(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=s["h"](e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new Oe(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=_e(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}(),Ne=function(){function e(){this.changeType=1}return e}(),De=function(){function e(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}return e}(),ke=function(){function e(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}return e}(),Ie=function(){function e(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}return e}(),Ee=function(){function e(){this.changeType=5}return e}(),Me=function(){function e(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i}return e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++){var i=this.changes[t];if(i.changeType===e)return!0}return!1},e.merge=function(t,n){var i=[].concat(t.changes).concat(n.changes),o=n.versionId,r=t.isUndoing||n.isUndoing,s=t.isRedoing||n.isRedoing;return new e(i,o,r,s)},e}(),Te=function(){function e(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}return e.prototype.merge=function(t){var n=Me.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),i=e._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent);return new e(n,i)},e._mergeChangeEvents=function(e,t){var n=[].concat(e.changes).concat(t.changes),i=t.eol,o=t.versionId,r=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,versionId:o,isUndoing:r,isRedoing:s,isFlush:a}},e}(),Pe=n("e8e3"),Re=n("e1b5"),Ae=n("b707"),Fe=n("8bf1"),je=n("e58e");function We(e){for(var t=0,n=0,i=0,o=e.length;i<o;i++){var r=e.charCodeAt(i);13===r?(0===t&&(n=i),t++,i+1<o&&10===e.charCodeAt(i+1)&&i++):10===r&&(0===t&&(n=i),t++)}return 0===t&&(n=e.length),[t,n]}function Ve(e){return(16384|e<<0|2<<23)>>>0}var Be=new Uint32Array(0).buffer,He=function(){function e(){this.tokens=[]}return e.prototype.add=function(e,t){if(this.tokens.length>0){var n=this.tokens[this.tokens.length-1],i=n.startLineNumber+n.tokens.length-1;if(i+1===e)return void n.tokens.push(t)}this.tokens.push(new ze(e,[t]))},e}(),ze=function(){function e(e,t){this.startLineNumber=e,this.tokens=t}return e}();function Ue(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var Ke=function(){function e(){this._lineTokens=[],this._len=0}return e.prototype.flush=function(){this._lineTokens=[],this._len=0},e.prototype.getTokens=function(e,t,n){var i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==Be)return new Re["a"](Ue(i),n);var o=new Uint32Array(2);return o[0]=n.length,o[1]=Ve(e),new Re["a"](o,n)},e._massageTokens=function(e,t,n){var i=n?Ue(n):null;if(0===t){var o=!1;if(i&&i.length>1&&(o=Ae["x"].getLanguageId(i[1])!==e),!o)return Be}if(!i||0===i.length){var r=new Uint32Array(2);return r[0]=t,r[1]=Ve(e),r.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i},e.prototype._ensureLine=function(e){while(e>=this._len)this._lineTokens[this._len]=null,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],i=0;i<t;i++)n[i]=null;this._lineTokens=Pe["a"](this._lineTokens,e,n),this._len+=t}},e.prototype.setTokens=function(t,n,i,o){var r=e._massageTokens(t,i,o);this._ensureLine(n),this._lineTokens[n]=r},e.prototype.acceptEdit=function(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new l["a"](e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(t){var n=t.startLineNumber-1;if(!(n>=this._len))if(t.startLineNumber!==t.endLineNumber){this._lineTokens[n]=e._deleteEnding(this._lineTokens[n],t.startColumn-1);var i=t.endLineNumber-1,o=null;i<this._len&&(o=e._deleteBeginning(this._lineTokens[i],t.endColumn-1)),this._lineTokens[n]=e._append(this._lineTokens[n],o),this._deleteLines(t.startLineNumber,t.endLineNumber-t.startLineNumber)}else{if(t.startColumn===t.endColumn)return;this._lineTokens[n]=e._delete(this._lineTokens[n],t.startColumn-1,t.endColumn-1)}},e.prototype._acceptInsertText=function(t,n,i){if(0!==n||0!==i){var o=t.lineNumber-1;o>=this._len||(0!==n?(this._lineTokens[o]=e._deleteEnding(this._lineTokens[o],t.column-1),this._lineTokens[o]=e._insert(this._lineTokens[o],t.column-1,i),this._insertLines(t.lineNumber,n)):this._lineTokens[o]=e._insert(this._lineTokens[o],t.column-1,i))}},e._deleteBeginning=function(t,n){return null===t||t===Be?t:e._delete(t,0,n)},e._deleteEnding=function(t,n){if(null===t||t===Be)return t;var i=Ue(t),o=i[i.length-2];return e._delete(t,n,o)},e._delete=function(e,t,n){if(null===e||e===Be||t===n)return e;var i=Ue(e),o=i.length>>>1;if(0===t&&i[i.length-2]===n)return Be;var r,s,a=Re["a"].findIndexInTokensArray(i,t),u=a>0?i[a-1<<1]:0,l=i[a<<1];if(n<l){for(var c=n-t,d=a;d<o;d++)i[d<<1]-=c;return e}u!==t?(i[a<<1]=t,r=a+1<<1,s=t):(r=a<<1,s=u);for(var h=n-t,p=a+1;p<o;p++){var f=i[p<<1]-h;f>s&&(i[r++]=f,i[r++]=i[1+(p<<1)],s=f)}if(r===i.length)return e;var g=new Uint32Array(r);return g.set(i.subarray(0,r),0),g.buffer},e._append=function(e,t){if(t===Be)return e;if(e===Be)return t;if(null===e)return e;if(null===t)return null;var n=Ue(e),i=Ue(t),o=i.length>>>1,r=new Uint32Array(n.length+i.length);r.set(n,0);for(var s=n.length,a=n[n.length-2],u=0;u<o;u++)r[s++]=i[u<<1]+a,r[s++]=i[1+(u<<1)];return r.buffer},e._insert=function(e,t,n){if(null===e||e===Be)return e;var i=Ue(e),o=i.length>>>1,r=Re["a"].findIndexInTokensArray(i,t);if(r>0){var s=i[r-1<<1];s===t&&r--}for(var a=r;a<o;a++)i[a<<1]+=n;return e},e}(),qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ge=function(){function e(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return e.prototype._reset=function(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)},e.prototype.flush=function(e){this._reset(e)},Object.defineProperty(e.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),e.prototype._invalidateLine=function(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)},e.prototype._isValid=function(e){return e<this._len&&this._valid[e]},e.prototype.getBeginState=function(e){return e<this._len?this._beginState[e]:null},e.prototype._ensureLine=function(e){while(e>=this._len)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],i=[],o=0;o<t;o++)n[o]=null,i[o]=!1;this._beginState=Pe["a"](this._beginState,e,n),this._valid=Pe["a"](this._valid,e,i),this._len+=t}},e.prototype._setValid=function(e,t){this._ensureLine(e),this._valid[e]=t},e.prototype._setBeginState=function(e,t){this._ensureLine(e),this._beginState[e]=t},e.prototype.setEndState=function(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t!==e-1){var i=this.getBeginState(t+1);if(null===i||!n.equals(i))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);var o=t+1;while(o<e){if(!this._isValid(o))break;o++}this._invalidLineStartIndex=o}},e.prototype.setFakeTokens=function(e){this._setValid(e,!1)},e.prototype.applyEdits=function(e,t){for(var n=e.endLineNumber-e.startLineNumber,i=t,o=Math.min(n,i),r=o;r>=0;r--)this._invalidateLine(e.startLineNumber+r-1);this._acceptDeleteRange(e),this._acceptInsertText(new l["a"](e.startLineNumber,e.startColumn),t)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;t>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)},e.prototype._acceptInsertText=function(e,t){var n=e.lineNumber-1;n>=this._len||this._insertLines(e.lineNumber,t)},e}(),Ze=function(e){function t(t){var n=e.call(this)||this;return n._textModel=t,n._tokenizationStateStore=new Ge,n._revalidateTokensTimeout=-1,n._tokenizationSupport=null,n._register(Ae["y"].onDidChange(function(e){var t=n._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(n._resetTokenizationState(),n._textModel.clearTokens())})),n._register(n._textModel.onDidChangeRawContentFast(function(e){e.containsEvent(1)&&n._resetTokenizationState()})),n._register(n._textModel.onDidChangeContentFast(function(e){for(var t=0,i=e.changes.length;t<i;t++){var o=e.changes[t],r=We(o.text)[0];n._tokenizationStateStore.applyEdits(o.range,r)}n._beginBackgroundTokenization()})),n._register(n._textModel.onDidChangeAttached(function(){n._beginBackgroundTokenization()})),n._register(n._textModel.onDidChangeLanguage(function(){n._resetTokenizationState(),n._textModel.clearTokens()})),n._resetTokenizationState(),n}return qe(t,e),t.prototype.dispose=function(){this._clearTimers(),e.prototype.dispose.call(this)},t.prototype._clearTimers=function(){-1!==this._revalidateTokensTimeout&&(clearTimeout(this._revalidateTokensTimeout),this._revalidateTokensTimeout=-1)},t.prototype._resetTokenizationState=function(){this._clearTimers();var e=Ye(this._textModel),t=e[0],n=e[1];this._tokenizationSupport=t,this._tokenizationStateStore.flush(n),this._beginBackgroundTokenization()},t.prototype._beginBackgroundTokenization=function(){var e=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()},0))},t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._textModel.getLineCount());var t=20,n=new He,i=je["a"].create(!1);while(this._hasLinesToTokenize()){if(i.elapsed()>t)break;var o=this._tokenizeOneInvalidLine(n);if(o>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(n.tokens)},t.prototype.tokenizeViewport=function(e,t){var n=new He;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)},t.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},t.prototype.forceTokenization=function(e){var t=new He;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)},t.prototype.isCheapToTokenize=function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e<t||this._textModel.getLineLength(e)<2048)},t.prototype._hasLinesToTokenize=function(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()},t.prototype._tokenizeOneInvalidLine=function(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t},t.prototype._updateTokensUntilLine=function(e,t){if(this._tokenizationSupport)for(var n=this._textModel.getLanguageIdentifier(),i=this._textModel.getLineCount(),o=t-1,r=this._tokenizationStateStore.invalidLineStartIndex;r<=o;r++){var s=this._textModel.getLineContent(r+1),a=this._tokenizationStateStore.getBeginState(r),u=Xe(n,this._tokenizationSupport,s,a);e.add(r+1,u.tokens),this._tokenizationStateStore.setEndState(i,r,u.endState),r=this._tokenizationStateStore.invalidLineStartIndex-1}},t.prototype._tokenizeViewport=function(e,t,n){if(this._tokenizationSupport&&!(n<=this._tokenizationStateStore.invalidLineStartIndex))if(t<=this._tokenizationStateStore.invalidLineStartIndex)this._updateTokensUntilLine(e,n);else{for(var i=this._textModel.getLineFirstNonWhitespaceColumn(t),o=[],r=null,s=t-1;i>0&&s>=1;s--){var a=this._textModel.getLineFirstNonWhitespaceColumn(s);if(0!==a&&a<i){if(r=this._tokenizationStateStore.getBeginState(s-1),r)break;o.push(this._textModel.getLineContent(s)),i=a}}r||(r=this._tokenizationSupport.getInitialState());var u=this._textModel.getLanguageIdentifier(),l=r;for(s=o.length-1;s>=0;s--){var c=Xe(u,this._tokenizationSupport,o[s],l);l=c.endState}for(var d=t;d<=n;d++){var h=this._textModel.getLineContent(d);c=Xe(u,this._tokenizationSupport,h,l);e.add(d,c.tokens),this._tokenizationStateStore.setFakeTokens(d-1),l=c.endState}}},t}(r["a"]);function Ye(e){var t=e.getLanguageIdentifier(),n=e.isTooLargeForTokenization()?null:Ae["y"].get(t.language),o=null;if(n)try{o=n.getInitialState()}catch(r){Object(i["e"])(r),n=null}return[n,o]}function Xe(e,t,n,o){var r=null;if(t)try{r=t.tokenize2(n,o.clone(),0)}catch(s){Object(i["e"])(s)}return r||(r=Object(Fe["e"])(e.id,n,o,0)),Re["a"].convertToEndOffset(r.tokens,n.length),r}var $e=n("d093"),Qe=n("70cb"),Je=n("045b"),et=n("1080"),tt=n("ef8e"),nt=n("ceb8");n.d(t,"b",function(){return dt}),n.d(t,"a",function(){return vt});var it=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ot(){return new xe}function rt(e){var t=ot();return t.acceptChunk(e),t.finish()}function st(e,t){var n="string"===typeof e?rt(e):e;return n.create(t)}var at=0,ut=999,lt=1e4,ct=function(){throw new Error("Invalid change accessor")},dt=function(e){function t(n,i,r,u){void 0===u&&(u=null);var l=e.call(this)||this;l._onWillDispose=l._register(new o["a"]),l.onWillDispose=l._onWillDispose.event,l._onDidChangeDecorations=l._register(new yt),l.onDidChangeDecorations=l._onDidChangeDecorations.event,l._onDidChangeLanguage=l._register(new o["a"]),l.onDidChangeLanguage=l._onDidChangeLanguage.event,l._onDidChangeLanguageConfiguration=l._register(new o["a"]),l.onDidChangeLanguageConfiguration=l._onDidChangeLanguageConfiguration.event,l._onDidChangeTokens=l._register(new o["a"]),l.onDidChangeTokens=l._onDidChangeTokens.event,l._onDidChangeOptions=l._register(new o["a"]),l.onDidChangeOptions=l._onDidChangeOptions.event,l._onDidChangeAttached=l._register(new o["a"]),l.onDidChangeAttached=l._onDidChangeAttached.event,l._eventEmitter=l._register(new wt),at++,l.id="$model"+at,l.isForSimpleWidget=i.isForSimpleWidget,l._associatedResource="undefined"===typeof u||null===u?a["a"].parse("inmemory://model/"+at):u,l._attachedEditorCount=0,l._buffer=st(n,i.defaultEOL),l._options=t.resolveOptions(l._buffer,i);var d=l._buffer.getLineCount(),h=l._buffer.getValueLengthInRange(new c["a"](1,1,d,l._buffer.getLineLength(d)+1),0);return i.largeFileOptimizations?l._isTooLargeForTokenization=h>t.LARGE_FILE_SIZE_THRESHOLD||d>t.LARGE_FILE_LINE_COUNT_THRESHOLD:l._isTooLargeForTokenization=!1,l._isTooLargeForSyncing=h>t.MODEL_SYNC_LIMIT,l._versionId=1,l._alternativeVersionId=1,l._isDisposed=!1,l._isDisposing=!1,l._languageIdentifier=r||Fe["a"],l._languageRegistryListener=Qe["a"].onDidChange(function(e){e.languageIdentifier.id===l._languageIdentifier.id&&l._onDidChangeLanguageConfiguration.fire({})}),l._instanceId=s["I"](at),l._lastDecorationId=0,l._decorations=Object.create(null),l._decorationsTree=new ht,l._commandManager=new m(l),l._isUndoing=!1,l._isRedoing=!1,l._trimAutoWhitespaceLines=null,l._tokens=new Ke,l._tokenization=new Ze(l),l}return it(t,e),t.createFromString=function(e,n,i,o){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===i&&(i=null),void 0===o&&(o=null),new t(e,n,i,o)},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=b(e,t.tabSize,t.insertSpaces);return new h["e"]({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new h["e"]({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.rawContentChangedEvent)})},t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.rawContentChangedEvent)})},t.prototype.onDidChangeContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.contentChangedEvent)})},t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent)})},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,e.prototype.dispose.call(this),this._isDisposing=!1},t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},t.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Te(e,t))},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=st(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},t.prototype._createContentChanged2=function(e,t,n,i,o,r,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:s}},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._decorations=Object.create(null),this._decorationsTree=new ht,this._commandManager=new m(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Me([new Ne],this._versionId,!1,!1),this._createContentChanged2(new c["a"](1,1,i,o),0,n,this.getValue(),!1,!1,!0))}},t.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Me([new Ee],this._versionId,!1,!1),this._createContentChanged2(new c["a"](1,1,o,r),0,i,this.getValue(),!1,!1,!1))}},t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},t.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n<i;n++){var o=t[n],r=o.cachedAbsoluteStart-o.start,s=this._buffer.getOffsetAt(o.range.startLineNumber,o.range.startColumn),a=this._buffer.getOffsetAt(o.range.endLineNumber,o.range.endColumn);o.cachedAbsoluteStart=s,o.cachedAbsoluteEnd=a,o.cachedVersionId=e,o.start=s-r,o.end=a-r,Q(o)}},t.prototype.onBeforeAttached=function(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},t.prototype.onBeforeDetached=function(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},t.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},t.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var o=this._buffer.getLineLength(i);o>=lt?t+=o:e+=o}return t>e},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},t.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},t.prototype.updateOptions=function(e){this._assertNotDisposed();var t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.indentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,r=new h["e"]({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o});if(!this._options.equals(r)){var s=this._options.createChangeEvent(r);this._options=r,this._onDidChangeOptions.fire(s)}},t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=b(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},t._normalizeIndentationFromWhitespace=function(e,t,n){for(var i=0,o=0;o<e.length;o++)"\t"===e.charAt(o)?i+=t:i++;var r="";if(!n){var s=Math.floor(i/t);i%=t;for(o=0;o<s;o++)r+="\t"}for(o=0;o<i;o++)r+=" ";return r},t.normalizeIndentation=function(e,n,i){var o=s["q"](e);return-1===o&&(o=e.length),t._normalizeIndentationFromWhitespace(e.substring(0,o),n,i)+e.substring(o)},t.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),t.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)},t.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},t.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},t.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},t.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},t.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,!1);return this._buffer.getOffsetAt(t.lineNumber,t.column)},t.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},t.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},t.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},t.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i},t.prototype.getValueLength=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i},t.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},t.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},t.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},t.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},t.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},t.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},t.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},t.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},t.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},t.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},t.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},t.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;if(o<1)t=1,n=1;else if(o>i)t=i,n=this.getLineMaxColumn(t);else if(t=0|o,r<=1)n=1;else{var s=this.getLineMaxColumn(t);n=r>=s?s:0|r}var a,u,l=e.endLineNumber,h=e.endColumn;if(l<1)a=1,u=1;else if(l>i)a=i,u=this.getLineMaxColumn(a);else if(a=0|l,h<=1)u=1;else{s=this.getLineMaxColumn(a);u=h>=s?s:0|h}return o===t&&r===n&&l===a&&h===u&&e instanceof c["a"]&&!(e instanceof d["a"])?e:new c["a"](t,n,a,u)},t.prototype._isValidPosition=function(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;var i=this._buffer.getLineCount();if(e>i)return!1;var o=this.getLineMaxColumn(e);if(t>o)return!1;if(n&&t>1){var r=this._buffer.getLineCharCode(e,t-2);if(s["w"](r))return!1}return!0},t.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"!==typeof e||isNaN(e)?1:e),o=Math.floor("number"!==typeof t||isNaN(t)?1:t),r=this._buffer.getLineCount();if(i<1)return new l["a"](1,1);if(i>r)return new l["a"](r,this.getLineMaxColumn(r));if(o<=1)return new l["a"](i,1);var a=this.getLineMaxColumn(i);if(o>=a)return new l["a"](i,a);if(n){var u=this._buffer.getLineCharCode(i,o-2);if(s["w"](u))return new l["a"](i,o-1)}return new l["a"](i,o)},t.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof l["a"]&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,!1))return!1;if(!this._isValidPosition(o,r,!1))return!1;if(t){var a=i>1?this._buffer.getLineCharCode(n,i-2):0,u=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,l=s["w"](a),c=s["w"](u);return!l&&!c}return!0},t.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof c["a"]&&!(e instanceof d["a"])&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),i=t.lineNumber,o=t.column,r=n.lineNumber,a=n.column,u=o>1?this._buffer.getLineCharCode(i,o-2):0,l=a>1&&a<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,a-2):0,h=s["w"](u),p=s["w"](l);return h||p?i===r&&o===a?new c["a"](i,o-1,r,a-1):h&&p?new c["a"](i,o-1,r,a+1):h?new c["a"](i,o-1,r,a):new c["a"](i,o,r,a+1):new c["a"](i,o,r,a)},t.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new c["a"](1,1,e,this.getLineMaxColumn(e))},t.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},t.prototype.findMatches=function(e,t,n,i,o,r,s){var a;if(void 0===s&&(s=ut),this._assertNotDisposed(),a=c["a"].isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new fe["a"](e,n,i,o),l=u.parseSearchRequest();return l?this.findMatchesLineByLine(a,l,r,s):[]}return fe["c"].findMatches(this,new fe["a"](e,n,i,o),a,r,s)},t.prototype.findNextMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new fe["a"](e,n,i,o),u=a.parseSearchRequest();if(!u)return null;var l=this.getLineCount(),d=new c["a"](s.lineNumber,s.column,l,this.getLineMaxColumn(l)),h=this.findMatchesLineByLine(d,u,r,1);return fe["c"].findNextMatch(this,new fe["a"](e,n,i,o),s,r),h.length>0?h[0]:(d=new c["a"](1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),h=this.findMatchesLineByLine(d,u,r,1),h.length>0?h[0]:null)}return fe["c"].findNextMatch(this,new fe["a"](e,n,i,o),s,r)},t.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);return fe["c"].findPreviousMatch(this,new fe["a"](e,n,i,o),s,r)},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEOL=function(e){var t="\n"===this.getEOL()?0:1;if(t!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var o=t.map(function(e){return{range:i.validateRange(e.range),text:e.text}}),r=!0,s=0,a=e.length;s<a;s++){for(var u=e[s],l=!1,d=0,h=o.length;d<h;d++){var p=o[d].range,f=p.startLineNumber>u.endLineNumber,g=u.startLineNumber>p.endLineNumber;if(!f&&!g){l=!0;break}}if(!l){r=!1;break}}if(r)for(s=0,a=this._trimAutoWhitespaceLines.length;s<a;s++){var m=this._trimAutoWhitespaceLines[s],v=this.getLineMaxColumn(m),_=!0;for(d=0,h=o.length;d<h;d++){p=o[d].range;var b=o[d].text;if(!(m<p.startLineNumber||m>p.endLineNumber)&&(!(m===p.startLineNumber&&p.startColumn===v&&p.isEmpty()&&b&&b.length>0&&"\n"===b.charAt(0))&&!(m===p.startLineNumber&&1===p.startColumn&&p.isEmpty()&&b&&b.length>0&&"\n"===b.charAt(b.length-1)))){_=!1;break}}_&&t.push({range:new c["a"](m,1,m,v),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},t.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._applyEdits=function(e){for(var t=0,n=e.length;t<n;t++)e[t].range=this.validateRange(e[t].range);var i=this._buffer.getLineCount(),o=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),r=this._buffer.getLineCount(),s=o.changes;if(this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers,0!==s.length){var a=[],u=i;for(t=0,n=s.length;t<n;t++){var l=s[t],c=We(l.text),d=c[0],h=c[1];this._tokens.acceptEdit(l.range,d,h),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(l.rangeOffset,l.rangeLength,l.text.length,l.forceMoveMarkers);for(var p=l.range.startLineNumber,f=l.range.endLineNumber,g=f-p,m=d,v=Math.min(g,m),_=m-g,b=v;b>=0;b--){var y=p+b,w=r-u-_+y;a.push(new De(y,this.getLineContent(w)))}if(v<g){var C=p+v;a.push(new ke(C+1,f))}if(v<m){for(var S=p+v,L=m-v,O=r-u-L+S+1,x=[],N=0;N<L;N++){var D=O+N;x[D-O]=this.getLineContent(D)}a.push(new Ie(S+1,p+m,x))}u+=_}this._increaseVersionId(),this._emitContentChangedEvent(new Me(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return o.reverseEdits},t.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},t.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.canUndo=function(){return this._commandManager.canUndo()},t.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},t.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.canRedo=function(){return this._commandManager.canRedo()},t.prototype.changeDecorations=function(e,t){void 0===t&&(t=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._changeDecorations=function(e,t){var n=this,o={addDecoration:function(t,i){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationOptionsImpl(e,bt(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,i){return 0===t.length&&0===i.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,i))}},r=null;try{r=t(o)}catch(s){Object(i["e"])(s)}return o.addDecoration=ct,o.changeDecoration=ct,o.changeDecorationOptions=ct,o.removeDecoration=ct,o.deltaDecorations=ct,r},t.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},t.prototype._setTrackedRange=function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:_t[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;var o=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),s=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),r,s,o),i.setOptions(_t[n]),this._decorationsTree.insert(i),i.id},t.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,i=t.length;n<i;n++){var o=t[n];this._decorationsTree.delete(o),delete this._decorations[o.id]}},t.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},t.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range},t.prototype.getLineDecorations=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new c["a"](r,1,s,a),n,i)},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)},t.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s)},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];null===i.range&&(i.range=this._getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd))}return e},t.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},t.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var i=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),r=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),o,r,i),this._decorationsTree.insert(n)}},t.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];if(n){var i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);i!==o?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}},t.prototype._deltaDecorationsImpl=function(e,t,n){var i=this.getVersionId(),o=t.length,r=0,s=n.length,a=0,u=new Array(s);while(r<o||a<s){var l=null;if(r<o){do{l=this._decorations[t[r++]]}while(!l&&r<o);l&&this._decorationsTree.delete(l)}if(a<s){if(!l){var c=++this._lastDecorationId,d=this._instanceId+";"+c;l=new M(d,0,0),this._decorations[d]=l}var h=n[a],p=this._validateRangeRelaxedNoAllocations(h.range),f=bt(h.options),g=this._buffer.getOffsetAt(p.startLineNumber,p.startColumn),m=this._buffer.getOffsetAt(p.endLineNumber,p.endColumn);l.ownerId=e,l.reset(i,g,m,p),l.setOptions(f),this._decorationsTree.insert(l),u[a]=l.id,a++}else l&&delete this._decorations[l.id]}return u},t.prototype.setLineTokens=function(e,t){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,e-1,this._buffer.getLineLength(e),t)},t.prototype.setTokens=function(e){if(0!==e.length){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];t.push({fromLineNumber:o.startLineNumber,toLineNumber:o.startLineNumber+o.tokens.length-1});for(var r=0,s=o.tokens.length;r<s;r++)this.setLineTokens(o.startLineNumber+r,o.tokens[r])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:t})}},t.prototype.tokenizeViewport=function(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)},t.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},t.prototype._emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},t.prototype.resetTokenization=function(){this._tokenization.reset()},t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)},t.prototype.isCheapToTokenize=function(e){return this._tokenization.isCheapToTokenize(e)},t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},t.prototype._getLineTokens=function(e){var t=this.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},t.prototype.getModeId=function(){return this._languageIdentifier.language},t.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},t.prototype.getLanguageIdAtPosition=function(e,t){var n=this.validatePosition(new l["a"](e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),i=this.getLineContent(n.lineNumber),o=this._getLineTokens(n.lineNumber),r=o.findTokenIndexAtOffset(n.column-1),s=t._findLanguageBoundaries(o,r),a=s[0],u=s[1],l=Object($e["d"])(n.column,Qe["a"].getWordDefinition(o.getLanguageId(r)),i.substring(a,u),a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(r>0&&a===n.column-1){var c=t._findLanguageBoundaries(o,r-1),d=c[0],h=c[1],p=Object($e["d"])(n.column,Qe["a"].getWordDefinition(o.getLanguageId(r-1)),i.substring(d,h),d);if(p&&p.startColumn<=e.column&&e.column<=p.endColumn)return p}return null},t._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),i=0,o=t;o>=0&&e.getLanguageId(o)===n;o--)i=e.getStartOffset(o);for(var r=e.getLineContent().length,s=(o=t,e.getCount());o<s&&e.getLanguageId(o)===n;o++)r=e.getEndOffset(o);return[i,r]},t.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),i=this.validatePosition(t),o=this._getLineTokens(i.lineNumber),r=o.getLanguageId(o.findTokenIndexAtOffset(i.column-1)),s=Qe["a"].getBracketsSupport(r);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,i):null},t.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},t.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),i=this._buffer.getLineContent(t),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;var r=Qe["a"].getBracketsSupport(n.getLanguageId(o));if(r&&!Object(Je["b"])(n.getStandardTokenType(o))){var s=Math.max(n.getStartOffset(o),e.column-1-r.maxBracketLength),a=Math.min(n.getEndOffset(o),e.column-1+r.maxBracketLength),u=null;while(1){var l=et["a"].findNextBracketInToken(r.forwardRegex,t,i,s,a);if(!l)break;if(l.startColumn<=e.column&&e.column<=l.endColumn){var c=i.substring(l.startColumn-1,l.endColumn-1);c=c.toLowerCase();var d=this._matchFoundBracket(l,r.textIsBracket[c],r.textIsOpenBracket[c]);d&&(u=d)}s=l.endColumn-1}if(u)return u}if(o>0&&n.getStartOffset(o)===e.column-1){a=n.getStartOffset(o);o--;var h=Qe["a"].getBracketsSupport(n.getLanguageId(o));if(h&&!Object(Je["b"])(n.getStandardTokenType(o))){s=Math.max(n.getStartOffset(o),e.column-1-h.maxBracketLength),l=et["a"].findPrevBracketInToken(h.reversedRegex,t,i,s,a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){c=i.substring(l.startColumn-1,l.endColumn-1);c=c.toLowerCase();d=this._matchFoundBracket(l,h.textIsBracket[c],h.textIsOpenBracket[c]);if(d)return d}}}return null},t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;if(n){var i=this._findMatchingBracketDown(t,e.getEndPosition());if(i)return[e,i]}else{i=this._findMatchingBracketUp(t,e.getStartPosition());if(i)return[e,i]}return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=t.lineNumber;r>=1;r--){var s=this._getLineTokens(r),a=s.getCount(),u=this._buffer.getLineContent(r),l=a-1,c=-1;for(r===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l>=0;l--){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),p=s.getStartOffset(l),f=s.getEndOffset(l);if(-1===c&&(c=f),d===n&&!Object(Je["b"])(h))while(1){var g=et["a"].findPrevBracketInToken(i,r,u,p,c);if(!g)break;var m=u.substring(g.startColumn-1,g.endColumn-1);if(m=m.toLowerCase(),m===e.open?o++:m===e.close&&o--,0===o)return g;c=g.startColumn-1}c=-1}}return null},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=t.lineNumber,s=this.getLineCount();r<=s;r++){var a=this._getLineTokens(r),u=a.getCount(),l=this._buffer.getLineContent(r),c=0,d=0;for(r===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1);c<u;c++){var h=a.getLanguageId(c),p=a.getStandardTokenType(c),f=a.getStartOffset(c),g=a.getEndOffset(c);if(0===d&&(d=f),h===n&&!Object(Je["b"])(p))while(1){var m=et["a"].findNextBracketInToken(i,r,l,d,g);if(!m)break;var v=l.substring(m.startColumn-1,m.endColumn-1);if(v=v.toLowerCase(),v===e.open?o++:v===e.close&&o--,0===o)return m;d=m.endColumn-1}d=0}}return null},t.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber;o>=1;o--){var r=this._getLineTokens(o),s=r.getCount(),a=this._buffer.getLineContent(o),u=s-1,l=-1;for(o===t.lineNumber&&(u=r.findTokenIndexAtOffset(t.column-1),l=t.column-1);u>=0;u--){var c=r.getLanguageId(u),d=r.getStandardTokenType(u),h=r.getStartOffset(u),p=r.getEndOffset(u);if(-1===l&&(l=p),n!==c&&(n=c,i=Qe["a"].getBracketsSupport(n)),i&&!Object(Je["b"])(d)){var f=et["a"].findPrevBracketInToken(i.reversedRegex,o,a,h,l);if(f)return this._toFoundBracket(i,f)}l=-1}}return null},t.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber,r=this.getLineCount();o<=r;o++){var s=this._getLineTokens(o),a=s.getCount(),u=this._buffer.getLineContent(o),l=0,c=0;for(o===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l<a;l++){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),p=s.getStartOffset(l),f=s.getEndOffset(l);if(0===c&&(c=p),n!==d&&(n=d,i=Qe["a"].getBracketsSupport(n)),i&&!Object(Je["b"])(h)){var g=et["a"].findNextBracketInToken(i.forwardRegex,o,u,c,f);if(g)return this._toFoundBracket(i,g)}c=0}}return null},t.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null},t.computeIndentLevel=function(e,t){var n=0,i=0,o=e.length;while(i<o){var r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===o?-1:n},t.prototype._computeIndentLevel=function(e){return t.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},t.prototype.getActiveIndentGuide=function(e,t,n){var i=this;this._assertNotDisposed();var o=this.getLineCount();if(e<1||e>o)throw new Error("Illegal value for lineNumber");for(var r=Qe["a"].getFoldingRules(this._languageIdentifier.id),s=Boolean(r&&r.offSide),a=-2,u=-1,l=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){a=t,u=n;break}}}if(-2===l){l=-1,c=-1;for(t=e;t<o;t++){var r=i._computeIndentLevel(t);if(r>=0){l=t,c=r;break}}}},h=-2,p=-1,f=-2,g=-1,m=function(e){if(-2===h){h=-1,p=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){h=t,p=n;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,g=-1;for(t=e;t<o;t++){var r=i._computeIndentLevel(t);if(r>=0){f=t,g=r;break}}}},v=0,_=!0,b=0,y=!0,w=0,C=0;_||y;C++){var S=e-C,L=e+C;if(0!==C&&(S<1||S<t)&&(_=!1),0!==C&&(L>o||L>n)&&(y=!1),C>5e4&&(_=!1,y=!1),_){var O=void 0,x=this._computeIndentLevel(S-1);if(x>=0?(l=S-1,c=x,O=Math.ceil(x/this._options.indentSize)):(d(S),O=this._getIndentLevelForWhitespaceLine(s,u,c)),0===C){if(v=S,b=L,w=O,0===w)return{startLineNumber:v,endLineNumber:b,indent:w};continue}O>=w?v=S:_=!1}if(y){var N=void 0;x=this._computeIndentLevel(L-1);x>=0?(h=L-1,p=x,N=Math.ceil(x/this._options.indentSize)):(m(L),N=this._getIndentLevelForWhitespaceLine(s,p,g)),N>=w?b=L:y=!1}}return{startLineNumber:v,endLineNumber:b,indent:w}},t.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=Qe["a"].getFoldingRules(this._languageIdentifier.id),o=Boolean(i&&i.offSide),r=new Array(t-e+1),s=-2,a=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)s=c-1,a=h,r[d]=Math.ceil(h/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(var p=c-2;p>=0;p--){var f=this._computeIndentLevel(p);if(f>=0){s=p,a=f;break}}}if(-1!==u&&(-2===u||u<c-1)){u=-1,l=-1;for(p=c;p<n;p++){f=this._computeIndentLevel(p);if(f>=0){u=p,l=f;break}}}r[d]=this._getIndentLevelForWhitespaceLine(o,a,l)}}return r},t.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.indentSize):t===n?Math.ceil(n/this._options.indentSize):e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)},t.MODEL_SYNC_LIMIT=52428800,t.LARGE_FILE_SIZE_THRESHOLD=20971520,t.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,t.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:u["c"].tabSize,indentSize:u["c"].indentSize,insertSpaces:u["c"].insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:u["c"].trimAutoWhitespace,largeFileOptimizations:u["c"].largeFileOptimizations},t}(r["a"]),ht=function(){function e(){this._decorationsTree0=new P,this._decorationsTree1=new P}return e.prototype.intervalSearch=function(e,t,n,i,o){var r=this._decorationsTree0.intervalSearch(e,t,n,i,o),s=this._decorationsTree1.intervalSearch(e,t,n,i,o);return r.concat(s)},e.prototype.search=function(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);var o=this._decorationsTree0.search(e,t,i),r=this._decorationsTree1.search(e,t,i);return o.concat(r)},e.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},e.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},e.prototype.insert=function(e){x(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},e.prototype.delete=function(e){x(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},e.prototype.resolveNode=function(e,t){x(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},e.prototype.acceptReplace=function(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i)},e}();function pt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}var ft=function(){function e(e){this.color=e.color||s["l"],this.darkColor=e.darkColor||s["l"]}return e}(),gt=function(e){function t(t){var n=e.call(this,t)||this;return n._resolvedColor=null,n.position="number"===typeof t.position?t.position:h["d"].Center,n}return it(t,e),t.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},t.prototype.invalidateCachedColor=function(){this._resolvedColor=null},t.prototype._resolveColor=function(e,t){if("string"===typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():s["l"]},t}(ft),mt=function(e){function t(t){var n=e.call(this,t)||this;return n.position=t.position,n}return it(t,e),t.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},t.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},t.prototype._resolveColor=function(e,t){return"string"===typeof e?nt["a"].fromHex(e):t.getColor(e.id)},t}(ft),vt=function(){function e(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?pt(e.className):null,this.hoverMessage=Object(tt["n"])(e.hoverMessage),this.glyphMarginHoverMessage=Object(tt["n"])(e.glyphMarginHoverMessage),this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new gt(e.overviewRuler):null,this.minimap=e.minimap?new mt(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?pt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?pt(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?pt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?pt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?pt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?pt(e.afterContentClassName):null}return e.register=function(t){return new e(t)},e.createDynamic=function(t){return new e(t)},e}();vt.EMPTY=vt.register({});var _t=[vt.register({stickiness:0}),vt.register({stickiness:1}),vt.register({stickiness:2}),vt.register({stickiness:3})];function bt(e){return e instanceof vt?e:vt.createDynamic(e)}var yt=function(e){function t(){var t=e.call(this)||this;return t._actual=t._register(new o["a"]),t.event=t._actual.event,t._deferredCnt=0,t._shouldFire=!1,t}return it(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},t.prototype.fire=function(){this._shouldFire=!0},t}(r["a"]),wt=function(e){function t(){var t=e.call(this)||this;return t._fastEmitter=t._register(new o["a"]),t.fastEvent=t._fastEmitter.event,t._slowEmitter=t._register(new o["a"]),t.slowEvent=t._slowEmitter.event,t._deferredCnt=0,t._deferredEvent=null,t}return it(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){var e=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e)}},t.prototype.fire=function(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(r["a"])},b589:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i,o=n("6d8e"),r=n("30db");(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata"})(i||(i={}));var s=function(){function e(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http"}return e.prototype.setPreferredWebSchema=function(e){this._preferredWebSchema=e},e.prototype.rewrite=function(e,t){var n=this._hosts[e],s=this._ports[e],a=this._connectionTokens[e];return o["a"].from({scheme:r["f"]?this._preferredWebSchema:i.vscodeRemoteResource,authority:n+":"+s,path:"/vscode-remote-resource",query:"path="+encodeURIComponent(t)+"&tkn="+encodeURIComponent(a)})},e}(),a=new s},b707:function(e,t,n){"use strict";var i=n("ef8e"),o=n("6d8e"),r=n("6a89"),s=n("308f"),a=n("a666"),u=n("9768");function l(e,t,n,i){if(Array.isArray(e)){for(var o=0,r=0,s=e;r<s.length;r++){var a=s[r],c=l(a,t,n,i);if(10===c)return c;c>o&&(o=c)}return o}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var d=e.language,h=e.pattern,p=e.scheme,f=e.hasAccessToAllModels;if(!i&&!f)return 0;o=0;if(p)if(p===t.scheme)o=10;else{if("*"!==p)return 0;o=5}if(d)if(d===n)o=10;else{if("*"!==d)return 0;o=Math.max(o,5)}if(h){if(h!==t.fsPath&&!Object(u["a"])(h,t.fsPath))return 0;o=10}return o}return 0}var c=n("1b69");function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(d):!!e.exclusive)}var h=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new s["a"]}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this,i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(a["h"])(function(){if(i){var e=n._entries.indexOf(i);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0)}})},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],n=0,i=this._entries;n<i.length;n++){var o=i[n];o._score>0&&t.push(o.provider)}return t},e.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,function(e){return t.push(e.provider)}),t},e.prototype.orderedGroups=function(e){var t,n,i=[];return this._orderedForEach(e,function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],i.push(t))}),i},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,i=this._entries;n<i.length;n++){var o=i[n];o._score>0&&t(o)}}},e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==n.language||this._lastCandidate.uri!==n.uri){this._lastCandidate=n;for(var i=0,o=this._entries;i<o.length;i++){var r=o[i];if(r._score=l(r.selector,t.uri,t.getLanguageIdentifier().language,Object(c["b"])(t)),d(r.selector)&&r._score>0){for(var s=0,a=this._entries;s<a.length;s++){var u=a[s];u._score=0}r._score=1e3;break}}this._entries.sort(e._compareByScoreAndTime)}},e._compareByScoreAndTime=function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0},e}(),p=n("4035"),f=function(){function e(){this._map=new Map,this._promises=new Map,this._onDidChange=new s["a"],this.onDidChange=this._onDidChange.event,this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),Object(a["h"])(function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))})},e.prototype.registerPromise=function(e,t){var n=this,i=null,o=!1;return this._promises.set(e,t.then(function(t){n._promises.delete(e),!o&&t&&(i=n.register(e,t))})),Object(a["h"])(function(){o=!0,i&&i.dispose()})},e.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var i=this._promises.get(e);return i?i.then(function(n){return t.get(e)}):null},e.prototype.get=function(e){return Object(i["n"])(this._map.get(e))},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object(p["d"])(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},e}();n.d(t,"p",function(){return v}),n.d(t,"x",function(){return _}),n.d(t,"B",function(){return b}),n.d(t,"A",function(){return y}),n.d(t,"w",function(){return g}),n.d(t,"h",function(){return m}),n.d(t,"C",function(){return w}),n.d(t,"E",function(){return C}),n.d(t,"l",function(){return S}),n.d(t,"D",function(){return L}),n.d(t,"s",function(){return O}),n.d(t,"t",function(){return x}),n.d(t,"d",function(){return N}),n.d(t,"v",function(){return D}),n.d(t,"n",function(){return k}),n.d(t,"k",function(){return I}),n.d(t,"i",function(){return E}),n.d(t,"f",function(){return M}),n.d(t,"e",function(){return T}),n.d(t,"o",function(){return P}),n.d(t,"z",function(){return R}),n.d(t,"b",function(){return A}),n.d(t,"a",function(){return F}),n.d(t,"g",function(){return j}),n.d(t,"j",function(){return W}),n.d(t,"r",function(){return V}),n.d(t,"q",function(){return B}),n.d(t,"c",function(){return H}),n.d(t,"u",function(){return z}),n.d(t,"m",function(){return U}),n.d(t,"y",function(){return K});var g,m,v=function(){function e(e,t){this.language=e,this.id=t}return e}(),_=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t=this.getForeground(e),n="mtk"+t,i=this.getFontStyle(e);return 1&i&&(n+=" mtki"),2&i&&(n+=" mtkb"),4&i&&(n+=" mtku"),n},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[n]+";";return 1&i&&(o+="font-style: italic;"),2&i&&(o+="font-weight: bold;"),4&i&&(o+="text-decoration: underline;"),o},e}(),b=function(){var e=Object.create(null);return e[0]="method",e[1]="function",e[2]="constructor",e[3]="field",e[4]="variable",e[5]="class",e[6]="struct",e[7]="interface",e[8]="module",e[9]="property",e[10]="event",e[11]="operator",e[12]="unit",e[13]="value",e[14]="constant",e[15]="enum",e[16]="enum-member",e[17]="keyword",e[25]="snippet",e[18]="text",e[19]="color",e[20]="file",e[21]="reference",e[22]="customcolor",e[23]="folder",e[24]="type-parameter",function(t){return e[t]||"property"}}(),y=function(){var e=Object.create(null);return e["method"]=0,e["function"]=1,e["constructor"]=2,e["field"]=3,e["variable"]=4,e["class"]=5,e["struct"]=6,e["interface"]=7,e["module"]=8,e["property"]=9,e["event"]=10,e["operator"]=11,e["unit"]=12,e["value"]=13,e["constant"]=14,e["enum"]=15,e["enum-member"]=16,e["enumMember"]=16,e["keyword"]=17,e["snippet"]=25,e["text"]=18,e["color"]=19,e["file"]=20,e["reference"]=21,e["customcolor"]=22,e["folder"]=23,e["type-parameter"]=24,e["typeParameter"]=24,function(t,n){var i=e[t];return"undefined"!==typeof i||n||(i=9),i}}();function w(e){return e&&o["a"].isUri(e.uri)&&r["a"].isIRange(e.range)&&(r["a"].isIRange(e.originSelectionRange)||r["a"].isIRange(e.targetSelectionRange))}(function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"})(g||(g={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(m||(m={}));var C=function(){var e=Object.create(null);return e[0]="file",e[1]="module",e[2]="namespace",e[3]="package",e[4]="class",e[5]="method",e[6]="property",e[7]="field",e[8]="constructor",e[9]="enum",e[10]="interface",e[11]="function",e[12]="variable",e[13]="constant",e[14]="string",e[15]="number",e[16]="boolean",e[17]="array",e[18]="object",e[19]="key",e[20]="null",e[21]="enum-member",e[22]="struct",e[23]="event",e[24]="operator",e[25]="type-parameter",function(t,n){return"symbol-icon "+(n?"inline":"block")+" "+(e[t]||"property")}}(),S=function(){function e(e){this.value=e}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();function L(e){return Object(i["h"])(e)&&e.resource&&Array.isArray(e.edits)}var O=new h,x=new h,N=new h,D=new h,k=new h,I=new h,E=new h,M=new h,T=new h,P=new h,R=new h,A=new h,F=new h,j=new h,W=new h,V=new h,B=new h,H=new h,z=new h,U=new h,K=new f},b768:function(e,t,n){},b78f:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("textModelService")},b7d0:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"g",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"a",function(){return p}),n.d(t,"f",function(){return m});var i=n("0a0f"),o=n("a666"),r=n("89cd"),s=n("308f"),a=Object(i["c"])("themeService");function u(e){return{id:e}}var l="dark",c="light",d="hc";function h(e){switch(e){case l:return"vs-dark";case d:return"hc-black";default:return"vs"}}var p={ThemingContribution:"base.contributions.theming"},f=function(){function e(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s["a"]}return e.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(o["h"])(function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)})},e.prototype.getThemingParticipants=function(){return this.themingParticipants},e}(),g=new f;function m(e){return g.onThemeChange(e)}r["a"].add(p.ThemingContribution,g)},b800:function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"c",function(){return m});var i,o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(){function e(){this.value="",this.pos=0}return e.isDigitCharacter=function(e){return e>=48&&e<=57},e.isVariableCharacter=function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90},e.prototype.text=function(e){this.value=e,this.pos=0},e.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},e.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var t,n=this.pos,i=0,o=this.value.charCodeAt(n);if(t=e._table[o],"number"===typeof t)return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(o)){t=8;do{i+=1,o=this.value.charCodeAt(n+i)}while(e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}if(e.isVariableCharacter(o)){t=9;do{o=this.value.charCodeAt(n+ ++i)}while(e.isVariableCharacter(o)||e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}t=10;do{i+=1,o=this.value.charCodeAt(n+i)}while(!isNaN(o)&&"undefined"===typeof e._table[o]&&!e.isDigitCharacter(o)&&!e.isVariableCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}},e._table=(i={},i[36]=0,i[58]=1,i[44]=2,i[123]=3,i[125]=4,i[92]=5,i[47]=6,i[124]=7,i[43]=11,i[45]=12,i[63]=13,i),e}(),s=function(){function e(){this._children=[]}return e.prototype.appendChild=function(e){return e instanceof a&&this._children[this._children.length-1]instanceof a?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this},e.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,[i,1].concat(t)),n._children=o,function e(t,n){for(var i=0,o=t;i<o.length;i++){var r=o[i];r.parent=n,e(r.children,r)}}(t,n)},Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snippet",{get:function(){var e=this;while(1){if(!e)return;if(e instanceof g)return e;e=e.parent}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.children.reduce(function(e,t){return e+t.toString()},"")},e.prototype.len=function(){return 0},e}(),a=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return o(t,e),t.prototype.toString=function(){return this.value},t.prototype.len=function(){return this.value.length},t.prototype.clone=function(){return new t(this.value)},t}(s),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(s),l=function(e){function t(t){var n=e.call(this)||this;return n.index=t,n}return o(t,e),t.compareByIndex=function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop?-1:e.index<t.index?-1:e.index>t.index?1:0},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof c?this._children[0]:void 0},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone()}),e},t}(u),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return o(t,e),t.prototype.appendChild=function(e){return e instanceof a&&(e.parent=this,this.options.push(e)),this},t.prototype.toString=function(){return this.options[0].value},t.prototype.len=function(){return this.options[0].len()},t.prototype.clone=function(){var e=new t;return this.options.forEach(e.appendChild,e),e},t}(s),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.regexp=new RegExp(""),t}return o(t,e),t.prototype.resolve=function(e){var t=this,n=!1,i=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(function(e){return e instanceof h&&Boolean(e.elseValue)})&&(i=this._replace([])),i},t.prototype._replace=function(e){for(var t="",n=0,i=this._children;n<i.length;n++){var o=i[n];if(o instanceof h){var r=e[o.index]||"";r=o.resolve(r),t+=r}else t+=o.toString()}return t},t.prototype.toString=function(){return""},t.prototype.clone=function(){var e=new t;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(function(e){return e.clone()}),e},t}(s),h=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.index=t,r.shorthandName=n,r.ifValue=i,r.elseValue=o,r}return o(t,e),t.prototype.resolve=function(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue},t.prototype._toPascalCase=function(e){var t=e.match(/[a-z]+/gi);return t?t.map(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}).join(""):e},t.prototype.clone=function(){var e=new t(this.index,this.shorthandName,this.ifValue,this.elseValue);return e},t}(s),p=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n}return o(t,e),t.prototype.resolve=function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new a(t)],!0)},t.prototype.clone=function(){var e=new t(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone()}),e},t}(u);function f(e,t){var n=e.slice();while(n.length>0){var i=n.shift(),o=t(i);if(!o)break;n.unshift.apply(n,i.children)}}var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk(function(n){return n instanceof l&&(t.push(n),e=!e||e.index<n.index?n:e),!0}),this._placeholders={all:t,last:e}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholders",{get:function(){var e=this.placeholderInfo.all;return e},enumerable:!0,configurable:!0}),t.prototype.offset=function(e){var t=0,n=!1;return this.walk(function(i){return i===e?(n=!0,!1):(t+=i.len(),!0)}),n?t:-1},t.prototype.fullLen=function(e){var t=0;return f([e],function(e){return t+=e.len(),!0}),t},t.prototype.enclosingPlaceholders=function(e){var t=[],n=e.parent;while(n)n instanceof l&&t.push(n),n=n.parent;return t},t.prototype.resolveVariables=function(e){var t=this;return this.walk(function(n){return n instanceof p&&n.resolve(e)&&(t._placeholders=void 0),!0}),this},t.prototype.appendChild=function(t){return this._placeholders=void 0,e.prototype.appendChild.call(this,t)},t.prototype.replace=function(t,n){return this._placeholders=void 0,e.prototype.replace.call(this,t,n)},t.prototype.clone=function(){var e=new t;return this._children=this.children.map(function(e){return e.clone()}),e},t.prototype.walk=function(e){f(this.children,e)},t}(s),m=function(){function e(){this._scanner=new r,this._token={type:14,pos:0,len:0}}return e.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},e.prototype.parse=function(e,t,n){this._scanner.text(e),this._token=this._scanner.next();var i=new g;while(this._parse(i));var o=new Map,r=[],s=0;i.walk(function(e){return e instanceof l&&(s+=1,e.isFinalTabstop?o.set(0,void 0):!o.has(e.index)&&e.children.length>0?o.set(e.index,e.children):r.push(e)),!0});for(var a=0,u=r;a<u.length;a++){var c=u[a],d=o.get(c.index);if(d){var h=new l(c.index);h.transform=c.transform;for(var p=0,f=d;p<f.length;p++){var m=f[p];h.appendChild(m.clone())}i.replace(c,[h])}}return n||(n=s>0&&t),!o.has(0)&&n&&i.appendChild(new l(0)),i},e.prototype._accept=function(e,t){if(void 0===e||this._token.type===e){var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},e.prototype._until=function(e){if(14===this._token.type)return!1;var t="",n=this._token.pos,i={type:14,pos:0,len:0};while(this._token.type!==e||5===i.type)if(this._token.type===e&&(t+=this._scanner.value.substring(n,i.pos),n=this._token.pos),i=this._token,this._token=this._scanner.next(),14===this._token.type)return!1;return t+=this._scanner.value.substring(n,this._token.pos),this._token=this._scanner.next(),t},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new a(t)),!0)},e.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token,i=this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0));return i?(e.appendChild(/^\d+$/.test(t)?new l(Number(t)):new p(t)),!0):this._backTo(n)},e.prototype._parseComplexPlaceholder=function(e){var t,n=this._token,i=this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0));if(!i)return this._backTo(n);var o=new l(Number(t));if(this._accept(1))while(1){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new a("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else{if(!(o.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(n);var r=new c;while(1){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(r),this._accept(4)))return e.appendChild(o),!0}return this._backTo(n),!1}}},e.prototype._parseChoiceElement=function(e){var t=this._token,n=[];while(1){if(2===this._token.type||7===this._token.type)break;var i=void 0;if(i=(i=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||i:this._accept(void 0,!0),!i)return this._backTo(t),!1;n.push(i)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new a(n.join(""))),!0)},e.prototype._parseComplexVariable=function(e){var t,n=this._token,i=this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0));if(!i)return this._backTo(n);var o=new p(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(n);while(1){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new a("${"+t+":")),o.children.forEach(e.appendChild,e),!0}},e.prototype._parseTransform=function(e){var t=new d,n="",i="";while(1){if(this._accept(6))break;var o=void 0;if(o=this._accept(5,!0))o=this._accept(6,!0)||o,n+=o;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}while(1){if(this._accept(6))break;o=void 0;if(o=this._accept(5,!0))o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new a(o));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}while(1){if(this._accept(4))break;if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(r){return!1}return e.transform=t,!0},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var n=!1;this._accept(3)&&(n=!0);var i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new h(Number(i))),!0;if(this._accept(4))return e.appendChild(new h(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var o=this._accept(9,!0);return o&&this._accept(4)?(e.appendChild(new h(Number(i),o)),!0):(this._backTo(t),!1)}if(this._accept(11)){var r=this._until(4);if(r)return e.appendChild(new h(Number(i),void 0,r,void 0)),!0}else if(this._accept(12)){var s=this._until(4);if(s)return e.appendChild(new h(Number(i),void 0,void 0,s)),!0}else if(this._accept(13)){r=this._until(1);if(r){s=this._until(4);if(s)return e.appendChild(new h(Number(i),void 0,r,s)),!0}}else{s=this._until(4);if(s)return e.appendChild(new h(Number(i),void 0,void 0,s)),!0}return this._backTo(t),!1},e.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new a(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},e}()},b805:function(e,t,n){},b835:function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n("0f70"),o=n("fe45"),r=n("30db"),s=new Array(230),a=new Array(112);function u(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return o["b"].fromString(t)}return s[e.keyCode]||0}(function(){for(var e=0;e<a.length;e++)a[e]=-1;function t(e,t){s[e]=t,a[t]=e}t(3,7),t(8,1),t(9,2),t(13,3),t(16,4),t(17,5),t(18,6),t(19,7),t(20,8),t(27,9),t(32,10),t(33,11),t(34,12),t(35,13),t(36,14),t(37,15),t(38,16),t(39,17),t(40,18),t(45,19),t(46,20),t(48,21),t(49,22),t(50,23),t(51,24),t(52,25),t(53,26),t(54,27),t(55,28),t(56,29),t(57,30),t(65,31),t(66,32),t(67,33),t(68,34),t(69,35),t(70,36),t(71,37),t(72,38),t(73,39),t(74,40),t(75,41),t(76,42),t(77,43),t(78,44),t(79,45),t(80,46),t(81,47),t(82,48),t(83,49),t(84,50),t(85,51),t(86,52),t(87,53),t(88,54),t(89,55),t(90,56),t(93,58),t(96,93),t(97,94),t(98,95),t(99,96),t(100,97),t(101,98),t(102,99),t(103,100),t(104,101),t(105,102),t(106,103),t(107,104),t(108,105),t(109,106),t(110,107),t(111,108),t(112,59),t(113,60),t(114,61),t(115,62),t(116,63),t(117,64),t(118,65),t(119,66),t(120,67),t(121,68),t(122,69),t(123,70),t(124,71),t(125,72),t(126,73),t(127,74),t(128,75),t(129,76),t(130,77),t(144,78),t(145,79),t(186,80),t(187,81),t(188,82),t(189,83),t(190,84),t(191,85),t(192,86),t(193,110),t(194,111),t(219,87),t(220,88),t(221,89),t(222,90),t(223,91),t(226,92),t(229,109),i["j"]?t(91,57):i["i"]?(t(59,80),t(107,81),t(109,83),r["d"]&&t(224,57)):i["m"]&&(t(91,57),r["d"]?t(93,57):t(92,57))})();var l=r["d"]?256:2048,c=512,d=1024,h=r["d"]?2048:256,p=function(){function e(e){this._standardKeyboardEventBrand=!0;var t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=u(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},e.prototype.equals=function(e){return this._asKeybinding===e},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=l),this.altKey&&(t|=c),this.shiftKey&&(t|=d),this.metaKey&&(t|=h),t|=e,t},e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o["e"](this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},e}()},b968:function(e,t,n){},ba77:function(e,t,n){},bc04:function(e,t,n){"use strict";var i=n("3742"),o=n("2504"),r=n("a666"),s=n("b2cc"),a=n("4fc3"),u=n("db88"),l=n("0a0f"),c=n("f5f3"),d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=Object(l["c"])("IEditorCancelService"),p=new a["d"]("cancellableOperation",!1);Object(c["b"])(h,function(){function e(){this._tokens=new WeakMap}return e.prototype.add=function(e,t){var n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext(function(e){var t=p.bindTo(e.get(a["c"])),n=new u["a"];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)}},e.prototype.cancel=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 f=function(e){function t(t,n){var i=e.call(this,n)||this;return i.editor=t,i._unregister=t.invokeWithinContext(function(e){return e.get(h).add(t,i)}),i}return d(t,e),t.prototype.dispose=function(){this._unregister(),e.prototype.dispose.call(this)},t}(o["b"]);Object(s["g"])(new(function(e){function t(){return e.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})||this}return d(t,e),t.prototype.runEditorCommand=function(e,t){e.get(h).cancel(t)},t}(s["c"]))),n.d(t,"a",function(){return m}),n.d(t,"b",function(){return v}),n.d(t,"d",function(){return _}),n.d(t,"c",function(){return b});var g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(){function e(e,t){if(this.flags=t,0!==(1&this.flags)){var n=e.getModel();this.modelVersionId=n?i["r"]("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return e.prototype._equals=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))))},e.prototype.validate=function(t){return this._equals(new e(t,this.flags))},e}(),v=function(e){function t(t,n,i){var o=e.call(this,t,i)||this;return o.editor=t,o._listener=new r["b"],4&n&&o._listener.add(t.onDidChangeCursorPosition(function(e){return o.cancel()})),2&n&&o._listener.add(t.onDidChangeCursorSelection(function(e){return o.cancel()})),8&n&&o._listener.add(t.onDidScrollChange(function(e){return o.cancel()})),1&n&&(o._listener.add(t.onDidChangeModel(function(e){return o.cancel()})),o._listener.add(t.onDidChangeModelContent(function(e){return o.cancel()}))),o}return g(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)},t}(f),_=function(e){function t(t,n){var i=e.call(this,n)||this;return i._listener=t.onDidChangeContent(function(){return i.cancel()}),i}return g(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)},t}(o["b"]),b=function(){function e(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}return e.capture=function(t){var n=null,i=0;if(0!==t.getScrollTop()){var o=t.getVisibleRanges();if(o.length>0){n=o[0].getStartPosition();var r=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-r}}return new e(n,i)},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}()},bcc1:function(e,t,n){},bd50:function(e,t,n){"use strict";n.r(t);var i=n("b2cc"),o=n("b1ca"),r=n("03d9"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(e){function t(){var t=e.call(this,{id:"editor.action.toggleHighContrast",label:r["h"].toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return t._originalThemeName=null,t}return s(t,e),t.prototype.run=function(e,t){var n=e.get(o["a"]);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getTheme().themeName,n.setTheme("hc-black"))},t}(i["b"]);Object(i["f"])(a)},be5f:function(e,t,n){"use strict";n.d(t,"d",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return a});var i=Object.prototype.hasOwnProperty;function o(e){var t=[];for(var n in e)i.call(e,n)&&t.push(e[n]);return t}function r(e){for(var t in e)if(i.call(e,t))return e[t]}function s(e,t){var n=function(n){if(i.call(e,n)){var o=t({key:n,value:e[n]},function(){delete e[n]});if(!1===o)return{value:void 0}}};for(var o in e){var r=n(o);if("object"===typeof r)return r.value}}var a=function(){function e(){this.map=new Map}return e.prototype.add=function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)},e.prototype.delete=function(e,t){var n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))},e.prototype.forEach=function(e,t){var n=this.map.get(e);n&&n.forEach(t)},e}()},bfe0:function(e,t,n){"use strict";n.r(t),n.d(t,"EditorActionCommandEntry",function(){return f}),n.d(t,"QuickCommandAction",function(){return g});var i=n("3742"),o=n("0f70"),r=n("fdcc"),s=n("7e93"),a=n("469c"),u=n("b2cc"),l=n("c101"),c=n("af33"),d=n("6dec"),h=n("03d9"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s.key=t,s.keyAriaLabel=n,s.setHighlights(i),s.action=o,s.editor=r,s}return p(t,e),t.prototype.getLabel=function(){return this.action.label},t.prototype.getAriaLabel=function(){return this.keyAriaLabel?i["r"](h["d"].ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):i["r"](h["d"].ariaLabelEntry,this.getLabel())},t.prototype.getGroupLabel=function(){return this.key},t.prototype.run=function(e,t){var n=this;return 1===e&&(setTimeout(function(){n.editor.focus();try{var e=n.action.run()||Promise.resolve();e.then(void 0,r["e"])}catch(t){Object(r["e"])(t)}},50),!0)},t}(a["b"]),g=function(e){function t(){return e.call(this,h["d"].quickCommandActionInput,{id:"editor.action.quickCommand",label:h["d"].quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:l["a"].focus,primary:o["j"]?571:59,weight:100},menuOpts:{group:"z_commands",order:1}})||this}return p(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(d["a"]);this._show(this.getController(t),{getModel:function(e){return new a["c"](n._editorActionsToEntries(i,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},t.prototype._sort=function(e,t){var n=(e.getLabel()||"").toLowerCase(),i=(t.getLabel()||"").toLowerCase();return n.localeCompare(i)},t.prototype._editorActionsToEntries=function(e,t,n){for(var i=t.getSupportedActions(),o=[],r=0,a=i;r<a.length;r++){var u=a[r],l=e.lookupKeybinding(u.id);if(u.label){var c=Object(s["f"])(n,u.label);c&&o.push(new f(l&&l.getLabel()||"",l&&l.getAriaLabel()||"",c,u,t))}}return o=o.sort(this._sort),o},t}(c["a"]);Object(u["f"])(g)},c101:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i,o=n("4fc3");(function(e){e.editorTextFocus=new o["d"]("editorTextFocus",!1),e.focus=new o["d"]("editorFocus",!1),e.textInputFocus=new o["d"]("textInputFocus",!1),e.readOnly=new o["d"]("editorReadonly",!1),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new o["d"]("editorHasSelection",!1),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new o["d"]("editorHasMultipleSelections",!1),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new o["d"]("editorTabMovesFocus",!1),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new o["d"]("isInEmbeddedEditor",!1),e.canUndo=new o["d"]("canUndo",!1),e.canRedo=new o["d"]("canRedo",!1),e.languageId=new o["d"]("editorLangId",""),e.hasCompletionItemProvider=new o["d"]("editorHasCompletionItemProvider",!1),e.hasCodeActionsProvider=new o["d"]("editorHasCodeActionsProvider",!1),e.hasCodeLensProvider=new o["d"]("editorHasCodeLensProvider",!1),e.hasDefinitionProvider=new o["d"]("editorHasDefinitionProvider",!1),e.hasDeclarationProvider=new o["d"]("editorHasDeclarationProvider",!1),e.hasImplementationProvider=new o["d"]("editorHasImplementationProvider",!1),e.hasTypeDefinitionProvider=new o["d"]("editorHasTypeDefinitionProvider",!1),e.hasHoverProvider=new o["d"]("editorHasHoverProvider",!1),e.hasDocumentHighlightProvider=new o["d"]("editorHasDocumentHighlightProvider",!1),e.hasDocumentSymbolProvider=new o["d"]("editorHasDocumentSymbolProvider",!1),e.hasReferenceProvider=new o["d"]("editorHasReferenceProvider",!1),e.hasRenameProvider=new o["d"]("editorHasRenameProvider",!1),e.hasSignatureHelpProvider=new o["d"]("editorHasSignatureHelpProvider",!1),e.hasDocumentFormattingProvider=new o["d"]("editorHasDocumentFormattingProvider",!1),e.hasDocumentSelectionFormattingProvider=new o["d"]("editorHasDocumentSelectionFormattingProvider",!1),e.hasMultipleDocumentFormattingProvider=new o["d"]("editorHasMultipleDocumentFormattingProvider",!1),e.hasMultipleDocumentSelectionFormattingProvider=new o["d"]("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(i||(i={}))},c317:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return a});var i=n("30db"),o="undefined"===typeof e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return i["g"]?"win32":i["d"]?"darwin":"linux"},nextTick:function(e){return Object(i["h"])(e)}}:e,r=o.cwd,s=o.env,a=o.platform}).call(this,n("f28c"))},c36f:function(e,t,n){"use strict";n.r(t);n("e431");var i=n("dff7"),o=n("0f70"),r=n("30db"),s=n("e53c"),a=n("b2cc"),u=n("5717"),l=n("c101"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d="9_cutcopypaste",h=r["e"]||document.queryCommandSupported("cut"),p=r["e"]||document.queryCommandSupported("copy"),f=p&&!o["g"],g=r["e"]||!o["e"]&&document.queryCommandSupported("paste"),m=function(e){function t(t,n){var i=e.call(this,n)||this;return i.browserCommand=t,i}return c(t,e),t.prototype.runCommand=function(e,t){var n=e.get(u["a"]).getFocusedCodeEditor();n&&n.hasTextFocus()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},t.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},t}(a["b"]),v=function(e){function t(){var t=this,n={kbExpr:l["a"].textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]},weight:100};return r["e"]||(n=void 0),t=e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:i["a"]("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:l["a"].writable,kbOpts:n,menuOpts:{group:d,order:1},menubarOpts:{menuId:14,group:"2_ccp",title:i["a"]({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,t}return c(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getConfiguration().emptySelectionClipboard;!i&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)}},t}(m),_=function(e){function t(){var t=this,n={kbExpr:l["a"].textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};return r["e"]||(n=void 0),t=e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:i["a"]("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:n,menuOpts:{group:d,order:2},menubarOpts:{menuId:14,group:"2_ccp",title:i["a"]({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,t}return c(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getConfiguration().emptySelectionClipboard;!i&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)}},t}(m),b=function(e){function t(){var t=this,n={kbExpr:l["a"].textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};return r["e"]||(n=void 0),t=e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:i["a"]("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:l["a"].writable,kbOpts:n,menuOpts:{group:d,order:3},menubarOpts:{menuId:14,group:"2_ccp",title:i["a"]({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,t}return c(t,e),t}(m),y=function(e){function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:i["a"]("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:l["a"].textInputFocus,primary:0,weight:100}})||this}return c(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getConfiguration().emptySelectionClipboard;!i&&n.getSelection().isEmpty()||(s["a"].forceCopyWithSyntaxHighlighting=!0,e.prototype.run.call(this,t,n),s["a"].forceCopyWithSyntaxHighlighting=!1)}},t}(m);h&&Object(a["f"])(v),p&&Object(a["f"])(_),g&&Object(a["f"])(b),f&&Object(a["f"])(y)},c3d4:function(e,t,n){"use strict";n.r(t);var i="undefined"===typeof monaco?self.monaco:monaco,o={};function r(e){var t=o[e].loader;return t().then(function(t){i.languages.setMonarchTokensProvider(e,t.language),i.languages.setLanguageConfiguration(e,t.conf)})}var s={};function a(e){return s[e]||(s[e]=r(e)),s[e]}function u(e){var t=e.id;o[t]=e,i.languages.register(e),i.languages.onLanguage(t,function(){a(t)})}u({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return n.e("chunk-2d0ae937").then(n.bind(null,"0b3b"))}})},c4d7:function(e,t,n){},c4e3:function(e,t,n){"use strict";n.d(t,"a",function(){return u});n("2a04");var i=n("11f7"),o=n("ee56"),r=n("a666"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(){function e(e){this._element=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":null)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0},e}(),u=function(e){function t(t,n){var r=e.call(this)||this;return r.domNode=r._register(new a(i["m"](t,i["a"](".monaco-icon-label")))),r.labelDescriptionContainer=r._register(new a(i["m"](r.domNode.element,i["a"](".monaco-icon-label-description-container")))),n&&n.supportHighlights?r.labelNode=new o["a"](i["m"](r.labelDescriptionContainer.element,i["a"]("a.label-name")),!!n.supportOcticons):r.labelNode=r._register(new a(i["m"](r.labelDescriptionContainer.element,i["a"]("a.label-name")))),n&&n.supportDescriptionHighlights?r.descriptionNodeFactory=function(){return new o["a"](i["m"](r.labelDescriptionContainer.element,i["a"]("span.label-description")),!!n.supportOcticons)}:r.descriptionNodeFactory=function(){return r._register(new a(i["m"](r.labelDescriptionContainer.element,i["a"]("span.label-description"))))},r}return s(t,e),t.prototype.setLabel=function(e,t,n){var i=["monaco-icon-label"];n&&(n.extraClasses&&i.push.apply(i,n.extraClasses),n.italic&&i.push("italic")),this.domNode.className=i.join(" "),this.domNode.title=n&&n.title?n.title:"",this.labelNode instanceof o["a"]?this.labelNode.set(e||"",n?n.matches:void 0,n&&n.title?n.title:void 0,n&&n.labelEscapeNewLines):this.labelNode.textContent=e||"",(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof o["a"]?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),n&&n.descriptionTitle?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=n&&n.descriptionTitle?n.descriptionTitle:"",this.descriptionNode.empty=!t))},t}(r["a"])},c7f5:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("IWorkspaceEditService")},c84a:function(e,t,n){},caa1:function(e,t,n){},cab5:function(e,t,n){},ccde:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("3742"),o=n("2e5d"),r=n("6a89"),s=n("8025"),a=n("70cb"),u=Object.create(null);function l(e,t){u[e]||(u[e]=["",e]);for(var n=u[e],i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}var c=function(){function e(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return e.unshiftIndent=function(e,t,n,i,r){var s=o["a"].visibleColumnFromColumn(e,t,n);if(r){var a=l(" ",i),u=o["a"].prevIndentTabStop(s,i),c=u/i;return l(a,c)}a="\t",u=o["a"].prevRenderTabStop(s,n),c=u/n;return l(a,c)},e.shiftIndent=function(e,t,n,i,r){var s=o["a"].visibleColumnFromColumn(e,t,n);if(r){var a=l(" ",i),u=o["a"].nextIndentTabStop(s,i),c=u/i;return l(a,c)}a="\t",u=o["a"].nextRenderTabStop(s,n),c=u/n;return l(a,c)},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},e.prototype.getEditOperations=function(t,n){var s=this._selection.startLineNumber,u=this._selection.endLineNumber;1===this._selection.endColumn&&s!==u&&(u-=1);var c=this._opts,d=c.tabSize,h=c.indentSize,p=c.insertSpaces,f=s===u;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(s))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var g=0,m=0,v=s;v<=u;v++,g=m){m=0;var _=t.getLineContent(v),b=i["q"](_);if((!this._opts.isUnshift||0!==_.length&&0!==b)&&(f||this._opts.isUnshift||0!==_.length)){if(-1===b&&(b=_.length),v>1){var y=o["a"].visibleColumnFromColumn(_,b+1,d);if(y%h!==0&&t.isCheapToTokenize(v-1)){var w=a["a"].getRawEnterActionAtPosition(t,v-1,t.getLineMaxColumn(v-1));if(w){if(m=g,w.appendText)for(var C=0,S=w.appendText.length;C<S&&m<h;C++){if(32!==w.appendText.charCodeAt(C))break;m++}w.removeText&&(m=Math.max(0,m-w.removeText));for(C=0;C<m;C++){if(0===b||32!==_.charCodeAt(b-1))break;b--}}}}if(!this._opts.isUnshift||0!==b){var L=void 0;L=this._opts.isUnshift?e.unshiftIndent(_,b+1,d,h,p):e.shiftIndent(_,b+1,d,h,p),this._addEditOperation(n,new r["a"](v,1,v,b+1),L),v===s&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=b+1)}}}else{var O=p?l(" ",h):"\t";for(v=s;v<=u;v++){_=t.getLineContent(v),b=i["q"](_);if((!this._opts.isUnshift||0!==_.length&&0!==b)&&((f||this._opts.isUnshift||0!==_.length)&&(-1===b&&(b=_.length),!this._opts.isUnshift||0!==b)))if(this._opts.isUnshift){b=Math.min(b,h);for(var x=0;x<b;x++){var N=_.charCodeAt(x);if(9===N){b=x+1;break}}this._addEditOperation(n,new r["a"](v,1,v,b+1),"")}else this._addEditOperation(n,new r["a"](v,1,v,1),O),v===s&&(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=n.trackSelection(this._selection)},e.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new s["a"](n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var o=this._selection.startColumn,r=i.startColumn;return r<=o?i:0===i.getDirection()?new s["a"](i.startLineNumber,o,i.endLineNumber,i.endColumn):new s["a"](i.endLineNumber,i.endColumn,i.startLineNumber,o)}return i},e}()},ceb8:function(e,t,n){"use strict";function i(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var o=function(){function e(e,t,n,o){void 0===o&&(o=1),this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(Math.max(Math.min(1,o),0),3)}return e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},e}(),r=function(){function e(e,t,n,o){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,o),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,i=t.g/255,o=t.b/255,r=t.a,s=Math.max(n,i,o),a=Math.min(n,i,o),u=0,l=0,c=(a+s)/2,d=s-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:u=(i-o)/d+(i<o?6:0);break;case i:u=(o-n)/d+2;break;case o:u=(n-i)/d+4;break}u*=60,u=Math.round(u)}return new e(u,l,c,r)},e._hue2rgb=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,i,r,s=t.h/360,a=t.s,u=t.l,l=t.a;if(0===a)n=i=r=u;else{var c=u<.5?u*(1+a):u+a-u*a,d=2*u-c;n=e._hue2rgb(d,c,s+1/3),i=e._hue2rgb(d,c,s),r=e._hue2rgb(d,c,s-1/3)}return new o(Math.round(255*n),Math.round(255*i),Math.round(255*r),l)},e}(),s=function(){function e(e,t,n,o){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,o),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n,i=t.r/255,o=t.g/255,r=t.b/255,s=Math.max(i,o,r),a=Math.min(i,o,r),u=s-a,l=0===s?0:u/s;return n=0===u?0:s===i?((o-r)/u%6+6)%6:s===o?(r-i)/u+2:(i-o)/u+4,new e(Math.round(60*n),l,s,t.a)},e.toRGBA=function(e){var t=e.h,n=e.s,i=e.v,r=e.a,s=i*n,a=s*(1-Math.abs(t/60%2-1)),u=i-s,l=[0,0,0],c=l[0],d=l[1],h=l[2];return t<60?(c=s,d=a):t<120?(c=a,d=s):t<180?(d=s,h=a):t<240?(d=a,h=s):t<300?(c=a,h=s):t<360&&(c=s,h=a),c=Math.round(255*(c+u)),d=Math.round(255*(d+u)),h=Math.round(255*(h+u)),new o(c,d,h,r)},e}(),a=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof s))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=s.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:s.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&o.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&s.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){var t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),o=e._relativeLuminanceForComponent(this.rgba.b),r=.2126*t+.7152*n+.0722*o;return i(r,4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.isLighter=function(){var e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128},e.prototype.isLighterThan=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n},e.prototype.isDarkerThan=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t<n},e.prototype.lighten=function(t){return new e(new r(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))},e.prototype.darken=function(t){return new e(new r(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))},e.prototype.transparent=function(t){var n=this.rgba,i=n.r,r=n.g,s=n.b,a=n.a;return new e(new o(i,r,s,a*t))},e.prototype.isTransparent=function(){return 0===this.rgba.a},e.prototype.isOpaque=function(){return 1===this.rgba.a},e.prototype.opposite=function(){return new e(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},e.prototype.toString=function(){return""+e.Format.CSS.format(this)},e.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(o-i)/o,e.lighten(n)},e.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),o=t.getRelativeLuminance();return n=n*(i-o)/i,e.darken(n)},e.white=new e(new o(255,255,255,1)),e.black=new e(new o(0,0,0,1)),e.red=new e(new o(255,0,0,1)),e.blue=new e(new o(0,0,255,1)),e.cyan=new e(new o(0,255,255,1)),e.lightgrey=new e(new o(211,211,211,1)),e.transparent=new e(new o(0,0,0,0)),e}();(function(e){(function(t){(function(t){function n(t){return 1===t.rgba.a?"rgb("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+")":e.Format.CSS.formatRGBA(t)}function i(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"}function r(t){return 1===t.hsla.a?"hsl("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%)":e.Format.CSS.formatHSLA(t)}function s(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"}function a(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function u(e){return"#"+a(e.rgba.r)+a(e.rgba.g)+a(e.rgba.b)}function l(t,n){return void 0===n&&(n=!1),n&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#"+a(t.rgba.r)+a(t.rgba.g)+a(t.rgba.b)+a(Math.round(255*t.rgba.a))}function c(t){return t?t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t):null}function d(t){if(!t)return null;var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var i=16*h(t.charCodeAt(1))+h(t.charCodeAt(2)),r=16*h(t.charCodeAt(3))+h(t.charCodeAt(4)),s=16*h(t.charCodeAt(5))+h(t.charCodeAt(6));return new e(new o(i,r,s,1))}if(9===n){i=16*h(t.charCodeAt(1))+h(t.charCodeAt(2)),r=16*h(t.charCodeAt(3))+h(t.charCodeAt(4)),s=16*h(t.charCodeAt(5))+h(t.charCodeAt(6));var a=16*h(t.charCodeAt(7))+h(t.charCodeAt(8));return new e(new o(i,r,s,a/255))}if(4===n){i=h(t.charCodeAt(1)),r=h(t.charCodeAt(2)),s=h(t.charCodeAt(3));return new e(new o(16*i+i,16*r+r,16*s+s))}if(5===n){i=h(t.charCodeAt(1)),r=h(t.charCodeAt(2)),s=h(t.charCodeAt(3)),a=h(t.charCodeAt(4));return new e(new o(16*i+i,16*r+r,16*s+s,(16*a+a)/255))}return null}function h(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}t.formatRGB=n,t.formatRGBA=i,t.formatHSL=r,t.formatHSLA=s,t.formatHex=u,t.formatHexA=l,t.format=c,t.parseHex=d})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(a||(a={}))},d093:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l});var i="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function o(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,o=i;n<o.length;n++){var r=o[n];e.indexOf(r)>=0||(t+="\\"+r)}return t+="\\s]+)",new RegExp(t,"g")}var r=o();function s(e){var t=r;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function a(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1;t.lastIndex=s;while(o=t.exec(n)){var a=o.index||0;if(a<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null}function u(e,t,n,i){var o,r=e-1-i;t.lastIndex=0;while(o=t.exec(n)){var s=o.index||0;if(s>r)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}function l(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?u(e,t,n,i):a(e,t,n,i);return t.lastIndex=0,r}},d379:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n("aa3d"),o=n("5717"),r=n("9c1d"),s=n("9e74"),a=n("4fc3"),u=n("0a0f"),l=n("b0cd"),c=n("b7d0"),d=n("4779"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){return function(n,i){t(n,i,e)}},g=function(e){function t(t,n,i,o,r,s,a,u,l,c){var d=e.call(this,t,i.getRawConfiguration(),{},o,r,s,a,u,l,c)||this;return d._parentEditor=i,d._overwriteOptions=n,e.prototype.updateOptions.call(d,d._overwriteOptions),d._register(i.onDidChangeConfiguration(function(e){return d._onParentConfigurationChanged(e)})),d}return h(t,e),t.prototype.getParentEditor=function(){return this._parentEditor},t.prototype._onParentConfigurationChanged=function(t){e.prototype.updateOptions.call(this,this._parentEditor.getRawConfiguration()),e.prototype.updateOptions.call(this,this._overwriteOptions)},t.prototype.updateOptions=function(t){i["g"](this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},t=p([f(3,u["a"]),f(4,o["a"]),f(5,s["b"]),f(6,a["c"]),f(7,c["c"]),f(8,l["a"]),f(9,d["b"])],t),t}(r["a"])},d3d7:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n("0a0f"),o=Object(i["c"])("logService"),r=function(){function e(){}return e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.dispose=function(){},e}()},d3ef:function(e,t,n){"use strict";n("8bf4");var i=n("dff7"),o=n("0f70"),r=n("11f7"),s=n("31df"),a=n("3813"),u=n("5aa5"),l=n("308f"),c=n("1b7d"),d=n("ceb8"),h=n("aa3d"),p=n("258a"),f=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}return e.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},e.prototype.next=function(){return this._navigator.next()},e.prototype.previous=function(){return this._navigator.previous()},e.prototype.current=function(){return this._navigator.current()},e.prototype.parent=function(){return null},e.prototype.first=function(){return this._navigator.first()},e.prototype.last=function(){return this._navigator.last()},e.prototype.has=function(e){return this._history.has(e)},e.prototype._onChange=function(){this._reduceToLimit(),this._navigator=new p["b"](this._elements,0,this._elements.length,this._elements.length)},e.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t<n.length;t++){var i=n[t];this._history.add(i)}},Object.defineProperty(e.prototype,"_elements",{get:function(){var e=[];return this._history.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),e}(),g=n("1898"),m=n("e32d");n.d(t,"b",function(){return y}),n.d(t,"a",function(){return w});var v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=r["a"],b={inputBackground:d["a"].fromHex("#3C3C3C"),inputForeground:d["a"].fromHex("#CCCCCC"),inputValidationInfoBorder:d["a"].fromHex("#55AAFF"),inputValidationInfoBackground:d["a"].fromHex("#063B49"),inputValidationWarningBorder:d["a"].fromHex("#B89500"),inputValidationWarningBackground:d["a"].fromHex("#352A05"),inputValidationErrorBorder:d["a"].fromHex("#BE1100"),inputValidationErrorBackground:d["a"].fromHex("#5A1D1D")},y=function(e){function t(t,n,i){var s=e.call(this)||this;s.state="idle",s.maxHeight=Number.POSITIVE_INFINITY,s._onDidChange=s._register(new l["a"]),s.onDidChange=s._onDidChange.event,s._onDidHeightChange=s._register(new l["a"]),s.onDidHeightChange=s._onDidHeightChange.event,s.contextViewProvider=n,s.options=i||Object.create(null),Object(h["g"])(s.options,b,!1),s.message=null,s.placeholder=s.options.placeholder||"",s.ariaLabel=s.options.ariaLabel||"",s.inputBackground=s.options.inputBackground,s.inputForeground=s.options.inputForeground,s.inputBorder=s.options.inputBorder,s.inputValidationInfoBorder=s.options.inputValidationInfoBorder,s.inputValidationInfoBackground=s.options.inputValidationInfoBackground,s.inputValidationInfoForeground=s.options.inputValidationInfoForeground,s.inputValidationWarningBorder=s.options.inputValidationWarningBorder,s.inputValidationWarningBackground=s.options.inputValidationWarningBackground,s.inputValidationWarningForeground=s.options.inputValidationWarningForeground,s.inputValidationErrorBorder=s.options.inputValidationErrorBorder,s.inputValidationErrorBackground=s.options.inputValidationErrorBackground,s.inputValidationErrorForeground=s.options.inputValidationErrorForeground,s.options.validationOptions&&(s.validation=s.options.validationOptions.validation),s.element=r["m"](t,_(".monaco-inputbox.idle"));var a=s.options.flexibleHeight?"textarea":"input",c=r["m"](s.element,_(".wrapper"));if(s.input=r["m"](c,_(a+".input")),s.input.setAttribute("autocorrect","off"),s.input.setAttribute("autocapitalize","off"),s.input.setAttribute("spellcheck","false"),s.onfocus(s.input,function(){return r["f"](s.element,"synthetic-focus")}),s.onblur(s.input,function(){return r["I"](s.element,"synthetic-focus")}),s.options.flexibleHeight){s.maxHeight="number"===typeof s.options.flexibleMaxHeight?s.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,s.mirror=r["m"](c,_("div.mirror")),s.mirror.innerHTML=" ",s.scrollableElement=new g["b"](s.element,{vertical:1}),s.options.flexibleWidth&&(s.input.setAttribute("wrap","off"),s.mirror.style.whiteSpace="pre",s.mirror.style.wordWrap="initial"),r["m"](t,s.scrollableElement.getDomNode()),s._register(s.scrollableElement),s._register(s.scrollableElement.onScroll(function(e){return s.input.scrollTop=e.scrollTop}));var d=l["b"].filter(Object(m["a"])(document,"selectionchange"),function(){var e=document.getSelection();return!!e&&e.anchorNode===c});s._register(d(s.updateScrollDimensions,s)),s._register(s.onDidHeightChange(s.updateScrollDimensions,s))}else s.input.type=s.options.type||"text",s.input.setAttribute("wrap","off");return s.ariaLabel&&s.input.setAttribute("aria-label",s.ariaLabel),s.placeholder&&s.setPlaceHolder(s.placeholder),s.oninput(s.input,function(){return s.onValueChange()}),s.onblur(s.input,function(){return s.onBlur()}),s.onfocus(s.input,function(){return s.onFocus()}),s.placeholder&&o["j"]&&s.onclick(s.input,function(e){r["c"].stop(e,!0),s.input.focus()}),setTimeout(function(){s.input&&s.updateMirror()},0),s.options.actions&&(s.actionbar=s._register(new u["a"](s.element)),s.actionbar.push(s.options.actions,{icon:!0,label:!1})),s.applyStyles(),s}return v(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.input&&(this.input.setAttribute("placeholder",e),this.input.title=e)},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"))},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return"number"===typeof this.cachedHeight?this.cachedHeight:r["A"](this.element)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.input.disabled=!0,this._hideMessage()},Object.defineProperty(t.prototype,"width",{get:function(){return r["B"](this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;if(this.mirror){var n=parseFloat(this.mirror.style.paddingLeft||"")||0,i=parseFloat(this.mirror.style.paddingRight||"")||0;t=n+i}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{set:function(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+e+"px)":this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")},enumerable:!0,configurable:!0}),t.prototype.updateScrollDimensions=function(){if("number"===typeof this.cachedContentHeight&&"number"===typeof this.cachedHeight){var e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}},t.prototype.showMessage=function(e,t){this.message=e,r["I"](this.element,"idle"),r["I"](this.element,"info"),r["I"](this.element,"warning"),r["I"](this.element,"error"),r["f"](this.element,this.classForType(e.type));var n,o=this.stylesForType(this.message.type);this.element.style.border=o.border?"1px solid "+o.border:null,n=3===e.type?i["a"]("alertErrorMessage","Error: {0}",e.content):2===e.type?i["a"]("alertWarningMessage","Warning: {0}",e.content):i["a"]("alertInfoMessage","Info: {0}",e.content),a["a"](n),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,r["I"](this.element,"info"),r["I"](this.element,"warning"),r["I"](this.element,"error"),r["f"](this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.validate=function(){var e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},t.prototype.stylesForType=function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=r["B"](e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(i){if(!e.message)return null;t=r["m"](i,_(".monaco-inputbox-container")),n();var o={inline:!0,className:"monaco-inputbox-message"},a=e.message.formatContent?Object(s["b"])(e.message.content,o):Object(s["c"])(e.message.content,o);r["f"](a,e.classForType(e.message.type));var u=e.stylesForType(e.message.type);return a.style.backgroundColor=u.background?u.background.toString():null,a.style.color=u.foreground?u.foreground.toString():null,a.style.border=u.border?"1px solid "+u.border:null,r["m"](t,a),null},onHide:function(){e.state="closed"},layout:n}),this.state="open"}},t.prototype._hideMessage=function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value||this.placeholder,t=e.charCodeAt(e.length-1),n=10===t?" ":"",i=e+n;i?this.mirror.textContent=e+n:this.mirror.innerHTML=" ",this.layout()}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null,t=this.inputForeground?this.inputForeground.toString():null,n=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},t.prototype.layout=function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=r["A"](this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}},t.prototype.dispose=function(){this._hideMessage(),this.element=null,this.input=null,this.contextViewProvider=void 0,this.message=null,this.validation=void 0,this.state=null,this.actionbar=void 0,e.prototype.dispose.call(this)},t}(c["a"]),w=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.history=new f(i.history,100),o}return v(t,e),t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,a["c"](this.value))},t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a["c"](this.value))},t.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},t.prototype.getNextValue=function(){return this.history.next()||this.history.last()},t}(y)},d3f49:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("6a89"),o=function(){function e(){}return e.insert=function(e,t){return{range:new i["a"](e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}()},d48d:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c});var i=n("3742"),o=n("2e5d"),r=n("e6ff"),s=n("7061"),a=n("6a89"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(){function e(){}return e._createWord=function(e,t,n,i,o){return{start:i,end:o,wordType:t,nextCharClass:n}},e._findPreviousWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)},e._doFindPreviousWordOnLine=function(e,t,n){for(var i=0,o=n.column-2;o>=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(0===s){if(2===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=1}else if(2===s){if(1===i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=2}else if(1===s&&0!==i)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null},e._findEndOfWord=function(e,t,n,i){for(var o=e.length,r=i;r<o;r++){var s=e.charCodeAt(r),a=t.get(s);if(1===a)return r;if(1===n&&2===a)return r;if(2===n&&0===a)return r}return o},e._findNextWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)},e._doFindNextWordOnLine=function(e,t,n){for(var i=0,o=e.length,r=n.column-1;r<o;r++){var s=e.charCodeAt(r),a=t.get(s);if(0===a){if(2===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);i=1}else if(2===a){if(1===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r);i=2}else if(1===a&&0!==i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,r-1),r)}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,o-1),o):null},e._findStartOfWord=function(e,t,n,i){for(var o=i;o>=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(1===s)return o+1;if(1===n&&2===s)return o+1;if(2===n&&0===s)return o+1}return 0},e.moveWordLeft=function(t,n,i,o){var r=i.lineNumber,a=i.column,u=!1;1===a&&r>1&&(u=!0,r-=1,a=n.getLineMaxColumn(r));var l=e._findPreviousWordOnLine(t,n,new s["a"](r,a));if(0===o){if(l&&!u){var c=n.getLineLastNonWhitespaceColumn(r);if(c<a)return new s["a"](r,l.end+1)}return new s["a"](r,l?l.start+1:1)}if(1===o)return l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=e._findPreviousWordOnLine(t,n,new s["a"](r,l.start+1))),new s["a"](r,l?l.start+1:1);if(3===o){while(l&&2===l.wordType)l=e._findPreviousWordOnLine(t,n,new s["a"](r,l.start+1));return new s["a"](r,l?l.start+1:1)}return l&&a<=l.end+1&&(l=e._findPreviousWordOnLine(t,n,new s["a"](r,l.start+1))),new s["a"](r,l?l.end+1:1)},e._moveWordPartLeft=function(e,t){var n=t.lineNumber,o=e.getLineMaxColumn(n);if(1===t.column)return n>1?new s["a"](n-1,e.getLineMaxColumn(n-1)):t;for(var r=e.getLineContent(n),a=t.column-1;a>1;a--){var u=r.charCodeAt(a-2),l=r.charCodeAt(a-1);if(95!==u&&95===l)return new s["a"](n,a);if(i["y"](u)&&i["z"](l))return new s["a"](n,a);if(i["z"](u)&&i["z"](l)&&a+1<o){var c=r.charCodeAt(a);if(i["y"](c))return new s["a"](n,a)}}return new s["a"](n,1)},e.moveWordRight=function(t,n,i,o){var r=i.lineNumber,a=i.column,u=!1;a===n.getLineMaxColumn(r)&&r<n.getLineCount()&&(u=!0,r+=1,a=1);var l=e._findNextWordOnLine(t,n,new s["a"](r,a));if(2===o)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=e._findNextWordOnLine(t,n,new s["a"](r,l.end+1))),a=l?l.end+1:n.getLineMaxColumn(r);else if(3===o){while(l&&2===l.wordType)l=e._findNextWordOnLine(t,n,new s["a"](r,l.end+1));a=l?l.end+1:n.getLineMaxColumn(r)}else l&&!u&&a>=l.start+1&&(l=e._findNextWordOnLine(t,n,new s["a"](r,l.end+1))),a=l?l.start+1:n.getLineMaxColumn(r);return new s["a"](r,a)},e._moveWordPartRight=function(e,t){var n=t.lineNumber,o=e.getLineMaxColumn(n);if(t.column===o)return n<e.getLineCount()?new s["a"](n+1,1):t;for(var r=e.getLineContent(n),a=t.column+1;a<o;a++){var u=r.charCodeAt(a-2),l=r.charCodeAt(a-1);if(95===u&&95!==l)return new s["a"](n,a);if(i["y"](u)&&i["z"](l))return new s["a"](n,a);if(i["z"](u)&&i["z"](l)&&a+1<o){var c=r.charCodeAt(a);if(i["y"](c))return new s["a"](n,a)}}return new s["a"](n,o)},e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),o=t.column-2,r=i["A"](n,o);return r+1<o?new a["a"](t.lineNumber,r+2,t.lineNumber,t.column):null},e.deleteWordLeft=function(t,n,i,o,r){if(!i.isEmpty())return i;var u=new s["a"](i.positionLineNumber,i.positionColumn),l=u.lineNumber,c=u.column;if(1===l&&1===c)return null;if(o){var d=this._deleteWordLeftWhitespace(n,u);if(d)return d}var h=e._findPreviousWordOnLine(t,n,u);return 0===r?h?c=h.start+1:c>1?c=1:(l--,c=n.getLineMaxColumn(l)):(h&&c<=h.end+1&&(h=e._findPreviousWordOnLine(t,n,new s["a"](l,h.start+1))),h?c=h.end+1:c>1?c=1:(l--,c=n.getLineMaxColumn(l))),new a["a"](l,c,u.lineNumber,u.column)},e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),o=e._moveWordPartLeft(t,i);return new a["a"](i.lineNumber,i.column,o.lineNumber,o.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i<n;i++){var o=e.charAt(i);if(" "!==o&&"\t"!==o)return i}return n},e._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-1,o=this._findFirstNonWhitespaceChar(n,i);return i+1<o?new a["a"](t.lineNumber,t.column,t.lineNumber,o+1):null},e.deleteWordRight=function(t,n,i,o,r){if(!i.isEmpty())return i;var u=new s["a"](i.positionLineNumber,i.positionColumn),l=u.lineNumber,c=u.column,d=n.getLineCount(),h=n.getLineMaxColumn(l);if(l===d&&c===h)return null;if(o){var p=this._deleteWordRightWhitespace(n,u);if(p)return p}var f=e._findNextWordOnLine(t,n,u);return 2===r?f?c=f.end+1:c<h||l===d?c=h:(l++,f=e._findNextWordOnLine(t,n,new s["a"](l,1)),c=f?f.start+1:n.getLineMaxColumn(l)):(f&&c>=f.start+1&&(f=e._findNextWordOnLine(t,n,new s["a"](l,f.end+1))),f?c=f.start+1:c<h||l===d?c=h:(l++,f=e._findNextWordOnLine(t,n,new s["a"](l,1)),c=f?f.start+1:n.getLineMaxColumn(l))),new a["a"](l,c,u.lineNumber,u.column)},e._deleteWordPartRight=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),o=e._moveWordPartRight(t,i);return new a["a"](i.lineNumber,i.column,o.lineNumber,o.column)},e.word=function(t,n,i,u,l){var c,d,h,p,f=Object(r["a"])(t.wordSeparators),g=e._findPreviousWordOnLine(f,n,l),m=e._findNextWordOnLine(f,n,l);if(!u)return g&&1===g.wordType&&g.start<=l.column-1&&l.column-1<=g.end?(c=g.start+1,d=g.end+1):m&&1===m.wordType&&m.start<=l.column-1&&l.column-1<=m.end?(c=m.start+1,d=m.end+1):(c=g?g.end+1:1,d=m?m.start+1:n.getLineMaxColumn(l.lineNumber)),new o["f"](new a["a"](l.lineNumber,c,l.lineNumber,d),0,new s["a"](l.lineNumber,d),0);g&&1===g.wordType&&g.start<l.column-1&&l.column-1<g.end?(h=g.start+1,p=g.end+1):m&&1===m.wordType&&m.start<l.column-1&&l.column-1<m.end?(h=m.start+1,p=m.end+1):(h=l.column,p=l.column);var v,_=l.lineNumber;if(i.selectionStart.containsPosition(l))v=i.selectionStart.endColumn;else if(l.isBeforeOrEqual(i.selectionStart.getStartPosition())){v=h;var b=new s["a"](_,v);i.selectionStart.containsPosition(b)&&(v=i.selectionStart.endColumn)}else{v=p;b=new s["a"](_,v);i.selectionStart.containsPosition(b)&&(v=i.selectionStart.startColumn)}return i.move(!0,_,v,0)},e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.deleteWordPartLeft=function(e,t,n,i){var o=d([l.deleteWordLeft(e,t,n,i,0),l.deleteWordLeft(e,t,n,i,2),l._deleteWordPartLeft(t,n)]);return o.sort(a["a"].compareRangesUsingEnds),o[2]},t.deleteWordPartRight=function(e,t,n,i){var o=d([l.deleteWordRight(e,t,n,i,0),l.deleteWordRight(e,t,n,i,2),l._deleteWordPartRight(t,n)]);return o.sort(a["a"].compareRangesUsingStarts),o[0]},t.moveWordPartLeft=function(e,t,n){var i=d([l.moveWordLeft(e,t,n,0),l.moveWordLeft(e,t,n,2),l._moveWordPartLeft(t,n)]);return i.sort(s["a"].compare),i[2]},t.moveWordPartRight=function(e,t,n){var i=d([l.moveWordRight(e,t,n,0),l.moveWordRight(e,t,n,2),l._moveWordPartRight(t,n)]);return i.sort(s["a"].compare),i[0]},t}(l);function d(e){return e.filter(function(e){return Boolean(e)})}},d585:function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("ef8e"),r=n("b2cc"),s=n("5717"),a=n("2e5d"),u=n("7061"),l=n("6a89"),c=function(){function e(){}return e.columnSelect=function(e,t,n,i,o,r){for(var s=Math.abs(o-n)+1,c=n>o,d=i>r,h=i<r,p=[],f=0;f<s;f++){var g=n+(c?-f:f),m=a["a"].columnFromVisibleColumn2(e,t,g,i),v=a["a"].columnFromVisibleColumn2(e,t,g,r),_=a["a"].visibleColumnFromColumn2(e,t,new u["a"](g,m)),b=a["a"].visibleColumnFromColumn2(e,t,new u["a"](g,v));if(h){if(_>r)continue;if(b<i)continue}if(d){if(b>i)continue;if(_<r)continue}p.push(new a["f"](new l["a"](g,m,g,m),0,new u["a"](g,v),0))}if(0===p.length)for(f=0;f<s;f++){g=n+(c?-f:f);var y=t.getLineMaxColumn(g);p.push(new a["f"](new l["a"](g,y,g,y),0,new u["a"](g,y),0))}return{viewStates:p,reversed:c,fromLineNumber:n,fromVisualColumn:i,toLineNumber:o,toVisualColumn:r}},e.columnSelectLeft=function(t,n,i){var o=i.toViewVisualColumn;return o>1&&o--,e.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,o)},e.columnSelectRight=function(e,t,n){for(var i=0,o=Math.min(n.fromViewLineNumber,n.toViewLineNumber),r=Math.max(n.fromViewLineNumber,n.toViewLineNumber),s=o;s<=r;s++){var l=t.getLineMaxColumn(s),c=a["a"].visibleColumnFromColumn2(e,t,new u["a"](s,l));i=Math.max(i,c)}var d=n.toViewVisualColumn;return d<i&&d++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,d)},e.columnSelectUp=function(e,t,n,i){var o=i?e.pageSize:1,r=Math.max(1,n.toViewLineNumber-o);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},e.columnSelectDown=function(e,t,n,i){var o=i?e.pageSize:1,r=Math.min(t.getLineCount(),n.toViewLineNumber+o);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,r,n.toViewVisualColumn)},e}(),d=n("b272"),h=n("a007"),p=n("191f"),f=n("8ae8"),g=n("c101"),m=n("4fc3");n.d(t,"CoreEditorCommand",function(){return S}),n.d(t,"EditorScroll_",function(){return v}),n.d(t,"RevealLine_",function(){return _}),n.d(t,"CoreNavigationCommands",function(){return b}),n.d(t,"CoreEditingCommands",function(){return y});var v,_,b,y,w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),C=0,S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},t}(r["c"]);function L(e){e.register()}(function(e){var t=function(e){if(!o["h"](e))return!1;var t=e;return!!o["i"](t.to)&&(!(!o["j"](t.by)&&!o["i"](t.by))&&(!(!o["j"](t.value)&&!o["g"](t.value))&&!(!o["j"](t.revealCursor)&&!o["d"](t.revealCursor))))};function n(t){var n,i;switch(t.to){case e.RawDirection.Up:n=1;break;case e.RawDirection.Down:n=2;break;default:return null}switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Page:i=3;break;case e.RawUnit.HalfPage:i=4;break;default:i=2}var o=Math.floor(t.value||1),r=!!t.revealCursor;return{direction:n,unit:i,value:o,revealCursor:r,select:!!t.select}}e.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},e.parse=n})(v||(v={})),function(e){var t=function(e){if(!o["h"](e))return!1;var t=e;return!!o["g"](t.lineNumber)&&!(!o["j"](t.at)&&!o["i"](t.at))};e.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:t,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(_||(_={})),function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[h["b"].moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0)},t}(S);e.MoveTo=Object(r["g"])(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(r["g"])(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map(function(e){return a["d"].fromViewState(e)})),e.setColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(!0,n.reversed?1:2,0)},t}(S);e.ColumnSelect=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:void 0})||this}return w(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){var o=e.model.validatePosition(i.position),r=e.validateViewPosition(new u["a"](i.viewPosition.lineNumber,i.viewPosition.column),o),s=n.fromViewLineNumber,a=n.fromViewVisualColumn;return!n.isReal&&i.setAnchorIfNotSet&&(s=r.lineNumber,a=i.mouseColumn-1),c.columnSelect(e.config,e.viewModel,s,a,r.lineNumber,i.mouseColumn-1)},t}(n))),e.CursorColumnSelectLeft=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:3599,linux:{primary:0}}})||this}return w(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectLeft(e.config,e.viewModel,n)},t}(n))),e.CursorColumnSelectRight=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:3601,linux:{primary:0}}})||this}return w(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectRight(e.config,e.viewModel,n)},t}(n)));var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return w(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectUp(e.config,e.viewModel,n,this._isPaged)},t}(n);e.CursorColumnSelectUp=Object(r["g"])(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(r["g"])(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:3595,linux:{primary:0}}}));var o=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return w(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectDown(e.config,e.viewModel,n,this._isPaged)},t}(n);e.CursorColumnSelectDown=Object(r["g"])(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(r["g"])(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:3596,linux:{primary:0}}}));var s=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:void 0,description:h["a"].description})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=h["a"].parse(t);n&&this._runCursorMove(e,t.source,n)},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,h["b"].move(e.context,e.getAll(),n)),e.reveal(!0,0,0)},t}(S);e.CursorMoveImpl=s,e.CursorMove=Object(r["g"])(new s);var d=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n}return w(n,t),n.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i)},n}(S);e.CursorLeft=Object(r["g"])(new d({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(r["g"])(new d({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1039}})),e.CursorRight=Object(r["g"])(new d({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(r["g"])(new d({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1041}})),e.CursorUp=Object(r["g"])(new d({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(r["g"])(new d({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(r["g"])(new d({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(r["g"])(new d({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1035}})),e.CursorDown=Object(r["g"])(new d({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(r["g"])(new d({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(r["g"])(new d({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(r["g"])(new d({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1036}})),e.CreateCursor=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:void 0})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n,i=e.context;n=t.wholeLine?h["b"].line(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition):h["b"].moveTo(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var o=e.getAll();if(o.length>1)for(var r=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,u=o.length;a<u;a++){var l=o[a];if((!r||l.modelState.selection.containsPosition(r))&&(!s||l.viewState.selection.containsPosition(s)))return o.splice(a,1),e.context.model.pushStackElement(),void e.setStates(t.source,3,o)}o.push(n),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},t}(S))),e.LastCursorMoveToSelect=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0);r[i]=h["b"].moveTo(n,o[i],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,r)},t}(S)));var p=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,h["b"].moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(S);e.CursorHome=Object(r["g"])(new p({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Object(r["g"])(new p({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:0,mac:{primary:287}}})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(!0,0,0)},t.prototype._exec=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.position.lineNumber;n[i]=a["d"].fromModelState(r.modelState.move(!1,s,1,0))}return n},t}(S)));var f=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,h["b"].moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(S);e.CursorEnd=Object(r["g"])(new f({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=Object(r["g"])(new f({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:0,mac:{primary:291}}})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(!0,0,0)},t.prototype._exec=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var r=t[i],s=r.modelState.position.lineNumber,u=e.model.getLineMaxColumn(s);n[i]=a["d"].fromModelState(r.modelState.move(!1,s,u,0))}return n},t}(S)));var m=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,h["b"].moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(S);e.CursorTop=Object(r["g"])(new m({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Object(r["g"])(new m({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:3086,mac:{primary:3088}}}));var b=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,h["b"].moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(S);e.CursorBottom=Object(r["g"])(new b({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Object(r["g"])(new b({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:3085,mac:{primary:3090}}}));var y=function(e){function t(){return e.call(this,{id:"editorScroll",precondition:void 0,description:v.description})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=v.parse(t);n&&this._runEditorScroll(e,t.source,n)},t.prototype._runEditorScroll=function(e,t,n){var i=this._computeDesiredScrollTop(e.context,n);if(n.revealCursor){var o=e.context.getCompletelyVisibleViewRangeAtScrollTop(i);e.setStates(t,3,[h["b"].findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),o,n.select)])}e.scrollTo(i)},t.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n=e.getCompletelyVisibleModelRange(),i=void 0;i=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);var o=e.convertModelPositionToViewPosition(new u["a"](i,1));return e.getVerticalOffsetForViewLine(o.lineNumber)}var r;r=3===t.unit?e.config.pageSize*t.value:4===t.unit?Math.round(e.config.pageSize/2)*t.value:t.value;var s=(1===t.direction?-1:1)*r;return e.getCurrentScrollTop()+s*e.config.lineHeight},t}(S);e.EditorScrollImpl=y,e.EditorScroll=Object(r["g"])(new y),e.ScrollLineUp=Object(r["g"])(new(function(t){function n(){return t.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2064,mac:{primary:267}}})||this}return w(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},n}(S))),e.ScrollPageUp=Object(r["g"])(new(function(t){function n(){return t.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}return w(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},n}(S))),e.ScrollLineDown=Object(r["g"])(new(function(t){function n(){return t.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2066,mac:{primary:268}}})||this}return w(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},n}(S))),e.ScrollPageDown=Object(r["g"])(new(function(t){function n(){return t.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}return w(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},n}(S)));var L=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[h["b"].word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(!0,0,0)},t}(S);e.WordSelect=Object(r["g"])(new L({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Object(r["g"])(new L({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),o=e.getAll(),r=o.slice(0),s=o[i];r[i]=h["b"].word(n,s,s.modelState.hasSelection(),t.position),n.model.pushStackElement(),e.setStates(t.source,3,r)},t}(S)));var O=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[h["b"].line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!1,0,0)},t}(S);e.LineSelect=Object(r["g"])(new O({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Object(r["g"])(new O({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var x=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getAll(),o=i.slice(0);o[n]=h["b"].line(e.context,i[n],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},t}(S);e.LastCursorLineSelect=Object(r["g"])(new x({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Object(r["g"])(new x({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2090}})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,h["b"].expandLineSelection(e.context,e.getAll())),e.reveal(!0,0,0)},t}(S))),e.CancelSelection=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"cancelSelection",precondition:g["a"].hasNonEmptySelection,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:9,secondary:[1033]}})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[h["b"].cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(!0,0,0)},t}(S))),e.RemoveSecondaryCursors=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"removeSecondaryCursors",precondition:g["a"].hasMultipleSelections,kbOpts:{weight:C+1,kbExpr:g["a"].textInputFocus,primary:9,secondary:[1033]}})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(!0,0,0)},t}(S))),e.RevealLine=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"revealLine",precondition:void 0,description:_.description})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=t,i=(n.lineNumber||0)+1;i<1&&(i=1);var o=e.context.model.getLineCount();i>o&&(i=o);var r=new l["a"](i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case _.RawAtArgument.Top:s=3;break;case _.RawAtArgument.Center:s=1;break;case _.RawAtArgument.Bottom:s=4;break;default:break}var a=e.context.convertModelRangeToViewRange(r);e.revealRange(!1,a,s,0)},t}(S))),e.SelectAll=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:void 0})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[h["b"].selectAll(e.context,e.getPrimaryCursor())])},t}(S))),e.SetSelection=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:void 0})||this}return w(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[a["d"].fromModelSelection(t.selection)])},t}(S)))}(b||(b={})),function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditingCommand(t,i,n||{})},t}(r["c"]);e.CoreEditingCommand=t,e.LineBreakInsert=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:g["a"].writable,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:0,mac:{primary:301}}})||this}return w(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,p["a"].lineBreakInsert(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})))},t}(t))),e.Outdent=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:g["a"].writable,kbOpts:{weight:C,kbExpr:m["a"].and(g["a"].editorTextFocus,g["a"].tabDoesNotMoveFocus),primary:1026}})||this}return w(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,p["a"].outdent(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection}))),e.pushUndoStop()},t}(t))),e.Tab=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"tab",precondition:g["a"].writable,kbOpts:{weight:C,kbExpr:m["a"].and(g["a"].editorTextFocus,g["a"].tabDoesNotMoveFocus),primary:2}})||this}return w(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,p["a"].tab(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection}))),e.pushUndoStop()},t}(t))),e.DeleteLeft=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:g["a"].writable,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return w(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=d["a"].deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})),o=i[0],r=i[1];o&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(2)},t}(t))),e.DeleteRight=Object(r["g"])(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:g["a"].writable,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return w(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=d["a"].deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})),o=i[0],r=i[1];o&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(3)},t}(t)))}(y||(y={}));var O=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return w(t,e),t.prototype.runCommand=function(e,t){var n=e.get(s["a"]).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var i=document.activeElement;if(!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)){var o=e.get(s["a"]).getActiveCodeEditor();return o?(o.focus(),this._runEditorHandler(e,o,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t,n){var i=this._editorHandler;"string"===typeof i?t.trigger("keyboard",i,n):(n=n||{},n.source="keyboard",i.runEditorCommand(e,t,n))},t}(r["a"]),x=function(e){function t(t,n,i){var o=e.call(this,{id:t,precondition:void 0,description:i})||this;return o._handlerId=n,o}return w(t,e),t.prototype.runCommand=function(e,t){var n=e.get(s["a"]).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},t}(r["a"]);function N(e,t){L(new x("default:"+e,e)),L(new x(e,e,t))}L(new O({editorHandler:b.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:g["a"].textInputFocus,kbOpts:{weight:C,kbExpr:null,primary:2079},menubarOpts:{menuId:22,group:"1_basic",title:i["a"]({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),L(new O({editorHandler:f["b"].Undo,inputHandler:"undo",id:f["b"].Undo,precondition:g["a"].writable,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2104},menubarOpts:{menuId:14,group:"1_do",title:i["a"]({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),L(new x("default:"+f["b"].Undo,f["b"].Undo)),L(new O({editorHandler:f["b"].Redo,inputHandler:"redo",id:f["b"].Redo,precondition:g["a"].writable,kbOpts:{weight:C,kbExpr:g["a"].textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:14,group:"1_do",title:i["a"]({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),L(new x("default:"+f["b"].Redo,f["b"].Redo)),N(f["b"].Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),N(f["b"].ReplacePreviousChar),N(f["b"].CompositionStart),N(f["b"].CompositionEnd),N(f["b"].Paste),N(f["b"].Cut)},d741:function(e,t,n){"use strict";n.r(t);var i=n("e8e3"),o=n("2504"),r=n("b2cc"),s=n("7061"),a=n("6a89"),u=n("8025"),l=n("c101"),c=n("b707"),d=n("dff7"),h=n("a666"),p=n("3742"),f=function(){function e(){}return e.prototype.provideSelectionRanges=function(e,t){for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i],s=[];n.push(s),this._addInWordRanges(s,e,r),this._addWordRanges(s,e,r),this._addWhitespaceLine(s,e,r),s.push({range:e.getFullModelRange()})}return n},e.prototype._addInWordRanges=function(e,t,n){var i=t.getWordAtPosition(n);if(i){for(var o=i.word,r=i.startColumn,s=n.column-r,u=s,l=s,c=0;u>=0;u--){var d=o.charCodeAt(u);if(95===d||45===d)break;if(Object(p["y"])(d)&&Object(p["z"])(c))break;c=d}for(u+=1;l<o.length;l++){d=o.charCodeAt(l);if(Object(p["z"])(d)&&Object(p["y"])(c))break;if(95===d||45===d)break;c=d}u<l&&e.push({range:new a["a"](n.lineNumber,r+u,n.lineNumber,r+l)})}},e.prototype._addWordRanges=function(e,t,n){var i=t.getWordAtPosition(n);i&&e.push({range:new a["a"](n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)})},e.prototype._addWhitespaceLine=function(e,t,n){t.getLineLength(n.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new a["a"](n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})},e}(),g=n("67b4"),m=n("9e74"),v=n("fdcc");n.d(t,"provideSelectionRanges",function(){return x});var _=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},y=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},w=function(){function e(e,t){this.index=e,this.ranges=t}return e.prototype.mov=function(t){var n=this.index+(t?1:-1);if(n<0||n>=this.ranges.length)return this;var i=new e(n,this.ranges);return i.ranges[n].equalsRange(this.ranges[this.index])?i.mov(t):i},e}(),C=function(){function e(e){this._ignoreSelection=!1,this._editor=e}return e.get=function(t){return t.getContribution(e._id)},e.prototype.dispose=function(){Object(h["f"])(this._selectionListener)},e.prototype.getId=function(){return e._id},e.prototype.run=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getSelections(),r=this._editor.getModel();if(c["u"].has(r)){var s=Promise.resolve(void 0);return this._state||(s=x(r,n.map(function(e){return e.getPosition()}),o["a"].None).then(function(e){if(i["n"](e)&&e.length===n.length&&t._editor.hasModel()&&i["g"](t._editor.getSelections(),n,function(e,t){return e.equalsSelection(t)})){for(var o=function(t){e[t]=e[t].filter(function(e){return e.containsPosition(n[t].getStartPosition())&&e.containsPosition(n[t].getEndPosition())}),e[t].unshift(n[t])},r=0;r<e.length;r++)o(r);t._state=e.map(function(e){return new w(0,e)}),Object(h["f"])(t._selectionListener),t._selectionListener=t._editor.onDidChangeCursorPosition(function(){t._ignoreSelection||(Object(h["f"])(t._selectionListener),t._state=void 0)})}})),s.then(function(){if(t._state){t._state=t._state.map(function(t){return t.mov(e)});var n=t._state.map(function(e){return u["a"].fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())});t._ignoreSelection=!0;try{t._editor.setSelections(n)}finally{t._ignoreSelection=!1}}})}}},e._id="editor.contrib.smartSelectController",e}(),S=function(e){function t(t,n){var i=e.call(this,n)||this;return i._forward=t,i}return _(t,e),t.prototype.run=function(e,t){return b(this,void 0,void 0,function(){var e;return y(this,function(n){switch(n.label){case 0:return e=C.get(t),e?[4,e.run(this._forward)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},t}(r["b"]),L=function(e){function t(){return e.call(this,!0,{id:"editor.action.smartSelect.expand",label:d["a"]("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:l["a"].editorTextFocus,primary:1553,mac:{primary:3345},weight:100},menubarOpts:{menuId:22,group:"1_basic",title:d["a"]({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}return _(t,e),t}(S);m["a"].registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var O=function(e){function t(){return e.call(this,!1,{id:"editor.action.smartSelect.shrink",label:d["a"]("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:l["a"].editorTextFocus,primary:1551,mac:{primary:3343},weight:100},menubarOpts:{menuId:22,group:"1_basic",title:d["a"]({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}return _(t,e),t}(S);function x(e,t,n){var o=c["u"].all(e);1===o.length&&o.unshift(new g["a"]);for(var r=[],u=[],l=0,d=o;l<d.length;l++){var h=d[l];r.push(Promise.resolve(h.provideSelectionRanges(e,t,n)).then(function(e){if(i["n"](e)&&e.length===t.length)for(var n=0;n<t.length;n++){u[n]||(u[n]=[]);for(var o=0,r=e[n];o<r.length;o++){var s=r[o];a["a"].isIRange(s.range)&&a["a"].containsPosition(s.range,t[n])&&u[n].push(a["a"].lift(s.range))}}},v["f"]))}return Promise.all(r).then(function(){return u.map(function(t){if(0===t.length)return[];t.sort(function(e,t){return s["a"].isBefore(e.getStartPosition(),t.getStartPosition())?1:s["a"].isBefore(t.getStartPosition(),e.getStartPosition())?-1:s["a"].isBefore(e.getEndPosition(),t.getEndPosition())?-1:s["a"].isBefore(t.getEndPosition(),e.getEndPosition())?1:0});for(var n,i=[],o=0,r=t;o<r.length;o++){var u=r[o];(!n||a["a"].containsRange(u,n)&&!a["a"].equalsRange(u,n))&&(i.push(u),n=u)}for(var l=[i[0]],c=1;c<i.length;c++){var d=i[c-1],h=i[c];if(h.startLineNumber!==d.startLineNumber||h.endLineNumber!==d.endLineNumber){var p=new a["a"](d.startLineNumber,e.getLineFirstNonWhitespaceColumn(d.startLineNumber),d.endLineNumber,e.getLineLastNonWhitespaceColumn(d.endLineNumber));p.containsRange(d)&&!p.equalsRange(d)&&h.containsRange(p)&&!h.equalsRange(p)&&l.push(p);var f=new a["a"](d.startLineNumber,1,d.endLineNumber,e.getLineMaxColumn(d.endLineNumber));f.containsRange(d)&&!f.equalsRange(p)&&h.containsRange(f)&&!h.equalsRange(f)&&l.push(f)}l.push(h)}return l})})}Object(r["h"])(C),Object(r["f"])(L),Object(r["f"])(O),c["u"].register("*",new f),Object(r["e"])("_executeSelectionRangeProvider",function(e,t,n){return x(e,n.positions,o["a"].None)})},d844:function(e,t,n){"use strict";n.r(t);n("607c");var i=n("dff7"),o=n("5fe7"),r=n("2504"),s=n("fdcc"),a=n("78bc"),u=n("a666"),l=n("30db"),c=n("b2cc"),d=n("b57f"),h=n("b707"),p=n("041a"),f=n("6d8e"),g=n("6a89"),m=n("1b69"),v=n("9e74"),_=n("e8e3"),b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},w=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},C=void 0,S=function(){function e(e,t){this._link=e,this._provider=t}return e.prototype.toJSON=function(){return{range:this.range,url:this.url,tooltip:this.tooltip}},Object.defineProperty(e.prototype,"range",{get:function(){return this._link.range},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._link.url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._link.tooltip},enumerable:!0,configurable:!0}),e.prototype.resolve=function(e){var t=this;if(this._link.url)try{return"string"===typeof this._link.url?Promise.resolve(f["a"].parse(this._link.url)):Promise.resolve(this._link.url)}catch(n){return Promise.reject(new Error("invalid"))}return"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then(function(n){return t._link=n||t._link,t._link.url?t.resolve(e):Promise.reject(new Error("missing"))}):Promise.reject(new Error("missing"))},e}(),L=function(e){function t(n){for(var i=e.call(this)||this,o=[],r=function(e,n){var i=e.links.map(function(e){return new S(e,n)});o=t._union(o,i),Object(u["g"])(n)&&s._register(n)},s=this,a=0,l=n;a<l.length;a++){var c=l[a],d=c[0],h=c[1];r(d,h)}return i.links=o,i}return b(t,e),t._union=function(e,t){var n,i,o,r,s=[];for(n=0,o=0,i=e.length,r=t.length;n<i&&o<r;){var a=e[n],u=t[o];if(g["a"].areIntersectingOrTouching(a.range,u.range))n++;else{var l=g["a"].compareRangesUsingStarts(a.range,u.range);l<0?(s.push(a),n++):(s.push(u),o++)}}for(;n<i;n++)s.push(e[n]);for(;o<r;o++)s.push(t[o]);return s},t}(u["a"]);function O(e,t){var n=[],i=h["q"].ordered(e).reverse().map(function(i,o){return Promise.resolve(i.provideLinks(e,t)).then(function(e){e&&(n[o]=[e,i])},s["f"])});return Promise.all(i).then(function(){var e=new L(Object(_["d"])(n));return t.isCancellationRequested?(e.dispose(),new L([])):e})}v["a"].registerCommand("_executeLinkProvider",function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return y(C,void 0,void 0,function(){var n,i,o,s;return w(this,function(a){switch(a.label){case 0:return n=t[0],n instanceof f["a"]?(i=e.get(m["a"]).getModel(n),i?[4,O(i,r["a"].None)]:[2,[]]):[2,[]];case 1:return o=a.sent(),o?(s=o.links.slice(0),o.dispose(),[2,s]):[2,[]]}})})});var x=n("b0cd"),N=n("5bd7"),D=n("303e"),k=n("b7d0"),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(){return E=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)},M=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},T=function(e,t){return function(n,i){t(n,i,e)}},P=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},R=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function A(e,t){var n=e.url&&/^command:/i.test(e.url.toString()),o=e.tooltip?e.tooltip:n?i["a"]("links.navigate.executeCmd","Execute command"):i["a"]("links.navigate.follow","Follow link"),r=t?l["d"]?i["a"]("links.navigate.kb.meta.mac","cmd + click"):i["a"]("links.navigate.kb.meta","ctrl + click"):l["d"]?i["a"]("links.navigate.kb.alt.mac","option + click"):i["a"]("links.navigate.kb.alt","alt + click");if(e.url){var s=(new a["a"]).appendMarkdown("["+o+"]("+e.url.toString()+") ("+r+")");return s.isTrusted=!0,s}return(new a["a"]).appendText(o+" ("+r+")")}var F={general:d["a"].register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:d["a"].register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},j=function(){function e(e,t){this.link=e,this.decorationId=t}return e.decoration=function(t,n){return{range:t.range,options:e._getOptions(t,n,!1)}},e._getOptions=function(e,t,n){var i=E({},n?F.active:F.general);return i.hoverMessage=A(e,t),i},e.prototype.activate=function(t,n){t.changeDecorationOptions(this.decorationId,e._getOptions(this.link,n,!0))},e.prototype.deactivate=function(t,n){t.changeDecorationOptions(this.decorationId,e._getOptions(this.link,n,!1))},e}(),W=function(){function e(e,t,n){var i=this;this.listenersToRemove=new u["b"],this.editor=e,this.openerService=t,this.notificationService=n;var r=new p["a"](e);this.listenersToRemove.add(r),this.listenersToRemove.add(r.onMouseMoveOrRelevantKeyDown(function(e){var t=e[0],n=e[1];i._onEditorMouseMove(t,n)})),this.listenersToRemove.add(r.onExecute(function(e){i.onEditorMouseUp(e)})),this.listenersToRemove.add(r.onCancel(function(e){i.cleanUpActiveLinkDecoration()})),this.enabled=e.getConfiguration().contribInfo.links,this.listenersToRemove.add(e.onDidChangeConfiguration(function(t){var n=e.getConfiguration().contribInfo.links;i.enabled!==n&&(i.enabled=n,i.updateDecorations([]),i.stop(),i.beginCompute())})),this.listenersToRemove.add(e.onDidChangeModelContent(function(e){return i.onChange()})),this.listenersToRemove.add(e.onDidChangeModel(function(e){return i.onModelChanged()})),this.listenersToRemove.add(e.onDidChangeModelLanguage(function(e){return i.onModelModeChanged()})),this.listenersToRemove.add(h["q"].onDidChange(function(e){return i.onModelModeChanged()})),this.timeout=new o["e"],this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.ID},e.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()},e.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute()},e.prototype.onChange=function(){var t=this;this.timeout.setIfNotSet(function(){return t.beginCompute()},e.RECOMPUTE_TIME)},e.prototype.beginCompute=function(){return P(this,void 0,void 0,function(){var e,t,n;return R(this,function(i){switch(i.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(e=this.editor.getModel(),!h["q"].has(e))return[2];this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=o["f"](function(t){return O(e,t)}),i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this,[4,this.computePromise];case 2:return t.activeLinksList=i.sent(),this.updateDecorations(this.activeLinksList.links),[3,5];case 3:return n=i.sent(),Object(s["e"])(n),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2]}})})},e.prototype.updateDecorations=function(e){for(var t="altKey"===this.editor.getConfiguration().multiCursorModifier,n=[],i=Object.keys(this.currentOccurrences),o=0,r=i.length;o<r;o++){var s=i[o],a=this.currentOccurrences[s];n.push(a.decorationId)}var u=[];if(e)for(var l=0,c=e;l<c.length;l++){var d=c[l];u.push(j.decoration(d,t))}var h=this.editor.deltaDecorations(n,u);this.currentOccurrences={},this.activeLinkDecorationId=null;for(o=0,r=h.length;o<r;o++){a=new j(e[o],h[o]);this.currentOccurrences[a.decorationId]=a}},e.prototype._onEditorMouseMove=function(e,t){var n=this,i="altKey"===this.editor.getConfiguration().multiCursorModifier;if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();var o=this.getLinkOccurrence(e.target.position);o&&this.editor.changeDecorations(function(e){o.activate(e,i),n.activeLinkDecorationId=o.decorationId})}else this.cleanUpActiveLinkDecoration()},e.prototype.cleanUpActiveLinkDecoration=function(){var e="altKey"===this.editor.getConfiguration().multiCursorModifier;if(this.activeLinkDecorationId){var t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(function(n){t.deactivate(n,e)}),this.activeLinkDecorationId=null}},e.prototype.onEditorMouseUp=function(e){if(this.isEnabled(e)){var t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier)}},e.prototype.openLinkOccurrence=function(e,t){var n=this;if(this.openerService){var o=e.link;o.resolve(r["a"].None).then(function(e){return n.openerService.open(e,{openToSide:t})},function(e){var t=e instanceof Error?e.message:e;"invalid"===t?n.notificationService.warn(i["a"]("invalid.url","Failed to open this link because it is not well-formed: {0}",o.url.toString())):"missing"===t?n.notificationService.warn(i["a"]("missing.url","Failed to open this link because its target is missing.")):Object(s["e"])(e)})}},e.prototype.getLinkOccurrence=function(e){if(!this.editor.hasModel()||!e)return null;for(var t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0),n=0,i=t;n<i.length;n++){var o=i[n],r=this.currentOccurrences[o.id];if(r)return r}return null},e.prototype.isEnabled=function(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))},e.prototype.stop=function(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)},e.prototype.dispose=function(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()},e.ID="editor.linkDetector",e.RECOMPUTE_TIME=1e3,e=M([T(1,N["a"]),T(2,x["a"])],e),e}(),V=function(e){function t(){return e.call(this,{id:"editor.action.openLink",label:i["a"]("label","Open Link"),alias:"Open Link",precondition:void 0})||this}return I(t,e),t.prototype.run=function(e,t){var n=W.get(t);if(n&&t.hasModel())for(var i=t.getSelections(),o=0,r=i;o<r.length;o++){var s=r[o],a=n.getLinkOccurrence(s.getEndPosition());a&&n.openLinkOccurrence(a,!1)}},t}(c["b"]);Object(c["h"])(W),Object(c["f"])(V),Object(k["f"])(function(e,t){var n=e.getColor(D["n"]);n&&t.addRule(".monaco-editor .detected-link-active { color: "+n+" !important; }")})},d8c3:function(e,t,n){},d93b:function(e,t,n){},d95f:function(e,t,n){},db88:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("258a"),o=function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),r=function(){function e(){this._first=o.Undefined,this._last=o.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===o.Undefined},e.prototype.clear=function(){this._first=o.Undefined,this._last=o.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=this,i=new o(e);if(this._first===o.Undefined)this._first=i,this._last=i;else if(t){var r=this._last;this._last=i,i.prev=r,r.next=i}else{var s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;var a=!1;return function(){a||(a=!0,n._remove(i))}},e.prototype.shift=function(){if(this._first!==o.Undefined){var e=this._first.element;return this._remove(this._first),e}},e.prototype.pop=function(){if(this._last!==o.Undefined){var e=this._last.element;return this._remove(this._last),e}},e.prototype._remove=function(e){if(e.prev!==o.Undefined&&e.next!==o.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===o.Undefined&&e.next===o.Undefined?(this._first=o.Undefined,this._last=o.Undefined):e.next===o.Undefined?(this._last=this._last.prev,this._last.next=o.Undefined):e.prev===o.Undefined&&(this._first=this._first.next,this._first.prev=o.Undefined);this._size-=1},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===o.Undefined?i["c"]:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t!==o.Undefined;t=t.next)e.push(t.element);return e},e}()},dd1b:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("89cd"),o=n("308f"),r={JSONContribution:"base.contributions.json"};function s(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}var a=function(){function e(){this._onDidChangeSchema=new o["a"],this.schemasById={}}return e.prototype.registerSchema=function(e,t){this.schemasById[s(e)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e}(),u=new a;i["a"].add(r.JSONContribution,u)},dde9:function(e,t,n){},dea0:function(e,t,n){"use strict";var i,o=n("11f7"),r=n("31df"),s=n("fdcc"),a=n("78bc"),u=n("9c3e");(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:v,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:v,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:v,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||C.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=h(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=h(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=h(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",t._comment=/<!--(?!-?>)[\s\S]*?-->/,t.html=h(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=h(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=h(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=_({},t),t.gfm=_({},t.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=h(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=_({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=_({},t.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),n.rules=t,n.lex=function(e,t){var i=new n(t);return i.lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,n){var i,o,r,s,a,u,l,c,d,h,p,f,g,m,v,_;e=e.replace(/^ +$/gm,"");while(e)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),r[0].length>1&&this.tokens.push({type:"space"})),r=this.rules.code.exec(e))e=e.substring(r[0].length),r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?r:y(r,"\n")});else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2]?r[2].trim():r[2],text:r[3]||""});else if(r=this.rules.heading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if((r=this.rules.nptable.exec(e))&&(u={type:"table",header:b(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]},u.header.length===u.align.length)){for(e=e.substring(r[0].length),p=0;p<u.align.length;p++)/^ *-+: *$/.test(u.align[p])?u.align[p]="right":/^ *:-+: *$/.test(u.align[p])?u.align[p]="center":/^ *:-+ *$/.test(u.align[p])?u.align[p]="left":u.align[p]=null;for(p=0;p<u.cells.length;p++)u.cells[p]=b(u.cells[p],u.header.length);this.tokens.push(u)}else if(r=this.rules.hr.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"hr"});else if(r=this.rules.blockquote.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"blockquote_start"}),r=r[0].replace(/^ *> ?/gm,""),this.token(r,n),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),s=r[2],m=s.length>1,l={type:"list_start",ordered:m,start:m?+s:"",loose:!1},this.tokens.push(l),r=r[0].match(this.rules.item),c=[],i=!1,g=r.length,p=0;p<g;p++)u=r[p],h=u.length,u=u.replace(/^ *([*+-]|\d+\.) */,""),~u.indexOf("\n ")&&(h-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+h+"}","gm"),"")),p!==g-1&&(a=t.bullet.exec(r[p+1])[0],(s.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==s)&&(e=r.slice(p+1).join("\n")+e,p=g-1)),o=i||/\n\n(?!\s*$)/.test(u),p!==g-1&&(i="\n"===u.charAt(u.length-1),o||(o=i)),o&&(l.loose=!0),v=/^\[[ xX]\] /.test(u),_=void 0,v&&(_=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:v,checked:_,loose:o},c.push(d),this.tokens.push(d),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(g=c.length,p=0;p<g;p++)c[p].loose=!0;this.tokens.push({type:"list_end"})}else if(r=this.rules.html.exec(e))e=e.substring(r[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:r[0]});else if(n&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),r[3]&&(r[3]=r[3].substring(1,r[3].length-1)),f=r[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[f]||(this.tokens.links[f]={href:r[2],title:r[3]});else if((r=this.rules.table.exec(e))&&(u={type:"table",header:b(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]},u.header.length===u.align.length)){for(e=e.substring(r[0].length),p=0;p<u.align.length;p++)/^ *-+: *$/.test(u.align[p])?u.align[p]="right":/^ *:-+: *$/.test(u.align[p])?u.align[p]="center":/^ *:-+ *$/.test(u.align[p])?u.align[p]="left":u.align[p]=null;for(p=0;p<u.cells.length;p++)u.cells[p]=b(u.cells[p].replace(/^ *\| *| *\| *$/g,""),u.header.length);this.tokens.push(u)}else if(r=this.rules.lheading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:"="===r[2]?1:2,text:r[1]});else if(n&&(r=this.rules.paragraph.exec(e)))e=e.substring(r[0].length),this.tokens.push({type:"paragraph",text:"\n"===r[1].charAt(r[1].length-1)?r[1].slice(0,-1):r[1]});else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"text",text:r[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var o={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:v,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:v,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function r(e,t){if(this.options=t||C.defaults,this.links=e,this.rules=o.normal,this.renderer=this.options.renderer||new s,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=o.pedantic:this.options.gfm&&(this.options.breaks?this.rules=o.breaks:this.rules=o.gfm)}function s(e){this.options=e||C.defaults}function a(){}function u(e){this.tokens=[],this.token=null,this.options=e||C.defaults,this.options.renderer=this.options.renderer||new s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new l}function l(){this.seen={}}function c(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,function(e){return c.replacements[e]})}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,function(e){return c.replacements[e]});return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function h(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=n.source||n,n=n.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function p(e,t,n){if(e){try{var i=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!m.test(n)&&(n=f(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(o){return null}return n}function f(e,t){return g[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?g[" "+e]=e+"/":g[" "+e]=y(e,"/",!0)),e=g[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}o._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",o.em=h(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=h(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=h(o.tag).replace("comment",t._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,o._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=h(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=h(o.reflink).replace("label",o._label).getRegex(),o.normal=_({},o),o.pedantic=_({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=_({},o.normal,{escape:h(o.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),o.gfm.url=h(o.gfm.url,"i").replace("email",o.gfm._extended_email).getRegex(),o.breaks=_({},o.gfm,{br:h(o.br).replace("{2,}","*").getRegex(),text:h(o.gfm.text).replace(/\{2,\}/g,"*").getRegex()}),r.rules=o,r.output=function(e,t,n){var i=new r(t,n);return i.output(e)},r.prototype.output=function(e){var t,n,i,o,s,a,u="";while(e)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),u+=c(s[1]);else if(s=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),e=e.substring(s[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0];else if(s=this.rules.link.exec(e)){var l=w(s[2],"()");if(l>-1){var d=s[0].length-(s[2].length-l)-(s[3]||"").length;s[2]=s[2].substring(0,l),s[0]=s[0].substring(0,d).trim(),s[3]=""}e=e.substring(s[0].length),this.inLink=!0,i=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i),t?(i=t[1],o=t[3]):o=""):o=s[3]?s[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(s,{href:r.escapes(i),title:r.escapes(o)}),this.inLink=!1}else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){u+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),u+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),u+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),u+=this.renderer.codespan(c(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),u+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),u+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),"@"===s[2]?(n=c(this.mangle(s[1])),i="mailto:"+n):(n=c(s[1]),i=n),u+=this.renderer.link(i,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.inRawBlock?u+=this.renderer.text(s[0]):u+=this.renderer.text(c(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===s[2])n=c(s[0]),i="mailto:"+n;else{do{a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(a!==s[0]);n=c(s[0]),i="www."===s[1]?"http://"+n:n}e=e.substring(s[0].length),u+=this.renderer.link(i,null,n)}return u},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e},r.prototype.outputLink=function(e,t){var n=t.href,i=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,c(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,o=0;o<i;o++)t=e.charCodeAt(o),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},s.prototype.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,i);null!=o&&o!==e&&(n=!0,e=o)}return i?'<pre><code class="'+this.options.langPrefix+c(i,!0)+'">'+(n?e:c(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:c(e,!0))+"</code></pre>"},s.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},s.prototype.html=function(e){return e},s.prototype.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},s.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},s.prototype.list=function(e,t,n){var i=t?"ol":"ul",o=t&&1!==n?' start="'+n+'"':"";return"<"+i+o+">\n"+e+"</"+i+">\n"},s.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},s.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},s.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},s.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},s.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},s.prototype.tablecell=function(e,t){var n=t.header?"th":"td",i=t.align?"<"+n+' align="'+t.align+'">':"<"+n+">";return i+e+"</"+n+">\n"},s.prototype.strong=function(e){return"<strong>"+e+"</strong>"},s.prototype.em=function(e){return"<em>"+e+"</em>"},s.prototype.codespan=function(e){return"<code>"+e+"</code>"},s.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},s.prototype.del=function(e){return"<del>"+e+"</del>"},s.prototype.link=function(e,t,n){if(e=p(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var i='<a href="'+c(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>",i},s.prototype.image=function(e,t,n){if(e=p(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">",i},s.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},u.parse=function(e,t){var n=new u(t);return n.parse(e)},u.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,_({},this.options,{renderer:new a})),this.tokens=e.reverse();var t="";while(this.next())t+=this.tok();return t},u.prototype.next=function(){return this.token=this.tokens.pop()},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},u.prototype.parseText=function(){var e=this.token.text;while("text"===this.peek().type)e+="\n"+this.next().text;return this.inline.output(e)},u.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,o="",r="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});r+=this.renderer.tablerow(n)}return this.renderer.table(o,r);case"blockquote_start":r="";while("blockquote_end"!==this.next().type)r+=this.tok();return this.renderer.blockquote(r);case"list_start":r="";var s=this.token.ordered,a=this.token.start;while("list_end"!==this.next().type)r+=this.tok();return this.renderer.list(r,s,a);case"list_item_start":r="";var u=this.token.loose,l=this.token.checked,c=this.token.task;this.token.task&&(r+=this.renderer.checkbox(l));while("list_item_end"!==this.next().type)r+=u||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(r,c,l);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var h='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(h);console.log(h)}},l.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},c.escapeTest=/[&<>"']/,c.escapeReplace=/[&<>"']/g,c.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},c.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,c.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var g={},m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(){}function _(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function b(e,t){var n=e.replace(/\|/g,function(e,t,n){var i=!1,o=t;while(--o>=0&&"\\"===n[o])i=!i;return i?"|":" |"}),i=n.split(/ \|/),o=0;if(i.length>t)i.splice(t);else while(i.length<t)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(/\\\|/g,"|");return i}function y(e,t,n){if(0===e.length)return"";var i=0;while(i<e.length){var o=e.charAt(e.length-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,e.length-i)}function w(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}function C(e,t,i){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(i||"function"===typeof t){i||(i=t,t=null),t=_({},C.defaults,t||{});var o,r,s=t.highlight,a=0;try{o=n.lex(e,t)}catch(d){return i(d)}r=o.length;var l=function(e){if(e)return t.highlight=s,i(e);var n;try{n=u.parse(o,t)}catch(d){e=d}return t.highlight=s,e?i(e):i(null,n)};if(!s||s.length<3)return l();if(delete t.highlight,!r)return l();for(;a<o.length;a++)(function(e){"code"!==e.type?--r||l():s(e.text,e.lang,function(t,n){return t?l(t):null==n||n===e.text?--r||l():(e.text=n,e.escaped=!0,void(--r||l()))})})(o[a])}else try{return t&&(t=_({},C.defaults,t)),u.parse(n.lex(e,t),t)}catch(d){if(d.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||C.defaults).silent)return"<p>An error occurred:</p><pre>"+c(d.message+"",!0)+"</pre>";throw d}}v.exec=v,C.options=C.setOptions=function(e){return _(C.defaults,e),C},C.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},C.defaults=C.getDefaults(),C.Parser=u,C.parser=u.parse,C.Renderer=s,C.TextRenderer=a,C.Lexer=n,C.lexer=n.lex,C.InlineLexer=r,C.inlineLexer=r.output,C.Slugger=l,C.parse=C,i=C}).call(void 0);i.Parser,i.parser;var l,c=i.Renderer,d=(i.TextRenderer,i.Lexer,i.lexer,i.InlineLexer,i.inlineLexer,i.parse);let h;(function(){function e(t,n,i){function o(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof l&&l;if(!a&&u)return l(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return o(n||e)},d,d.exports,e,t,n,i)}return n[s].exports}for(var r="function"==typeof l&&l,s=0;s<i.length;s++)o(i[s]);return o}return e})()({1:[function(e,t,n){var i=e("./toMap"),o=["background","base","cite","href","longdesc","src","usemap"];t.exports={uris:i(o)}},{"./toMap":10}],2:[function(e,t,n){var i={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null};t.exports=i},{}],3:[function(e,t,n){var i=e("./toMap"),o=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];t.exports={voids:i(o)}},{"./toMap":10}],4:[function(e,t,n){e("he");var i=e("assignment"),o=e("./parser"),r=e("./sanitizer"),s=e("./defaults");function a(e,t,n){var a=[],u=!0===n?t:i({},s,t),l=r(a,u);return o(e,l),a.join("")}a.defaults=s,t.exports=a,h=a},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(e,t,n){t.exports=function(e){return"string"===typeof e?e.toLowerCase():e}},{}],6:[function(e,t,n){function i(e){var t,n,o=Array.prototype.slice.call(arguments,1);while(o.length)for(n in t=o.shift(),t)t.hasOwnProperty(n)&&("[object Object]"===Object.prototype.toString.call(e[n])?e[n]=i(e[n],t[n]):e[n]=t[n]);return e}t.exports=i},{}],7:[function(e,t,n){var i=e("he"),o=e("./lowercase"),r=(e("./attributes"),e("./elements")),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,a=/^<\s*\/\s*([\w:-]+)[^>]*>/,u=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,l=/^</,c=/^<\s*\//;function d(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function h(e,t){var n,h=d(),p=e;while(e)f();function f(){n=!0,g();var t=e===p;p=e,t&&(e="")}function g(){"\x3c!--"===e.substr(0,4)?v():c.test(e)?m(a,y):l.test(e)&&m(s,b),_()}function m(t,i){var o=e.match(t);o&&(e=e.substring(o[0].length),o[0].replace(t,i),n=!1)}function v(){var i=e.indexOf("--\x3e");i>=0&&(t.comment&&t.comment(e.substring(4,i)),e=e.substring(i+3),n=!1)}function _(){if(n){var i,o=e.indexOf("<");o>=0?(i=e.substring(0,o),e=e.substring(o)):(i=e,e=""),t.chars&&t.chars(i)}}function b(e,n,s,a){var l={},c=o(n),d=r.voids[c]||!!a;function p(e,t,n,o,r){l[t]=void 0===n&&void 0===o&&void 0===r?void 0:i.decode(n||o||r||"")}s.replace(u,p),d||h.push(c),t.start&&t.start(c,l,d)}function y(e,n){var i,r=0,s=o(n);if(s)for(r=h.length-1;r>=0;r--)if(h[r]===s)break;if(r>=0){for(i=h.length-1;i>=r;i--)t.end&&t.end(h[i]);h.length=r}}y()}t.exports=h},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,n){var i=e("he"),o=e("./lowercase"),r=e("./attributes"),s=e("./elements");function a(e,t){var n,a=t||{};return g(),{start:l,end:c,chars:h};function u(t){e.push(t)}function l(e,t,s){var l=o(e);function c(e){var n,s=t[e],c=(a.allowedClasses||{})[l]||[],h=(a.allowedAttributes||{})[l]||[];h=h.concat((a.allowedAttributes||{})["*"]||[]);var p=o(e);function f(e){return c&&-1!==c.indexOf(e)}"class"===p&&-1===h.indexOf(p)?(s=s.split(" ").filter(f).join(" ").trim(),n=s.length):n=-1!==h.indexOf(p)&&(!0!==r.uris[p]||d(s)),n&&(u(" "),u(e),"string"===typeof s&&(u('="'),u(i.encode(s)),u('"')))}n.ignoring?p(l):-1!==(a.allowedTags||[]).indexOf(l)&&(!a.filter||a.filter({tag:l,attrs:t}))?(u("<"),u(l),Object.keys(t).forEach(c),u(s?"/>":">")):p(l)}function c(e){var t=o(e),i=-1!==(a.allowedTags||[]).indexOf(t);i&&!1===n.ignoring?(u("</"),u(t),u(">")):f(t)}function d(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var i=e.indexOf("?");if(-1!==i&&n>i)return!0;var o=e.indexOf("#");return-1!==o&&n>o||a.allowedSchemes.some(r);function r(t){return 0===e.indexOf(t+":")}}function h(e){!1===n.ignoring&&u(a.transformText?a.transformText(e):e)}function p(e){s.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function f(e){n.ignoring===e&&--n.depth<=0&&g()}function g(){n={ignoring:!1,depth:0}}}t.exports=a},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,n){var i={"&":"&","<":"<",">":">",'"':""","'":"'"},o={"&":"&","<":"<",">":">",""":'"',"'":"'"},r=/(&|<|>|"|')/g,s=/[&<>"']/g;function a(e){return i[e]}function u(e){return o[e]}function l(e){return null==e?"":String(e).replace(s,a)}function c(e){return null==e?"":String(e).replace(r,u)}l.options=c.options={},t.exports={encode:l,escape:l,decode:c,unescape:c,version:"1.0.0-browser"}},{}],10:[function(e,t,n){function i(e){return e.reduce(o,{})}function o(e,t){return e[t]=!0,e}t.exports=i},{}]},{},[4]);var p=h,f=n("438a"),g=n("aa3d"),m=n("3742"),v=n("6d8e");function _(e,t){void 0===t&&(t={});var n,i=Object(r["a"])(t),l=function(t){var n;try{n=Object(f["a"])(decodeURIComponent(t))}catch(i){}return n?(n=Object(g["b"])(n,function(t){return e.uris&&e.uris[t]?v["a"].revive(e.uris[t]):void 0}),encodeURIComponent(JSON.stringify(n))):t},h=function(t,n){var i=e.uris&&e.uris[t];if(!i)return t;var r=v["a"].revive(i);return n&&(r=o["o"](r)),r.query&&(r=r.with({query:l(r.query)})),i&&(t=r.toString(!0)),t},_=new Promise(function(e){return n=e}),b=new c;b.image=function(e,t,n){var i,o=[],r=[];return e&&(i=Object(a["d"])(e),e=i.href,o=i.dimensions,e=h(e,!0),r.push('src="'+e+'"')),n&&r.push('alt="'+n+'"'),t&&r.push('title="'+t+'"'),o.length&&(r=r.concat(o)),"<img "+r.join(" ")+">"},b.link=function(t,n,i){return t===i&&(i=Object(a["e"])(i)),t=h(t,!1),n=Object(a["e"])(n),t=Object(a["e"])(t),!t||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?i:(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),'<a href="#" data-href="'+t+'" title="'+(n||t)+'">'+i+"</a>")},b.paragraph=function(e){return"<p>"+e+"</p>"},t.codeBlockRenderer&&(b.code=function(e,n){var o=t.codeBlockRenderer(n,e),r=u["b"].nextId(),s=Promise.all([o,_]).then(function(e){var t=e[0],n=i.querySelector('div[data-code="'+r+'"]');n&&(n.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&s.then(t.codeBlockRenderCallback),'<div class="code" data-code="'+r+'">'+Object(m["o"])(e)+"</div>"});var y=t.actionHandler;y&&y.disposeables.add(o["k"](i,"click",function(e){var t=e.target;if("A"===t.tagName||(t=t.parentElement,t&&"A"===t.tagName))try{var n=t.dataset["href"];n&&y.callback(n,e)}catch(i){Object(s["e"])(i)}finally{e.preventDefault()}}));var w={sanitize:!0,renderer:b},C=["http","https","mailto","data"];e.isTrusted&&C.push("command");var S=d(e.value,w);return i.innerHTML=p(S,{allowedSchemes:C,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"]}}),n(),i}var b=n("5bd7"),y=n("5818"),w=n("4d05"),C=n("0a0f"),S=n("308f"),L=n("a666"),O=n("b707");n.d(t,"a",function(){return k});var x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},D=function(e,t){return function(n,i){t(n,i,e)}},k=function(e){function t(t,n,i){void 0===i&&(i=b["b"]);var o=e.call(this)||this;return o._editor=t,o._modeService=n,o._openerService=i,o._onDidRenderCodeBlock=o._register(new S["a"]),o.onDidRenderCodeBlock=o._onDidRenderCodeBlock.event,o}return x(t,e),t.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var i=null;if(e)i=t._modeService.getModeIdForLanguageName(e);else{var o=t._editor.getModel();o&&(i=o.getLanguageIdentifier().language)}return t._modeService.triggerMode(i||""),Promise.resolve(!0).then(function(e){var t=O["y"].getPromise(i||"");return t?t.then(function(e){return Object(w["b"])(n,e)}):Object(w["b"])(n,void 0)}).then(function(e){return'<span style="font-family: '+t._editor.getConfiguration().fontInfo.fontFamily+'">'+e+"</span>"})},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){var n;try{n=v["a"].parse(e)}catch(i){}n&&t._openerService&&t._openerService.open(n).catch(s["e"])},disposeables:e}}},t.prototype.render=function(e){var t,n=new L["b"];return t=e?_(e,this.getOptions(n)):document.createElement("span"),{element:t,dispose:function(){return n.dispose()}}},t=N([D(1,y["a"]),D(2,Object(C["d"])(b["a"]))],t),t}(L["a"])},debc:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c});var i=n("6d8e"),o=n("32b8"),r=n("3742"),s=n("b589"),a=n("30db"),u=n("82c9");function l(e,t,n){if("string"===typeof e&&(e=i["a"].file(e)),n){var r=n.getWorkspaceFolder(e);if(r){var l=n.getWorkspace().folders.length>1,c=void 0;if(c=Object(u["e"])(r.uri,e)?"":Object(u["h"])(r.uri,e),l){var p=r&&r.name?r.name:Object(u["b"])(r.uri);c=c?p+" • "+c:p}return c}}if(e.scheme!==s["b"].file&&e.scheme!==s["b"].untitled)return e.with({query:null,fragment:null}).toString(!0);if(d(e.fsPath))return Object(o["normalize"])(h(e.fsPath));var g=Object(o["normalize"])(e.fsPath);return!a["g"]&&t&&(g=f(g,t.userHome)),g}function c(e){if(e){"string"===typeof e&&(e=i["a"].file(e));var t=Object(u["b"])(e)||(e.scheme===s["b"].file?e.fsPath:e.path);return d(t)?h(t):t}}function d(e){return!(!a["g"]||!e||":"!==e[1])}function h(e){return d(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var p=Object.create(null);function f(e,t){if(a["g"]||!e||!t)return e;var n=p.original===t?p.normalized:void 0;return n||(n=""+Object(r["G"])(t,o["posix"].sep)+o["posix"].sep,p={original:t,normalized:n}),(a["c"]?Object(r["J"])(e,n):Object(r["K"])(e,n))&&(e="~/"+e.substr(n.length)),e}},dff7:function(e,t,n){"use strict";function i(e,t){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,function(e,n){var i=n[0];return"undefined"!==typeof t[i]?t[i]:e}),n}function o(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return i(t,n)}n.d(t,"a",function(){return o})},e1b5:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("b707"),o=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(n<<1),r=i;r<o;r++)if(this._tokens[r]!==e._tokens[r])return!1;return!0},e.prototype.getLineContent=function(){return this._text},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getStartOffset=function(e){return e>0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return i["x"].getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return i["x"].getTokenType(t)},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return i["x"].getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return i["x"].getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return i["x"].getInlineStyleFromMetadata(n,t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new r(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=e.length>>>1,i=n-1,o=0;o<i;o++)e[o<<1]=e[o+1<<1];e[i<<1]=t},e.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;var n=0,i=(e.length>>>1)-1;while(n<i){var o=n+Math.floor((i-n)/2),r=e[o<<1];if(r===t)return o+1;r<t?n=o+1:r>t&&(i=o)}return n},e}(),r=function(){function e(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,r=e.getCount();o<r;o++){var s=e.getStartOffset(o);if(s>=n)break;this._tokensCount++}}return e.prototype.equals=function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},e}()},e2b8:function(e,t,n){},e2c2:function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneReferencesController",function(){return f});var i=n("b2cc"),o=n("5717"),r=n("aa43"),s=n("fbba"),a=n("4fc3"),u=n("0a0f"),l=n("b0cd"),c=n("03e8"),d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}},f=function(e){function t(t,n,i,o,r,s,a){return e.call(this,!0,t,n,i,o,r,s,a)||this}return d(t,e),t=h([p(1,a["c"]),p(2,o["a"]),p(3,l["a"]),p(4,u["a"]),p(5,c["a"]),p(6,s["a"])],t),t}(r["a"]);Object(i["h"])(f)},e32d:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n("308f"),o=function(e,t,n){var o=function(e){return r.fire(e)},r=new i["a"]({onFirstListenerAdd:function(){e.addEventListener(t,o,n)},onLastListenerRemove:function(){e.removeEventListener(t,o,n)}});return r.event};function r(e){return i["b"].map(e,function(e){return e.preventDefault(),e.stopPropagation(),e})}},e431:function(e,t,n){},e516:function(e,t,n){"use strict";n.r(t),n.d(t,"CursorUndoController",function(){return l}),n.d(t,"CursorUndo",function(){return c});var i=n("dff7"),o=n("a666"),r=n("b2cc"),s=n("c101"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(){function e(e){this.selections=e}return e.prototype.equals=function(e){var t=this.selections.length,n=e.selections.length;if(t!==n)return!1;for(var i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0},e}(),l=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._isCursorUndo=!1,n._undoStack=[],n._prevState=n._readState(),n._register(t.onDidChangeModel(function(e){n._undoStack=[],n._prevState=null})),n._register(t.onDidChangeModelContent(function(e){n._undoStack=[],n._prevState=null})),n._register(t.onDidChangeCursorSelection(function(e){!n._isCursorUndo&&n._prevState&&(n._undoStack.push(n._prevState),n._undoStack.length>50&&n._undoStack.shift()),n._prevState=n._readState()})),n}return a(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype._readState=function(){return this._editor.hasModel()?new u(this._editor.getSelections()):null},t.prototype.getId=function(){return t.ID},t.prototype.cursorUndo=function(){if(this._editor.hasModel()){var e=new u(this._editor.getSelections());while(this._undoStack.length>0){var t=this._undoStack.pop();if(!t.equals(e))return this._isCursorUndo=!0,this._editor.setSelections(t.selections),this._editor.revealRangeInCenterIfOutsideViewport(t.selections[0],0),void(this._isCursorUndo=!1)}}},t.ID="editor.contrib.cursorUndoController",t}(o["a"]),c=function(e){function t(){return e.call(this,{id:"cursorUndo",label:i["a"]("cursor.undo","Soft Undo"),alias:"Soft Undo",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:2099,weight:100}})||this}return a(t,e),t.prototype.run=function(e,t,n){l.get(t).cursorUndo()},t}(r["b"]);Object(r["h"])(l),Object(r["f"])(c)},e53c:function(e,t,n){"use strict";n.d(t,"a",function(){return p}),n.d(t,"b",function(){return f});var i=n("0f70"),o=n("11f7"),r=n("5fe7"),s=n("308f"),a=n("a666"),u=n("30db"),l=n("3742"),c=n("0a89"),d=n("8025"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p={forceCopyWithSyntaxHighlighting:!1},f=function(e){function t(t,n){var a=e.call(this)||this;a._onFocus=a._register(new s["a"]),a.onFocus=a._onFocus.event,a._onBlur=a._register(new s["a"]),a.onBlur=a._onBlur.event,a._onKeyDown=a._register(new s["a"]),a.onKeyDown=a._onKeyDown.event,a._onKeyUp=a._register(new s["a"]),a.onKeyUp=a._onKeyUp.event,a._onCut=a._register(new s["a"]),a.onCut=a._onCut.event,a._onPaste=a._register(new s["a"]),a.onPaste=a._onPaste.event,a._onType=a._register(new s["a"]),a.onType=a._onType.event,a._onCompositionStart=a._register(new s["a"]),a.onCompositionStart=a._onCompositionStart.event,a._onCompositionUpdate=a._register(new s["a"]),a.onCompositionUpdate=a._onCompositionUpdate.event,a._onCompositionEnd=a._register(new s["a"]),a.onCompositionEnd=a._onCompositionEnd.event,a._onSelectionChangeRequest=a._register(new s["a"]),a.onSelectionChangeRequest=a._onSelectionChangeRequest.event,a._host=t,a._textArea=a._register(new m(n)),a._lastTextAreaEvent=0,a._asyncTriggerCut=a._register(new r["d"](function(){return a._onCut.fire()},0)),a._textAreaState=c["b"].EMPTY,a._selectionChangeListener=null,a.writeScreenReaderContent("ctor"),a._hasFocus=!1,a._isDoingComposition=!1,a._nextCommand=0,a._register(o["k"](n.domNode,"keydown",function(e){!a._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),a._onKeyDown.fire(e)})),a._register(o["k"](n.domNode,"keyup",function(e){a._onKeyUp.fire(e)})),a._register(o["h"](n.domNode,"compositionstart",function(e){a._lastTextAreaEvent=1,a._isDoingComposition||(a._isDoingComposition=!0,i["g"]||a._setAndWriteTextAreaState("compositionstart",c["b"].EMPTY),a._onCompositionStart.fire())}));var d=function(e,t){var n=a._textAreaState,i=c["b"].readFromTextArea(a._textArea);return[i,c["b"].deduceInput(n,i,e,t)]},h=function(e){var t=a._textAreaState,n=c["b"].selectedText(e),i={text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart};return[n,i]},p=function(e){return!(!i["g"]||"ja"!==e)||!(!i["j"]||0!==e.indexOf("zh-Han"))};return a._register(o["h"](n.domNode,"compositionupdate",function(e){if(a._lastTextAreaEvent=2,p(e.locale)){var t=d(!1,!1),n=t[0],i=t[1];return a._textAreaState=n,a._onType.fire(i),void a._onCompositionUpdate.fire(e)}var o=h(e.data),r=o[0],s=o[1];a._textAreaState=r,a._onType.fire(s),a._onCompositionUpdate.fire(e)})),a._register(o["h"](n.domNode,"compositionend",function(e){if(a._lastTextAreaEvent=3,p(e.locale)){var t=d(!1,!1),n=t[0],o=t[1];a._textAreaState=n,a._onType.fire(o)}else{var r=h(e.data);n=r[0],o=r[1];a._textAreaState=n,a._onType.fire(o)}(i["g"]||i["e"])&&(a._textAreaState=c["b"].readFromTextArea(a._textArea)),a._isDoingComposition&&(a._isDoingComposition=!1,a._onCompositionEnd.fire())})),a._register(o["h"](n.domNode,"input",function(){var e=8===a._lastTextAreaEvent;if(a._lastTextAreaEvent=4,a._textArea.setIgnoreSelectionChangeTime("received input event"),!a._isDoingComposition){var t=d(u["d"],e&&u["d"]),n=t[0],i=t[1];0===i.replaceCharCnt&&1===i.text.length&&l["w"](i.text.charCodeAt(0))||(a._textAreaState=n,0===a._nextCommand?""!==i.text&&a._onType.fire(i):(""!==i.text&&a._onPaste.fire({text:i.text}),a._nextCommand=0))}})),a._register(o["h"](n.domNode,"cut",function(e){a._lastTextAreaEvent=5,a._textArea.setIgnoreSelectionChangeTime("received cut event"),a._ensureClipboardGetsEditorSelection(e),a._asyncTriggerCut.schedule()})),a._register(o["h"](n.domNode,"copy",function(e){a._lastTextAreaEvent=6,a._ensureClipboardGetsEditorSelection(e)})),a._register(o["h"](n.domNode,"paste",function(e){if(a._lastTextAreaEvent=7,a._textArea.setIgnoreSelectionChangeTime("received paste event"),g.canUseTextData(e)){var t=g.getTextData(e);""!==t&&a._onPaste.fire({text:t})}else a._textArea.getSelectionStart()!==a._textArea.getSelectionEnd()&&a._setAndWriteTextAreaState("paste",c["b"].EMPTY),a._nextCommand=1})),a._register(o["h"](n.domNode,"focus",function(){a._lastTextAreaEvent=8,a._setHasFocus(!0)})),a._register(o["h"](n.domNode,"blur",function(){a._lastTextAreaEvent=9,a._setHasFocus(!1)})),a}return h(t,e),t.prototype._installSelectionChangeListener=function(){var e=this,t=0;return o["h"](document,"selectionchange",function(n){if(e._hasFocus&&!e._isDoingComposition&&i["e"]&&u["g"]){var o=Date.now(),r=o-t;if(t=o,!(r<5)){var s=o-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(s<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var l=e._textArea.getSelectionStart(),c=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==l||e._textAreaState.selectionEnd!==c){var h=e._textAreaState.deduceEditorPosition(l),p=e._host.deduceModelPosition(h[0],h[1],h[2]),f=e._textAreaState.deduceEditorPosition(c),g=e._host.deduceModelPosition(f[0],f[1],f[2]),m=new d["a"](p.lineNumber,p.column,g.lineNumber,g.column);e._onSelectionChangeRequest.fire(m)}}}}}})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},t.prototype.focusTextArea=function(){this._setHasFocus(!0)},t.prototype.isFocused=function(){return this._hasFocus},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(i["f"]?this._setAndWriteTextAreaState("focusgain",c["b"].EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(g.canUseTextData(e)){var n=null;i["d"]()&&(t.length<65536||p.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),g.setTextData(e,t,n)}else this._setAndWriteTextAreaState("copy or cut",c["b"].selectedText(t))},t}(a["a"]),g=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),m=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return h(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var r=this._actual.domNode,s=document.activeElement===r,a=r.selectionStart,u=r.selectionEnd;if(s&&a===t&&u===n)i["i"]&&window.parent!==window&&r.focus();else{if(s)return this.setIgnoreSelectionChangeTime("setSelectionRange"),r.setSelectionRange(t,n),void(i["i"]&&window.parent!==window&&r.focus());try{var l=o["O"](r);this.setIgnoreSelectionChangeTime("setSelectionRange"),r.focus(),r.setSelectionRange(t,n),o["M"](r,l)}catch(c){}}},t}(a["a"])},e58e:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("30db"),o=i["b"].performance&&"function"===typeof i["b"].performance.now,r=function(){function e(e){this._highResolution=o&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?i["b"].performance.now():(new Date).getTime()},e}()},e5aa:function(e,t,n){"use strict";var i=n("11f7"),o=n("5aa5"),r=n("f070"),s=n("ceb8"),a=n("308f"),u=n("aa3d"),l=n("3742"),c=(n("dde9"),n("5717")),d=n("d379"),h=(n("b968"),n("70c3")),p=n("9c3e"),f=n("a666"),g=n("6a89"),m=n("b57f"),v=new s["a"](new s["c"](0,122,204)),_={showArrow:!0,showFrame:!0,className:"",frameColor:v,arrowColor:v,keepEditorSelection:!1},b="vs.editor.contrib.zoneWidget",y=function(){function e(e,t,n,i,o,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=o,this._onComputedHeight=r}return e.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},e.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},e}(),w=function(){function e(e,t){this._id=e,this._domNode=t}return e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return null},e}(),C=function(){function e(t){this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return e.prototype.dispose=function(){this.hide(),i["H"](this._ruleName)},Object.defineProperty(e.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),e.prototype._updateStyle=function(){i["H"](this._ruleName),i["r"](".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},e.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:g["a"].fromPositions(e),options:{className:this._ruleName,stickiness:1}}])},e.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},e._IdGenerator=new p["a"](".arrow-decoration-"),e}(),S=function(){function e(e,t){var n=this;void 0===t&&(t={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new f["b"],this.container=null,this._isShowing=!1,this.editor=e,this.options=u["c"](t),u["g"](this.options,_,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)}))}return e.prototype.dispose=function(){var e=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(t){e._viewZone&&t.removeZone(e._viewZone.id),e._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},e.prototype.create=function(){i["f"](this.domNode,"zone-widget"),this.options.className&&i["f"](this.domNode,this.options.className),this.container=document.createElement("div"),i["f"](this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new C(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},e.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()},e.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){var t=this.options.arrowColor.toString();this._arrow.color=t}},e.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth},e.prototype._getLeft=function(e){return e.minimapWidth>0&&0===e.minimapLeft?e.minimapWidth:0},e.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},e.prototype._onViewZoneHeight=function(e){if(this.domNode.style.height=e+"px",this.container){var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(e.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e){var t=this.editor.getModel();if(t){var n=t.getDecorationRange(e);if(n)return n.getStartPosition()}}},enumerable:!0,configurable:!0}),e.prototype.show=function(e,t){var n=g["a"].isIRange(e)?e:new g["a"](e.lineNumber,e.column,e.lineNumber,e.column);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:m["a"].EMPTY}])},e.prototype.hide=function(){var e=this;this._viewZone&&(this.editor.changeViewZones(function(t){e._viewZone&&t.removeZone(e._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},e.prototype._decoratingElementsHeight=function(){var e=this.editor.getConfiguration().lineHeight,t=0;if(this.options.showArrow){var n=Math.round(e/3);t+=2*n}if(this.options.showFrame){var i=Math.round(e/9);t+=2*i}return t},e.prototype._showImpl=function(e,t){var n=this,i={lineNumber:e.startLineNumber,column:e.startColumn},o=this.editor.getLayoutInfo(),r=this._getWidth(o);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(o)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getConfiguration().lineHeight,u=this.editor.getLayoutInfo().height/a*.8;t>=u&&(t=u);var l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new y(s,i.lineNumber,i.column,t,function(e){return n._onViewZoneTop(e)},function(e){return n._onViewZoneHeight(e)}),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new w(b+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)}),this.container&&this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,r),this.options.keepEditorSelection||this.editor.setSelection(e);var p=this.editor.getModel();if(p){var f=Math.min(p.getLineCount(),Math.max(1,e.endLineNumber+1));this.revealLine(f)}},e.prototype.revealLine=function(e){this.editor.revealLine(e,0)},e.prototype.setCssClass=function(e,t){this.container&&(t&&this.container.classList.remove(t),i["f"](this.container,e))},e.prototype._onWidth=function(e){},e.prototype._doLayout=function(e,t){},e.prototype._relayout=function(e){var t=this;this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(function(n){t._viewZone&&(t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id))})},e.prototype._initSash=function(){var e,t=this;this._resizeSash||(this._resizeSash=this._disposables.add(new h["a"](this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart(function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){e=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getConfiguration().lineHeight,o=i<0?Math.ceil(i):Math.floor(i),r=e.heightInLines+o;r>5&&r<35&&t._relayout(r)}})))},e.prototype.getHorizontalSashLeft=function(){return 0},e.prototype.getHorizontalSashTop=function(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},e.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},e}(),L=n("dff7"),O=n("4fc3"),x=n("0a0f"),N=n("f5f3");n.d(t,"a",function(){return I}),n.d(t,"b",function(){return D}),n.d(t,"d",function(){return E}),n.d(t,"c",function(){return T});var D,k=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),I=Object(x["c"])("IPeekViewService");function E(e){var t=e.get(c["a"]).getFocusedCodeEditor();return t instanceof d["a"]?t.getParentEditor():t}Object(N["b"])(I,function(){function e(){this._widgets=new Map}return e.prototype.addExclusiveWidget=function(e,t){var n=this,i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());var o=function(){var i=n._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),n._widgets.delete(e))};this._widgets.set(e,{widget:t,listener:t.onDidClose(o)})},e}()),function(e){e.inPeekEditor=new O["d"]("inReferenceSearchEditor",!0),e.notInPeekEditor=e.inPeekEditor.toNegated()}(D||(D={}));var M={headerBackgroundColor:s["a"].white,primaryHeadingColor:s["a"].fromHex("#333333"),secondaryHeadingColor:s["a"].fromHex("#6c6c6cb3")},T=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new a["a"],u["g"](i.options,M,!1),i}return k(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this)},Object.defineProperty(t.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),t.prototype.style=function(t){var n=this.options;t.headerBackgroundColor&&(n.headerBackgroundColor=t.headerBackgroundColor),t.primaryHeadingColor&&(n.primaryHeadingColor=t.primaryHeadingColor),t.secondaryHeadingColor&&(n.secondaryHeadingColor=t.secondaryHeadingColor),e.prototype.style.call(this,t)},t.prototype._applyStyles=function(){e.prototype._applyStyles.call(this);var t=this.options;this._headElement&&t.headerBackgroundColor&&(this._headElement.style.backgroundColor=t.headerBackgroundColor.toString()),this._primaryHeading&&t.primaryHeadingColor&&(this._primaryHeading.style.color=t.primaryHeadingColor.toString()),this._secondaryHeading&&t.secondaryHeadingColor&&(this._secondaryHeading.style.color=t.secondaryHeadingColor.toString()),this._bodyElement&&t.frameColor&&(this._bodyElement.style.borderColor=t.frameColor.toString())},t.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=i["a"](".head"),this._bodyElement=i["a"](".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},t.prototype._fillHead=function(e){var t=this,n=i["a"](".peekview-title");i["m"](this._headElement,n),i["k"](n,"click",function(e){return t._onTitleClick(e)}),this._fillTitleIcon(n),this._primaryHeading=i["a"]("span.filename"),this._secondaryHeading=i["a"]("span.dirname"),this._metaHeading=i["a"]("span.meta"),i["m"](n,this._primaryHeading,this._secondaryHeading,this._metaHeading);var s=i["a"](".peekview-actions");i["m"](this._headElement,s);var a=this._getActionBarOptions();this._actionbarWidget=new o["a"](s,a),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new r["a"]("peekview.close",L["a"]("label.close","Close"),"close-peekview-action",!0,function(){return t.dispose(),Promise.resolve()}),{label:!1,icon:!0})},t.prototype._fillTitleIcon=function(e){},t.prototype._getActionBarOptions=function(){return{}},t.prototype._onTitleClick=function(e){},t.prototype.setTitle=function(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=l["o"](e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=l["o"](t):i["p"](this._secondaryHeading))},t.prototype.setMetaTitle=function(e){this._metaHeading&&(e?this._metaHeading.innerHTML=l["o"](e):i["p"](this._metaHeading))},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getConfiguration().lineHeight),i=e-(n+2);this._doLayoutHead(n,t),this._doLayoutBody(i,t)}},t.prototype._doLayoutHead=function(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)},t.prototype._doLayoutBody=function(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")},t}(S)},e6ff:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("3170"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(e){function t(t){for(var n=e.call(this,0)||this,i=0,o=t.length;i<o;i++)n.set(t.charCodeAt(i),2);return n.set(32,1),n.set(9,1),n}return o(t,e),t}(i["a"]);function s(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e(n)),t[n]}}var a=s(function(e){return new r(e)})},e750:function(e,t,n){},e757:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=!1,o=null;function r(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return i=!0,null}catch(o){return i=!0,null}return e.parent}function s(e,t){for(var n,i=e.document.getElementsByTagName("iframe"),o=0,r=i.length;o<r;o++)if(n=i[o],n.contentWindow===t)return n;return null}var a=function(){function e(){}return e.getSameOriginWindowChain=function(){if(!o){o=[];var e,t=window;do{e=r(t),e?o.push({window:t,iframeElement:s(e,t)}):o.push({window:t,iframeElement:null}),t=e}while(t)}return o.slice(0)},e.hasDifferentOriginAncestor=function(){return o||this.getSameOriginWindowChain(),i},e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,i=0,o=this.getSameOriginWindowChain(),r=0,s=o;r<s.length;r++){var a=s[r];if(a.window===t)break;if(!a.iframeElement)break;var u=a.iframeElement.getBoundingClientRect();n+=u.top,i+=u.left}return{top:n,left:i}},e}()},e8e3:function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var i=0,o=e.length;i<o;i++)if(!n(e[i],t[i]))return!1;return!0}function s(e,t,n){var i=0,o=e.length-1;while(i<=o){var r=(i+o)/2|0,s=n(e[r],t);if(s<0)i=r+1;else{if(!(s>0))return r;o=r-1}}return-(i+1)}function a(e,t){var n=0,i=e.length;if(0===i)return 0;while(n<i){var o=Math.floor((n+i)/2);t(e[o])?i=o:n=o+1}return n}function u(e,t){return c(e,t,0,e.length-1,[]),e}function l(e,t,n,i,o,r){for(var s=n,a=i+1,u=n;u<=o;u++)r[u]=e[u];for(u=n;u<=o;u++)s>i?e[u]=r[a++]:a>o?e[u]=r[s++]:t(r[a],r[s])<0?e[u]=r[a++]:e[u]=r[s++]}function c(e,t,n,i,o){if(!(i<=n)){var r=n+(i-n)/2|0;c(e,t,n,r,o),c(e,t,r+1,i,o),t(e[r],e[r+1])<=0||l(e,t,n,r,i,o)}}function d(e,t){for(var n=[],i=void 0,o=0,r=u(e.slice(0),t);o<r.length;o++){var s=r[o];i&&0===t(i[0],s)?i.push(s):(i=[s],n.push(i))}return n}function h(e){return e.filter(function(e){return!!e})}function p(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function g(e,t){if(!t)return e.filter(function(t,n){return e.indexOf(t)===n});var n=Object.create(null);return e.filter(function(e){var i=t(e);return!n[i]&&(n[i]=!0,!0)})}function m(e){var t=new Set;return e.filter(function(e){return!t.has(e)&&(t.add(e),!0)})}function v(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i))return n}return-1}function _(e,t,n){void 0===n&&(n=void 0);var i=v(e,t);return i<0?n:e[i]}function b(e){var t;return(t=[]).concat.apply(t,e)}function y(e,t){var n="number"===typeof t?e:0;"number"===typeof t?n=e:(n=0,t=e);var i=[];if(n<=t)for(var o=n;o<t;o++)i.push(o);else for(o=n;o>t;o--)i.push(o);return i}function w(e,t,n){var i=e.slice(0,t),o=e.slice(t);return i.concat(n,o)}function C(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function S(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function L(e){return Array.isArray(e)?e:[e]}n.d(t,"s",function(){return i}),n.d(t,"t",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"h",function(){return a}),n.d(t,"o",function(){return u}),n.d(t,"l",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return f}),n.d(t,"e",function(){return g}),n.d(t,"f",function(){return m}),n.d(t,"j",function(){return v}),n.d(t,"i",function(){return _}),n.d(t,"k",function(){return b}),n.d(t,"r",function(){return y}),n.d(t,"a",function(){return w}),n.d(t,"q",function(){return C}),n.d(t,"p",function(){return S}),n.d(t,"b",function(){return L})},ee56:function(e,t,n){"use strict";var i=n("aa3d"),o=n("3742");function r(e){return Object(o["o"])(e)}n.d(t,"a",function(){return s});var s=function(){function e(e,t){this.supportOcticons=t,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",this.didEverRender=!1,e.appendChild(this.domNode)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n,o,r){void 0===n&&(n=[]),void 0===o&&(o=""),t||(t=""),r&&(t=e.escapeNewLines(t,n)),this.didEverRender&&this.text===t&&this.title===o&&i["e"](this.highlights,n)||(Array.isArray(n)||(n=[]),this.text=t,this.title=o,this.highlights=n,this.render())},e.prototype.render=function(){for(var e="",t=0,n=0,i=this.highlights;n<i.length;n++){var s=i[n];if(s.end!==s.start){if(t<s.start){e+="<span>";var a=this.text.substring(t,s.start);e+=this.supportOcticons?r(a):Object(o["o"])(a),e+="</span>",t=s.end}e+='<span class="highlight">';var u=this.text.substring(s.start,s.end);e+=this.supportOcticons?r(u):Object(o["o"])(u),e+="</span>",t=s.end}}if(t<this.text.length){e+="<span>";u=this.text.substring(t);e+=this.supportOcticons?r(u):Object(o["o"])(u),e+="</span>"}this.domNode.innerHTML=e,this.domNode.title=this.title,this.didEverRender=!0},e.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/g,function(e,o){i="\r\n"===e?-1:0,o+=n;for(var r=0,s=t;r<s.length;r++){var a=s[r];a.end<=o||(a.start>=o&&(a.start+=i),a.end>=o&&(a.end+=i))}return n+=i,"⏎"})},e}()},ef37:function(e,t,n){},ef8e:function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"i",function(){return r}),n.d(t,"h",function(){return s}),n.d(t,"g",function(){return a}),n.d(t,"d",function(){return u}),n.d(t,"j",function(){return l}),n.d(t,"k",function(){return c}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return p}),n.d(t,"l",function(){return f}),n.d(t,"b",function(){return v}),n.d(t,"a",function(){return _}),n.d(t,"m",function(){return b}),n.d(t,"n",function(){return y});var i={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function o(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==i.number||e.constructor!==Array)}function r(e){return typeof e===i.string||e instanceof String}function s(e){return typeof e===i.object&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function a(e){return(typeof e===i.number||e instanceof Number)&&!isNaN(e)}function u(e){return!0===e||!1===e}function l(e){return typeof e===i.undefined}function c(e){return l(e)||null===e}var d=Object.prototype.hasOwnProperty;function h(e){if(!s(e))return!1;for(var t in e)if(d.call(e,t))return!1;return!0}function p(e){return typeof e===i.function}function f(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)g(e[i],t[i])}function g(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(p(t)){try{if(e instanceof t)return}catch(n){}if(!c(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function m(e){var t=[],n=Object.getPrototypeOf(e);while(Object.prototype!==n)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function v(e){for(var t=[],n=0,i=m(e);n<i.length;n++){var o=i[n];"function"===typeof e[o]&&t.push(o)}return t}function _(e,t){for(var n=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},i={},o=0,r=e;o<r.length;o++){var s=r[o];i[s]=n(s)}return i}function b(e){return null===e?void 0:e}function y(e){return"undefined"===typeof e?null:e}},efdb:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("markerDecorationsService")},f004:function(e,t,n){},f070:function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return l});var i=n("a666"),o=n("308f"),r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},a=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},u=function(e){function t(t,n,i,r,s){void 0===n&&(n=""),void 0===i&&(i=""),void 0===r&&(r=!0);var a=e.call(this)||this;return a._onDidChange=a._register(new o["a"]),a.onDidChange=a._onDidChange.event,a._enabled=!0,a._checked=!1,a._radio=!1,a._id=t,a._label=n,a._cssClass=i,a._enabled=r,a._actionCallback=s,a}return r(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),t.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),t.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(t.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),t.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),t.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),t.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},t.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},t.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},t}(i["a"]),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new o["a"]),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new o["a"]),t.onDidRun=t._onDidRun.event,t}return r(t,e),t.prototype.run=function(e,t){return s(this,void 0,void 0,function(){var n,i;return a(this,function(o){switch(o.label){case 0:if(!e.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:e}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.runAction(e,t)];case 2:return n=o.sent(),this._onDidRun.fire({action:e,result:n}),[3,4];case 3:return i=o.sent(),this._onDidRun.fire({action:e,error:i}),[3,4];case 4:return[2]}})})},t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},t}(i["a"])},f07b:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,i=e;n<i.length;n++){var o=i[n],r=o[0],s=o[1];this.set(r,s)}}return e.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}()},f17c:function(e,t,n){"use strict";n.r(t),n.d(t,"InsertCursorAbove",function(){return b}),n.d(t,"InsertCursorBelow",function(){return y}),n.d(t,"MultiCursorSessionResult",function(){return L}),n.d(t,"MultiCursorSession",function(){return O}),n.d(t,"MultiCursorSelectionController",function(){return x}),n.d(t,"MultiCursorSelectionControllerAction",function(){return N}),n.d(t,"AddSelectionToNextFindMatchAction",function(){return D}),n.d(t,"AddSelectionToPreviousFindMatchAction",function(){return k}),n.d(t,"MoveSelectionToNextFindMatchAction",function(){return I}),n.d(t,"MoveSelectionToPreviousFindMatchAction",function(){return E}),n.d(t,"SelectHighlightsAction",function(){return M}),n.d(t,"CompatChangeAll",function(){return T}),n.d(t,"SelectionHighlighter",function(){return R});var i=n("dff7"),o=n("5fe7"),r=n("fe45"),s=n("a666"),a=n("b2cc"),u=n("a007"),l=n("6a89"),c=n("8025"),d=n("c101"),h=n("3352"),p=n("b57f"),f=n("b707"),g=n("a106"),m=n("303e"),v=n("b7d0"),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorAbove",label:i["a"]("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menubarOpts:{menuId:22,group:"3_multi",title:i["a"]({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this}return _(t,e),t.prototype.run=function(e,t,n){if(t.hasModel()){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,u["b"].addCursorUp(r,o.getAll(),i)),o.reveal(!0,1,0))}},t}(a["b"]),y=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorBelow",label:i["a"]("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menubarOpts:{menuId:22,group:"3_multi",title:i["a"]({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this}return _(t,e),t.prototype.run=function(e,t,n){if(t.hasModel()){var i=n&&!0===n.logicalLine,o=t._getCursors(),r=o.context;r.config.readOnly||(r.model.pushStackElement(),o.setStates(n.source,3,u["b"].addCursorDown(r,o.getAll(),i)),o.reveal(!0,2,0))}},t}(a["b"]),w=function(e){function t(){return e.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:i["a"]("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:1575,weight:100},menubarOpts:{menuId:22,group:"3_multi",title:i["a"]({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this}return _(t,e),t.prototype.getCursorsForSelection=function(e,t,n){if(!e.isEmpty()){for(var i=e.startLineNumber;i<e.endLineNumber;i++){var o=t.getLineMaxColumn(i);n.push(new c["a"](i,o,i,o))}e.endColumn>1&&n.push(new c["a"](e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}},t.prototype.run=function(e,t){var n=this;if(t.hasModel()){var i=t.getModel(),o=t.getSelections(),r=[];o.forEach(function(e){return n.getCursorsForSelection(e,i,r)}),r.length>0&&t.setSelections(r)}},t}(a["b"]),C=function(e){function t(){return e.call(this,{id:"editor.action.addCursorsToBottom",label:i["a"]("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return _(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=t.getModel().getLineCount(),o=[],r=n[0].startLineNumber;r<=i;r++)o.push(new c["a"](r,n[0].startColumn,r,n[0].endColumn));o.length>0&&t.setSelections(o)}},t}(a["b"]),S=function(e){function t(){return e.call(this,{id:"editor.action.addCursorsToTop",label:i["a"]("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return _(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getSelections(),i=[],o=n[0].startLineNumber;o>=1;o--)i.push(new c["a"](o,n[0].startColumn,o,n[0].endColumn));i.length>0&&t.setSelections(i)}},t}(a["b"]),L=function(){function e(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n}return e}(),O=function(){function e(e,t,n,i,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=o,this.matchCase=r,this.currentMatch=s}return e.create=function(t,n){if(!t.hasModel())return null;var i=n.getState();if(!t.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new e(t,n,!1,i.searchString,i.wholeWord,i.matchCase,null);var o,r,s=!1,a=t.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,o=!0,r=!0):(o=i.wholeWord,r=i.matchCase);var u,l=t.getSelection(),d=null;if(l.isEmpty()){var h=t.getModel().getWordAtPosition(l.getStartPosition());if(!h)return null;u=h.word,d=new c["a"](l.startLineNumber,h.startColumn,l.startLineNumber,h.endColumn)}else u=t.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new e(t,n,s,u,o,r,d)},e.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new L(t.concat(e),e,0)},e.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new L(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new c["a"](i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new L(t.concat(e),e,0)},e.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new L(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new c["a"](i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824)):[]},e}(),x=function(e){function t(t){var n=e.call(this)||this;return n._sessionDispose=n._register(new s["b"]),n._editor=t,n._ignoreSelectionChange=!1,n._session=null,n}return _(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this._endSession(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=O.create(this._editor,e);if(!n)return;this._session=n;var 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(function(e){t._ignoreSelectionChange||t._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(function(){t._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(function(e){(e.matchCase||e.wholeWord)&&t._endSession()}))}},t.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null},t.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},t.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new c["a"](t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},t.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},t.prototype.getSession=function(e){return this._session},t.prototype.addSelectionToNextFindMatch=function(e){if(this._editor.hasModel()){if(!this._session){var t=this._editor.getSelections();if(t.length>1){var n=e.getState(),i=n.matchCase,o=A(this._editor.getModel(),t,i);if(!o){for(var r=this._editor.getModel(),s=[],a=0,u=t.length;a<u;a++)s[a]=this._expandEmptyToWord(r,t[a]);return void this._editor.setSelections(s)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}},t.prototype.addSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},t.prototype.moveSelectionToNextFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},t.prototype.moveSelectionToPreviousFindMatch=function(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},t.prototype.selectAll=function(e){if(this._editor.hasModel()){var t=null,n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(t.length>0){for(var i=this._editor.getSelection(),o=0,r=t.length;o<r;o++){var s=t[o],a=s.range.intersectRanges(i);if(a){t[o]=t[0],t[0]=s;break}}this._setSelections(t.map(function(e){return new c["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)}))}}},t.ID="editor.contrib.multiCursorController",t}(s["a"]),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.run=function(e,t){var n=x.get(t);if(n){var i=g["CommonFindController"].get(t);i&&this._run(n,i)}},t}(a["b"]),D=function(e){function t(){return e.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:i["a"]("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:d["a"].focus,primary:2082,weight:100},menubarOpts:{menuId:22,group:"3_multi",title:i["a"]({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this}return _(t,e),t.prototype._run=function(e,t){e.addSelectionToNextFindMatch(t)},t}(N),k=function(e){function t(){return e.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:i["a"]("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menubarOpts:{menuId:22,group:"3_multi",title:i["a"]({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this}return _(t,e),t.prototype._run=function(e,t){e.addSelectionToPreviousFindMatch(t)},t}(N),I=function(e){function t(){return e.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:i["a"]("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:d["a"].focus,primary:Object(r["a"])(2089,2082),weight:100}})||this}return _(t,e),t.prototype._run=function(e,t){e.moveSelectionToNextFindMatch(t)},t}(N),E=function(e){function t(){return e.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:i["a"]("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})||this}return _(t,e),t.prototype._run=function(e,t){e.moveSelectionToPreviousFindMatch(t)},t}(N),M=function(e){function t(){return e.call(this,{id:"editor.action.selectHighlights",label:i["a"]("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:d["a"].focus,primary:3114,weight:100},menubarOpts:{menuId:22,group:"3_multi",title:i["a"]({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this}return _(t,e),t.prototype._run=function(e,t){e.selectAll(t)},t}(N),T=function(e){function t(){return e.call(this,{id:"editor.action.changeAll",label:i["a"]("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:d["a"].writable,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:2108,weight:100},menuOpts:{group:"1_modification",order:1.2}})||this}return _(t,e),t.prototype._run=function(e,t){e.selectAll(t)},t}(N),P=function(){function e(e,t,n){this.searchText=e,this.matchCase=t,this.wordSeparators=n}return e.softEquals=function(e,t){return!e&&!t||!(!e||!t)&&(e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators)},e}(),R=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n._isEnabled=t.getConfiguration().contribInfo.selectionHighlight,n.decorations=[],n.updateSoon=n._register(new o["d"](function(){return n._update()},300)),n.state=null,n._register(t.onDidChangeConfiguration(function(e){n._isEnabled=t.getConfiguration().contribInfo.selectionHighlight})),n._register(t.onDidChangeCursorSelection(function(e){n._isEnabled&&(e.selection.isEmpty()?3===e.reason?(n.state&&n._setState(null),n.updateSoon.schedule()):n._setState(null):n._update())})),n._register(t.onDidChangeModel(function(e){n._setState(null)})),n._register(g["CommonFindController"].get(t).getState().onFindReplaceStateChange(function(e){n._update()})),n}return _(t,e),t.prototype.getId=function(){return t.ID},t.prototype._update=function(){this._setState(t._createState(this._isEnabled,this.editor))},t._createState=function(e,t){if(!e)return null;if(!t.hasModel())return null;var n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;var i=x.get(t);if(!i)return null;var o=g["CommonFindController"].get(t);if(!o)return null;var r=i.getSession(o);if(!r){var s=t.getSelections();if(s.length>1){var a=o.getState(),u=a.matchCase,l=A(t.getModel(),s,u);if(!l)return null}r=O.create(t,o)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;var c=o.getState(),d=c.matchCase;if(c.isRevealed){var h=c.searchString;d||(h=h.toLowerCase());var p=r.searchText;if(d||(p=p.toLowerCase()),h===p&&r.matchCase===c.matchCase&&r.wholeWord===c.wholeWord&&!c.isRegex)return null}return new P(r.searchText,r.matchCase,r.wholeWord?t.getConfiguration().wordSeparators:null)},t.prototype._setState=function(e){if(P.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){if(this.editor.hasModel()){var n=this.editor.getModel();if(!n.isTooLargeForTokenization()){var i=f["i"].has(n),o=n.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(e){return e.range});o.sort(l["a"].compareRangesUsingStarts);var r=this.editor.getSelections();r.sort(l["a"].compareRangesUsingStarts);for(var s=[],a=0,u=0,c=o.length,d=r.length;a<c;){var h=o[a];if(u>=d)s.push(h),a++;else{var p=l["a"].compareRangesUsingStarts(h,r[u]);p<0?(!r[u].isEmpty()&&l["a"].areIntersecting(h,r[u])||s.push(h),a++):p>0?u++:(a++,u++)}}var g=s.map(function(e){return{range:e,options:i?t._SELECTION_HIGHLIGHT:t._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,g)}}}else this.decorations=this.editor.deltaDecorations(this.decorations,[])},t.prototype.dispose=function(){this._setState(null),e.prototype.dispose.call(this)},t.ID="editor.contrib.selectionHighlighter",t._SELECTION_HIGHLIGHT_OVERVIEW=p["a"].register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(v["g"])(m["Gb"]),position:h["d"].Center}}),t._SELECTION_HIGHLIGHT=p["a"].register({stickiness:1,className:"selectionHighlight"}),t}(s["a"]);function A(e,t,n){for(var i=F(e,t[0],!n),o=1,r=t.length;o<r;o++){var s=t[o];if(s.isEmpty())return!1;var a=F(e,s,!n);if(i!==a)return!1}return!0}function F(e,t,n){var i=e.getValueInRange(t);return n?i.toLowerCase():i}Object(a["h"])(x),Object(a["h"])(R),Object(a["f"])(b),Object(a["f"])(y),Object(a["f"])(w),Object(a["f"])(D),Object(a["f"])(k),Object(a["f"])(I),Object(a["f"])(E),Object(a["f"])(M),Object(a["f"])(T),Object(a["f"])(C),Object(a["f"])(S)},f20b:function(e,t,n){},f33e:function(e,t,n){"use strict";n.r(t);var i,o,r,s,a,u,l,c,d,h,p,f,g,m,v,_,b,y,w,C,S,L,O,x,N,D,k,I,E,M,T=n("fd49"),P=(n("5110"),n("2504")),R=n("308f"),A=n("fe45"),F=n("6d8e"),j=n("7061"),W=n("6a89"),V=n("8025"),B=n("4dc7");(function(e){e[e["Unnecessary"]=1]="Unnecessary",e[e["Deprecated"]=2]="Deprecated"})(i||(i={})),function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"}(o||(o={})),function(e){e[e["Unknown"]=0]="Unknown",e[e["Backspace"]=1]="Backspace",e[e["Tab"]=2]="Tab",e[e["Enter"]=3]="Enter",e[e["Shift"]=4]="Shift",e[e["Ctrl"]=5]="Ctrl",e[e["Alt"]=6]="Alt",e[e["PauseBreak"]=7]="PauseBreak",e[e["CapsLock"]=8]="CapsLock",e[e["Escape"]=9]="Escape",e[e["Space"]=10]="Space",e[e["PageUp"]=11]="PageUp",e[e["PageDown"]=12]="PageDown",e[e["End"]=13]="End",e[e["Home"]=14]="Home",e[e["LeftArrow"]=15]="LeftArrow",e[e["UpArrow"]=16]="UpArrow",e[e["RightArrow"]=17]="RightArrow",e[e["DownArrow"]=18]="DownArrow",e[e["Insert"]=19]="Insert",e[e["Delete"]=20]="Delete",e[e["KEY_0"]=21]="KEY_0",e[e["KEY_1"]=22]="KEY_1",e[e["KEY_2"]=23]="KEY_2",e[e["KEY_3"]=24]="KEY_3",e[e["KEY_4"]=25]="KEY_4",e[e["KEY_5"]=26]="KEY_5",e[e["KEY_6"]=27]="KEY_6",e[e["KEY_7"]=28]="KEY_7",e[e["KEY_8"]=29]="KEY_8",e[e["KEY_9"]=30]="KEY_9",e[e["KEY_A"]=31]="KEY_A",e[e["KEY_B"]=32]="KEY_B",e[e["KEY_C"]=33]="KEY_C",e[e["KEY_D"]=34]="KEY_D",e[e["KEY_E"]=35]="KEY_E",e[e["KEY_F"]=36]="KEY_F",e[e["KEY_G"]=37]="KEY_G",e[e["KEY_H"]=38]="KEY_H",e[e["KEY_I"]=39]="KEY_I",e[e["KEY_J"]=40]="KEY_J",e[e["KEY_K"]=41]="KEY_K",e[e["KEY_L"]=42]="KEY_L",e[e["KEY_M"]=43]="KEY_M",e[e["KEY_N"]=44]="KEY_N",e[e["KEY_O"]=45]="KEY_O",e[e["KEY_P"]=46]="KEY_P",e[e["KEY_Q"]=47]="KEY_Q",e[e["KEY_R"]=48]="KEY_R",e[e["KEY_S"]=49]="KEY_S",e[e["KEY_T"]=50]="KEY_T",e[e["KEY_U"]=51]="KEY_U",e[e["KEY_V"]=52]="KEY_V",e[e["KEY_W"]=53]="KEY_W",e[e["KEY_X"]=54]="KEY_X",e[e["KEY_Y"]=55]="KEY_Y",e[e["KEY_Z"]=56]="KEY_Z",e[e["Meta"]=57]="Meta",e[e["ContextMenu"]=58]="ContextMenu",e[e["F1"]=59]="F1",e[e["F2"]=60]="F2",e[e["F3"]=61]="F3",e[e["F4"]=62]="F4",e[e["F5"]=63]="F5",e[e["F6"]=64]="F6",e[e["F7"]=65]="F7",e[e["F8"]=66]="F8",e[e["F9"]=67]="F9",e[e["F10"]=68]="F10",e[e["F11"]=69]="F11",e[e["F12"]=70]="F12",e[e["F13"]=71]="F13",e[e["F14"]=72]="F14",e[e["F15"]=73]="F15",e[e["F16"]=74]="F16",e[e["F17"]=75]="F17",e[e["F18"]=76]="F18",e[e["F19"]=77]="F19",e[e["NumLock"]=78]="NumLock",e[e["ScrollLock"]=79]="ScrollLock",e[e["US_SEMICOLON"]=80]="US_SEMICOLON",e[e["US_EQUAL"]=81]="US_EQUAL",e[e["US_COMMA"]=82]="US_COMMA",e[e["US_MINUS"]=83]="US_MINUS",e[e["US_DOT"]=84]="US_DOT",e[e["US_SLASH"]=85]="US_SLASH",e[e["US_BACKTICK"]=86]="US_BACKTICK",e[e["US_OPEN_SQUARE_BRACKET"]=87]="US_OPEN_SQUARE_BRACKET",e[e["US_BACKSLASH"]=88]="US_BACKSLASH",e[e["US_CLOSE_SQUARE_BRACKET"]=89]="US_CLOSE_SQUARE_BRACKET",e[e["US_QUOTE"]=90]="US_QUOTE",e[e["OEM_8"]=91]="OEM_8",e[e["OEM_102"]=92]="OEM_102",e[e["NUMPAD_0"]=93]="NUMPAD_0",e[e["NUMPAD_1"]=94]="NUMPAD_1",e[e["NUMPAD_2"]=95]="NUMPAD_2",e[e["NUMPAD_3"]=96]="NUMPAD_3",e[e["NUMPAD_4"]=97]="NUMPAD_4",e[e["NUMPAD_5"]=98]="NUMPAD_5",e[e["NUMPAD_6"]=99]="NUMPAD_6",e[e["NUMPAD_7"]=100]="NUMPAD_7",e[e["NUMPAD_8"]=101]="NUMPAD_8",e[e["NUMPAD_9"]=102]="NUMPAD_9",e[e["NUMPAD_MULTIPLY"]=103]="NUMPAD_MULTIPLY",e[e["NUMPAD_ADD"]=104]="NUMPAD_ADD",e[e["NUMPAD_SEPARATOR"]=105]="NUMPAD_SEPARATOR",e[e["NUMPAD_SUBTRACT"]=106]="NUMPAD_SUBTRACT",e[e["NUMPAD_DECIMAL"]=107]="NUMPAD_DECIMAL",e[e["NUMPAD_DIVIDE"]=108]="NUMPAD_DIVIDE",e[e["KEY_IN_COMPOSITION"]=109]="KEY_IN_COMPOSITION",e[e["ABNT_C1"]=110]="ABNT_C1",e[e["ABNT_C2"]=111]="ABNT_C2",e[e["MAX_VALUE"]=112]="MAX_VALUE"}(r||(r={})),function(e){e[e["LTR"]=0]="LTR",e[e["RTL"]=1]="RTL"}(s||(s={})),function(e){e[e["Auto"]=1]="Auto",e[e["Hidden"]=2]="Hidden",e[e["Visible"]=3]="Visible"}(a||(a={})),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(u||(u={})),function(e){e[e["Inline"]=1]="Inline"}(l||(l={})),function(e){e[e["TextDefined"]=0]="TextDefined",e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(c||(c={})),function(e){e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(d||(d={})),function(e){e[e["LF"]=0]="LF",e[e["CRLF"]=1]="CRLF"}(h||(h={})),function(e){e[e["AlwaysGrowsWhenTypingAtEdges"]=0]="AlwaysGrowsWhenTypingAtEdges",e[e["NeverGrowsWhenTypingAtEdges"]=1]="NeverGrowsWhenTypingAtEdges",e[e["GrowsOnlyWhenTypingBefore"]=2]="GrowsOnlyWhenTypingBefore",e[e["GrowsOnlyWhenTypingAfter"]=3]="GrowsOnlyWhenTypingAfter"}(p||(p={})),function(e){e[e["Smooth"]=0]="Smooth",e[e["Immediate"]=1]="Immediate"}(f||(f={})),function(e){e[e["NotSet"]=0]="NotSet",e[e["ContentFlush"]=1]="ContentFlush",e[e["RecoverFromMarkers"]=2]="RecoverFromMarkers",e[e["Explicit"]=3]="Explicit",e[e["Paste"]=4]="Paste",e[e["Undo"]=5]="Undo",e[e["Redo"]=6]="Redo"}(g||(g={})),function(e){e[e["None"]=0]="None",e[e["Small"]=1]="Small",e[e["Large"]=2]="Large",e[e["SmallBlocks"]=3]="SmallBlocks",e[e["LargeBlocks"]=4]="LargeBlocks"}(m||(m={})),function(e){e[e["None"]=0]="None",e[e["Same"]=1]="Same",e[e["Indent"]=2]="Indent",e[e["DeepIndent"]=3]="DeepIndent"}(v||(v={})),function(e){e[e["Hidden"]=0]="Hidden",e[e["Blink"]=1]="Blink",e[e["Smooth"]=2]="Smooth",e[e["Phase"]=3]="Phase",e[e["Expand"]=4]="Expand",e[e["Solid"]=5]="Solid"}(_||(_={})),function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"}(b||(b={})),function(e){e[e["Off"]=0]="Off",e[e["On"]=1]="On",e[e["Relative"]=2]="Relative",e[e["Interval"]=3]="Interval",e[e["Custom"]=4]="Custom"}(y||(y={})),function(e){e[e["EXACT"]=0]="EXACT",e[e["ABOVE"]=1]="ABOVE",e[e["BELOW"]=2]="BELOW"}(w||(w={})),function(e){e[e["TOP_RIGHT_CORNER"]=0]="TOP_RIGHT_CORNER",e[e["BOTTOM_RIGHT_CORNER"]=1]="BOTTOM_RIGHT_CORNER",e[e["TOP_CENTER"]=2]="TOP_CENTER"}(C||(C={})),function(e){e[e["UNKNOWN"]=0]="UNKNOWN",e[e["TEXTAREA"]=1]="TEXTAREA",e[e["GUTTER_GLYPH_MARGIN"]=2]="GUTTER_GLYPH_MARGIN",e[e["GUTTER_LINE_NUMBERS"]=3]="GUTTER_LINE_NUMBERS",e[e["GUTTER_LINE_DECORATIONS"]=4]="GUTTER_LINE_DECORATIONS",e[e["GUTTER_VIEW_ZONE"]=5]="GUTTER_VIEW_ZONE",e[e["CONTENT_TEXT"]=6]="CONTENT_TEXT",e[e["CONTENT_EMPTY"]=7]="CONTENT_EMPTY",e[e["CONTENT_VIEW_ZONE"]=8]="CONTENT_VIEW_ZONE",e[e["CONTENT_WIDGET"]=9]="CONTENT_WIDGET",e[e["OVERVIEW_RULER"]=10]="OVERVIEW_RULER",e[e["SCROLLBAR"]=11]="SCROLLBAR",e[e["OVERLAY_WIDGET"]=12]="OVERLAY_WIDGET",e[e["OUTSIDE_EDITOR"]=13]="OUTSIDE_EDITOR"}(S||(S={})),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(L||(L={})),function(e){e[e["Method"]=0]="Method",e[e["Function"]=1]="Function",e[e["Constructor"]=2]="Constructor",e[e["Field"]=3]="Field",e[e["Variable"]=4]="Variable",e[e["Class"]=5]="Class",e[e["Struct"]=6]="Struct",e[e["Interface"]=7]="Interface",e[e["Module"]=8]="Module",e[e["Property"]=9]="Property",e[e["Event"]=10]="Event",e[e["Operator"]=11]="Operator",e[e["Unit"]=12]="Unit",e[e["Value"]=13]="Value",e[e["Constant"]=14]="Constant",e[e["Enum"]=15]="Enum",e[e["EnumMember"]=16]="EnumMember",e[e["Keyword"]=17]="Keyword",e[e["Text"]=18]="Text",e[e["Color"]=19]="Color",e[e["File"]=20]="File",e[e["Reference"]=21]="Reference",e[e["Customcolor"]=22]="Customcolor",e[e["Folder"]=23]="Folder",e[e["TypeParameter"]=24]="TypeParameter",e[e["Snippet"]=25]="Snippet"}(O||(O={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(x||(x={})),function(e){e[e["KeepWhitespace"]=1]="KeepWhitespace",e[e["InsertAsSnippet"]=4]="InsertAsSnippet"}(N||(N={})),function(e){e[e["Invoke"]=0]="Invoke",e[e["TriggerCharacter"]=1]="TriggerCharacter",e[e["TriggerForIncompleteCompletions"]=2]="TriggerForIncompleteCompletions"}(D||(D={})),function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"}(k||(k={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(I||(I={})),function(e){e[e["File"]=0]="File",e[e["Module"]=1]="Module",e[e["Namespace"]=2]="Namespace",e[e["Package"]=3]="Package",e[e["Class"]=4]="Class",e[e["Method"]=5]="Method",e[e["Property"]=6]="Property",e[e["Field"]=7]="Field",e[e["Constructor"]=8]="Constructor",e[e["Enum"]=9]="Enum",e[e["Interface"]=10]="Interface",e[e["Function"]=11]="Function",e[e["Variable"]=12]="Variable",e[e["Constant"]=13]="Constant",e[e["String"]=14]="String",e[e["Number"]=15]="Number",e[e["Boolean"]=16]="Boolean",e[e["Array"]=17]="Array",e[e["Object"]=18]="Object",e[e["Key"]=19]="Key",e[e["Null"]=20]="Null",e[e["EnumMember"]=21]="EnumMember",e[e["Struct"]=22]="Struct",e[e["Event"]=23]="Event",e[e["Operator"]=24]="Operator",e[e["TypeParameter"]=25]="TypeParameter"}(E||(E={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(M||(M={}));var H=function(){function e(){}return e.chord=function(e,t){return Object(A["a"])(e,t)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();function z(){return{editor:void 0,languages:void 0,CancellationTokenSource:P["b"],Emitter:R["a"],KeyCode:r,KeyMod:H,Position:j["a"],Range:W["a"],Selection:V["a"],SelectionDirection:s,MarkerSeverity:o,MarkerTag:i,Uri:F["a"],Token:B["a"]}}n("b223");var U=n("5717"),K=n("11f7"),q=n("a666"),G=n("db88"),Z=n("438a"),Y=n("b589"),X=n("82c9"),$=n("3742"),Q=n("9e74"),J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ee=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},te=function(e,t){return function(n,i){t(n,i,e)}},ne=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},ie=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},oe=function(e){function t(t,n){var i=e.call(this)||this;return i._editorService=t,i._commandService=n,i._openers=new G["a"],i._validators=new G["a"],i}return J(t,e),t.prototype.open=function(e,t){return ne(this,void 0,void 0,function(){var n,i,o,r,s,a,u;return ie(this,function(l){switch(l.label){case 0:if(!e.scheme)return[2,Promise.resolve(!1)];n=0,i=this._validators.toArray(),l.label=1;case 1:return n<i.length?(o=i[n],[4,o.shouldOpen(e)]):[3,4];case 2:if(!l.sent())return[2,!1];l.label=3;case 3:return n++,[3,1];case 4:r=0,s=this._openers.toArray(),l.label=5;case 5:return r<s.length?(a=s[r],[4,a.open(e,t)]):[3,8];case 6:if(u=l.sent(),u)return[2,!0];l.label=7;case 7:return r++,[3,5];case 8:return[2,this._doOpen(e,t)]}})})},t.prototype._doOpen=function(e,t){var n,i=e.scheme,o=e.path,r=e.query,s=e.fragment;if(Object($["n"])(i,Y["b"].mailto)||t&&t.openExternal)return this._doOpenExternal(e);if(Object($["n"])(i,Y["b"].http)||Object($["n"])(i,Y["b"].https))return this._doOpenExternal(e);if(Object($["n"])(i,Y["b"].command)){if(!Q["a"].getCommand(o))return Promise.reject("command '"+o+"' NOT known");var a=[];try{a=Object(Z["a"])(r),Array.isArray(a)||(a=[a])}catch(c){}return(n=this._commandService).executeCommand.apply(n,[o].concat(a)).then(function(){return!0})}var u=void 0,l=/^L?(\d+)(?:,(\d+))?/.exec(s);return l&&(u={startLineNumber:parseInt(l[1]),startColumn:l[2]?parseInt(l[2]):1},e=e.with({fragment:""})),e.scheme===Y["b"].file&&(e=X["g"](e)),this._editorService.openCodeEditor({resource:e,options:{selection:u}},this._editorService.getFocusedCodeEditor(),t&&t.openToSide).then(function(){return!0})},t.prototype._doOpenExternal=function(e){return K["T"](encodeURI(e.toString(!0))),Promise.resolve(!0)},t.prototype.dispose=function(){this._validators.clear()},t=ee([te(0,U["a"]),te(1,Q["b"])],t),t}(q["a"]),re=n("1569"),se=n("aa3d"),ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ue={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},le=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this)||this;return i._onDidUpdate=i._register(new R["a"]),i._editor=t,i._options=se["g"](n,ue,!1),i.disposed=!1,i.nextIdx=-1,i.ranges=[],i.ignoreSelectionChange=!1,i.revealFirst=Boolean(i._options.alwaysRevealFirst),i._register(i._editor.onDidDispose(function(){return i.dispose()})),i._register(i._editor.onDidUpdateDiff(function(){return i._onDiffUpdated()})),i._options.followsCaret&&i._register(i._editor.getModifiedEditor().onDidChangeCursorPosition(function(e){i.ignoreSelectionChange||(i.nextIdx=-1)})),i._options.alwaysRevealFirst&&i._register(i._editor.getModifiedEditor().onDidChangeModel(function(e){i.revealFirst=!0})),i._init(),i}return ae(t,e),t.prototype._init=function(){this._editor.getLineChanges()},t.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},t.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach(function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(function(e){t.ranges.push({rhs:!0,range:new W["a"](e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):t.ranges.push({rhs:!0,range:new W["a"](e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})}),this.ranges.sort(function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},t.prototype._initIdx=function(e){var t=!1,n=this._editor.getPosition();if(n){for(var i=0,o=this.ranges.length;i<o&&!t;i++){var r=this.ranges[i].range;n.isBeforeOrEqual(r.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0},t.prototype._move=function(e,t){if(re["a"](!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t)}finally{this.ignoreSelectionChange=!1}}},t.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},t.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},t.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},t}(q["a"]),ce=n("fb71"),de=n("8ae8"),he=n("3352"),pe=n("b707"),fe=n("8bf1"),ge=n("a40b"),me=n("b78f"),ve=n("5fe7"),_e=n("fdcc"),be=n("30db"),ye=n("ef8e"),we=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ce="$initialize",Se=!1;function Le(e){be["f"]&&(Se||(Se=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))}var Oe=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,t){var n=this,i=String(++this._lastSentReq);return new Promise(function(o,r){n._pendingReplies[i]={resolve:o,reject:r},n._send({vsWorker:n._workerId,req:i,method:e,args:t})})},e.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return void console.warn("Got reply to unknown seq");var i=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var o=n.err;return n.err.$isError&&(o=new Error,o.name=n.err.name,o.message=n.err.message,o.stack=n.err.stack),void i.reject(o)}i.resolve(n.res)}else{var r=e,s=r.req,a=this._handler.handleMessage(r.method,r.args);a.then(function(e){t._send({vsWorker:t._workerId,seq:s,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=Object(_e["g"])(e.detail)),t._send({vsWorker:t._workerId,seq:s,res:void 0,err:Object(_e["g"])(e)})})}},e.prototype._send=function(e){var t=[];if(e.req)for(var n=e,i=0;i<n.args.length;i++)n.args[i]instanceof ArrayBuffer&&t.push(n.args[i]);else{n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)},e}(),xe=function(e){function t(t,n,i){var o=e.call(this)||this,r=null;o._worker=o._register(t.create("vs/base/common/worker/simpleWorker",function(e){o._protocol.handleMessage(e)},function(e){r&&r(e)})),o._protocol=new Oe({sendMessage:function(e,t){o._worker.postMessage(e,t)},handleMessage:function(e,t){if("function"!==typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(n){return Promise.reject(n)}}}),o._protocol.setWorkerId(o._worker.getId());var s=null;"undefined"!==typeof self.require&&"function"===typeof self.require.getConfig?s=self.require.getConfig():"undefined"!==typeof self.requirejs&&(s=self.requirejs.s.contexts._.config);var a=ye["b"](i);o._onModuleLoaded=o._protocol.sendMessage(Ce,[o._worker.getId(),JSON.parse(JSON.stringify(s)),n,a]);var u=function(e,t){return o._request(e,t)};return o._lazyProxy=new Promise(function(e,t){r=t,o._onModuleLoaded.then(function(t){e(ye["a"](t,u))},function(e){t(e),o._onError("Worker failed to load "+n,e)})}),o}return we(t,e),t.prototype.getProxyObject=function(){return this._lazyProxy},t.prototype._request=function(e,t){var n=this;return new Promise(function(i,o){n._onModuleLoaded.then(function(){n._protocol.sendMessage(e,t).then(i,o)},o)})},t.prototype._onError=function(e,t){console.error(e),console.info(t)},t}(q["a"]);(function(){function e(e,t){var n=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Oe({sendMessage:function(t,n){e(t,n)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}e.prototype.onmessage=function(e){this._protocol.handleMessage(e)},e.prototype._handleMessage=function(e,t){if(e===Ce)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(n){return Promise.reject(n)}},e.prototype.initialize=function(e,t,n,i){var o=this;this._protocol.setWorkerId(e);var r=function(e,t){return o._protocol.sendMessage(e,t)},s=ye["a"](i,r);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(s),Promise.resolve(ye["b"](this._requestHandler))):(t&&("undefined"!==typeof t.baseUrl&&delete t["baseUrl"],"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths["vs"],t.catchError=!0,self.require.config(t)),new Promise(function(e,t){self.require([n],function(n){o._requestHandler=n.create(s),o._requestHandler?e(ye["b"](o._requestHandler)):t(new Error("No RequestHandler!"))},t)}))}})();function Ne(e,t){if(be["b"].MonacoEnvironment){if("function"===typeof be["b"].MonacoEnvironment.getWorker)return be["b"].MonacoEnvironment.getWorker(e,t);if("function"===typeof be["b"].MonacoEnvironment.getWorkerUrl)return new Worker(be["b"].MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function De(e){return"function"===typeof e.then}var ke=function(){function e(e,t,n,i,o){this.id=t;var r=Ne("workerMain.js",n);De(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then(function(e){e.onmessage=function(e){i(e.data)},e.onmessageerror=o,"function"===typeof e.addEventListener&&e.addEventListener("error",o)})}return e.prototype.getId=function(){return this.id},e.prototype.postMessage=function(e,t){this.worker&&this.worker.then(function(n){return n.postMessage(e,t)})},e.prototype.dispose=function(){this.worker&&this.worker.then(function(e){return e.terminate()}),this.worker=null},e}(),Ie=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1}return e.prototype.create=function(t,n,i){var o=this,r=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new ke(t,r,this._label||"anonymous"+r,n,function(e){Le(e),o._webWorkerFailedBeforeError=e,i(e)})},e.LAST_WORKER_ID=0,e}(),Ee=n("70cb"),Me=n("e8e3"),Te=n("1b0e"),Pe=n("258a"),Re=5e3,Ae=3;function Fe(e,t,n,i){var o=new Te["a"](e,t,n);return o.ComputeDiff(i)}var je=function(){function e(t){for(var n=[],i=[],o=0,r=t.length;o<r;o++)n[o]=e._getFirstNonBlankColumn(t[o],1),i[o]=e._getLastNonBlankColumn(t[o],1);this._lines=t,this._startColumns=n,this._endColumns=i}return e.prototype.getLength=function(){return this._lines.length},e.prototype.getElementAtIndex=function(e){return this._lines[e].substring(this._startColumns[e]-1,this._endColumns[e]-1)},e.prototype.getStartLineNumber=function(e){return e+1},e.prototype.getEndLineNumber=function(e){return e+1},e._getFirstNonBlankColumn=function(e,t){var n=$["q"](e);return-1===n?t:n+1},e._getLastNonBlankColumn=function(e,t){var n=$["A"](e);return-1===n?t:n+2},e.prototype.getCharSequence=function(e,t,n){for(var i=[],o=[],r=[],s=0,a=t;a<=n;a++)for(var u=this._lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:u.length+1,d=l;d<c;d++)i[s]=u.charCodeAt(d-1),o[s]=a+1,r[s]=d,s++;return new We(i,o,r)},e}(),We=function(){function e(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}return e.prototype.getLength=function(){return this._charCodes.length},e.prototype.getElementAtIndex=function(e){return this._charCodes[e]},e.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getStartColumn=function(e){return this._columns[e]},e.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getEndColumn=function(e){return this._columns[e]+1},e}(),Ve=function(){function e(e,t,n,i,o,r,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=o,this.modifiedStartColumn=r,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}return e.createFromDiffChange=function(t,n,i){var o,r,s,a,u,l,c,d;return 0===t.originalLength?(o=0,r=0,s=0,a=0):(o=n.getStartLineNumber(t.originalStart),r=n.getStartColumn(t.originalStart),s=n.getEndLineNumber(t.originalStart+t.originalLength-1),a=n.getEndColumn(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=0,l=0,c=0,d=0):(u=i.getStartLineNumber(t.modifiedStart),l=i.getStartColumn(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=i.getEndColumn(t.modifiedStart+t.modifiedLength-1)),new e(o,r,s,a,u,l,c,d)},e}();function Be(e){if(e.length<=1)return e;for(var t=[e[0]],n=t[0],i=1,o=e.length;i<o;i++){var r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),a=r.modifiedStart-(n.modifiedStart+n.modifiedLength),u=Math.min(s,a);u<Ae?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}var He=function(){function e(e,t,n,i,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=o}return e.createFromDiffResult=function(t,n,i,o,r,s,a){var u,l,c,d,h=void 0;if(0===n.originalLength?(u=i.getStartLineNumber(n.originalStart)-1,l=0):(u=i.getStartLineNumber(n.originalStart),l=i.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(c=o.getStartLineNumber(n.modifiedStart)-1,d=0):(c=o.getStartLineNumber(n.modifiedStart),d=o.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),s&&0!==n.originalLength&&0!==n.modifiedLength&&r()){var p=i.getCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),f=o.getCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),g=Fe(p,f,r,!0);a&&(g=Be(g)),h=[];for(var m=0,v=g.length;m<v;m++)h.push(Ve.createFromDiffChange(g[m],p,f))}return new e(u,l,c,d,h)},e}(),ze=function(){function e(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.maximumRunTimeMs=Re,this.originalLines=e,this.modifiedLines=t,this.original=new je(e),this.modified=new je(t),this.computationStartTime=(new Date).getTime()}return e.prototype.computeDiff=function(){if(1===this.original.getLength()&&0===this.original.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.getLength(),charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];if(1===this.modified.getLength()&&0===this.modified.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:this.original.getLength(),modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];this.computationStartTime=(new Date).getTime();var e=Fe(this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldMakePrettyDiff);if(this.shouldIgnoreTrimWhitespace){for(var t=[],n=0,i=e.length;n<i;n++)t.push(He.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e[n],this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return t}for(var o=[],r=0,s=0,a=(n=-1,e.length);n<a;n++){var u=n+1<a?e[n+1]:null,l=u?u.originalStart:this.originalLines.length,c=u?u.modifiedStart:this.modifiedLines.length;while(r<l&&s<c){var d=this.originalLines[r],h=this.modifiedLines[s];if(d!==h){var p=je._getFirstNonBlankColumn(d,1),f=je._getFirstNonBlankColumn(h,1);while(p>1&&f>1){var g=d.charCodeAt(p-2),m=h.charCodeAt(f-2);if(g!==m)break;p--,f--}(p>1||f>1)&&this._pushTrimWhitespaceCharChange(o,r+1,1,p,s+1,1,f);var v=je._getLastNonBlankColumn(d,1),_=je._getLastNonBlankColumn(h,1),b=d.length+1,y=h.length+1;while(v<b&&_<y){g=d.charCodeAt(v-1),m=d.charCodeAt(_-1);if(g!==m)break;v++,_++}(v<b||_<y)&&this._pushTrimWhitespaceCharChange(o,r+1,v,b,s+1,_,y)}r++,s++}u&&(o.push(He.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=u.originalLength,s+=u.modifiedLength)}return o},e.prototype._pushTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){if(!this._mergeTrimWhitespaceCharChange(e,t,n,i,o,r,s)){var a=void 0;this.shouldComputeCharChanges&&(a=[new Ve(t,n,t,i,o,r,o,s)]),e.push(new He(t,t,o,o,a))}},e.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,i,o,r,s){var a=e.length;if(0===a)return!1;var u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&(u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===o&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&u.charChanges.push(new Ve(t,n,t,i,o,r,o,s)),!0))},e.prototype._continueProcessingPredicate=function(){if(0===this.maximumRunTimeMs)return!0;var e=(new Date).getTime();return e-this.computationStartTime<this.maximumRunTimeMs},e}(),Ue=n("2de5"),Ke=function(){function e(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null}return e.prototype.dispose=function(){this._lines.length=0},e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=e.changes,n=0,i=t;n<i.length;n++){var o=i[n];this._acceptDeleteRange(o.range),this._acceptInsertText(new j["a"](o.range.startLineNumber,o.range.startColumn),o.text)}this._versionId=e.versionId},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new Ue["a"](n)}},e.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}},e.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var i=new Uint32Array(n.length-1),o=1;o<n.length;o++)this._lines.splice(e.lineNumber+o-1,0,n[o]),i[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1))}},e}(),qe=n("d093"),Ge=n("3170"),Ze=n("507c"),Ye=function(){function e(e){for(var t=0,n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=r[0],a=r[1],u=r[2];a>t&&(t=a),s>n&&(n=s),u>n&&(n=u)}t++,n++;var l=new Ze["a"](n,t,0);for(i=0,o=e.length;i<o;i++){var c=e[i];s=c[0],a=c[1],u=c[2];l.set(s,a,u)}this._states=l,this._maxCharCode=t}return e.prototype.nextState=function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)},e}(),Xe=null;function $e(){return null===Xe&&(Xe=new Ye([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Xe}var Qe=null;function Je(){if(null===Qe){Qe=new Ge["a"](0);for(var e=" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…",t=0;t<e.length;t++)Qe.set(e.charCodeAt(t),1);var n=".,;";for(t=0;t<n.length;t++)Qe.set(n.charCodeAt(t),2)}return Qe}var et=function(){function e(){}return e._createLink=function(e,t,n,i,o){var r=o-1;do{var s=t.charCodeAt(r),a=e.get(s);if(2!==a)break;r--}while(r>i);if(i>0){var u=t.charCodeAt(i-1),l=t.charCodeAt(r);(40===u&&41===l||91===u&&93===l||123===u&&125===l)&&r--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:r+2},url:t.substring(i,r+1)}},e.computeLinks=function(t,n){void 0===n&&(n=$e());for(var i=Je(),o=[],r=1,s=t.getLineCount();r<=s;r++){var a=t.getLineContent(r),u=a.length,l=0,c=0,d=0,h=1,p=!1,f=!1,g=!1;while(l<u){var m=!1,v=a.charCodeAt(l);if(13===h){var _=void 0;switch(v){case 40:p=!0,_=0;break;case 41:_=p?0:1;break;case 91:f=!0,_=0;break;case 93:_=f?0:1;break;case 123:g=!0,_=0;break;case 125:_=g?0:1;break;case 39:_=34===d||96===d?0:1;break;case 34:_=39===d||96===d?0:1;break;case 96:_=39===d||34===d?0:1;break;default:_=i.get(v)}1===_&&(o.push(e._createLink(i,a,r,c,l)),m=!0)}else if(12===h){_=void 0;91===v?(f=!0,_=0):_=i.get(v),1===_?m=!0:h=13}else h=n.nextState(h,v),0===h&&(m=!0);m&&(h=1,p=!1,f=!1,g=!1,c=l+1,d=v),l++}13===h&&o.push(e._createLink(i,a,r,c,u))}return o},e}();function tt(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?et.computeLinks(e):[]}var nt=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return e.prototype.navigateValueSet=function(e,t,n,i,o){if(e&&t){var r=this.doNavigateValueSet(t,o);if(r)return{range:e,value:r}}if(n&&i){r=this.doNavigateValueSet(i,o);if(r)return{range:n,value:r}}return null},e.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)},e.prototype.numberReplace=function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),o=parseFloat(e);return isNaN(i)||isNaN(o)||i!==o?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null},e.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)},e.prototype.valueSetsReplace=function(e,t,n){for(var i=null,o=0,r=e.length;null===i&&o<r;o++)i=this.valueSetReplace(e[o],t,n);return i},e.prototype.valueSetReplace=function(e,t,n){var i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null},e.INSTANCE=new e,e}(),it=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return it(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=Object(qe["d"])(e.column,Object(qe["c"])(t),this._lines[e.lineNumber-1],0);return n?new W["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.createWordIterator=function(e){var t,n,i=this,o=0,r=0,s=[],a=function(){if(r<s.length){var u=n.substring(s[r].start,s[r].end);return r+=1,t?t.value=u:t={done:!1,value:u},t}return o>=i._lines.length?Pe["c"]:(n=i._lines[o],s=i._wordenize(n,e),r=0,o+=1,a())};return{next:a}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],i=this._wordenize(n,t),o=[],r=0,s=i;r<s.length;r++){var a=s[r];o.push({word:n.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1})}return o},t.prototype._wordenize=function(e,t){var n,i=[];t.lastIndex=0;while(n=t.exec(e)){if(0===n[0].length)break;i.push({start:n.index,end:n.index+n[0].length})}return i},t.prototype.getValueInRange=function(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(var r=n+1;r<i;r++)o.push(this._lines[r]);return o.push(this._lines[i].substring(0,e.endColumn-1)),o.join(t)},t.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},t.prototype.positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}},t.prototype._validateRange=function(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e},t.prototype._validatePosition=function(e){if(!j["a"].isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var o=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>o&&(n=o,i=!0)}return i?{lineNumber:t,column:n}:e},t}(Ke),rt=function(){function e(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}return e.prototype.dispose=function(){this._models=Object.create(null)},e.prototype._getModel=function(e){return this._models[e]},e.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach(function(n){return t.push(e._models[n])}),t},e.prototype.acceptNewModel=function(e){this._models[e.url]=new ot(F["a"].parse(e.url),e.lines,e.EOL,e.versionId)},e.prototype.acceptModelChanged=function(e,t){if(this._models[e]){var n=this._models[e];n.onEvents(t)}},e.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},e.prototype.computeDiff=function(e,t,n){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return Promise.resolve(null);var r=i.getLinesContent(),s=o.getLinesContent(),a=new ze(r,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}),u=a.computeDiff(),l=!(u.length>0)&&this._modelsAreIdentical(i,o);return Promise.resolve({identical:l,changes:u})},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount(),i=t.getLineCount();if(n!==i)return!1;for(var o=1;o<=n;o++){var r=e.getLineContent(o),s=t.getLineContent(o);if(r!==s)return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){var i=this._getModel(t);if(!i)return Promise.resolve(n);var o=[],r=void 0;n=Object(Me["o"])(n,function(e,t){if(e.range&&t.range)return W["a"].compareRangesUsingStarts(e.range,t.range);var n=e.range?0:1,i=t.range?0:1;return n-i});for(var s=0,a=n;s<a.length;s++){var u=a[s],l=u.range,c=u.text,d=u.eol;if("number"===typeof d&&(r=d),!W["a"].isEmpty(l)||c){var h=i.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,i.eol),h!==c)if(Math.max(c.length,h.length)>e._diffLimit)o.push({range:l,text:c});else for(var p=Object(Te["b"])(h,c,!1),f=i.offsetAt(W["a"].lift(l).getStartPosition()),g=0,m=p;g<m.length;g++){var v=m[g],_=i.positionAt(f+v.originalStart),b=i.positionAt(f+v.originalStart+v.originalLength),y={text:c.substr(v.modifiedStart,v.modifiedLength),range:{startLineNumber:_.lineNumber,startColumn:_.column,endLineNumber:b.lineNumber,endColumn:b.column}};i.getValueInRange(y.range)!==y.text&&o.push(y)}}}return"number"===typeof r&&o.push({eol:r,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),Promise.resolve(o)},e.prototype.computeLinks=function(e){var t=this._getModel(e);return t?Promise.resolve(tt(t)):Promise.resolve(null)},e.prototype.textualSuggest=function(t,n,i,o){var r=this._getModel(t);if(!r)return Promise.resolve(null);var s=Object.create(null),a=[],u=new RegExp(i,o),l=r.getWordUntilPosition(n,u),c=r.getWordAtPosition(n,u);c&&(s[r.getValueInRange(c)]=!0);for(var d=r.createWordIterator(u),h=d.next();!h.done&&a.length<=e._suggestionsLimit;h=d.next()){var p=h.value;s[p]||(s[p]=!0,isNaN(Number(p))&&a.push({kind:18,label:p,insertText:p,range:{startLineNumber:n.lineNumber,startColumn:l.startColumn,endLineNumber:n.lineNumber,endColumn:l.endColumn}}))}return Promise.resolve({suggestions:a})},e.prototype.computeWordRanges=function(e,t,n,i){var o=this._getModel(e);if(!o)return Promise.resolve(Object.create(null));for(var r=new RegExp(n,i),s=Object.create(null),a=t.startLineNumber;a<t.endLineNumber;a++)for(var u=o.getLineWords(a,r),l=0,c=u;l<c.length;l++){var d=c[l];if(isNaN(Number(d.word))){var h=s[d.word];h||(h=[],s[d.word]=h),h.push({startLineNumber:a,startColumn:d.startColumn,endLineNumber:a,endColumn:d.endColumn})}}return Promise.resolve(s)},e.prototype.navigateValueSet=function(e,t,n,i,o){var r=this._getModel(e);if(!r)return Promise.resolve(null);var s=new RegExp(i,o);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});var a=r.getValueInRange(t),u=r.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!u)return Promise.resolve(null);var l=r.getValueInRange(u),c=nt.INSTANCE.navigateValueSet(t,a,u,l,n);return Promise.resolve(c)},e.prototype.loadForeignModule=function(e,t,n){var i=this,o=function(e,t){return i._host.fhr(e,t)},r=ye["a"](n,o),s={host:r,getMirrorModels:function(){return i._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,t),Promise.resolve(ye["b"](this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},e.prototype.fmr=function(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}},e._diffLimit=1e5,e._suggestionsLimit=1e4,e}();"function"===typeof importScripts&&(be["b"].monaco=z());var st=n("1b69"),at=n("0a0f"),ut=Object(at["c"])("textResourceConfigurationService"),lt=Object(at["c"])("textResourcePropertiesService"),ct=n("d3d7"),dt=n("e58e"),ht=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pt=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},ft=function(e,t){return function(n,i){t(n,i,e)}},gt=6e4,mt=3e5;function vt(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var _t=function(e){function t(t,n,i){var o=e.call(this)||this;return o._modelService=t,o._workerManager=o._register(new yt(o._modelService)),o._logService=i,o._register(pe["q"].register("*",{provideLinks:function(e,t){return vt(o._modelService,e.uri)?o._workerManager.withWorker().then(function(t){return t.computeLinks(e.uri)}).then(function(e){return e&&{links:e}}):Promise.resolve({links:[]})}})),o._register(pe["d"].register("*",new bt(o._workerManager,n,o._modelService))),o}return ht(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.canComputeDiff=function(e,t){return vt(this._modelService,e)&&vt(this._modelService,t)},t.prototype.computeDiff=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.computeDiff(e,t,n)})},t.prototype.computeMoreMinimalEdits=function(e,t){var n=this;if(Object(Me["n"])(t)){if(!vt(this._modelService,e))return Promise.resolve(t);var i=dt["a"].create(!0),o=this._workerManager.withWorker().then(function(n){return n.computeMoreMinimalEdits(e,t)});return o.finally(function(){return n._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())}),o}return Promise.resolve(void 0)},t.prototype.canNavigateValueSet=function(e){return vt(this._modelService,e)},t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.navigateValueSet(e,t,n)})},t.prototype.canComputeWordRanges=function(e){return vt(this._modelService,e)},t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then(function(n){return n.computeWordRanges(e,t)})},t=pt([ft(0,st["a"]),ft(1,ut),ft(2,ct["a"])],t),t}(q["a"]),bt=function(){function e(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}return e.prototype.provideCompletionItems=function(e,t){var n=this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions;if(n&&vt(this._modelService,e.uri))return this._workerManager.withWorker().then(function(n){return n.textualSuggest(e.uri,t)})},e}(),yt=function(e){function t(t){var n=e.call(this)||this;n._modelService=t,n._editorWorkerClient=null,n._lastWorkerUsedTime=(new Date).getTime();var i=n._register(new ve["c"]);return i.cancelAndSet(function(){return n._checkStopIdleWorker()},Math.round(mt/2)),n._register(n._modelService.onModelRemoved(function(e){return n._checkStopEmptyWorker()})),n}return ht(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){if(this._editorWorkerClient){var e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype._checkStopIdleWorker=function(){if(this._editorWorkerClient){var e=(new Date).getTime()-this._lastWorkerUsedTime;e>mt&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Lt(this._modelService,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},t}(q["a"]),wt=function(e){function t(t,n,i){var o=e.call(this)||this;if(o._syncedModels=Object.create(null),o._syncedModelsLastUsedTime=Object.create(null),o._proxy=t,o._modelService=n,!i){var r=new ve["c"];r.cancelAndSet(function(){return o._checkStopModelSync()},Math.round(gt/2)),o._register(r)}return o}return ht(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)Object(q["f"])(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.ensureSyncedResources=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.toString();this._syncedModels[o]||this._beginModelSync(i),this._syncedModels[o]&&(this._syncedModelsLastUsedTime[o]=(new Date).getTime())}},t.prototype._checkStopModelSync=function(){var e=(new Date).getTime(),t=[];for(var n in this._syncedModelsLastUsedTime){var i=e-this._syncedModelsLastUsedTime[n];i>gt&&t.push(n)}for(var o=0,r=t;o<r.length;o++){var s=r[o];this._stopModelSync(s)}},t.prototype._beginModelSync=function(e){var t=this,n=this._modelService.getModel(e);if(n&&!n.isTooLargeForSyncing()){var i=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});var o=new q["b"];o.add(n.onDidChangeContent(function(e){t._proxy.acceptModelChanged(i.toString(),e)})),o.add(n.onWillDispose(function(){t._stopModelSync(i)})),o.add(Object(q["h"])(function(){t._proxy.acceptRemovedModel(i)})),this._syncedModels[i]=o}},t.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Object(q["f"])(t)},t}(q["a"]),Ct=function(){function e(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}return e.prototype.dispose=function(){this._instance.dispose()},e.prototype.getProxyObject=function(){return this._proxyObj},e}(),St=function(){function e(e){this._workerClient=e}return e.prototype.fhr=function(e,t){return this._workerClient.fhr(e,t)},e}(),Lt=function(e){function t(t,n){var i=e.call(this)||this;return i._modelService=t,i._workerFactory=new Ie(n),i._worker=null,i._modelManager=null,i}return ht(t,e),t.prototype.fhr=function(e,t){throw new Error("Not implemented!")},t.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new xe(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new St(this)))}catch(e){Le(e),this._worker=new Ct(new rt(new St(this),null))}return this._worker},t.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(void 0,function(t){return Le(t),e._worker=new Ct(new rt(new St(e),null)),e._getOrCreateWorker().getProxyObject()})},t.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new wt(e,this._modelService,!1))),this._modelManager},t.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then(function(n){return t._getOrCreateModelManager(n).ensureSyncedResources(e),n})},t.prototype.computeDiff=function(e,t,n){return this._withSyncedResources([e,t]).then(function(i){return i.computeDiff(e.toString(),t.toString(),n)})},t.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then(function(n){return n.computeMoreMinimalEdits(e.toString(),t)})},t.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then(function(t){return t.computeLinks(e.toString())})},t.prototype.textualSuggest=function(e,t){var n=this;return this._withSyncedResources([e]).then(function(i){var o=n._modelService.getModel(e);if(!o)return null;var r=Ee["a"].getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=Object($["D"])(r);return i.textualSuggest(e.toString(),t,s,a)})},t.prototype.computeWordRanges=function(e,t){var n=this;return this._withSyncedResources([e]).then(function(i){var o=n._modelService.getModel(e);if(!o)return Promise.resolve(null);var r=Ee["a"].getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=Object($["D"])(r);return i.computeWordRanges(e.toString(),t,s,a)})},t.prototype.navigateValueSet=function(e,t,n){var i=this;return this._withSyncedResources([e]).then(function(o){var r=i._modelService.getModel(e);if(!r)return null;var s=Ee["a"].getWordDefinition(r.getLanguageIdentifier().id),a=s.source,u=Object($["D"])(s);return o.navigateValueSet(e.toString(),t,n,a,u)})},t}(q["a"]),Ot=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function xt(e,t){return new Nt(e,t)}var Nt=function(e){function t(t,n){var i=e.call(this,t,n.label)||this;return i._foreignModuleId=n.moduleId,i._foreignModuleCreateData=n.createData||null,i._foreignModuleHost=n.host||null,i._foreignProxy=null,i}return Ot(t,e),t.prototype.fhr=function(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(n){return Promise.reject(n)}},t.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(t){var n=e._foreignModuleHost?ye["b"](e._foreignModuleHost):[];return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData,n).then(function(n){e._foreignModuleCreateData=null;for(var i=function(e,n){return t.fmr(e,n)},o=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},r={},s=0,a=n;s<a.length;s++){var u=a[s];r[u]=o(u,i)}return r})})),this._foreignProxy},t.prototype.getProxy=function(){return this._getForeignProxy()},t.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then(function(e){return t.getProxy()})},t}(Lt),Dt=n("e1b5"),kt=n("6da2"),It=n("a8d0");function Et(e){return Array.isArray(e)}function Mt(e){return!Et(e)}function Tt(e){return"string"===typeof e}function Pt(e){return!Tt(e)}function Rt(e){return!e}function At(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Ft(e){return e.replace(/[&<>'"_]/g,"-")}function jt(e,t){console.log(e.languageId+": "+t)}function Wt(e,t){return new Error(e.languageId+": "+t)}function Vt(e,t,n,i,o){var r=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,s=null;return t.replace(r,function(t,r,a,u,l,c,d,h,p){return Rt(a)?Rt(u)?!Rt(l)&&l<i.length?At(e,i[l]):!Rt(d)&&e&&"string"===typeof e[d]?e[d]:(null===s&&(s=o.split("."),s.unshift(o)),!Rt(c)&&c<s.length?At(e,s[c]):""):At(e,n):"$"})}function Bt(e,t){var n=t;while(n&&n.length>0){var i=e.tokenizer[n];if(i)return i;var o=n.lastIndexOf(".");n=o<0?null:n.substr(0,o)}return null}function Ht(e,t){var n=t;while(n&&n.length>0){var i=e.stateNames[n];if(i)return!0;var o=n.lastIndexOf(".");n=o<0?null:n.substr(0,o)}return!1}var zt=5,Ut=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Kt(e,t);var n=Kt.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new Kt(e,t),this._entries[n]=i,i)},e._INSTANCE=new e(zt),e}(),Kt=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return e.getStackElementId=function(e){var t="";while(null!==e)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},e._equals=function(e,t){while(null!==e&&null!==t){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t},e.prototype.equals=function(t){return e._equals(this,t)},e.prototype.push=function(e){return Ut.create(this,e)},e.prototype.pop=function(){return this.parent},e.prototype.popall=function(){var e=this;while(e.parent)e=e.parent;return e},e.prototype.switchTo=function(e){return Ut.create(this.parent,e)},e}(),qt=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){var t=this.state.clone();return t===this.state?this:new e(this.modeId,this.state)},e}(),Gt=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==t)return new Zt(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Zt(e,t);var n=Kt.getStackElementId(e),i=this._entries[n];return i||(i=new Zt(e,null),this._entries[n]=i,i)},e._INSTANCE=new e(zt),e}(),Zt=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){var e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:Gt.create(this.stack,this.embeddedModeData)},e.prototype.equals=function(t){return t instanceof e&&(!!this.stack.equals(t.stack)&&(null===this.embeddedModeData&&null===t.embeddedModeData||null!==this.embeddedModeData&&null!==t.embeddedModeData&&this.embeddedModeData.equals(t.embeddedModeData)))},e}(),Yt=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return e.prototype.enterMode=function(e,t){this._language=t},e.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new B["a"](e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=pe["y"].get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize(e,o,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},e.prototype.finalize=function(e){return new B["b"](this._tokens,e)},e}(),Xt=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},e._merge=function(e,t,n){var i=null!==e?e.length:0,o=t.length,r=null!==n?n.length:0;if(0===i&&0===o&&0===r)return new Uint32Array(0);if(0===i&&0===o)return n;if(0===o&&0===r)return e;var s=new Uint32Array(i+o+r);null!==e&&s.set(e);for(var a=0;a<o;a++)s[i+a]=t[a];return null!==n&&s.set(n,i+o),s},e.prototype.nestedModeTokenize=function(t,n,i){var o=n.modeId,r=n.state,s=pe["y"].get(o);if(!s)return this.enterMode(i,o),this.emit(i,""),r;var a=s.tokenize2(t,r,i);return this._prependTokens=e._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState},e.prototype.finalize=function(t){return new B["c"](e._merge(this._prependTokens,this._tokens,null),t)},e}(),$t=function(){function e(e,t,n,i){var o=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var r=!1;this._tokenizationRegistryListener=pe["y"].onDidChange(function(e){if(!r){for(var t=!1,n=0,i=e.changedLanguages.length;n<i;n++){var s=e.changedLanguages[n];if(o._embeddedModes[s]){t=!0;break}}t&&(r=!0,pe["y"].fire([o._modeId]),r=!1)}})}return e.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},e.prototype.getLoadStatus=function(){var t=[];for(var n in this._embeddedModes)if(this._embeddedModes.hasOwnProperty(n)){var i=pe["y"].get(n);if(i){if(i instanceof e){var o=i.getLoadStatus();!1===o.loaded&&t.push(o.promise)}continue}var r=pe["y"].getPromise(n);r&&t.push(r)}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then(function(e){})}},e.prototype.getInitialState=function(){var e=Ut.create(null,this._lexer.start);return Gt.create(e,null)},e.prototype.tokenize=function(e,t,n){var i=new Yt,o=this._tokenize(e,t,n,i);return i.finalize(o)},e.prototype.tokenize2=function(e,t,n){var i=new Xt(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),o=this._tokenize(e,t,n,i);return i.finalize(o)},e.prototype._tokenize=function(e,t,n,i){return t.embeddedModeData?this._nestedTokenize(e,t,n,i):this._myTokenize(e,t,n,i)},e.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=Bt(this._lexer,t.stack.state),!n))throw Wt(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var i=-1,o=!1,r=0,s=n;r<s.length;r++){var a=s[r];if(Pt(a.action)&&"@pop"===a.action.nextEmbedded){o=!0;var u=a.regex,l=a.regex.source;"^(?:"===l.substr(0,4)&&")"===l.substr(l.length-1,1)&&(u=new RegExp(l.substr(4,l.length-5),u.ignoreCase?"i":""));var c=e.search(u);-1!==c&&(-1===i||c<i)&&(i=c)}}if(!o)throw Wt(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i},e.prototype._nestedTokenize=function(e,t,n,i){var o=this._findLeavingNestedModeOffset(e,t);if(-1===o){var r=i.nestedModeTokenize(e,t.embeddedModeData,n);return Gt.create(t.stack,new qt(t.embeddedModeData.modeId,r))}var s=e.substring(0,o);s.length>0&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(o);return this._myTokenize(a,t,n+o,i)},e.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},e.prototype._myTokenize=function(e,t,n,i){i.enterMode(n,this._modeId);var o=e.length,r=t.embeddedModeData,s=t.stack,a=0,u=null,l=!0;while(l||a<o){var c=a,d=s.depth,h=u?u.groups.length:0,p=s.state,f=null,g=null,m=null,v=null,_=null;if(u){f=u.matches;var b=u.groups.shift();g=b.matched,m=b.action,v=u.rule,0===u.groups.length&&(u=null)}else{if(!l&&a>=o)break;l=!1;var y=this._lexer.tokenizer[p];if(!y&&(y=Bt(this._lexer,p),!y))throw Wt(this._lexer,"tokenizer state is not defined: "+p);for(var w=e.substr(a),C=0,S=y;C<S.length;C++){var L=S[C];if((0===a||!L.matchOnlyAtLineStart)&&(f=w.match(L.regex),f)){g=f[0],m=L.action;break}}}if(f||(f=[""],g=""),m||(a<o&&(f=[e.charAt(a)],g=f[0]),m=this._lexer.defaultToken),null===g)break;a+=g.length;while(Mt(m)&&Pt(m)&&m.test)m=m.test(g,f,p,a===o);var O=null;if("string"===typeof m||Array.isArray(m))O=m;else if(m.group)O=m.group;else if(null!==m.token&&void 0!==m.token){if(O=m.tokenSubst?Vt(this._lexer,m.token,g,f,p):m.token,m.nextEmbedded)if("@pop"===m.nextEmbedded){if(!r)throw Wt(this._lexer,"cannot pop embedded mode if not inside one");r=null}else{if(r)throw Wt(this._lexer,"cannot enter embedded mode from within an embedded mode");_=Vt(this._lexer,m.nextEmbedded,g,f,p)}if(m.goBack&&(a=Math.max(0,a-m.goBack)),m.switchTo&&"string"===typeof m.switchTo){var x=Vt(this._lexer,m.switchTo,g,f,p);if("@"===x[0]&&(x=x.substr(1)),!Bt(this._lexer,x))throw Wt(this._lexer,"trying to switch to a state '"+x+"' that is undefined in rule: "+this._safeRuleName(v));s=s.switchTo(x)}else{if(m.transform&&"function"===typeof m.transform)throw Wt(this._lexer,"action.transform not supported");if(m.next)if("@push"===m.next){if(s.depth>=this._lexer.maxStack)throw Wt(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(p)}else if("@pop"===m.next){if(s.depth<=1)throw Wt(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(v));s=s.pop()}else if("@popall"===m.next)s=s.popall();else{x=Vt(this._lexer,m.next,g,f,p);if("@"===x[0]&&(x=x.substr(1)),!Bt(this._lexer,x))throw Wt(this._lexer,"trying to set a next state '"+x+"' that is undefined in rule: "+this._safeRuleName(v));s=s.push(x)}}m.log&&"string"===typeof m.log&&jt(this._lexer,this._lexer.languageId+": "+Vt(this._lexer,m.log,g,f,p))}if(null===O)throw Wt(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(v));if(Array.isArray(O)){if(u&&u.groups.length>0)throw Wt(this._lexer,"groups cannot be nested: "+this._safeRuleName(v));if(f.length!==O.length+1)throw Wt(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(v));for(var N=0,D=1;D<f.length;D++)N+=f[D].length;if(N!==g.length)throw Wt(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(v));u={rule:v,matches:f,groups:[]};for(D=0;D<O.length;D++)u.groups[D]={action:O[D],matched:f[D+1]};a-=g.length}else{if("@rematch"===O&&(a-=g.length,g="",f=null,O=""),0===g.length){if(0===o||d!==s.depth||p!==s.state||(u?u.groups.length:0)!==h)continue;throw Wt(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(v))}var k=null;if(Tt(O)&&0===O.indexOf("@brackets")){var I=O.substr("@brackets".length),E=Qt(this._lexer,g);if(!E)throw Wt(this._lexer,"@brackets token returned but no bracket defined as: "+g);k=Ft(E.token+I)}else{var M=""===O?"":O+this._lexer.tokenPostfix;k=Ft(M)}if(i.emit(c+n,k),null!==_){var T=this._modeService.getModeIdForLanguageName(_);T&&(_=T);var P=this._getNestedEmbeddedModeData(_);if(a<o){w=e.substr(a);return this._nestedTokenize(w,Gt.create(s,P),n+a,i)}return Gt.create(s,P)}}}return Gt.create(s,r)},e.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=pe["y"].get(t);if(n)return new qt(t,n.getInitialState())}return new qt(t||fe["b"],fe["c"])},e.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;var t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},e}();function Qt(e,t){if(!t)return null;t=At(e,t);for(var n=e.brackets,i=0,o=n;i<o.length;i++){var r=o[i];if(r.open===t)return{token:r.token,bracketType:1};if(r.close===t)return{token:r.token,bracketType:-1}}return null}function Jt(e,t,n,i){return new $t(e,t,n,i)}var en=function(){function e(){}return e.colorizeElement=function(e,t,n,i){i=i||{};var o=i.theme||"vs",r=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();e.setTheme(o);var s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+o;var a=function(e){n.innerHTML=e};return this.colorize(t,s||"",r,i).then(a,function(e){return console.error(e)})},e.colorize=function(e,t,n,i){var o=4;i&&"number"===typeof i.tabSize&&(o=i.tabSize),$["L"](t)&&(t=t.substr(1));var r=t.split(/\r\n|\r|\n/),s=e.getModeId(n);if(!s)return Promise.resolve(nn(r,o));e.triggerMode(s);var a=pe["y"].get(s);if(a)return tn(r,o,a);var u=pe["y"].getPromise(s);return u?new Promise(function(e,t){u.then(function(n){tn(r,o,n).then(e,t)},t)}):new Promise(function(e,t){var n=null,i=null,a=function(){n&&(n.dispose(),n=null),i&&(i.dispose(),i=null);var a=pe["y"].get(s);a?tn(r,o,a).then(e,t):e(nn(r,o))};i=new ve["e"],i.cancelAndSet(a,500),n=pe["y"].onDidChange(function(e){e.changedLanguages.indexOf(s)>=0&&a()})})},e.colorizeLine=function(e,t,n,i,o){void 0===o&&(o=4);var r=It["d"].isBasicASCII(e,t),s=It["d"].containsRTL(e,r,n),a=Object(kt["e"])(new kt["c"](!1,!0,e,!1,r,s,0,i,[],o,0,-1,"none",!1,!1,null));return a.html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t),r=o.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,n)},e}();function tn(e,t,n){return new Promise(function(i,o){var r=function(){var s=on(e,t,n);if(n instanceof $t){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(r,o)}i(s)};r()})}function nn(e,t){var n=[],i=16793600,o=new Uint32Array(2);o[0]=0,o[1]=i;for(var r=0,s=e.length;r<s;r++){var a=e[r];o[0]=a.length;var u=new Dt["a"](o,a),l=It["d"].isBasicASCII(a,!0),c=It["d"].containsRTL(a,l,!0),d=Object(kt["e"])(new kt["c"](!1,!0,a,!1,l,c,0,u,[],t,0,-1,"none",!1,!1,null));n=n.concat(d.html),n.push("<br/>")}return n.join("")}function on(e,t,n){for(var i=[],o=n.getInitialState(),r=0,s=e.length;r<s;r++){var a=e[r],u=n.tokenize2(a,o,0);Dt["a"].convertToEndOffset(u.tokens,a.length);var l=new Dt["a"](u.tokens,a),c=It["d"].isBasicASCII(a,!0),d=It["d"].containsRTL(a,c,!0),h=Object(kt["e"])(new kt["c"](!1,!0,a,!1,c,d,0,l.inflate(),[],t,0,-1,"none",!1,!1,null));i=i.concat(h.html),i.push("<br/>"),o=u.endState}return i.join("")}var rn=n("b835"),sn=n("4b76"),an=n("b055"),un=n("8830"),ln=n("d3f49"),cn=n("fbba"),dn=n("4035"),hn=n("0910"),pn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),fn=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}return Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},e.prototype.getValue=function(e){return e?Object(cn["d"])(this.contents,e):this.contents},e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!==typeof n||!Object.keys(n).length)return this;for(var i={},o=0,r=Me["e"](Object.keys(this.contents).concat(Object.keys(n)));o<r.length;o++){var s=r[o],a=this.contents[s],u=n[s];u&&("object"===typeof a&&"object"===typeof u?(a=se["c"](a),this.mergeContents(a,u)):a=u),i[s]=a}return new e(i)},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=se["c"](this.contents),o=se["c"](this.overrides),r=this.keys.slice(),s=0,a=t;s<a.length;s++){var u=a[s];this.mergeContents(i,u.contents);for(var l=function(e){var t=o.filter(function(t){return Me["g"](t.identifiers,e.identifiers)})[0];t?c.mergeContents(t.contents,e.contents):o.push(se["c"](e))},c=this,d=0,h=u.overrides;d<h.length;d++){var p=h[d];l(p)}for(var f=0,g=u.keys;f<g.length;f++){var m=g[f];-1===r.indexOf(m)&&r.push(m)}}return new e(i,r,o)},e.prototype.freeze=function(){return this.isFrozen=!0,this},e.prototype.mergeContents=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];o in e&&ye["h"](e[o])&&ye["h"](t[o])?this.mergeContents(e[o],t[o]):e[o]=se["c"](t[o])}},e.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?se["d"](e):e},e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t<n.length;t++){var i=n[t];if(-1!==i.identifiers.indexOf(e))return i.contents}return null},e.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},e.prototype.setValue=function(e,t){this.addKey(e),Object(cn["b"])(this.contents,e,t,function(e){throw new Error(e)})},e.prototype.removeValue=function(e){this.removeKey(e)&&Object(cn["h"])(this.contents,e)},e.prototype.addKey=function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)},e.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},e}(),gn=function(e){function t(){for(var t=this,n=Object(cn["e"])(),i=Object(cn["c"])(),o=[],r=0,s=Object.keys(n);r<s.length;r++){var a=s[r];hn["b"].test(a)&&o.push({identifiers:[Object(cn["g"])(a).trim()],contents:Object(cn["i"])(n[a],function(e){return console.error("Conflict in default settings file: "+e)})})}return t=e.call(this,n,i,o)||this,t}return pn(t,e),t}(fn),mn=function(){function e(e,t,n,i,o,r,s,a){void 0===n&&(n=new fn),void 0===i&&(i=new fn),void 0===o&&(o=new dn["b"]),void 0===r&&(r=new fn),void 0===s&&(s=new dn["b"]),void 0===a&&(a=!0),this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=i,this._folderConfigurations=o,this._memoryConfiguration=r,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new dn["b"]}return e.prototype.getValue=function(e,t,n){var i=this.getConsolidateConfigurationModel(t,n);return i.getValue(e)},e.prototype.updateValue=function(e,t,n){var i;void 0===n&&(n={}),n.resource?(i=this._memoryConfigurationByResource.get(n.resource),i||(i=new fn,this._memoryConfigurationByResource.set(n.resource,i))):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},e.prototype.inspect=function(e,t,n){var i=this.getConsolidateConfigurationModel(t,n),o=this.getFolderConfigurationModelForResource(t.resource,n),r=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration;return{default:t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),user:t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),userLocal:t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),userRemote:t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),workspace:n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,workspaceFolder:o?t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e):void 0,memory:t.overrideIdentifier?r.override(t.overrideIdentifier).getValue(e):r.getValue(e),value:i.getValue(e)}},Object.defineProperty(e.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),e.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},e.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,i=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var o=t.getFolder(n);o&&(i=this.getFolderConsolidatedConfiguration(o.uri)||i);var r=this._memoryConfigurationByResource.get(n);r&&(i=i.merge(r))}return i},e.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},e.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return ye["n"](this._folderConfigurations.get(n.uri))}return null},e}(),vn=n("dff7"),_n=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bn=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._contextKeyService=t,r._commandService=n,r._telemetryService=i,r._notificationService=o,r._onDidUpdateKeybindings=r._register(new R["a"]),r._currentChord=null,r._currentChordChecker=new ve["c"],r._currentChordStatusMessage=null,r}return _n(t,e),Object.defineProperty(t.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:R["b"].None},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding},t.prototype.softDispatch=function(e,t){var n=this.resolveKeyboardEvent(e);if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var i=n.getDispatchParts()[0];if(null===i)return null;var o=this._contextKeyService.getContext(t),r=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(o,r,i)},t.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(vn["a"]("first.chord","({0}) was pressed. Waiting for second key of chord...",t));var i=Date.now();this._currentChordChecker.cancelAndSet(function(){n._documentHasFocus()?Date.now()-i>5e3&&n._leaveChordMode():n._leaveChordMode()},500)},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},t.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},t.prototype._doDispatch=function(e,t){var n=this,i=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var o=e.getDispatchParts()[0];if(null===o)return i;var r=this._contextKeyService.getContext(t),s=this._currentChord?this._currentChord.keypress:null,a=e.getLabel(),u=this._getResolver().resolve(r,s,o);return u&&u.enterChord?(i=!0,this._enterChordMode(o,a),i):(this._currentChord&&(u&&u.commandId||(this._notificationService.status(vn["a"]("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),{hideAfter:1e4}),i=!0)),this._leaveChordMode(),u&&u.commandId&&(u.bubble||(i=!0),"undefined"===typeof u.commandArgs?this._commandService.executeCommand(u.commandId).then(void 0,function(e){return n._notificationService.warn(e)}):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,function(e){return n._notificationService.warn(e)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:u.commandId,from:"keybinding"})),i)},t.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)},t}(q["a"]),yn=n("4fc3"),wn=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var i=0,o=t.length;i<o;i++){var r=t[i].command;r&&this._defaultBoundCommands.set(r,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.combine(t,n);for(i=0,o=this._keybindings.length;i<o;i++){var s=this._keybindings[i];0!==s.keypressParts.length&&this._addKeyPress(s.keypressParts[0],s)}}return e._isTargetedForRemoval=function(e,t,n,i,o){if(e.command!==i)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(o){if(!e.when)return!1;if(!o.equals(e.when))return!1}return!0},e.combine=function(e,t){e=e.slice(0);for(var n=[],i=0,o=t;i<o.length;i++){var r=o[i];if(r.command&&0!==r.command.length&&"-"===r.command.charAt(0))for(var s=r.command.substr(1),a=r.keypressParts[0],u=r.keypressParts[1],l=r.when,c=e.length-1;c>=0;c--)this._isTargetedForRemoval(e[c],a,u,s,l)&&e.splice(c,1);else n.push(r)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var i=this._map.get(t);if("undefined"===typeof i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var o=i.length-1;o>=0;o--){var r=i[o];if(r.command!==n.command){var s=r.keypressParts.length>1,a=n.keypressParts.length>1;s&&a&&r.keypressParts[1]!==n.keypressParts[1]||e.whenIsEntirelyIncluded(r.when,n.when)&&this._removeFromLookupMap(r)}}i.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},e.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1)}},e.whenIsEntirelyIncluded=function(e,t){return!t||!!e&&this._implies(e,t)},e._implies=function(e,t){for(var n=e.negate(),i=function(e){return e instanceof yn["b"]?e.expr:[e]},o=i(n).concat(i(t)),r=0;r<o.length;r++)for(var s=o[r],a=s.negate(),u=r+1;u<o.length;u++){var l=o[u];if(a.equals(l))return!0}return!1},e.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return"undefined"===typeof t||0===t.length?null:t[t.length-1]},e.prototype.resolve=function(e,t,n){var i=null;if(null!==t){var o=this._map.get(t);if("undefined"===typeof o)return null;i=[];for(var r=0,s=o.length;r<s;r++){var a=o[r];a.keypressParts[1]===n&&i.push(a)}}else{o=this._map.get(n);if("undefined"===typeof o)return null;i=o}var u=this._findCommand(e,i);return u?null===t&&u.keypressParts.length>1&&null!==u.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null},e.prototype._findCommand=function(t,n){for(var i=n.length-1;i>=0;i--){var o=n[i];if(e.contextMatchesRules(t,o.when))return o}return null},e.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},e}(),Cn=n("9eb8"),Sn=function(){function e(e,t,n,i,o){this.resolvedKeybinding=e,this.keypressParts=e?Ln(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=o}return e}();function Ln(e){for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!o)return t;t.push(o)}return t}var On=n("8b4e"),xn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Nn=function(e){function t(t,n){var i=e.call(this)||this;if(0===n.length)throw Object(_e["b"])("parts");return i._os=t,i._parts=n,i}return xn(t,e),t.prototype.getLabel=function(){var e=this;return On["b"].toLabel(this._os,this._parts,function(t){return e._getLabel(t)})},t.prototype.getAriaLabel=function(){var e=this;return On["a"].toLabel(this._os,this._parts,function(t){return e._getAriaLabel(t)})},t.prototype.isChord=function(){return this._parts.length>1},t.prototype.getParts=function(){var e=this;return this._parts.map(function(t){return e._getPart(t)})},t.prototype._getPart=function(e){return new A["d"](e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},t.prototype.getDispatchParts=function(){var e=this;return this._parts.map(function(t){return e._getDispatchPart(t)})},t}(A["c"]),Dn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kn=function(e){function t(t,n){return e.call(this,n,t.parts)||this}return Dn(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return A["b"].toString(e)},t.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},t.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":A["b"].toString(e.keyCode)},t.prototype._getDispatchPart=function(e){return t.getDispatchStr(e)},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=A["b"].toString(e.keyCode),t},t}(Nn),In=n("b0cd"),En=n("1165"),Mn=n("03d9"),Tn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pn=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Rn=function(e,t){return function(n,i){t(n,i,e)}},An=function(){function e(e){this.model=e,this._onDispose=new R["a"]}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}();function Fn(e,t,n){return Object(an["a"])(e)?t(e):n(e)}var jn=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=e},e.prototype.createModelReference=function(e){var t=this,n=null;return this.editor&&(n=Fn(this.editor,function(n){return t.findModel(n,e)},function(n){return t.findModel(n.getOriginalEditor(),e)||t.findModel(n.getModifiedEditor(),e)})),n?Promise.resolve(new q["c"](new An(n))):Promise.reject(new Error("Model not found"))},e.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},e}(),Wn=function(){function e(){}return e.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},e}(),Vn=function(){function e(){}return e}(),Bn=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:sn["a"].Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:sn["a"].Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:sn["a"].Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case sn["a"].Error:console.error(t.message);break;case sn["a"].Warning:console.warn(t.message);break;default:console.log(t.message);break}return e.NO_OP},e.prototype.status=function(e,t){return q["a"].None},e.NO_OP=new In["b"],e}(),Hn=function(){function e(e){this._onWillExecuteCommand=new R["a"],this._onDidExecuteCommand=new R["a"],this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,Object(q["h"])(function(){delete t._dynamicCommands[n]})},e.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Q["a"].getCommand(e)||this._dynamicCommands[e];if(!i)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e,args:t});var o=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler].concat(t));return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(o)}catch(r){return Promise.reject(r)}},e}(),zn=function(e){function t(t,n,i,o,r){var s=e.call(this,t,n,i,o)||this;return s._cachedResolver=null,s._dynamicKeybindings=[],s._register(K["h"](r,K["d"].KEY_DOWN,function(e){var t=new rn["a"](e),n=s._dispatch(t,t.target);n&&t.preventDefault()})),s}return Tn(t,e),t.prototype.addDynamicKeybinding=function(e,t,n,i){var o=this,r=Object(A["f"])(t,be["a"]);if(!r)throw new Error("Invalid keybinding");var s=new q["b"];this._dynamicKeybindings.push({keybinding:r,command:e,when:i,weight1:1e3,weight2:0}),s.add(Object(q["h"])(function(){for(var t=0;t<o._dynamicKeybindings.length;t++){var n=o._dynamicKeybindings[t];if(n.command===e)return o._dynamicKeybindings.splice(t,1),void o.updateResolver({source:1})}}));var a=this._commandService;if(!(a instanceof Hn))throw new Error("Unknown command service!");return s.add(a.addCommand({id:e,handler:n})),this.updateResolver({source:1}),s},t.prototype.updateResolver=function(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)},t.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(Cn["a"].getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new wn(e,t)}return this._cachedResolver},t.prototype._documentHasFocus=function(){return document.hasFocus()},t.prototype._toNormalizedKeybindingItems=function(e,t){for(var n=[],i=0,o=0,r=e;o<r.length;o++){var s=r[o],a=s.when||void 0,u=s.keybinding;if(u)for(var l=this.resolveKeybinding(u),c=0,d=l;c<d.length;c++){var h=d[c];n[i++]=new Sn(h,s.command,s.commandArgs,a,t)}else n[i++]=new Sn(void 0,s.command,s.commandArgs,a,t)}return n},t.prototype.resolveKeybinding=function(e){return[new kn(e,be["a"])]},t.prototype.resolveKeyboardEvent=function(e){var t=new A["e"](e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new kn(t,be["a"])},t}(bn);function Un(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof F["a"])}var Kn=function(){function e(){this._onDidChangeConfiguration=new R["a"],this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new mn(new gn,new fn)}return e.prototype.configuration=function(){return this._configuration},e.prototype.getValue=function(e,t){var n="string"===typeof e?e:void 0,i=Un(e)?e:Un(t)?t:{};return this.configuration().getValue(n,i,void 0)},e.prototype.updateValue=function(e,t,n,i){return this.configuration().updateValue(e,t),Promise.resolve()},e.prototype.inspect=function(e,t){return void 0===t&&(t={}),this.configuration().inspect(e,t,void 0)},e}(),qn=function(){function e(e){var t=this;this.configurationService=e,this._onDidChangeConfiguration=new R["a"],this.configurationService.onDidChangeConfiguration(function(e){t._onDidChangeConfiguration.fire(e)})}return e.prototype.getValue=function(e,t,n){var i=j["a"].isIPosition(t)?t:null,o=i?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof o?this.configurationService.getValue():this.configurationService.getValue(o)},e}(),Gn=function(){function e(e){this.configurationService=e}return e.prototype.getEOL=function(e){var t=this.configurationService.getValue("files");return t&&t.eol&&"auto"!==t.eol?t.eol:be["c"]||be["d"]?"\n":"\r\n"},e=Pn([Rn(0,cn["a"])],e),e}(),Zn=function(){function e(){this._serviceBrand=void 0}return e.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},e.prototype.publicLog2=function(e,t){return this.publicLog(e,t)},e}(),Yn=function(){function e(){var t=F["a"].from({scheme:e.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new En["b"]({uri:t,name:"",index:0})]}}return e.prototype.getWorkspace=function(){return this.workspace},e.prototype.getWorkspaceFolder=function(t){return t&&t.scheme===e.SCHEME?this.workspace.folders[0]:null},e.SCHEME="inmemory",e}();function Xn(e,t,n){t&&e instanceof Kn&&Object.keys(t).forEach(function(i){Object(un["d"])(i)&&e.updateValue("editor."+i,t[i]),n&&Object(un["c"])(i)&&e.updateValue("diffEditor."+i,t[i])})}var $n=function(){function e(e){this._modelService=e}return e.prototype.apply=function(e,t){var n=new Map;if(e.edits)for(var i=0,o=e.edits;i<o.length;i++){var r=o[i];if(!Object(pe["D"])(r))return Promise.reject(new Error("bad edit - only text edits are supported"));var s=this._modelService.getModel(r.resource);if(!s)return Promise.reject(new Error("bad edit - model not found"));var a=n.get(s);a||(a=[]),n.set(s,a.concat(r.edits))}var u=0,l=0;return n.forEach(function(e,t){t.applyEdits(e.map(function(e){return ln["a"].replaceMove(W["a"].lift(e.range),e.text)})),l+=1,u+=e.length}),Promise.resolve({selection:void 0,ariaSummary:$["r"](Mn["f"].bulkEditServiceSummary,u,l)})},e}(),Qn=function(){function e(){}return e.prototype.getUriLabel=function(e,t){return"file"===e.scheme?e.fsPath:e.path},e}(),Jn=function(){function e(e){this._container=e,this.onLayout=R["b"].None}return Object.defineProperty(e.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),e}(),ei=n("0f70"),ti=n("3813"),ni=n("9c1d"),ii=(n("94a7"),n("6653")),oi=n("70c3"),ri=n("1ddc"),si=n("bc04"),ai=(n("0d30"),n("5aa5")),ui=n("1898"),li=n("f070"),ci=n("b2cc"),di=n("918c"),hi=n("303e"),pi=n("b7d0"),fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gi=3,mi=function(){function e(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i}return e.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},e}(),vi=function(){function e(e){this.entries=e}return e}(),_i=function(e){function t(t){var n=e.call(this)||this;return n._width=0,n._diffEditor=t,n._isVisible=!1,n.shadow=Object(ii["b"])(document.createElement("div")),n.shadow.setClassName("diff-review-shadow"),n.actionBarContainer=Object(ii["b"])(document.createElement("div")),n.actionBarContainer.setClassName("diff-review-actions"),n._actionBar=n._register(new ai["a"](n.actionBarContainer.domNode)),n._actionBar.push(new li["a"]("diffreview.close",vn["a"]("label.close","Close"),"close-diff-review",!0,function(){return n.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),n.domNode=Object(ii["b"])(document.createElement("div")),n.domNode.setClassName("diff-review monaco-editor-background"),n._content=Object(ii["b"])(document.createElement("div")),n._content.setClassName("diff-review-content"),n.scrollbar=n._register(new ui["a"](n._content.domNode,{})),n.domNode.domNode.appendChild(n.scrollbar.getDomNode()),n._register(t.onDidUpdateDiff(function(){n._isVisible&&(n._diffs=n._compute(),n._render())})),n._register(t.getModifiedEditor().onDidChangeCursorPosition(function(){n._isVisible&&n._render()})),n._register(t.getOriginalEditor().onDidFocusEditorWidget(function(){n._isVisible&&n.hide()})),n._register(t.getModifiedEditor().onDidFocusEditorWidget(function(){n._isVisible&&n.hide()})),n._register(K["k"](n.domNode.domNode,"click",function(e){e.preventDefault();var t=K["t"](e.target,"diff-review-row");t&&n._goToRow(t)})),n._register(K["k"](n.domNode.domNode,"keydown",function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),n._goToRow(n._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),n._goToRow(n._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),n.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),n.accept())})),n._diffs=[],n._currentDiff=null,n}return fi(t,e),t.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new j["a"](this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},t.prototype.next=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new j["a"](this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},t.prototype.accept=function(){var e=-1,t=this._getCurrentFocusedRow();if(t){var n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new j["a"](e,1)),this._diffEditor.revealPosition(new j["a"](e,1),1))},t.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},t.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()},t.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()},t.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},t.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null},t.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()},t.prototype.isVisible=function(){return this._isVisible},t.prototype.layout=function(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},t.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var n=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel();return n&&i?t._mergeAdjacent(e,n.getLineCount(),i.getLineCount()):[]},t._mergeAdjacent=function(e,t,n){if(!e||0===e.length)return[];for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],u=a.originalStartLineNumber,l=a.originalEndLineNumber,c=a.modifiedStartLineNumber,d=a.modifiedEndLineNumber,h=[],p=0,f=0===l?u:u-1,g=0===d?c:c-1,m=1,v=1;if(r>0){var _=e[r-1];m=0===_.originalEndLineNumber?_.originalStartLineNumber+1:_.originalEndLineNumber+1,v=0===_.modifiedEndLineNumber?_.modifiedStartLineNumber+1:_.modifiedEndLineNumber+1}var b=f-gi+1,y=g-gi+1;if(b<m){var w=m-b;b+=w,y+=w}if(y<v){w=v-y;b+=w,y+=w}h[p++]=new mi(b,f,y,g),0!==l&&(h[p++]=new mi(u,l,0,0)),0!==d&&(h[p++]=new mi(0,0,c,d));var C=0===l?u+1:l+1,S=0===d?c+1:d+1,L=t,O=n;if(r+1<s){var x=e[r+1];L=0===x.originalEndLineNumber?x.originalStartLineNumber:x.originalStartLineNumber-1,O=0===x.modifiedEndLineNumber?x.modifiedStartLineNumber:x.modifiedStartLineNumber-1}var N=C+gi-1,D=S+gi-1;if(N>L){w=L-N;N+=w,D+=w}if(D>O){w=O-D;N+=w,D+=w}h[p++]=new mi(C,N,S,D),i[o++]=new vi(h)}var k=i[0].entries,I=[],E=0;for(r=1,s=i.length;r<s;r++){var M=i[r].entries,T=k[k.length-1],P=M[0];0===T.getType()&&0===P.getType()&&P.originalLineStart<=T.originalLineEnd?(k[k.length-1]=new mi(T.originalLineStart,P.originalLineEnd,T.modifiedLineStart,P.modifiedLineEnd),k=k.concat(M.slice(1))):(I[E++]=new vi(k),k=M)}return I[E++]=new vi(k),I},t.prototype._findDiffIndex=function(e){for(var t=e.lineNumber,n=0,i=this._diffs.length;n<i;n++){var o=this._diffs[n].entries,r=o[o.length-1].modifiedLineEnd;if(t<=r)return n}return 0},t.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getConfiguration(),n=this._diffEditor.getModifiedEditor().getConfiguration(),i=this._diffEditor.getOriginalEditor().getModel(),o=this._diffEditor.getModifiedEditor().getModel(),r=i.getOptions(),s=o.getOptions();if(!this._isVisible||!i||!o)return K["p"](this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var a=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[a]!==this._currentDiff){this._currentDiff=this._diffs[a];var u=this._diffs[a].entries,l=document.createElement("div");l.className="diff-review-table",l.setAttribute("role","list"),ri["a"].applyFontInfoSlow(l,n.fontInfo);for(var c=0,d=0,h=0,p=0,f=0,g=u.length;f<g;f++){var m=u[f],v=m.originalLineStart,_=m.originalLineEnd,b=m.modifiedLineStart,y=m.modifiedLineEnd;0!==v&&(0===c||v<c)&&(c=v),0!==_&&(0===d||_>d)&&(d=_),0!==b&&(0===h||b<h)&&(h=b),0!==y&&(0===p||y>p)&&(p=y)}var w=document.createElement("div");w.className="diff-review-row";var C=document.createElement("div");C.className="diff-review-cell diff-review-summary";var S=d-c+1,L=p-h+1;C.appendChild(document.createTextNode(a+1+"/"+this._diffs.length+": @@ -"+c+","+S+" +"+h+","+L+" @@")),w.setAttribute("data-line",String(h));var O=function(e){return 0===e?vn["a"]("no_lines","no lines"):1===e?vn["a"]("one_line","1 line"):vn["a"]("more_lines","{0} lines",e)},x=O(S),N=O(L);w.setAttribute("aria-label",vn["a"]({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",a+1,this._diffs.length,c,x,h,N)),w.appendChild(C),w.setAttribute("role","listitem"),l.appendChild(w);var D=h;for(f=0,g=u.length;f<g;f++){m=u[f];t._renderSection(l,m,D,this._width,e,i,r,n,o,s),0!==m.modifiedLineStart&&(D=m.modifiedLineEnd)}K["p"](this._content.domNode),this._content.domNode.appendChild(l),this.scrollbar.scanDomNode()}},t._renderSection=function(e,t,n,i,o,r,s,a,u,l){var c=t.getType(),d="diff-review-row",h="",p="diff-review-spacer";switch(c){case 1:d="diff-review-row line-insert",h=" char-insert",p="diff-review-spacer insert-sign";break;case 2:d="diff-review-row line-delete",h=" char-delete",p="diff-review-spacer delete-sign";break}for(var f=t.originalLineStart,g=t.originalLineEnd,m=t.modifiedLineStart,v=t.modifiedLineEnd,_=Math.max(v-m,g-f),b=o.layoutInfo.glyphMarginWidth+o.layoutInfo.lineNumbersWidth,y=10+a.layoutInfo.glyphMarginWidth+a.layoutInfo.lineNumbersWidth,w=0;w<=_;w++){var C=0===f?0:f+w,S=0===m?0:m+w,L=document.createElement("div");L.style.minWidth=i+"px",L.className=d,L.setAttribute("role","listitem"),0!==S&&(n=S),L.setAttribute("data-line",String(n));var O=document.createElement("div");O.className="diff-review-cell",L.appendChild(O);var x=document.createElement("span");x.style.width=b+"px",x.style.minWidth=b+"px",x.className="diff-review-line-number"+h,0!==C?x.appendChild(document.createTextNode(String(C))):x.innerHTML=" ",O.appendChild(x);var N=document.createElement("span");N.style.width=y+"px",N.style.minWidth=y+"px",N.style.paddingRight="10px",N.className="diff-review-line-number"+h,0!==S?N.appendChild(document.createTextNode(String(S))):N.innerHTML=" ",O.appendChild(N);var D=document.createElement("span");D.className=p,D.innerHTML=" ",O.appendChild(D);var k=void 0;0!==S?(O.insertAdjacentHTML("beforeend",this._renderLine(u,a,l.tabSize,S)),k=u.getLineContent(S)):(O.insertAdjacentHTML("beforeend",this._renderLine(r,o,s.tabSize,C)),k=r.getLineContent(C)),0===k.length&&(k=vn["a"]("blankLine","blank"));var I="";switch(c){case 0:I=vn["a"]("equalLine","original {0}, modified {1}: {2}",C,S,k);break;case 1:I=vn["a"]("insertLine","+ modified {0}: {1}",S,k);break;case 2:I=vn["a"]("deleteLine","- original {0}: {1}",C,k);break}L.setAttribute("aria-label",I),e.appendChild(L)}},t._renderLine=function(e,t,n,i){var o=e.getLineContent(i),r=16793600,s=new Uint32Array(2);s[0]=o.length,s[1]=r;var a=new Dt["a"](s,o),u=It["d"].isBasicASCII(o,e.mightContainNonBasicASCII()),l=It["d"].containsRTL(o,u,e.mightContainRTL()),c=Object(kt["e"])(new kt["c"](t.fontInfo.isMonospace&&!t.viewInfo.disableMonospaceOptimizations,t.fontInfo.canUseHalfwidthRightwardsArrow,o,!1,u,l,0,a,[],n,t.fontInfo.spaceWidth,t.viewInfo.stopRenderingLineAfter,t.viewInfo.renderWhitespace,t.viewInfo.renderControlCharacters,t.viewInfo.fontLigatures,null));return c.html},t}(q["a"]);Object(pi["f"])(function(e,t){var n=e.getColor(di["k"]);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var i=e.getColor(hi["Lb"]);i&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+i+" 0 -6px 6px -6px inset; }")});var bi=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.next",label:vn["a"]("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:yn["a"].has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return fi(t,e),t.prototype.run=function(e,t){var n=wi(e);n&&n.diffReviewNext()},t}(ci["b"]),yi=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.prev",label:vn["a"]("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:yn["a"].has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}return fi(t,e),t.prototype.run=function(e,t){var n=wi(e);n&&n.diffReviewPrev()},t}(ci["b"]);function wi(e){for(var t=e.get(U["a"]),n=t.listDiffEditors(),i=0,o=n.length;i<o;i++){var r=n[i];if(r.hasWidgetFocus())return r}return null}Object(ci["f"])(bi),Object(ci["f"])(yi);var Ci=n("7ab3"),Si=n("b57f"),Li=n("32f2"),Oi=n("7416"),xi=n("f07b"),Ni=n("533b"),Di=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ki=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},Ii=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},Ei=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;a._viewZoneId=t,a._marginDomNode=n,a.editor=i,a.diff=o,a._contextMenuService=r,a._clipboardService=s,a._visibility=!1,a._marginDomNode.style.zIndex="10",a._diffActions=document.createElement("div"),a._diffActions.className="lightbulb-glyph",a._diffActions.style.position="absolute";var u=i.getConfiguration().lineHeight,l=i.getModel().getEOL();a._diffActions.style.right="0px",a._diffActions.style.visibility="hidden",a._diffActions.style.height=u+"px",a._diffActions.style.lineHeight=u+"px",a._marginDomNode.appendChild(a._diffActions);var c=[];c.push(new li["a"]("diff.clipboard.copyDeletedContent",o.originalEndLineNumber>o.modifiedStartLineNumber?vn["a"]("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):vn["a"]("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return ki(a,void 0,void 0,function(){return Ii(this,function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(o.originalContent.join(l)+l)];case 1:return e.sent(),[2]}})})}));var d=0,h=void 0;o.originalEndLineNumber>o.modifiedStartLineNumber&&(h=new li["a"]("diff.clipboard.copyDeletedLineContent",vn["a"]("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.originalStartLineNumber),void 0,!0,function(){return ki(a,void 0,void 0,function(){return Ii(this,function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(o.originalContent[d])];case 1:return e.sent(),[2]}})})}),c.push(h));var p=i.getConfiguration().readOnly;return p||c.push(new li["a"]("diff.inline.revertChange",vn["a"]("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return ki(a,void 0,void 0,function(){var e;return Ii(this,function(t){return 0===o.modifiedEndLineNumber?(e=i.getModel().getLineMaxColumn(o.modifiedStartLineNumber),i.executeEdits("diffEditor",[{range:new W["a"](o.modifiedStartLineNumber,e,o.modifiedStartLineNumber,e),text:l+o.originalContent.join(l)}])):(e=i.getModel().getLineMaxColumn(o.modifiedEndLineNumber),i.executeEdits("diffEditor",[{range:new W["a"](o.modifiedStartLineNumber,1,o.modifiedEndLineNumber,e),text:o.originalContent.join(l)}])),[2]})})})),a._register(K["k"](a._diffActions,"mousedown",function(e){var t=K["x"](a._diffActions),n=t.top,i=t.height,r=Math.floor(u/3);e.preventDefault(),a._contextMenuService.showContextMenu({getAnchor:function(){return{x:e.posx,y:n+i+r}},getActions:function(){return h&&(h.label=vn["a"]("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.originalStartLineNumber+d)),c},autoSelectFirstItem:!0})})),a._register(i.onMouseMove(function(e){if(8===e.target.type||5===e.target.type){var t=e.target.detail.viewZoneId;t===a._viewZoneId?(a.visibility=!0,d=a._updateLightBulbPosition(a._marginDomNode,e.event.browserEvent.y,u)):a.visibility=!1}else a.visibility=!1})),a}return Di(t,e),Object.defineProperty(t.prototype,"visibility",{get:function(){return this._visibility},set:function(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")},enumerable:!0,configurable:!0}),t.prototype._updateLightBulbPosition=function(e,t,n){var i=K["x"](e).top,o=t-i,r=Math.floor(o/n),s=r*n;return this._diffActions.style.top=s+"px",r},t}(q["a"]),Mi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ti=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Pi=function(e,t){return function(n,i){t(n,i,e)}},Ri=function(){function e(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return e.prototype.getForeignViewZones=function(e){var t=this;return e.filter(function(e){return!t._zonesMap[String(e.id)]})},e.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones(function(e){for(var n=0,i=t._zones.length;n<i;n++)e.removeZone(t._zones[n])}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])},e.prototype.apply=function(e,t,n,i){var o=this,r=i?si["c"].capture(e):null;e.changeViewZones(function(t){for(var i=0,r=o._zones.length;i<r;i++)t.removeZone(o._zones[i]);i=0;for(var s=o.inlineDiffMargins.length;i<s;i++)o.inlineDiffMargins[i].dispose();o._zones=[],o._zonesMap={},o.inlineDiffMargins=[];i=0;for(var a=n.zones.length;i<a;i++){var u=n.zones[i];u.suppressMouseDown=!1;var l=t.addZone(u);o._zones.push(l),o._zonesMap[String(l)]=!0,n.zones[i].diff&&u.marginDomNode&&o._clipboardService&&o.inlineDiffMargins.push(new Ei(l,u.marginDomNode,e,n.zones[i].diff,o._contextMenuService,o._clipboardService))}}),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)},e}(),Ai=0,Fi=function(e){function t(n,i,o,r,s,a,u,l,c,d){var h=e.call(this)||this;h._onDidDispose=h._register(new R["a"]),h.onDidDispose=h._onDidDispose.event,h._onDidUpdateDiff=h._register(new R["a"]),h.onDidUpdateDiff=h._onDidUpdateDiff.event,h._lastOriginalWarning=null,h._lastModifiedWarning=null,h._editorWorkerService=r,h._codeEditorService=u,h._contextKeyService=h._register(s.createScoped(n)),h._contextKeyService.createKey("isInDiffEditor",!0),h._themeService=l,h._notificationService=c,h.id=++Ai,h._domElement=n,i=i||{},h._renderSideBySide=!0,"undefined"!==typeof i.renderSideBySide&&(h._renderSideBySide=i.renderSideBySide),h._ignoreTrimWhitespace=!0,"undefined"!==typeof i.ignoreTrimWhitespace&&(h._ignoreTrimWhitespace=i.ignoreTrimWhitespace),h._renderIndicators=!0,"undefined"!==typeof i.renderIndicators&&(h._renderIndicators=i.renderIndicators),h._originalIsEditable=!1,"undefined"!==typeof i.originalEditable&&(h._originalIsEditable=Boolean(i.originalEditable)),h._updateDecorationsRunner=h._register(new ve["d"](function(){return h._updateDecorations()},0)),h._containerDomElement=document.createElement("div"),h._containerDomElement.className=t._getClassName(h._themeService.getTheme(),h._renderSideBySide),h._containerDomElement.style.position="relative",h._containerDomElement.style.height="100%",h._domElement.appendChild(h._containerDomElement),h._overviewViewportDomElement=Object(ii["b"])(document.createElement("div")),h._overviewViewportDomElement.setClassName("diffViewport"),h._overviewViewportDomElement.setPosition("absolute"),h._overviewDomElement=document.createElement("div"),h._overviewDomElement.className="diffOverview",h._overviewDomElement.style.position="absolute",h._overviewDomElement.appendChild(h._overviewViewportDomElement.domNode),h._register(K["k"](h._overviewDomElement,"mousedown",function(e){h.modifiedEditor.delegateVerticalScrollbarMouseDown(e)})),h._containerDomElement.appendChild(h._overviewDomElement),h._originalDomNode=document.createElement("div"),h._originalDomNode.className="editor original",h._originalDomNode.style.position="absolute",h._originalDomNode.style.height="100%",h._containerDomElement.appendChild(h._originalDomNode),h._modifiedDomNode=document.createElement("div"),h._modifiedDomNode.className="editor modified",h._modifiedDomNode.style.position="absolute",h._modifiedDomNode.style.height="100%",h._containerDomElement.appendChild(h._modifiedDomNode),h._beginUpdateDecorationsTimeout=-1,h._currentlyChangingViewZones=!1,h._diffComputationToken=0,h._originalEditorState=new Ri(d,o),h._modifiedEditorState=new Ri(d,o),h._isVisible=!0,h._isHandlingScrollEvent=!1,h._width=0,h._height=0,h._reviewHeight=0,h._diffComputationResult=null;var p=h._contextKeyService.createScoped();p.createKey("isInDiffLeftEditor",!0);var f=new xi["a"];f.set(yn["c"],p);var g=a.createChild(f),m=h._contextKeyService.createScoped();m.createKey("isInDiffRightEditor",!0);var v=new xi["a"];v.set(yn["c"],m);var _=a.createChild(v);return h.originalEditor=h._createLeftHandSideEditor(i,g),h.modifiedEditor=h._createRightHandSideEditor(i,_),h._originalOverviewRuler=null,h._modifiedOverviewRuler=null,h._reviewPane=new _i(h),h._containerDomElement.appendChild(h._reviewPane.domNode.domNode),h._containerDomElement.appendChild(h._reviewPane.shadow.domNode),h._containerDomElement.appendChild(h._reviewPane.actionBarContainer.domNode),i.automaticLayout?(h._measureDomElementToken=new ve["c"],h._measureDomElementToken.cancelAndSet(function(){return h._measureDomElement(!1)},100)):h._measureDomElementToken=null,h._enableSplitViewResizing=!0,"undefined"!==typeof i.enableSplitViewResizing&&(h._enableSplitViewResizing=i.enableSplitViewResizing),h._renderSideBySide?h._setStrategy(new zi(h._createDataSource(),h._enableSplitViewResizing)):h._setStrategy(new Ki(h._createDataSource(),h._enableSplitViewResizing)),h._register(l.onThemeChange(function(e){h._strategy&&h._strategy.applyColors(e)&&h._updateDecorationsRunner.schedule(),h._containerDomElement.className=t._getClassName(h._themeService.getTheme(),h._renderSideBySide)})),h._codeEditorService.addDiffEditor(h),h}return Mi(t,e),t.prototype.hasWidgetFocus=function(){return K["E"](document.activeElement,this._domElement)},t.prototype.diffReviewNext=function(){this._reviewPane.next()},t.prototype.diffReviewPrev=function(){this._reviewPane.prev()},t._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=Object(pi["e"])(e.type),n},t.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},t.prototype._createLeftHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));return this._register(i.onDidScrollChange(function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(function(){n._onViewZonesChanged()})),this._register(i.onDidChangeModelContent(function(){n._isVisible&&n._beginUpdateDecorationsSoon()})),i},t.prototype._createRightHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e));return this._register(i.onDidScrollChange(function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(function(){n._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(function(e){e.fontInfo&&i.getModel()&&n._onViewZonesChanged()})),this._register(i.onDidChangeModelContent(function(){n._isVisible&&n._beginUpdateDecorationsSoon()})),i},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(ni["a"],t,n,{})},t.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._measureDomElementToken&&this._measureDomElementToken.dispose(),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return this.getEditorType()+":"+this.id},t.prototype.getEditorType=function(){return de["a"].IDiffEditor},t.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},t.prototype.getOriginalEditor=function(){return this.originalEditor},t.prototype.getModifiedEditor=function(){return this.modifiedEditor},t.prototype.updateOptions=function(e){var n=!1;"undefined"!==typeof e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,n=!0);var i=!1;"undefined"!==typeof e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,i=!0),"undefined"!==typeof e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,i=!0),i&&this._beginUpdateDecorations(),"undefined"!==typeof e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),"undefined"!==typeof e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),n&&(this._renderSideBySide?this._setStrategy(new zi(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Ki(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=t._getClassName(this._themeService.getTheme(),this._renderSideBySide))},t.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},t.prototype.setModel=function(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(e?e.original:null),this.modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,e?(this._recreateOverviewRulers(),this._beginUpdateDecorations()):this._diffComputationResult=null,this._layoutOverviewViewport()},t.prototype.getDomNode=function(){return this._domElement},t.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)},t.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},t.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLine(e,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenter(e,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPosition(e,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenter(e,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)},t.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},t.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},t.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)},t.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLines(e,t,n)},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenter(e,t,n)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)},t.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this.modifiedEditor.revealRange(e,t,n,i)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenter(e,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeAtTop(e,t)},t.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},t.prototype.saveViewState=function(){var e=this.originalEditor.saveViewState(),t=this.modifiedEditor.saveViewState();return{original:e,modified:t}},t.prototype.restoreViewState=function(e){if(e.original&&e.modified){var t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}},t.prototype.layout=function(e){this._measureDomElement(!1,e)},t.prototype.focus=function(){this.modifiedEditor.focus()},t.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},t.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n)},t.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)},t.prototype._measureDomElement=function(e,t){if(t=t||{width:this._containerDomElement.clientWidth,height:this._containerDomElement.clientHeight},t.width<=0)return this._width=0,this._height=0,void(this._reviewHeight=0);(e||t.width!==this._width||t.height!==this._height)&&(this._width=t.width,this._height=t.height,this._reviewHeight=this._reviewPane.isVisible()?this._height:0,this._doLayout())},t.prototype._layoutOverviewRulers=function(){if(this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=t.ENTIRE_DIFF_OVERVIEW_WIDTH-2*t.ONE_OVERVIEW_WIDTH,n=this.modifiedEditor.getLayoutInfo();n&&(this._originalOverviewRuler.setLayout({top:0,width:t.ONE_OVERVIEW_WIDTH,right:e+t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}))}},t.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},t.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return e._beginUpdateDecorations()},t.UPDATE_DIFF_DECORATIONS_DELAY)},t._equals=function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()},t.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var n=this.originalEditor.getModel(),i=this.modifiedEditor.getModel();if(n&&i){this._diffComputationToken++;var o=this._diffComputationToken;this._editorWorkerService.canComputeDiff(n.uri,i.uri)?this._editorWorkerService.computeDiff(n.uri,i.uri,this._ignoreTrimWhitespace).then(function(t){o===e._diffComputationToken&&n===e.originalEditor.getModel()&&i===e.modifiedEditor.getModel()&&(e._diffComputationResult=t,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())},function(t){o===e._diffComputationToken&&n===e.originalEditor.getModel()&&i===e.modifiedEditor.getModel()&&(e._diffComputationResult=null,e._updateDecorationsRunner.schedule())}):t._equals(n.uri,this._lastOriginalWarning)&&t._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=n.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(vn["a"]("diff.tooLarge","Cannot compare files because one file is too large.")))}},t.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},t.prototype._updateDecorations=function(){if(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,i.modified,!0)}finally{this._currentlyChangingViewZones=!1}}},t.prototype._adjustOptionsForSubEditor=function(e){var t=se["c"](e||{});return t.inDiffEditor=!0,t.wordWrap="off",t.wordWrapMinified=!1,t.automaticLayout=!1,t.scrollbar=t.scrollbar||{},t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=!1,t.fixedOverflowWidgets=!0,t.minimap||(t.minimap={}),t.minimap.enabled=!1,t},t.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);return n.readOnly=!t,n.overviewRulerLanes=1,n.extraEditorClassName="original-in-monaco-diff-editor",n},t.prototype._adjustOptionsForRightHandSide=function(e){var n=this._adjustOptionsForSubEditor(e);return n.revealHorizontalRightPadding=T["a"].viewInfo.revealHorizontalRightPadding+t.ENTIRE_DIFF_OVERVIEW_WIDTH,n.scrollbar.verticalHasArrows=!1,n.extraEditorClassName="modified-in-monaco-diff-editor",n},t.prototype.doLayout=function(){this._measureDomElement(!0)},t.prototype._doLayout=function(){var e=this._strategy.layout();this._originalDomNode.style.width=e+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=this._width-e+"px",this._modifiedDomNode.style.left=e+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=this._height-this._reviewHeight+"px",this._overviewDomElement.style.width=t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=this._width-t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(t.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:e,height:this._height-this._reviewHeight}),this.modifiedEditor.layout({width:this._width-e-t.ENTIRE_DIFF_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(this._height-this._reviewHeight,this._width,this._reviewHeight),this._layoutOverviewViewport()},t.prototype._layoutOverviewViewport=function(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},t.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),i=Math.max(0,e.contentHeight),o=Math.max(0,i-0),r=n>0?o/n:0,s=Math.max(0,Math.floor(e.contentHeight*r)),a=Math.floor(t*r);return{height:s,top:a}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height-e._reviewHeight},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._measureDomElement(!0)},t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;var i=0,o=n.length-1;while(i<o){var r=Math.floor((i+o)/2),s=t(n[r]),a=r+1<=o?t(n[r+1]):Number.MAX_VALUE;e<s?o=r-1:e>=a?i=r+1:(i=r,o=r)}return n[i]},t.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.originalStartLineNumber});if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=o?i+Math.min(s,r):i+r-o+s},t.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.modifiedStartLineNumber});if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=r?n+Math.min(s,o):n+o-r+s},t.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},t.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},t.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=Ti([Pi(3,ge["a"]),Pi(4,yn["c"]),Pi(5,at["a"]),Pi(6,U["a"]),Pi(7,pi["c"]),Pi(8,In["a"]),Pi(9,Ni["a"])],t),t}(q["a"]),ji=function(e){function t(t){var n=e.call(this)||this;return n._dataSource=t,n._insertColor=null,n._removeColor=null,n}return Mi(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(hi["j"])||hi["g"]).transparent(2),n=(e.getColor(hi["l"])||hi["h"]).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i},t.prototype.getEditorsDiffDecorations=function(e,t,n,i,o,r,s){o=o.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber}),i=i.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber});var a=this._getViewZones(e,i,o,r,s,n),u=this._getOriginalEditorDecorations(e,t,n,r,s),l=this._getModifiedEditorDecorations(e,t,n,r,s);return{original:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}}},t}(q["a"]),Wi=function(){function e(e){this._source=e,this._index=-1,this.current=null,this.advance()}return e.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},e}(),Vi=function(){function e(e,t,n){this.lineChanges=e,this.originalForeignVZ=t,this.modifiedForeignVZ=n}return e.prototype.getViewZones=function(){for(var t={original:[],modified:[]},n=0,i=0,o=0,r=0,s=0,a=0,u=function(e,t){return e.afterLineNumber-t.afterLineNumber},l=function(e,t){if(null===t.domNode&&e.length>0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},c=new Wi(this.modifiedForeignVZ),d=new Wi(this.originalForeignVZ),h=0,p=this.lineChanges.length;h<=p;h++){var f=h<p?this.lineChanges[h]:null;null!==f?(o=f.originalStartLineNumber+(f.originalEndLineNumber>0?-1:0),r=f.modifiedStartLineNumber+(f.modifiedEndLineNumber>0?-1:0),i=f.originalEndLineNumber>0?f.originalEndLineNumber-f.originalStartLineNumber+1:0,n=f.modifiedEndLineNumber>0?f.modifiedEndLineNumber-f.modifiedStartLineNumber+1:0,s=Math.max(f.originalStartLineNumber,f.originalEndLineNumber),a=Math.max(f.modifiedStartLineNumber,f.modifiedEndLineNumber)):(o+=1e7+i,r+=1e7+n,s=o,a=r);var g=[],m=[];while(c.current&&c.current.afterLineNumber<=a){var v=void 0;v=c.current.afterLineNumber<=r?o-r+c.current.afterLineNumber:s;var _=null;f&&f.modifiedStartLineNumber<=c.current.afterLineNumber&&c.current.afterLineNumber<=f.modifiedEndLineNumber&&(_=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),g.push({afterLineNumber:v,heightInLines:c.current.heightInLines,domNode:null,marginDomNode:_}),c.advance()}while(d.current&&d.current.afterLineNumber<=s){v=void 0;v=d.current.afterLineNumber<=o?r-o+d.current.afterLineNumber:a,m.push({afterLineNumber:v,heightInLines:d.current.heightInLines,domNode:null}),d.advance()}if(null!==f&&Gi(f)){var b=this._produceOriginalFromDiff(f,i,n);b&&g.push(b)}if(null!==f&&Zi(f)){b=this._produceModifiedFromDiff(f,i,n);b&&m.push(b)}var y=0,w=0;g=g.sort(u),m=m.sort(u);while(y<g.length&&w<m.length){var C=g[y],S=m[w],L=C.afterLineNumber-o,O=S.afterLineNumber-r;L<O?(l(t.original,C),y++):O<L?(l(t.modified,S),w++):C.shouldNotShrink?(l(t.original,C),y++):S.shouldNotShrink?(l(t.modified,S),w++):C.heightInLines>=S.heightInLines?(C.heightInLines-=S.heightInLines,w++):(S.heightInLines-=C.heightInLines,y++)}while(y<g.length)l(t.original,g[y]),y++;while(w<m.length)l(t.modified,m[w]),w++}return{original:e._ensureDomNodes(t.original),modified:e._ensureDomNodes(t.modified)}},e._ensureDomNodes=function(e){return e.map(function(e){return e.domNode||(e.domNode=Yi()),e})},e}();function Bi(e,t,n,i,o){return{range:new W["a"](e,t,n,i),options:o}}var Hi={charDelete:Si["a"].register({className:"char-delete"}),charDeleteWholeLine:Si["a"].register({className:"char-delete",isWholeLine:!0}),charInsert:Si["a"].register({className:"char-insert"}),charInsertWholeLine:Si["a"].register({className:"char-insert",isWholeLine:!0}),lineInsert:Si["a"].register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Si["a"].register({className:"line-insert",linesDecorationsClassName:"insert-sign",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Si["a"].register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Si["a"].register({className:"line-delete",linesDecorationsClassName:"delete-sign",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Si["a"].register({marginClassName:"line-delete"})},zi=function(e){function t(t,n){var i=e.call(this,t)||this;return i._disableSash=!1===n,i._sashRatio=null,i._sashPosition=null,i._startSashPosition=null,i._sash=i._register(new oi["a"](i._dataSource.getContainerDomNode(),i)),i._disableSash&&(i._sash.state=0),i._sash.onDidStart(function(){return i.onSashDragStart()}),i._sash.onDidChange(function(e){return i.onSashDrag(e)}),i._sash.onDidEnd(function(){return i.onSashDragEnd()}),i._sash.onDidReset(function(){return i.onSashReset()}),i}return Mi(t,e),t.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)},t.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var n=this._dataSource.getWidth(),i=n-Fi.ENTIRE_DIFF_OVERVIEW_WIDTH,o=Math.floor((e||.5)*i),r=Math.floor(.5*i);return o=this._disableSash?r:o||r,i>2*t.MINIMUM_EDITOR_WIDTH?(o<t.MINIMUM_EDITOR_WIDTH&&(o=t.MINIMUM_EDITOR_WIDTH),o>i-t.MINIMUM_EDITOR_WIDTH&&(o=i-t.MINIMUM_EDITOR_WIDTH)):o=r,this._sashPosition!==o&&(this._sashPosition=o,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth(),n=t-Fi.ENTIRE_DIFF_OVERVIEW_WIDTH,i=this.layout((this._startSashPosition+(e.currentX-e.startX))/n);this._sashRatio=i/n,this._dataSource.relayoutEditors()},t.prototype.onSashDragEnd=function(){this._sash.layout()},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},t.prototype.getVerticalSashTop=function(e){return 0},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},t.prototype._getViewZones=function(e,t,n,i,o){var r=new Ui(e,t,n);return r.getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=String(this._removeColor),s={decorations:[],overviewZones:[]},a=i.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(Zi(c)&&(s.decorations.push({range:new W["a"](c.originalStartLineNumber,1,c.originalEndLineNumber,Number.MAX_VALUE),options:n?Hi.lineDeleteWithSign:Hi.lineDelete}),Gi(c)&&c.charChanges||s.decorations.push(Bi(c.originalStartLineNumber,1,c.originalEndLineNumber,Number.MAX_VALUE,Hi.charDeleteWholeLine)),s.overviewZones.push(new Li["a"](c.originalStartLineNumber,c.originalEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(Zi(p))if(t)for(var f=p.originalStartLineNumber;f<=p.originalEndLineNumber;f++){var g=void 0,m=void 0;g=f===p.originalStartLineNumber?p.originalStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.originalEndLineNumber?p.originalEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(Bi(f,g,f,m,Hi.charDelete))}else s.decorations.push(Bi(p.originalStartLineNumber,p.originalStartColumn,p.originalEndLineNumber,p.originalEndColumn,Hi.charDelete))}}return s},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=String(this._insertColor),s={decorations:[],overviewZones:[]},a=o.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(Gi(c)&&(s.decorations.push({range:new W["a"](c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:n?Hi.lineInsertWithSign:Hi.lineInsert}),Zi(c)&&c.charChanges||s.decorations.push(Bi(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,Hi.charInsertWholeLine)),s.overviewZones.push(new Li["a"](c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(Gi(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g=void 0,m=void 0;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(Bi(f,g,f,m,Hi.charInsert))}else s.decorations.push(Bi(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,Hi.charInsert))}}return s},t.MINIMUM_EDITOR_WIDTH=100,t}(ji),Ui=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Mi(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},t.prototype._produceOriginalFromDiff=function(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},t}(Vi),Ki=function(e){function t(t,n){var i=e.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange(function(e){i.decorationsLeft!==e.decorationsLeft&&(i.decorationsLeft=e.decorationsLeft,t.relayoutEditors())})),i}return Mi(t,e),t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,i,o,r){var s=new qi(e,t,n,i,o,r);return s.getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=String(this._removeColor),s={decorations:[],overviewZones:[]},a=0,u=e.length;a<u;a++){var l=e[a];Zi(l)&&(s.decorations.push({range:new W["a"](l.originalStartLineNumber,1,l.originalEndLineNumber,Number.MAX_VALUE),options:Hi.lineDeleteMargin}),s.overviewZones.push(new Li["a"](l.originalStartLineNumber,l.originalEndLineNumber,r)))}return s},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){for(var r=String(this._insertColor),s={decorations:[],overviewZones:[]},a=o.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(Gi(c))if(s.decorations.push({range:new W["a"](c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:n?Hi.lineInsertWithSign:Hi.lineInsert}),s.overviewZones.push(new Li["a"](c.modifiedStartLineNumber,c.modifiedEndLineNumber,r)),c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var p=c.charChanges[d];if(Gi(p))if(t)for(var f=p.modifiedStartLineNumber;f<=p.modifiedEndLineNumber;f++){var g=void 0,m=void 0;g=f===p.modifiedStartLineNumber?p.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(f),m=f===p.modifiedEndLineNumber?p.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(f),s.decorations.push(Bi(f,g,f,m,Hi.charInsert))}else s.decorations.push(Bi(p.modifiedStartLineNumber,p.modifiedStartColumn,p.modifiedEndLineNumber,p.modifiedEndColumn,Hi.charInsert))}else s.decorations.push(Bi(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,Hi.charInsertWholeLine))}return s},t.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},t}(ji),qi=function(e){function t(t,n,i,o,r,s){var a=e.call(this,t,n,i)||this;return a.originalModel=o.getModel(),a.modifiedEditorConfiguration=r.getConfiguration(),a.modifiedEditorTabSize=r.getModel().getOptions().tabSize,a.renderIndicators=s,a}return Mi(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e},t.prototype._produceOriginalFromDiff=function(e,t,n){var i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i}},t.prototype._produceModifiedFromDiff=function(e,t,n){var i=[];if(e.charChanges)for(var o=0,r=e.charChanges.length;o<r;o++){var s=e.charChanges[o];Zi(s)&&i.push(new It["a"](new W["a"](s.originalStartLineNumber,s.originalStartColumn,s.originalEndLineNumber,s.originalEndColumn),"char-delete",0))}for(var a=Object(Ci["a"])(1e4),u=[],l=this.modifiedEditorConfiguration.layoutInfo.decorationsWidth,c=this.modifiedEditorConfiguration.lineHeight,d=this.modifiedEditorConfiguration.fontInfo.typicalHalfwidthCharacterWidth,h=0,p=[],f=e.originalStartLineNumber;f<=e.originalEndLineNumber;f++)if(h=Math.max(h,this._renderOriginalLine(f-e.originalStartLineNumber,this.originalModel,this.modifiedEditorConfiguration,this.modifiedEditorTabSize,f,i,a)),p.push(this.originalModel.getLineContent(f)),this.renderIndicators){var g=f-e.originalStartLineNumber;u=u.concat(['<div class="delete-sign" style="position:absolute;top:'+g*c+"px;width:"+l+"px;height:"+c+'px;right:0;"></div>'])}h+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var m=document.createElement("div");m.className="view-lines line-delete",m.innerHTML=a.build(),ri["a"].applyFontInfoSlow(m,this.modifiedEditorConfiguration.fontInfo);var v=document.createElement("div");return v.className="inline-deleted-margin-view-zone",v.innerHTML=u.join(""),ri["a"].applyFontInfoSlow(v,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:h*d,domNode:m,marginDomNode:v,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:p}}},t.prototype._renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineTokens(o),u=a.getLineContent(),l=Oi["a"].filter(r,o,1,u.length+1);s.appendASCIIString('<div class="view-line'),0===r.length&&s.appendASCIIString(" char-delete"),s.appendASCIIString('" style="top:'),s.appendASCIIString(String(e*n.lineHeight)),s.appendASCIIString('px;width:1000000px;">');var c=It["d"].isBasicASCII(u,t.mightContainNonBasicASCII()),d=It["d"].containsRTL(u,c,t.mightContainRTL()),h=Object(kt["d"])(new kt["c"](n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,n.fontInfo.canUseHalfwidthRightwardsArrow,u,!1,c,d,0,a,l,i,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures,null),s);s.appendASCIIString("</div>");var p=h.characterMapping.getAbsoluteOffsets();return p.length>0?p[p.length-1]:0},t}(Vi);function Gi(e){return e.modifiedEndLineNumber>0}function Zi(e){return e.originalEndLineNumber>0}function Yi(){var e=document.createElement("div");return e.className="diagonal-fill",e}Object(pi["f"])(function(e,t){var n=e.getColor(hi["j"]);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var i=e.getColor(hi["l"]);i&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+i+"; }"));var o=e.getColor(hi["k"]);o&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var r=e.getColor(hi["m"]);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var s=e.getColor(hi["Lb"]);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(hi["i"]);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")});var Xi=n("f58f"),$i=n("b1ca"),Qi=n("7e32"),Ji=n("6dec"),eo=n("4779"),to=n("f577"),no=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),io=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},oo=function(e,t){return function(n,i){t(n,i,e)}},ro=0,so=!1;function ao(){so||(so=!0,ti["b"](document.body))}var uo=function(e){function t(t,n,i,o,r,s,a,u,l,c){var d=this;return n=n||{},n.ariaLabel=n.ariaLabel||Mn["g"].editorViewAccessibleLabel,n.ariaLabel=n.ariaLabel+";"+(ei["j"]?Mn["g"].accessibilityHelpMessageIE:Mn["g"].accessibilityHelpMessage),d=e.call(this,t,n,{},i,o,r,s,u,l,c)||this,d._standaloneKeybindingService=a instanceof zn?a:null,ao(),d}return no(t,e),t.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var i="DYNAMIC_"+ ++ro,o=yn["a"].deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,o),i},t.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},t.prototype.addAction=function(e){var t=this;if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),q["a"].None;var n=e.id,i=e.label,o=yn["a"].and(yn["a"].equals("editorId",this.getId()),yn["a"].deserialize(e.precondition)),r=e.keybindings,s=yn["a"].and(o,yn["a"].deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,l=function(){return Promise.resolve(e.run(t))},c=new q["b"],d=this.getId()+":"+n;if(c.add(Q["a"].registerCommand(d,l)),a){var h={command:{id:d,title:i},when:o,group:a,order:u};c.add(Qi["c"].appendMenuItem(7,h))}if(Array.isArray(r))for(var p=0,f=r;p<f.length;p++){var g=f[p];c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,g,l,s))}var m=new Xi["a"](d,i,i,o,l,this._contextKeyService);return this._actions[n]=m,c.add(Object(q["h"])(function(){delete t._actions[n]})),c},t=io([oo(2,at["a"]),oo(3,U["a"]),oo(4,Q["b"]),oo(5,yn["c"]),oo(6,Ji["a"]),oo(7,pi["c"]),oo(8,In["a"]),oo(9,eo["b"])],t),t}(ni["a"]),lo=function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h,p){var f=this;Xn(h,n,!1),n=n||{},"string"===typeof n.theme&&c.setTheme(n.theme);var g,m=n.model;if(delete n.model,f=e.call(this,t,n,o,r,s,a,u,c,d,p)||this,f._contextViewService=l,f._configurationService=h,f._register(i),"undefined"===typeof m?(g=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),f._ownsModel=!0):(g=m,f._ownsModel=!1),f._attachModel(g),g){var v={oldModelUrl:null,newModelUrl:g.uri};f._onDidChangeModel.fire(v)}return f}return no(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){Xn(this._configurationService,t,!1),e.prototype.updateOptions.call(this,t)},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},t=io([oo(3,at["a"]),oo(4,U["a"]),oo(5,Q["b"]),oo(6,yn["c"]),oo(7,Ji["a"]),oo(8,Ni["b"]),oo(9,$i["a"]),oo(10,In["a"]),oo(11,cn["a"]),oo(12,eo["b"])],t),t}(uo),co=function(e){function t(t,n,i,o,r,s,a,u,l,c,d,h,p,f){var g=this;return Xn(h,n,!0),n=n||{},"string"===typeof n.theme&&(n.theme=c.setTheme(n.theme)),g=e.call(this,t,n,f,u,r,o,l,c,d,p)||this,g._contextViewService=a,g._configurationService=h,g._register(i),g._contextViewService.setContainer(g._containerDomElement),g}return no(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){Xn(this._configurationService,t,!0),e.prototype.updateOptions.call(this,t)},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(uo,t,n)},t.prototype.getOriginalEditor=function(){return e.prototype.getOriginalEditor.call(this)},t.prototype.getModifiedEditor=function(){return e.prototype.getModifiedEditor.call(this)},t.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)},t.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)},t.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},t=io([oo(3,at["a"]),oo(4,yn["c"]),oo(5,Ji["a"]),oo(6,Ni["b"]),oo(7,ge["a"]),oo(8,U["a"]),oo(9,$i["a"]),oo(10,In["a"]),oo(11,cn["a"]),oo(12,Ni["a"]),oo(13,Object(at["d"])(to["a"]))],t),t}(Fi),ho=n("c7f5"),po=n("5818"),fo=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e}(),go=n("32b8"),mo=n("9768"),vo="text/plain",_o="application/unknown",bo=[],yo=[],wo=[];function Co(e,t){void 0===t&&(t=!1);var n=So(e);bo.push(n),n.userConfigured?wo.push(n):yo.push(n),t&&!n.userConfigured&&bo.forEach(function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))})}function So(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(go["posix"].sep)>=0}}function Lo(e,t){var n;if(e)switch(e.scheme){case Y["b"].file:n=e.fsPath;break;case Y["b"].data:var i=X["a"].parseMetaData(e);n=i.get(X["a"].META_DATA_LABEL);break;default:n=e.path}if(!n)return[_o];n=n.toLowerCase();var o=Object(go["basename"])(n),r=Oo(n,o,wo);if(r)return[r,vo];var s=Oo(n,o,yo);if(s)return[s,vo];if(t){var a=xo(t);if(a)return[a,vo]}return[_o]}function Oo(e,t,n){for(var i=null,o=null,r=null,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)){var u=a.filepatternOnPath?e:t;Object(mo["a"])(a.filepatternLowercase,u)&&(o=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&Object($["m"])(t,a.extensionLowercase)&&(r=a)}return i?i.mime:o?o.mime:r?r.mime:null}function xo(e){if(Object($["L"])(e)&&(e=e.substr(1)),e.length>0)for(var t=bo.length-1;t>=0;t--){var n=bo[t];if(n.firstline){var i=e.match(n.firstline);if(i&&i.length>0)return n.mime}}return null}var No=n("32a4"),Do=n("89cd"),ko=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Io=Object.prototype.hasOwnProperty,Eo=function(e){function t(t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.call(this)||this;return i._onDidChange=i._register(new R["a"]),i.onDidChange=i._onDidChange.event,i._warnOnOverwrite=n,i._nextLanguageId2=1,i._languageIdToLanguage=[],i._languageToLanguageId=Object.create(null),i._languages={},i._mimeTypesMap={},i._nameMap={},i._lowercaseNameMap={},t&&(i._initializeFromRegistry(),i._register(No["a"].onDidChangeLanguages(function(e){return i._initializeFromRegistry()}))),i}return ko(t,e),t.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=No["a"].getLanguages();this._registerLanguages(e)},t.prototype._registerLanguages=function(e){for(var t=this,n=0,i=e;n<i.length;n++){var o=i[n];this._registerLanguage(o)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(function(e){var n=t._languages[e];n.name&&(t._nameMap[n.name]=n.identifier),n.aliases.forEach(function(e){t._lowercaseNameMap[e.toLowerCase()]=n.identifier}),n.mimetypes.forEach(function(e){t._mimeTypesMap[e]=n.identifier})}),Do["a"].as(hn["a"].Configuration).registerOverrideIdentifiers(No["a"].getLanguages().map(function(e){return e.id})),this._onDidChange.fire()},t.prototype._getLanguageId=function(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];var t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t,t},t.prototype._registerLanguage=function(e){var t,n=e.id;if(Io.call(this._languages,n))t=this._languages[n];else{var i=this._getLanguageId(n);t={identifier:new pe["p"](n,i),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[n]=t}this._mergeLanguage(t,e)},t.prototype._mergeLanguage=function(e,t){var n,i=t.id,o=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&((n=e.mimetypes).push.apply(n,t.mimetypes),o=t.mimetypes[0]),o||(o="text/x-"+i,e.mimetypes.push(o)),Array.isArray(t.extensions))for(var r=0,s=t.extensions;r<s.length;r++){var a=s[r];Co({id:i,mime:o,extension:a},this._warnOnOverwrite),e.extensions.push(a)}if(Array.isArray(t.filenames))for(var u=0,l=t.filenames;u<l.length;u++){var c=l[u];Co({id:i,mime:o,filename:c},this._warnOnOverwrite),e.filenames.push(c)}if(Array.isArray(t.filenamePatterns))for(var d=0,h=t.filenamePatterns;d<h.length;d++){var p=h[d];Co({id:i,mime:o,filepattern:p},this._warnOnOverwrite)}if("string"===typeof t.firstLine&&t.firstLine.length>0){var f=t.firstLine;"^"!==f.charAt(0)&&(f="^"+f);try{var g=new RegExp(f);$["E"](g)||Co({id:i,mime:o,firstline:g},this._warnOnOverwrite)}catch(C){Object(_e["e"])(C)}}e.aliases.push(i);var m=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(m=0===t.aliases.length?[null]:t.aliases),null!==m)for(var v=0,_=m;v<_.length;v++){var b=_[v];b&&0!==b.length&&e.aliases.push(b)}var y=null!==m&&m.length>0;if(y&&null===m[0]);else{var w=(y?m[0]:null)||i;!y&&e.name||(e.name=w)}t.configuration&&e.configurationFiles.push(t.configuration)},t.prototype.isRegisteredMode=function(e){return!!Io.call(this._mimeTypesMap,e)||Io.call(this._languages,e)},t.prototype.getModeIdForLanguageNameLowercase=function(e){return Io.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},t.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map(function(e){return e.trim()}).map(function(e){return Io.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e}).filter(function(e){return Io.call(t._languages,e)}):[]},t.prototype.getLanguageIdentifier=function(e){if(e===fe["b"]||0===e)return fe["a"];var t;if("string"===typeof e)t=e;else if(t=this._languageIdToLanguage[e],!t)return null;return Io.call(this._languages,t)?this._languages[t].identifier:null},t.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=Lo(e,t);return this.extractModeIds(n.join(","))},t}(q["a"]),Mo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),To=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidChange=i._register(new R["a"]),i.onDidChange=i._onDidChange.event,i._selector=n,i.languageIdentifier=i._selector(),i._register(t(function(){return i._evaluate()})),i}return Mo(t,e),t.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},t}(q["a"]),Po=function(){function e(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new R["a"],this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new R["a"],this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Eo(!0,e),this._registry.onDidChange(function(){return t._onLanguagesMaybeChanged.fire()})}return e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return n.length>0?n[0]:null},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.create=function(e){var t=this;return new To(this.onLanguagesMaybeChanged,function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)})},e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new To(this.onLanguagesMaybeChanged,function(){var i=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(i)})},e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||fe["a"];return this._getOrCreateMode(t.language),t},e.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||fe["a"];this._instantiatedModes[e]=new fo(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}(),Ro=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ao=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Fo=function(e,t){return function(n,i){t(n,i,e)}};function jo(e){return e.toString()}var Wo=function(){function e(e,t,n){this._modelEventListeners=new q["b"],this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(function(){return t(e)})),this._modelEventListeners.add(e.onDidChangeLanguage(function(t){return n(e,t)}))}return e.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},e.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},e.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return t.model.setMode(e.languageIdentifier)}),this.model.setMode(e.languageIdentifier)},e}(),Vo=be["c"]||be["d"]?1:2,Bo=function(e){function t(t,n){var i=e.call(this)||this;return i._onModelAdded=i._register(new R["a"]),i.onModelAdded=i._onModelAdded.event,i._onModelRemoved=i._register(new R["a"]),i.onModelRemoved=i._onModelRemoved.event,i._onModelModeChanged=i._register(new R["a"]),i.onModelModeChanged=i._onModelModeChanged.event,i._configurationService=t,i._resourcePropertiesService=n,i._models={},i._modelCreationOptionsByLanguageAndResource=Object.create(null),i._configurationServiceSubscription=i._configurationService.onDidChangeConfiguration(function(e){return i._updateModelOptions()}),i._updateModelOptions(),i}return Ro(t,e),t._readModelOptions=function(e,t){var n=T["c"].tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){var i=parseInt(e.editor.tabSize,10);isNaN(i)||(n=i),n<1&&(n=1)}var o=n;if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var r=parseInt(e.editor.indentSize,10);isNaN(r)||(o=r),o<1&&(o=1)}var s=T["c"].insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var a=Vo,u=e.eol;"\r\n"===u?a=2:"\n"===u&&(a=1);var l=T["c"].trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var c=T["c"].detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var d=T["c"].largeFileOptimizations;return e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:c,defaultEOL:a,trimAutoWhitespace:l,largeFileOptimizations:d}},t.prototype.getCreationOptions=function(e,n,i){var o=this._modelCreationOptionsByLanguageAndResource[e+n];if(!o){var r=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:n}),s=this._resourcePropertiesService.getEOL(n,e);o=t._readModelOptions({editor:r,eol:s},i),this._modelCreationOptionsByLanguageAndResource[e+n]=o}return o},t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var n=Object.keys(this._models),i=0,o=n.length;i<o;i++){var r=n[i],s=this._models[r],a=s.model.getLanguageIdentifier().language,u=s.model.uri,l=e[a+u],c=this.getCreationOptions(a,u,s.model.isForSimpleWidget);t._setModelOptionsForModel(s.model,c,l)}},t._setModelOptionsForModel=function(e,t,n){n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))},t.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),e.prototype.dispose.call(this)},t.prototype._createModelData=function(e,t,n,i){var o=this,r=this.getCreationOptions(t.language,n,i),s=new Si["b"](e,r,t,n),a=jo(s.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");var u=new Wo(s,function(e){return o._onWillDispose(e)},function(e,t){return o._onDidChangeLanguage(e,t)});return this._models[a]=u,u},t.prototype.createModel=function(e,t,n,i){var o;return void 0===i&&(i=!1),t?(o=this._createModelData(e,t.languageIdentifier,n,i),this.setMode(o.model,t)):o=this._createModelData(e,No["b"],n,i),this._onModelAdded.fire(o.model),o.model},t.prototype.setMode=function(e,t){if(t){var n=this._models[jo(e.uri)];n&&n.setLanguage(t)}},t.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,i=t.length;n<i;n++){var o=t[n];e.push(this._models[o].model)}return e},t.prototype.getModel=function(e){var t=jo(e),n=this._models[t];return n?n.model:null},t.prototype._onWillDispose=function(e){var t=jo(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)},t.prototype._onDidChangeLanguage=function(e,n){var i=n.oldLanguage,o=e.getLanguageIdentifier().language,r=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(o,e.uri,e.isForSimpleWidget);t._setModelOptionsForModel(e,s,r),this._onModelModeChanged.fire({model:e,oldModeId:i})},t=Ao([Fo(0,cn["a"]),Fo(1,lt)],t),t}(q["a"]),Ho=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),zo=function(e){function t(){var t=e.call(this)||this;return t._onCodeEditorAdd=t._register(new R["a"]),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new R["a"]),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new R["a"]),t._onDiffEditorRemove=t._register(new R["a"]),t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t}return Ho(t,e),t.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},t.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},t.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map(function(t){return e._codeEditors[t]})},t.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},t.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},t.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map(function(t){return e._diffEditors[t]})},t.prototype.getFocusedCodeEditor=function(){for(var e=null,t=this.listCodeEditors(),n=0,i=t;n<i.length;n++){var o=i[n];if(o.hasTextFocus())return o;o.hasWidgetFocus()&&(e=o)}return e},t}(q["a"]),Uo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ko=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},qo=function(e,t){return function(n,i){t(n,i,e)}},Go=function(e){function t(t,n){void 0===n&&(n=K["s"]());var i=e.call(this)||this;return i._decorationOptionProviders=new Map,i._styleSheet=n,i._themeService=t,i}return Uo(t,e),t.prototype.registerDecorationType=function(e,t,n){var i=this._decorationOptionProviders.get(e);if(!i){var o={styleSheet:this._styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};i=n?new Zo(this._themeService,o):new Yo(this._themeService,o),this._decorationOptionProviders.set(e,i)}i.refCount++},t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(function(t){return t.removeDecorations(e)})))},t.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)},t=Ko([qo(0,pi["c"])],t),t}(zo),Zo=function(){function e(e,t){this._parentTypeKey=t.parentTypeKey,this.refCount=0,this._beforeContentRules=new $o(3,t,e),this._afterContentRules=new $o(4,t,e)}return e.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n},e.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null)},e}(),Yo=function(){function e(e,t){var n=this;this._disposables=new q["b"],this.refCount=0;var i=function(i){var o=new $o(i,t,e);if(n._disposables.add(o),o.hasContent)return o.className},o=function(i){var o=new $o(i,t,e);return n._disposables.add(o),o.hasContent?{className:o.className,hasLetterSpacing:o.hasLetterSpacing}:null};this.className=i(0);var r=o(1);r&&(this.inlineClassName=r.className,this.inlineClassNameAffectsLetterSpacing=r.hasLetterSpacing),this.beforeContentClassName=i(3),this.afterContentClassName=i(4),this.glyphMarginClassName=i(2);var s=t.options;this.isWholeLine=Boolean(s.isWholeLine),this.stickiness=s.rangeBehavior;var a=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,u=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;"undefined"===typeof a&&"undefined"===typeof u||(this.overviewRuler={color:a||u,darkColor:u||a,position:s.overviewRulerLane||he["d"].Center})}return e.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},e.prototype.dispose=function(){this._disposables.dispose()},e}(),Xo={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},$o=function(){function e(e,t,n){var i=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var o=Qo.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(o=o+" "+Qo.getClassName(this._providerArgs.parentTypeKey,e)),this._className=o,this._unThemedSelector=Qo.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange(function(e){i._theme=n.getTheme(),i._removeCSS(),i._buildCSS()}):this._themeListener=null}return e.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(e.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),e.prototype._buildCSS=function(){var e,t,n,i=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(i),t=this.getCSSTextForModelDecorationClassName(i.light),n=this.getCSSTextForModelDecorationClassName(i.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(i),t=this.getCSSTextForModelDecorationInlineClassName(i.light),n=this.getCSSTextForModelDecorationInlineClassName(i.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(i),t=this.getCSSTextForModelDecorationGlyphMarginClassName(i.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(i.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(i.before),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.before),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(i.after),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.after),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var o=this._providerArgs.styleSheet.sheet,r=!1;e.length>0&&(o.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),t.length>0&&(o.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),n.length>0&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r},e.prototype._removeCSS=function(){K["H"](this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if("undefined"!==typeof e){if(this.collectBorderSettingsCSSText(e,t),"undefined"!==typeof e.contentIconPath&&t.push($["r"](Xo.contentIconPath,K["n"](F["a"].revive(e.contentIconPath)))),"string"===typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0],i=n.replace(/['\\]/g,"\\$&");t.push($["r"](Xo.contentText,i))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return"undefined"!==typeof e.gutterIconPath&&(t.push($["r"](Xo.gutterIconPath,K["n"](F["a"].revive(e.gutterIconPath)))),"undefined"!==typeof e.gutterIconSize&&t.push($["r"](Xo.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push($["r"]("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,n){for(var i=n.length,o=0,r=t;o<r.length;o++){var s=r[o],a=this.resolveValue(e[s]);"string"===typeof a&&n.push($["r"](Xo[s],a))}return n.length!==i},e.prototype.resolveValue=function(e){if(Object(de["c"])(e)){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e},e}(),Qo=function(){function e(){}return e.getClassName=function(e,t){return"ced-"+e+"-"+t},e.getSelector=function(e,t,n){var i=".monaco-editor ."+this.getClassName(e,n);return t&&(i=i+"."+this.getClassName(t,n)),3===n?i+="::before":4===n&&(i+="::after"),i},e}(),Jo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jo(t,e),t.prototype.getActiveCodeEditor=function(){return null},t.prototype.openCodeEditor=function(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)},t.prototype.doOpenEditor=function(e,t){var n=this.findModel(e,t.resource);if(!n){if(t.resource){var i=t.resource.scheme;if(i===Y["b"].http||i===Y["b"].https)return Object(K["T"])(t.resource.toString()),e}return null}var o=t.options?t.options.selection:null;if(o)if("number"===typeof o.endLineNumber&&"number"===typeof o.endColumn)e.setSelection(o),e.revealRangeInCenter(o,1);else{var r={lineNumber:o.startLineNumber,column:o.startColumn};e.setPosition(r),e.revealPositionInCenter(r,1)}return e},t.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},t}(Go),tr=n("ceb8"),nr=function(){function e(e,t,n,i,o){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o}return e}();function ir(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,i=0,o=e.length;i<o;i++){var r=e[i],s=-1;if("string"===typeof r.fontStyle){s=0;for(var a=r.fontStyle.split(" "),u=0,l=a.length;u<l;u++){var c=a[u];switch(c){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break}}}var d=null;"string"===typeof r.foreground&&(d=r.foreground);var h=null;"string"===typeof r.background&&(h=r.background),t[n++]=new nr(r.token||"",i,s,d,h)}return t}function or(e,t){e.sort(function(e,t){var n=cr(e.token,t.token);return 0!==n?n:e.index-t.index});var n=0,i="000000",o="ffffff";while(e.length>=1&&""===e[0].token){var r=e.shift();-1!==r.fontStyle&&(n=r.fontStyle),null!==r.foreground&&(i=r.foreground),null!==r.background&&(o=r.background)}for(var s=new sr,a=0,u=t;a<u.length;a++){var l=u[a];s.getId(l)}for(var c=s.getId(i),d=s.getId(o),h=new fr(n,c,d),p=new gr(h),f=0,g=e.length;f<g;f++){var m=e[f];p.insert(m.token,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new ar(s,p)}var rr=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,sr=function(){function e(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return e.prototype.getId=function(e){if(null===e)return 0;var t=e.match(rr);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=tr["a"].fromHex("#"+e),n)},e.prototype.getColorMap=function(){return this._id2color.slice(0)},e}(),ar=function(){function e(e,t){this._colorMap=e,this._root=t,this._cache=new Map}return e.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(ir(e),t)},e.createFromParsedTokenTheme=function(e,t){return or(e,t)},e.prototype.getColorMap=function(){return this._colorMap.getColorMap()},e.prototype._match=function(e){return this._root.match(e)},e.prototype.match=function(e,t){var n=this._cache.get(t);if("undefined"===typeof n){var i=this._match(t),o=lr(t);n=(i.metadata|o<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},e}(),ur=/\b(comment|string|regex|regexp)\b/;function lr(e){var t=e.match(ur);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function cr(e,t){return e<t?-1:e>t?1:0}var dr,hr,pr,fr=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}(),gr=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));var o=this._children.get(t);return"undefined"!==typeof o?o.match(n):this._mainRule},e.prototype.insert=function(t,n,i,o){if(""!==t){var r,s,a=t.indexOf(".");-1===a?(r=t,s=""):(r=t.substring(0,a),s=t.substring(a+1));var u=this._children.get(r);"undefined"===typeof u&&(u=new e(this._mainRule.clone()),this._children.set(r,u)),u.insert(s,n,i,o)}else this._mainRule.acceptOverwrite(n,i,o)},e}();function mr(e){for(var t=[],n=1,i=e.length;n<i;n++){var o=e[n];t[n]=".mtk"+n+" { color: "+o+"; }"}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n")}var vr={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(dr={},dr[hi["o"]]="#FFFFFE",dr[hi["x"]]="#000000",dr[hi["E"]]="#E5EBF1",dr[di["h"]]="#D3D3D3",dr[di["a"]]="#939393",dr[hi["J"]]="#ADD6FF4D",dr)},_r={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(hr={},hr[hi["o"]]="#1E1E1E",hr[hi["x"]]="#D4D4D4",hr[hi["E"]]="#3A3D41",hr[di["h"]]="#404040",hr[di["a"]]="#707070",hr[hi["J"]]="#ADD6FF26",hr)},br={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(pr={},pr[hi["o"]]="#000000",pr[hi["x"]]="#FFFFFF",pr[di["h"]]="#FFFFFF",pr[di["a"]]="#FFFFFF",pr)},yr="vs",wr="vs-dark",Cr="hc-black",Sr=Do["a"].as(hi["a"].ColorContribution),Lr=Do["a"].as(pi["a"].ThemingContribution),Or=function(){function e(e,t){this.themeData=t;var n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},e.prototype.getColors=function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,tr["a"].fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=Nr(this.themeData.base);for(var t in n.colors)e.has(t)||e.set(t,tr["a"].fromHex(n.colors[t]))}this.colors=e}return this.colors},e.prototype.getColor=function(e,t){var n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=Sr.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},e.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case yr:return"light";case Cr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=Nr(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=ar.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),e}();function xr(e){return e===yr||e===wr||e===Cr}function Nr(e){switch(e){case yr:return vr;case wr:return _r;case Cr:return br}}function Dr(e){var t=Nr(e);return new Or(e,t)}var kr=function(){function e(){this.environment=Object.create(null),this._onThemeChange=new R["a"],this._onIconThemeChange=new R["a"],this._knownThemes=new Map,this._knownThemes.set(yr,Dr(yr)),this._knownThemes.set(wr,Dr(wr)),this._knownThemes.set(Cr,Dr(Cr)),this._styleElement=K["s"](),this._styleElement.className="monaco-colors",this.setTheme(yr)}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!xr(t.base)&&!xr(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new Or(e,t)),xr(e)&&this._knownThemes.forEach(function(t){t.base===e&&t.notifyBaseUpdated()}),this._theme&&this._theme.themeName===e&&this.setTheme(e)},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(yr),this._theme===t)return t.id;this._theme=t;var i=[],o={},r={addRule:function(e){o[e]||(i.push(e),o[e]=!0)}};Lr.getThemingParticipants().forEach(function(e){return e(t,r,n.environment)});var s=t.tokenTheme,a=s.getColorMap();return r.addRule(mr(a)),this._styleElement.innerHTML=i.join("\n"),pe["y"].setColorMap(a),this._onThemeChange.fire(t),t.id},e.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},e}(),Ir=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Er=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Mr=function(e,t){return function(n,i){t(n,i,e)}},Tr="data-keybinding-context",Pr=function(){function e(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value["_contextId"]=e}return e.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},e.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},e.prototype.getValue=function(e){var t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t},e}(),Rr=function(e){function t(){return e.call(this,-1,null)||this}return Ir(t,e),t.prototype.setValue=function(e,t){return!1},t.prototype.removeValue=function(e){return!1},t.prototype.getValue=function(e){},t.INSTANCE=new t,t}(Pr),Ar=function(e){function t(t,n,i){var o=e.call(this,t,null)||this;return o._configurationService=n,o._values=new Map,o._listener=o._configurationService.onDidChangeConfiguration(function(e){if(6===e.source){var t=Object(dn["d"])(o._values);o._values.clear(),i.fire(new Wr(t))}else{for(var n=[],r=0,s=e.affectedKeys;r<s.length;r++){var a=s[r],u="config."+a;o._values.has(u)&&(o._values.delete(u),n.push(u))}i.fire(new Wr(n))}}),o}return Ir(t,e),t.prototype.dispose=function(){this._listener.dispose()},t.prototype.getValue=function(n){if(0!==n.indexOf(t._keyPrefix))return e.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var i=n.substr(t._keyPrefix.length),o=this._configurationService.getValue(i),r=void 0;switch(typeof o){case"number":case"boolean":case"string":r=o;break}return this._values.set(n,r),r},t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n)},t.prototype.removeValue=function(t){return e.prototype.removeValue.call(this,t)},t._keyPrefix="config.",t}(Pr),Fr=function(){function e(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}return e.prototype.set=function(e){this._service.setContext(this._key,e)},e.prototype.reset=function(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},e.prototype.get=function(){return this._service.getContextKeyValue(this._key)},e}(),jr=function(){function e(e){this.key=e}return e.prototype.affectsSome=function(e){return e.has(this.key)},e}(),Wr=function(){function e(e){this.keys=e}return e.prototype.affectsSome=function(e){for(var t=0,n=this.keys;t<n.length;t++){var i=n[t];if(e.has(i))return!0}return!1},e}(),Vr=function(){function e(e){this.events=e}return e.prototype.affectsSome=function(e){for(var t=0,n=this.events;t<n.length;t++){var i=n[t];if(i.affectsSome(e))return!0}return!1},e}(),Br=function(){function e(e){this._onDidChangeContext=new R["e"]({merge:function(e){return new Vr(e)}}),this._isDisposed=!1,this._myContextId=e}return e.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Fr(this,e,t)},Object.defineProperty(e.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),e.prototype.bufferChangeEvents=function(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}},e.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new zr(this,e)},e.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId),n=wn.contextMatchesRules(t,e);return n},e.prototype.getContextKeyValue=function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)},e.prototype.setContext=function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new jr(e))}},e.prototype.removeContext=function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new jr(e))},e.prototype.getContext=function(e){return this._isDisposed?Rr.INSTANCE:this.getContextValuesContainer(Ur(e))},e}(),Hr=function(e){function t(t){var n=e.call(this,0)||this;n._contexts=new Map,n._toDispose=new q["b"],n._lastContextId=0;var i=new Ar(n._myContextId,t,n._onDidChangeContext);return n._contexts.set(n._myContextId,i),n._toDispose.add(i),n}return Ir(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},t.prototype.getContextValuesContainer=function(e){return this._isDisposed?Rr.INSTANCE:this._contexts.get(e)||Rr.INSTANCE},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;return this._contexts.set(t,new Pr(t,this.getContextValuesContainer(e))),t},t.prototype.disposeContext=function(e){this._isDisposed||this._contexts.delete(e)},t=Er([Mr(0,cn["a"])],t),t}(Br),zr=function(e){function t(t,n){var i=e.call(this,t.createChildContext())||this;return i._parent=t,n&&(i._domNode=n,i._domNode.setAttribute(Tr,String(i._myContextId))),i}return Ir(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(Tr),this._domNode=void 0)},Object.defineProperty(t.prototype,"onDidChangeContext",{get:function(){return R["b"].any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),t.prototype.getContextValuesContainer=function(e){return this._isDisposed?Rr.INSTANCE:this._parent.getContextValuesContainer(e)},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)},t.prototype.disposeContext=function(e){this._isDisposed||this._parent.disposeContext(e)},t}(Br);function Ur(e){while(e){if(e.hasAttribute(Tr)){var t=e.getAttribute(Tr);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}Q["a"].registerCommand(yn["e"],function(e,t,n){e.get(yn["c"]).createKey(String(t),n)});n("7a2c"),n("0876");var Kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),qr=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,Gr=/(&)?(&)([^\s&])/g,Zr=function(e){function t(t,n,i){var o=e.call(this,i||"submenu",t,"",!0)||this;return o.entries=n,o}return Kr(t,e),t}(li["a"]),Yr=function(e){function t(t,n,i){void 0===i&&(i={});var o=this;Object(K["f"])(t,"monaco-menu-container"),t.setAttribute("role","presentation");var r=document.createElement("div");Object(K["f"])(r,"monaco-menu"),r.setAttribute("role","presentation"),o=e.call(this,r,{orientation:2,actionViewItemProvider:function(e){return o.doGetActionViewItem(e,i,s)},context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,triggerKeys:{keys:[3].concat(be["d"]?[10]:[]),keyDown:!0}})||this,o.menuElement=r,o._onScroll=o._register(new R["a"]),o.actionsList.setAttribute("role","menu"),o.actionsList.tabIndex=0,o.menuDisposables=o._register(new q["b"]),Object(K["h"])(r,K["d"].KEY_DOWN,function(e){var t=new rn["a"](e);t.equals(2)&&e.preventDefault()}),i.enableMnemonics&&o.menuDisposables.add(Object(K["h"])(r,K["d"].KEY_DOWN,function(e){var t=e.key.toLocaleLowerCase();if(o.mnemonics.has(t)){K["c"].stop(e,!0);var n=o.mnemonics.get(t);if(1===n.length&&(n[0]instanceof $r&&o.focusItemByElement(n[0].container),n[0].onClick(e)),n.length>1){var i=n.shift();i&&(o.focusItemByElement(i.container),n.push(i)),o.mnemonics.set(t,n)}}})),be["c"]&&o._register(Object(K["h"])(r,K["d"].KEY_DOWN,function(e){var t=new rn["a"](e);t.equals(14)||t.equals(11)?(o.focusedItem=o.viewItems.length-1,o.focusNext(),K["c"].stop(e,!0)):(t.equals(13)||t.equals(12))&&(o.focusedItem=0,o.focusPrevious(),K["c"].stop(e,!0))})),o._register(Object(K["h"])(o.domNode,K["d"].MOUSE_OUT,function(e){var t=e.relatedTarget;Object(K["E"])(t,o.domNode)||(o.focusedItem=void 0,o.scrollTopHold=o.menuElement.scrollTop,o.updateFocus(),e.stopPropagation())})),o._register(Object(K["h"])(o.domNode,K["d"].MOUSE_UP,function(e){K["c"].stop(e,!0)})),o._register(Object(K["h"])(o.actionsList,K["d"].MOUSE_OVER,function(e){var t=e.target;if(t&&Object(K["E"])(t,o.actionsList)&&t!==o.actionsList){while(t.parentElement!==o.actionsList&&null!==t.parentElement)t=t.parentElement;if(Object(K["C"])(t,"action-item")){var n=o.focusedItem;o.scrollTopHold=o.menuElement.scrollTop,o.setFocusedItem(t),n!==o.focusedItem&&o.updateFocus()}}}));var s={parent:o};o.mnemonics=new Map,o.push(n,{icon:!0,label:!0,isMenu:!0}),o.scrollableElement=o._register(new ui["a"](r,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var a=o.scrollableElement.getDomNode();return a.style.position=null,r.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",o.menuDisposables.add(o.scrollableElement.onScroll(function(){o._onScroll.fire()},o)),o._register(Object(K["h"])(o.menuElement,K["d"].SCROLL,function(e){void 0!==o.scrollTopHold&&(o.menuElement.scrollTop=o.scrollTopHold,o.scrollTopHold=void 0),o.scrollableElement.scanDomNode()})),t.appendChild(o.scrollableElement.getDomNode()),o.scrollableElement.scanDomNode(),o.viewItems.filter(function(e){return!(e instanceof Qr)}).forEach(function(e,t,n){e.updatePositionInSet(t+1,n.length)}),o}return Kr(t,e),t.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:null,i=e.backgroundColor?""+e.backgroundColor:null,o=e.borderColor?"2px solid "+e.borderColor:null,r=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=o,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach(function(t){(t instanceof Xr||t instanceof Qr)&&t.style(e)})},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t<this.actionsList.children.length;t++){var n=this.actionsList.children[t];if(e===n){this.focusedItem=t;break}}},t.prototype.doGetActionViewItem=function(e,t,n){if(e instanceof ai["d"])return new Qr(t.context,e,{icon:!0});if(e instanceof Zr){var i=new $r(e,e.entries,n,t);if(t.enableMnemonics){var o=i.getMnemonic();if(o&&i.isEnabled()){var r=[];this.mnemonics.has(o)&&(r=this.mnemonics.get(o)),r.push(i),this.mnemonics.set(o,r)}}return i}var s={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var a=t.getKeyBinding(e);if(a){var u=a.getLabel();u&&(s.keybinding=u)}}i=new Xr(t.context,e,s);if(t.enableMnemonics){o=i.getMnemonic();if(o&&i.isEnabled()){r=[];this.mnemonics.has(o)&&(r=this.mnemonics.get(o)),r.push(i),this.mnemonics.set(o,r)}}return i},t}(ai["a"]),Xr=function(e){function t(t,n,i){void 0===i&&(i={});var o=this;if(i.isMenu=!0,o=e.call(this,n,n,i)||this,o.options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o.options.label&&i.enableMnemonics){var r=o.getAction().label;if(r){var s=qr.exec(r);s&&(o.mnemonic=(s[1]?s[1]:s[3]).toLocaleLowerCase())}}return o.runOnceToEnableMouseUp=new ve["d"](function(){o.element&&o._register(Object(K["h"])(o.element,K["d"].MOUSE_UP,function(e){K["c"].stop(e,!0),o.onClick(e)}))},50),o._register(o.runOnceToEnableMouseUp),o}return Kr(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.container=t,this.item=Object(K["m"])(this.element,Object(K["a"])("a.action-menu-item")),this._action.id===ai["d"].ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(K["m"])(this.item,Object(K["a"])("span.menu-item-check")),this.check.setAttribute("role","none"),this.label=Object(K["m"])(this.item,Object(K["a"])("span.action-label")),this.options.label&&this.options.keybinding&&(Object(K["m"])(this.item,Object(K["a"])("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())},t.prototype.blur=function(){e.prototype.blur.call(this),this.applyStyle()},t.prototype.focus=function(){e.prototype.focus.call(this),this.item.focus(),this.applyStyle()},t.prototype.updatePositionInSet=function(e,t){this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t)},t.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=Jr(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));var n=qr.exec(e);if(n){e=$["o"](e),Gr.lastIndex=0;var i=Gr.exec(e);while(i&&i[1])i=Gr.exec(e);i&&(e=e.substr(0,i.index)+'<u aria-hidden="true">'+i[3]+"</u>"+e.substr(i.index+i[0].length)),e=e.replace(/&&/g,"&"),this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else e=e.replace(/&&/g,"&")}this.label.innerHTML=e.trim()}},t.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=vn["a"]({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.item.title=e)},t.prototype.updateClass=function(){this.cssClass&&Object(K["J"])(this.item,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class||"",Object(K["f"])(this.label,"icon"),this.cssClass&&Object(K["g"])(this.label,this.cssClass),this.updateEnabled()):Object(K["I"])(this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(K["I"])(this.element,"disabled"),Object(K["I"])(this.item,"disabled"),this.item.tabIndex=0):(this.element&&Object(K["f"])(this.element,"disabled"),Object(K["f"])(this.item,"disabled"),Object(K["L"])(this.item))},t.prototype.updateChecked=function(){this.getAction().checked?(Object(K["f"])(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(K["I"])(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false"))},t.prototype.getMnemonic=function(){return this.mnemonic},t.prototype.applyStyle=function(){if(this.menuStyle){var e=this.element&&Object(K["C"])(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:this.menuStyle.backgroundColor,i=e&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:null;this.item.style.color=t?""+t:null,this.check.style.backgroundColor=t?""+t:null,this.item.style.backgroundColor=n?""+n:null,this.container.style.border=i}},t.prototype.style=function(e){this.menuStyle=e,this.applyStyle()},t}(ai["c"]),$r=function(e){function t(t,n,i,o){var r=e.call(this,t,t,o)||this;return r.submenuActions=n,r.parentData=i,r.submenuOptions=o,r.submenuDisposables=r._register(new q["b"]),r.showScheduler=new ve["d"](function(){r.mouseOver&&(r.cleanupExistingSubmenu(!1),r.createSubmenu(!1))},250),r.hideScheduler=new ve["d"](function(){r.element&&!Object(K["E"])(document.activeElement,r.element)&&r.parentData.submenu===r.mysubmenu&&(r.parentData.parent.focus(!1),r.cleanupExistingSubmenu(!0))},750),r}return Kr(t,e),t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t),this.element&&(Object(K["f"])(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.submenuIndicator=Object(K["m"])(this.item,Object(K["a"])("span.submenu-indicator")),this.submenuIndicator.setAttribute("aria-hidden","true"),this._register(Object(K["h"])(this.element,K["d"].KEY_UP,function(e){var t=new rn["a"](e);(t.equals(17)||t.equals(3))&&(K["c"].stop(e,!0),n.createSubmenu(!0))})),this._register(Object(K["h"])(this.element,K["d"].KEY_DOWN,function(e){var t=new rn["a"](e);document.activeElement===n.item&&(t.equals(17)||t.equals(3))&&K["c"].stop(e,!0)})),this._register(Object(K["h"])(this.element,K["d"].MOUSE_OVER,function(e){n.mouseOver||(n.mouseOver=!0,n.showScheduler.schedule())})),this._register(Object(K["h"])(this.element,K["d"].MOUSE_LEAVE,function(e){n.mouseOver=!1})),this._register(Object(K["h"])(this.element,K["d"].FOCUS_OUT,function(e){n.element&&!Object(K["E"])(document.activeElement,n.element)&&n.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(function(){n.parentData.parent.focus(!1),n.cleanupExistingSubmenu(!1)})))},t.prototype.onClick=function(e){K["c"].stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!1)},t.prototype.cleanupExistingSubmenu=function(e){this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},t.prototype.createSubmenu=function(e){var t=this;if(void 0===e&&(e=!0),this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.submenuContainer=Object(K["m"])(this.element,Object(K["a"])("div.monaco-submenu")),Object(K["g"])(this.submenuContainer,"menubar-menu-items-holder","context-view"),this.parentData.submenu=new Yr(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var n=this.element.getBoundingClientRect(),i=this.submenuContainer.getBoundingClientRect(),o=getComputedStyle(this.parentData.parent.domNode),r=parseFloat(o.paddingTop||"0")||0;window.innerWidth<=n.right+i.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+n.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-r+"px"),this.submenuDisposables.add(Object(K["h"])(this.submenuContainer,K["d"].KEY_UP,function(e){var n=new rn["a"](e);n.equals(15)&&(K["c"].stop(e,!0),t.parentData.parent.focus(),t.parentData.submenu&&(t.parentData.submenu.dispose(),t.parentData.submenu=void 0),t.submenuDisposables.clear(),t.submenuContainer=void 0)})),this.submenuDisposables.add(Object(K["h"])(this.submenuContainer,K["d"].KEY_DOWN,function(e){var t=new rn["a"](e);t.equals(15)&&K["c"].stop(e,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(function(){t.parentData.parent.focus(),t.parentData.submenu&&(t.parentData.submenu.dispose(),t.parentData.submenu=void 0),t.submenuDisposables.clear(),t.submenuContainer=void 0})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}},t.prototype.applyStyle=function(){if(e.prototype.applyStyle.call(this),this.menuStyle){var t=this.element&&Object(K["C"])(this.element,"focused"),n=t&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator.style.backgroundColor=n?""+n:null,this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},t}(Xr),Qr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kr(t,e),t.prototype.style=function(e){this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:null},t}(ai["b"]);function Jr(e){var t=qr,n=t.exec(e);if(!n)return e;var i=!n[1];return e.replace(t,i?"$2$3":"").trim()}var es=n("a6d7"),ts=n("e32d"),ns=n("5d28"),is=function(){function e(e,t,n,i,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.themeService=o,this.options={blockMouse:!0}}return e.prototype.configure=function(e){this.options=e},e.prototype.showContextMenu=function(e){var t,n=this,i=e.getActions();i.length&&(this.focusToReturn=document.activeElement,this.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,anchorAlignment:e.anchorAlignment,render:function(o){var r=e.getMenuClassName?e.getMenuClassName():"";r&&(o.className+=" "+r),n.options.blockMouse&&(n.block=o.appendChild(Object(K["a"])(".context-view-block")));var s=new q["b"],a=e.actionRunner||new li["b"];return a.onDidBeforeRun(n.onActionRun,n,s),a.onDidRun(n.onDidActionRun,n,s),t=new Yr(o,i,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return n.keybindingService.lookupKeybinding(e.id)}}),s.add(Object(es["c"])(t,n.themeService)),t.onDidCancel(function(){return n.contextViewService.hideContextView(!0)},null,s),t.onDidBlur(function(){return n.contextViewService.hideContextView(!0)},null,s),Object(ts["a"])(window,K["d"].BLUR)(function(){n.contextViewService.hideContextView(!0)},null,s),Object(ts["a"])(window,K["d"].MOUSE_DOWN)(function(e){if(!e.defaultPrevented){var t=new ns["b"](e),i=t.target;if(!t.rightButton){while(i){if(i===o)return;i=i.parentElement}n.contextViewService.hideContextView(!0)}}},null,s),Object(q["e"])(s,t)},focus:function(){t&&t.focus(!!e.autoSelectFirstItem)},onHide:function(t){e.onHide&&e.onHide(!!t),n.block&&(Object(K["K"])(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}}))},e.prototype.onActionRun=function(e){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},e.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error)},e}(),os=n("5d75"),rs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ss=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},as=function(e,t){return function(n,i){t(n,i,e)}},us=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s._onDidContextMenu=s._register(new R["a"]),s.contextMenuHandler=new is(i,t,n,o,r),s}return rs(t,e),t.prototype.configure=function(e){this.contextMenuHandler.configure(e)},t.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},t=ss([as(0,os["a"]),as(1,In["a"]),as(2,Ni["b"]),as(3,Ji["a"]),as(4,pi["c"])],t),t}(q["a"]),ls=(n("4d3d"),n("9ee1")),cs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ds(e,t,n){var i=n.offset+n.size;return 0===n.position?t<=e-i?i:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-i?i:0}var hs=function(e){function t(t){var n=e.call(this)||this;return n.container=null,n.delegate=null,n.toDisposeOnClean=q["a"].None,n.toDisposeOnSetContainer=q["a"].None,n.view=K["a"](".context-view"),K["D"](n.view),n.setContainer(t),n._register(Object(q["h"])(function(){return n.setContainer(null)})),n}return cs(t,e),t.prototype.setContainer=function(e){var n=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),e){this.container=e,this.container.appendChild(this.view);var i=new q["b"];t.BUBBLE_UP_EVENTS.forEach(function(e){i.add(K["k"](n.container,e,function(e){n.onDOMEvent(e,!1)}))}),t.BUBBLE_DOWN_EVENTS.forEach(function(e){i.add(K["k"](n.container,e,function(e){n.onDOMEvent(e,!0)},!0))}),this.toDisposeOnSetContainer=i}},t.prototype.show=function(e){this.isVisible()&&this.hide(),K["p"](this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",K["Q"](this.view),this.toDisposeOnClean=e.render(this.view)||q["a"].None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()},t.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},t.prototype.doLayout=function(){if(this.isVisible()){var e,t=this.delegate.getAnchor();if(K["F"](t)){var n=K["x"](t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var i,o=K["B"](this.view),r=K["A"](this.view),s=this.delegate.anchorPosition||0,a=this.delegate.anchorAlignment||0,u={offset:e.top-window.pageYOffset,size:e.height,position:0===s?0:1};i=0===a?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};var l=ds(window.innerHeight,r,u)+window.pageYOffset;ls["a"].intersects({start:l,end:l+r},{start:u.offset,end:u.offset+u.size})&&(i.size=e.width,1===a&&(i.offset=e.left));var c=ds(window.innerWidth,o,i);K["J"](this.view,"top","bottom","left","right"),K["f"](this.view,0===s?"bottom":"top"),K["f"](this.view,0===a?"left":"right");var d=K["x"](this.container);this.view.style.top=l-d.top+"px",this.view.style.left=c-d.left+"px",this.view.style.width="initial"}},t.prototype.hide=function(e){var t=this.delegate;this.delegate=null,t&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),K["D"](this.view)},t.prototype.isVisible=function(){return!!this.delegate},t.prototype.onDOMEvent=function(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!K["E"](e.target,this.container)&&this.hide())},t.prototype.dispose=function(){this.hide(),e.prototype.dispose.call(this)},t.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],t.BUBBLE_DOWN_EVENTS=["click"],t}(q["a"]),ps=Object(at["c"])("layoutService"),fs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gs=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},ms=function(e,t){return function(n,i){t(n,i,e)}},vs=function(e){function t(t){var n=e.call(this)||this;return n.layoutService=t,n.contextView=n._register(new hs(t.container)),n.layout(),n._register(t.onLayout(function(){return n.layout()})),n}return fs(t,e),t.prototype.setContainer=function(e){this.contextView.setContainer(e)},t.prototype.showContextView=function(e){this.contextView.show(e)},t.prototype.layout=function(){this.contextView.layout()},t.prototype.hideContextView=function(e){this.contextView.hide(e)},t=gs([ms(0,ps)],t),t}(q["a"]),_s=Object(at["c"])("dialogService"),bs=n("be5f");function ys(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}var ws,Cs=function(){function e(e){this._hashFn=e,this._nodes=Object.create(null)}return e.prototype.roots=function(){var e=[];return Object(bs["c"])(this._nodes,function(t){Object(ye["e"])(t.value.outgoing)&&e.push(t.value)}),e},e.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=i,i.incoming[this._hashFn(e)]=n},e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],Object(bs["c"])(this._nodes,function(e){delete e.value.outgoing[t],delete e.value.incoming[t]})},e.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n=ys(e),this._nodes[t]=n),n},e.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0},e.prototype.toString=function(){var e=[];return Object(bs["c"])(this._nodes,function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")}),e.join("\n")},e}(),Ss=n("af40"),Ls=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Os=!1,xs="function"===typeof Proxy,Ns=function(e){function t(t){var n=e.call(this,"cyclic dependency between services")||this;return n.message=t.toString(),n}return Ls(t,e),t}(Error),Ds=function(){function e(e,t,n){void 0===e&&(e=new xi["a"]),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(at["a"],this)}return e.prototype.createChild=function(t){return new e(t,this._strict,this)},e.prototype.invokeFunction=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=ks.traceInvocation(e),r=!1;try{var s={get:function(e,n){if(r)throw Object(_e["c"])("service accessor is only valid during the invocation of its target method");var i=t._getOrCreateServiceInstance(e,o);if(!i&&n!==at["d"])throw new Error("[invokeFunction] unknown service '"+e+"'");return i}};return e.apply(void 0,[s].concat(n))}finally{r=!0,o.stop()}},e.prototype.createInstance=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return e instanceof Ss["a"]?(t=ks.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(i),t)):(t=ks.traceCreation(e),n=this._createInstance(e,i,t)),t.stop(),n},e.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var i=at["b"].getServiceDependencies(e).sort(function(e,t){return e.index-t.index}),o=[],r=0,s=i;r<s.length;r++){var a=s[r],u=this._getOrCreateServiceInstance(a.id,n);if(!u&&this._strict&&!a.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");o.push(u)}var l=i.length>0?i[0].index:t.length;if(t.length!==l){console.warn("[createInstance] First service dependency of "+e.name+" at position "+(l+1)+" conflicts with "+t.length+" static arguments");var c=l-t.length;t=c>0?t.concat(new Array(c)):t.slice(0,l)}return new(e.bind.apply(e,[void 0].concat(t.concat(o))))},e.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof Ss["a"])this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}},e.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t},e.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof Ss["a"]?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)},e.prototype._createAndCacheServiceInstance=function(e,t,n){var i=new Cs(function(e){return e.id.toString()}),o=0,r=[{id:e,desc:t,_trace:n}];while(r.length){var s=r.pop();if(i.lookupOrInsertNode(s),o++>100)throw new Ns(i);for(var a=0,u=at["b"].getServiceDependencies(s.desc.ctor);a<u.length;a++){var l=u[a],c=this._getServiceInstanceOrDescriptor(l.id);if(c||l.optional||console.warn("[createInstance] "+e+" depends on "+l.id+" which is NOT registered."),c instanceof Ss["a"]){var d={id:l.id,desc:c,_trace:s._trace.branch(l.id,!0)};i.insertEdge(s,d),r.push(d)}}}while(1){var h=i.roots();if(0===h.length){if(!i.isEmpty())throw new Ns(i);break}for(var p=0,f=h;p<f.length;p++){var g=f[p].data,m=this._createServiceInstanceWithOwner(g.id,g.desc.ctor,g.desc.staticArguments,g.desc.supportsDelayedInstantiation,g._trace);this._setServiceInstance(g.id,m),i.removeNode(g)}}return this._getServiceInstanceOrDescriptor(e)},e.prototype._createServiceInstanceWithOwner=function(e,t,n,i,o){if(void 0===n&&(n=[]),this._services.get(e)instanceof Ss["a"])return this._createServiceInstance(t,n,i,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,o);throw new Error("illegalState - creating UNKNOWN service instance")},e.prototype._createServiceInstance=function(e,t,n,i){var o=this;if(void 0===t&&(t=[]),n&&xs){var r=new ve["b"](function(){return o._createInstance(e,t,i)});return new Proxy(Object.create(null),{get:function(e,t){return r.getValue()[t]},set:function(e,t,n){return r.getValue()[t]=n,!0}})}return this._createInstance(e,t,i)},e}(),ks=function(){function e(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}return e.traceInvocation=function(t){return Os?new e(1,t.name||t.toString().substring(0,42).replace(/\n/g,"")):e._None},e.traceCreation=function(t){return Os?new e(0,t.name):e._None},e.prototype.branch=function(t,n){var i=new e(2,t.toString());return this._dep.push([t,n,i]),i},e.prototype.stop=function(){var t=Date.now()-this._start;e._totals+=t;var n=!1;function i(e,t){for(var o=[],r=new Array(e+1).join("\t"),s=0,a=t._dep;s<a.length;s++){var u=a[s],l=u[0],c=u[1],d=u[2];if(c&&d){n=!0,o.push(r+"CREATES -> "+l);var h=i(e+1,d);h&&o.push(h)}else o.push(r+"uses -> "+l)}return o.join("\n")}var o=[(0===this.type?"CREATE":"CALL")+" "+this.name,""+i(1,this),"DONE, took "+t.toFixed(2)+"ms (grand total "+e._totals.toFixed(2)+"ms)"];(t>2||n)&&console.log(o.join("\n"))},e._None=new(function(e){function t(){return e.call(this,-1,null)||this}return Ls(t,e),t.prototype.stop=function(){},t.prototype.branch=function(){return this},t}(e)),e._totals=0,e}(),Is=n("47cb"),Es=n("93d9"),Ms=n("b400");(function(e){function t(e,t,n){if(e[t])return e[t][n]}function n(e,t,n,i){e[t]||(e[t]=Object.create(null)),e[t][n]=i}function i(e,t,n){return!(!e[t]||!e[t][n])&&(delete e[t][n],Object(ye["e"])(e[t])&&delete e[t],!0)}e.get=t,e.set=n,e.remove=i})(ws||(ws={}));var Ts=function(){function e(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}return e.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},e.prototype._update=function(e){if(this._data)for(var t=0,n=e;t<n.length;t++){var i=n[t],o=i.toString(),r=this._data[o];r&&this._substract(r);var s=this._resourceStats(i);this._add(s),this._data[o]=s}},e.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Y["b"].inMemory||e.scheme===Y["b"].walkThrough||e.scheme===Y["b"].walkThroughSnippet)return t;for(var n=0,i=this._service.read({resource:e});n<i.length;n++){var o=i[n].severity;o===Ms["c"].Error?t.errors+=1:o===Ms["c"].Warning?t.warnings+=1:o===Ms["c"].Info?t.infos+=1:t.unknowns+=1}return t},e.prototype._substract=function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns},e.prototype._add=function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns},e}(),Ps=function(){function e(){this._onMarkerChanged=new R["a"],this._onMarkerChangedEvent=R["b"].debounce(this._onMarkerChanged.event,e._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new Ts(this)}return e.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(e.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),e.prototype.remove=function(e,t){for(var n=0,i=t||[];n<i.length;n++){var o=i[n];this.changeOne(e,o,[])}},e.prototype.changeOne=function(t,n,i){if(Object(Me["m"])(i)){var o=ws.remove(this._byResource,n.toString(),t),r=ws.remove(this._byOwner,t,n.toString());if(o!==r)throw new Error("invalid marker service state");o&&r&&this._onMarkerChanged.fire([n])}else{for(var s=[],a=0,u=i;a<u.length;a++){var l=u[a],c=e._toMarker(t,n,l);c&&s.push(c)}ws.set(this._byResource,n.toString(),t,s),ws.set(this._byOwner,t,n.toString(),s),this._onMarkerChanged.fire([n])}},e._toMarker=function(e,t,n){var i=n.code,o=n.severity,r=n.message,s=n.source,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn,d=n.relatedInformation,h=n.tags;if(r)return a=a>0?a:1,u=u>0?u:1,l=l>=a?l:a,c=c>0?c:u,{resource:t,owner:e,code:i,severity:o,message:r,source:s,startLineNumber:a,startColumn:u,endLineNumber:l,endColumn:c,relatedInformation:d,tags:h}},e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,i=t.resource,o=t.severities,r=t.take;if((!r||r<0)&&(r=-1),n&&i){var s=ws.get(this._byResource,i.toString(),n);if(s){for(var a=[],u=0,l=s;u<l.length;u++){var c=l[u];if(e._accept(c,o)){var d=a.push(c);if(r>0&&d===r)break}}return a}return[]}if(n||i){var h=n?this._byOwner[n]:i?this._byResource[i.toString()]:void 0;if(!h)return[];a=[];for(var p in h)for(var f=0,g=h[p];f<g.length;f++){s=g[f];if(e._accept(s,o)){d=a.push(s);if(r>0&&d===r)return a}}return a}var a=[];for(var m in this._byResource)for(var v in this._byResource[m])for(var _=0,b=this._byResource[m][v];_<b.length;_++){var s=b[_];if(e._accept(s,o)){var d=a.push(s);if(r>0&&d===r)return a}}return a},e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var i=0,o=n;i<o.length;i++){var r=o[i];void 0===e._dedupeMap[r.toString()]&&(e._dedupeMap[r.toString()]=!0,t.push(r))}return t},e}(),Rs=n("b539"),As=n("03e8"),Fs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),js=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Ws=function(e,t){return function(n,i){t(n,i,e)}},Vs=function(){function e(e){this._commandService=e}return e.prototype.createMenu=function(e,t){return new Bs(e,this._commandService,t)},e=js([Ws(0,Q["b"])],e),e}(),Bs=function(e){function t(t,n,i){var o=e.call(this)||this;return o._id=t,o._commandService=n,o._contextKeyService=i,o._onDidChange=o._register(new R["a"]),o._build(),o._register(R["b"].debounce(R["b"].filter(Qi["c"].onDidChangeMenu,function(e){return e===o._id}),function(){},50)(o._build,o)),o._register(R["b"].debounce(o._contextKeyService.onDidChangeContext,function(e,t){return e||t.affectsSome(o._contextKeys)},50)(function(e){return e&&o._onDidChange.fire(void 0)},o)),o}return Fs(t,e),t.prototype._build=function(){this._menuGroups=[],this._contextKeys=new Set;var e,n=Qi["c"].getMenuItems(this._id);n.sort(t._compareMenuItems);for(var i=0,o=n;i<o.length;i++){var r=o[i],s=r.group||"";e&&e[0]===s||(e=[s,[]],this._menuGroups.push(e)),e[1].push(r),t._fillInKbExprKeys(r.when,this._contextKeys),Object(Qi["e"])(r)&&r.command.precondition&&t._fillInKbExprKeys(r.command.precondition,this._contextKeys),Object(Qi["e"])(r)&&r.command.toggled&&t._fillInKbExprKeys(r.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},t.prototype.getActions=function(e){for(var t=[],n=0,i=this._menuGroups;n<i.length;n++){for(var o=i[n],r=o[0],s=o[1],a=[],u=0,l=s;u<l.length;u++){var c=l[u];if(this._contextKeyService.contextMatchesRules(c.when)){var d=Object(Qi["e"])(c)?new Qi["b"](c.command,c.alt,e,this._contextKeyService,this._commandService):new Qi["d"](c);a.push(d)}}a.length>0&&t.push([r,a])}return t},t._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();n<i.length;n++){var o=i[n];t.add(o)}},t._compareMenuItems=function(e,t){var n=e.group,i=t.group;if(n!==i){if(!n)return 1;if(!i)return-1;if("navigation"===n)return-1;if("navigation"===i)return 1;var o=n.localeCompare(i);if(0!==o)return o}var r=e.order||0,s=t.order||0;if(r<s)return-1;if(r>s)return 1;var a="string"===typeof e.command.title?e.command.title:e.command.title.value,u="string"===typeof t.command.title?t.command.title:t.command.title.value;return a.localeCompare(u)},t=js([Ws(1,Q["b"]),Ws(2,yn["c"])],t),t}(q["a"]),Hs=n("efdb"),zs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Us=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Ks=function(e,t){return function(n,i){t(n,i,e)}};function qs(e){return e.toString()}var Gs,Zs=function(e){function t(t){var n=e.call(this)||this;return n.model=t,n._markersData=new Map,n._register(Object(q["h"])(function(){n.model.deltaDecorations(Object(dn["d"])(n._markersData),[]),n._markersData.clear()})),n}return zs(t,e),t.prototype.update=function(e,t){for(var n=this.model.deltaDecorations(Object(dn["d"])(this._markersData),t),i=0;i<n.length;i++)this._markersData.set(n[i],e[i])},t.prototype.getMarker=function(e){return this._markersData.get(e.id)},t}(q["a"]),Ys=function(e){function t(t,n){var i=e.call(this)||this;return i._markerService=n,i._onDidChangeMarker=i._register(new R["a"]),i._markerDecorations=new Map,t.getModels().forEach(function(e){return i._onModelAdded(e)}),i._register(t.onModelAdded(i._onModelAdded,i)),i._register(t.onModelRemoved(i._onModelRemoved,i)),i._register(i._markerService.onMarkerChanged(i._handleMarkerChange,i)),i}return zs(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._markerDecorations.forEach(function(e){return e.dispose()}),this._markerDecorations.clear()},t.prototype.getMarker=function(e,t){var n=this._markerDecorations.get(qs(e.uri));return n?Object(ye["n"])(n.getMarker(t)):null},t.prototype._handleMarkerChange=function(e){var t=this;e.forEach(function(e){var n=t._markerDecorations.get(qs(e));n&&t._updateDecorations(n)})},t.prototype._onModelAdded=function(e){var t=new Zs(e);this._markerDecorations.set(qs(e.uri),t),this._updateDecorations(t)},t.prototype._onModelRemoved=function(e){var t=this,n=this._markerDecorations.get(qs(e.uri));n&&(n.dispose(),this._markerDecorations.delete(qs(e.uri))),e.uri.scheme!==Y["b"].inMemory&&e.uri.scheme!==Y["b"].internal&&e.uri.scheme!==Y["b"].vscode||this._markerService&&this._markerService.read({resource:e.uri}).map(function(e){return e.owner}).forEach(function(n){return t._markerService.remove(n,[e.uri])})},t.prototype._updateDecorations=function(e){var t=this,n=this._markerService.read({resource:e.model.uri,take:500}),i=n.map(function(n){return{range:t._createDecorationRange(e.model,n),options:t._createDecorationOption(n)}});e.update(n,i),this._onDidChangeMarker.fire(e.model)},t.prototype._createDecorationRange=function(e,t){var n=W["a"].lift(t);if(t.severity===Ms["c"].Hint&&(t.tags&&-1!==t.tags.indexOf(1)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2))),n=e.validateRange(n),n.isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new W["a"](n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn);else{var o=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===o||(n=n.endColumn>=o?new W["a"](n.startLineNumber,o-1,n.endLineNumber,o):new W["a"](n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r<n.endColumn&&(n=new W["a"](n.startLineNumber,r,n.endLineNumber,n.endColumn),t.startColumn=r)}return n},t.prototype._createDecorationOption=function(e){var t,n,i=void 0,o=void 0;switch(e.severity){case Ms["c"].Hint:t=e.tags&&e.tags.indexOf(1)>=0?"squiggly-unnecessary":"squiggly-hint",n=0;break;case Ms["c"].Warning:t="squiggly-warning",i=Object(pi["g"])(di["r"]),n=20;break;case Ms["c"].Info:t="squiggly-info",i=Object(pi["g"])(di["q"]),n=10;break;case Ms["c"].Error:default:t="squiggly-error",i=Object(pi["g"])(di["p"]),n=30;break}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:i,position:he["d"].Right},zIndex:n,inlineClassName:o}},t=Us([Ks(0,st["a"]),Ks(1,Ms["b"])],t),t}(q["a"]),Xs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Qs=function(e,t){return function(n,i){t(n,i,e)}},Js=function(e){function t(t,n){var i=e.call(this)||this;return i._contextKeyService=t,i._configurationService=n,i._onDidChangeAccessibilitySupport=new R["a"],i.onDidChangeAccessibilitySupport=i._onDidChangeAccessibilitySupport.event,i._accessibilityModeEnabledContext=eo["a"].bindTo(i._contextKeyService),i._register(i._configurationService.onDidChangeConfiguration(function(e){e.affectsConfiguration("editor.accessibilitySupport")&&i._updateContextKey()})),i._updateContextKey(),i.onDidChangeAccessibilitySupport(function(){return i._updateContextKey()}),i}return Xs(t,e),t.prototype._updateContextKey=function(){var e=2===this.getAccessibilitySupport(),t=this._configurationService.getValue("editor.accessibilitySupport");this._accessibilityModeEnabledContext.set("on"===t||"auto"===t&&e)},t=$s([Qs(0,yn["c"]),Qs(1,cn["a"])],t),t}(q["a"]),ea=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ta=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},na=function(e,t){return function(n,i){t(n,i,e)}},ia=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.contextKeyService=t,i.configurationService=n,i._accessibilitySupport=0,i}return ea(t,e),t.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},t=ta([na(0,yn["c"]),na(1,cn["a"])],t),t}(Js),oa=n("f5f3"),ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){var t=new xi["a"],n=function(){function e(e,t){this._serviceId=e,this._factory=t,this._value=null}return Object.defineProperty(e.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),e.prototype.get=function(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value},e}();e.LazyStaticService=n;var i=[];function o(e,t){var o=new n(e,t);return i.push(o),o}function r(e){for(var t=new xi["a"],n=0,o=Object(oa["a"])();n<o.length;n++){var r=o[n],s=r[0],a=r[1];t.set(s,a)}for(var u in e)e.hasOwnProperty(u)&&t.set(Object(at["c"])(u),e[u]);i.forEach(function(n){return t.set(n.id,n.get(e))});var l=new Ds(t,!0);return t.set(at["a"],l),[t,l]}e.init=r,e.instantiationService=o(at["a"],function(){return new Ds(t,!0)});var s=new Kn;e.configurationService=o(cn["a"],function(){return s}),e.resourceConfigurationService=o(ut,function(){return new qn(s)}),e.resourcePropertiesService=o(lt,function(){return new Gn(s)}),e.contextService=o(En["a"],function(){return new Yn}),e.labelService=o(Is["a"],function(){return new Qn}),e.telemetryService=o(os["a"],function(){return new Zn}),e.dialogService=o(_s,function(){return new Vn}),e.notificationService=o(In["a"],function(){return new Bn}),e.markerService=o(Ms["b"],function(){return new Ps}),e.modeService=o(po["a"],function(e){return new Po}),e.modelService=o(st["a"],function(t){return new Bo(e.configurationService.get(t),e.resourcePropertiesService.get(t))}),e.markerDecorationsService=o(Hs["a"],function(t){return new Ys(e.modelService.get(t),e.markerService.get(t))}),e.standaloneThemeService=o($i["a"],function(){return new kr}),e.codeEditorService=o(U["a"],function(t){return new er(e.standaloneThemeService.get(t))}),e.editorProgressService=o(Rs["a"],function(){return new Wn}),e.storageService=o(As["a"],function(){return new As["b"]}),e.logService=o(ct["a"],function(){return new ct["b"]}),e.editorWorkerService=o(ge["a"],function(t){return new _t(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t))})})(Gs||(Gs={}));var sa=function(e){function t(t,n){var i=e.call(this)||this,o=Gs.init(n),r=o[0],s=o[1];i._serviceCollection=r,i._instantiationService=s;var a=i.get(cn["a"]),u=i.get(In["a"]),l=i.get(os["a"]),c=i.get(pi["c"]),d=function(e,t){var o=null;return n&&(o=n[e.toString()]),o||(o=t()),i._serviceCollection.set(e,o),o},h=d(yn["c"],function(){return i._register(new Hr(a))});d(eo["b"],function(){return new ia(h,a)}),d(Es["a"],function(){return new Es["b"](h)});var p=d(Q["b"],function(){return new Hn(i._instantiationService)}),f=d(Ji["a"],function(){return i._register(new zn(h,p,l,u,t))}),g=d(ps,function(){return new Jn(t)}),m=d(Ni["b"],function(){return i._register(new vs(g))});return d(Ni["a"],function(){var e=new us(l,u,m,f,c);return e.configure({blockMouse:!1}),i._register(e)}),d(Qi["a"],function(){return new Vs(p)}),d(ho["a"],function(){return new $n(Gs.modelService.get(st["a"]))}),i}return ra(t,e),t.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t},t.prototype.set=function(e,t){this._serviceCollection.set(e,t)},t.prototype.has=function(e){return this._serviceCollection.has(e)},t}(q["a"]),aa=n("5bd7");function ua(e,t,n){var i=new sa(e,t),o=null;i.has(me["a"])||(o=new jn,i.set(me["a"],o)),i.has(aa["a"])||i.set(aa["a"],new oe(i.get(U["a"]),i.get(Q["b"])));var r=n(i);return o&&o.setEditor(r),r}function la(e,t,n){return ua(e,n||{},function(n){return new lo(e,t,n,n.get(at["a"]),n.get(U["a"]),n.get(Q["b"]),n.get(yn["c"]),n.get(Ji["a"]),n.get(Ni["b"]),n.get($i["a"]),n.get(In["a"]),n.get(cn["a"]),n.get(eo["b"]))})}function ca(e){return Gs.codeEditorService.get().onCodeEditorAdd(function(t){e(t)})}function da(e,t,n){return ua(e,n||{},function(n){return new co(e,t,n,n.get(at["a"]),n.get(yn["c"]),n.get(Ji["a"]),n.get(Ni["b"]),n.get(ge["a"]),n.get(U["a"]),n.get($i["a"]),n.get(In["a"]),n.get(cn["a"]),n.get(Ni["a"]),null)})}function ha(e,t){return new le(e,t)}function pa(e,t,n){return Gs.modelService.get().createModel(e,t,n)}function fa(e,t,n){if(e=e||"",!t){var i=e.indexOf("\n"),o=e;return-1!==i&&(o=e.substring(0,i)),pa(e,Gs.modeService.get().createByFilepathOrFirstLine(n||null,o),n)}return pa(e,Gs.modeService.get().create(t),n)}function ga(e,t){Gs.modelService.get().setMode(e,Gs.modeService.get().create(t))}function ma(e,t,n){e&&Gs.markerService.get().changeOne(t,e.uri,n)}function va(e){return Gs.markerService.get().read(e)}function _a(e){return Gs.modelService.get().getModel(e)}function ba(){return Gs.modelService.get().getModels()}function ya(e){return Gs.modelService.get().onModelAdded(e)}function wa(e){return Gs.modelService.get().onModelRemoved(e)}function Ca(e){return Gs.modelService.get().onModelModeChanged(function(t){e({model:t.model,oldLanguage:t.oldModeId})})}function Sa(e){return xt(Gs.modelService.get(),e)}function La(e,t){return en.colorizeElement(Gs.standaloneThemeService.get(),Gs.modeService.get(),e,t)}function Oa(e,t,n){return en.colorize(Gs.modeService.get(),e,t,n)}function xa(e,t,n){return void 0===n&&(n=4),en.colorizeModelLine(e,t,n)}function Na(e){var t=pe["y"].get(e);return t||{getInitialState:function(){return fe["c"]},tokenize:function(t,n,i){return Object(fe["d"])(e,t,n,i)}}}function Da(e,t){var n=Gs.modeService.get();n.triggerMode(t);for(var i=Na(t),o=e.split(/\r\n|\r|\n/),r=[],s=i.getInitialState(),a=0,u=o.length;a<u;a++){var l=o[a],c=i.tokenize(l,s,0);r[a]=c.tokens,s=c.endState}return r}function ka(e,t){Gs.standaloneThemeService.get().defineTheme(e,t)}function Ia(e){Gs.standaloneThemeService.get().setTheme(e)}function Ea(){Object(ri["b"])()}function Ma(){return{create:la,onDidCreateEditor:ca,createDiffEditor:da,createDiffNavigator:ha,createModel:fa,setModelLanguage:ga,setModelMarkers:ma,getModelMarkers:va,getModels:ba,getModel:_a,onDidCreateModel:ya,onWillDisposeModel:wa,onDidChangeModelLanguage:Ca,createWebWorker:Sa,colorizeElement:La,colorize:Oa,colorizeModelLine:xa,tokenize:Da,defineTheme:ka,setTheme:Ia,remeasureFonts:Ea,ScrollbarVisibility:a,WrappingIndent:v,OverviewRulerLane:u,MinimapPosition:l,EndOfLinePreference:c,DefaultEndOfLine:d,EndOfLineSequence:h,TrackedRangeStickiness:p,CursorChangeReason:g,MouseTargetType:S,TextEditorCursorStyle:b,TextEditorCursorBlinkingStyle:_,ContentWidgetPositionPreference:w,OverlayWidgetPositionPreference:C,RenderMinimap:m,ScrollType:f,RenderLineNumbersType:y,InternalEditorOptions:T["e"],BareFontInfo:ce["a"],FontInfo:ce["b"],TextModelResolvedOptions:he["e"],FindMatch:he["b"],EditorType:de["a"]}}function Ta(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(var n=0,i=t;n<i.length;n++){var o=i[n];if(!e(o))return!1}return!0}function Pa(e,t){return"boolean"===typeof e?e:t}function Ra(e,t){return"string"===typeof e?e:t}function Aa(e){for(var t={},n=0,i=e;n<i.length;n++){var o=i[n];t[o]=!0}return t}function Fa(e,t){void 0===t&&(t=!1),t&&(e=e.map(function(e){return e.toLowerCase()}));var n=Aa(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function ja(e,t){var n=0;while(t.indexOf("@")>=0&&n<5)n++,t=t.replace(/@(\w+)/g,function(n,i){var o="";if("string"===typeof e[i])o=e[i];else{if(!(e[i]&&e[i]instanceof RegExp))throw void 0===e[i]?Wt(e,"language definition does not contain attribute '"+i+"', used at: "+t):Wt(e,"attribute reference '"+i+"' must be a string, used at: "+t);o=e[i].source}return Rt(o)?"":"(?:"+o+")"});return new RegExp(t,e.ignoreCase?"i":"")}function Wa(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i-=100;var o=n.split(".");if(o.unshift(n),i<o.length)return o[i]}return null}function Va(e,t,n,i){var o=-1,r=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(o=parseInt(s[3]),s[2]&&(o+=100)),r=s[4]);var a,u="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?u="==":(s=r.match(/^(@|!@|~|!~|==|!=)(.*)$/),s&&(u=s[1],l=s[2])):(u="!=",l=""),"~"!==u&&"!~"!==u||!/^(\w|\|)*$/.test(l))if("@"===u||"!@"===u){var c=e[l];if(!c)throw Wt(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!Ta(function(e){return"string"===typeof e},c))throw Wt(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);var d=Fa(c,e.ignoreCase);a=function(e){return"@"===u?d(e):!d(e)}}else if("~"===u||"!~"===u)if(l.indexOf("$")<0){var h=ja(e,"^"+l+"$");a=function(e){return"~"===u?h.test(e):!h.test(e)}}else a=function(t,n,i,o){var r=ja(e,"^"+Vt(e,l,n,i,o)+"$");return r.test(t)};else if(l.indexOf("$")<0){var p=At(e,l);a=function(e){return"=="===u?e===p:e!==p}}else{var f=At(e,l);a=function(t,n,i,o,r){var s=Vt(e,f,n,i,o);return"=="===u?t===s:t!==s}}else{var g=Fa(l.split("|"),e.ignoreCase);a=function(e){return"~"===u?g(e):!g(e)}}return-1===o?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){var r=Wa(e,t,n,o);return a(r||"",e,t,n,i)}}}function Ba(e,t,n){if(n){if("string"===typeof n)return n;if(n.token||""===n.token){if("string"!==typeof n.token)throw Wt(e,"a 'token' attribute must be of type string, in rule: "+t);var i={token:n.token};if(n.token.indexOf("$")>=0&&(i.tokenSubst=!0),"string"===typeof n.bracket)if("@open"===n.bracket)i.bracket=1;else{if("@close"!==n.bracket)throw Wt(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);i.bracket=-1}if(n.next){if("string"!==typeof n.next)throw Wt(e,"the next state must be a string value in rule: "+t);var o=n.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!Ht(e,Vt(e,o,"",[],""))))throw Wt(e,"the next state '"+n.next+"' is not defined in rule: "+t);i.next=o}return"number"===typeof n.goBack&&(i.goBack=n.goBack),"string"===typeof n.switchTo&&(i.switchTo=n.switchTo),"string"===typeof n.log&&(i.log=n.log),"string"===typeof n.nextEmbedded&&(i.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),i}if(Array.isArray(n)){for(var r=[],s=0,a=n.length;s<a;s++)r[s]=Ba(e,t,n[s]);return{group:r}}if(n.cases){var u=[];for(var l in n.cases)if(n.cases.hasOwnProperty(l)){var c=Ba(e,t,n.cases[l]);"@default"===l||"@"===l||""===l?u.push({test:void 0,value:c,name:l}):"@eos"===l?u.push({test:function(e,t,n,i){return i},value:c,name:l}):u.push(Va(e,t,l,c))}var d=e.defaultToken;return{test:function(e,t,n,i){for(var o=0,r=u;o<r.length;o++){var s=r[o],a=!s.test||s.test(e,t,n,i);if(a)return s.value}return d}}}throw Wt(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}var Ha=function(){function e(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}return e.prototype.setRegex=function(e,t){var n;if("string"===typeof t)n=t;else{if(!(t instanceof RegExp))throw Wt(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=ja(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},e.prototype.setAction=function(e,t){this.action=Ba(e,this.name,t)},e}();function za(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=e,n.noThrow=!1,n.maxStack=100,n.start="string"===typeof t.start?t.start:null,n.ignoreCase=Pa(t.ignoreCase,!1),n.tokenPostfix=Ra(t.tokenPostfix,"."+n.languageId),n.defaultToken=Ra(t.defaultToken,"source"),n.usesEmbedded=!1;var i=t;function o(e,r,s){for(var a=0,u=s;a<u.length;a++){var l=u[a],c=l.include;if(c){if("string"!==typeof c)throw Wt(n,"an 'include' attribute must be a string at: "+e);if("@"===c[0]&&(c=c.substr(1)),!t.tokenizer[c])throw Wt(n,"include target '"+c+"' is not defined at: "+e);o(e+"."+c,r,t.tokenizer[c])}else{var d=new Ha(e);if(Array.isArray(l)&&l.length>=1&&l.length<=3)if(d.setRegex(i,l[0]),l.length>=3)if("string"===typeof l[1])d.setAction(i,{token:l[1],next:l[2]});else{if("object"!==typeof l[1])throw Wt(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);var h=l[1];h.next=l[2],d.setAction(i,h)}else d.setAction(i,l[1]);else{if(!l.regex)throw Wt(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);l.name&&"string"===typeof l.name&&(d.name=l.name),l.matchOnlyAtStart&&(d.matchOnlyAtLineStart=Pa(l.matchOnlyAtLineStart,!1)),d.setRegex(i,l.regex),d.setAction(i,l.action)}r.push(d)}}}if(i.languageId=e,i.ignoreCase=n.ignoreCase,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw Wt(n,"a language definition must define the 'tokenizer' attribute as an object");for(var r in n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(r)){n.start||(n.start=r);var s=t.tokenizer[r];n.tokenizer[r]=new Array,o("tokenizer."+r,n.tokenizer[r],s)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw Wt(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var a=[],u=0,l=t.brackets;u<l.length;u++){var c=l[u],d=c;if(d&&Array.isArray(d)&&3===d.length&&(d={token:d[2],open:d[0],close:d[1]}),d.open===d.close)throw Wt(n,"open and close brackets in a 'brackets' attribute must be different: "+d.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof d.open||"string"!==typeof d.token||"string"!==typeof d.close)throw Wt(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");a.push({token:d.token+n.tokenPostfix,open:At(n,d.open),close:At(n,d.close)})}return n.brackets=a,n.noThrow=!0,n}function Ua(e){No["a"].registerLanguage(e)}function Ka(){var e=[];return e=e.concat(No["a"].getLanguages()),e}function qa(e){var t=Gs.modeService.get().getLanguageIdentifier(e);return t?t.id:0}function Ga(e,t){var n=Gs.modeService.get().onDidCreateMode(function(i){i.getId()===e&&(n.dispose(),t())});return n}function Za(e,t){var n=Gs.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return Ee["a"].register(n,t)}var Ya=function(){function e(e){this._actual=e}return e.prototype.getInitialState=function(){return this._actual.getInitialState()},e.prototype.tokenize=function(e,t,n){throw new Error("Not supported!")},e.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new B["c"](n.tokens,n.endState)},e}(),Xa=function(){function e(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}return e.prototype.getInitialState=function(){return this._actual.getInitialState()},e.prototype._toClassicTokens=function(e,t,n){for(var i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r],u=a.startIndex;0===r?u=0:u<o&&(u=o),i[r]=new B["a"](u+n,a.scopes,t),o=u}return i},e.prototype.tokenize=function(e,t,n){var i,o=this._actual.tokenize(e,t),r=this._toClassicTokens(o.tokens,this._languageIdentifier.language,n);return i=o.endState.equals(t)?t:o.endState,new B["b"](r,i)},e.prototype._toBinaryTokens=function(e,t){for(var n=this._languageIdentifier.id,i=this._standaloneThemeService.getTheme().tokenTheme,o=[],r=0,s=0,a=0,u=e.length;a<u;a++){var l=e[a],c=i.match(n,l.scopes);if(!(r>0&&o[r-1]===c)){var d=l.startIndex;0===a?d=0:d<s&&(d=s),o[r++]=d+t,o[r++]=c,s=d}}var h=new Uint32Array(r);for(a=0;a<r;a++)h[a]=o[a];return h},e.prototype.tokenize2=function(e,t,n){var i,o=this._actual.tokenize(e,t),r=this._toBinaryTokens(o.tokens,n);return i=o.endState.equals(t)?t:o.endState,new B["c"](r,i)},e}();function $a(e){return"tokenizeEncoded"in e}function Qa(e){return e&&"function"===typeof e.then}function Ja(e,t){var n=Gs.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);var i=function(e){return $a(e)?new Ya(e):new Xa(Gs.standaloneThemeService.get(),n,e)};return Qa(t)?pe["y"].registerPromise(e,t.then(function(e){return i(e)})):pe["y"].register(e,i(t))}function eu(e,t){var n=function(t){return Jt(Gs.modeService.get(),Gs.standaloneThemeService.get(),e,za(e,t))};return Qa(t)?pe["y"].registerPromise(e,t.then(function(e){return n(e)})):pe["y"].register(e,n(t))}function tu(e,t){return pe["s"].register(e,t)}function nu(e,t){return pe["t"].register(e,t)}function iu(e,t){return pe["v"].register(e,t)}function ou(e,t){return pe["n"].register(e,{provideHover:function(e,n,i){var o=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then(function(e){if(e)return!e.range&&o&&(e.range=new W["a"](n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)),e.range||(e.range=new W["a"](n.lineNumber,n.column,n.lineNumber,n.column)),e})}})}function ru(e,t){return pe["k"].register(e,t)}function su(e,t){return pe["i"].register(e,t)}function au(e,t){return pe["f"].register(e,t)}function uu(e,t){return pe["o"].register(e,t)}function lu(e,t){return pe["z"].register(e,t)}function cu(e,t){return pe["b"].register(e,t)}function du(e,t){return pe["a"].register(e,{provideCodeActions:function(e,n,i,o){var r=Gs.markerService.get().read({resource:e.uri}).filter(function(e){return W["a"].areIntersectingOrTouching(e,n)});return t.provideCodeActions(e,n,{markers:r,only:i.only},o)}})}function hu(e,t){return pe["g"].register(e,t)}function pu(e,t){return pe["j"].register(e,t)}function fu(e,t){return pe["r"].register(e,t)}function gu(e,t){return pe["q"].register(e,t)}function mu(e,t){return pe["d"].register(e,t)}function vu(e,t){return pe["c"].register(e,t)}function _u(e,t){return pe["m"].register(e,t)}function bu(e,t){return pe["e"].register(e,t)}function yu(e,t){return pe["u"].register(e,t)}function wu(){return{register:Ua,getLanguages:Ka,onLanguage:Ga,getEncodedLanguageId:qa,setLanguageConfiguration:Za,setTokensProvider:Ja,setMonarchTokensProvider:eu,registerReferenceProvider:tu,registerRenameProvider:nu,registerCompletionItemProvider:mu,registerSignatureHelpProvider:iu,registerHoverProvider:ou,registerDocumentSymbolProvider:ru,registerDocumentHighlightProvider:su,registerDefinitionProvider:au,registerImplementationProvider:uu,registerTypeDefinitionProvider:lu,registerCodeLensProvider:cu,registerCodeActionProvider:du,registerDocumentFormattingEditProvider:hu,registerDocumentRangeFormattingEditProvider:pu,registerOnTypeFormattingEditProvider:fu,registerLinkProvider:gu,registerColorProvider:vu,registerFoldingRangeProvider:_u,registerDeclarationProvider:bu,registerSelectionRangeProvider:yu,DocumentHighlightKind:I,CompletionItemKind:O,CompletionItemTag:x,CompletionItemInsertTextRule:N,SymbolKind:E,SymbolTag:M,IndentAction:L,CompletionTriggerKind:D,SignatureHelpTriggerKind:k,FoldingRangeKind:pe["l"]}}n.d(t,"CancellationTokenSource",function(){return Lu}),n.d(t,"Emitter",function(){return Ou}),n.d(t,"KeyCode",function(){return xu}),n.d(t,"KeyMod",function(){return Nu}),n.d(t,"Position",function(){return Du}),n.d(t,"Range",function(){return ku}),n.d(t,"Selection",function(){return Iu}),n.d(t,"SelectionDirection",function(){return Eu}),n.d(t,"MarkerSeverity",function(){return Mu}),n.d(t,"MarkerTag",function(){return Tu}),n.d(t,"Uri",function(){return Pu}),n.d(t,"Token",function(){return Ru}),n.d(t,"editor",function(){return Au}),n.d(t,"languages",function(){return Fu});var Cu=self;T["a"].wrappingIndent=0,T["a"].viewInfo.glyphMargin=!1,T["a"].autoIndent=!1;var Su=z();Su.editor=Ma(),Su.languages=wu();var Lu=Su.CancellationTokenSource,Ou=Su.Emitter,xu=Su.KeyCode,Nu=Su.KeyMod,Du=Su.Position,ku=Su.Range,Iu=Su.Selection,Eu=Su.SelectionDirection,Mu=Su.MarkerSeverity,Tu=Su.MarkerTag,Pu=Su.Uri,Ru=Su.Token,Au=Su.editor,Fu=Su.languages;Cu.monaco=Su,"undefined"!==typeof Cu.require&&"function"===typeof Cu.require.config&&Cu.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},f577:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("0a0f"),o=Object(i["c"])("clipboardService")},f58f:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(e,t,n,i,o,r){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=o,this._contextKeyService=r}return e.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},e.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e||Promise.resolve(void 0)},e}()},f5f3:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var i=n("af40"),o=[];function r(e,t,n){o.push([e,new i["a"](t,[],n)])}function s(){return o}},f85a:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("2e5d"),o=n("7061"),r=n("6a89"),s=function(){function e(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}return e}(),a=function(){function e(){}return e.left=function(e,t,n,o){return o>t.getLineMinColumn(n)?i["a"].isLowSurrogate(t,n,o-2)?o-=2:o-=1:n>1&&(n-=1,o=t.getLineMaxColumn(n)),new s(n,o,0)},e.moveLeft=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.startLineNumber,a=i.selection.startColumn;else{var u=e.left(t,n,i.position.lineNumber,i.position.column-(r-1));s=u.lineNumber,a=u.column}return i.move(o,s,a,0)},e.right=function(e,t,n,o){return o<t.getLineMaxColumn(n)?i["a"].isHighSurrogate(t,n,o-1)?o+=2:o+=1:n<t.getLineCount()&&(n+=1,o=t.getLineMinColumn(n)),new s(n,o,0)},e.moveRight=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.endLineNumber,a=i.selection.endColumn;else{var u=e.right(t,n,i.position.lineNumber,i.position.column+(r-1));s=u.lineNumber,a=u.column}return i.move(o,s,a,0)},e.down=function(e,t,n,o,r,a,u){var l=i["a"].visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize)+r;n+=a;var c=t.getLineCount();return n>c?(n=c,u?o=t.getLineMaxColumn(n):(o=Math.min(t.getLineMaxColumn(n),o),i["a"].isInsideSurrogatePair(t,n,o)&&(o-=1))):(o=i["a"].columnFromVisibleColumn2(e,t,n,l),i["a"].isInsideSurrogatePair(t,n,o)&&(o-=1)),r=l-i["a"].visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize),new s(n,o,r)},e.moveDown=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.down(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateDown=function(t,n,s){var a=s.selection,u=e.down(t,n,a.selectionStartLineNumber,a.selectionStartColumn,s.selectionStartLeftoverVisibleColumns,1,!1),l=e.down(t,n,a.positionLineNumber,a.positionColumn,s.leftoverVisibleColumns,1,!1);return new i["f"](new r["a"](u.lineNumber,u.column,u.lineNumber,u.column),u.leftoverVisibleColumns,new o["a"](l.lineNumber,l.column),l.leftoverVisibleColumns)},e.up=function(e,t,n,o,r,a,u){var l=i["a"].visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize)+r;return n-=a,n<1?(n=1,u?o=t.getLineMinColumn(n):(o=Math.min(t.getLineMaxColumn(n),o),i["a"].isInsideSurrogatePair(t,n,o)&&(o-=1))):(o=i["a"].columnFromVisibleColumn2(e,t,n,l),i["a"].isInsideSurrogatePair(t,n,o)&&(o-=1)),r=l-i["a"].visibleColumnFromColumn(t.getLineContent(n),o,e.tabSize),new s(n,o,r)},e.moveUp=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.up(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateUp=function(t,n,s){var a=s.selection,u=e.up(t,n,a.selectionStartLineNumber,a.selectionStartColumn,s.selectionStartLeftoverVisibleColumns,1,!1),l=e.up(t,n,a.positionLineNumber,a.positionColumn,s.leftoverVisibleColumns,1,!1);return new i["f"](new r["a"](u.lineNumber,u.column,u.lineNumber,u.column),u.leftoverVisibleColumns,new o["a"](l.lineNumber,l.column),l.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,i){var o,r=n.position.lineNumber,s=t.getLineMinColumn(r),a=t.getLineFirstNonWhitespaceColumn(r)||s,u=n.position.column;return o=u===a?s:a,n.move(i,r,o,0)},e.moveToEndOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,i){var o=t.getLineCount(),r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e}()},fb71:function(e,t,n){"use strict";n.d(t,"a",function(){return _}),n.d(t,"b",function(){return b});var i=n("30db"),o=n("fd49"),r=n("62bd"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=i["d"]?1.5:1.35,u=8,l=100,c=8,d=150,h=-5,p=20;function f(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;var n=parseFloat(e);return isNaN(n)?t:n}function g(e,t){if("number"===typeof e)return Math.round(e);if("undefined"===typeof e)return t;var n=parseInt(e);return isNaN(n)?t:n}function m(e,t,n){return e<t?t:e>n?n:e}function v(e,t){return"string"!==typeof e?t:e}var _=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromRawSettings=function(t,n,i){void 0===i&&(i=!1);var s=v(t.fontFamily,o["b"].fontFamily),_=v(t.fontWeight,o["b"].fontWeight),b=f(t.fontSize,o["b"].fontSize);b=m(b,0,l),0===b?b=o["b"].fontSize:b<u&&(b=u);var y=g(t.lineHeight,0);y=m(y,0,d),0===y?y=Math.round(a*b):y<c&&(y=c);var w=f(t.letterSpacing,0);w=m(w,h,p);var C=1+(i?0:.1*r["a"].getZoomLevel());return b*=C,y*=C,new e({zoomLevel:n,fontFamily:s,fontWeight:_,fontSize:b,lineHeight:y,letterSpacing:w})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},e.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},e}(),b=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isTrusted=n,i.isMonospace=t.isMonospace,i.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,i.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,i.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,i.spaceWidth=t.spaceWidth,i.maxDigitWidth=t.maxDigitWidth,i}return s(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth},t}(_)},fbba:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"i",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"h",function(){return l}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return g});var i=n("89cd"),o=n("0a0f"),r=n("0910"),s=Object(o["c"])("configurationService");function a(e,t){var n=Object.create(null);for(var i in e)u(n,i,e[i],t);return n}function u(e,t,n,i){for(var o=t.split("."),r=o.pop(),s=e,a=0;a<o.length;a++){var u=o[a],l=s[u];switch(typeof l){case"undefined":l=s[u]=Object.create(null);break;case"object":break;default:return void i("Ignoring "+t+" as "+o.slice(0,a+1).join(".")+" is "+JSON.stringify(l))}s=l}"object"===typeof s?s[r]=n:i("Ignoring "+t+" as "+o.join(".")+" is "+JSON.stringify(s))}function l(e,t){var n=t.split(".");c(e,n)}function c(e,t){var n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){var i=e[n];"object"!==typeof i||Array.isArray(i)||(c(i,t),0===Object.keys(i).length&&delete e[n])}}else delete e[n]}function d(e,t,n){function i(e,t){for(var n=e,i=0,o=t;i<o.length;i++){var r=o[i];if("object"!==typeof n||null===n)return;n=n[r]}return n}var o=t.split("."),r=i(e,o);return"undefined"===typeof r?n:r}function h(){var e=i["a"].as(r["a"].Configuration).getConfigurationProperties();return Object.keys(e)}function p(){var e=Object.create(null),t=i["a"].as(r["a"].Configuration).getConfigurationProperties();for(var n in t){var o=t[n].default;u(e,n,o,function(e){return console.error("Conflict in default settings: "+e)})}return e}function f(e){return e.substring(1,e.length-1)}function g(e,t,n){var i=e.inspect(t),o=e.inspect(n);return"undefined"!==typeof i.user||"undefined"!==typeof i.workspace||"undefined"!==typeof i.workspaceFolder?i.value:"undefined"!==typeof o.user||"undefined"!==typeof o.workspace||"undefined"!==typeof o.workspaceFolder?o.value:i.default}},fd11:function(e,t,n){"use strict";n.r(t);n("3a19");var i=n("a666"),o=n("30db"),r=n("b2cc"),s=n("7061"),a=n("6a89"),u=n("8025"),l=function(){function e(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}return e.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a["a"](this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new u["a"](this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new u["a"](this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new u["a"](this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new u["a"](this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new u["a"](this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection},e.prototype.computeCursorState=function(e,t){return this.targetSelection},e}(),c=n("b57f");n.d(t,"DragAndDropController",function(){return p});var d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function h(e){return o["d"]?e.altKey:e.ctrlKey}var p=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._register(n._editor.onMouseDown(function(e){return n._onEditorMouseDown(e)})),n._register(n._editor.onMouseUp(function(e){return n._onEditorMouseUp(e)})),n._register(n._editor.onMouseDrag(function(e){return n._onEditorMouseDrag(e)})),n._register(n._editor.onMouseDrop(function(e){return n._onEditorMouseDrop(e)})),n._register(n._editor.onKeyDown(function(e){return n.onEditorKeyDown(e)})),n._register(n._editor.onKeyUp(function(e){return n.onEditorKeyUp(e)})),n._register(n._editor.onDidBlurEditorWidget(function(){return n.onEditorBlur()})),n._dndDecorationIds=[],n._mouseDown=!1,n._modifierPressed=!1,n._dragSelection=null,n}return d(t,e),t.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},t.prototype.onEditorKeyDown=function(e){this._editor.getConfiguration().dragAndDrop&&(h(e)&&(this._modifierPressed=!0),this._mouseDown&&h(e)&&this._editor.updateOptions({mouseStyle:"copy"}))},t.prototype.onEditorKeyUp=function(e){this._editor.getConfiguration().dragAndDrop&&(h(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===t.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))},t.prototype._onEditorMouseDown=function(e){this._mouseDown=!0},t.prototype._onEditorMouseUp=function(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},t.prototype._onEditorMouseDrag=function(e){var t=e.target;if(null===this._dragSelection){var n=this._editor.getSelections()||[],i=n.filter(function(e){return t.position&&e.containsPosition(t.position)});if(1!==i.length)return;this._dragSelection=i[0]}h(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))},t.prototype._onEditorMouseDrop=function(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){var n=new s["a"](e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){var i=null;if(e.event.shiftKey){var o=this._editor.getSelection();if(o){var r=o.selectionStartLineNumber,a=o.selectionStartColumn;i=[new u["a"](r,a,n.lineNumber,n.column)]}}else i=(this._editor.getSelections()||[]).map(function(e){return e.containsPosition(n)?new u["a"](n.lineNumber,n.column,n.lineNumber,n.column):e});this._editor.setSelections(i||[],"mouse")}else(!this._dragSelection.containsPosition(n)||(h(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(n)||this._dragSelection.getStartPosition().equals(n)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(t.ID,new l(this._dragSelection,n,h(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},t.prototype.showAt=function(e){var n=[{range:new a["a"](e.lineNumber,e.column,e.lineNumber,e.column),options:t._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,n),this._editor.revealPosition(e,1)},t.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},t.prototype._hitContent=function(e){return 6===e.type||7===e.type},t.prototype._hitMargin=function(e){return 2===e.type||3===e.type||4===e.type},t.prototype.getId=function(){return t.ID},t.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,e.prototype.dispose.call(this)},t.ID="editor.contrib.dragAndDrop",t.TRIGGER_KEY_VALUE=o["d"]?6:5,t._DECORATION_OPTIONS=c["a"].register({className:"dnd-target"}),t}(i["a"]);Object(r["h"])(p)},fd49:function(e,t,n){"use strict";n.d(t,"h",function(){return d}),n.d(t,"g",function(){return i}),n.d(t,"i",function(){return h}),n.d(t,"e",function(){return f}),n.d(t,"d",function(){return L}),n.d(t,"f",function(){return O}),n.d(t,"b",function(){return I}),n.d(t,"c",function(){return E}),n.d(t,"a",function(){return M});var i,o=n("dff7"),r=n("e8e3"),s=n("aa3d"),a=n("30db"),u=n("d093"),l=n("ef8e"),c=function(){return c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};function d(e){if(1===e)return"blink";if(4===e)return"expand";if(3===e)return"phase";if(2===e)return"smooth";if(5===e)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle")}function h(e){if(e===i.Line)return"line";if(e===i.Block)return"block";if(e===i.Underline)return"underline";if(e===i.LineThin)return"line-thin";if(e===i.BlockOutline)return"block-outline";if(e===i.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")}function p(e,t){return"string"!==typeof e?t:"line"===e?i.Line:"block"===e?i.Block:"underline"===e?i.Underline:"line-thin"===e?i.LineThin:"block-outline"===e?i.BlockOutline:"underline-thin"===e?i.UnderlineThin:i.Line}(function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"})(i||(i={}));var f=function(){function e(e){this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=0|e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.multiCursorModifier=e.multiCursorModifier,this.multiCursorMergeOverlapping=e.multiCursorMergeOverlapping,this.wordSeparators=e.wordSeparators,this.autoClosingBrackets=e.autoClosingBrackets,this.autoClosingQuotes=e.autoClosingQuotes,this.autoClosingOvertype=e.autoClosingOvertype,this.autoSurround=e.autoSurround,this.autoIndent=e.autoIndent,this.useTabStops=e.useTabStops,this.tabFocusMode=e.tabFocusMode,this.dragAndDrop=e.dragAndDrop,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo,this.contribInfo=e.contribInfo,this.showUnused=e.showUnused}return e.prototype.equals=function(t){return this.canUseLayerHinting===t.canUseLayerHinting&&this.pixelRatio===t.pixelRatio&&this.editorClassName===t.editorClassName&&this.lineHeight===t.lineHeight&&this.readOnly===t.readOnly&&this.accessibilitySupport===t.accessibilitySupport&&this.multiCursorModifier===t.multiCursorModifier&&this.multiCursorMergeOverlapping===t.multiCursorMergeOverlapping&&this.wordSeparators===t.wordSeparators&&this.autoClosingBrackets===t.autoClosingBrackets&&this.autoClosingQuotes===t.autoClosingQuotes&&this.autoClosingOvertype===t.autoClosingOvertype&&this.autoSurround===t.autoSurround&&this.autoIndent===t.autoIndent&&this.useTabStops===t.useTabStops&&this.tabFocusMode===t.tabFocusMode&&this.dragAndDrop===t.dragAndDrop&&this.showUnused===t.showUnused&&this.emptySelectionClipboard===t.emptySelectionClipboard&&this.copyWithSyntaxHighlighting===t.copyWithSyntaxHighlighting&&e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo)&&this.fontInfo.equals(t.fontInfo)&&e._equalsViewOptions(this.viewInfo,t.viewInfo)&&e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo)&&e._equalsContribOptions(this.contribInfo,t.contribInfo)},e.prototype.createChangeEvent=function(t){return{canUseLayerHinting:this.canUseLayerHinting!==t.canUseLayerHinting,pixelRatio:this.pixelRatio!==t.pixelRatio,editorClassName:this.editorClassName!==t.editorClassName,lineHeight:this.lineHeight!==t.lineHeight,readOnly:this.readOnly!==t.readOnly,accessibilitySupport:this.accessibilitySupport!==t.accessibilitySupport,multiCursorModifier:this.multiCursorModifier!==t.multiCursorModifier,multiCursorMergeOverlapping:this.multiCursorMergeOverlapping!==t.multiCursorMergeOverlapping,wordSeparators:this.wordSeparators!==t.wordSeparators,autoClosingBrackets:this.autoClosingBrackets!==t.autoClosingBrackets,autoClosingQuotes:this.autoClosingQuotes!==t.autoClosingQuotes,autoClosingOvertype:this.autoClosingOvertype!==t.autoClosingOvertype,autoSurround:this.autoSurround!==t.autoSurround,autoIndent:this.autoIndent!==t.autoIndent,useTabStops:this.useTabStops!==t.useTabStops,tabFocusMode:this.tabFocusMode!==t.tabFocusMode,dragAndDrop:this.dragAndDrop!==t.dragAndDrop,emptySelectionClipboard:this.emptySelectionClipboard!==t.emptySelectionClipboard,copyWithSyntaxHighlighting:this.copyWithSyntaxHighlighting!==t.copyWithSyntaxHighlighting,layoutInfo:!e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo),fontInfo:!this.fontInfo.equals(t.fontInfo),viewInfo:!e._equalsViewOptions(this.viewInfo,t.viewInfo),wrappingInfo:!e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo),contribInfo:!e._equalsContribOptions(this.contribInfo,t.contribInfo)}},e._equalsLayoutInfo=function(e,t){return e.width===t.width&&e.height===t.height&&e.glyphMarginLeft===t.glyphMarginLeft&&e.glyphMarginWidth===t.glyphMarginWidth&&e.glyphMarginHeight===t.glyphMarginHeight&&e.lineNumbersLeft===t.lineNumbersLeft&&e.lineNumbersWidth===t.lineNumbersWidth&&e.lineNumbersHeight===t.lineNumbersHeight&&e.decorationsLeft===t.decorationsLeft&&e.decorationsWidth===t.decorationsWidth&&e.decorationsHeight===t.decorationsHeight&&e.contentLeft===t.contentLeft&&e.contentWidth===t.contentWidth&&e.contentHeight===t.contentHeight&&e.renderMinimap===t.renderMinimap&&e.minimapLeft===t.minimapLeft&&e.minimapWidth===t.minimapWidth&&e.viewportColumn===t.viewportColumn&&e.verticalScrollbarWidth===t.verticalScrollbarWidth&&e.horizontalScrollbarHeight===t.horizontalScrollbarHeight&&this._equalsOverviewRuler(e.overviewRuler,t.overviewRuler)},e._equalsOverviewRuler=function(e,t){return e.width===t.width&&e.height===t.height&&e.top===t.top&&e.right===t.right},e._equalsViewOptions=function(e,t){return e.extraEditorClassName===t.extraEditorClassName&&e.disableMonospaceOptimizations===t.disableMonospaceOptimizations&&r["g"](e.rulers,t.rulers)&&e.ariaLabel===t.ariaLabel&&e.renderLineNumbers===t.renderLineNumbers&&e.renderCustomLineNumbers===t.renderCustomLineNumbers&&e.cursorSurroundingLines===t.cursorSurroundingLines&&e.renderFinalNewline===t.renderFinalNewline&&e.selectOnLineNumbers===t.selectOnLineNumbers&&e.glyphMargin===t.glyphMargin&&e.revealHorizontalRightPadding===t.revealHorizontalRightPadding&&e.roundedSelection===t.roundedSelection&&e.overviewRulerLanes===t.overviewRulerLanes&&e.overviewRulerBorder===t.overviewRulerBorder&&e.cursorBlinking===t.cursorBlinking&&e.mouseWheelZoom===t.mouseWheelZoom&&e.cursorSmoothCaretAnimation===t.cursorSmoothCaretAnimation&&e.cursorStyle===t.cursorStyle&&e.cursorWidth===t.cursorWidth&&e.hideCursorInOverviewRuler===t.hideCursorInOverviewRuler&&e.scrollBeyondLastLine===t.scrollBeyondLastLine&&e.scrollBeyondLastColumn===t.scrollBeyondLastColumn&&e.smoothScrolling===t.smoothScrolling&&e.stopRenderingLineAfter===t.stopRenderingLineAfter&&e.renderWhitespace===t.renderWhitespace&&e.renderControlCharacters===t.renderControlCharacters&&e.fontLigatures===t.fontLigatures&&e.renderIndentGuides===t.renderIndentGuides&&e.highlightActiveIndentGuide===t.highlightActiveIndentGuide&&e.renderLineHighlight===t.renderLineHighlight&&this._equalsScrollbarOptions(e.scrollbar,t.scrollbar)&&this._equalsMinimapOptions(e.minimap,t.minimap)&&e.fixedOverflowWidgets===t.fixedOverflowWidgets},e._equalsScrollbarOptions=function(e,t){return e.arrowSize===t.arrowSize&&e.vertical===t.vertical&&e.horizontal===t.horizontal&&e.useShadows===t.useShadows&&e.verticalHasArrows===t.verticalHasArrows&&e.horizontalHasArrows===t.horizontalHasArrows&&e.handleMouseWheel===t.handleMouseWheel&&e.horizontalScrollbarSize===t.horizontalScrollbarSize&&e.horizontalSliderSize===t.horizontalSliderSize&&e.verticalScrollbarSize===t.verticalScrollbarSize&&e.verticalSliderSize===t.verticalSliderSize&&e.mouseWheelScrollSensitivity===t.mouseWheelScrollSensitivity&&e.fastScrollSensitivity===t.fastScrollSensitivity},e._equalsMinimapOptions=function(e,t){return e.enabled===t.enabled&&e.side===t.side&&e.showSlider===t.showSlider&&e.renderCharacters===t.renderCharacters&&e.maxColumn===t.maxColumn},e._equalFindOptions=function(e,t){return e.seedSearchStringFromSelection===t.seedSearchStringFromSelection&&e.autoFindInSelection===t.autoFindInSelection&&e.globalFindClipboard===t.globalFindClipboard&&e.addExtraSpaceOnTop===t.addExtraSpaceOnTop},e._equalsParameterHintOptions=function(e,t){return e.enabled===t.enabled&&e.cycle===t.cycle},e._equalsHoverOptions=function(e,t){return e.enabled===t.enabled&&e.delay===t.delay&&e.sticky===t.sticky},e._equalsSuggestOptions=function(e,t){return e===t||!(!e||!t)&&(e.filterGraceful===t.filterGraceful&&e.snippets===t.snippets&&e.snippetsPreventQuickSuggestions===t.snippetsPreventQuickSuggestions&&e.localityBonus===t.localityBonus&&e.shareSuggestSelections===t.shareSuggestSelections&&e.showIcons===t.showIcons&&e.maxVisibleSuggestions===t.maxVisibleSuggestions&&s["e"](e.filteredTypes,t.filteredTypes))},e._equalsGotoLocationOptions=function(e,t){return e===t||!(!e||!t)&&e.multiple===t.multiple},e._equalsWrappingInfo=function(e,t){return e.inDiffEditor===t.inDiffEditor&&e.isDominatedByLongLines===t.isDominatedByLongLines&&e.isWordWrapMinified===t.isWordWrapMinified&&e.isViewportWrapping===t.isViewportWrapping&&e.wrappingColumn===t.wrappingColumn&&e.wrappingIndent===t.wrappingIndent&&e.wordWrapBreakBeforeCharacters===t.wordWrapBreakBeforeCharacters&&e.wordWrapBreakAfterCharacters===t.wordWrapBreakAfterCharacters&&e.wordWrapBreakObtrusiveCharacters===t.wordWrapBreakObtrusiveCharacters},e._equalsContribOptions=function(t,n){return t.selectionClipboard===n.selectionClipboard&&this._equalsHoverOptions(t.hover,n.hover)&&t.links===n.links&&t.contextmenu===n.contextmenu&&e._equalsQuickSuggestions(t.quickSuggestions,n.quickSuggestions)&&t.quickSuggestionsDelay===n.quickSuggestionsDelay&&this._equalsParameterHintOptions(t.parameterHints,n.parameterHints)&&t.formatOnType===n.formatOnType&&t.formatOnPaste===n.formatOnPaste&&t.suggestOnTriggerCharacters===n.suggestOnTriggerCharacters&&t.acceptSuggestionOnEnter===n.acceptSuggestionOnEnter&&t.acceptSuggestionOnCommitCharacter===n.acceptSuggestionOnCommitCharacter&&t.wordBasedSuggestions===n.wordBasedSuggestions&&t.suggestSelection===n.suggestSelection&&t.suggestFontSize===n.suggestFontSize&&t.suggestLineHeight===n.suggestLineHeight&&t.tabCompletion===n.tabCompletion&&this._equalsSuggestOptions(t.suggest,n.suggest)&&e._equalsGotoLocationOptions(t.gotoLocation,n.gotoLocation)&&t.selectionHighlight===n.selectionHighlight&&t.occurrencesHighlight===n.occurrencesHighlight&&t.codeLens===n.codeLens&&t.folding===n.folding&&t.foldingStrategy===n.foldingStrategy&&t.showFoldingControls===n.showFoldingControls&&t.matchBrackets===n.matchBrackets&&this._equalFindOptions(t.find,n.find)&&t.colorDecorators===n.colorDecorators&&s["e"](t.codeActionsOnSave,n.codeActionsOnSave)&&t.codeActionsOnSaveTimeout===n.codeActionsOnSaveTimeout&&t.lightbulbEnabled===n.lightbulbEnabled},e._equalsQuickSuggestions=function(e,t){return"boolean"===typeof e?"boolean"===typeof t&&e===t:"boolean"!==typeof t&&(e.comments===t.comments&&e.other===t.other&&e.strings===t.strings)},e}();function g(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}function m(e,t){if(!e)return t;for(var n=Object.create(null),i=0,o=Object.keys(e);i<o.length;i++){var r=o[i],s=e[r];"boolean"===typeof s&&(n[r]=s)}return n}function v(e,t){return"string"!==typeof e?t:e}function _(e,t,n){return"string"!==typeof e?t:-1===n.indexOf(e)?t:e}function b(e,t,n,i){var o;return"undefined"===typeof e?o=t:(o=parseInt(e,10),isNaN(o)&&(o=t)),o=Math.max(n,o),o=Math.min(i,o),0|o}function y(e,t){var n=parseFloat(e);return isNaN(n)&&(n=t),n}function w(e,t){return"string"!==typeof e?t:"same"===e?1:"indent"===e?2:"deepIndent"===e?3:0}function C(e,t){if("string"!==typeof e)return t;switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"visible":case"solid":return 5}return 1}function S(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var L=function(){function e(){}return e.validate=function(e,t){var n=e.wordWrap;!0===n?n="on":!1===n&&(n="off"),n=_(n,t.wordWrap,["off","on","wordWrapColumn","bounded"]);var i=this._sanitizeViewInfo(e,t.viewInfo),o=this._sanitizeContribInfo(e,t.contribInfo),r=void 0;"string"===typeof e.multiCursorModifier&&(r="ctrlCmd"===e.multiCursorModifier?a["d"]?"metaKey":"ctrlKey":"altKey");var s,u,l,c=_(r,t.multiCursorModifier,["altKey","metaKey","ctrlKey"]);return"boolean"===typeof e.autoClosingBrackets&&!1===e.autoClosingBrackets?(s="never",u="never",l="never"):(s=_(e.autoClosingBrackets,t.autoClosingBrackets,["always","languageDefined","beforeWhitespace","never"]),u=_(e.autoClosingQuotes,t.autoClosingQuotes,["always","languageDefined","beforeWhitespace","never"]),l=_(e.autoSurround,t.autoSurround,["languageDefined","brackets","quotes","never"])),{inDiffEditor:g(e.inDiffEditor,t.inDiffEditor),wordSeparators:v(e.wordSeparators,t.wordSeparators),lineNumbersMinChars:b(e.lineNumbersMinChars,t.lineNumbersMinChars,1,10),lineDecorationsWidth:"undefined"===typeof e.lineDecorationsWidth?t.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:g(e.readOnly,t.readOnly),mouseStyle:_(e.mouseStyle,t.mouseStyle,["text","default","copy"]),disableLayerHinting:g(e.disableLayerHinting,t.disableLayerHinting),automaticLayout:g(e.automaticLayout,t.automaticLayout),wordWrap:n,wordWrapColumn:b(e.wordWrapColumn,t.wordWrapColumn,1,1073741824),wordWrapMinified:g(e.wordWrapMinified,t.wordWrapMinified),wrappingIndent:w(e.wrappingIndent,t.wrappingIndent),wordWrapBreakBeforeCharacters:v(e.wordWrapBreakBeforeCharacters,t.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:v(e.wordWrapBreakAfterCharacters,t.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:v(e.wordWrapBreakObtrusiveCharacters,t.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:s,autoClosingQuotes:u,autoClosingOvertype:_(e.autoClosingOvertype,t.autoClosingOvertype,["always","auto","never"]),autoSurround:l,autoIndent:g(e.autoIndent,t.autoIndent),dragAndDrop:g(e.dragAndDrop,t.dragAndDrop),emptySelectionClipboard:g(e.emptySelectionClipboard,t.emptySelectionClipboard),copyWithSyntaxHighlighting:g(e.copyWithSyntaxHighlighting,t.copyWithSyntaxHighlighting),useTabStops:g(e.useTabStops,t.useTabStops),multiCursorModifier:c,multiCursorMergeOverlapping:g(e.multiCursorMergeOverlapping,t.multiCursorMergeOverlapping),accessibilitySupport:_(e.accessibilitySupport,t.accessibilitySupport,["auto","on","off"]),showUnused:g(e.showUnused,t.showUnused),viewInfo:i,contribInfo:o}},e._sanitizeScrollbarOpts=function(e,t,n,i){if("object"!==typeof e)return t;var o=b(e.horizontalScrollbarSize,t.horizontalScrollbarSize,0,1e3),r=b(e.verticalScrollbarSize,t.verticalScrollbarSize,0,1e3);return{vertical:S(e.vertical,t.vertical),horizontal:S(e.horizontal,t.horizontal),arrowSize:b(e.arrowSize,t.arrowSize,0,1e3),useShadows:g(e.useShadows,t.useShadows),verticalHasArrows:g(e.verticalHasArrows,t.verticalHasArrows),horizontalHasArrows:g(e.horizontalHasArrows,t.horizontalHasArrows),horizontalScrollbarSize:o,horizontalSliderSize:b(e.horizontalSliderSize,o,0,1e3),verticalScrollbarSize:r,verticalSliderSize:b(e.verticalSliderSize,r,0,1e3),handleMouseWheel:g(e.handleMouseWheel,t.handleMouseWheel),mouseWheelScrollSensitivity:n,fastScrollSensitivity:i}},e._sanitizeMinimapOpts=function(e,t){return"object"!==typeof e?t:{enabled:g(e.enabled,t.enabled),side:_(e.side,t.side,["right","left"]),showSlider:_(e.showSlider,t.showSlider,["always","mouseover"]),renderCharacters:g(e.renderCharacters,t.renderCharacters),maxColumn:b(e.maxColumn,t.maxColumn,1,1e4)}},e._sanitizeFindOpts=function(e,t){return"object"!==typeof e?t:{seedSearchStringFromSelection:g(e.seedSearchStringFromSelection,t.seedSearchStringFromSelection),autoFindInSelection:g(e.autoFindInSelection,t.autoFindInSelection),globalFindClipboard:g(e.globalFindClipboard,t.globalFindClipboard),addExtraSpaceOnTop:g(e.addExtraSpaceOnTop,t.addExtraSpaceOnTop)}},e._sanitizeParameterHintOpts=function(e,t){return"object"!==typeof e?t:{enabled:g(e.enabled,t.enabled),cycle:g(e.cycle,t.cycle)}},e._sanitizeHoverOpts=function(e,t){var n;if("boolean"===typeof e)n={enabled:e};else{if("object"!==typeof e)return t;n=e}return{enabled:g(n.enabled,t.enabled),delay:b(n.delay,t.delay,0,1e4),sticky:g(n.sticky,t.sticky)}},e._sanitizeSuggestOpts=function(e,t){var n=e.suggest||{};return{filterGraceful:g(n.filterGraceful,t.filterGraceful),snippets:_(e.snippetSuggestions,t.snippets,["top","bottom","inline","none"]),snippetsPreventQuickSuggestions:g(n.snippetsPreventQuickSuggestions,t.filterGraceful),localityBonus:g(n.localityBonus,t.localityBonus),shareSuggestSelections:g(n.shareSuggestSelections,t.shareSuggestSelections),showIcons:g(n.showIcons,t.showIcons),maxVisibleSuggestions:b(n.maxVisibleSuggestions,t.maxVisibleSuggestions,1,15),filteredTypes:Object(l["h"])(n.filteredTypes)?n.filteredTypes:Object.create(null)}},e._sanitizeGotoLocationOpts=function(e,t){var n=e.gotoLocation||{};return{multiple:_(n.multiple,t.multiple,["peek","gotoAndPeek","goto"])}},e._sanitizeTabCompletionOpts=function(e,t){return!1===e?"off":!0===e?"onlySnippets":_(e,t,["on","off","onlySnippets"])},e._sanitizeViewInfo=function(e,t){var n=[];if(Array.isArray(e.rulers)){for(var i=0,o=e.rulers.length;i<o;i++)n.push(b(e.rulers[i],0,0,1e4));n.sort()}var r=t.renderLineNumbers,s=t.renderCustomLineNumbers;if("undefined"!==typeof e.lineNumbers){var a=e.lineNumbers;!0===a?a="on":!1===a&&(a="off"),"function"===typeof a?(r=4,s=a):r="interval"===a?3:"relative"===a?2:"on"===a?1:0}var u=g(e.fontLigatures,t.fontLigatures),l=g(e.disableMonospaceOptimizations,t.disableMonospaceOptimizations)||u,c=e.renderWhitespace;!0===c?c="boundary":!1===c&&(c="none"),c=_(c,t.renderWhitespace,["none","boundary","selection","all"]);var d=e.renderLineHighlight;!0===d?d="line":!1===d&&(d="none"),d=_(d,t.renderLineHighlight,["none","gutter","line","all"]);var h=y(e.mouseWheelScrollSensitivity,t.scrollbar.mouseWheelScrollSensitivity);0===h&&(h=1);var f=y(e.fastScrollSensitivity,t.scrollbar.fastScrollSensitivity);f<=0&&(f=t.scrollbar.fastScrollSensitivity);var m=this._sanitizeScrollbarOpts(e.scrollbar,t.scrollbar,h,f),w=this._sanitizeMinimapOpts(e.minimap,t.minimap);return{extraEditorClassName:v(e.extraEditorClassName,t.extraEditorClassName),disableMonospaceOptimizations:l,rulers:n,ariaLabel:v(e.ariaLabel,t.ariaLabel),cursorSurroundingLines:b(e.cursorSurroundingLines,t.cursorWidth,0,Number.MAX_VALUE),renderLineNumbers:r,renderCustomLineNumbers:s,renderFinalNewline:g(e.renderFinalNewline,t.renderFinalNewline),selectOnLineNumbers:g(e.selectOnLineNumbers,t.selectOnLineNumbers),glyphMargin:g(e.glyphMargin,t.glyphMargin),revealHorizontalRightPadding:b(e.revealHorizontalRightPadding,t.revealHorizontalRightPadding,0,1e3),roundedSelection:g(e.roundedSelection,t.roundedSelection),overviewRulerLanes:b(e.overviewRulerLanes,t.overviewRulerLanes,0,3),overviewRulerBorder:g(e.overviewRulerBorder,t.overviewRulerBorder),cursorBlinking:C(e.cursorBlinking,t.cursorBlinking),mouseWheelZoom:g(e.mouseWheelZoom,t.mouseWheelZoom),cursorSmoothCaretAnimation:g(e.cursorSmoothCaretAnimation,t.cursorSmoothCaretAnimation),cursorStyle:p(e.cursorStyle,t.cursorStyle),cursorWidth:b(e.cursorWidth,t.cursorWidth,0,Number.MAX_VALUE),hideCursorInOverviewRuler:g(e.hideCursorInOverviewRuler,t.hideCursorInOverviewRuler),scrollBeyondLastLine:g(e.scrollBeyondLastLine,t.scrollBeyondLastLine),scrollBeyondLastColumn:b(e.scrollBeyondLastColumn,t.scrollBeyondLastColumn,0,1073741824),smoothScrolling:g(e.smoothScrolling,t.smoothScrolling),stopRenderingLineAfter:b(e.stopRenderingLineAfter,t.stopRenderingLineAfter,-1,1073741824),renderWhitespace:c,renderControlCharacters:g(e.renderControlCharacters,t.renderControlCharacters),fontLigatures:u,renderIndentGuides:g(e.renderIndentGuides,t.renderIndentGuides),highlightActiveIndentGuide:g(e.highlightActiveIndentGuide,t.highlightActiveIndentGuide),renderLineHighlight:d,scrollbar:m,minimap:w,fixedOverflowWidgets:g(e.fixedOverflowWidgets,t.fixedOverflowWidgets)}},e._sanitizeContribInfo=function(e,t){var n;n="object"===typeof e.quickSuggestions?c({other:!0},e.quickSuggestions):g(e.quickSuggestions,t.quickSuggestions),"boolean"===typeof e.acceptSuggestionOnEnter&&(e.acceptSuggestionOnEnter=e.acceptSuggestionOnEnter?"on":"off");var i=this._sanitizeFindOpts(e.find,t.find);return{selectionClipboard:g(e.selectionClipboard,t.selectionClipboard),hover:this._sanitizeHoverOpts(e.hover,t.hover),links:g(e.links,t.links),contextmenu:g(e.contextmenu,t.contextmenu),quickSuggestions:n,quickSuggestionsDelay:b(e.quickSuggestionsDelay,t.quickSuggestionsDelay,-1073741824,1073741824),parameterHints:this._sanitizeParameterHintOpts(e.parameterHints,t.parameterHints),formatOnType:g(e.formatOnType,t.formatOnType),formatOnPaste:g(e.formatOnPaste,t.formatOnPaste),suggestOnTriggerCharacters:g(e.suggestOnTriggerCharacters,t.suggestOnTriggerCharacters),acceptSuggestionOnEnter:_(e.acceptSuggestionOnEnter,t.acceptSuggestionOnEnter,["on","smart","off"]),acceptSuggestionOnCommitCharacter:g(e.acceptSuggestionOnCommitCharacter,t.acceptSuggestionOnCommitCharacter),wordBasedSuggestions:g(e.wordBasedSuggestions,t.wordBasedSuggestions),suggestSelection:_(e.suggestSelection,t.suggestSelection,["first","recentlyUsed","recentlyUsedByPrefix"]),suggestFontSize:b(e.suggestFontSize,t.suggestFontSize,0,1e3),suggestLineHeight:b(e.suggestLineHeight,t.suggestLineHeight,0,1e3),tabCompletion:this._sanitizeTabCompletionOpts(e.tabCompletion,t.tabCompletion),suggest:this._sanitizeSuggestOpts(e,t.suggest),gotoLocation:this._sanitizeGotoLocationOpts(e,t.gotoLocation),selectionHighlight:g(e.selectionHighlight,t.selectionHighlight),occurrencesHighlight:g(e.occurrencesHighlight,t.occurrencesHighlight),codeLens:g(e.codeLens,t.codeLens),folding:g(e.folding,t.folding),foldingStrategy:_(e.foldingStrategy,t.foldingStrategy,["auto","indentation"]),showFoldingControls:_(e.showFoldingControls,t.showFoldingControls,["always","mouseover"]),matchBrackets:g(e.matchBrackets,t.matchBrackets),find:i,colorDecorators:g(e.colorDecorators,t.colorDecorators),lightbulbEnabled:g(!!e.lightbulb&&e.lightbulb.enabled,t.lightbulbEnabled),codeActionsOnSave:m(e.codeActionsOnSave,{}),codeActionsOnSaveTimeout:b(e.codeActionsOnSaveTimeout,t.codeActionsOnSaveTimeout,1,1e4)}},e}(),O=function(){function e(){}return e._tweakValidatedOptions=function(e,t){var n=1===t;return{inDiffEditor:e.inDiffEditor,wordSeparators:e.wordSeparators,lineNumbersMinChars:e.lineNumbersMinChars,lineDecorationsWidth:e.lineDecorationsWidth,readOnly:e.readOnly,mouseStyle:e.mouseStyle,disableLayerHinting:e.disableLayerHinting,automaticLayout:e.automaticLayout,wordWrap:e.wordWrap,wordWrapColumn:e.wordWrapColumn,wordWrapMinified:e.wordWrapMinified,wrappingIndent:e.wrappingIndent,wordWrapBreakBeforeCharacters:e.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:e.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:e.wordWrapBreakObtrusiveCharacters,autoClosingBrackets:e.autoClosingBrackets,autoClosingQuotes:e.autoClosingQuotes,autoClosingOvertype:e.autoClosingOvertype,autoSurround:e.autoSurround,autoIndent:e.autoIndent,dragAndDrop:e.dragAndDrop,emptySelectionClipboard:e.emptySelectionClipboard,copyWithSyntaxHighlighting:e.copyWithSyntaxHighlighting,useTabStops:e.useTabStops,multiCursorModifier:e.multiCursorModifier,multiCursorMergeOverlapping:e.multiCursorMergeOverlapping,accessibilitySupport:e.accessibilitySupport,showUnused:e.showUnused,viewInfo:{extraEditorClassName:e.viewInfo.extraEditorClassName,disableMonospaceOptimizations:e.viewInfo.disableMonospaceOptimizations,rulers:e.viewInfo.rulers,ariaLabel:n?o["a"]("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.viewInfo.ariaLabel,renderLineNumbers:e.viewInfo.renderLineNumbers,renderCustomLineNumbers:e.viewInfo.renderCustomLineNumbers,cursorSurroundingLines:e.viewInfo.cursorSurroundingLines,renderFinalNewline:e.viewInfo.renderFinalNewline,selectOnLineNumbers:e.viewInfo.selectOnLineNumbers,glyphMargin:e.viewInfo.glyphMargin,revealHorizontalRightPadding:e.viewInfo.revealHorizontalRightPadding,roundedSelection:e.viewInfo.roundedSelection,overviewRulerLanes:e.viewInfo.overviewRulerLanes,overviewRulerBorder:e.viewInfo.overviewRulerBorder,cursorBlinking:e.viewInfo.cursorBlinking,mouseWheelZoom:e.viewInfo.mouseWheelZoom,cursorSmoothCaretAnimation:e.viewInfo.cursorSmoothCaretAnimation,cursorStyle:e.viewInfo.cursorStyle,cursorWidth:e.viewInfo.cursorWidth,hideCursorInOverviewRuler:e.viewInfo.hideCursorInOverviewRuler,scrollBeyondLastLine:e.viewInfo.scrollBeyondLastLine,scrollBeyondLastColumn:e.viewInfo.scrollBeyondLastColumn,smoothScrolling:e.viewInfo.smoothScrolling,stopRenderingLineAfter:e.viewInfo.stopRenderingLineAfter,renderWhitespace:e.viewInfo.renderWhitespace,renderControlCharacters:e.viewInfo.renderControlCharacters,fontLigatures:e.viewInfo.fontLigatures,renderIndentGuides:e.viewInfo.renderIndentGuides,highlightActiveIndentGuide:e.viewInfo.highlightActiveIndentGuide,renderLineHighlight:e.viewInfo.renderLineHighlight,scrollbar:e.viewInfo.scrollbar,minimap:{enabled:e.viewInfo.minimap.enabled,side:e.viewInfo.minimap.side,renderCharacters:e.viewInfo.minimap.renderCharacters,showSlider:e.viewInfo.minimap.showSlider,maxColumn:e.viewInfo.minimap.maxColumn},fixedOverflowWidgets:e.viewInfo.fixedOverflowWidgets},contribInfo:{selectionClipboard:e.contribInfo.selectionClipboard,hover:e.contribInfo.hover,links:e.contribInfo.links,contextmenu:e.contribInfo.contextmenu,quickSuggestions:e.contribInfo.quickSuggestions,quickSuggestionsDelay:e.contribInfo.quickSuggestionsDelay,parameterHints:e.contribInfo.parameterHints,formatOnType:e.contribInfo.formatOnType,formatOnPaste:e.contribInfo.formatOnPaste,suggestOnTriggerCharacters:e.contribInfo.suggestOnTriggerCharacters,acceptSuggestionOnEnter:e.contribInfo.acceptSuggestionOnEnter,acceptSuggestionOnCommitCharacter:e.contribInfo.acceptSuggestionOnCommitCharacter,wordBasedSuggestions:e.contribInfo.wordBasedSuggestions,suggestSelection:e.contribInfo.suggestSelection,suggestFontSize:e.contribInfo.suggestFontSize,suggestLineHeight:e.contribInfo.suggestLineHeight,tabCompletion:e.contribInfo.tabCompletion,suggest:e.contribInfo.suggest,gotoLocation:e.contribInfo.gotoLocation,selectionHighlight:e.contribInfo.selectionHighlight,occurrencesHighlight:e.contribInfo.occurrencesHighlight,codeLens:e.contribInfo.codeLens,folding:e.contribInfo.folding,foldingStrategy:e.contribInfo.foldingStrategy,showFoldingControls:e.contribInfo.showFoldingControls,matchBrackets:e.contribInfo.matchBrackets,find:e.contribInfo.find,colorDecorators:e.contribInfo.colorDecorators,lightbulbEnabled:e.contribInfo.lightbulbEnabled,codeActionsOnSave:e.contribInfo.codeActionsOnSave,codeActionsOnSaveTimeout:e.contribInfo.codeActionsOnSaveTimeout}}},e.createInternalEditorOptions=function(e,t){var n;n="auto"===t.accessibilitySupport?e.accessibilitySupport:"on"===t.accessibilitySupport?2:1;var i,o=this._tweakValidatedOptions(t,n);if("string"===typeof o.lineDecorationsWidth&&/^\d+(\.\d+)?ch$/.test(o.lineDecorationsWidth)){var r=parseFloat(o.lineDecorationsWidth.substr(0,o.lineDecorationsWidth.length-2));i=r*e.fontInfo.typicalHalfwidthCharacterWidth}else i=b(o.lineDecorationsWidth,0,0,1e3);o.contribInfo.folding&&(i+=16);var s=x.compute({outerWidth:e.outerWidth,outerHeight:e.outerHeight,showGlyphMargin:o.viewInfo.glyphMargin,lineHeight:e.fontInfo.lineHeight,showLineNumbers:0!==o.viewInfo.renderLineNumbers,lineNumbersMinChars:o.lineNumbersMinChars,lineNumbersDigitCount:e.lineNumbersDigitCount,lineDecorationsWidth:i,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,verticalScrollbarWidth:o.viewInfo.scrollbar.verticalScrollbarSize,horizontalScrollbarHeight:o.viewInfo.scrollbar.horizontalScrollbarSize,scrollbarArrowSize:o.viewInfo.scrollbar.arrowSize,verticalScrollbarHasArrows:o.viewInfo.scrollbar.verticalHasArrows,minimap:o.viewInfo.minimap.enabled,minimapSide:o.viewInfo.minimap.side,minimapRenderCharacters:o.viewInfo.minimap.renderCharacters,minimapMaxColumn:o.viewInfo.minimap.maxColumn,pixelRatio:e.pixelRatio}),a=null,u=o.wordWrap,l=o.wordWrapColumn,c=o.wordWrapMinified;a=2===n?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:c&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,s.viewportColumn)}:"on"===u?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,s.viewportColumn)}:"bounded"===u?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,s.viewportColumn),l)}:"wordWrapColumn"===u?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:l}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1};var d={inDiffEditor:o.inDiffEditor,isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:a.isWordWrapMinified,isViewportWrapping:a.isViewportWrapping,wrappingColumn:a.wrappingColumn,wrappingIndent:o.wrappingIndent,wordWrapBreakBeforeCharacters:o.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:o.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:o.wordWrapBreakObtrusiveCharacters},h="monaco-editor";return o.viewInfo.extraEditorClassName&&(h+=" "+o.viewInfo.extraEditorClassName),e.extraEditorClassName&&(h+=" "+e.extraEditorClassName),o.viewInfo.fontLigatures&&(h+=" enable-ligatures"),"default"===o.mouseStyle?h+=" mouse-default":"copy"===o.mouseStyle&&(h+=" mouse-copy"),new f({canUseLayerHinting:!o.disableLayerHinting,pixelRatio:e.pixelRatio,editorClassName:h,lineHeight:e.fontInfo.lineHeight,readOnly:o.readOnly,accessibilitySupport:n,multiCursorModifier:o.multiCursorModifier,multiCursorMergeOverlapping:o.multiCursorMergeOverlapping,wordSeparators:o.wordSeparators,autoClosingBrackets:o.autoClosingBrackets,autoClosingQuotes:o.autoClosingQuotes,autoClosingOvertype:o.autoClosingOvertype,autoSurround:o.autoSurround,autoIndent:o.autoIndent,useTabStops:o.useTabStops,tabFocusMode:!!o.readOnly||e.tabFocusMode,dragAndDrop:o.dragAndDrop,emptySelectionClipboard:o.emptySelectionClipboard&&e.emptySelectionClipboard,copyWithSyntaxHighlighting:o.copyWithSyntaxHighlighting,layoutInfo:s,fontInfo:e.fontInfo,viewInfo:o.viewInfo,wrappingInfo:d,contribInfo:o.contribInfo,showUnused:o.showUnused})},e}(),x=function(){function e(){}return e.compute=function(e){var t=0|e.outerWidth,n=0|e.outerHeight,i=e.showGlyphMargin,o=0|e.lineHeight,r=e.showLineNumbers,s=0|e.lineNumbersMinChars,a=0|e.lineNumbersDigitCount,u=0|e.lineDecorationsWidth,l=e.typicalHalfwidthCharacterWidth,c=e.maxDigitWidth,d=0|e.verticalScrollbarWidth,h=e.verticalScrollbarHasArrows,p=0|e.scrollbarArrowSize,f=0|e.horizontalScrollbarHeight,g=e.minimap,m=e.minimapSide,v=e.minimapRenderCharacters,_=0|e.minimapMaxColumn,b=e.pixelRatio,y=0;if(r){var w=Math.max(a,s);y=Math.round(w*c)}var C=0;i&&(C=o);var S,L,O,x,N=0,D=N+C,k=D+y,I=k+u,E=t-C-y-u;if(g){var M=void 0;b>=2?(S=v?2:4,M=2/b):(S=v?1:3,M=1/b),O=Math.max(0,Math.floor((E-d-2)*M/(l+M)));var T=O/M;T>_&&(O=Math.floor(_*M)),x=E-O,"left"===m?(L=0,N+=O,D+=O,k+=O,I+=O):L=t-O-d}else L=0,O=0,S=0,x=E;var P=Math.max(1,Math.floor((x-d-2)/l)),R=h?p:0;return{width:t,height:n,glyphMarginLeft:N,glyphMarginWidth:C,glyphMarginHeight:n,lineNumbersLeft:D,lineNumbersWidth:y,lineNumbersHeight:n,decorationsLeft:k,decorationsWidth:u,decorationsHeight:n,contentLeft:I,contentWidth:x,contentHeight:n,renderMinimap:S,minimapLeft:L,minimapWidth:O,viewportColumn:P,verticalScrollbarWidth:d,horizontalScrollbarHeight:f,overviewRuler:{top:R,width:d,height:n-2*R,right:0}}},e}(),N="Consolas, 'Courier New', monospace",D="Menlo, Monaco, 'Courier New', monospace",k="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",I={fontFamily:a["d"]?D:a["c"]?k:N,fontWeight:"normal",fontSize:a["d"]?12:14,lineHeight:0,letterSpacing:0},E={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},M={inDiffEditor:!1,wordSeparators:u["b"],lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoClosingOvertype:"auto",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:o["a"]("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,cursorSurroundingLines:0,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:i.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}}},fdcc:function(e,t,n){"use strict";n.d(t,"e",function(){return r}),n.d(t,"f",function(){return s}),n.d(t,"g",function(){return a}),n.d(t,"d",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return h});var i=function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}return e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}(),o=new i;function r(e){l(e)||o.onUnexpectedError(e)}function s(e){l(e)||o.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){var t=e.name,n=e.message,i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i}}return e}var u="Canceled";function l(e){return e instanceof Error&&e.name===u&&e.message===u}function c(){var e=new Error(u);return e.name=e.message,e}function d(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function h(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},fe45:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return l}),n.d(t,"f",function(){return c}),n.d(t,"e",function(){return h}),n.d(t,"d",function(){return f}),n.d(t,"c",function(){return g});var i,o=n("fdcc"),r=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),s=new r,a=new r,u=new r;function l(e,t){var n=(65535&t)<<16>>>0;return(e|n)>>>0}function c(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new p(0!==i?[d(n,t),d(i,t)]:[d(n,t)])}function d(e,t){var n=!!(2048&e),i=!!(256&e),o=2===t?i:n,r=!!(1024&e),s=!!(512&e),a=2===t?n:i,u=255&e;return new h(o,r,s,a,u)}(function(){function e(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),s.define(e,t),a.define(e,n),u.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})(),function(e){function t(e){return s.keyCodeToStr(e)}function n(e){return s.strToKeyCode(e)}function i(e){return a.keyCodeToStr(e)}function o(e){return u.keyCodeToStr(e)}function r(e){return a.strToKeyCode(e)||u.strToKeyCode(e)}e.toString=t,e.fromString=n,e.toUserSettingsUS=i,e.toUserSettingsGeneral=o,e.fromUserSettings=r}(i||(i={}));var h=function(){function e(e,t,n,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=o}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new p([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),p=function(){function e(e){if(0===e.length)throw Object(o["b"])("parts");this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0},e}(),f=function(){function e(e,t,n,i,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=o,this.keyAriaLabel=r}return e}(),g=function(){function e(){}return e}()},fe86:function(e,t,n){}}]); |