Update debugger-frontend from 24b0c81...141c8c93

Summary:
This is a major sync, featuring our recent rebase of `chromium/6344`.

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D56884975

fbshipit-source-id: bc91f66bfc92464ab8fa99893ab0181077041b79
This commit is contained in:
Alex Hunt 2024-05-02 09:15:24 -07:00 коммит произвёл Facebook GitHub Bot
Родитель b38f80aeb6
Коммит 817f610983
340 изменённых файлов: 7634 добавлений и 2069 удалений

Просмотреть файл

@ -1,5 +1,5 @@
@generated SignedSource<<bc41369ec8c07c14298cc7521ba49065>>
Git revision: 24b0c8192bcc50e7274cdd1aea4ef6f425b77f48
@generated SignedSource<<f10b84597f19d9be92f1aacd21dab129>>
Git revision: 141c8c936712ace2a7fef80503acec4127c32f2d
Built with --nohooks: false
Is local checkout: false
Remote URL: https://github.com/facebookexperimental/rn-chrome-devtools-frontend

Просмотреть файл

@ -1,4 +1,4 @@
// Copyright 2023 The Chromium Authors. All rights reserved.
// Copyright 2024 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
const sheet = new CSSStyleSheet();
@ -44,9 +44,11 @@ style.setProperty('--image-file-align-self-center', 'url(\"' + new URL(new URL('
style.setProperty('--image-file-align-self-end', 'url(\"' + new URL(new URL('align-self-end.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-align-self-start', 'url(\"' + new URL(new URL('align-self-start.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-align-self-stretch', 'url(\"' + new URL(new URL('align-self-stretch.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-arrow-back', 'url(\"' + new URL(new URL('arrow-back.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-arrow-down', 'url(\"' + new URL(new URL('arrow-down.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-arrow-drop-down-dark', 'url(\"' + new URL(new URL('arrow-drop-down-dark.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-arrow-drop-down-light', 'url(\"' + new URL(new URL('arrow-drop-down-light.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-arrow-forward', 'url(\"' + new URL(new URL('arrow-forward.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-arrow-up-down-circle', 'url(\"' + new URL(new URL('arrow-up-down-circle.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-arrow-up-down', 'url(\"' + new URL(new URL('arrow-up-down.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-arrow-up', 'url(\"' + new URL(new URL('arrow-up.svg', import.meta.url).href, import.meta.url).toString() + '\")');
@ -99,6 +101,7 @@ style.setProperty('--image-file-dock-left', 'url(\"' + new URL(new URL('dock-lef
style.setProperty('--image-file-dock-right', 'url(\"' + new URL(new URL('dock-right.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-dock-window', 'url(\"' + new URL(new URL('dock-window.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-document', 'url(\"' + new URL(new URL('document.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-dog-paw', 'url(\"' + new URL(new URL('dog-paw.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-dots-horizontal', 'url(\"' + new URL(new URL('dots-horizontal.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-dots-vertical', 'url(\"' + new URL(new URL('dots-vertical.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-download', 'url(\"' + new URL(new URL('download.svg', import.meta.url).href, import.meta.url).toString() + '\")');
@ -108,14 +111,21 @@ style.setProperty('--image-file-errorWave', 'url(\"' + new URL(new URL('errorWav
style.setProperty('--image-file-exclamation', 'url(\"' + new URL(new URL('exclamation.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-experiment-check', 'url(\"' + new URL(new URL('experiment-check.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-experiment', 'url(\"' + new URL(new URL('experiment.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-extension', 'url(\"' + new URL(new URL('extension.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-eye', 'url(\"' + new URL(new URL('eye.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-document', 'url(\"' + new URL(new URL('file-document.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-fetch-xhr', 'url(\"' + new URL(new URL('file-fetch-xhr.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-font', 'url(\"' + new URL(new URL('file-font.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-generic', 'url(\"' + new URL(new URL('file-generic.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-image', 'url(\"' + new URL(new URL('file-image.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-json', 'url(\"' + new URL(new URL('file-json.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-manifest', 'url(\"' + new URL(new URL('file-manifest.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-media', 'url(\"' + new URL(new URL('file-media.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-script', 'url(\"' + new URL(new URL('file-script.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-snippet', 'url(\"' + new URL(new URL('file-snippet.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-stylesheet', 'url(\"' + new URL(new URL('file-stylesheet.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-wasm', 'url(\"' + new URL(new URL('file-wasm.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-file-websocket', 'url(\"' + new URL(new URL('file-websocket.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-filter-clear', 'url(\"' + new URL(new URL('filter-clear.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-filter-filled', 'url(\"' + new URL(new URL('filter-filled.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-filter', 'url(\"' + new URL(new URL('filter.svg', import.meta.url).href, import.meta.url).toString() + '\")');
@ -131,6 +141,7 @@ style.setProperty('--image-file-frame', 'url(\"' + new URL(new URL('frame.svg',
style.setProperty('--image-file-gear-filled', 'url(\"' + new URL(new URL('gear-filled.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-gear', 'url(\"' + new URL(new URL('gear.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-gears', 'url(\"' + new URL(new URL('gears.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-goto-filled', 'url(\"' + new URL(new URL('goto-filled.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-heap-snapshot', 'url(\"' + new URL(new URL('heap-snapshot.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-heap-snapshots', 'url(\"' + new URL(new URL('heap-snapshots.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-help', 'url(\"' + new URL(new URL('help.svg', import.meta.url).href, import.meta.url).toString() + '\")');
@ -155,19 +166,19 @@ style.setProperty('--image-file-justify-items-start', 'url(\"' + new URL(new URL
style.setProperty('--image-file-justify-items-stretch', 'url(\"' + new URL(new URL('justify-items-stretch.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-keyboard-pen', 'url(\"' + new URL(new URL('keyboard-pen.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-large-arrow-right-filled', 'url(\"' + new URL(new URL('large-arrow-right-filled.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-largeIcons', 'url(\"' + new URL(new URL('largeIcons.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-layers-filled', 'url(\"' + new URL(new URL('layers-filled.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-layers', 'url(\"' + new URL(new URL('layers.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-left-panel-close', 'url(\"' + new URL(new URL('left-panel-close.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-left-panel-open', 'url(\"' + new URL(new URL('left-panel-open.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-lightbulb-spark', 'url(\"' + new URL(new URL('lightbulb-spark.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-lighthouse_logo', 'url(\"' + new URL(new URL('lighthouse_logo.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-list', 'url(\"' + new URL(new URL('list.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-mediumIcons', 'url(\"' + new URL(new URL('mediumIcons.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-match-whole-word', 'url(\"' + new URL(new URL('match-whole-word.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-memory', 'url(\"' + new URL(new URL('memory.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-minus', 'url(\"' + new URL(new URL('minus.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-minus_icon', 'url(\"' + new URL(new URL('minus_icon.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-mop', 'url(\"' + new URL(new URL('mop.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-mouse', 'url(\"' + new URL(new URL('mouse.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-network-settings', 'url(\"' + new URL(new URL('network-settings.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-node_search_icon', 'url(\"' + new URL(new URL('node_search_icon.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-open-externally', 'url(\"' + new URL(new URL('open-externally.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-pause', 'url(\"' + new URL(new URL('pause.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-performance', 'url(\"' + new URL(new URL('performance.svg', import.meta.url).href, import.meta.url).toString() + '\")');
@ -190,14 +201,17 @@ style.setProperty('--image-file-resume', 'url(\"' + new URL(new URL('resume.svg'
style.setProperty('--image-file-review', 'url(\"' + new URL(new URL('review.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-right-panel-close', 'url(\"' + new URL(new URL('right-panel-close.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-right-panel-open', 'url(\"' + new URL(new URL('right-panel-open.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-scissors', 'url(\"' + new URL(new URL('scissors.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-screen-rotation', 'url(\"' + new URL(new URL('screen-rotation.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-search', 'url(\"' + new URL(new URL('search.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-securityIcons', 'url(\"' + new URL(new URL('securityIcons.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-select-element', 'url(\"' + new URL(new URL('select-element.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-settings_14x14_icon', 'url(\"' + new URL(new URL('settings_14x14_icon.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-send', 'url(\"' + new URL(new URL('send.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-shadow', 'url(\"' + new URL(new URL('shadow.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-smallIcons', 'url(\"' + new URL(new URL('smallIcons.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-small-status-dot', 'url(\"' + new URL(new URL('small-status-dot.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-snippet', 'url(\"' + new URL(new URL('snippet.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-spark-info', 'url(\"' + new URL(new URL('spark-info.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-spark', 'url(\"' + new URL(new URL('spark.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-star', 'url(\"' + new URL(new URL('star.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-step-into', 'url(\"' + new URL(new URL('step-into.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-step-out', 'url(\"' + new URL(new URL('step-out.svg', import.meta.url).href, import.meta.url).toString() + '\")');
@ -207,8 +221,11 @@ style.setProperty('--image-file-stop', 'url(\"' + new URL(new URL('stop.svg', im
style.setProperty('--image-file-symbol', 'url(\"' + new URL(new URL('symbol.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-sync', 'url(\"' + new URL(new URL('sync.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-table', 'url(\"' + new URL(new URL('table.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-thumb-down', 'url(\"' + new URL(new URL('thumb-down.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-thumb-up', 'url(\"' + new URL(new URL('thumb-up.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-top-panel-close', 'url(\"' + new URL(new URL('top-panel-close.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-top-panel-open', 'url(\"' + new URL(new URL('top-panel-open.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-touch-app', 'url(\"' + new URL(new URL('touch-app.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-triangle-bottom-right', 'url(\"' + new URL(new URL('triangle-bottom-right.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-triangle-down', 'url(\"' + new URL(new URL('triangle-down.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-triangle-left', 'url(\"' + new URL(new URL('triangle-left.svg', import.meta.url).href, import.meta.url).toString() + '\")');
@ -217,8 +234,8 @@ style.setProperty('--image-file-triangle-up', 'url(\"' + new URL(new URL('triang
style.setProperty('--image-file-undo', 'url(\"' + new URL(new URL('undo.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-warning-filled', 'url(\"' + new URL(new URL('warning-filled.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-warning', 'url(\"' + new URL(new URL('warning.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-warning_icon', 'url(\"' + new URL(new URL('warning_icon.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-watch', 'url(\"' + new URL(new URL('watch.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-width', 'url(\"' + new URL(new URL('width.svg', import.meta.url).href, import.meta.url).toString() + '\")');
style.setProperty('--image-file-zoom-in', 'url(\"' + new URL(new URL('zoom-in.svg', import.meta.url).href, import.meta.url).toString() + '\")');
document.adoptedStyleSheets = [...document.adoptedStyleSheets, sheet];

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#000" d="m6.52 10.832 4.668 4.668L10 16.668 3.332 10 10 3.332 11.188 4.5 6.52 9.168h10.148v1.664Zm0 0"/></svg>

После

Ширина:  |  Высота:  |  Размер: 197 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#000" d="M13.48 10.832H3.332V9.168H13.48L8.812 4.5 10 3.332 16.668 10 10 16.668 8.812 15.5Zm0 0"/></svg>

После

Ширина:  |  Высота:  |  Размер: 191 B

Просмотреть файл

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path d="M5.833 12.065c.422 0 .789-.05 1.1-.15.311-.1.667-.15 1.067-.15.4 0 .755.05 1.066.15.312.1.678.15 1.1.15a1.45 1.45 0 0 0 1.067-.433 1.45 1.45 0 0 0 .433-1.067c0-.388-.13-.73-.391-1.025a10.025 10.025 0 0 0-.842-.841 4.099 4.099 0 0 1-.558-.659 8.808 8.808 0 0 0-.542-.708 2.25 2.25 0 0 0-.592-.475A1.49 1.49 0 0 0 8 6.665a1.49 1.49 0 0 0-.742.192 2.25 2.25 0 0 0-.592.475c-.188.211-.369.444-.541.7a3.941 3.941 0 0 1-.559.667c-.3.266-.58.547-.841.841a1.498 1.498 0 0 0-.392 1.025c0 .423.145.778.433 1.067a1.45 1.45 0 0 0 1.067.433Zm-1.3-3.833c.333 0 .617-.117.85-.35.233-.233.35-.517.35-.85 0-.333-.117-.617-.35-.85a1.157 1.157 0 0 0-.85-.35c-.333 0-.617.117-.85.35-.233.233-.35.517-.35.85 0 .333.117.617.35.85.233.233.517.35.85.35Zm6.933 0c.334 0 .617-.117.85-.35.234-.233.35-.517.35-.85 0-.333-.116-.617-.35-.85a1.157 1.157 0 0 0-.85-.35c-.333 0-.616.117-.85.35-.233.233-.35.517-.35.85 0 .333.117.617.35.85.234.233.517.35.85.35ZM6.534 6.199c.333 0 .617-.117.85-.35.233-.234.35-.517.35-.85 0-.334-.117-.617-.35-.85a1.157 1.157 0 0 0-.85-.35c-.333 0-.617.116-.85.35-.233.233-.35.516-.35.85 0 .333.117.616.35.85.233.233.517.35.85.35Zm2.933 0c.334 0 .617-.117.85-.35.234-.234.35-.517.35-.85 0-.334-.116-.617-.35-.85a1.157 1.157 0 0 0-.85-.35c-.333 0-.616.116-.85.35-.233.233-.35.516-.35.85 0 .333.117.616.35.85.234.233.517.35.85.35ZM8 14.665a6.492 6.492 0 0 1-2.6-.525 6.732 6.732 0 0 1-2.117-1.425A6.733 6.733 0 0 1 1.858 10.6a6.492 6.492 0 0 1-.525-2.6c0-.923.175-1.79.525-2.6a6.732 6.732 0 0 1 1.425-2.117c.6-.6 1.306-1.075 2.117-1.425A6.492 6.492 0 0 1 8 1.332c.922 0 1.789.175 2.6.525.81.35 1.517.825 2.117 1.425.6.6 1.074 1.306 1.425 2.117.35.81.524 1.677.524 2.6 0 .922-.175 1.789-.524 2.6a6.733 6.733 0 0 1-1.425 2.116c-.6.6-1.306 1.075-2.117 1.425a6.492 6.492 0 0 1-2.6.525Z" fill="#474747"/></svg>

После

Ширина:  |  Высота:  |  Размер: 1.8 KiB

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.167 17.5c-.459 0-.851-.163-1.177-.49a1.605 1.605 0 0 1-.49-1.177v-3.166c.667 0 1.25-.212 1.75-.636.5-.423.75-.962.75-1.614 0-.653-.25-1.191-.75-1.615a2.624 2.624 0 0 0-1.75-.635V5c0-.458.163-.85.49-1.177.326-.326.718-.49 1.177-.49H7.5c0-.583.201-1.076.604-1.479a2.012 2.012 0 0 1 1.48-.604c.583 0 1.076.201 1.479.604.402.403.604.896.604 1.48H15c.458 0 .85.163 1.177.489.326.326.49.719.49 1.177v3.333c.583 0 1.076.202 1.479.604.403.403.604.896.604 1.48 0 .583-.201 1.076-.604 1.479a2.011 2.011 0 0 1-1.48.604v3.333c0 .459-.163.851-.489 1.177-.326.327-.719.49-1.177.49H4.167Zm0-1.667H15V5H4.167v1.833c.75.278 1.354.743 1.812 1.396.458.653.688 1.382.688 2.188 0 .791-.23 1.514-.688 2.166A3.888 3.888 0 0 1 4.167 14v1.833Z" fill="#041E49"/></svg>

После

Ширина:  |  Высота:  |  Размер: 829 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 17c-.412 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 3 15.5v-11c0-.412.147-.766.44-1.06.294-.293.648-.44 1.06-.44H13l4 4v8.5c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44h-11Zm0-1.5h11V8H12V4.5H4.5v11Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 310 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 16v-1.5h1.75c.213 0 .39-.072.534-.216a.726.726 0 0 0 .216-.534v-1.5c0-.57.191-1.059.573-1.469.382-.41.858-.65 1.427-.719V9.98a2.601 2.601 0 0 1-1.427-.77A2.043 2.043 0 0 1 14.5 7.75v-1.5a.726.726 0 0 0-.216-.534.726.726 0 0 0-.534-.216H12V4h1.75a2.17 2.17 0 0 1 1.594.656c.437.438.656.969.656 1.594v1.5c0 .213.072.39.216.534a.726.726 0 0 0 .534.216H18v3h-1.25a.726.726 0 0 0-.534.216.726.726 0 0 0-.216.534v1.5a2.17 2.17 0 0 1-.656 1.594A2.17 2.17 0 0 1 13.75 16H12Zm-5.75 0a2.17 2.17 0 0 1-1.594-.656A2.17 2.17 0 0 1 4 13.75v-1.5a.726.726 0 0 0-.216-.534.726.726 0 0 0-.534-.216H2v-3h1.25c.212 0 .39-.072.534-.216A.726.726 0 0 0 4 7.75v-1.5c0-.625.219-1.156.656-1.594A2.17 2.17 0 0 1 6.25 4H8v1.5H6.25a.726.726 0 0 0-.534.216.726.726 0 0 0-.216.534v1.5c0 .583-.191 1.08-.573 1.49-.382.41-.858.649-1.427.718v.087c.57.053 1.045.288 1.427.705.382.417.573.917.573 1.5v1.5c0 .213.072.39.216.534a.726.726 0 0 0 .534.216H8V16H6.25ZM9.193 10.35h1.952v1.587l-1.149 2.245h-1.26l.457-2.245V10.35Zm0-4.079h1.952v2.14H9.193V6.27Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 1.1 KiB

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.746 7.5c.21 0 .39-.071.535-.214a.714.714 0 0 0 .219-.532.736.736 0 0 0-.214-.535A.714.714 0 0 0 6.754 6a.736.736 0 0 0-.535.214.714.714 0 0 0-.219.532c0 .21.071.39.214.535.143.146.32.219.532.219Zm0 3.25c.21 0 .39-.072.535-.214a.714.714 0 0 0 .219-.532.736.736 0 0 0-.214-.535.714.714 0 0 0-.532-.219.736.736 0 0 0-.535.214.714.714 0 0 0-.219.532c0 .21.071.39.214.535.143.146.32.219.532.219Zm0 3.25c.21 0 .39-.072.535-.214a.714.714 0 0 0 .219-.532.736.736 0 0 0-.214-.535.714.714 0 0 0-.532-.219.736.736 0 0 0-.535.214.714.714 0 0 0-.219.532c0 .21.071.39.214.535.143.146.32.219.532.219ZM4.5 17c-.412 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 3 15.5v-11c0-.412.147-.766.44-1.06.294-.293.648-.44 1.06-.44H13l4 4v8.5c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44h-11Zm0-1.5h11V8H12V4.5H4.5v11Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 898 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m8 13.5 5.5-3.5L8 6.5v7ZM4.5 17c-.417 0-.77-.146-1.062-.438A1.444 1.444 0 0 1 3 15.5v-11c0-.417.146-.77.438-1.062A1.444 1.444 0 0 1 4.5 3h11c.417 0 .77.146 1.062.438.292.291.438.645.438 1.062v11c0 .417-.146.77-.438 1.062A1.444 1.444 0 0 1 15.5 17h-11Zm0-1.5h11v-11h-11v11Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 377 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.163 4.5a3.5 3.5 0 0 1-6.326 0H4.5v11h11v-11h-2.337ZM12 3a2 2 0 1 1-4 0H4.5A1.5 1.5 0 0 0 3 4.5v11A1.5 1.5 0 0 0 4.5 17h11a1.5 1.5 0 0 0 1.5-1.5v-11A1.5 1.5 0 0 0 15.5 3H12Z" fill="#000"/><path d="M10 13.5V10H9v3h-.613v-2h-.782v2H7v-3H6v3.5c0 .142.048.26.144.356A.484.484 0 0 0 6.5 14h3c.142 0 .26-.048.356-.144A.484.484 0 0 0 10 13.5Z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 13v1h-1v-3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75V14h-1v-1h-1Zm0-1v-1h1v1h-1Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 637 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m7 16-3-3 3-3 1.063 1.063-1.188 1.187H10v1.5H6.875l1.188 1.188L7 16Zm5.254-2.25a.736.736 0 0 1-.535-.214.714.714 0 0 1-.219-.532c0-.21.072-.39.214-.535a.714.714 0 0 1 .532-.219c.21 0 .39.072.535.214.146.143.219.32.219.532 0 .21-.072.39-.214.535a.714.714 0 0 1-.532.219Zm3 0a.736.736 0 0 1-.535-.214.714.714 0 0 1-.219-.532c0-.21.072-.39.214-.535a.714.714 0 0 1 .532-.219c.21 0 .39.072.535.214.146.143.219.32.219.532 0 .21-.072.39-.214.535a.714.714 0 0 1-.532.219ZM14 10l-1.063-1.063 1.188-1.187H11v-1.5h3.125l-1.188-1.188L14 4l3 3-3 3ZM5.754 7.75a.736.736 0 0 1-.535-.214A.714.714 0 0 1 5 7.004c0-.21.071-.39.214-.535a.714.714 0 0 1 .532-.219c.21 0 .39.071.535.214.146.143.219.32.219.532 0 .21-.071.39-.214.535a.714.714 0 0 1-.532.219Zm3 0a.736.736 0 0 1-.535-.214A.714.714 0 0 1 8 7.004c0-.21.071-.39.214-.535a.714.714 0 0 1 .532-.219c.21 0 .39.071.535.214.146.143.219.32.219.532 0 .21-.071.39-.214.535a.714.714 0 0 1-.532.219Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 1.0 KiB

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm0-2.8v-2.8H5.8V8.6H10V5.8l4.2 4.2-4.2 4.2Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 185 B

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

До

Ширина:  |  Высота:  |  Размер: 29 KiB

Просмотреть файл

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><g clip-path="url(#a)"><path d="M12.334 6.684c0-.833-.295-1.545-.884-2.133a2.907 2.907 0 0 0-2.133-.884 2.92 2.92 0 0 0 2.133-.875 2.88 2.88 0 0 0 .884-2.125c0 .834.291 1.542.875 2.125a2.893 2.893 0 0 0 2.125.875 2.88 2.88 0 0 0-2.125.884 2.92 2.92 0 0 0-.875 2.133ZM2.928 11.991h4.804v1.2H2.928z" fill="#fff"/><path d="M9.352 7.34c0 1.39-.704 2.616-1.775 3.34h-4.5a4.025 4.025 0 1 1 6.275-3.338Z" stroke="#fff" stroke-width="1.2"/><path d="M4.126 13.906a1.2 1.2 0 0 0 2.4 0h-2.4Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>

После

Ширина:  |  Высота:  |  Размер: 658 B

Просмотреть файл

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20" fill="none"><path d="M72-240v-192h72v120h672v-120h72v192H72Zm302.903-144v-31H372q-16 21-35.5 31t-46.237 10q-46.789 0-73.526-24.695Q190-423.389 190-466q0-41 30.5-66t80.5-25q21 0 42 4t32 10v-14q0-24-19-40t-48-16q-21 0-37.5 8.5T240-579l-41-32q17-25 46.5-38.5t64.84-13.5Q368-663 400-634.716q32 28.283 32 81.974V-384h-57.097ZM312-514q-29 0-46 13t-17 34q0 20 14.167 31.5Q277.333-424 300-424q32 0 53-21.706t21-52.576Q360-506 344.5-510t-32.5-4Zm192 130v-387h59v109.182L560-623h3q3-5 23.583-25t64.689-20Q714-668 749-623.5 784-579 784-522t-35.073 102q-35.072 45-97.53 45Q612-375 590.5-393T563-420h-3v36h-56Zm138-229q-38 0-60 28.159t-22 62.523Q560-487 582-458.5t60 28.5q38 0 60.5-28.5T725-522q0-35-22.5-63T642-613Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 812 B

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

До

Ширина:  |  Высота:  |  Размер: 22 KiB

Просмотреть файл

@ -1 +0,0 @@
<svg width="12" height="12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 5.5H2v1h8v-1Z" fill="#202124"/></svg>

До

Ширина:  |  Высота:  |  Размер: 125 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.318 9.364h1.338V4.909a.6.6 0 0 0-.193-.453.665.665 0 0 0-.476-.183.664.664 0 0 0-.477.183.6.6 0 0 0-.192.453v4.455Zm-4.012 2.545h9.362v-1.273H5.306v1.273Zm-.97 3.818h1.639v-1.273a.6.6 0 0 1 .192-.453.665.665 0 0 1 .476-.183c.19 0 .349.061.477.183a.6.6 0 0 1 .192.454v1.272h2.006v-1.273a.6.6 0 0 1 .192-.453.665.665 0 0 1 .477-.183c.19 0 .348.061.476.183a.6.6 0 0 1 .193.454v1.272h2.006v-1.273a.6.6 0 0 1 .192-.453.664.664 0 0 1 .476-.183c.19 0 .349.061.477.183a.6.6 0 0 1 .192.454v1.272h1.638l-.668-2.545H5.005l-.669 2.545ZM15.637 17h-11.3c-.435 0-.786-.164-1.054-.493a1.16 1.16 0 0 1-.234-1.098l.92-3.5v-1.273c0-.35.13-.65.392-.898a1.32 1.32 0 0 1 .945-.374h2.675V4.909c0-.53.195-.981.585-1.352.39-.371.864-.557 1.42-.557.558 0 1.032.186 1.422.557.39.371.585.822.585 1.352v4.455h2.675c.368 0 .682.124.944.373.262.25.393.55.393.9v1.272l.92 3.5c.145.403.08.769-.193 1.098-.273.329-.638.493-1.095.493Z" fill="#041E49"/></svg>

После

Ширина:  |  Высота:  |  Размер: 1010 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#000" d="M10 18.332c-1.61 0-2.984-.566-4.125-1.707-1.14-1.14-1.707-2.516-1.707-4.125v-5c0-1.61.566-2.984 1.707-4.125C7.015 2.235 8.391 1.668 10 1.668c1.61 0 2.984.566 4.125 1.707 1.14 1.14 1.707 2.516 1.707 4.125v5c0 1.61-.566 2.984-1.707 4.125-1.14 1.14-2.516 1.707-4.125 1.707ZM10.832 7.5h3.336c0-1-.316-1.883-.95-2.645-.632-.765-1.425-1.246-2.386-1.437Zm-5 0h3.336V3.418c-.961.191-1.754.672-2.387 1.437A4.019 4.019 0 0 0 5.832 7.5ZM10 16.668c1.152 0 2.137-.406 2.95-1.219.812-.812 1.218-1.797 1.218-2.949V9.168H5.832V12.5c0 1.152.406 2.137 1.219 2.95.812.812 1.797 1.218 2.949 1.218Zm0-7.5Zm.832-1.668Zm-1.664 0ZM10 9.168Zm0 0"/></svg>

После

Ширина:  |  Высота:  |  Размер: 725 B

Просмотреть файл

@ -1 +0,0 @@
<svg viewBox="146 124 16 16" width="16" height="16" xmlns="http://www.w3.org/2000/svg"><g fill="none"><path d="M146 124h16v16h-16z" opacity=".5"/><path d="M152 138h-2.5c-1 0-1.5-.5-1.5-1.5v-9c0-1 .5-1.5 1.5-1.5h9c1.5 0 1.5 1.468 1.5 1.5v2.5h-1v-3h-10v10h3zm9-5-3 2 3 3-1 1-3-3-2 3-2-8z" fill="#000"/></g></svg>

До

Ширина:  |  Высота:  |  Размер: 310 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.833 17.5 10 11.667l-1.958 1.958c.11.208.187.43.229.667.042.236.062.472.062.708a3.21 3.21 0 0 1-.979 2.354 3.21 3.21 0 0 1-2.354.98 3.21 3.21 0 0 1-2.354-.98A3.21 3.21 0 0 1 1.666 15c0-.917.327-1.701.98-2.354A3.21 3.21 0 0 1 5 11.666c.236 0 .472.022.708.063.237.042.459.118.667.23L8.333 10 6.375 8.042c-.208.11-.43.187-.667.229A4.068 4.068 0 0 1 5 8.333a3.21 3.21 0 0 1-2.354-.979A3.21 3.21 0 0 1 1.666 5c0-.917.327-1.701.98-2.354A3.21 3.21 0 0 1 5 1.666a3.21 3.21 0 0 1 2.354.98A3.21 3.21 0 0 1 8.334 5c0 .236-.021.472-.063.708a2.231 2.231 0 0 1-.23.667l10.292 10.292v.833h-2.5ZM12.5 9.167 10.833 7.5l5-5h2.5v.833L12.5 9.167ZM5 6.667c.458 0 .85-.163 1.177-.49.327-.326.49-.719.49-1.177 0-.458-.163-.85-.49-1.177A1.605 1.605 0 0 0 5 3.333c-.458 0-.85.164-1.177.49-.326.326-.49.719-.49 1.177 0 .458.164.85.49 1.177.326.327.719.49 1.177.49Zm5 3.75a.4.4 0 0 0 .292-.125.4.4 0 0 0 .125-.292.4.4 0 0 0-.125-.292.4.4 0 0 0-.584 0 .4.4 0 0 0 0 .584.4.4 0 0 0 .292.125Zm-5 6.25c.458 0 .85-.163 1.177-.49.327-.326.49-.719.49-1.177 0-.458-.163-.85-.49-1.177A1.605 1.605 0 0 0 5 13.333c-.458 0-.85.164-1.177.49-.326.326-.49.719-.49 1.177 0 .458.164.85.49 1.177.326.327.719.49 1.177.49Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 1.3 KiB

Просмотреть файл

@ -0,0 +1 @@
<svg width="15" height="12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 12V0l15 6-15 6Zm1.5-2.23L10.958 6 1.5 2.23V4.5L6 6 1.5 7.5v2.27Zm0 0V2.23 9.77Z" fill="#1B6EF3"/></svg>

После

Ширина:  |  Высота:  |  Размер: 190 B

Просмотреть файл

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.683 15.058" height="56.913" width="55.496"><path d="M5.842 2.758V.529h3v2.229c.699.22 1.34.591 1.88 1.087l1.932-1.115 1.5 2.598-1.93 1.115a5.017 5.017 0 0 1 0 2.173l1.93 1.114-1.5 2.597-1.93-1.115A4.995 4.995 0 0 1 8.841 12.3v2.23h-3V12.3a4.994 4.994 0 0 1-1.88-1.087L2.03 12.328.53 9.731l1.93-1.114a5.017 5.017 0 0 1 0-2.173L.53 5.329l1.5-2.598 1.93 1.115a4.995 4.995 0 0 1 1.882-1.087zm1.5 7.27c3.334 0 3.334-5 0-5-3.333 0-3.333 5 0 5z" fill="#212121"/></svg>

До

Ширина:  |  Высота:  |  Размер: 517 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="5" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 124 B

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

До

Ширина:  |  Высота:  |  Размер: 20 KiB

Просмотреть файл

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path d="M7.4 11.2v-4h1.2v4H7.4Zm.604-4.8a.589.589 0 0 1-.604-.596.589.589 0 0 1 .597-.604.589.589 0 0 1 .603.596.589.589 0 0 1-.596.604Zm5.113.7 1-1c.1.311.172.623.216.937.045.314.067.635.067.963 0 .882-.167 1.71-.5 2.486a6.46 6.46 0 0 1-3.412 3.414c-.775.333-1.602.5-2.483.5a6.25 6.25 0 0 1-2.488-.5 6.45 6.45 0 0 1-2.042-1.375A6.453 6.453 0 0 1 2.1 10.484a6.254 6.254 0 0 1-.5-2.492 6.2 6.2 0 0 1 .5-2.484A6.46 6.46 0 0 1 5.514 2.1 6.23 6.23 0 0 1 8 1.6c.329 0 .65.022.963.067.314.044.626.116.937.216l-1 1a17.406 17.406 0 0 0-.448-.058A3.91 3.91 0 0 0 8 2.8c-1.444 0-2.672.506-3.683 1.517C3.306 5.327 2.8 6.556 2.8 8s.506 2.672 1.517 3.683C5.327 12.694 6.556 13.2 8 13.2c1.445 0 2.672-.506 3.683-1.517C12.694 10.673 13.2 9.444 13.2 8c0-.158-.008-.309-.025-.452a17.626 17.626 0 0 0-.058-.448ZM11.6 8c0-1.004-.349-1.855-1.047-2.553S9.003 4.4 8 4.4c1.004 0 1.855-.35 2.553-1.047C11.25 2.655 11.6 1.803 11.6.8c0 1.004.35 1.855 1.047 2.553.699.698 1.55 1.047 2.553 1.047-1.003 0-1.854.35-2.553 1.047C11.95 6.145 11.6 6.997 11.6 8Z" fill="#0B57D0"/></svg>

После

Ширина:  |  Высота:  |  Размер: 1.1 KiB

Просмотреть файл

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path d="M10.001 18.33a8.115 8.115 0 0 0-.656-3.25 8.415 8.415 0 0 0-1.781-2.645 8.416 8.416 0 0 0-2.646-1.781 8.115 8.115 0 0 0-3.25-.657 8.115 8.115 0 0 0 3.25-.656A8.415 8.415 0 0 0 7.564 7.56a8.415 8.415 0 0 0 1.781-2.646 8.115 8.115 0 0 0 .656-3.25c0 1.153.22 2.236.657 3.25a8.415 8.415 0 0 0 1.78 2.646 8.415 8.415 0 0 0 2.647 1.781 8.115 8.115 0 0 0 3.25.656 8.115 8.115 0 0 0-3.25.657 8.415 8.415 0 0 0-2.646 1.78 8.415 8.415 0 0 0-1.781 2.647A8.115 8.115 0 0 0 10 18.33Z" fill="#1B6EF3"/></svg>

После

Ширина:  |  Высота:  |  Размер: 578 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 3h9.5v10l-6 6-.667-.458a1.651 1.651 0 0 1-.541-.636 1.234 1.234 0 0 1-.104-.802l.02-.104L8 13H2.5c-.417 0-.77-.146-1.063-.438A1.447 1.447 0 0 1 1 11.5v-1.188a1.347 1.347 0 0 1 .125-.583l2.48-5.812c.11-.278.294-.5.551-.667A1.52 1.52 0 0 1 5 3Zm8 1.5H5l-2.5 5.813V11.5h7.333l-1.02 5.063L13 12.375V4.5Zm1.5 8.5v-1.5h3v-7h-3V3H19v10h-4.5Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 442 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 17H5.5V7l6-6 .667.458c.236.167.416.379.541.636.125.257.16.524.104.802l-.02.104L12 7h5.5c.417 0 .77.146 1.063.438.291.291.437.645.437 1.062v1.188a1.348 1.348 0 0 1-.125.583l-2.48 5.816a1.544 1.544 0 0 1-.562.663A1.47 1.47 0 0 1 15 17Zm-8-1.5h8l2.5-5.813V8.5h-7.333l1.02-5.063L7 7.625V15.5ZM5.5 7v1.5h-3v7h3V17H1V7h4.5Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 426 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#000" d="M8.73 18.332a2.43 2.43 0 0 1-1.093-.25 2.442 2.442 0 0 1-.867-.707l-4.54-5.77.395-.418c.277-.292.61-.464 1-.519.39-.059.75.02 1.082.227l1.543.937V5c0-.234.078-.434.238-.594.16-.16.36-.238.594-.238a.84.84 0 0 1 .606.238c.167.16.25.36.25.594v9.832l-2.02-1.25 2.164 2.773a.955.955 0 0 0 .293.227c.11.059.23.086.355.086h4.602c.461 0 .852-.164 1.18-.492.324-.324.488-.719.488-1.176v-3.332a.8.8 0 0 0-.238-.594.81.81 0 0 0-.594-.242H9.605V9.168h4.563c.691 0 1.285.242 1.77.727.484.488.73 1.078.73 1.773V15c0 .918-.328 1.703-.98 2.355a3.21 3.21 0 0 1-2.356.977ZM3.48 7.082a3.898 3.898 0 0 1-.417-.988A4.101 4.101 0 0 1 2.917 5c0-1.152.406-2.137 1.219-2.95C4.949 1.239 5.93.833 7.082.833s2.137.406 2.95 1.219c.812.812 1.218 1.797 1.218 2.949a4.043 4.043 0 0 1-.563 2.082L9.25 6.25c.11-.195.195-.39.25-.594.055-.203.082-.422.082-.656 0-.695-.242-1.285-.727-1.77a2.412 2.412 0 0 0-1.773-.73c-.691 0-1.285.242-1.77.73A2.412 2.412 0 0 0 4.582 5a2.436 2.436 0 0 0 .336 1.25Zm6.977 5.836Zm0 0"/></svg>

После

Ширина:  |  Высота:  |  Размер: 1.1 KiB

Просмотреть файл

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" height="10mm" width="10mm"><path style="stroke:#c19600;stroke-width:2;stroke-linejoin:round" d="m61 9 4-8 4 8z" transform="translate(-60) scale(1.00001)"/><path style="fill:#f4bd00;stroke:#f5bd00;stroke-width:1.5;stroke-linejoin:round" d="m61 9 4-8 4 8z" transform="translate(-60) scale(1.00001)"/><path style="fill:#ad8601" d="M63.75 2.75h2.5v2.5L65.75 7h-1.5l-.5-1.75v-2.5m0 5.25h2.5v1.25h-2.5" transform="translate(-60) scale(1.00001)"/><path style="fill:#fff" d="M64 3h2v2.25L65.5 7h-1L64 5.25V3m0 5h2v1h-2" transform="translate(-60) scale(1.00001)"/></svg>

До

Ширина:  |  Высота:  |  Размер: 621 B

Просмотреть файл

@ -0,0 +1 @@
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m15.938 17-4.98-5A4.8 4.8 0 0 1 8 13c-1.389 0-2.57-.486-3.542-1.458C3.486 10.569 3 9.389 3 8c0-1.389.486-2.57 1.458-3.542C5.431 3.486 6.611 3 8 3c1.389 0 2.57.486 3.542 1.458C12.514 5.431 13 6.611 13 8a4.8 4.8 0 0 1-.26 1.583c-.174.5-.414.958-.719 1.375L17 15.938 15.938 17ZM8 11.5c.972 0 1.798-.34 2.479-1.021.68-.68 1.021-1.507 1.021-2.479 0-.972-.34-1.798-1.021-2.479C9.799 4.841 8.972 4.5 8 4.5c-.972 0-1.798.34-2.479 1.021C4.841 6.201 4.5 7.028 4.5 8c0 .972.34 1.798 1.021 2.479.68.68 1.507 1.021 2.479 1.021Zm-.75-1.25v-1.5h-1.5v-1.5h1.5v-1.5h1.5v1.5h1.5v1.5h-1.5v1.5h-1.5Z" fill="#000"/></svg>

После

Ширина:  |  Высота:  |  Размер: 684 B

Просмотреть файл

@ -38,7 +38,23 @@
*/
(function createTestSuite(window) {
// 'Tests.js' is loaded as a classic script so we can't use static imports for these modules.
/** @type {import('./core/common/common.js')} */
let Common;
/** @type {import('./core/host/host.js')} */
let HostModule;
/** @type {import('./core/root/root.js')} */
let Root;
/** @type {import('./core/sdk/sdk.js')} */
let SDK;
/** @type {import('./panels/sources/sources.js')} */
let Sources;
/** @type {import('./panels/timeline/timeline.js')} */
let Timeline;
/** @type {import('./ui/legacy/legacy.js')} */
let UI;
/** @type {import('./models/workspace/workspace.js')} */
let Workspace;
const TestSuite = class {
/**
* Test suite for interactive UI tests.
@ -143,13 +159,34 @@
TestSuite.prototype.setupLegacyFilesForTest = async function() {
try {
await Promise.all([
self.runtime.loadLegacyModule('core/common/common-legacy.js'),
self.runtime.loadLegacyModule('core/sdk/sdk-legacy.js'),
self.runtime.loadLegacyModule('core/host/host-legacy.js'),
self.runtime.loadLegacyModule('ui/legacy/legacy-legacy.js'),
self.runtime.loadLegacyModule('models/workspace/workspace-legacy.js'),
]);
// 'Tests.js' is executed on 'about:blank' so we can't use `import` directly without
// specifying the full devtools://devtools/bundled URL.
([
Common,
HostModule,
Root,
SDK,
Sources,
Timeline,
UI,
Workspace,
] =
await Promise.all([
self.runtime.loadLegacyModule('core/common/common.js'),
self.runtime.loadLegacyModule('core/host/host.js'),
self.runtime.loadLegacyModule('core/root/root.js'),
self.runtime.loadLegacyModule('core/sdk/sdk.js'),
self.runtime.loadLegacyModule('panels/sources/sources.js'),
self.runtime.loadLegacyModule('panels/timeline/timeline.js'),
self.runtime.loadLegacyModule('ui/legacy/legacy.js'),
self.runtime.loadLegacyModule('models/workspace/workspace.js'),
]));
// We have to map 'Host.InspectorFrontendHost' as the C++ uses it directly.
self.Host = {};
self.Host.InspectorFrontendHost = HostModule.InspectorFrontendHost.InspectorFrontendHostInstance;
self.Host.InspectorFrontendHostAPI = HostModule.InspectorFrontendHostAPI;
this.reportOk_();
} catch (e) {
this.reportFailure_(e);
@ -255,7 +292,7 @@
* @param {string} panelName Name of the panel to show.
*/
TestSuite.prototype.showPanel = function(panelName) {
return self.UI.inspectorView.showPanel(panelName);
return UI.InspectorView.InspectorView.instance().showPanel(panelName);
};
// UI Tests
@ -275,6 +312,20 @@
this.takeControl();
};
/**
* Tests that Recorder tab can be open.
*/
TestSuite.prototype.testShowRecorderTab = function() {
this.showPanel('chrome-recorder')
.then(() => {
this.releaseControl();
})
.catch(err => {
this.fail('Loading Recorder panel failed: ' + err.message);
});
this.takeControl();
};
/**
* Tests that scripts list contains content scripts.
*/
@ -339,7 +390,8 @@
// Tests that debugger works correctly if pause event occurs when DevTools
// frontend is being loaded.
TestSuite.prototype.testPauseWhenLoadingDevTools = function() {
const debuggerModel = self.SDK.targetManager.primaryPageTarget().model(SDK.DebuggerModel);
const debuggerModel =
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.model(SDK.DebuggerModel.DebuggerModel);
if (debuggerModel.debuggerPausedDetails) {
return;
}
@ -364,7 +416,7 @@
test.releaseControl();
}
this.addSniffer(SDK.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
this.addSniffer(SDK.NetworkManager.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
// Reload inspected page to sniff network events
test.evaluateInConsole_('window.location.reload(true);', function(resultText) {});
@ -383,7 +435,7 @@
test.releaseControl();
}
this.addSniffer(SDK.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
this.addSniffer(SDK.NetworkManager.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
// Send synchronous XHR to sniff network events
test.evaluateInConsole_(
@ -408,7 +460,7 @@
test.releaseControl();
}
this.addSniffer(SDK.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
this.addSniffer(SDK.NetworkManager.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
// Reload inspected page to sniff network events
test.evaluateInConsole_('window.location.reload(true);', function(resultText) {});
@ -429,8 +481,8 @@
test.assertTrue(
request.timing.receiveHeadersEnd - request.timing.connectStart >= 70,
'Time between receiveHeadersEnd and connectStart should be >=70ms, but was ' +
'receiveHeadersEnd=' + request.timing.receiveHeadersEnd + ', connectStart=' +
request.timing.connectStart + '.');
'receiveHeadersEnd=' + request.timing.receiveHeadersEnd +
', connectStart=' + request.timing.connectStart + '.');
test.assertTrue(
request.responseReceivedTime - request.startTime >= 0.07,
'Time between responseReceivedTime and startTime should be >=0.07s, but was ' +
@ -443,7 +495,7 @@
test.releaseControl();
}
this.addSniffer(SDK.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
this.addSniffer(SDK.NetworkManager.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
// Reload inspected page to sniff network events
test.evaluateInConsole_('window.location.reload(true);', function(resultText) {});
@ -476,7 +528,7 @@
}
}
this.addSniffer(SDK.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest, true);
this.addSniffer(SDK.NetworkManager.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest, true);
test.evaluateInConsole_('addImage(\'' + url + '\')', function(resultText) {});
test.evaluateInConsole_('addImage(\'' + url + '?pushUseNullEndTime\')', function(resultText) {});
@ -484,24 +536,24 @@
};
TestSuite.prototype.testConsoleOnNavigateBack = function() {
function filteredMessages() {
return SDK.ConsoleModel.allMessagesUnordered().filter(a => a.source !== Protocol.Log.LogEntrySource.Violation);
return SDK.ConsoleModel.ConsoleModel.allMessagesUnordered().filter(
a => a.source !== Protocol.Log.LogEntrySource.Violation);
}
if (filteredMessages().length === 1) {
firstConsoleMessageReceived.call(this, null);
} else {
self.SDK.targetManager.addModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, firstConsoleMessageReceived, this);
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, firstConsoleMessageReceived, this);
}
function firstConsoleMessageReceived(event) {
if (event && event.data.source === Protocol.Log.LogEntrySource.Violation) {
return;
}
self.SDK.targetManager.removeModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, firstConsoleMessageReceived, this);
SDK.TargetManager.TargetManager.instance().removeModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, firstConsoleMessageReceived, this);
this.evaluateInConsole_('clickLink();', didClickLink.bind(this));
}
@ -548,10 +600,10 @@
this._waitForTargets(1, callback.bind(this));
function callback() {
const debuggerModel = self.SDK.targetManager.models(SDK.DebuggerModel)[0];
const debuggerModel = SDK.TargetManager.TargetManager.instance().models(SDK.DebuggerModel.DebuggerModel)[0];
if (debuggerModel.isPaused()) {
self.SDK.targetManager.addModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
debuggerModel.resume();
return;
}
@ -579,12 +631,13 @@
TestSuite.prototype.enableTouchEmulation = function() {
const deviceModeModel = new Emulation.DeviceModeModel(function() {});
deviceModeModel._target = self.SDK.targetManager.primaryPageTarget();
deviceModeModel._target = SDK.TargetManager.TargetManager.instance().primaryPageTarget();
deviceModeModel._applyTouch(true, true);
};
TestSuite.prototype.waitForDebuggerPaused = function() {
const debuggerModel = self.SDK.targetManager.primaryPageTarget().model(SDK.DebuggerModel);
const debuggerModel =
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.model(SDK.DebuggerModel.DebuggerModel);
if (debuggerModel.debuggerPausedDetails) {
return;
}
@ -608,7 +661,10 @@
const test = this;
async function testOverrides(params, metrics, callback) {
await self.SDK.targetManager.primaryPageTarget().emulationAgent().invoke_setDeviceMetricsOverride(params);
await SDK.TargetManager.TargetManager.instance()
.primaryPageTarget()
?.emulationAgent()
.invoke_setDeviceMetricsOverride(params);
test.evaluateInConsole_('(' + dumpPageMetrics.toString() + ')()', checkMetrics);
function checkMetrics(consoleResult) {
@ -655,16 +711,16 @@
let receivedReady = false;
function signalToShowAutofill() {
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'rawKeyDown', key: 'Down', windowsVirtualKeyCode: 40, nativeVirtualKeyCode: 40});
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'keyUp', key: 'Down', windowsVirtualKeyCode: 40, nativeVirtualKeyCode: 40});
}
function selectTopAutoFill() {
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'rawKeyDown', key: 'Enter', windowsVirtualKeyCode: 13, nativeVirtualKeyCode: 13});
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'keyUp', key: 'Enter', windowsVirtualKeyCode: 13, nativeVirtualKeyCode: 13});
test.evaluateInConsole_('document.getElementById("name").value', onResultOfInput);
@ -692,10 +748,10 @@
// It is possible for the ready console messagage to be already received but not handled
// or received later. This ensures we can catch both cases.
self.SDK.targetManager.addModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
const messages = SDK.ConsoleModel.allMessagesUnordered();
const messages = SDK.ConsoleModel.ConsoleModel.allMessagesUnordered();
if (messages.length) {
const text = messages[0].messageText;
this.assertEquals('ready', text);
@ -714,7 +770,7 @@
Host.InspectorFrontendHostAPI.Events.KeyEventUnhandled, onKeyEventUnhandledKeyDown, this);
Host.InspectorFrontendHost.events.addEventListener(
Host.InspectorFrontendHostAPI.Events.KeyEventUnhandled, onKeyEventUnhandledKeyUp, this);
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'keyUp', key: 'F8', code: 'F8', windowsVirtualKeyCode: 119, nativeVirtualKeyCode: 119});
}
function onKeyEventUnhandledKeyUp(event) {
@ -728,7 +784,7 @@
this.takeControl();
Host.InspectorFrontendHost.events.addEventListener(
Host.InspectorFrontendHostAPI.Events.KeyEventUnhandled, onKeyEventUnhandledKeyDown, this);
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'rawKeyDown', key: 'F8', windowsVirtualKeyCode: 119, nativeVirtualKeyCode: 119});
};
@ -737,22 +793,22 @@
TestSuite.prototype.testForwardedKeysChanged = function() {
this.takeControl();
this.addSniffer(self.UI.shortcutRegistry, 'registerBindings', () => {
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
this.addSniffer(UI.ShortcutRegistry.ShortcutRegistry.instance(), 'registerBindings', () => {
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'rawKeyDown', key: 'F1', windowsVirtualKeyCode: 112, nativeVirtualKeyCode: 112});
});
this.addSniffer(self.UI.shortcutRegistry, 'handleKey', key => {
this.addSniffer(UI.ShortcutRegistry.ShortcutRegistry.instance(), 'handleKey', key => {
this.assertEquals(112, key);
this.releaseControl();
});
self.Common.settings.moduleSetting('activeKeybindSet').set('vsCode');
Common.Settings.moduleSetting('active-keybind-set').set('vsCode');
};
TestSuite.prototype.testDispatchKeyEventDoesNotCrash = function() {
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'rawKeyDown', windowsVirtualKeyCode: 0x23, key: 'End'});
self.SDK.targetManager.primaryPageTarget().inputAgent().invoke_dispatchKeyEvent(
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent().invoke_dispatchKeyEvent(
{type: 'keyUp', windowsVirtualKeyCode: 0x23, key: 'End'});
};
@ -843,7 +899,7 @@
// See crbug.com/747724
TestSuite.prototype.testOfflineNetworkConditions = async function() {
const test = this;
self.SDK.multitargetNetworkManager.setNetworkConditions(SDK.NetworkManager.OfflineConditions);
SDK.NetworkManager.MultitargetNetworkManager.instance().setNetworkConditions(SDK.NetworkManager.OfflineConditions);
function finishRequest(request) {
test.assertEquals(
@ -851,7 +907,7 @@
test.releaseControl();
}
this.addSniffer(SDK.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
this.addSniffer(SDK.NetworkManager.NetworkDispatcher.prototype, 'finishNetworkRequest', finishRequest);
test.takeControl();
test.evaluateInConsole_('await fetch("/");', function(resultText) {});
@ -870,15 +926,15 @@
messages.splice(index, 1);
if (!messages.length) {
self.SDK.targetManager.removeModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
SDK.TargetManager.TargetManager.instance().removeModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
next();
}
}
self.SDK.targetManager.addModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
self.SDK.multitargetNetworkManager.setNetworkConditions(preset);
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
SDK.NetworkManager.MultitargetNetworkManager.instance().setNetworkConditions(preset);
}
test.takeControl();
@ -932,14 +988,15 @@
}
}
const captureFilmStripSetting = self.Common.settings.createSetting('timelineCaptureFilmStrip', false);
const captureFilmStripSetting =
Common.Settings.Settings.instance().createSetting('timeline-capture-film-strip', false);
captureFilmStripSetting.set(true);
test.evaluateInConsole_(performActionsInPage.toString(), function() {});
test.invokeAsyncWithTimeline_('performActionsInPage', onTimelineDone);
function onTimelineDone() {
captureFilmStripSetting.set(false);
const filmStripModel = UI.panels.timeline._performanceModel.filmStripModel();
const filmStripModel = Timeline.TimelinePanel.TimelinePanel.instance().performanceModel?.filmStripModel();
const frames = filmStripModel.frames();
test.assertTrue(frames.length > 4 && typeof frames.length === 'number');
loadFrameImages(frames);
@ -951,11 +1008,11 @@
frame.imageDataPromise().then(onGotImageData);
}
function onGotImageData(data) {
function onGotImageData(dataUri) {
const image = new Image();
test.assertTrue(Boolean(data), 'No image data for frame');
test.assertTrue(Boolean(dataUri), 'No image data for frame');
image.addEventListener('load', onLoad);
image.src = 'data:image/jpg;base64,' + data;
image.src = dataUri;
}
function onLoad(event) {
@ -1006,9 +1063,9 @@
setTimeout(reset, 0);
function createSettings() {
const localSetting = self.Common.settings.createLocalSetting('local', undefined);
const localSetting = Common.Settings.Settings.instance().createLocalSetting('local', undefined);
localSetting.set({s: 'local', n: 1});
const globalSetting = self.Common.settings.createSetting('global', undefined);
const globalSetting = Common.Settings.Settings.instance().createSetting('global', undefined);
globalSetting.set({s: 'global', n: 2});
}
@ -1020,11 +1077,11 @@
function gotPreferences(prefs) {
Main.Main.instanceForTest.createSettings(prefs);
const localSetting = self.Common.settings.createLocalSetting('local', undefined);
const localSetting = Common.Settings.Settings.instance().createLocalSetting('local', undefined);
test.assertEquals('object', typeof localSetting.get());
test.assertEquals('local', localSetting.get().s);
test.assertEquals(1, localSetting.get().n);
const globalSetting = self.Common.settings.createSetting('global', undefined);
const globalSetting = Common.Settings.Settings.instance().createSetting('global', undefined);
test.assertEquals('object', typeof globalSetting.get());
test.assertEquals('global', globalSetting.get().s);
test.assertEquals(2, globalSetting.get().n);
@ -1035,16 +1092,16 @@
TestSuite.prototype.testWindowInitializedOnNavigateBack = function() {
const test = this;
test.takeControl();
const messages = SDK.ConsoleModel.allMessagesUnordered();
const messages = SDK.ConsoleModel.ConsoleModel.allMessagesUnordered();
if (messages.length === 1) {
checkMessages();
} else {
self.SDK.targetManager.addModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, checkMessages.bind(this), this);
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, checkMessages.bind(this), this);
}
function checkMessages() {
const messages = SDK.ConsoleModel.allMessagesUnordered();
const messages = SDK.ConsoleModel.ConsoleModel.allMessagesUnordered();
test.assertEquals(1, messages.length);
test.assertTrue(messages[0].messageText.indexOf('Uncaught') === -1);
test.releaseControl();
@ -1072,14 +1129,16 @@
TestSuite.prototype.testRawHeadersWithHSTS = function(url) {
const test = this;
test.takeControl({slownessFactor: 10});
self.SDK.targetManager.addModelListener(
SDK.NetworkManager, SDK.NetworkManager.Events.ResponseReceived, onResponseReceived);
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.NetworkManager.NetworkManager, SDK.NetworkManager.Events.ResponseReceived, onResponseReceived);
this.evaluateInConsole_(`
this.evaluateInConsole_(
`
let img = document.createElement('img');
img.src = "${url}";
document.body.appendChild(img);
`, () => {});
`,
() => {});
let count = 0;
function onResponseReceived(event) {
@ -1114,14 +1173,14 @@
};
TestSuite.prototype.testDOMWarnings = function() {
const messages = SDK.ConsoleModel.allMessagesUnordered();
const messages = SDK.ConsoleModel.ConsoleModel.allMessagesUnordered();
this.assertEquals(1, messages.length);
const expectedPrefix = '[DOM] Found 2 elements with non-unique id #dup:';
this.assertTrue(messages[0].messageText.startsWith(expectedPrefix));
};
TestSuite.prototype.waitForTestResultsInConsole = function() {
const messages = SDK.ConsoleModel.allMessagesUnordered();
const messages = SDK.ConsoleModel.ConsoleModel.allMessagesUnordered();
for (let i = 0; i < messages.length; ++i) {
const text = messages[i].messageText;
if (text === 'PASS') {
@ -1141,8 +1200,8 @@
}
}
self.SDK.targetManager.addModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage, this);
this.takeControl({slownessFactor: 10});
};
@ -1184,14 +1243,14 @@
TestSuite.prototype.startTimeline = function(callback) {
const test = this;
this.showPanel('timeline').then(function() {
const timeline = UI.panels.timeline;
const timeline = Timeline.TimelinePanel.TimelinePanel.instance();
test._overrideMethod(timeline, 'recordingStarted', callback);
timeline._toggleRecording();
});
};
TestSuite.prototype.stopTimeline = function(callback) {
const timeline = UI.panels.timeline;
const timeline = Timeline.TimelinePanel.TimelinePanel.instance();
this._overrideMethod(timeline, 'loadingComplete', callback);
timeline._toggleRecording();
};
@ -1204,13 +1263,14 @@
Array.prototype.slice.call(arguments, 1, -1).map(arg => JSON.stringify(arg)).join(',') + ',';
this.evaluateInConsole_(
`${functionName}(${argsString} function() { console.log('${doneMessage}'); });`, function() {});
self.SDK.targetManager.addModelListener(SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage);
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage);
function onConsoleMessage(event) {
const text = event.data.messageText;
if (text === doneMessage) {
self.SDK.targetManager.removeModelListener(
SDK.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage);
SDK.TargetManager.TargetManager.instance().removeModelListener(
SDK.ConsoleModel.ConsoleModel, SDK.ConsoleModel.Events.MessageAdded, onConsoleMessage);
callback();
}
}
@ -1234,43 +1294,21 @@
Root.Runtime.experiments.enableForTest(name);
};
TestSuite.prototype.checkInputEventsPresent = function() {
const expectedEvents = new Set(arguments);
const model = UI.panels.timeline._performanceModel.timelineModel();
const asyncEvents = model.virtualThreads().find(thread => thread.isMainFrame).asyncEventsByGroup;
const input = asyncEvents.get(TimelineModel.TimelineModel.AsyncEventGroup.input) || [];
const prefix = 'InputLatency::';
for (const e of input) {
if (!e.name.startsWith(prefix)) {
continue;
}
if (e.steps.length < 2) {
continue;
}
if (e.name.startsWith(prefix + 'Mouse') &&
typeof TimelineModel.TimelineData.forEvent(e.steps[0]).timeWaitingForMainThread !== 'number') {
throw `Missing timeWaitingForMainThread on ${e.name}`;
}
expectedEvents.delete(e.name.substr(prefix.length));
}
if (expectedEvents.size) {
throw 'Some expected events are not found: ' + Array.from(expectedEvents.keys()).join(',');
}
};
TestSuite.prototype.testInspectedElementIs = async function(nodeName) {
this.takeControl();
await self.runtime.loadLegacyModule('panels/elements/elements-legacy.js');
if (!Elements.ElementsPanel.firstInspectElementNodeNameForTest) {
await new Promise(f => this.addSniffer(Elements.ElementsPanel, 'firstInspectElementCompletedForTest', f));
/** @type {import('./panels/elements/elements.js')} */
const Elements = await self.runtime.loadLegacyModule('panels/elements/elements.js');
if (!Elements.ElementsPanel.ElementsPanel.firstInspectElementNodeNameForTest) {
await new Promise(
f => this.addSniffer(Elements.ElementsPanel.ElementsPanel, 'firstInspectElementCompletedForTest', f));
}
this.assertEquals(nodeName, Elements.ElementsPanel.firstInspectElementNodeNameForTest);
this.assertEquals(nodeName, Elements.ElementsPanel.ElementsPanel.firstInspectElementNodeNameForTest);
this.releaseControl();
};
TestSuite.prototype.testDisposeEmptyBrowserContext = async function(url) {
this.takeControl();
const targetAgent = self.SDK.targetManager.rootTarget().targetAgent();
const targetAgent = SDK.TargetManager.TargetManager.instance().rootTarget()?.targetAgent();
const {browserContextId} = await targetAgent.invoke_createBrowserContext();
const response1 = await targetAgent.invoke_getBrowserContexts();
this.assertEquals(response1.browserContextIds.length, 1);
@ -1283,7 +1321,7 @@
TestSuite.prototype.testNewWindowFromBrowserContext = async function(url) {
this.takeControl();
// Create a BrowserContext.
const targetAgent = self.SDK.targetManager.rootTarget().targetAgent();
const targetAgent = SDK.TargetManager.TargetManager.instance().rootTarget()?.targetAgent();
const {browserContextId} = await targetAgent.invoke_createBrowserContext();
// Cause a Browser to be created with the temp profile.
@ -1300,7 +1338,7 @@
TestSuite.prototype.testCreateBrowserContext = async function(url) {
this.takeControl();
const browserContextIds = [];
const targetAgent = self.SDK.targetManager.rootTarget().targetAgent();
const targetAgent = SDK.TargetManager.TargetManager.instance().rootTarget()?.targetAgent();
const target1 = await createIsolatedTarget(url, browserContextIds);
const target2 = await createIsolatedTarget(url, browserContextIds);
@ -1319,7 +1357,7 @@
this.assertEquals(await evalCode(target2, 'localStorage.getItem("page2")'), 'page2');
const removedTargets = [];
self.SDK.targetManager.observeTargets(
SDK.TargetManager.TargetManager.instance().observeTargets(
{targetAdded: () => {}, targetRemoved: target => removedTargets.push(target)});
await Promise.all([disposeBrowserContext(browserContextIds[0]), disposeBrowserContext(browserContextIds[1])]);
this.assertEquals(removedTargets.length, 2);
@ -1331,10 +1369,10 @@
/**
* @param {string} url
* @return {!Promise<!SDK.Target>}
* @return {!Promise<!SDK.Target.Target>}
*/
async function createIsolatedTarget(url, opt_browserContextIds) {
const targetAgent = self.SDK.targetManager.rootTarget().targetAgent();
const targetAgent = SDK.TargetManager.TargetManager.instance().rootTarget()?.targetAgent();
const {browserContextId} = await targetAgent.invoke_createBrowserContext();
if (opt_browserContextIds) {
opt_browserContextIds.push(browserContextId);
@ -1343,7 +1381,7 @@
const {targetId} = await targetAgent.invoke_createTarget({url: 'about:blank', browserContextId});
await targetAgent.invoke_attachToTarget({targetId, flatten: true});
const target = self.SDK.targetManager.targets().find(target => target.id() === targetId);
const target = SDK.TargetManager.TargetManager.instance().targets().find(target => target.id() === targetId);
const pageAgent = target.pageAgent();
await pageAgent.invoke_enable();
await pageAgent.invoke_navigate({url});
@ -1351,7 +1389,7 @@
}
async function disposeBrowserContext(browserContextId) {
const targetAgent = self.SDK.targetManager.rootTarget().targetAgent();
const targetAgent = SDK.TargetManager.TargetManager.instance().rootTarget()?.targetAgent();
await targetAgent.invoke_disposeBrowserContext({browserContextId});
}
@ -1376,8 +1414,8 @@
let parentFrameOutput;
let childFrameOutput;
const inputAgent = self.SDK.targetManager.primaryPageTarget().inputAgent();
const runtimeAgent = self.SDK.targetManager.primaryPageTarget().runtimeAgent();
const inputAgent = SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.inputAgent();
const runtimeAgent = SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.runtimeAgent();
await inputAgent.invoke_dispatchMouseEvent({type: 'mousePressed', button: 'left', clickCount: 1, x: 10, y: 10});
await inputAgent.invoke_dispatchMouseEvent({type: 'mouseMoved', button: 'left', clickCount: 1, x: 10, y: 20});
await inputAgent.invoke_dispatchMouseEvent({type: 'mouseReleased', button: 'left', clickCount: 1, x: 10, y: 20});
@ -1385,26 +1423,26 @@
await inputAgent.invoke_dispatchMouseEvent({type: 'mouseMoved', button: 'left', clickCount: 1, x: 230, y: 150});
await inputAgent.invoke_dispatchMouseEvent({type: 'mouseReleased', button: 'left', clickCount: 1, x: 230, y: 150});
parentFrameOutput = 'Event type: mousedown button: 0 x: 10 y: 10 Event type: mouseup button: 0 x: 10 y: 20';
this.assertEquals(parentFrameOutput, await takeLogs(self.SDK.targetManager.targets()[0]));
this.assertEquals(parentFrameOutput, await takeLogs(SDK.TargetManager.TargetManager.instance().targets()[0]));
childFrameOutput = 'Event type: mousedown button: 0 x: 30 y: 40 Event type: mouseup button: 0 x: 30 y: 50';
this.assertEquals(childFrameOutput, await takeLogs(self.SDK.targetManager.targets()[1]));
this.assertEquals(childFrameOutput, await takeLogs(SDK.TargetManager.TargetManager.instance().targets()[1]));
await inputAgent.invoke_dispatchKeyEvent({type: 'keyDown', key: 'a'});
await runtimeAgent.invoke_evaluate({expression: "document.querySelector('iframe').focus()"});
await runtimeAgent.invoke_evaluate({expression: 'document.querySelector(\'iframe\').focus()'});
await inputAgent.invoke_dispatchKeyEvent({type: 'keyDown', key: 'a'});
parentFrameOutput = 'Event type: keydown';
this.assertEquals(parentFrameOutput, await takeLogs(self.SDK.targetManager.targets()[0]));
this.assertEquals(parentFrameOutput, await takeLogs(SDK.TargetManager.TargetManager.instance().targets()[0]));
childFrameOutput = 'Event type: keydown';
this.assertEquals(childFrameOutput, await takeLogs(self.SDK.targetManager.targets()[1]));
this.assertEquals(childFrameOutput, await takeLogs(SDK.TargetManager.TargetManager.instance().targets()[1]));
await inputAgent.invoke_dispatchTouchEvent({type: 'touchStart', touchPoints: [{x: 10, y: 10}]});
await inputAgent.invoke_dispatchTouchEvent({type: 'touchEnd', touchPoints: []});
await inputAgent.invoke_dispatchTouchEvent({type: 'touchStart', touchPoints: [{x: 230, y: 140}]});
await inputAgent.invoke_dispatchTouchEvent({type: 'touchEnd', touchPoints: []});
parentFrameOutput = 'Event type: touchstart touch x: 10 touch y: 10';
this.assertEquals(parentFrameOutput, await takeLogs(self.SDK.targetManager.targets()[0]));
this.assertEquals(parentFrameOutput, await takeLogs(SDK.TargetManager.TargetManager.instance().targets()[0]));
childFrameOutput = 'Event type: touchstart touch x: 30 touch y: 40';
this.assertEquals(childFrameOutput, await takeLogs(self.SDK.targetManager.targets()[1]));
this.assertEquals(childFrameOutput, await takeLogs(SDK.TargetManager.TargetManager.instance().targets()[1]));
this.releaseControl();
};
@ -1414,7 +1452,7 @@
const loggedHeaders = new Set(['cache-control', 'pragma']);
function testCase(url, headers, expectedStatus, expectedHeaders, expectedContent) {
return new Promise(fulfill => {
Host.ResourceLoader.load(url, headers, callback);
HostModule.ResourceLoader.load(url, headers, callback);
function callback(success, headers, content, errorDescription) {
test.assertEquals(expectedStatus, errorDescription.statusCode);
@ -1440,14 +1478,14 @@
await testCase(baseURL + 'echoheader?x-devtools-test', {'x-devtools-test': 'Foo'}, 200, ['cache-control'], 'Foo');
await testCase(baseURL + 'set-header?pragma:%20no-cache', undefined, 200, ['pragma'], 'pragma: no-cache');
await self.SDK.targetManager.primaryPageTarget().runtimeAgent().invoke_evaluate({
await SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.runtimeAgent().invoke_evaluate({
expression: `fetch("/set-cookie?devtools-test-cookie=Bar",
{credentials: 'include'})`,
awaitPromise: true
});
await testCase(baseURL + 'echoheader?Cookie', undefined, 200, ['cache-control'], 'devtools-test-cookie=Bar');
await self.SDK.targetManager.primaryPageTarget().runtimeAgent().invoke_evaluate({
await SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.runtimeAgent().invoke_evaluate({
expression: `fetch("/set-cookie?devtools-test-cookie=same-site-cookie;SameSite=Lax",
{credentials: 'include'})`,
awaitPromise: true
@ -1465,11 +1503,11 @@
this.takeControl();
const testUserAgent = 'test user agent';
self.SDK.multitargetNetworkManager.setUserAgentOverride(testUserAgent);
SDK.NetworkManager.MultitargetNetworkManager.instance().setUserAgentOverride(testUserAgent, null);
function onRequestUpdated(event) {
const request = event.data;
if (request.resourceType() !== Common.resourceTypes.WebSocket) {
if (request.resourceType() !== Common.ResourceType.resourceTypes.WebSocket) {
return;
}
if (!request.requestHeadersText()) {
@ -1485,18 +1523,18 @@
this.assertEquals(testUserAgent, actualUserAgent);
this.releaseControl();
}
self.SDK.targetManager.addModelListener(
SDK.NetworkManager, SDK.NetworkManager.Events.RequestUpdated, onRequestUpdated.bind(this));
SDK.TargetManager.TargetManager.instance().addModelListener(
SDK.NetworkManager.NetworkManager, SDK.NetworkManager.Events.RequestUpdated, onRequestUpdated.bind(this));
this.evaluateInConsole_(`new WebSocket('ws://127.0.0.1:${websocketPort}')`, () => {});
};
TestSuite.prototype.testExtensionWebSocketOfflineNetworkConditions = async function(websocketPort) {
self.SDK.multitargetNetworkManager.setNetworkConditions(SDK.NetworkManager.OfflineConditions);
SDK.NetworkManager.MultitargetNetworkManager.instance().setNetworkConditions(SDK.NetworkManager.OfflineConditions);
// TODO(crbug.com/1263900): Currently we don't send loadingFailed for web sockets.
// Update this once we do.
this.addSniffer(SDK.NetworkDispatcher.prototype, 'webSocketClosed', () => {
this.addSniffer(SDK.NetworkManager.NetworkDispatcher.prototype, 'webSocketClosed', () => {
this.releaseControl();
});
@ -1519,7 +1557,8 @@
TestSuite.prototype.testSourceMapsFromExtension = function(extensionId) {
this.takeControl();
const debuggerModel = self.SDK.targetManager.primaryPageTarget().model(SDK.DebuggerModel);
const debuggerModel =
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.model(SDK.DebuggerModel.DebuggerModel);
debuggerModel.sourceMapManager().addEventListener(
SDK.SourceMapManager.Events.SourceMapAttached, this.releaseControl.bind(this));
@ -1529,7 +1568,8 @@
TestSuite.prototype.testSourceMapsFromDevtools = function() {
this.takeControl();
const debuggerModel = self.SDK.targetManager.primaryPageTarget().model(SDK.DebuggerModel);
const debuggerModel =
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.model(SDK.DebuggerModel.DebuggerModel);
debuggerModel.sourceMapManager().addEventListener(
SDK.SourceMapManager.Events.SourceMapWillAttach, this.releaseControl.bind(this));
@ -1553,7 +1593,7 @@
return !uiSourceCode.project().isServiceProject();
}
const uiSourceCodes = self.Workspace.workspace.uiSourceCodes();
const uiSourceCodes = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodes();
return uiSourceCodes.filter(filterOutService);
};
@ -1565,7 +1605,8 @@
*/
TestSuite.prototype.evaluateInConsole_ = function(code, callback) {
function innerEvaluate() {
self.UI.context.removeFlavorChangeListener(SDK.ExecutionContext, showConsoleAndEvaluate, this);
UI.Context.Context.instance().removeFlavorChangeListener(
SDK.RuntimeModel.ExecutionContext, showConsoleAndEvaluate, this);
const consoleView = Console.ConsoleView.instance();
consoleView.prompt.appendCommand(code);
@ -1575,11 +1616,12 @@
}
function showConsoleAndEvaluate() {
self.Common.console.showPromise().then(innerEvaluate.bind(this));
Common.Console.Console.instance().showPromise().then(innerEvaluate.bind(this));
}
if (!self.UI.context.flavor(SDK.ExecutionContext)) {
self.UI.context.addFlavorChangeListener(SDK.ExecutionContext, showConsoleAndEvaluate, this);
if (!UI.Context.Context.instance().flavor(SDK.RuntimeModel.ExecutionContext)) {
UI.Context.Context.instance().addFlavorChangeListener(
SDK.RuntimeModel.ExecutionContext, showConsoleAndEvaluate, this);
return;
}
showConsoleAndEvaluate.call(this);
@ -1613,7 +1655,7 @@
* @param {function():void} callback
*/
TestSuite.prototype._waitForScriptPause = function(callback) {
this.addSniffer(SDK.DebuggerModel.prototype, 'pausedScript', callback);
this.addSniffer(SDK.DebuggerModel.DebuggerModel.prototype, 'pausedScript', callback);
};
/**
@ -1626,7 +1668,8 @@
if (test._scriptsAreParsed(expectedScripts)) {
callback();
} else {
test.addSniffer(UI.panels.sources.sourcesView(), 'addUISourceCode', waitForAllScripts);
test.addSniffer(
Sources.SourcesPanel.SourcesPanel.instance().sourcesView(), 'addUISourceCode', waitForAllScripts);
}
}
@ -1637,23 +1680,25 @@
checkTargets.call(this);
function checkTargets() {
if (self.SDK.targetManager.targets().length >= n) {
if (SDK.TargetManager.TargetManager.instance().targets().length >= n) {
callback.call(null);
} else {
this.addSniffer(SDK.TargetManager.prototype, 'createTarget', checkTargets.bind(this));
this.addSniffer(SDK.TargetManager.TargetManager.prototype, 'createTarget', checkTargets.bind(this));
}
}
};
TestSuite.prototype._waitForExecutionContexts = function(n, callback) {
const runtimeModel = self.SDK.targetManager.primaryPageTarget().model(SDK.RuntimeModel);
const runtimeModel =
SDK.TargetManager.TargetManager.instance().primaryPageTarget()?.model(SDK.RuntimeModel.RuntimeModel);
checkForExecutionContexts.call(this);
function checkForExecutionContexts() {
if (runtimeModel.executionContexts().length >= n) {
callback.call(null);
} else {
this.addSniffer(SDK.RuntimeModel.prototype, 'executionContextCreated', checkForExecutionContexts.bind(this));
this.addSniffer(
SDK.RuntimeModel.RuntimeModel.prototype, 'executionContextCreated', checkForExecutionContexts.bind(this));
}
}
};

Просмотреть файл

@ -1 +0,0 @@
import*as e from"./common.js";self.Common=self.Common||{},Common=Common||{},Common.App=e.App.App,Common.AppProvider=e.AppProvider.AppProvider,Common.console=e.Console.Console.instance(),Common.Console=e.Console.Console,Common.EventTarget={removeEventListeners:e.EventTarget.removeEventListeners},Common.JavaScriptMetadata=e.JavaScriptMetaData.JavaScriptMetaData,Common.Linkifier=e.Linkifier.Linkifier,Common.Object=e.ObjectWrapper.ObjectWrapper,Common.ParsedURL=e.ParsedURL.ParsedURL,Common.Progress=e.Progress.Progress,Common.CompositeProgress=e.Progress.CompositeProgress,Common.QueryParamHandler=e.QueryParamHandler.QueryParamHandler,Common.resourceTypes=e.ResourceType.resourceTypes,Common.Revealer=e.Revealer.Revealer,Common.Revealer.reveal=e.Revealer.reveal,Common.Revealer.setRevealForTest=e.Revealer.setRevealForTest,Common.Segment=e.SegmentedRange.Segment,Common.SegmentedRange=e.SegmentedRange.SegmentedRange,Common.Settings=e.Settings.Settings,Common.Settings.detectColorFormat=e.Settings.detectColorFormat,Common.Setting=e.Settings.Setting,Common.settingForTest=e.Settings.settingForTest,Common.VersionController=e.Settings.VersionController,Common.moduleSetting=e.Settings.moduleSetting,Common.StringOutputStream=e.StringOutputStream.StringOutputStream,Common.Throttler=e.Throttler.Throttler,Common.Trie=e.Trie.Trie,Common.settings;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +0,0 @@
import*as o from"./host.js";self.Host=self.Host||{},Host=Host||{},Host.InspectorFrontendHost=o.InspectorFrontendHost.InspectorFrontendHostInstance,Host.isUnderTest=o.InspectorFrontendHost.isUnderTest,Host.InspectorFrontendHostAPI={},Host.InspectorFrontendHostAPI.Events=o.InspectorFrontendHostAPI.Events,Host.platform=o.Platform.platform,Host.isWin=o.Platform.isWin,Host.isMac=o.Platform.isMac,Host.isCustomDevtoolsFrontend=o.Platform.isCustomDevtoolsFrontend,Host.fontFamily=o.Platform.fontFamily,Host.ResourceLoader=o.ResourceLoader.ResourceLoader,Host.ResourceLoader.load=o.ResourceLoader.load,Host.ResourceLoader.loadAsStream=o.ResourceLoader.loadAsStream,Host.ResourceLoader.setLoadForTest=o.ResourceLoader.setLoadForTest,Host.UserMetrics=o.UserMetrics.UserMetrics,Host.UserMetrics._PanelCodes=o.UserMetrics.PanelCodes,Host.UserMetrics.Action=o.UserMetrics.Action,Host.userMetrics=o.userMetrics;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +1 @@
import*as e from"../../third_party/i18n/i18n.js";import*as t from"../platform/platform.js";import*as o from"../root/root.js";let n=null;class r{locale;lookupClosestDevToolsLocale;constructor(e){this.lookupClosestDevToolsLocale=e.lookupClosestDevToolsLocale,"browserLanguage"===e.settingLanguage?this.locale=e.navigatorLanguage||"en-US":this.locale=e.settingLanguage,this.locale=this.lookupClosestDevToolsLocale(this.locale)}static instance(e={create:!1}){if(!n&&!e.create)throw new Error("No LanguageSelector instance exists yet.");return e.create&&(n=new r(e.data)),n}static removeInstance(){n=null}forceFallbackLocale(){this.locale="en-US"}languageIsSupportedByDevTools(e){return s(e,this.lookupClosestDevToolsLocale(e))}}function s(e,t){const o=new Intl.Locale(e),n=new Intl.Locale(t);return o.language===n.language}var i=Object.freeze({__proto__:null,DevToolsLocale:r,localeLanguagesMatch:s});const l=new e.I18n.I18n(["af","am","ar","as","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en-GB","es-419","es","et","eu","fa","fi","fil","fr-CA","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","ja","ka","kk","km","kn","ko","ky","lo","lt","lv","mk","ml","mn","mr","ms","my","ne","nl","no","or","pa","pl","pt-PT","pt","ro","ru","si","sk","sl","sq","sr-Latn","sr","sv","sw","ta","te","th","tr","uk","ur","uz","vi","zh-HK","zh-TW","zu","en-US","zh"],"en-US"),a=new Set(["en-US","zh"]);function c(e,t,o={}){return e.getLocalizedStringSetFor(r.instance().locale).getLocalizedString(t,o)}function u(e,t){return l.registerFileStrings(e,t)}var g=Object.freeze({__proto__:null,lookupClosestSupportedDevToolsLocale:function(e){return l.lookupClosestSupportedLocale(e)},getAllSupportedDevToolsLocales:function(){return[...l.supportedLocales]},fetchAndRegisterLocaleData:async function(e,t=self.location.toString()){const n=fetch(function(e,t){const n=o.Runtime.getRemoteBase(t);if(n&&n.version&&!a.has(e))return"@HOST@/remote/serve_file/@VERSION@/core/i18n/locales/@LOCALE@.json".replace("@HOST@","devtools://devtools").replace("@VERSION@",n.version).replace("@LOCALE@",e);const r="./locales/@LOCALE@.json".replace("@LOCALE@",e);return new URL(r,import.meta.url).toString()}(e,t)).then((e=>e.json())),r=new Promise(((e,t)=>window.setTimeout((()=>t(new Error("timed out fetching locale"))),5e3))),s=await Promise.race([r,n]);l.registerLocaleData(e,s)},getLazilyComputedLocalizedString:function(e,t,o={}){return()=>c(e,t,o)},getLocalizedString:c,registerUIStrings:u,getFormatLocalizedString:function(e,t,o){const n=e.getLocalizedStringSetFor(r.instance().locale).getMessageFormatterFor(t),s=document.createElement("span");for(const e of n.getAst())if(1===e.type){const t=o[e.value];t&&s.append(t)}else"value"in e&&s.append(String(e.value));return s},serializeUIString:function(e,t={}){const o={string:e,values:t};return JSON.stringify(o)},deserializeUIString:function(e){return e?JSON.parse(e):{string:"",values:{}}},lockedString:function(e){return e},lockedLazyString:function(e){return()=>e},getLocalizedLanguageRegion:function(e,t){const o=new Intl.Locale(e),n=o.language||"en",r=o.baseName||"en-US",s=n===new Intl.Locale(t.locale).language?"en":r,i=new Intl.DisplayNames([t.locale],{type:"language"}).of(n),l=new Intl.DisplayNames([s],{type:"language"}).of(n);let a="",c="";if(o.region){a=` (${new Intl.DisplayNames([t.locale],{type:"region",style:"short"}).of(o.region)})`,c=` (${new Intl.DisplayNames([s],{type:"region",style:"short"}).of(o.region)})`}return`${i}${a} - ${l}${c}`}});const f={fmms:"{PH1} μs",fms:"{PH1} ms",fs:"{PH1} s",fmin:"{PH1} min",fhrs:"{PH1} hrs",fdays:"{PH1} days"},p=u("core/i18n/time-utilities.ts",f),m=c.bind(void 0,p),L=function(e,t){if(!isFinite(e))return"-";if(0===e)return"0";if(t&&e<.1)return m(f.fmms,{PH1:(1e3*e).toFixed(0)});if(t&&e<1e3)return m(f.fms,{PH1:e.toFixed(2)});if(e<1e3)return m(f.fms,{PH1:e.toFixed(0)});const o=e/1e3;if(o<60)return m(f.fs,{PH1:o.toFixed(2)});const n=o/60;if(n<60)return m(f.fmin,{PH1:n.toFixed(1)});const r=n/60;if(r<24)return m(f.fhrs,{PH1:r.toFixed(1)});return m(f.fdays,{PH1:(r/24).toFixed(1)})};var d=Object.freeze({__proto__:null,preciseMillisToString:function(e,t){return t=t||0,m(f.fms,{PH1:e.toFixed(t)})},millisToString:L,secondsToString:function(e,t){return isFinite(e)?L(1e3*e,t):"-"}});export{i as DevToolsLocale,d as TimeUtilities,g as i18n};
import*as e from"../../third_party/i18n/i18n.js";import*as t from"../root/root.js";let o=null;class n{locale;lookupClosestDevToolsLocale;constructor(e){this.lookupClosestDevToolsLocale=e.lookupClosestDevToolsLocale,"browserLanguage"===e.settingLanguage?this.locale=e.navigatorLanguage||"en-US":this.locale=e.settingLanguage,this.locale=this.lookupClosestDevToolsLocale(this.locale)}static instance(e={create:!1}){if(!o&&!e.create)throw new Error("No LanguageSelector instance exists yet.");return e.create&&(o=new n(e.data)),o}static removeInstance(){o=null}forceFallbackLocale(){this.locale="en-US"}languageIsSupportedByDevTools(e){return r(e,this.lookupClosestDevToolsLocale(e))}}function r(e,t){const o=new Intl.Locale(e),n=new Intl.Locale(t);return o.language===n.language}var s=Object.freeze({__proto__:null,DevToolsLocale:n,localeLanguagesMatch:r});const i="@HOST@/remote/serve_file/@VERSION@/core/i18n/locales/@LOCALE@.json",l="./locales/@LOCALE@.json",a=new e.I18n.I18n(["af","am","ar","as","az","be","bg","bn","bs","ca","cs","cy","da","de","el","en-GB","es-419","es","et","eu","fa","fi","fil","fr-CA","fr","gl","gu","he","hi","hr","hu","hy","id","is","it","ja","ka","kk","km","kn","ko","ky","lo","lt","lv","mk","ml","mn","mr","ms","my","ne","nl","no","or","pa","pl","pt-PT","pt","ro","ru","si","sk","sl","sq","sr-Latn","sr","sv","sw","ta","te","th","tr","uk","ur","uz","vi","zh-HK","zh-TW","zu","en-US","zh"],"en-US"),c=new Set(["en-US","zh"]);function u(e,t,o={}){return e.getLocalizedStringSetFor(n.instance().locale).getLocalizedString(t,o)}function g(e,t){return a.registerFileStrings(e,t)}var f=Object.freeze({__proto__:null,lookupClosestSupportedDevToolsLocale:function(e){return a.lookupClosestSupportedLocale(e)},getAllSupportedDevToolsLocales:function(){return[...a.supportedLocales]},fetchAndRegisterLocaleData:async function(e,o=self.location.toString()){const n=fetch(function(e,o){const n=t.Runtime.getRemoteBase(o);if(n&&n.version&&!c.has(e))return i.replace("@HOST@","devtools://devtools").replace("@VERSION@",n.version).replace("@LOCALE@",e);const r=l.replace("@LOCALE@",e);return new URL(r,import.meta.url).toString()}(e,o)).then((e=>e.json())),r=new Promise(((e,t)=>window.setTimeout((()=>t(new Error("timed out fetching locale"))),5e3))),s=await Promise.race([r,n]);a.registerLocaleData(e,s)},getLazilyComputedLocalizedString:function(e,t,o={}){return()=>u(e,t,o)},getLocalizedString:u,registerUIStrings:g,getFormatLocalizedString:function(e,t,o){const r=e.getLocalizedStringSetFor(n.instance().locale).getMessageFormatterFor(t),s=document.createElement("span");for(const e of r.getAst())if(1===e.type){const t=o[e.value];t&&s.append(t)}else"value"in e&&s.append(String(e.value));return s},serializeUIString:function(e,t={}){const o={string:e,values:t};return JSON.stringify(o)},deserializeUIString:function(e){return e?JSON.parse(e):{string:"",values:{}}},lockedString:function(e){return e},lockedLazyString:function(e){return()=>e},getLocalizedLanguageRegion:function(e,t){const o=new Intl.Locale(e),{language:n,baseName:r}=o,s=n===new Intl.Locale(t.locale).language?"en":r,i=new Intl.DisplayNames([t.locale],{type:"language"}).of(n),l=new Intl.DisplayNames([s],{type:"language"}).of(n);let a="",c="";if(o.region){a=` (${new Intl.DisplayNames([t.locale],{type:"region",style:"short"}).of(o.region)})`,c=` (${new Intl.DisplayNames([s],{type:"region",style:"short"}).of(o.region)})`}return`${i}${a} - ${l}${c}`}});const p={fmms:"{PH1} μs",fms:"{PH1} ms",fs:"{PH1} s",fmin:"{PH1} min",fhrs:"{PH1} hrs",fdays:"{PH1} days"},m=g("core/i18n/time-utilities.ts",p),L=u.bind(void 0,m),d=function(e,t){if(!isFinite(e))return"-";if(0===e)return"0";if(t&&e<.1)return L(p.fmms,{PH1:(1e3*e).toFixed(0)});if(t&&e<1e3)return L(p.fms,{PH1:e.toFixed(2)});if(e<1e3)return L(p.fms,{PH1:e.toFixed(0)});const o=e/1e3;if(o<60)return L(p.fs,{PH1:o.toFixed(2)});const n=o/60;if(n<60)return L(p.fmin,{PH1:n.toFixed(1)});const r=n/60;if(r<24)return L(p.fhrs,{PH1:r.toFixed(1)});return L(p.fdays,{PH1:(r/24).toFixed(1)})};var S=Object.freeze({__proto__:null,preciseMillisToString:function(e,t){return t=t||0,L(p.fms,{PH1:e.toFixed(t)})},millisToString:d,secondsToString:function(e,t){return isFinite(e)?d(1e3*e,t):"-"}});export{s as DevToolsLocale,S as TimeUtilities,f as i18n};

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +0,0 @@
import*as o from"./protocol_client.js";self.ProtocolClient=self.ProtocolClient||{},ProtocolClient=ProtocolClient||{},ProtocolClient.DevToolsStubErrorCode=o.InspectorBackend.DevToolsStubErrorCode,ProtocolClient.SessionRouter=o.InspectorBackend.SessionRouter,ProtocolClient.InspectorBackend=o.InspectorBackend.InspectorBackend,ProtocolClient.Connection=o.InspectorBackend.Connection,ProtocolClient.inspectorBackend=o.InspectorBackend.inspectorBackend,ProtocolClient.test=o.InspectorBackend.test,ProtocolClient.TargetBase=o.InspectorBackend.TargetBase,ProtocolClient.NodeURL=o.NodeURL.NodeURL;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +1 @@
import*as e from"../root/root.js";const t=e.Runtime.RNExperimentName,n={didInitializeExperiments:!1,isReactNativeEntryPoint:!1};class i{name;title;unstable;docLink;feedbackLink;enabledByDefault;configurable;constructor(e){this.name=e.name,this.title=e.title,this.unstable=e.unstable,this.docLink=e.docLink,this.feedbackLink=e.feedbackLink,this.enabledByDefault=r(e.enabledByDefault,!1),this.configurable=r(e.configurable,!0)}}function r(e,t){return null==e?()=>t:"boolean"==typeof e?()=>e:e}const a=new class{#e=new Map;#t=new Set;#n=new Set;register(e){if(n.didInitializeExperiments)throw new Error("Experiments must be registered before constructing MainImpl");const{name:t}=e;if(this.#e.has(t))throw new Error(`React Native Experiment ${t} is already registered`);this.#e.set(t,new i(e))}enableExperimentsByDefault(e){if(n.didInitializeExperiments)throw new Error("Experiments must be configured before constructing MainImpl");for(const n of e)if(Object.prototype.hasOwnProperty.call(t,n)){const e=this.#e.get(n);if(!e)throw new Error(`React Native Experiment ${n} is not registered`);e.enabledByDefault=()=>!0}else this.#t.add(n)}setNonConfigurableExperiments(e){if(n.didInitializeExperiments)throw new Error("Experiments must be configured before constructing MainImpl");for(const n of e)if(Object.prototype.hasOwnProperty.call(t,n)){const e=this.#e.get(n);if(!e)throw new Error(`React Native Experiment ${n} is not registered`);e.configurable=()=>!1}else this.#n.add(n)}copyInto(e,t=""){for(const[i,r]of this.#e)e.register(i,t+r.title,r.unstable,r.docLink,r.feedbackLink),r.enabledByDefault({isReactNativeEntryPoint:n.isReactNativeEntryPoint})&&e.enableExperimentsByDefault([i]),r.configurable({isReactNativeEntryPoint:n.isReactNativeEntryPoint})||e.setNonConfigurableExperiments([i]);for(const t of this.#t)e.enableExperimentsByDefault([t]);for(const t of this.#n)e.setNonConfigurableExperiments([t]);n.didInitializeExperiments=!0}};a.register({name:t.JS_HEAP_PROFILER_ENABLE,title:"Enable Heap Profiler",unstable:!1,enabledByDefault:({isReactNativeEntryPoint:e})=>!e,configurable:({isReactNativeEntryPoint:e})=>e}),a.register({name:t.ENABLE_REACT_DEVTOOLS_PANEL,title:"Enable React DevTools panel",unstable:!0,enabledByDefault:!1,configurable:({isReactNativeEntryPoint:e})=>e}),a.register({name:t.REACT_NATIVE_SPECIFIC_UI,title:"Show React Native-specific UI",unstable:!1,enabledByDefault:({isReactNativeEntryPoint:e})=>e,configurable:!1}),a.register({name:t.ENABLE_PERFORMANCE_PANEL,title:"Enable Performance panel",unstable:!0,enabledByDefault:({isReactNativeEntryPoint:e})=>!e,configurable:({isReactNativeEntryPoint:e})=>e});var o=Object.freeze({__proto__:null,RNExperimentName:t,setIsReactNativeEntryPoint:function(e){if(n.didInitializeExperiments)throw new Error("setIsReactNativeEntryPoint must be called before constructing MainImpl");n.isReactNativeEntryPoint=e},Instance:a});export{o as RNExperimentsImpl};
import*as e from"../root/root.js";const t=e.Runtime.RNExperimentName,n={didInitializeExperiments:!1,isReactNativeEntryPoint:!1};class i{name;title;unstable;docLink;feedbackLink;enabledByDefault;constructor(e){this.name=e.name,this.title=e.title,this.unstable=e.unstable,this.docLink=e.docLink,this.feedbackLink=e.feedbackLink,this.enabledByDefault=function(e,t){if(null==e)return()=>t;if("boolean"==typeof e)return()=>e;return e}(e.enabledByDefault,!1)}}const a=new class{#e=new Map;#t=new Set;register(e){if(n.didInitializeExperiments)throw new Error("Experiments must be registered before constructing MainImpl");const{name:t}=e;if(this.#e.has(t))throw new Error(`React Native Experiment ${t} is already registered`);this.#e.set(t,new i(e))}enableExperimentsByDefault(e){if(n.didInitializeExperiments)throw new Error("Experiments must be configured before constructing MainImpl");for(const n of e)if(Object.prototype.hasOwnProperty.call(t,n)){const e=this.#e.get(n);if(!e)throw new Error(`React Native Experiment ${n} is not registered`);e.enabledByDefault=()=>!0}else this.#t.add(n)}copyInto(e,t=""){for(const[i,a]of this.#e)e.register(i,t+a.title,a.unstable,a.docLink,a.feedbackLink),a.enabledByDefault({isReactNativeEntryPoint:n.isReactNativeEntryPoint})&&e.enableExperimentsByDefault([i]);for(const t of this.#t)e.enableExperimentsByDefault([t]);n.didInitializeExperiments=!0}};a.register({name:t.JS_HEAP_PROFILER_ENABLE,title:"Enable Heap Profiler",unstable:!1,enabledByDefault:({isReactNativeEntryPoint:e})=>!e}),a.register({name:t.ENABLE_REACT_DEVTOOLS_PANEL,title:"Enable React DevTools panel",unstable:!0,enabledByDefault:!1}),a.register({name:t.REACT_NATIVE_SPECIFIC_UI,title:"Show React Native-specific UI",unstable:!1,enabledByDefault:({isReactNativeEntryPoint:e})=>e}),a.register({name:t.ENABLE_PERFORMANCE_PANEL,title:"Enable Performance panel",unstable:!0,enabledByDefault:({isReactNativeEntryPoint:e})=>!e});var r=Object.freeze({__proto__:null,RNExperimentName:t,setIsReactNativeEntryPoint:function(e){if(n.didInitializeExperiments)throw new Error("setIsReactNativeEntryPoint must be called before constructing MainImpl");n.isReactNativeEntryPoint=e},Instance:a});export{r as RNExperimentsImpl};

Просмотреть файл

@ -1 +0,0 @@
import*as t from"./root.js";self.Root=self.Root||{},Root=Root||{},Root.Runtime=t.Runtime.Runtime,Root.Runtime.experiments=t.Runtime.experiments,Root.Runtime.queryParam=t.Runtime.Runtime.queryParam,Root.runtime,Root.Runtime.Extension=t.Runtime.Extension,Root.Runtime.Module=t.Runtime.Module;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +0,0 @@
import*as e from"./sdk.js";self.SDK=self.SDK||{},SDK=SDK||{},SDK.CPUProfileDataModel=e.CPUProfileDataModel.CPUProfileDataModel,SDK.CPUProfilerModel=e.CPUProfilerModel.CPUProfilerModel,SDK.CPUThrottlingManager=e.CPUThrottlingManager.CPUThrottlingManager,SDK.CPUThrottlingManager.CPUThrottlingRates=e.CPUThrottlingManager.CPUThrottlingRates,SDK.cssMetadata=e.CSSMetadata.cssMetadata,SDK.CSSModel=e.CSSModel.CSSModel,SDK.CSSModel.Events=e.CSSModel.Events,SDK.CSSLocation=e.CSSModel.CSSLocation,SDK.CSSProperty=e.CSSProperty.CSSProperty,SDK.CSSStyleDeclaration=e.CSSStyleDeclaration.CSSStyleDeclaration,SDK.CSSStyleDeclaration.Type=e.CSSStyleDeclaration.Type,SDK.MainConnection=e.Connections.MainConnection,SDK.ConsoleModel=e.ConsoleModel.ConsoleModel,SDK.ConsoleMessage=e.ConsoleModel.ConsoleMessage,SDK.ConsoleModel.Events=e.ConsoleModel.Events,SDK.ConsoleMessage.MessageSource=e.ConsoleModel.MessageSource,SDK.ConsoleMessage.MessageType=e.ConsoleModel.MessageType,SDK.ConsoleMessage.MessageLevel=e.ConsoleModel.MessageLevel,SDK.ConsoleMessage.FrontendMessageType=e.ConsoleModel.FrontendMessageType,SDK.ConsoleMessage.FrontendMessageSource=e.ConsoleModel.FrontendMessageSource,SDK.Cookie=e.Cookie.Cookie,SDK.CookieParser=e.CookieParser.CookieParser,SDK.DOMDebuggerModel=e.DOMDebuggerModel.DOMDebuggerModel,SDK.DOMModel=e.DOMModel.DOMModel,SDK.DOMModel.Events=e.DOMModel.Events,SDK.DeferredDOMNode=e.DOMModel.DeferredDOMNode,SDK.DOMDocument=e.DOMModel.DOMDocument,SDK.DOMNode=e.DOMModel.DOMNode,SDK.DebuggerModel=e.DebuggerModel.DebuggerModel,SDK.DebuggerModel.PauseOnExceptionsState=e.DebuggerModel.PauseOnExceptionsState,SDK.DebuggerModel.Events=e.DebuggerModel.Events,SDK.DebuggerModel.BreakReason=Protocol.Debugger.PausedEventReason,SDK.DebuggerModel.Location=e.DebuggerModel.Location,SDK.DebuggerModel.CallFrame=e.DebuggerModel.CallFrame,SDK.DebuggerPausedDetails=e.DebuggerModel.DebuggerPausedDetails,SDK.FilmStripModel=e.FilmStripModel.FilmStripModel,SDK.HeapProfilerModel=e.HeapProfilerModel.HeapProfilerModel,SDK.IsolateManager=e.IsolateManager.IsolateManager,SDK.IsolateManager.MemoryTrend=e.IsolateManager.MemoryTrend,SDK.NetworkManager=e.NetworkManager.NetworkManager,SDK.NetworkManager.Events=e.NetworkManager.Events,SDK.NetworkManager.OfflineConditions=e.NetworkManager.OfflineConditions,SDK.NetworkManager.Fast3GConditions=e.NetworkManager.Fast3GConditions,SDK.NetworkDispatcher=e.NetworkManager.NetworkDispatcher,SDK.MultitargetNetworkManager=e.NetworkManager.MultitargetNetworkManager,SDK.MultitargetNetworkManager.InterceptedRequest=e.NetworkManager.InterceptedRequest,SDK.NetworkRequest=e.NetworkRequest.NetworkRequest,SDK.NetworkRequest.Events=e.NetworkRequest.Events,SDK.NetworkRequest.WebSocketFrameType=e.NetworkRequest.WebSocketFrameType,SDK.OverlayModel=e.OverlayModel.OverlayModel,SDK.PerformanceMetricsModel=e.PerformanceMetricsModel.PerformanceMetricsModel,SDK.ProfileTreeModel=e.ProfileTreeModel.ProfileTreeModel,SDK.RemoteObject=e.RemoteObject.RemoteObject,SDK.Resource=e.Resource.Resource,SDK.ResourceTreeModel=e.ResourceTreeModel.ResourceTreeModel,SDK.ResourceTreeModel.Events=e.ResourceTreeModel.Events,SDK.ResourceTreeFrame=e.ResourceTreeModel.ResourceTreeFrame,SDK.RuntimeModel=e.RuntimeModel.RuntimeModel,SDK.RuntimeModel.Events=e.RuntimeModel.Events,SDK.ExecutionContext=e.RuntimeModel.ExecutionContext,SDK.Script=e.Script.Script,SDK.SecurityOriginManager=e.SecurityOriginManager.SecurityOriginManager,SDK.StorageBucketsModel=e.StorageBucketsModel.StorageBucketsModel,SDK.StorageKeyManager=e.StorageKeyManager.StorageKeyManager,SDK.SecurityOriginManager.Events=e.SecurityOriginManager.Events,SDK.ServiceWorkerCacheModel=e.ServiceWorkerCacheModel.ServiceWorkerCacheModel,SDK.ServiceWorkerManager=e.ServiceWorkerManager.ServiceWorkerManager,SDK.SourceMap=e.SourceMap.SourceMap,SDK.SourceMapManager=e.SourceMapManager.SourceMapManager,SDK.SourceMapManager.Events=e.SourceMapManager.Events,SDK.Target=e.Target.Target,SDK.Target.Type=e.Target.Type,SDK.TargetManager=e.TargetManager.TargetManager,SDK.TargetManager.Events=e.TargetManager.Events,SDK.TargetManager.Observer=e.TargetManager.Observer,SDK.TracingManager=e.TracingManager.TracingManager,SDK.TracingModel=e.TracingModel.TracingModel,SDK.TracingModel.Phase=e.TracingModel.Phase,SDK.TracingModel.LegacyTopLevelEventCategory=e.TracingModel.LegacyTopLevelEventCategory,SDK.TracingModel.DevToolsMetadataEventCategory=e.TracingModel.DevToolsMetadataEventCategory,SDK.TracingModel.Event=e.TracingModel.Event,self.SDK.targetManager=e.TargetManager.TargetManager.instance(),self.SDK.isolateManager=e.IsolateManager.IsolateManager.instance({forceNew:!0}),self.SDK.domModelUndoStack=e.DOMModel.DOMModelUndoStack.instance();

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -319,6 +319,10 @@ const DevToolsAPIImpl = class {
this._dispatchOnInspectorFrontendAPI('searchCompleted', [requestId, fileSystemPath, files]);
}
colorThemeChanged() {
this._dispatchOnInspectorFrontendAPI('colorThemeChanged', []);
}
/**
* @param {string} tabId
*/
@ -408,6 +412,7 @@ const EnumeratedHistogram = {
DeveloperResourceScheme: 'DevTools.DeveloperResourceScheme',
ElementsSidebarTabShown: 'DevTools.Elements.SidebarTabShown',
ExperimentDisabled: 'DevTools.ExperimentDisabled',
ExperimentDisabledAtLaunch: 'DevTools.ExperimentDisabledAtLaunch',
ExperimentEnabled: 'DevTools.ExperimentEnabled',
ExperimentEnabledAtLaunch: 'DevTools.ExperimentEnabledAtLaunch',
IssueCreated: 'DevTools.IssueCreated',
@ -418,11 +423,11 @@ const EnumeratedHistogram = {
KeyboardShortcutFired: 'DevTools.KeyboardShortcutFired',
Language: 'DevTools.Language',
LighthouseModeRun: 'DevTools.LighthouseModeRun',
LinearMemoryInspectorRevealedFrom: 'DevTools.LinearMemoryInspector.RevealedFrom',
LinearMemoryInspectorTarget: 'DevTools.LinearMemoryInspector.Target',
LighthouseCategoryUsed: 'DevTools.LighthouseCategoryUsed',
ManifestSectionSelected: 'DevTools.ManifestSectionSelected',
PanelClosed: 'DevTools.PanelClosed',
PanelShown: 'DevTools.PanelShown',
PanelShownInLocation: 'DevTools.PanelShownInLocation',
RecordingAssertion: 'DevTools.RecordingAssertion',
RecordingCodeToggled: 'DevTools.RecordingCodeToggled',
RecordingCopiedToClipboard: 'DevTools.RecordingCopiedToClipboard',
@ -447,6 +452,14 @@ const EnumeratedHistogram = {
BreakpointsRestoredFromStorageCount: 'DevTools.BreakpointsRestoredFromStorageCount',
SwatchActivated: 'DevTools.SwatchActivated',
BadgeActivated: 'DevTools.BadgeActivated',
AnimationPlaybackRateChanged: 'DevTools.AnimationPlaybackRateChanged',
AnimationPointDragged: 'DevTools.AnimationPointDragged',
LegacyResourceTypeFilterNumberOfSelectedChanged: 'DevTools.LegacyResourceTypeFilterNumberOfSelectedChanged',
LegacyResourceTypeFilterItemSelected: 'DevTools.LegacyResourceTypeFilterItemSelected',
ResourceTypeFilterNumberOfSelectedChanged: 'DevTools.ResourceTypeFilterNumberOfSelectedChanged',
ResourceTypeFilterItemSelected: 'DevTools.ResourceTypeFilterItemSelected',
NetworkPanelMoreFiltersNumberOfSelectedChanged: 'DevTools.NetworkPanelMoreFiltersNumberOfSelectedChanged',
NetworkPanelMoreFiltersItemSelected: 'DevTools.NetworkPanelMoreFiltersItemSelected',
};
/**
@ -663,6 +676,14 @@ const InspectorFrontendHostImpl = class {
DevToolsAPI.sendMessageToEmbedder('openInNewTab', [url], null);
}
/**
* @override
* @param {string} query
*/
openSearchResultsInNewTab(query) {
DevToolsAPI.sendMessageToEmbedder('openSearchResultsInNewTab', [query], null);
}
/**
* @override
* @param {string} fileSystemPath
@ -978,6 +999,62 @@ const InspectorFrontendHostImpl = class {
DevToolsAPI.setAddExtensionCallback(callback);
}
/**
* @override
* @param {InspectorFrontendHostAPI.ImpressionEvent} impressionEvent
*/
recordImpression(impressionEvent) {
DevToolsAPI.sendMessageToEmbedder('recordImpression', [impressionEvent], null);
}
/**
* @override
* @param {InspectorFrontendHostAPI.ResizeEvent} resizeEvent
*/
recordResize(resizeEvent) {
DevToolsAPI.sendMessageToEmbedder('recordResize', [resizeEvent], null);
}
/**
* @override
* @param {InspectorFrontendHostAPI.ClickEvent} clickEvent
*/
recordClick(clickEvent) {
DevToolsAPI.sendMessageToEmbedder('recordClick', [clickEvent], null);
}
/**
* @override
* @param {InspectorFrontendHostAPI.HoverEvent} hoverEvent
*/
recordHover(hoverEvent) {
DevToolsAPI.sendMessageToEmbedder('recordHover', [hoverEvent], null);
}
/**
* @override
* @param {InspectorFrontendHostAPI.DragEvent} dragEvent
*/
recordDrag(dragEvent) {
DevToolsAPI.sendMessageToEmbedder('recordDrag', [dragEvent], null);
}
/**
* @override
* @param {InspectorFrontendHostAPI.ChangeEvent} changeEvent
*/
recordChange(changeEvent) {
DevToolsAPI.sendMessageToEmbedder('recordChange', [changeEvent], null);
}
/**
* @override
* @param {InspectorFrontendHostAPI.KeyDownEvent} keyDownEvent
*/
recordKeyDown(keyDownEvent) {
DevToolsAPI.sendMessageToEmbedder('recordKeyDown', [keyDownEvent], null);
}
// Backward-compatible methods below this line --------------------------------------------
/**
@ -1054,6 +1131,23 @@ const InspectorFrontendHostImpl = class {
initialTargetId() {
return DevToolsAPI._initialTargetIdPromise;
}
/**
* @param {string} request
* @param {number} streamId
* @param {function(!InspectorFrontendHostAPI.DoAidaConversationResult): void} cb
*/
doAidaConversation(request, streamId, cb) {
DevToolsAPI.sendMessageToEmbedder('doAidaConversation', [request, streamId], cb);
}
/**
* @param {string} request
* @param {function(!InspectorFrontendHostAPI.DoAidaConversationResult): void} cb
*/
registerAidaClientEvent(request) {
DevToolsAPI.sendMessageToEmbedder('registerAidaClientEvent', [request]);
}
};
window.InspectorFrontendHost = new InspectorFrontendHostImpl();
@ -1190,7 +1284,6 @@ function installObjectObserve() {
'showHeaSnapshotObjectsHiddenProperties',
'showInheritedComputedStyleProperties',
'showMediaQueryInspector',
'showNativeFunctionsInJSProfile',
'showUAShadowDOM',
'showWhitespacesInEditor',
'sidebarPosition',
@ -1198,6 +1291,7 @@ function installObjectObserve() {
'automaticallyIgnoreListKnownThirdPartyScripts',
'skipStackFramesPattern',
'sourceMapInfobarDisabled',
'sourceMapSkippedInfobarDisabled',
'sourcesPanelDebuggerSidebarSplitViewState',
'sourcesPanelNavigatorSplitViewState',
'sourcesPanelSplitSidebarRatio',

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +1 @@
const t=["application/javascript","application/json","application/manifest+json","text/css","text/html","text/javascript","text/x-scss"];export{t as FORMATTABLE_MEDIA_TYPES};
const t=["application/javascript","application/json","application/manifest+json","text/css","text/html","text/javascript"];export{t as FORMATTABLE_MEDIA_TYPES};

Просмотреть файл

@ -1 +1 @@
import*as e from"../../core/platform/platform.js";import*as t from"./formatter_worker.js";self.onmessage=function(a){const s=a.data.method,r=a.data.params;if(s)switch(s){case"format":self.postMessage(t.FormatterWorker.format(r.mimeType,r.content,r.indentString));break;case"parseCSS":t.CSSRuleParser.parseCSS(r.content,self.postMessage);break;case"javaScriptSubstitute":{const e=new Map(r.mapping);self.postMessage(t.Substitute.substituteExpression(r.content,e));break}case"javaScriptScopeTree":self.postMessage(t.ScopeParser.parseScopes(r.content)?.export());break;case"evaluatableJavaScriptSubstring":self.postMessage(t.FormatterWorker.evaluatableJavaScriptSubstring(r.content));break;default:e.assertNever(s,`Unsupport method name: ${s}`)}},self.postMessage("workerReady");
import*as e from"../../core/platform/platform.js";import*as t from"./formatter_worker.js";self.onmessage=function(s){const a=s.data.method,r=s.data.params;if(a)switch(a){case"format":self.postMessage(t.FormatterWorker.format(r.mimeType,r.content,r.indentString));break;case"parseCSS":t.CSSRuleParser.parseCSS(r.content,self.postMessage);break;case"javaScriptSubstitute":self.postMessage(t.Substitute.substituteExpression(r.content,r.mapping));break;case"javaScriptScopeTree":self.postMessage(t.ScopeParser.parseScopes(r.content,r.sourceType)?.export());break;case"evaluatableJavaScriptSubstring":self.postMessage(t.FormatterWorker.evaluatableJavaScriptSubstring(r.content));break;default:e.assertNever(a,`Unsupport method name: ${a}`)}},self.postMessage("workerReady");

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +0,0 @@
import*as e from"../../models/heap_snapshot_model/heap_snapshot_model.js";import*as a from"./heap_snapshot_worker.js";self.HeapSnapshotModel=self.HeapSnapshotModel||{},HeapSnapshotModel=HeapSnapshotModel||{},HeapSnapshotModel.HeapSnapshotProgressEvent=e.HeapSnapshotModel.HeapSnapshotProgressEvent,HeapSnapshotModel.baseSystemDistance=e.HeapSnapshotModel.baseSystemDistance,HeapSnapshotModel.AllocationNodeCallers=e.HeapSnapshotModel.AllocationNodeCallers,HeapSnapshotModel.SerializedAllocationNode=e.HeapSnapshotModel.SerializedAllocationNode,HeapSnapshotModel.AllocationStackFrame=e.HeapSnapshotModel.AllocationStackFrame,HeapSnapshotModel.Node=e.HeapSnapshotModel.Node,HeapSnapshotModel.Edge=e.HeapSnapshotModel.Edge,HeapSnapshotModel.Aggregate=e.HeapSnapshotModel.Aggregate,HeapSnapshotModel.AggregateForDiff=e.HeapSnapshotModel.AggregateForDiff,HeapSnapshotModel.Diff=e.HeapSnapshotModel.Diff,HeapSnapshotModel.DiffForClass=e.HeapSnapshotModel.DiffForClass,HeapSnapshotModel.ComparatorConfig=e.HeapSnapshotModel.ComparatorConfig,HeapSnapshotModel.WorkerCommand=e.HeapSnapshotModel.WorkerCommand,HeapSnapshotModel.ItemsRange=e.HeapSnapshotModel.ItemsRange,HeapSnapshotModel.StaticData=e.HeapSnapshotModel.StaticData,HeapSnapshotModel.Statistics=e.HeapSnapshotModel.Statistics,HeapSnapshotModel.NodeFilter=e.HeapSnapshotModel.NodeFilter,HeapSnapshotModel.SearchConfig=e.HeapSnapshotModel.SearchConfig,HeapSnapshotModel.Samples=e.HeapSnapshotModel.Samples,HeapSnapshotModel.Location=e.HeapSnapshotModel.Location;const o=self,p=new a.HeapSnapshotWorkerDispatcher.HeapSnapshotWorkerDispatcher(o,(e=>self.postMessage(e)));var t;t=p.dispatchMessage.bind(p),o.addEventListener("message",t,!1),self.postMessage("workerReady"),self.HeapSnapshotWorker=self.HeapSnapshotWorker||{},HeapSnapshotWorker=HeapSnapshotWorker||{},HeapSnapshotWorker.AllocationProfile=a.AllocationProfile.AllocationProfile,HeapSnapshotWorker.TopDownAllocationNode=a.AllocationProfile.TopDownAllocationNode,HeapSnapshotWorker.BottomUpAllocationNode=a.AllocationProfile.BottomUpAllocationNode,HeapSnapshotWorker.FunctionAllocationInfo=a.AllocationProfile.FunctionAllocationInfo,HeapSnapshotWorker.HeapSnapshotItem=a.HeapSnapshot.HeapSnapshotItem,HeapSnapshotWorker.HeapSnapshotEdge=a.HeapSnapshot.HeapSnapshotEdge,HeapSnapshotWorker.HeapSnapshotItemIterator=a.HeapSnapshot.HeapSnapshotItemIterator,HeapSnapshotWorker.HeapSnapshotItemIndexProvider=a.HeapSnapshot.HeapSnapshotItemIndexProvider,HeapSnapshotWorker.HeapSnapshotNodeIndexProvider=a.HeapSnapshot.HeapSnapshotNodeIndexProvider,HeapSnapshotWorker.HeapSnapshotEdgeIndexProvider=a.HeapSnapshot.HeapSnapshotEdgeIndexProvider,HeapSnapshotWorker.HeapSnapshotRetainerEdgeIndexProvider=a.HeapSnapshot.HeapSnapshotRetainerEdgeIndexProvider,HeapSnapshotWorker.HeapSnapshotEdgeIterator=a.HeapSnapshot.HeapSnapshotEdgeIterator,HeapSnapshotWorker.HeapSnapshotRetainerEdge=a.HeapSnapshot.HeapSnapshotRetainerEdge,HeapSnapshotWorker.HeapSnapshotRetainerEdgeIterator=a.HeapSnapshot.HeapSnapshotRetainerEdgeIterator,HeapSnapshotWorker.HeapSnapshotNode=a.HeapSnapshot.HeapSnapshotNode,HeapSnapshotWorker.HeapSnapshotNodeIterator=a.HeapSnapshot.HeapSnapshotNodeIterator,HeapSnapshotWorker.HeapSnapshotIndexRangeIterator=a.HeapSnapshot.HeapSnapshotIndexRangeIterator,HeapSnapshotWorker.HeapSnapshotFilteredIterator=a.HeapSnapshot.HeapSnapshotFilteredIterator,HeapSnapshotWorker.HeapSnapshotProgress=a.HeapSnapshot.HeapSnapshotProgress,HeapSnapshotWorker.HeapSnapshotProblemReport=a.HeapSnapshot.HeapSnapshotProblemReport,HeapSnapshotWorker.HeapSnapshot=a.HeapSnapshot.HeapSnapshot,HeapSnapshotWorker.HeapSnapshotHeader=a.HeapSnapshot.HeapSnapshotHeader,HeapSnapshotWorker.HeapSnapshotItemProvider=a.HeapSnapshot.HeapSnapshotItemProvider,HeapSnapshotWorker.HeapSnapshotEdgesProvider=a.HeapSnapshot.HeapSnapshotEdgesProvider,HeapSnapshotWorker.HeapSnapshotNodesProvider=a.HeapSnapshot.HeapSnapshotNodesProvider,HeapSnapshotWorker.JSHeapSnapshot=a.HeapSnapshot.JSHeapSnapshot,HeapSnapshotWorker.JSHeapSnapshotNode=a.HeapSnapshot.JSHeapSnapshotNode,HeapSnapshotWorker.JSHeapSnapshotEdge=a.HeapSnapshot.JSHeapSnapshotEdge,HeapSnapshotWorker.JSHeapSnapshotRetainerEdge=a.HeapSnapshot.JSHeapSnapshotRetainerEdge,HeapSnapshotWorker.HeapSnapshotLoader=a.HeapSnapshotLoader.HeapSnapshotLoader,HeapSnapshotWorker.HeapSnapshotWorkerDispatcher=a.HeapSnapshotWorkerDispatcher.HeapSnapshotWorkerDispatcher;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +1 @@
import"../devtools_app/devtools_app.js";import*as o from"../../core/common/common.js";import*as e from"../../ui/legacy/legacy.js";let r;async function t(){return r||(r=await import("../../panels/screencast/screencast.js")),r}e.Toolbar.registerToolbarItem({loadItem:async()=>(await t()).ScreencastApp.ToolbarButtonProvider.instance(),order:1,location:e.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_LEFT,showLabel:void 0,condition:void 0,separator:void 0,actionId:void 0}),o.AppProvider.registerAppProvider({loadAppProvider:async()=>(await t()).ScreencastApp.ScreencastAppProvider.instance(),order:1,condition:void 0}),e.ContextMenu.registerItem({location:e.ContextMenu.ItemLocation.MAIN_MENU,order:10,actionId:"components.request-app-banner"});
import"../devtools_app/devtools_app.js";import*as e from"../../core/common/common.js";import*as o from"../../ui/legacy/legacy.js";let r;async function a(){return r||(r=await import("../../panels/screencast/screencast.js")),r}o.Toolbar.registerToolbarItem({loadItem:async()=>(await a()).ScreencastApp.ToolbarButtonProvider.instance(),order:1,location:"main-toolbar-left"}),e.AppProvider.registerAppProvider({loadAppProvider:async()=>(await a()).ScreencastApp.ScreencastAppProvider.instance(),order:1}),o.ContextMenu.registerItem({location:"mainMenu",order:10,actionId:"components.request-app-banner"});

Просмотреть файл

@ -1 +1 @@
import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../core/root/root.js";import*as i from"../../ui/legacy/legacy.js";const n={rendering:"Rendering",showRendering:"Show Rendering",paint:"paint",layout:"layout",fps:"fps",cssMediaType:"CSS media type",cssMediaFeature:"CSS media feature",visionDeficiency:"vision deficiency",colorVisionDeficiency:"color vision deficiency",reloadPage:"Reload page",hardReloadPage:"Hard reload page",forceAdBlocking:"Force ad blocking on this site",blockAds:"Block ads on this site",showAds:"Show ads on this site, if allowed",autoOpenDevTools:"Auto-open DevTools for popups",doNotAutoOpen:"Do not auto-open DevTools for popups",disablePaused:"Disable paused state overlay",toggleCssPrefersColorSchemeMedia:"Toggle CSS media feature prefers-color-scheme"},a=t.i18n.registerUIStrings("entrypoints/inspector_main/inspector_main-meta.ts",n),r=t.i18n.getLazilyComputedLocalizedString.bind(void 0,a);let s;async function c(){return s||(s=await import("./inspector_main.js")),s}i.ViewManager.registerViewExtension({location:"drawer-view",id:"rendering",title:r(n.rendering),commandPrompt:r(n.showRendering),persistence:"closeable",order:50,loadView:async()=>(await c()).RenderingOptions.RenderingOptionsView.instance(),tags:[r(n.paint),r(n.layout),r(n.fps),r(n.cssMediaType),r(n.cssMediaFeature),r(n.visionDeficiency),r(n.colorVisionDeficiency)]}),i.ActionRegistration.registerActionExtension({category:i.ActionRegistration.ActionCategory.NAVIGATION,actionId:"inspector_main.reload",loadActionDelegate:async()=>(await c()).InspectorMain.ReloadActionDelegate.instance(),iconClass:"refresh",title:r(n.reloadPage),bindings:[{platform:"windows,linux",shortcut:"Ctrl+R"},{platform:"windows,linux",shortcut:"F5"},{platform:"mac",shortcut:"Meta+R"}]}),i.ActionRegistration.registerActionExtension({category:i.ActionRegistration.ActionCategory.NAVIGATION,actionId:"inspector_main.hard-reload",loadActionDelegate:async()=>(await c()).InspectorMain.ReloadActionDelegate.instance(),title:r(n.hardReloadPage),bindings:[{platform:"windows,linux",shortcut:"Shift+Ctrl+R"},{platform:"windows,linux",shortcut:"Shift+F5"},{platform:"windows,linux",shortcut:"Ctrl+F5"},{platform:"windows,linux",shortcut:"Ctrl+Shift+F5"},{platform:"mac",shortcut:"Shift+Meta+R"}]}),i.ActionRegistration.registerActionExtension({actionId:"rendering.toggle-prefers-color-scheme",category:i.ActionRegistration.ActionCategory.RENDERING,title:r(n.toggleCssPrefersColorSchemeMedia),loadActionDelegate:async()=>(await c()).RenderingOptions.ReloadActionDelegate.instance()}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.NETWORK,title:r(n.forceAdBlocking),settingName:"network.adBlockingEnabled",settingType:e.Settings.SettingType.BOOLEAN,storageType:e.Settings.SettingStorageType.Session,defaultValue:!1,options:[{value:!0,title:r(n.blockAds)},{value:!1,title:r(n.showAds)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.GLOBAL,storageType:e.Settings.SettingStorageType.Synced,title:r(n.autoOpenDevTools),settingName:"autoAttachToCreatedPages",settingType:e.Settings.SettingType.BOOLEAN,order:2,defaultValue:!1,options:[{value:!0,title:r(n.autoOpenDevTools)},{value:!1,title:r(n.doNotAutoOpen)}]}),e.Settings.registerSettingExtension({category:e.Settings.SettingCategory.APPEARANCE,storageType:e.Settings.SettingStorageType.Synced,title:r(n.disablePaused),settingName:"disablePausedStateOverlay",settingType:e.Settings.SettingType.BOOLEAN,defaultValue:!1}),i.Toolbar.registerToolbarItem({loadItem:async()=>(await c()).InspectorMain.NodeIndicator.instance(),order:2,location:i.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_LEFT,showLabel:void 0,condition:void 0,separator:void 0,actionId:void 0}),i.Toolbar.registerToolbarItem({loadItem:async()=>(await c()).OutermostTargetSelector.OutermostTargetSelector.instance(),order:98,location:i.Toolbar.ToolbarItemLocation.MAIN_TOOLBAR_RIGHT,showLabel:void 0,condition:void 0,separator:void 0,actionId:void 0,experiment:o.Runtime.ExperimentName.OUTERMOST_TARGET_SELECTOR});
import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import"../../core/root/root.js";import*as o from"../../ui/legacy/legacy.js";const i={rendering:"Rendering",showRendering:"Show Rendering",paint:"paint",layout:"layout",fps:"fps",cssMediaType:"CSS media type",cssMediaFeature:"CSS media feature",visionDeficiency:"vision deficiency",colorVisionDeficiency:"color vision deficiency",reloadPage:"Reload page",hardReloadPage:"Hard reload page",forceAdBlocking:"Force ad blocking on this site",blockAds:"Block ads on this site",showAds:"Show ads on this site, if allowed",autoOpenDevTools:"Auto-open DevTools for popups",doNotAutoOpen:"Do not auto-open DevTools for popups",disablePaused:"Disable paused state overlay",toggleCssPrefersColorSchemeMedia:"Toggle CSS media feature prefers-color-scheme"},a=t.i18n.registerUIStrings("entrypoints/inspector_main/inspector_main-meta.ts",i),n=t.i18n.getLazilyComputedLocalizedString.bind(void 0,a);let r;async function s(){return r||(r=await import("./inspector_main.js")),r}o.ViewManager.registerViewExtension({location:"drawer-view",id:"rendering",title:n(i.rendering),commandPrompt:n(i.showRendering),persistence:"closeable",order:50,loadView:async()=>new((await s()).RenderingOptions.RenderingOptionsView),tags:[n(i.paint),n(i.layout),n(i.fps),n(i.cssMediaType),n(i.cssMediaFeature),n(i.visionDeficiency),n(i.colorVisionDeficiency)]}),o.ActionRegistration.registerActionExtension({category:"NAVIGATION",actionId:"inspector-main.reload",loadActionDelegate:async()=>new((await s()).InspectorMain.ReloadActionDelegate),iconClass:"refresh",title:n(i.reloadPage),bindings:[{platform:"windows,linux",shortcut:"Ctrl+R"},{platform:"windows,linux",shortcut:"F5"},{platform:"mac",shortcut:"Meta+R"}]}),o.ActionRegistration.registerActionExtension({category:"NAVIGATION",actionId:"inspector-main.hard-reload",loadActionDelegate:async()=>new((await s()).InspectorMain.ReloadActionDelegate),title:n(i.hardReloadPage),bindings:[{platform:"windows,linux",shortcut:"Shift+Ctrl+R"},{platform:"windows,linux",shortcut:"Shift+F5"},{platform:"windows,linux",shortcut:"Ctrl+F5"},{platform:"windows,linux",shortcut:"Ctrl+Shift+F5"},{platform:"mac",shortcut:"Shift+Meta+R"}]}),o.ActionRegistration.registerActionExtension({actionId:"rendering.toggle-prefers-color-scheme",category:"RENDERING",title:n(i.toggleCssPrefersColorSchemeMedia),loadActionDelegate:async()=>new((await s()).RenderingOptions.ReloadActionDelegate)}),e.Settings.registerSettingExtension({category:"NETWORK",title:n(i.forceAdBlocking),settingName:"network.ad-blocking-enabled",settingType:"boolean",storageType:"Session",defaultValue:!1,options:[{value:!0,title:n(i.blockAds)},{value:!1,title:n(i.showAds)}]}),e.Settings.registerSettingExtension({category:"GLOBAL",storageType:"Synced",title:n(i.autoOpenDevTools),settingName:"auto-attach-to-created-pages",settingType:"boolean",order:2,defaultValue:!1,options:[{value:!0,title:n(i.autoOpenDevTools)},{value:!1,title:n(i.doNotAutoOpen)}]}),e.Settings.registerSettingExtension({category:"APPEARANCE",storageType:"Synced",title:n(i.disablePaused),settingName:"disable-paused-state-overlay",settingType:"boolean",defaultValue:!1}),o.Toolbar.registerToolbarItem({loadItem:async()=>(await s()).InspectorMain.NodeIndicator.instance(),order:2,location:"main-toolbar-left"}),o.Toolbar.registerToolbarItem({loadItem:async()=>(await s()).OutermostTargetSelector.OutermostTargetSelector.instance(),order:98,location:"main-toolbar-right",experiment:"outermost-target-selector"}),o.Toolbar.registerToolbarItem({loadItem:async()=>(await s()).OutermostTargetSelector.OutermostTargetSelector.instance(),order:98,location:"main-toolbar-right",showLabel:void 0,condition:void 0,separator:void 0,actionId:void 0,experiment:"outermost-target-selector"});

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +1 @@
import*as e from"../../core/root/root.js";import*as s from"../../services/puppeteer/puppeteer.js";import"../../third_party/lighthouse/lighthouse-dt-bundle.js";class t{sessionId;onMessage;onDisconnect;constructor(e){this.sessionId=e,this.onMessage=null,this.onDisconnect=null}setOnMessage(e){this.onMessage=e}setOnDisconnect(e){this.onDisconnect=e}getOnDisconnect(){return this.onDisconnect}getSessionId(){return this.sessionId}sendRawMessage(e){r("sendProtocolMessage",{message:e})}async disconnect(){this.onDisconnect?.("force disconnect"),this.onDisconnect=null,this.onMessage=null}}const n=new class{onMessage;onClose;on(e,s){"message"===e?this.onMessage=s:"close"===e&&(this.onClose=s)}send(e){r("sendProtocolMessage",{message:e})}close(){}};let o,a;async function i(i,c){let l;e.Runtime.Runtime.queryParam("isUnderTest")&&(console.log=()=>{},c.flags.maxWaitForLoad=2e3),self.listenForStatus((e=>{r("statusUpdate",{message:e[1]})}));try{if("endTimespan"===i){if(!a)throw new Error("Cannot end a timespan before starting one");const e=await a();return a=void 0,e}const r=await async function(s){const t=self.lookupLocale(s);if("en-US"===t||"en"===t)return;try{const s=e.Runtime.getRemoteBase();let n;n=s&&s.base?`${s.base}third_party/lighthouse/locales/${t}.json`:new URL(`../../third_party/lighthouse/locales/${t}.json`,import.meta.url).toString();const o=new Promise(((e,s)=>setTimeout((()=>s(new Error("timed out fetching locale"))),5e3))),a=await Promise.race([o,fetch(n).then((e=>e.json()))]);return self.registerLocaleData(t,a),t}catch(e){console.error(e)}return}(c.locales),g=c.flags;g.logLevel=g.logLevel||"info",g.channel="devtools",g.locale=r,"startTimespan"!==i&&"snapshot"!==i||(c.categoryIDs=c.categoryIDs.filter((e=>"lighthouse-plugin-publisher-ads"!==e)));const u=c.config||self.createConfig(c.categoryIDs,g.formFactor),f=c.url;if("navigation"===i&&g.legacyNavigation){const e=self.setUpWorkerConnection(n);return await self.runLighthouse(f,g,u,e)}const{mainFrameId:p,mainTargetId:h,mainSessionId:m,targetInfos:d}=c;o=new t(m),l=await s.PuppeteerConnection.PuppeteerConnectionHelper.connectPuppeteerToConnection({connection:o,mainFrameId:p,targetInfos:d,targetFilterCallback:e=>!e.url.startsWith("https://i0.devtools-frontend")&&!e.url.startsWith("devtools://")&&(e.targetId===h||e.openerId===h||"iframe"===e.type),isPageTargetCallback:e=>"page"===e.type});const{page:b}=l,w={logLevel:g.logLevel,settingsOverrides:g};if("snapshot"===i)return await self.runLighthouseSnapshot({config:u,page:b,configContext:w,flags:g});if("startTimespan"===i){const e=await self.startLighthouseTimespan({config:u,page:b,configContext:w,flags:g});return void(a=e.endTimespan)}return await self.runLighthouseNavigation(f,{config:u,page:b,configContext:w,flags:g})}catch(e){return{fatal:!0,message:e.message,stack:e.stack}}finally{"startTimespan"!==i&&l?.browser.disconnect()}}function r(e,s){self.postMessage({action:e,args:s})}self.onmessage=async function(e){const s=e.data;switch(s.action){case"startTimespan":case"endTimespan":case"snapshot":case"navigation":{const e=await i(s.action,s.args);e&&"object"==typeof e&&("report"in e&&delete e.report,"artifacts"in e&&(e.artifacts.Timing=JSON.parse(JSON.stringify(e.artifacts.Timing)))),self.postMessage({id:s.id,result:e});break}case"dispatchProtocolMessage":o?.onMessage?.(s.args.message),n.onMessage?.(JSON.stringify(s.args.message));break;default:throw new Error(`Unknown event: ${e.data}`)}},globalThis.global=self,globalThis.global.isVinn=!0,globalThis.global.document={},globalThis.global.document.documentElement={},globalThis.global.document.documentElement.style={WebkitAppearance:"WebkitAppearance"},self.postMessage("workerReady");
import*as e from"../../core/root/root.js";import*as t from"../../services/puppeteer/puppeteer.js";import"../../third_party/lighthouse/lighthouse-dt-bundle.js";class s{sessionId;onMessage;onDisconnect;constructor(e){this.sessionId=e,this.onMessage=null,this.onDisconnect=null}setOnMessage(e){this.onMessage=e}setOnDisconnect(e){this.onDisconnect=e}getOnDisconnect(){return this.onDisconnect}getSessionId(){return this.sessionId}sendRawMessage(e){i("sendProtocolMessage",{message:e})}async disconnect(){this.onDisconnect?.("force disconnect"),this.onDisconnect=null,this.onMessage=null}}let n,o;async function a(a,r){let c;e.Runtime.Runtime.queryParam("isUnderTest")&&(console.log=()=>{},r.flags.maxWaitForLoad=2e3),self.listenForStatus((e=>{i("statusUpdate",{message:e[1]})}));try{if("endTimespan"===a){if(!o)throw new Error("Cannot end a timespan before starting one");const e=await o();return o=void 0,e}const i=await async function(t){const s=self.lookupLocale(t);if("en-US"===s||"en"===s)return;try{const t=e.Runtime.getRemoteBase();let n;n=t&&t.base?`${t.base}third_party/lighthouse/locales/${s}.json`:new URL(`../../third_party/lighthouse/locales/${s}.json`,import.meta.url).toString();const o=new Promise(((e,t)=>setTimeout((()=>t(new Error("timed out fetching locale"))),5e3))),a=await Promise.race([o,fetch(n).then((e=>e.json()))]);return self.registerLocaleData(s,a),s}catch(e){console.error(e)}return}(r.locales),l=r.flags;l.logLevel=l.logLevel||"info",l.channel="devtools",l.locale=i,"startTimespan"!==a&&"snapshot"!==a||(r.categoryIDs=r.categoryIDs.filter((e=>"lighthouse-plugin-publisher-ads"!==e)));const g=r.config||self.createConfig(r.categoryIDs,l.formFactor),p=r.url,{rootTargetId:u,mainSessionId:f}=r;n=new s(f),c=await t.PuppeteerConnection.PuppeteerConnectionHelper.connectPuppeteerToConnectionViaTab({connection:n,rootTargetId:u,isPageTargetCallback:e=>"page"===e.type});const{page:h}=c;if(!h)throw new Error("Could not create page handle for the target page");if("snapshot"===a)return await self.snapshot(h,{config:g,flags:l});if("startTimespan"===a){const e=await self.startTimespan(h,{config:g,flags:l});return void(o=e.endTimespan)}return await self.navigation(h,p,{config:g,flags:l})}catch(e){return{fatal:!0,message:e.message,stack:e.stack}}finally{"startTimespan"!==a&&await(c?.browser.disconnect())}}function i(e,t){self.postMessage({action:e,args:t})}self.onmessage=async function(e){const t=e.data;switch(t.action){case"startTimespan":case"endTimespan":case"snapshot":case"navigation":{const e=await a(t.action,t.args);e&&"object"==typeof e&&("report"in e&&delete e.report,"artifacts"in e&&(e.artifacts.Timing=JSON.parse(JSON.stringify(e.artifacts.Timing)))),self.postMessage({id:t.id,result:e});break}case"dispatchProtocolMessage":n?.onMessage?.(t.args.message);break;default:throw new Error(`Unknown event: ${e.data}`)}},globalThis.global=self,globalThis.global.isVinn=!0,globalThis.global.document={},globalThis.global.document.documentElement={},globalThis.global.document.documentElement.style={WebkitAppearance:"WebkitAppearance"},self.postMessage("workerReady");

Просмотреть файл

@ -1 +0,0 @@
import*as e from"./main.js";self.Main=self.Main||{},Main=Main||{},Main.ExecutionContextSelector=e.ExecutionContextSelector.ExecutionContextSelector,Main.Main=e.MainImpl.MainImpl,Main.Main.ZoomActionDelegate=e.MainImpl.ZoomActionDelegate,Main.Main.SearchActionDelegate=e.MainImpl.SearchActionDelegate,Main.Main.MainMenuItem=e.MainImpl.MainMenuItem,Main.Main.SettingsButtonProvider=e.MainImpl.SettingsButtonProvider,Main.ReloadActionDelegate=e.MainImpl.ReloadActionDelegate,Main.SimpleApp=e.SimpleApp.SimpleApp,Main.SimpleAppProvider=e.SimpleApp.SimpleAppProvider;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1,30 +1,7 @@
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../core/common/common-legacy.js';
import '../models/text_utils/text_utils-legacy.js';
import '../core/host/host-legacy.js';
import '../core/protocol_client/protocol_client-legacy.js';
import '../ui/legacy/legacy-legacy.js';
import '../models/workspace/workspace-legacy.js';
import '../models/bindings/bindings-legacy.js';
import '../ui/legacy/components/utils/utils-legacy.js';
import '../models/persistence/persistence-legacy.js';
import '../models/extensions/extensions-legacy.js';
import '../entrypoints/devtools_app/devtools_app.js';
import '../panels/accessibility/accessibility-legacy.js';
import '../panels/animation/animation-legacy.js';
import '../models/bindings/bindings-legacy.js';
import '../models/breakpoints/breakpoints-legacy.js';
import '../ui/legacy/components/color_picker/color_picker-legacy.js';
import '../core/common/common-legacy.js';
import '../ui/legacy/components/data_grid/data_grid-legacy.js';
import '../third_party/diff/diff-legacy.js';
import '../models/extensions/extensions-legacy.js';
import '../models/formatter/formatter-legacy.js';
import '../ui/legacy/components/inline_editor/inline_editor-legacy.js';
import '../core/root/root-legacy.js';
import '../core/sdk/sdk-legacy.js';
import './test_runner/test_runner.js';
// @ts-ignore
if (self.testRunner) {

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1 @@
import*as e from"../../core/common/common.js";import*as s from"../../core/root/root.js";import*as l from"../../core/sdk/sdk.js";import*as t from"../../ui/legacy/legacy.js";let i;class d extends e.ObjectWrapper.ObjectWrapper{#e;#s="";#l=[];#t=[];#i=null;constructor(){super(),l.TargetManager.TargetManager.instance().addModelListener(l.AutofillModel.AutofillModel,"AddressFormFilled",this.#d,this,{scoped:!0}),this.#e=e.Settings.Settings.instance().createSetting("auto-open-autofill-view-on-event",!0)}static instance(e={forceNew:null}){const{forceNew:s}=e;return i&&!s||(i=new d),i}async#d({data:e}){s.Runtime.experiments.isEnabled("autofill-view")&&this.#e.get()&&await t.ViewManager.ViewManager.instance().showView("autofill-view"),this.#i=e.autofillModel,this.#a(e.event),this.#s&&this.dispatchEventToListeners("AddressFormFilled",{address:this.#s,filledFields:this.#l,matches:this.#t,autofillModel:this.#i})}getLastFilledAddressForm(){return this.#s&&this.#i?{address:this.#s,filledFields:this.#l,matches:this.#t,autofillModel:this.#i}:null}#a({addressUi:e,filledFields:s}){this.#s=e.addressFields.map((e=>(e=>e.fields.filter((e=>e.value.length)).map((e=>e.value)).join(" "))(e))).filter((e=>e.length)).join("\n"),this.#l=s,this.#t=[];for(let e=0;e<this.#l.length;e++){if(""===this.#l[e].value)continue;const s=this.#l[e].value.replaceAll(/[.,]*\s+/g," "),l=this.#s.replaceAll(/\s/g," ").matchAll(new RegExp(s,"g"));for(const s of l)void 0!==s.index&&this.#t.push({startIndex:s.index,endIndex:s.index+s[0].length,filledFieldIndex:e})}}}var a=Object.freeze({__proto__:null,AutofillManager:d});export{a as AutofillManager};

Просмотреть файл

@ -1 +0,0 @@
import*as e from"./bindings.js";self.Bindings=self.Bindings||{},Bindings=Bindings||{},Bindings.IgnoreListManager=e.IgnoreListManager.IgnoreListManager,Bindings.CSSWorkspaceBinding=e.CSSWorkspaceBinding.CSSWorkspaceBinding,Bindings.CSSWorkspaceBinding.SourceMapping=e.CSSWorkspaceBinding.SourceMapping,Bindings.CSSWorkspaceBinding.ModelInfo=e.CSSWorkspaceBinding.ModelInfo,Bindings.CompilerScriptMapping=e.CompilerScriptMapping.CompilerScriptMapping,Bindings.ContentProviderBasedProject=e.ContentProviderBasedProject.ContentProviderBasedProject,Bindings.DebuggerWorkspaceBinding=e.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding,Bindings.DebuggerSourceMapping=e.DebuggerWorkspaceBinding.DebuggerSourceMapping,Bindings.DefaultScriptMapping=e.DefaultScriptMapping.DefaultScriptMapping,Bindings.ChunkedReader=e.FileUtils.ChunkedReader,Bindings.ChunkedFileReader=e.FileUtils.ChunkedFileReader,Bindings.FileOutputStream=e.FileUtils.FileOutputStream,Bindings.LiveLocation=e.LiveLocation.LiveLocation,Bindings.LiveLocationPool=e.LiveLocation.LiveLocationPool,Bindings.NetworkProjectManager=e.NetworkProject.NetworkProjectManager,Bindings.NetworkProjectManager.Events=e.NetworkProject.Events,Bindings.NetworkProject=e.NetworkProject.NetworkProject,Bindings.PresentationConsoleMessageManager=e.PresentationConsoleMessageHelper.PresentationConsoleMessageManager,Bindings.PresentationConsoleMessage=e.PresentationConsoleMessageHelper.PresentationConsoleMessage,Bindings.ResourceMapping=e.ResourceMapping.ResourceMapping,Bindings.ResourceScriptFile=e.ResourceScriptMapping.ResourceScriptFile,Bindings.resourceForURL=e.ResourceUtils.resourceForURL,Bindings.displayNameForURL=e.ResourceUtils.displayNameForURL,Bindings.SASSSourceMapping=e.SASSSourceMapping.SASSSourceMapping,Bindings.StylesSourceMapping=e.StylesSourceMapping.StylesSourceMapping,Bindings.StyleFile=e.StylesSourceMapping.StyleFile,Bindings.TempFile=e.TempFile.TempFile;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +0,0 @@
import*as n from"./breakpoints.js";self.Bindings=self.Bindings||{},Bindings=Bindings||{},Bindings.BreakpointManager=n.BreakpointManager.BreakpointManager,Bindings.BreakpointManager.Events=n.BreakpointManager.Events,Bindings.BreakpointManager.Breakpoint=n.BreakpointManager.Breakpoint,Bindings.BreakpointManager.ModelBreakpoint=n.BreakpointManager.ModelBreakpoint;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +0,0 @@
import*as n from"./extensions.js";self.Extensions=self.Extensions||{},Extensions=Extensions||{},Extensions.ExtensionSidebarPane=n.ExtensionPanel.ExtensionSidebarPane,Extensions.ExtensionServer=n.ExtensionServer.ExtensionServer,Extensions.ExtensionServer.Events=n.ExtensionServer.Events,Extensions.ExtensionStatus=n.ExtensionServer.ExtensionStatus;

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +0,0 @@
import*as r from"./formatter.js";self.Formatter=self.Formatter||{},Formatter=Formatter||{},Formatter.FormatterWorkerPool=r.FormatterWorkerPool.FormatterWorkerPool,Formatter.formatterWorkerPool=r.FormatterWorkerPool.formatterWorkerPool,Formatter.FormatterSourceMapping=r.ScriptFormatter.FormatterSourceMapping;

Просмотреть файл

@ -1 +1 @@
import*as t from"../../core/common/common.js";import*as e from"../../core/platform/platform.js";const r=Math.min(2,navigator.hardwareConcurrency-1);let n;class s{taskQueue;workerTasks;constructor(){this.taskQueue=[],this.workerTasks=new Map}static instance(){return n||(n=new s),n}createWorker(){const e=t.Worker.WorkerWrapper.fromURL(new URL("../../entrypoints/formatter_worker/formatter_worker-entrypoint.js",import.meta.url));return e.onmessage=this.onWorkerMessage.bind(this,e),e.onerror=this.onWorkerError.bind(this,e),e}processNextTask(){if(!this.taskQueue.length)return;let t=[...this.workerTasks.keys()].find((t=>!this.workerTasks.get(t)));if(!t&&this.workerTasks.size<r&&(t=this.createWorker()),!t)return;const e=this.taskQueue.shift();e&&(this.workerTasks.set(t,e),t.postMessage({method:e.method,params:e.params}))}onWorkerMessage(t,e){const r=this.workerTasks.get(t);r&&(r.isChunked&&e.data&&!e.data.isLastChunk?r.callback(e.data):(this.workerTasks.set(t,null),this.processNextTask(),r.callback(e.data?e.data:null)))}onWorkerError(t,e){console.error(e);const r=this.workerTasks.get(t);t.terminate(),this.workerTasks.delete(t);const n=this.createWorker();this.workerTasks.set(n,null),this.processNextTask(),r&&r.callback(null)}runChunkedTask(t,e,r){const n=new i(t,e,(function(t){if(!t)return void r(!0,null);const e="isLastChunk"in t&&Boolean(t.isLastChunk),n="chunk"in t&&t.chunk;r(e,n)}),!0);this.taskQueue.push(n),this.processNextTask()}runTask(t,e){return new Promise((r=>{const n=new i(t,e,r,!1);this.taskQueue.push(n),this.processNextTask()}))}format(t,e,r){const n={mimeType:t,content:e,indentString:r};return this.runTask("format",n)}javaScriptSubstitute(t,e){return this.runTask("javaScriptSubstitute",{content:t,mapping:Array.from(e.entries())}).then((t=>t||""))}javaScriptScopeTree(t){return this.runTask("javaScriptScopeTree",{content:t}).then((t=>t||null))}evaluatableJavaScriptSubstring(t){return this.runTask("evaluatableJavaScriptSubstring",{content:t}).then((t=>t||""))}parseCSS(t,e){this.runChunkedTask("parseCSS",{content:t},(function(t,r){e(t,r||[])}))}}class i{method;params;callback;isChunked;constructor(t,e,r,n){this.method=t,this.params=e,this.callback=r,this.isChunked=n}}function o(){return s.instance()}var a=Object.freeze({__proto__:null,FormatterWorkerPool:s,formatterWorkerPool:o});function c(t,e,r){return(e?t[e-1]+1:0)+r}function u(t,r){const n=e.ArrayUtilities.upperBound(t,r-1,e.ArrayUtilities.DEFAULT_COMPARATOR);let s;return s=n?r-t[n-1]-1:r,[n,s]}async function h(r,n,s=t.Settings.Settings.instance().moduleSetting("textEditorIndent").get()){const i=n.replace(/\r\n?|[\n\u2028\u2029]/g,"\n").replace(/^\uFEFF/,""),a=o(),c=await a.format(r,i,s),u=e.StringUtilities.findLineEndingIndexes(i),h=e.StringUtilities.findLineEndingIndexes(c.content),k=new l(u,h,c.mapping);return{formattedContent:c.content,formattedMapping:k}}class k{originalToFormatted(t,e=0){return[t,e]}formattedToOriginal(t,e=0){return[t,e]}}class l{originalLineEndings;formattedLineEndings;mapping;constructor(t,e,r){this.originalLineEndings=t,this.formattedLineEndings=e,this.mapping=r}originalToFormatted(t,e){const r=c(this.originalLineEndings,t,e||0),n=this.convertPosition(this.mapping.original,this.mapping.formatted,r);return u(this.formattedLineEndings,n)}formattedToOriginal(t,e){const r=c(this.formattedLineEndings,t,e||0),n=this.convertPosition(this.mapping.formatted,this.mapping.original,r);return u(this.originalLineEndings,n)}convertPosition(t,r,n){const s=e.ArrayUtilities.upperBound(t,n,e.ArrayUtilities.DEFAULT_COMPARATOR)-1;let i=r[s]+n-t[s];return s<r.length-1&&i>r[s+1]&&(i=r[s+1]),i}}var p=Object.freeze({__proto__:null,format:async function(e,r,n,s=t.Settings.Settings.instance().moduleSetting("textEditorIndent").get()){return e.isDocumentOrScriptOrStyleSheet()?h(r,n,s):{formattedContent:n,formattedMapping:new k}},formatScriptContent:h});export{a as FormatterWorkerPool,p as ScriptFormatter};
import*as t from"../../core/common/common.js";import*as e from"../../core/platform/platform.js";const r=Math.max(2,navigator.hardwareConcurrency-1);let n;class s{taskQueue;workerTasks;constructor(){this.taskQueue=[],this.workerTasks=new Map}static instance(){return n||(n=new s),n}createWorker(){const e=t.Worker.WorkerWrapper.fromURL(new URL("../../entrypoints/formatter_worker/formatter_worker-entrypoint.js",import.meta.url));return e.onmessage=this.onWorkerMessage.bind(this,e),e.onerror=this.onWorkerError.bind(this,e),e}processNextTask(){if(!this.taskQueue.length)return;let t=[...this.workerTasks.keys()].find((t=>!this.workerTasks.get(t)));if(!t&&this.workerTasks.size<r&&(t=this.createWorker()),!t)return;const e=this.taskQueue.shift();e&&(this.workerTasks.set(t,e),t.postMessage({method:e.method,params:e.params}))}onWorkerMessage(t,e){const r=this.workerTasks.get(t);r&&(r.isChunked&&e.data&&!e.data.isLastChunk?r.callback(e.data):(this.workerTasks.set(t,null),this.processNextTask(),r.callback(e.data?e.data:null)))}onWorkerError(t,e){console.error(e);const r=this.workerTasks.get(t);t.terminate(),this.workerTasks.delete(t);const n=this.createWorker();this.workerTasks.set(n,null),this.processNextTask(),r&&r.callback(null)}runChunkedTask(t,e,r){const n=new i(t,e,(function(t){if(!t)return void r(!0,null);const e="isLastChunk"in t&&Boolean(t.isLastChunk),n="chunk"in t&&t.chunk;r(e,n)}),!0);this.taskQueue.push(n),this.processNextTask()}runTask(t,e){return new Promise((r=>{const n=new i(t,e,r,!1);this.taskQueue.push(n),this.processNextTask()}))}format(t,e,r){const n={mimeType:t,content:e,indentString:r};return this.runTask("format",n)}javaScriptSubstitute(t,e){return this.runTask("javaScriptSubstitute",{content:t,mapping:e}).then((t=>t||""))}javaScriptScopeTree(t,e="script"){return this.runTask("javaScriptScopeTree",{content:t,sourceType:e}).then((t=>t||null))}evaluatableJavaScriptSubstring(t){return this.runTask("evaluatableJavaScriptSubstring",{content:t}).then((t=>t||""))}parseCSS(t,e){this.runChunkedTask("parseCSS",{content:t},(function(t,r){e(t,r||[])}))}}class i{method;params;callback;isChunked;constructor(t,e,r,n){this.method=t,this.params=e,this.callback=r,this.isChunked=n}}function o(){return s.instance()}var a=Object.freeze({__proto__:null,FormatterWorkerPool:s,formatterWorkerPool:o});function c(t,e,r){return(e?t[e-1]+1:0)+r}function u(t,r){const n=e.ArrayUtilities.upperBound(t,r-1,e.ArrayUtilities.DEFAULT_COMPARATOR);let s;return s=n?r-t[n-1]-1:r,[n,s]}async function h(r,n,s=t.Settings.Settings.instance().moduleSetting("text-editor-indent").get()){const i=n.replace(/\r\n?|[\n\u2028\u2029]/g,"\n").replace(/^\uFEFF/,""),a=o(),c=await a.format(r,i,s),u=e.StringUtilities.findLineEndingIndexes(i),h=e.StringUtilities.findLineEndingIndexes(c.content),k=new l(u,h,c.mapping);return{formattedContent:c.content,formattedMapping:k}}class k{originalToFormatted(t,e=0){return[t,e]}formattedToOriginal(t,e=0){return[t,e]}}class l{originalLineEndings;formattedLineEndings;mapping;constructor(t,e,r){this.originalLineEndings=t,this.formattedLineEndings=e,this.mapping=r}originalToFormatted(t,e){const r=c(this.originalLineEndings,t,e||0),n=this.convertPosition(this.mapping.original,this.mapping.formatted,r);return u(this.formattedLineEndings,n)}formattedToOriginal(t,e){const r=c(this.formattedLineEndings,t,e||0),n=this.convertPosition(this.mapping.formatted,this.mapping.original,r);return u(this.originalLineEndings,n)}convertPosition(t,r,n){const s=e.ArrayUtilities.upperBound(t,n,e.ArrayUtilities.DEFAULT_COMPARATOR)-1;let i=r[s]+n-t[s];return s<r.length-1&&i>r[s+1]&&(i=r[s+1]),i}}var p=Object.freeze({__proto__:null,format:async function(e,r,n,s=t.Settings.Settings.instance().moduleSetting("text-editor-indent").get()){return e.isDocumentOrScriptOrStyleSheet()?h(r,n,s):{formattedContent:n,formattedMapping:new k}},formatScriptContent:h});export{a as FormatterWorkerPool,p as ScriptFormatter};

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1 +0,0 @@
import*as e from"./heap_snapshot_model.js";self.HeapSnapshotModel=self.HeapSnapshotModel||{},HeapSnapshotModel=HeapSnapshotModel||{},HeapSnapshotModel.HeapSnapshotProgressEvent=e.HeapSnapshotModel.HeapSnapshotProgressEvent,HeapSnapshotModel.baseSystemDistance=e.HeapSnapshotModel.baseSystemDistance,HeapSnapshotModel.AllocationNodeCallers=e.HeapSnapshotModel.AllocationNodeCallers,HeapSnapshotModel.SerializedAllocationNode=e.HeapSnapshotModel.SerializedAllocationNode,HeapSnapshotModel.AllocationStackFrame=e.HeapSnapshotModel.AllocationStackFrame,HeapSnapshotModel.Node=e.HeapSnapshotModel.Node,HeapSnapshotModel.Edge=e.HeapSnapshotModel.Edge,HeapSnapshotModel.Aggregate=e.HeapSnapshotModel.Aggregate,HeapSnapshotModel.AggregateForDiff=e.HeapSnapshotModel.AggregateForDiff,HeapSnapshotModel.Diff=e.HeapSnapshotModel.Diff,HeapSnapshotModel.DiffForClass=e.HeapSnapshotModel.DiffForClass,HeapSnapshotModel.ComparatorConfig=e.HeapSnapshotModel.ComparatorConfig,HeapSnapshotModel.WorkerCommand=e.HeapSnapshotModel.WorkerCommand,HeapSnapshotModel.ItemsRange=e.HeapSnapshotModel.ItemsRange,HeapSnapshotModel.StaticData=e.HeapSnapshotModel.StaticData,HeapSnapshotModel.Statistics=e.HeapSnapshotModel.Statistics,HeapSnapshotModel.NodeFilter=e.HeapSnapshotModel.NodeFilter,HeapSnapshotModel.SearchConfig=e.HeapSnapshotModel.SearchConfig,HeapSnapshotModel.Samples=e.HeapSnapshotModel.Samples,HeapSnapshotModel.Location=e.HeapSnapshotModel.Location;

Просмотреть файл

@ -1,9 +0,0 @@
# Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
Because a cookies `SameSite` attribute was not set or is invalid, it defaults to `SameSite=Lax`,
which prevents the cookie from being sent in a cross-site request.
This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
* Specify `SameSite=None` and `Secure` if the cookie should be sent in cross-site requests. This enables third-party use.
* Specify `SameSite=Strict` or `SameSite=Lax` if the cookie should not be sent in cross-site requests.

Просмотреть файл

@ -1,9 +0,0 @@
# Indicate whether a cookie is intended to be set in a cross-site context by specifying its SameSite attribute
Because a cookies `SameSite` attribute was not set or is invalid, it defaults to `SameSite=Lax`,
which prevents the cookie from being set in a cross-site context.
This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
* Specify `SameSite=None` and `Secure` if the cookie is intended to be set in cross-site contexts. Note that only cookies sent over HTTPS may use the `Secure` attribute.
* Specify `SameSite=Strict` or `SameSite=Lax` if the cookie should not be set by cross-site requests.

Просмотреть файл

@ -0,0 +1,12 @@
# Cookie is blocked due to a cross-site redirect chain
The cookie was blocked because the URL redirect chain was not fully same-site,
meaning the final request was treated as a cross-site request.
Like other cross-site requests, this blocks cookies with `SameSite=Lax` or
`SameSite=Strict`.
For example: If site A redirects to site B which then redirects back to site A,
the final request to site A will be a cross-site request.
If this behavior is causing breakage, please file a bug report with the link
below.

Просмотреть файл

@ -1,4 +0,0 @@
# Third-party cookie blocked within the same First-Party Set
A cookie embedded by a site in the top-level page's First-Party Set was blocked
by third-party cookie blocking.

Просмотреть файл

@ -0,0 +1,4 @@
# Third-party cookie blocked within the same Related Website Set
A cookie embedded by a site in the top-level page's Related Website Set was blocked
by third-party cookie blocking.

Просмотреть файл

@ -0,0 +1,6 @@
# Reading third-party cookie is blocked
Cookies with the `SameSite=None; Secure` and not `Partitioned` attributes that operate in cross-site contexts are third-party cookies.
Chrome blocks third-party cookies to protect user data from cross-site tracking.
Please refer to the article linked to learn more about preparing your site to avoid potential breakage due to this.

Просмотреть файл

@ -0,0 +1,6 @@
# Setting third-party cookie is blocked
Cookies with the `SameSite=None; Secure` and not `Partitioned` attributes that operate in cross-site contexts are third-party cookies.
Chrome blocks third-party cookies to protect user data from cross-site tracking.
Please refer to the article linked to learn more about preparing your site to avoid potential breakage due to this.

Просмотреть файл

@ -0,0 +1,3 @@
# Third-party websites are allowed to read cookies on this page
One or more websites are allowed to bypass user settings to read third-party cookies on this page. Chrome no longer supports third-party cookies and web developers should take steps to remove these reads without disrupting user experience. To forcefully block these third-party cookies, update [user settings](https://support.google.com/chrome/answer/95647).

Просмотреть файл

@ -0,0 +1,3 @@
# Third-party websites are allowed to set cookies on this page
One or more websites are allowed to bypass user settings to set third-party cookies on this page. Chrome no longer supports third-party cookies and web developers should take steps to remove these sets without disrupting user experience. To forcefully block these third-party cookies, update [user settings](https://support.google.com/chrome/answer/95647).

Просмотреть файл

@ -0,0 +1,7 @@
# Reading cookie in cross-site context will be blocked in future Chrome versions
Cookies with the `SameSite=None; Secure` and not `Partitioned` attributes that operate in cross-site contexts are third-party cookies.
In future Chrome versions, reading third-party cookies will be blocked.
This behavior protects user data from cross-site tracking.
Please refer to the article linked to learn more about preparing your site to avoid potential breakage.

Просмотреть файл

@ -0,0 +1,7 @@
# Setting cookie in cross-site context will be blocked in future Chrome versions
Cookies with the `SameSite=None; Secure` and not `Partitioned` attributes that operate in cross-site contexts are third-party cookies.
In future Chrome versions, setting third-party cookies will be blocked.
This behavior protects user data from cross-site tracking.
Please refer to the article linked to learn more about preparing your site to avoid potential breakage.

Просмотреть файл

@ -3,7 +3,7 @@
A site requested a resource from a network that it could only access because of its users' privileged network position.
These requests expose devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage.
To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them in Chrome 92 (July 2021).
To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts. See the [feature status](PNASecureContextRestrictionFeatureStatus).
To fix this issue, migrate the website that needs to access local resources to HTTPS. If the target resource is not served on localhost, it must also be served on HTTPS to avoid mixed-content issues.

Просмотреть файл

@ -3,7 +3,7 @@
A site requested a resource from a network that it could only access because of its users' privileged network position.
These requests expose devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage.
To mitigate these risks, Chrome will require non-public subresources to opt-into being accessed with a preflight request and will start blocking them in Chrome 101 (April 2022).
To mitigate these risks, Chrome will require non-public subresources to opt-into being accessed with a preflight request and will start blocking them in Chrome 130 (October 2024).
To fix this issue, ensure that response to the [preflight request](issueCorsPreflightRequest) for the private network resource has the `Access-Control-Allow-Private-Network` header set to `true`.

Просмотреть файл

@ -0,0 +1,10 @@
# Ensure that private network requests made from secure context to plaintext resources can gain access based on user permission
A site requested a resource from a network that it could only access because of its users' privileged network position.
These requests expose devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack and/or information leakage.
To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts. See the [feature status](PNASecureContextRestrictionFeatureStatus).
Setting a `targetAddressSpace` fetch option to `private` or `local` allows secure contexts to fetch private network resources over HTTP, which is normally forbidden by mixed-content checks. The target server must respond affirmatively to a preflight request, and the user must grant explicit permission.
Make sure that the response to the [preflight request](issueCorsPreflightRequest) for the private network resource has the `Private-Network-Access-Id` and `Private-Network-Access-Name` header properly set. `Private-Network-Access-Id` should be the device's MAC address and `Private-Network-Access-Name` should be a human-friendly device name.

Просмотреть файл

@ -0,0 +1,4 @@
# Response was blocked by CORB (Cross-Origin Read Blocking)
Cross-Origin Read Blocking (CORB) blocked a cross-origin response.

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше