name: Console _this._socket.onerror = function (event) { return _this.onerror(event) } hasMovedToStart = true // Ideally we would show an error message here but we are on string freeze right now. Add an error message here later. start += 2 this._selectionStart = rowIndex var start = chunkId * chunkSize // See if the column has explicitly said to always enable the tooltip. If so skip it. // e.g.: error messages already were handled by remoteCode.createConsoleResult() via notificationCallbacks. if (this._selectionStart < 0 || !keepSelectionStart) { this._htmlStart = scriptEnd + 1 this._multiInputElement.setSelectionRange(start + 1, start + 1) // force the cursor to be after the inserted tab this._selectionStart = rowIndex triviaStart = i value: inputId + #internal: + groupStart + : + (groupEnd - 1) var sourceSpan = new FormatService.SourceSpanBuilder(this._htmlStart, scriptStart - 1, false) var start = this._multiInputElement.selectionStart var start = this._singleInputElement.selectionStart // Case 1: Start of an element name // Case 2: Start of an attribute name // If no element is found, start at the main document. // If shift key is pressed, selecting the rows starting from selection start until the row at rowIndex // Only update status when start button is shown // Re-enable features on for Chrome when no Designer attached. // Re-enable features on for Trident when no Designer attached. // Send a message to start the color picker palette collection. // The error now has a call stack so we can report it // The start of end tag will be handled by html tokenizer // outerr.firstError should be in the form // input.js (line, col) /// < enable code=SA9005 /> Tools.Utility.Assert.hasValue(error, RPC consoleObject = { inputId: inputId, notifyType: Common.ObjectView.TreeViewUtils.ConsoleNotifyType.error } filteredIndexStart = 0 if ((capabilities.canToggleStylePropertyEnable & & selection.isProperty) || (capabilities.canToggleStyleSubpropertyEnable & & selection.isSubProperty)) { if (isScriptSupported & & scriptStart < scriptEnd) { if (this._selectionStart < 0) { if (typeof (dataIndex) !== number || start !== rowIndex) { keepSelectionStart = false lastIndex += range.end - range.start + 1 message = JSON.stringify({ id: result.id, error: error }) propertyName: [ + groupStart + ... + (groupEnd - 1) + ], result += range.end - range.start + 1 returnValue.isError = true this._error = true this._firstCompilerError = Error: this._multiInputElement.setSelectionRange(this._savedSelectionEnd, this._savedSelectionEnd) // setting start and end to the same value restores the insertion cursor position, but not a selection span this._selectionStart = 0 this._selectionStart = rowIndex this.canToggleComputedPropertyEnable = true this.canToggleStylePropertyEnable = true this.canToggleStyleSubpropertyEnable = true unfilteredIndexStart = 0 var cursorPos = selection.start + pasteText.length var cursorPos = selection.start + pasteText.length // set the new caret location to be the end of the pasted element var end = Math.min(start + chunkSize, blob.size) var hasMovedToStart = false var start = Math.min(this._selectionStart, rowIndex) var start = partId * chunkSize window.__BROWSERTOOLS_CONSOLE_BREAKMODE_INVOKER.isError = true (evaluatedReturnValue.isError || evaluatedReturnValue.result === consoleRemoteCode.suppressPostCode)) { // Construct the error message for localization // Convert the property range to start and end indices inside the CSS text // Convert the style range to start and end indice inside the CSS text // Error - no container element // Error values should be shown using a notification // If error.number is E_ABORT, the user cancelled the dialog. We want to skip error showing. // If shift key is pressed, selecting the rows starting from selection start until the row at rowIndex // If the editor already has focus, we need to start the timer here // If there is JavaScript coming after the HTML, start it on its own line. // Mark the start of the object creation // Re-enable features always on for Trident // Send a message to start the color picker palette collection. // Set the start position // The error must be thrown in order to have a call stack for us to report // Unable to find chain // We must have a root element to start with, default to a div. // e.g.: error messages already were handled by remoteCode.createConsoleResult() via notificationCallbacks. // if this is a new search expression, we need to move the menu to the start of the new expression // to enable when they shouldn't. // we will not receive a documentComplete event and browser.document is invalid. At this point you must restart F12. /// < enable code=SA1008 /> /// < enable code=SA1301 /> F12.Tools.Utility.Assert.isTrue(filteredIndexStart > = 0) F12.Tools.Utility.Assert.isTrue(unfilteredIndexStart > = 0) error = new Error(ScriptedHost.Resources.getString(ERRoutOfMemory)) error = new Error(part.data) filteredIndexStart += (parentContext ? parentContext.expandedCount : 0) filteredIndexStart -= 1 groupStart = groupEnd if ((consoleItem.notifyType === Common.ObjectView.TreeViewNotifyType.Error & & !this._model.notificationFilters.errors) || if (filteredIndexStart > = 0) { if (filteredIndexStart < 0) { if (this._selectionStart < 0 || !keepSelectionStart) { if (this._selectionStart < 0) { if (triviaStart > -1) { if (typeof (dataIndex) !== number || start !== rowIndex) { if (unfilteredIndexStart < 0) { keepSelectionStart = false lastIndex += range.end - range.start + 1 lineIndex = parseInt(fullId.substring(indexStart + 2), 10) lines.push(containerStart + nodeNumber + header + inlineText + collapsedFooter + containerEnd) result += range.end - range.start + 1 start, // start index of the sub array this._editor.setSelectionRange(this._editor.selectionStart, this._editor.selectionStart + value) this._selectionStart = -1 this._selectionStart = 0 this._selectionStart = rowIndex this.start = start unfilteredIndexStart += (parentContext ? parentContext.descendantCount : 0) unfilteredIndexStart -= 1 var cachingStart = Math.max(0, firstIndex - this._options.payloadSize) var end = Math.min(start + count, dataSource.length) var keepSelectionStart = options & & options.keepSelectionStart, doNotFireEvent = options & & options.doNotFireEvent, toggle = options & & options.toggle, sameRowSelected = false var parameterStart = url.indexOf(?) var slashIndex = url.lastIndexOf(/, (parameterStart > = 0 ? parameterStart : url.length)) var sourceSpan = new FormatService.SourceSpanBuilder(this._htmlStart, scriptStart - 1, false) var stageStart = timing[stage.start] var start = Math.min(this._selectionStart, rowIndex) var start = this._textBox.selectionStart var triviaStart = -1 worker.onerror = function (e) { worker.onerror = function (err) { worker.onerror = function (msg) { * Highlights the rows beginning from the selection start until the row at the specified rowIndex * Report exceptions occured during expression evaluation to Console as Error Notifications * including the item itself. Throws an error for a non-existent item. /** An event that fires when a user clicks the error span in summary bar */ /** An event that fires when a user tries to start the session */ // 1) error messages // All single-property edits come through here (name, value, priority and enable changes, new property adds and property deletes). // Clear the non-fatal error message // Construct the error message for localization // DOM.enable is undocumented so ignore the result. // Enable toolbar buttons // Fire the script error handler // If shift key is pressed, selecting the rows starting from selection start until the row at rowIndex // Make sure there is nothing in the queue before we start the collection // ScriptErrors that occurred as the host was being loaded are then fired as scriptError events. // Set our enable state as it was before // Setup the error handling before initialization code has executed // Start eyedropper // Start listening for host reported errors. // Start up the editor // Start with the parsed list. // This means this node didn't have children when discovered but now has one. We will start a chilren array // Throws a SyntaxError exception if the string to parse does not follow the netjson format // Throws a VersionError exception if the version of the imported data is not supported // We must have a root element to start with, default to a div. // [DQUOTE *cookie-octet DQUOTE] is a permitted format in RFC6265, so when a quote is seen at the start of // does it return [0] or [0,0,0,0,0,0]? If we start using this with multiple ids, we'll have to test and fix to handle that case // offset from the real start time (the timestamp on requestWillBeSent) // or the current item itself. It's between the start (currentRelativeVisibleIndex) and // propagate it to Network Tool, Network Tool needs to listen to this event to enable scenarios such as // restart search if any part of our search has been refreshed // the absolute start and end of the token, within the whole text string // the use of DQUOTE, comma, and space. If we see an open brace at the start of a string, ignore the normal rules about // we will not receive a documentComplete event and browser.document is invalid. At this point you must restart F12. // would start a new expression) or they have only just started typing /// < enable code=SA1513 /> ChromiumScriptEngine.prototype.start = function () { ConsoleMessageLevels.Error = error // TODO: localization InputControl.prototype.enable = function () { NetjsonNetworkProfiler.prototype.enable = function () { PrototypeChannel.prototype.onerror = function (event) { ScriptEngine.prototype.start = function () { TridentScriptEngine.prototype.start = function () { additionalInfo = Error error = e errorInfo += rnError expressionStart = startMatch[0] filteredIndexStart = this._filteredList.length filteredIndexStart = this.getIndexOfItem(this._filteredList, attachTo) + 1 if ((capabilities.canToggleStylePropertyEnable & & selection.isProperty) || (capabilities.canToggleStyleSubpropertyEnable & & selection.isSubProperty)) { if (filteredIndexStart > = 0) { if (indexStart > -1) { if (start < i) { if (this._selectionStart < 0 || !keepSelectionStart) { if (this._selectionStart < 0) { if (this._sourceSpans[sourceSpanIndex].start < = offset & & this._sourceSpans[sourceSpanIndex].end > = offset) { if (typeof (dataIndex) !== number || start !== rowIndex) { keepSelectionStart = false lastIndex += range.end - range.start + 1 lines.push(containerStart + nodeNumber + header + collapsedFooter + containerEnd) matchStart = start message += rnError result += range.end - range.start + 1 return this.indentIndexStart + this._selectedItem.visibleDescendantRowCount + 1 start = i + 1 start, // start index of the sub array text: expressionStart + expressionEnd, this._currentSearchTokenStart = -1 this._currentSearchTokenStart = this._currentSearchTokenEnd - this._currentSearchToken.length this._promiseTable[id] = { completed: completed, error: error } this._selectionStart = -1 this._selectionStart = 0 this.onStart = new Common.EventSource() this.start = start unfilteredIndexStart = this._unfilteredList.length unfilteredIndexStart = this.getIndexOfItem(this._unfilteredList, attachTo) + 1 var cachingStart = Math.max(0, firstIndex - this._options.payloadSize) var diffTimeFromStart = time - this._startLog var end = Math.min(start + count, dataSource.length) var error = new Error((message || Assert var groupStart = startRange, groupEnd = startRange var index = filteredIndexStart - 1 var indexStart = fullId.lastIndexOf(::) var keepSelectionStart = options & & options.keepSelectionStart, doNotFireEvent = options & & options.doNotFireEvent, toggle = options & & options.toggle var removed = this._unfilteredList.splice(start + 1 + lineCount, unfilteredRemoveCount) var start = (i * limit) var start = Math.min(this._selectionStart, rowIndex) var start = this.getIndexOfItem(this._unfilteredList, item) * @returns {number} The character offset to the start of this span. * @param additionalInfo Any additional information about the error such as callstack * @param column The column on which the error occurred * @param endPropertyIndex End index of the existing property to be replaced, same as start index if it is to be inserted. * @param endStyleIndex Start index of style content inside the stylesheet * @param file The file in which the error occurred * @param line The line on which the error occurred * @param message The error message * @param messageText The error message to log * @param pos The start position of the token in the source. * @param result either { id: id, data: data } or { id: id, error: error } depending on if there was an error * @param rootDocumemnt The document to start searching in * @param start Beginning index inclusive * @param start The test for the first character. * @param startPropertyIndex Start index of the existing property to be replaced. * @param startStyleIndex Start index of style content inside the stylesheet. A stylesheet can have multiple styles. * @param unsafeWindow Window to start searching on * @param viewStartX The x value at which to start the view * @return True if this property includes a change since the start of this session. * @return True if this rule includes a change since the start of this session. * @returns Line column converted from the given index and offset start range. * Highlights the rows beginning from the selection start until the row at the specified rowIndex * It will have either an error property or a data property. * Logs an error message to the console, including an optional link to open * Report exceptions occured during expression evaluation to Console as Error Notifications * Shows a script error message in the console with information // 'TRUE' if end tag is encountered i.e. '/' char is found at start or end of the tag. // Attach the script error handler // Check if '/', '!', or '?' char is present at start of the tag // Clear Designer enable state. // Depending on the source, the error object will be different // Detach the script error handler when we have been detached from the 'debuggee' // Enable or Disable the style // Enable toolbar buttons if we are attached // Events could have happened while the view was detached (especially in VS where you can start and stop debugging). Sync button, filter, no results message. // Find the next visible and enabled control to focus (wrapping around the end/start if needed) // Fire the script error handler // Get the start position // If error.number is E_ABORT, the user cancelled the dialog. We want to skip error showing. // If we are searching in the reverse direction and searching from the start element, we want to back track // Reset the resizer to the start position // Start the main controller // We don't want to mark an invalid property name as invalid, unless it either doesn't start with a hyphen or does start with // from the original session start state. // so we should start at the start or end depending on the direction. // start building our tree. // the same subproperties, so not much will update other than value or enable bits. // while _activeIndex already moved, we still want to start from that index. /// < enable code=SA9015/> /// < summary> Highlights the rows beginning from the selection start until the row at the specified rowIndex< /summary> ConsoleWindow.prototype.onError = function (message, file, line, additionalInfo, column) { F12.Tools.Utility.Assert.hasValue(this._barPanel, Unable F12.Tools.Utility.Assert.hasValue(this._contentPane, Unable F12.Tools.Utility.Assert.hasValue(this._tabBarContainer, Unable F12.Tools.Utility.Assert.isTrue(index > = 0, Unable F12.Tools.Utility.Assert.isTrue(start > = 0, Invalid F12ProfilerProxy.prototype.start = function () { IEBridge.prototype.start = function () { Netjson.VersionError = VersionError NetworkApp.prototype.displayError = function (error) { NetworkProfiler.prototype.enable = function () { NetworkProfilerClient.prototype.enable = function () { ProfilerProxy.prototype.start = function () { RemoteDom.prototype.editStylePropertyEnable = function (propertyId, isEnabled) { RemotePage.prototype.enable = function () { VSBridge.prototype.start = function () { VsProfilerProxy.prototype.start = function () { additionalInfo = Error if (indentIndexStart !== undefined & & indentIndexStart < itemsCount & & if (indexStart > -1) { if (start < i) { if (this._filteredList.length === 0 || filteredIndexStart === this._filteredList.length) { if (this._unfilteredList.length === 0 || unfilteredIndexStart === this._unfilteredList.length) { if (unfilteredIndexStart > = 0) { if (worker.error || !worker.formattedText) { name: Console result.push(this.createDetailInfo(Start start = element.selectionStart start = i + 1 start, // start index of the sub array this._currentSearchTokenStart = -1 this._data.start = start this._error = false this._firstCompilerError = this._htmlStart = 0 this._selectionStart = -1 this._snapshotStart = 0 this._start = sourceSpanData.start this._textBox.selectionEnd = match.start + newNum.length + match.extraLength this._textBox.selectionStart = match.start this.canToggleComputedPropertyEnable = false this.canToggleStylePropertyEnable = false this.canToggleStyleSubpropertyEnable = false this.isStart = isStart this.setValue(newNum, match.start, match.start + length) this.start = start var VersionError = (function () { var cachingStart = Math.max(0, range.start - this._options.payloadSize) var childIndexOffset = item.uid === #root ? 0 : 1 // Always start after item (except for #root which is not displayed) var end = Math.min(start + count, dataSource.length) var end = start + Math.min(MessageThrottle.MAX_MESSAGE_LENGTH, length - start) var errorInfo = Error var expressionStart = var filteredIndexStart = 0 var filteredIndexStart = this.getIndexOfItem(this._filteredList, item) var indentIndexStart = itemGenerator.indentIndexStart var indexStart = fullId.lastIndexOf(::) var keepSelectionStart = options & & options.keepSelectionStart, doNotFireEvent = options & & options.doNotFireEvent, toggle = options & & options.toggle var message = Error var resultText = expressionStart + expressionEnd var scriptStart = this._index var start = i * MessageThrottle.MAX_MESSAGE_LENGTH var unfilteredIndexStart = 0 var unfilteredIndexStart = this.getIndexOfItem(this._unfilteredList, item) * (start and end), with information about its parent scope, if any. The method linearly parses the string and generates that information. * @param ILoadingFailedParams containing request ID and error info * @param additionalInfo Any additional information about the error such as callstack * @param enable True to enable the styles, False to disable them * @param errorMessage The error message (if any) to report during as a result of the formatting * @param file The file in which the error occurred * @param line The line on which the error occurred * @param longhandEnabledStates Array of longhand enable states, which must match in length to number of * @param message The error message * @param startElement Start element of current search * @param startFromCurrentElement Parameter which states that we need to start search from the current element and not the next * @param startPrettyPrint True to start pretty printing immediately for quicker responsiveness * @param startSelectElementByClickCallback The callback to call when VS needs to start selecting an element by click (Used for Ctrl+B key) * Enable CSS module. * Enable Console. * Enable DOM module. * Enable Debugger. * Enable Inspector. * Enable Network. * Enable Page module. * Enable Runtime module. * Enable edit chaining (used to chain together multiple events as one undo transaction). * Enable or disable an existing style property. * Parses error objects returned from the remote code * Shows a script error message in the dom explorer with information * Start single edit mode (used to allow only the last change of a value to land on the undo stack). * Start single-edit mode in the undo/stack, so multiple edits of the * Tests whether a character code is a valid character for the start of an HTML tag name. * These assertions always be true unless there is a programming error or installation error. * User error should be tested with if and fail with a localized string. .snapshotTab > .snapshotErrorProgress > .snapshotError > .snapshotProcessingErrorFrown { // After finding the last cached index, start with the next sibling // Attach the script error handler // Nothing found at all, so start a new-property add on the first rule (always the inline style rule). // Properties that influence start button state // Remove the substring from copy start to copy end // Set our start value in the edit box. // Start the edit. // The method here is to start at the selection caret and step backwards until we can // While the last character is '/' or '', truncate it and find the next '' or '/' or the start of the string // Would have been nice if MSDN documented this secret requirement in the dragstart handler. /// < enable code=SA9015/> CSS.prototype.enable = function () { Console.prototype.enable = function () { CssParser.prototype.handleMediaQueryStart = function () { DOM.prototype.enable = function () { Debugger.prototype.enable = function () { DesignerHook.prototype.editStylePropertyEnable = function (propertyId, isEnabled) { DomExplorerWindow.prototype.onError = function (message, file, line, additionalInfo) { DomExplorerWindow.showMissingElementError = function () { IEBridge.prototype.start = function () { Inspector.prototype.enable = function () { IntellisenseProviderBase.EVAL_ERROR = __IE_DEVTOOLBAR_CONSOLE_EVAL_ERROR Network.prototype.enable = function () { Page.prototype.enable = function () { PaletteViewModel.prototype.onError = function () { RemoteDom.prototype.editStylePropertyEnable = function (propertyId, isEnabled) { Runtime.prototype.enable = function () { VSBridge.prototype.start = function () { VisualProfilerView.prototype.showError = function (error, helpUrl) { __BROWSERTOOLS_ErrorHandler.prototype.handleError = function (message, file, line, column) { __BROWSERTOOLS_ErrorHandler.prototype.onScriptError = function (errorDetails) { exitEditModeCallback, // Used to re-enable View updates. if (error instanceof Error & & !(stack in error)) { if (indentIndexStart !== undefined & & indentIndexStart < itemsCount & & if (start < i) { if (this._snapshotStart != 0) { if (traceEventStart !== undefined) { response.error = worker.error this._shimDragStart = function (ev) { return _this.handleDragStart(ev) } this._snapshotError = this.findElement(snapshotError) this._snapshotProcessingError = this.findElement(snapshotProcessingError) this._snapshotStart = 0 this._snapshotStart = Date.now() this._undoLimit = 100 // TODO: This number is up for debate. Unless we start looking at memory this has to be a hard coded number. this.model.latestSnapshotError = error var cursorPos = selection.start + pasteText.length var error = this._model.latestSnapshotError var indentIndexStart = itemGenerator.indentIndexStart var start = 0 var start = this._textBox.selectionStart || 0 window.onerror = function (e, url, line) { } while (start > = 0 & & (match & & match[0].length || start === this._textBox.selectionStart - 1)) * @param Any HTMLElement that has .selectionStart and .selectionEnd * @param column The column which the error occurred * @param error The Error object. * @param errorDetails The error details object * @param errorDisplayHandler The function that should be called to display an error message to the * @param file The file in which the error occurred * @param line The line on which the error occurred * @param message The error message * @param obj is the object that we need to track to enable gleaming when gleam is called * @param selection Selectable item to start with * @param show true means start showing highlight, false means done showing highlight * @param start Starting position in string to insert new text. * @param window The window to start initializing engines from. * @return Description of matched number: start = starting position, length = length of * Add file:/// to urls that are UNC paths or that start with a drive letter. * Detach the script error handler when we have been detached from the 'debuggee' * Enable auto-commit at every change (not just at exit). * Enable gleaming behaviour only if gleam() was called on the given object and also within the context of the functor (f) call. * Enable number value changes with arrows and mouse wheel. * Enable strip delimiter mode, which will trim the first and last * Gathers error details and constructs an object for them * Parses error objects returned from the remote code * Similar to allowGleaming but it would only enable gleaming if the condition is true * Start edit-chaining mode in the undo/stack (makes a collection of edits become one * Start single-edit mode in the undo/stack (multiple edits of the same item appear as only a * Stores the component name and error handler function for non-fatal * error reporting .snapshotTab > .snapshotErrorProgress > .snapshotError { .summaryBarErrorSpan.badgeBackground.badgeError { // In IE11 GDR onwards, there is actually a 5th argument, for error - but the Typescript stubs aren't updated // NOTE: start must be called first. When you are doing, call stop to recycle any unused elements. // Plugin error reporting causes an error if any of these values are null // Update the view for change of enable state for a property. // fromTime: The start time in nano-seconds /// < enable code=SA1301 /> /// < enable code=SA9016 /> CommonConverters.JSONRegex = /^{.*}$/ // Matches strings that start with '{' and end with '}', which could be JSON DragDropController.prototype.handleDragStart = function (ev) { ElementRecyclerFactory.prototype.start = function () { ElementStyleModel.prototype.togglePropertyEnable = function (property, isEnabled, callback) { ErrorHandlers.prototype.handleError = function (message, file, line, column) { ErrorHandlers.prototype.onScriptError = function (errorDetails) { ProgramMain.prototype.reportError = function (error, additionalInfo, source, line, column) { RemoteDom.EditStylePropertyEnable = EditStylePropertyEnable SnapshotView.prototype.updateSnapshotError = function () { StyleProperty.prototype.toggleEnable = function () { SummaryView.prototype.showSnapshotError = function (error) { VisualProfilerView.prototype.showError = function (error, helpUrl) { var EditStylePropertyEnable = (function () { * @param additionalInfo Any additional information about the error such as callstack * @param column The column on which the error occurred * @param columnNumber Optional column number on which the error occurred * @param file The file in which the error occurred * @param line The line on which the error occurred * @param message The error message * @return Returns true to mark the error as handled, False to display the default error dialog .snapshotTileBlank > .snapshotError { // to add the ability to report the error to the window.errorDisplayHandler before doing reportError /// < enable code=SA1300 /> /// < enable code=SA1302 /> /// < enable code=SA9016 /> Common.SelfTestError = SelfTestError var SelfTestError = (function () { window.onerror = function (message, file, line, columnNumber) { window.reportError = function (message, file, line, additionalInfo, column) { !function(e){e[e.INFO=1]=INFO,e[e.WARNING=2]=WARNING,e[e.ERROR=3]=ERROR}(t.MessageType||(t.MessageType={})) var l=t.MessageType,c=function(e){function t(t,i,o){var s=this e.call(this),this.state=idle,this.contextViewProvider=i,this.=null,this.message=null,this.placeholder=o& & o.placeholder||,this.ariaLabel=o& & o.ariaLabel||,o& & o.validationOptions& & (this.validation=o.validationOptions.validation,this.showValidationMessage=o.validationOptions.showMessage||!1),this.=u(.monaco-inputbox.idle).appendTo(t) var a=u(.wrapper).appendTo(this.),l={wrap:off,autocorrect:off,autocapitalize:off,spellcheck:false} this.ariaLabel& & (l[aria-label]=this.ariaLabel),!n.browser.isIE11orEarlier& & this.placeholder& & (l.placeholder=this.placeholder),this.=u(input.input).type(o.type||text).attr(l).on(r.EventType.INPUT,function(){s.onValueChange()}).on(r.EventType.BLUR,function(){s._hideMessage()}).on(r.EventType.FOCUS,function(){s._showMessage()}),this.placeholder& & n.browser.isIE11orEarlier& & (this.=u(label.placeholder-shim).appendTo(a).attr({text:this.placeholder,for:input}).on(r.EventType.CLICK,function(e){r.EventHelper.stop(e,!0),s..domFocus()}),n.browser.isIE9& & this..on(keyup,function(){return s.onValueChange()})),this..appendTo(a)}return __extends(t,e),t.prototype.setContextViewProvider=function(e){this.contextViewProvider=e},Object.defineProperty(t.prototype,inputElement,{get:function(){return this..getHTMLElement()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,value,{get:function(){return this.inputElement.value},set:function(e){this.inputElement.value!==e& & (this.inputElement.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),t.prototype.cursorIsAtBeginning=function(){var e=this.inputElement.selectionStart,t=this.inputElement.selectionEnd return e===t& & 0===e},t.prototype.cursorIsAtEnd=function(){var e=this.inputElement.selectionStart,t=this.inputElement.selectionEnd,n=this.inputElement.value.length return e===t& & e===n},t.prototype.focus=function(){this..domFocus()},t.prototype.hasFocus=function(){return this..hasFocus()},t.prototype.select=function(e){void 0===e& & (e=null),this..domSelect(e)},t.prototype.enable=function(){this.inputElement.removeAttribute(disabled)},t.prototype.disable=function(){this..attr({disabled:!0}),this._hideMessage()},Object.defineProperty(t.prototype,width,{get:function(){return this..getTotalSize().width},set:function(e){this..size(e)},enumerable:!0,configurable:!0}),t.prototype.showMessage=function(e){this.message=e,this..removeClass(idle #outputList .consoleItemError > .listview-grid-cell-icon { #outputList .consoleItemError .listview-grid-cell-value { #outputList .consoleItemScriptError > .listview-grid-cell-icon { #outputList .consoleItemScriptError .listview-grid-cell-value { .cellStyle-errorResponse { /*Error response is red*/ .hc-black .monaco-inputbox-container .monaco-inputbox-message.error { .hc-black .monaco-inputbox.error { .monaco-action-bar .progress-item .tag.error { .monaco-inputbox-container .monaco-inputbox-message.error { .monaco-inputbox.error { .redirectionInfo > .redirectionError { .status-error { .vs-dark .monaco-inputbox-container .monaco-inputbox-message.error { .vs-dark .monaco-inputbox.error { /// < disable code=SA9005 justification=Enable Var o=1447,s=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 n.DiffChange(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}(),a=function(){function e(e,t,n){void 0===n& & (n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_originalIds=[],this.m_modifiedIds=[],this.m_forwardHistory=[],this.m_reverseHistory=[],this.ComputeUniqueIdentifiers()}return e.prototype.ComputeUniqueIdentifiers=function(){var e=this.OriginalSequence.getLength(),t=this.ModifiedSequence.getLength() this.m_originalIds=new Array(e),this.m_modifiedIds=new Array(t) var n,r={},i=1 for(n=0 e> n n++){var o=this.OriginalSequence.getElementHash(n) r.hasOwnProperty(o)?this.m_originalIds[n]=r[o]:(this.m_originalIds[n]=i++,r[o]=this.m_originalIds[n])}for(n=0 t> n n++){var s=this.ModifiedSequence.getElementHash(n) r.hasOwnProperty(s)?this.m_modifiedIds[n]=r[s]:(this.m_modifiedIds[n]=i++,r[s]=this.m_modifiedIds[n])}},e.prototype.ElementsAreEqual=function(e,t){return this.m_originalIds[e]===this.m_modifiedIds[t]},e.prototype.ComputeDiff=function(){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1)},e.prototype._ComputeDiff=function(e,t,n,r){var i=[!1] return this.ComputeDiffRecursive(e,t,n,r,i)},e.prototype.ComputeDiffRecursive=function(e,t,i,o,s){for(s[0]=!1 t> =e& & o> =i& & this.ElementsAreEqual(e,i) )e++,i++ for( t> =e& & o> =i& & this.ElementsAreEqual(t,o) )t--,o-- if(e> t||i> o){var a return o> =i?(r.Assert(e===t+1,originalStart }function Pt(t,n){for(var r=0 r< n.length r++){var i=n[r] e.hasProperty(t,i.name)||(t[i.name]=i)}}function Ot(t){var n=t.symbol.members,r=t.declaredCallSignatures,i=t.declaredConstructSignatures,o=t.declaredStringIndexType,s=t.declaredNumberIndexType t.baseTypes.length& & (n=Nt(t.declaredProperties),e.forEach(t.baseTypes,function(t){Pt(n,zt(t)),r=e.concatenate(r,tn(t,0)),i=e.concatenate(i,tn(t,1)),o=o||rn(t,0),s=s||rn(t,1)})),U(t,n,r,i,o,s)}function It(t){var n=t.target,r=jn(n.typeParameters,t.typeArguments),i=Mt(n.declaredProperties,r),o=Gn(n.declaredCallSignatures,r,Zn),s=Gn(n.declaredConstructSignatures,r,Zn),a=n.declaredStringIndexType?nr(n.declaredStringIndexType,r):void 0,c=n.declaredNumberIndexType?nr(n.declaredNumberIndexType,r):void 0 e.forEach(n.baseTypes,function(t){var n=nr(t,r) Pt(i,zt(n)),o=e.concatenate(o,tn(n,0)),s=e.concatenate(s,tn(n,1)),a=a||rn(n,0),c=c||rn(n,1)}),U(t,i,o,s,a,c)}function Rt(e,t,n,r,i,o,s){var a=new Na(Ra) return a.declaration=e,a.typeParameters=t,a.parameters=n,a.resolvedReturnType=r,a.minArgumentCount=i,a.hasRestParameter=o,a.hasStringLiterals=s,a}function Dt(e){return Rt(e.declaration,e.typeParameters,e.parameters,e.resolvedReturnType,e.minArgumentCount,e.hasRestParameter,e.hasStringLiterals)}function Vt(t){if(t.baseTypes.length){var n=t.baseTypes[0],r=tn(_t(n.symbol),1) return e.map(r,function(e){var r=4096& n.flags?un(e,n.typeArguments):Dt(e) return r.typeParameters=t.typeParameters,r.resolvedReturnType=t,r})}return[Rt(void 0,t.typeParameters,Pa,t,0,!1,!1)]}function Ft(e){for(var t={},n=0 n< e.length n++){var r=c(268435460,+n) r.type=e[n],t[n]=r}return t}function Ht(e){var t=jt(xn(Dn(e.elementTypes))),n=Ft(e.elementTypes) Pt(n,t.properties),U(e,n,t.callSignatures,t.constructSignatures,t.stringIndexType,t.numberIndexType)}function Bt(e,t){if(e.length!==t.length)return!1 for(var n=0 n< e.length n++)if(!gr(e[n],t[n],!1,ar))return!1 return!0}function (t,n){for(var r=e.map(t,function(e){return tn(e,n)}),i=r[0],o=0 o< i.length o++)if(i[o].typeParameters)return Pa for(var o=1 o< r.length o++)if(!Bt(i,r[o]))return Pa for(var s=e.map(i,Dt),o=0 o< s.length o++){var a=s[o] a.resolvedReturnType=void 0,a.unionSignatures=e.map(r,function(e){return e[o]})}return s}function Gt(e,t){for(var n=[],r=0 r< e.length r++){var i=rn(e[r],t) if(!i)return void 0 n.push(i)}return Dn(n)}function Ut(e){var t=(e.types,0),n=(e.types,1),r=Gt(e.types,0),i=Gt(e.types,1) U(e,Oa,t,n,r,i)}function Wt(e){var t=e.symbol if(2048& t.flags)var n=t.members,r=an(n.__call),i=an(n.__new),o=fn(t,0),s=fn(t,1) else{var n=Oa,r=Pa,i=Pa if(1952& t.flags& & (n=t.exports),8208& t.flags& & (r=an(t)),32& t.flags){var a=St(t) i=an(t.members.__constructor),i.length||(i=Vt(a)),a.baseTypes.length& & (n=Nt(G(n)),Pt(n,zt(_t(a.baseTypes[0].symbol))))}var o=void 0,s=384& t.flags?:void 0}U(e,n,r,i,o,s)}function jt(e){return e.members||(3072& e.flags?Ot(e):32768& e.flags?Wt(e):8192& e.flags?Ht(e):16384& e.flags?Ut(e):It(e)),e}function zt(e){return 48128& e.flags?jt(e).properties:Pa}function qt(t,n){if(48128& t.flags){var r=jt(t) if(e.hasProperty(r.members,n)){var i=r.members[n] if(D(i))return i}}}function Kt(t){var n=[] return e.forEach(Yt(t.types[0]),function(e){var r=Jt(t,e.name) r& & n.push(r)}),n}function Yt(e){return 16384& e.flags?Kt(e):zt(Xt(e))}function Xt(e){if(512& e.flags){do e=gn(e) while(e& & 512& e.flags) e||(e=Ya)}return 258& e.flags?e=Ea:132& e.flags?e=Sa:8& e.flags& & (e=Ca),e}function Qt(e,t){for(var n,r=e.types,i=0 i< r.length i++){var o=Xt(r[i]) if(o!==qa){var s=Zt(o,t) if(!s)return void 0 n?n.push(s):n=[s]}}for(var a=[],l=[],i=0 i< n.length i++){var s=n[i] s.declarations& & l.push.apply(l,s.declarations),a.push(_t(s))}var u=c(1342177284,t) return u.unionType=e,u.declarations=l,u.type=Dn(a),u}function Jt(t,n){var r=t.resolvedProperties||(t.resolvedProperties={}) if(e.hasProperty(r,n))return r[n] var i=Qt(t,n) return i& & (r[n]=i),i}function Zt(t,n){if(16384& t.flags)return Jt(t,n) if(!(48128& t.flags||(t=Xt(t),48128& t.flags)))return void 0 var r=jt(t) if(e.hasProperty(r.members,n)){var i=r.members[n] if(D(i))return i}if(r===Xa||r.callSignatures.length||r.constructSignatures.length){var i=qt(ba,n) if(i)return i}return qt(_a,n)}function en(e,t){if(64512& e.flags){var n=jt(e) return 0===t?n.callSignatures:n.constructSignatures}return Pa}function tn(e,t){return en(Xt(e),t)}function nn(e,t){if(64512& e.flags){var n=jt(e) return 0===t?n.stringIndexType:n.numberIndexType}}function rn(e,t){return nn(Xt(e),t)}function on(t){var n=[] return e.forEach(t,function(t){var r=wt(t.symbol) e.contains(n,r)||n.push(r)}),n}function sn(t){var n=g(t) if(!n.resolvedSignature){for(var r=126===t.kind?St(t.parent.symbol):void 0,i=r?r.typeParameters:t.typeParameters?on(t.typeParameters):void 0,o=[],s=!1,a=-1,c=0,l=t.parameters.length l> c c++){var u=t.parameters[c] o.push(u.symbol),u.type& & 7===u.type.kind& & (s=!0),0> a& & (u.initializer||u.questionToken||u.dotDotDotToken)& & (a=c)}0> a& & (a=t.parameters.length) var p if(r)p=r else if(t.type)p=(t.type) else{if(127===t.kind& & !e.hasComputedNameButNotSymbol(t)){var d=e.getDeclarationOfKind(t.symbol,128) p=dt(d)}p||t.body||(p=Ba)}n.resolvedSignature=Rt(t,i,o,p,a,e.hasRestParameters(t),s)}return n.resolvedSignature}function an(e){if(!e)return Pa for(var t=[],n=0,r=e.declarations.length r> n n++){var i=e.declarations[n] switch(i.kind){case 133:case 134:case 184:case 125:case 126:case 129:case 130:case 131:case 127:case 128:case 150:case 151:if(n> 0& & i.body){var o=e.declarations[n-1] if(i.parent===o.parent& & i.kind===o.kind& & i.pos===o.end)break}t.push(sn(i))}}return t}function cn(t){if(t.resolvedReturnType){if(t.resolvedReturnType===Ka& & (t.resolvedReturnType=Ba,Ia.noImplicitAny)){var n=t.declaration n.name?a(n.name,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(n.name)):a(n,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}else{if(t.resolvedReturnType=Ka,t.target)var r=nr(cn(t.target),t.mapper) else if(t.unionSignatures)var r=Dn(e.map(t.unionSignatures,cn)) else var r=(t.declaration) t.resolvedReturnType===Ka& & (t.resolvedReturnType=r)}return t.resolvedReturnType}function ln(e){if(e.hasRestParameter){var t=_t(e.parameters[e.parameters.length-1]) if(4096& t.flags& & t.target===Ta)return t.typeArguments[0]}return Ba}function un(e,t){return Zn(e,jn(e.typeParameters,t),!0)}function pn(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=e.target?Zn(pn(e.target),e.mapper):Zn(e,Kn(e.typeParameters),!0)),e.erasedSignatureCache):e}function dn(e){if(!e.isolatedSignatureType){var t=126===e.declaration.kind||130===e.declaration.kind,n=B(98304) n.members=Oa,n.properties=Pa,n.callSignatures=t?Pa:[e],n.constructSignatures=t?[e]:Pa,e.isolatedSignatureType=n}return e.isolatedSignatureType}function hn(e){return e.members.__index}function mn(e,t){var n=1===t?116:118,r=hn(e) if(r)for(var i=r.declarations.length,o=0 i> o o++){var s=r.declarations[o] if(1===s.parameters.length){var a=s.parameters[0] if(a& & a.type& & a.type.kind===n)return s}}return void 0}function fn(e,t){var n=mn(e,t) return n?n.type?(n.type):Ba:void 0}function gn(t){if(!t.constraint)if(t.target){var n=gn(t.target) t.constraint=n?nr(n,t.mapper):Qa}else t.constraint=(e.getDeclarationOfKind(t.symbol,122).constraint) return t.constraint===Qa?void 0:t.constraint}function vn(e){switch(e.length){case 1:return+e[0].id case 2:return e[0].id+,+e[1].id default:for(var t=,n=0 n< e.length n++)n> 0& & (t+=,),t+=e[n].id return t}}function yn(e,t){var n=vn(t),r=e.instantiations[n] return r||(r=e.instantiations[n]=B(4096,e.symbol),r.target=e,r.typeArguments=t),r}function _n(t,n){var r=g(t) if(void 0!==r.isIllegalTypeReferenceInConstraint)return r.isIllegalTypeReferenceInConstraint for(var i=t !e.forEach(n.declarations,function(e){return e.parent===i.parent}) )i=i.parent return r.isIllegalTypeReferenceInConstraint=122===i.kind,r.isIllegalTypeReferenceInConstraint}function bn(t){function n(r){if(132===r.kind& & 63===r.typeName.kind){var i=g(r) if(void 0===i.isIllegalTypeReferenceInConstraint){var o=T(t,r.typeName.text,3152352,void 0,void 0) o& & 1048576& o.flags& & (i.isIllegalTypeReferenceInConstraint=e.forEach(o.declarations,function(e){return e.parent==t.parent}))}i.isIllegalTypeReferenceInConstraint& & a(t,e.Diagnostics.Constraint_of_a_type_parameter_cannot_reference_any_type_parameter_from_the_same_type_parameter_list)}e.forEachChild(r,n)}var r t.constraint& & (r=O(t),n(t.constraint))}function Tn(t){var n=g(t) if(!n.resolvedType){var r=k(t,t.typeName,3152352) if(r){var i if(1048576& r.flags& & _n(t,r))i=qa else if(i=At(r),3072& i.flags& & 4096& i.flags){var o=i.typeParameters t.typeArguments& & t.typeArguments.length===o.length?i=yn(i,e.map(t.typeArguments,)):(a(t,e.Diagnostics.Generic_type_0_requires_1_type_argument_s,it(i,void 0,1),o.length),i=void 0)}else t.typeArguments& & (a(t,e.Diagnostics.Type_0_is_not_generic,it(i)),i=void 0)}n.resolvedType=i||qa}return n.resolvedType}function En(e){var t=g(e) return t.resolvedType||(t.resolvedType=Sr(fo(e.exprName))),t.resolvedType}function Sn(t,n){function r(e){for(var t=e.declarations,n=0 n< t.length n++){var r=t[n] switch(r.kind){case 185:case 186:case 188:return r}}}if(!t)return Ya var i=At(t) return 48128& i.flags?(i.typeParameters?i.typeParameters.length:0)!==n?(a(r(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,t.name,n),Ya):i:(a(r(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,t.name),Ya)}function Cn(t){return T(void 0,t,3152352,e.Diagnostics.Cannot_find_global_type_0,t)}function kn(e){return Sn(Cn(e),0)}function xn(e){var t=Ta||At(ya) return t!==Ya?yn(t,[e]):Ya}function wn(e){var t=g(e) return t.resolvedType||(t.resolvedType=xn((e.elementType))),t.resolvedType}function Ln(e){var t=vn(e),n=nc[t] return n||(n=nc[t]=B(8192),n.elementTypes=e),n}function An(t){var n=g(t) return n.resolvedType||(n.resolvedType=Ln(e.map(t.elementTypes,))),n.resolvedType}function Nn(e,t){if(16384& t.flags)Mn(e,t.types) else{for(var n=0,r=t.id n< e.length& & e[n].id< r )n++ (n===e.length||e[n].id!==r)& & e.splice(n,0,t)}}function Mn(e,t){for(var n=0,r=t.length r> n n++)Nn(e,t[n])}function Pn(e,t){for(var n=0,r=t.length r> n n++)if(e!==t[n]& & cr(e,t[n]))return!0 return!1}function On(e){for(var t=e.length t> 0 )t--,Pn(e[t],e)& & e.splice(t,1)}function In(e){for(var t=0 t< e.length t++)if(1& e[t].flags)return!0 return!1}function Rn(e,t){for(var n=e.length n> 0& & e.length> 1 )n--,e[n]===t& & e.splice(n,1)}function Dn(e,t){if(0===e.length)return Ya var n=[] if(Mn(n,e),t){if(In(n))return Ba Rn(n,ja),Rn(n,za)}else On(n) if(1===n.length)return n[0] var r=vn(n),i=rc[r] return i||(i=rc[r]=B(16384),i.types=n),i}function Vn(t){var n=g(t) return n.resolvedType||(n.resolvedType=Dn(e.map(t.types,),!0)),n.resolvedType}function Fn(e){var t=g(e) return t.resolvedType||(t.resolvedType=B(32768,e.symbol)),t.resolvedType}function Hn(t){if(e.hasProperty(ic,t.text))return ic[t.text] var n=ic[t.text]=F(256) return n.text=e.getTextOfNode(t),n}function Bn(e){var t=g(e) return t.resolvedType||(t.resolvedType=Hn(e)),t.resolvedType}function (e){switch(e.kind){case 109:return Ba case 118:return case 116:return Ga case 110:return Ua case 97:return Wa case 7:return Bn(e) case 132:return Tn(e) case 135:return En(e) case 137:return wn(e) case 138:return An(e) case 139:return Vn(e) case 140:return (e.type) case 133:case 134:case 136:return Fn(e) case 63:case 120:var t=Us(e) return t& & At(t) default:return qa}}function Gn(e,t,n){if(e& & e.length){for(var r=[],i=0 i< e.length i++)r.push(n(e[i],t)) return r}return e}function Un(e,t){return function(n){return n===e?t:n}}function Wn(e,t,n,r){return function(i){return i===e?t:i===n?r:i}}function jn(e,t){switch(e.length){case 1:return Un(e[0],t[0]) case 2:return Wn(e[0],t[0],e[1],t[1])}return function(n){for(var r=0 r< e.length r++)if(n===e[r])return t[r] return n}}function zn(e){return function(t){return t===e?Ba:t}}function qn(e,t){return function(n){return n===e||n===t?Ba:n}}function Kn(e){switch(e.length){case 1:return zn(e[0]) case 2:return qn(e[0],e[1])}return function(t){for(var n=0 n< e.length n++)if(t===e[n])return Ba return t}}function Yn(e){return function(t){for(var n=0 n< e.typeParameters.length n++)if(t===e.typeParameters[n])return Lr(e,n) return t}}function Xn(e){return e}function Qn(e,t){return function(n){return t(e(n))}}function Jn(e,t){var n=F(512) return n.symbol=e.symbol,e.constraint?n.constraint=nr(e.constraint,t):(n.target=e,n.mapper=t),n}function Zn(e,t,n){if(e.typeParameters& & !n){var r=Gn(e.typeParameters,t,Jn) t=Qn(jn(e.typeParameters,r),t)}var i=Rt(e.declaration,r,Gn(e.parameters,t,er),e.resolvedReturnType?nr(e.resolvedReturnType,t):void 0,e.minArgumentCount,e.hasRestParameter,e.hasStringLiterals) return i.target=e,i.mapper=t,i}function er(e,t){if(67108864& e.flags){var n=f(e) e=n.target,t=Qn(n.mapper,t)}var r=c(335544320|e.flags,e.name) return r.declarations=e.declarations,r.parent=e.parent,r.target=e,r.mapper=t,e.valueDeclaration& & (r.valueDeclaration=e.valueDeclaration),r}function tr(e,t){var n=B(32768,e.symbol) n.properties=Gn(zt(e),t,er),n.members=Nt(n.properties),n.callSignatures=Gn(tn(e,0),t,Zn),n.constructSignatures=Gn(tn(e,1),t,Zn) var r=rn(e,0),i=rn(e,1) return r& & (n.stringIndexType=nr(r,t)),i& & (n.numberIndexType=nr(i,t)),n}function nr(e,t){if(t!==Xn){if(512& e.flags)return t(e) if(32768& e.flags)return e.symbol& & 14352& e.symbol.flags?tr(e,t):e if(4096& e.flags)return yn(e.target,Gn(e.typeArguments,t,nr)) if(8192& e.flags)return Ln(Gn(e.elementTypes,t,nr)) if(16384& e.flags)return Dn(Gn(e.types,t,nr),!0)}return e}function rr(t){switch(e.Debug.assert(125!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 150:case 151:return ir(t) case 142:return e.forEach(t.properties,rr) case 141:return e.forEach(t.elements,rr) case 158:return rr(t.whenTrue)||rr(t.whenFalse) case 157:return 48===t.operator& & (rr(t.left)||rr(t.right)) case 198:return rr(t.initializer) case 125:return ir(t)}return!1}function ir(t){return!t.typeParameters& & !e.forEach(t.parameters,function(e){return e.type})}function or(e){if(48128& e.flags){var t=jt(e) if(t.constructSignatures.length){var n=B(32768,e.symbol) n.members=t.members,n.properties=t.properties,n.callSignatures=t.callSignatures,n.constructSignatures=Pa,e=n}}return e}function sr(e,t){return hr(e,t,mc,void 0)}function ar(e,t){return hr(e,t,mc,void 0)?-1:0}function cr(e,t){return ur(e,t,void 0)}function lr(e,t){return pr(e,t,void 0)}function ur(e,t,n,r,i){return hr(e,t,dc,n,r,i)}function pr(e,t,n,r){return hr(e,t,hc,n,r)}function dr(e,t){var n=dn(e),r=dn(t) return hr(n,r,hc,void 0)}function hr(n,r,i,o,c,l){function u(t,n,r,i){x=e.chainDiagnosticMessages(x,t,n,r,i)}function p(t,n,r,o){var s if(i===mc){if(t===n)return-1}else{if(t===n)return-1 if(1& n.flags)return-1 if(t===ja)return-1 if(t===za& & n!==ja)return-1 if(128& t.flags& & n===Ga)return-1 if(256& t.flags& & n===)return-1 if(i===hc){if(1& t.flags)return-1 if(t===Ga& & 128& n.flags)return-1}}if(16384& t.flags){if(s=h(t,n,r))return s}else if(16384& n.flags){if(s=d(t,n,r))return s}else if(512& t.flags& & 512& n.flags){if(s=f(t,n,r))return s}else{var a=x if(4096& t.flags& & 4096& n.flags& & t.target===n.target& & (s=m(t.typeArguments,n.typeArguments,r)))return s var c=r& & x===a,l=i===mc?t:Xt(t) if(48128& l.flags& & 48128& n.flags& & (s=g(l,n,c)))return x=a,s}return r& & (o=o||e.Diagnostics.Type_0_is_not_assignable_to_type_1,u(o,it(t),it(n))),0}function d(e,t,n){for(var r=t.types,i=0,o=r.length o> i i++){var s=p(e,r[i],n& & i===o-1) if(s)return s}return 0}function h(e,t,n){for(var r=-1,i=e.types,o=0,s=i.length s> o o++){var a=p(i[o],t,n) if(!a)return 0 r& =a}return r}function m(e,t,n){for(var r=-1,i=0,o=e.length o> i i++){var s=p(e[i],t[i],n) if(!s)return 0 r& =s}return r}function f(e,t,n){if(i===mc)return e.symbol.name!==t.symbol.name?0:e.constraint===t.constraint?-1:e.constraint===Qa||t.constraint===Qa?0:p(e.constraint,t.constraint,n) for( ){var r=gn(e) if(r===t)return-1 if(!(r& & 512& r.flags))break e=r}return 0}function g(e,t,n){if(P)return 0 var r=e.id+,+t.id,o=i[r] if(void 0!==o)return o?-1:0 if(M> 0){for(var s=0 M> s s++)if(A[s][r])return 1 if(100===M)return P=!0,0}else w=[],L=[],A=[],N=0 w[M]=e,L[M]=t,A[M]={},A[M][r]=!0,M++ var a=N if(1& N||!v(e,w)||(N|=1),2& N||!v(t,L)||(N|=2),3===N)var c=1 else{var c=y(e,t,n) c& & (c& =b(e,t,0,n),c& & (c& =b(e,t,1,n),c& & (c& =S(e,t,n),c& & (c& =C(e,t,n)))))}if(N=a,M--,c){var l=A[M],u=-1===c||0===M?i:A[M-1] for(var p in l)u[p]=l[p]}else i[r]=!1 return c}function v(e,t){if(4096& e.flags& & M> =10)for(var n=e.target,r=0,i=0 M> i i++){var o=t[i] if(4096& o.flags& & o.target===n& & (r++,r> =10))return!0}return!1}function y(t,n,r){if(i===mc)return _(t,n) for(var o=-1,s=zt(n),a=0 a< s.length a++){var c=s[a],l=Zt(t,c.name) if(l!==c)if(l){if(!(536870912& c.flags)){var d=fi(l),h=fi(c) if(32& d||32& h){if(l.valueDeclaration!==c.valueDeclaration)return r& & (32& d& & 32& h?u(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,rt(c)):u(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,rt(c),it(32& d?t:n),it(32& d?n:t))),0}else if(64& h){var m=l.parent& & 32& l.parent.flags,f=m?At(l.parent):void 0,g=At(c.parent) if(!f||!Tt(f,g))return r& & u(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,rt(c),it(f||t),it(g)),0}else if(64& d)return r& & u(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,rt(c),it(t),it(n)),0 var v=p(_t(l),_t(c),r) if(!v)return r& & u(e.Diagnostics.Types_of_property_0_are_incompatible,rt(c)),0 if(o& =v,j(l)& & !j(c))return r& & u(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,rt(c),it(t),it(n)),0}}else if(i===dc||!j(c))return r& & u(e.Diagnostics.Property_0_is_missing_in_type_1,rt(c),it(t)),0}return o}function _(e,t){var n=zt(e),r=zt(t) if(n.length!==r.length)return 0 for(var i=-1,o=0,s=n.length s> o ++o){var a=n[o],c=qt(t,a.name) if(!c)return 0 var l=fr(a,c,p) if(!l)return 0 i& =l}return i}function b(e,t,n,r){if(i===mc)return E(e,t,n) if(t===Xa||e===Xa)return-1 var o=tn(e,n),s=tn(t,n),a=-1,c=x e:for(var l=0 l< s.length l++){var u=s[l] if(!u.hasStringLiterals||65536& t.flags){for(var p=r,d=0 d< o.length d++){var h=o[d] if(!h.hasStringLiterals||65536& e.flags){var m=T(h,u,p) if(m){a& =m,x=c continue e}p=!1}}return 0}}return a}function T(t,n,r){if(t===n)return-1 if(!n.hasRestParameter& & t.minArgumentCount> n.parameters.length)return 0 var i,o=t.parameters.length,s=n.parameters.length t.hasRestParameter& & n.hasRestParameter?(i=o> s?o:s,o--,s--):t.hasRestParameter?(o--,i=s):n.hasRestParameter?(s--,i=o):i=s> o?o:s,t=pn(t),n=pn(n) for(var a=-1,c=0 i> c c++){var l=o> c?_t(t.parameters[c]):ln(t),d=s> c?_t(n.parameters[c]):ln(n),h=x,m=p(l,d,r) if(!m){if(m=p(d,l,!1),!m)return r& & u(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,t.parameters[o> c?c:o].name,n.parameters[s> c?c:s].name),0 x=h}a& =m}var d=cn(n) if(d===Wa)return a var l=cn(t) return a& p(l,d,r)}function E(e,t,n){var r=tn(e,n),i=tn(t,n) if(r.length!==i.length)return 0 for(var o=-1,s=0,a=r.length a> s ++s){var c=gr(r[s],i[s],!0,p) if(!c)return 0 o& =c}return o}function S(t,n,r){if(i===mc)return k(0,t,n) var o=rn(n,0) if(o){var s=rn(t,0) if(!s)return r& & u(e.Diagnostics.Index_signature_is_missing_in_type_0,it(t)),0 var a=p(s,o,r) return a?a:(r& & u(e.Diagnostics.Index_signatures_are_incompatible),0)}return-1}function C(t,n,r){if(i===mc)return k(1,t,n) var o=rn(n,1) if(o){var s=rn(t,0),a=rn(t,1) if(!s& & !a)return r& & u(e.Diagnostics.Index_signature_is_missing_in_type_0,it(t)),0 if(s& & a)var c=p(s,o,!1)||p(a,o,r) else var c=p(s||a,o,r) return c?c:(r& & u(e.Diagnostics.Index_signatures_are_incompatible),0)}return-1}function k(e,t,n){var r=rn(n,e),i=rn(t,e) return i||r?i& & r?p(i,r):0:-1}var x,w,L,A,N,M=0,P=!1 e.Debug.assert(i!==mc||!o,no