console_module.js 17 KB

1
  1. Root.Runtime.cachedResources["console/consoleContextSelector.css"]="/*\n * Copyright 2017 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n:host {\n padding: 2px 1px 2px 2px;\n white-space: nowrap;\n display: flex;\n flex-direction: column;\n height: 36px;\n justify-content: center;\n}\n\n.title {\n overflow: hidden;\n text-overflow: ellipsis;\n flex-grow: 0;\n}\n\n.badge {\n pointer-events: none;\n margin-right: 4px;\n display: inline-block;\n height: 15px;\n}\n\n.subtitle {\n color: #999;\n margin-right: 3px;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-grow: 0;\n}\n\n:host(.highlighted) .subtitle {\n color: inherit;\n}\n\n/*# sourceURL=console/consoleContextSelector.css */";Root.Runtime.cachedResources["console/consolePinPane.css"]="/*\n * Copyright 2018 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.console-pins {\n max-height: 200px;\n overflow-y: auto;\n background: var(--toolbar-bg-color);\n --error-background-color: hsl(0, 100%, 97%);\n --error-border-color: hsl(0, 100%, 92%);\n --error-text-color: red;\n}\n\n:host-context(.-theme-with-dark-background) .console-pins {\n --error-background-color: hsl(0, 100%, 8%);\n --error-border-color: rgb(92, 0, 0);\n --error-text-color: hsl(0, 100%, 75%);\n}\n\n.console-pins:not(:empty) {\n border-bottom: 1px solid var(--divider-color);\n}\n\n.console-pin {\n position: relative;\n user-select: text;\n flex: none;\n padding: 2px 0 6px 24px;\n}\n\n.console-pin:not(:last-child) {\n border-bottom: 1px solid #e4e4e4;\n}\n\n.console-pin:not(:last-child).error-level:not(:focus-within) {\n border-top: 1px solid var(--error-border-color);\n border-bottom: 1px solid var(--error-border-color);\n margin-top: -1px;\n}\n\n.console-pin.error-level:not(:focus-within) {\n background-color: var(--error-background-color);\n color: var(--error-text-color);\n}\n\n.console-pin-name {\n margin-left: -4px;\n margin-bottom: 1px;\n height: auto;\n}\n\n.console-pin-name,\n.console-pin-preview {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-height: 13px;\n}\n\n:host-context(.-theme-with-dark-background) .console-delete-pin {\n filter: brightness(2);\n}\n\n.console-delete-pin {\n position: absolute;\n top: 8px;\n left: 8px;\n opacity: 0.7;\n cursor: pointer;\n}\n\n.console-delete-pin:hover,\n.console-delete-pin[data-keyboard-focus=\"true\"]:focus {\n opacity: 1;\n}\n\n.console-pin-name:focus-within {\n background: #fff;\n box-shadow: var(--focus-ring-active-shadow) inset;\n}\n\n.console-pin:focus-within .console-pin-preview,\n.console-pin-name:not(:focus-within):not(:hover) {\n opacity: 0.6;\n}\n\n/*# sourceURL=console/consolePinPane.css */";Root.Runtime.cachedResources["console/consolePrompt.css"]="/*\n * Copyright 2018 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n#console-prompt .CodeMirror {\n padding: 3px 0 1px 0;\n}\n\n#console-prompt .CodeMirror-line {\n padding-top: 0;\n}\n\n#console-prompt .CodeMirror-lines {\n padding-top: 0;\n}\n\n#console-prompt .console-prompt-icon {\n position: absolute;\n left: -13px;\n top: 5px;\n -webkit-user-select: none;\n}\n\n.console-eager-preview {\n padding-bottom: 2px;\n opacity: 0.6;\n position: relative;\n height: 15px;\n}\n\n.console-eager-inner-preview {\n text-overflow: ellipsis;\n overflow: hidden;\n margin-left: 4px;\n height: 100%;\n}\n\n.console-eager-inner-preview {\n white-space: nowrap;\n}\n\n.console-eager-inner-preview:empty,\n.console-eager-inner-preview:empty + .preview-result-icon {\n opacity: 0;\n}\n\n.preview-result-icon {\n position: absolute;\n left: -13px;\n top: 1px;\n}\n\n.console-prompt-icon.console-prompt-incomplete {\n opacity: 0.65;\n}\n\n/*# sourceURL=console/consolePrompt.css */";Root.Runtime.cachedResources["console/consoleSidebar.css"]="/*\n * Copyright (c) 2017 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n:host {\n overflow: auto;\n background-color: var(--toolbar-bg-color);\n}\n\n.tree-outline-disclosure {\n max-width: 100%;\n padding-left: 6px;\n}\n\n.count {\n flex: none;\n margin: 0 8px;\n}\n\n[is=ui-icon] {\n margin: 0 5px;\n}\n\n[is=ui-icon].icon-mask {\n background-color: #555;\n}\n\nli {\n height: 24px;\n}\n\nli .largeicon-navigator-file {\n background: linear-gradient(45deg, hsl(48, 70%, 50%), hsl(48, 70%, 70%));\n margin: 0;\n}\n\nli .largeicon-navigator-folder {\n background: linear-gradient(45deg, hsl(210, 82%, 65%), hsl(210, 82%, 80%));\n margin: -3px -3px 0 -5px;\n}\n\n.tree-element-title {\n flex-shrink: 100;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.tree-outline li:hover:not(.selected) .selection {\n display: block;\n background-color: var(--item-hover-color);\n}\n\n/*# sourceURL=console/consoleSidebar.css */";Root.Runtime.cachedResources["console/consoleView.css"]="/*\n * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.\n * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * 3. Neither the name of Apple Computer, Inc. (\"Apple\") nor the names of\n * its contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n.console-view {\n background-color: white;\n overflow: hidden;\n --message-border-color: rgb(240, 240, 240);\n --warning-border-color: hsl(50, 100%, 88%);\n --error-border-color: hsl(0, 100%, 92%);\n --error-text-color: red;\n}\n\n.-theme-with-dark-background .console-view {\n --message-border-color: rgb(58, 58, 58);\n --warning-border-color: rgb(102, 85, 0);\n --error-border-color: rgb(92, 0, 0);\n --error-text-color: hsl(0, 100%, 75%);\n}\n\n.console-toolbar-container {\n display: flex;\n flex: none;\n}\n\n.console-main-toolbar {\n flex: 1 1 auto;\n}\n\n.console-toolbar-container > .toolbar {\n background-color: var(--toolbar-bg-color);\n border-bottom: var(--divider-border);\n}\n\n.console-view-wrapper {\n background-color: #eee;\n}\n\n.console-view-fix-select-all {\n height: 0;\n overflow: hidden;\n}\n\n.console-settings-pane {\n flex: none;\n background-color: var(--toolbar-bg-color);\n border-bottom: var(--divider-border);\n}\n\n.console-settings-pane .toolbar {\n flex: 1 1;\n}\n\n#console-messages {\n flex: 1 1;\n overflow-y: auto;\n word-wrap: break-word;\n -webkit-user-select: text;\n transform: translateZ(0);\n overflow-anchor: none; /* Chrome-specific scroll-anchoring opt-out */\n}\n\n#console-prompt {\n clear: right;\n position: relative;\n margin: 0 22px 0 20px;\n}\n\n.console-prompt-editor-container {\n min-height: 21px;\n}\n\n.console-message,\n.console-user-command {\n clear: right;\n position: relative;\n padding: 3px 22px 1px 0;\n margin-left: 24px;\n min-height: 17px; /* Sync with ConsoleViewMessage.js */\n flex: auto;\n display: flex;\n}\n\n.console-message > * {\n flex: auto;\n}\n\n.console-timestamp {\n color: gray;\n -webkit-user-select: none;\n flex: none;\n margin-right: 5px;\n}\n\n.message-level-icon, .command-result-icon {\n position: absolute;\n left: -17px;\n top: 4px;\n -webkit-user-select: none;\n}\n\n.console-message-repeat-count {\n margin: 2px 0 0 10px;\n flex: none;\n}\n\n.repeated-message {\n margin-left: 4px;\n}\n\n.repeated-message .message-level-icon {\n display: none;\n}\n\n.repeated-message .console-message-stack-trace-toggle,\n.repeated-message > .console-message-text {\n flex: 1;\n}\n\n.console-error-level .repeated-message,\n.console-warning-level .repeated-message,\n.console-verbose-level .repeated-message,\n.console-info-level .repeated-message {\n display: flex;\n}\n\n.console-info {\n color: rgb(128, 128, 128);\n font-style: italic;\n padding-bottom: 2px;\n}\n\n.console-group .console-group > .console-group-messages {\n margin-left: 16px;\n}\n\n.console-group-title.console-from-api {\n font-weight: bold;\n}\n\n.console-group-title .console-message {\n margin-left: 12px;\n}\n\n.expand-group-icon {\n -webkit-user-select: none;\n flex: none;\n background-color: rgb(110, 110, 110);\n position: relative;\n left: 10px;\n top: 5px;\n margin-right: 2px;\n}\n\n.console-group-title .message-level-icon {\n display: none;\n}\n\n.console-message-repeat-count .expand-group-icon {\n left: 2px;\n top: 2px;\n background-color: #fff;\n margin-right: 4px;\n}\n\n.console-group {\n position: relative;\n}\n\n.console-message-wrapper {\n display: flex;\n border-top: 1px solid var(--message-border-color);\n border-bottom: 1px solid transparent;\n}\n\n.console-message-wrapper:first-of-type {\n border-top-color: transparent;\n}\n\n.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level):not(.console-warning-level) {\n border-top-width: 0px;\n}\n\n.console-message-wrapper.console-error-level,\n.console-message-wrapper.console-error-level:not(:focus) + .console-message-wrapper:not(.console-warning-level):not(:focus) {\n border-top-color: var(--error-border-color);\n}\n\n.console-message-wrapper.console-warning-level,\n.console-message-wrapper.console-warning-level:not(:focus) + .console-message-wrapper:not(.console-error-level):not(:focus) {\n border-top-color: var(--warning-border-color);\n}\n\n.console-message-wrapper:last-of-type {\n border-bottom-color: var(--message-border-color);\n}\n\n.console-message-wrapper.console-error-level:last-of-type {\n border-bottom-color: var(--error-border-color);\n}\n\n.console-message-wrapper.console-warning-level:last-of-type {\n border-bottom-color: var(--warning-border-color);\n}\n\n.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level):not(.console-warning-level):focus {\n border-top-width: 1px;\n}\n\n.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level):not(.console-warning-level):focus .console-message {\n padding-top: 2px;\n min-height: 16px;\n}\n\n.console-message-wrapper.console-adjacent-user-command-result:not(.console-error-level):not(.console-warning-level):focus .command-result-icon {\n top: 3px;\n}\n\n.console-message-wrapper:focus,\n.console-message-wrapper:focus:last-of-type {\n border-top-color: hsl(214, 67%, 88%);\n border-bottom-color: hsl(214, 67%, 88%);\n background-color: hsl(214, 48%, 95%);\n}\n\n.console-message-wrapper.console-error-level:focus,\n.console-message-wrapper.console-error-level:focus:last-of-type {\n --error-text-color: rgb(200, 0, 0);\n}\n\n.-theme-with-dark-background .console-message-wrapper.console-error-level:focus,\n.-theme-with-dark-background .console-message-wrapper.console-error-level:focus:last-of-type {\n --error-text-color: hsl(0, 100%, 75%);\n}\n\n.-theme-with-dark-background .console-message-wrapper:focus,\n.-theme-with-dark-background .console-message-wrapper:focus:last-of-type {\n border-top-color: hsl(214, 47%, 48%);\n border-bottom-color: hsl(214, 47%, 48%);\n background-color: hsl(214, 19%, 20%);\n}\n\n.console-message-wrapper:focus + .console-message-wrapper {\n border-top-color: transparent;\n}\n\n.console-message-wrapper .nesting-level-marker {\n width: 14px;\n flex: 0 0 auto;\n border-right: 1px solid #a5a5a5;\n position: relative;\n margin-bottom: -1px;\n margin-top: -1px;\n}\n\n.console-message-wrapper:last-child .nesting-level-marker::before,\n.console-message-wrapper .nesting-level-marker.group-closed::before {\n content: \"\";\n}\n\n.console-message-wrapper .nesting-level-marker::before {\n border-bottom: 1px solid #a5a5a5;\n position: absolute;\n top: 0;\n left: 0;\n margin-left: 100%;\n width: 3px;\n height: 100%;\n box-sizing: border-box;\n}\n\n.console-error-level {\n background-color: hsl(0, 100%, 97%);\n}\n\n.-theme-with-dark-background .console-error-level {\n background-color: hsl(0, 100%, 8%);\n}\n\n.console-warning-level {\n background-color: hsl(50, 100%, 95%);\n}\n\n.-theme-with-dark-background .console-warning-level {\n background-color: hsl(50, 100%, 10%);\n}\n\n.console-warning-level .console-message-text {\n color: hsl(39, 100%, 18%);\n}\n\n.console-error-level .console-message-text,\n.console-error-level .console-view-object-properties-section {\n color: var(--error-text-color) !important;\n}\n\n.console-system-type.console-info-level {\n color: blue;\n}\n\n.-theme-with-dark-background .console-verbose-level:not(.console-warning-level) .console-message-text,\n.-theme-with-dark-background .console-system-type.console-info-level {\n color: hsl(220, 100%, 65%) !important;\n}\n\n.console-message.console-warning-level {\n background-color: rgb(255, 250, 224);\n}\n\n#console-messages .link {\n text-decoration: underline;\n}\n\n#console-messages .link,\n#console-messages .devtools-link {\n color: rgb(33%, 33%, 33%);\n cursor: pointer;\n word-break: break-all;\n}\n\n#console-messages .link:hover,\n#console-messages .devtools-link:hover {\n color: rgb(15%, 15%, 15%);\n}\n\n.console-group-messages .section {\n margin: 0 0 0 12px !important;\n}\n\n.console-group-messages .section > .header {\n padding: 0 8px 0 0;\n background-image: none;\n border: none;\n min-height: 0;\n}\n\n.console-group-messages .section > .header::before {\n margin-left: -12px;\n}\n\n.console-group-messages .section > .header .title {\n color: #222;\n font-weight: normal;\n line-height: 13px;\n}\n\n.console-group-messages .section .properties li .info {\n padding-top: 0;\n padding-bottom: 0;\n color: rgb(60%, 60%, 60%);\n}\n\n.console-object-preview {\n white-space: normal;\n word-wrap: break-word;\n font-style: italic;\n}\n\n.console-object-preview .name {\n /* Follows .section .properties .name, .event-properties .name */\n color: rgb(136, 19, 145);\n flex-shrink: 0;\n}\n\n.console-message-text .object-value-string,\n.console-message-text .object-value-regexp,\n.console-message-text .object-value-symbol {\n white-space: pre-wrap;\n word-break: break-all;\n}\n\n.console-message-formatted-table {\n clear: both;\n}\n\n.console-message .source-code {\n line-height: 1.2;\n}\n\n.console-message-anchor {\n float: right;\n text-align: right;\n max-width: 100%;\n margin-left: 4px;\n}\n\n.console-message-badge {\n float: right;\n margin-left: 4px;\n}\n\n.console-message-nowrap-below,\n.console-message-nowrap-below div,\n.console-message-nowrap-below span {\n white-space: nowrap !important;\n}\n\n.object-state-note {\n display: inline-block;\n width: 11px;\n height: 11px;\n color: white;\n text-align: center;\n border-radius: 3px;\n line-height: 13px;\n margin: 0 6px;\n font-size: 9px;\n}\n\n.-theme-with-dark-background .object-state-note {\n background-color: hsl(230, 100%, 80%);\n}\n\n.info-note {\n background-color: rgb(179, 203, 247);\n}\n\n.info-note::before {\n content: \"i\";\n}\n\n.console-view-object-properties-section:not(.expanded) .info-note {\n display: none;\n}\n\n.console-view-object-properties-section {\n padding: 0px;\n position: relative;\n vertical-align: baseline;\n color: inherit;\n display: inline-block;\n overflow-wrap: break-word;\n max-width: 100%;\n}\n\n.console-object {\n white-space: pre-wrap;\n word-break: break-all;\n}\n\n.console-message-stack-trace-toggle {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n}\n\n.console-message-stack-trace-wrapper {\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n\n.console-message-stack-trace-wrapper > * {\n flex: none;\n}\n\n.console-message-expand-icon {\n margin-bottom: -2px;\n}\n\n.console-searchable-view {\n max-height: 100%;\n}\n\n.console-view-pinpane {\n flex: none;\n max-height: 50%;\n}\n\n/*# sourceURL=console/consoleView.css */";