simdeck 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -17
- package/build/simdeck-bin +0 -0
- package/client/dist/assets/index-D2-CFde1.css +1 -0
- package/client/dist/assets/index-E1gIgaOR.js +9 -0
- package/client/dist/chrome-devtools-ui/Images/3d-center.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/3d-pan.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/3d-rotate.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/Images.js +296 -0
- package/client/dist/chrome-devtools-ui/Images/accelerometer-back.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/accelerometer-bottom.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/accelerometer-front.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/accelerometer-left.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/accelerometer-right.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/accelerometer-top.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/account-tree.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-content-center.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-content-end.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-content-space-around.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-content-space-between.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-content-space-evenly.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-content-start.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-content-stretch.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-items-baseline.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-items-center.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-items-end.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-items-start.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-items-stretch.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-self-center.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-self-end.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-self-start.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/align-self-stretch.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/animation.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-back.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-collapse.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-down.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-drop-down-dark.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-drop-down-light.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-drop-down.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-forward.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-right-circle.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-up-down-circle.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-up-down.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/arrow-up.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/bell.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/bezier-curve-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/bin.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/bottom-panel-close.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/bottom-panel-open.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/brackets.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/breakpoint-circle.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/breakpoint-crossed-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/breakpoint-crossed.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/brush-2.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/brush-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/brush.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/bug.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/bundle.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/button-magic.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/calendar-today.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/center-focus-weak.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/check-circle.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/check-double.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/checker.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/checkmark.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/chevron-double-right.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/chevron-down.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/chevron-left-dot.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/chevron-left.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/chevron-right.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/chevron-up.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/chromeLeft.avif +0 -0
- package/client/dist/chrome-devtools-ui/Images/chromeMiddle.avif +0 -0
- package/client/dist/chrome-devtools-ui/Images/chromeRight.avif +0 -0
- package/client/dist/chrome-devtools-ui/Images/class.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/clear-list.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/clear.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/cloud.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/code-circle.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/code.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/colon.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/color-picker-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/color-picker.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/compress.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/console-conditional-breakpoint.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/console-logpoint.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/cookie.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/cookie_off.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/copy.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/corporate-fare.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/credit-card.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/cross-circle-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/cross-circle.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/cross.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/cssoverview_icons_2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/Images/custom-typography.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/database.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/deployed.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/device-fold.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/devices.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/devtools-thumbnail.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/devtools-tips.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/devtools.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/difference.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/dock-bottom.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/dock-left.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/dock-right.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/dock-window.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/document.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/dog-paw.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/domain.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/dots-horizontal.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/dots-vertical.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/download.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/edit.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/empty.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/errorWave.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/exclamation.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/experiment-check.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/experiment.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/extension.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/eye.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/favicon.ico +0 -0
- package/client/dist/chrome-devtools-ui/Images/file-document.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-fetch-xhr.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-font.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-generic.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-image.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-json.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-manifest.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-media.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-script.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-snippet.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-stylesheet.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-wasm.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/file-websocket.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/filter-clear.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/filter-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/filter.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/flex-direction.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/flex-no-wrap.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/flex-wrap.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/flow.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/fold-more.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/folder.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/frame-crossed.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/frame-icon.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/frame.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/gear-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/gear.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/gears.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/global.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/google.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/goto-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/grid-on.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/group.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/heap-snapshot.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/heap-snapshots.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/help.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/history.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/home.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/hover.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/iframe-crossed.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/iframe.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/import.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/indeterminate-question-box.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/info-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/info.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/issue-cross-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/issue-exclamation-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/issue-questionmark-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/issue-text-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-content-center.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-content-end.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-content-space-around.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-content-space-between.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-content-space-evenly.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-content-start.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-items-center.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-items-end.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-items-start.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/justify-items-stretch.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/keyboard-arrow-right.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/keyboard-full.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/keyboard-pen.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/keyboard.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/label.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/large-arrow-right-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/layers-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/layers.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/left-panel-close.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/left-panel-open.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/lightbulb-spark.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/lightbulb.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/lighthouse_logo.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/list.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/location-on.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/lock.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/match-case.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/match-whole-word.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/memory.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/minus.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/mop.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/mouse.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/navigationControls.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/navigationControls_2x.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/network-settings.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/node-stack-icon.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/nodeIcon.avif +0 -0
- package/client/dist/chrome-devtools-ui/Images/open-externally.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/override.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/palette.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/pause-circle.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/pause.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/pen-spark.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/performance-panel-delete-annotation.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/performance-panel-diagram.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/performance-panel-entry-label.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/performance-panel-time-range.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/performance.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/person.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/photo-camera.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/play.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/plus.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/policy.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/popoverArrows.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/popup.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/preview_feature_video_thumbnail.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/profile.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/psychiatry.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/react_native/learn-debugging-basics.jpg +0 -0
- package/client/dist/chrome-devtools-ui/Images/react_native/learn-native-debugging.jpg +0 -0
- package/client/dist/chrome-devtools-ui/Images/react_native/learn-react-native-devtools.jpg +0 -0
- package/client/dist/chrome-devtools-ui/Images/react_native/welcomeIcon.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/record-start.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/record-stop.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/redo.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/refresh.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/regular-expression.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/replace.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/replay.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/report.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/resizeDiagonal.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/resizeHorizontal.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/resizeVertical.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/resume.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/review.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/right-panel-close.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/right-panel-open.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/scissors.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/screen-rotation.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/search.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/select-element.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/send.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/shadow.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/small-status-dot.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/smart-assistant.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/snippet.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/spark-info.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/star.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/step-into.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/step-out.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/step-over.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/step.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/stop.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/symbol.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/sync.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/table.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/terminal.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/thumb-down-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/thumb-down.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/thumb-up-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/thumb-up.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/tonality.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/toolbarResizerVertical.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/top-panel-close.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/top-panel-open.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/touch-app.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/touchCursor.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/touchCursor_2x.png +0 -0
- package/client/dist/chrome-devtools-ui/Images/triangle-bottom-right.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/triangle-down.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/triangle-left.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/triangle-right.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/triangle-up.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/tune.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/undo.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/warning-filled.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/warning.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/watch.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/whatsnew.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/width.svg +1 -0
- package/client/dist/chrome-devtools-ui/Images/zoom-in.svg +1 -0
- package/client/dist/chrome-devtools-ui/Tests.js +1700 -0
- package/client/dist/chrome-devtools-ui/application_tokens.css +407 -0
- package/client/dist/chrome-devtools-ui/core/common/common.js +1 -0
- package/client/dist/chrome-devtools-ui/core/dom_extension/dom_extension.js +1 -0
- package/client/dist/chrome-devtools-ui/core/host/host.js +1 -0
- package/client/dist/chrome-devtools-ui/core/i18n/i18n.js +1 -0
- package/client/dist/chrome-devtools-ui/core/i18n/locales/en-US.json +1 -0
- package/client/dist/chrome-devtools-ui/core/i18n/locales/zh.json +1 -0
- package/client/dist/chrome-devtools-ui/core/platform/platform.js +1 -0
- package/client/dist/chrome-devtools-ui/core/protocol_client/protocol_client.js +1 -0
- package/client/dist/chrome-devtools-ui/core/rn_experiments/rn_experiments.js +1 -0
- package/client/dist/chrome-devtools-ui/core/root/root.js +1 -0
- package/client/dist/chrome-devtools-ui/core/sdk/sdk-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/core/sdk/sdk.js +1 -0
- package/client/dist/chrome-devtools-ui/design_system_tokens.css +782 -0
- package/client/dist/chrome-devtools-ui/device_mode_emulation_frame.html +24 -0
- package/client/dist/chrome-devtools-ui/devtools_app.html +24 -0
- package/client/dist/chrome-devtools-ui/devtools_compatibility.js +1741 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/client/dist/chrome-devtools-ui/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/client/dist/chrome-devtools-ui/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/devtools_app/devtools_app.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/formatter_worker/FormatterActions.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/formatter_worker/formatter_worker-entrypoint.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/formatter_worker/formatter_worker.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/inspector/inspector.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/inspector_main/inspector_main-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/inspector_main/inspector_main.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/js_app/js_app.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/lighthouse_worker/lighthouse_worker.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/main/main-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/main/main.js +48 -0
- package/client/dist/chrome-devtools-ui/entrypoints/ndb_app/ndb_app.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/node_app/node_app.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/rehydrated_devtools_app/rehydrated_devtools_app.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/rn_fusebox/rn_fusebox.js +24 -0
- package/client/dist/chrome-devtools-ui/entrypoints/shell/shell.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/wasmparser_worker/wasmparser_worker.js +1 -0
- package/client/dist/chrome-devtools-ui/entrypoints/worker_app/worker_app.js +1 -0
- package/client/dist/chrome-devtools-ui/inspector.html +24 -0
- package/client/dist/chrome-devtools-ui/integration_test_runner.html +40 -0
- package/client/dist/chrome-devtools-ui/js_app.html +24 -0
- package/client/dist/chrome-devtools-ui/legacy_test_runner/legacy_test_runner.js +13 -0
- package/client/dist/chrome-devtools-ui/legacy_test_runner/test_runner/test_runner.js +1 -0
- package/client/dist/chrome-devtools-ui/models/ai_assistance/ai_assistance.js +1 -0
- package/client/dist/chrome-devtools-ui/models/autofill_manager/autofill_manager.js +1 -0
- package/client/dist/chrome-devtools-ui/models/bindings/bindings.js +1 -0
- package/client/dist/chrome-devtools-ui/models/breakpoints/breakpoints.js +1 -0
- package/client/dist/chrome-devtools-ui/models/cpu_profile/cpu_profile.js +1 -0
- package/client/dist/chrome-devtools-ui/models/crux-manager/crux-manager.js +1 -0
- package/client/dist/chrome-devtools-ui/models/emulation/emulation.js +1 -0
- package/client/dist/chrome-devtools-ui/models/extensions/extensions.js +1 -0
- package/client/dist/chrome-devtools-ui/models/formatter/formatter.js +1 -0
- package/client/dist/chrome-devtools-ui/models/har/har.js +1 -0
- package/client/dist/chrome-devtools-ui/models/heap_snapshot_model/heap_snapshot_model.js +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/LowTextContrast.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteInvalidSameParty.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arInsecureContext.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsInsecurePrivateNetwork.md +10 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsPreflightAllowPrivateNetworkError.md +10 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsPrivateNetworkPermissionDenied.md +10 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/cspURLViolation.md +10 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/deprecation.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestClientMetadataHttpNotFound.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestClientMetadataInvalidResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestClientMetadataNoResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingId.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInput.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/heavyAd.md +10 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/mixedContent.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/propertyRuleIssue.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriInvalidSignatureHeader.md +14 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriMissingSignatureHeader.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +12 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
- package/client/dist/chrome-devtools-ui/models/issues_manager/issues_manager.js +1 -0
- package/client/dist/chrome-devtools-ui/models/javascript_metadata/javascript_metadata.js +1 -0
- package/client/dist/chrome-devtools-ui/models/live-metrics/live-metrics.js +1 -0
- package/client/dist/chrome-devtools-ui/models/live-metrics/web-vitals-injected/spec/spec.js +1 -0
- package/client/dist/chrome-devtools-ui/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -0
- package/client/dist/chrome-devtools-ui/models/logs/logs-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/models/logs/logs.js +1 -0
- package/client/dist/chrome-devtools-ui/models/persistence/persistence-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/models/persistence/persistence.js +1 -0
- package/client/dist/chrome-devtools-ui/models/project_settings/project_settings.js +1 -0
- package/client/dist/chrome-devtools-ui/models/react_native/react_native.js +1 -0
- package/client/dist/chrome-devtools-ui/models/source_map_scopes/source_map_scopes.js +1 -0
- package/client/dist/chrome-devtools-ui/models/text_utils/text_utils.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/extras/extras.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/handlers/handlers.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/helpers/helpers.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/insights/insights.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/lantern/core/core.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/lantern/graph/graph.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/lantern/lantern.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/lantern/metrics/metrics.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/lantern/simulation/simulation.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/lantern/types/types.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/trace.js +1 -0
- package/client/dist/chrome-devtools-ui/models/trace/types/types.js +1 -0
- package/client/dist/chrome-devtools-ui/models/workspace/workspace.js +1 -0
- package/client/dist/chrome-devtools-ui/models/workspace_diff/workspace_diff.js +1 -0
- package/client/dist/chrome-devtools-ui/ndb_app.html +24 -0
- package/client/dist/chrome-devtools-ui/node_app.html +24 -0
- package/client/dist/chrome-devtools-ui/panels/accessibility/accessibility-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/accessibility/accessibility.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/ai_assistance/ai_assistance-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/ai_assistance/ai_assistance.js +512 -0
- package/client/dist/chrome-devtools-ui/panels/animation/animation-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/animation/animation.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/application/application-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/application/application.js +107 -0
- package/client/dist/chrome-devtools-ui/panels/application/components/components.js +765 -0
- package/client/dist/chrome-devtools-ui/panels/application/preloading/components/components.js +362 -0
- package/client/dist/chrome-devtools-ui/panels/application/preloading/helper/helper.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/autofill/autofill-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/autofill/autofill.js +107 -0
- package/client/dist/chrome-devtools-ui/panels/browser_debugger/browser_debugger-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/browser_debugger/browser_debugger.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/changes/changes-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/changes/changes.js +31 -0
- package/client/dist/chrome-devtools-ui/panels/common/common.js +45 -0
- package/client/dist/chrome-devtools-ui/panels/console/console-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/console/console.js +6 -0
- package/client/dist/chrome-devtools-ui/panels/console_counters/console_counters-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/console_counters/console_counters.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/coverage/coverage-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/coverage/coverage.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/css_overview/components/components.js +23 -0
- package/client/dist/chrome-devtools-ui/panels/css_overview/css_overview-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/css_overview/css_overview.js +148 -0
- package/client/dist/chrome-devtools-ui/panels/developer_resources/developer_resources-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/developer_resources/developer_resources.js +48 -0
- package/client/dist/chrome-devtools-ui/panels/elements/components/components.js +250 -0
- package/client/dist/chrome-devtools-ui/panels/elements/elements-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/elements/elements.js +67 -0
- package/client/dist/chrome-devtools-ui/panels/emulation/components/components.js +39 -0
- package/client/dist/chrome-devtools-ui/panels/emulation/emulation-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/emulation/emulation.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/event_listeners/event_listeners.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/explain/explain-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/explain/explain.js +231 -0
- package/client/dist/chrome-devtools-ui/panels/issues/components/components.js +14 -0
- package/client/dist/chrome-devtools-ui/panels/issues/issues-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/issues/issues.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/js_timeline/js_timeline-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/js_timeline/js_timeline.js +2 -0
- package/client/dist/chrome-devtools-ui/panels/layer_viewer/layer_viewer-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/layer_viewer/layer_viewer.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/layers/layers-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/layers/layers.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/lighthouse/lighthouse-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/lighthouse/lighthouse.js +65 -0
- package/client/dist/chrome-devtools-ui/panels/linear_memory_inspector/components/components.js +179 -0
- package/client/dist/chrome-devtools-ui/panels/linear_memory_inspector/linear_memory_inspector-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/linear_memory_inspector/linear_memory_inspector.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/media/media-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/media/media.js +25 -0
- package/client/dist/chrome-devtools-ui/panels/mobile_throttling/mobile_throttling-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/mobile_throttling/mobile_throttling.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/network/components/components.js +346 -0
- package/client/dist/chrome-devtools-ui/panels/network/forward/forward.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/network/network-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/network/network.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/performance_monitor/performance_monitor-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/performance_monitor/performance_monitor.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/profiler/profiler-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/profiler/profiler.js +8 -0
- package/client/dist/chrome-devtools-ui/panels/protocol_monitor/protocol_monitor-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/protocol_monitor/protocol_monitor.js +293 -0
- package/client/dist/chrome-devtools-ui/panels/react_devtools/react_devtools.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/react_devtools/react_devtools_components-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/react_devtools/react_devtools_profiler-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/components/components.js +686 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/controllers/controllers.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/converters/converters.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/extensions/extensions.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/injected/injected.generated.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/injected/injected.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/models/models.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/recorder-actions/recorder-actions.js +3 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/recorder-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/recorder.js +126 -0
- package/client/dist/chrome-devtools-ui/panels/recorder/util/util.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/rn_welcome/rn_welcome-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/rn_welcome/rn_welcome.js +62 -0
- package/client/dist/chrome-devtools-ui/panels/screencast/screencast-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/screencast/screencast.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/search/search.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/security/security-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/security/security.js +178 -0
- package/client/dist/chrome-devtools-ui/panels/sensors/sensors-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/sensors/sensors.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/settings/components/components.js +22 -0
- package/client/dist/chrome-devtools-ui/panels/settings/emulation/components/components.js +221 -0
- package/client/dist/chrome-devtools-ui/panels/settings/emulation/emulation-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/settings/emulation/emulation.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/settings/emulation/utils/utils.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/settings/settings-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/settings/settings.js +91 -0
- package/client/dist/chrome-devtools-ui/panels/snippets/snippets.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/sources/components/components.js +162 -0
- package/client/dist/chrome-devtools-ui/panels/sources/sources-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/sources/sources.js +2 -0
- package/client/dist/chrome-devtools-ui/panels/timeline/components/components.js +1063 -0
- package/client/dist/chrome-devtools-ui/panels/timeline/components/insights/insights.js +262 -0
- package/client/dist/chrome-devtools-ui/panels/timeline/extensions/extensions.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/timeline/overlays/components/components.js +190 -0
- package/client/dist/chrome-devtools-ui/panels/timeline/overlays/overlays.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/timeline/timeline-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/timeline/timeline.js +43 -0
- package/client/dist/chrome-devtools-ui/panels/timeline/utils/utils.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/utils/utils.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/web_audio/graph_visualizer/graph_visualizer.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/web_audio/web_audio-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/web_audio/web_audio.js +19 -0
- package/client/dist/chrome-devtools-ui/panels/webauthn/webauthn-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/webauthn/webauthn.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/whats_new/resources/WNDT.md +6 -0
- package/client/dist/chrome-devtools-ui/panels/whats_new/whats_new-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/panels/whats_new/whats_new.js +32 -0
- package/client/dist/chrome-devtools-ui/rehydrated_devtools_app.html +24 -0
- package/client/dist/chrome-devtools-ui/rn_fusebox.html +24 -0
- package/client/dist/chrome-devtools-ui/services/puppeteer/puppeteer.js +1 -0
- package/client/dist/chrome-devtools-ui/services/trace_bounds/trace_bounds.js +1 -0
- package/client/dist/chrome-devtools-ui/services/tracing/tracing.js +1 -0
- package/client/dist/chrome-devtools-ui/services/window_bounds/window_bounds.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/acorn/acorn.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/chromium/client-variations/client-variations.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/angular.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/codemirror.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/cpp.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/java.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/legacy.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/less.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/markdown.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/php.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/python.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/sass.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/svelte.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/vue.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/wast.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/chunk/xml.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/codemirror.next/codemirror.next.js +2 -0
- package/client/dist/chrome-devtools-ui/third_party/csp_evaluator/csp_evaluator.js +194 -0
- package/client/dist/chrome-devtools-ui/third_party/diff/diff.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/i18n/i18n.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/intl-messageformat/intl-messageformat.js +15 -0
- package/client/dist/chrome-devtools-ui/third_party/json5/json5.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/legacy-javascript/legacy-javascript.js +7 -0
- package/client/dist/chrome-devtools-ui/third_party/lighthouse/lighthouse-dt-bundle.js +3023 -0
- package/client/dist/chrome-devtools-ui/third_party/lighthouse/report/report.js +39 -0
- package/client/dist/chrome-devtools-ui/third_party/lit/lit.js +121 -0
- package/client/dist/chrome-devtools-ui/third_party/marked/marked.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/puppeteer/puppeteer.js +373 -0
- package/client/dist/chrome-devtools-ui/third_party/puppeteer-replay/puppeteer-replay.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/react-devtools/react-devtools.js +41 -0
- package/client/dist/chrome-devtools-ui/third_party/third-party-web/third-party-web.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/wasmparser/wasmparser.js +1 -0
- package/client/dist/chrome-devtools-ui/third_party/web-vitals/web-vitals.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/adorners/adorners.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/buttons/buttons.js +17 -0
- package/client/dist/chrome-devtools-ui/ui/components/cards/cards.js +10 -0
- package/client/dist/chrome-devtools-ui/ui/components/chrome_link/chrome_link.js +6 -0
- package/client/dist/chrome-devtools-ui/ui/components/code_highlighter/code_highlighter.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/dialogs/dialogs.js +61 -0
- package/client/dist/chrome-devtools-ui/ui/components/diff_view/diff_view.js +8 -0
- package/client/dist/chrome-devtools-ui/ui/components/expandable_list/expandable_list.js +17 -0
- package/client/dist/chrome-devtools-ui/ui/components/floating_button/floating_button.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/helpers/helpers.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/highlighting/highlighting.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/icon_button/icon_button.js +13 -0
- package/client/dist/chrome-devtools-ui/ui/components/input/input.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/issue_counter/issue_counter.js +10 -0
- package/client/dist/chrome-devtools-ui/ui/components/legacy_wrapper/legacy_wrapper.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/linkifier/linkifier.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/markdown_view/markdown_view.js +51 -0
- package/client/dist/chrome-devtools-ui/ui/components/menus/menus.js +71 -0
- package/client/dist/chrome-devtools-ui/ui/components/node_text/node_text.js +3 -0
- package/client/dist/chrome-devtools-ui/ui/components/panel_feedback/panel_feedback.js +37 -0
- package/client/dist/chrome-devtools-ui/ui/components/panel_introduction_steps/panel_introduction_steps.js +9 -0
- package/client/dist/chrome-devtools-ui/ui/components/render_coordinator/render_coordinator.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/report_view/report_view.js +21 -0
- package/client/dist/chrome-devtools-ui/ui/components/request_link_icon/request_link_icon.js +8 -0
- package/client/dist/chrome-devtools-ui/ui/components/settings/settings.js +20 -0
- package/client/dist/chrome-devtools-ui/ui/components/spinners/spinners.js +16 -0
- package/client/dist/chrome-devtools-ui/ui/components/srgb_overlay/srgb_overlay.js +6 -0
- package/client/dist/chrome-devtools-ui/ui/components/suggestion_input/suggestion_input.js +29 -0
- package/client/dist/chrome-devtools-ui/ui/components/survey_link/survey_link.js +7 -0
- package/client/dist/chrome-devtools-ui/ui/components/switch/switch.js +10 -0
- package/client/dist/chrome-devtools-ui/ui/components/text_editor/text_editor.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/components/text_prompt/text_prompt.js +4 -0
- package/client/dist/chrome-devtools-ui/ui/components/tooltips/tooltips.js +7 -0
- package/client/dist/chrome-devtools-ui/ui/components/tree_outline/tree_outline.js +32 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/color_picker/color_picker.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/cookie_table/cookie_table.js +85 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/data_grid/data_grid.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/inline_editor/inline_editor.js +58 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/object_ui/object_ui-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/object_ui/object_ui.js +7 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/perf_ui/perf_ui-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/perf_ui/perf_ui.js +60 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/quick_open/quick_open-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/quick_open/quick_open.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/source_frame/source_frame-meta.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/source_frame/source_frame.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/components/utils/utils.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/legacy.js +59 -0
- package/client/dist/chrome-devtools-ui/ui/legacy/theme_support/theme_support.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/lit/lit.js +1 -0
- package/client/dist/chrome-devtools-ui/ui/visual_logging/visual_logging.js +1 -0
- package/client/dist/chrome-devtools-ui/worker_app.html +24 -0
- package/client/dist/index.html +3 -3
- package/package.json +4 -1
- package/packages/simdeck-test/dist/index.d.ts +7 -1
- package/client/dist/assets/index-ICWevBP_.js +0 -9
- package/client/dist/assets/index-Y_Zqbt1r.css +0 -1
package/client/dist/chrome-devtools-ui/entrypoints/heap_snapshot_worker/heap_snapshot_worker.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../models/heap_snapshot_model/heap_snapshot_model.js";import*as t from"../../core/i18n/i18n.js";import*as s from"../../core/platform/platform.js";import*as n from"../../models/text_utils/text_utils.js";class i{#e;#t;#s;#n;#i;#o;#r;constructor(e,t){this.#e=e.strings,this.#t=1,this.#s=[],this.#n={},this.#i={},this.#o={},this.#r=null,this.#a(e),this.#d(e,t)}#a(e){const t=this.#e,s=e.snapshot.meta.trace_function_info_fields,n=s.indexOf("name"),i=s.indexOf("script_name"),o=s.indexOf("script_id"),r=s.indexOf("line"),d=s.indexOf("column"),h=s.length,l=e.trace_function_infos,c=l.length,u=this.#s=new Array(c/h);let g=0;for(let e=0;e<c;e+=h)u[g++]=new a(t[l[e+n]],t[l[e+i]],l[e+o],l[e+r],l[e+d])}#d(e,t){const s=e.trace_tree,n=this.#s,i=this.#i,r=e.snapshot.meta.trace_node_fields,a=r.indexOf("id"),d=r.indexOf("function_info_index"),h=r.indexOf("count"),l=r.indexOf("size"),c=r.indexOf("children"),u=r.length;return function e(s,r,g){const p=n[s[r+d]],f=s[r+a],I=t[f],m=I?I.count:0,x=I?I.size:0,y=new o(f,p,s[r+h],s[r+l],m,x,g);i[f]=y,p.addTraceTopNode(y);const N=s[r+c];for(let t=0;t<N.length;t+=u)y.children.push(e(N,t,y));return y}(s,0,null)}serializeTraceTops(){if(this.#r)return this.#r;const e=this.#r=[],t=this.#s;for(let s=0;s<t.length;s++){const n=t[s];if(0===n.totalCount)continue;const i=this.#t++,o=0===s;e.push(this.#h(i,n,n.totalCount,n.totalSize,n.totalLiveCount,n.totalLiveSize,!o)),this.#o[i]=n}return e.sort((function(e,t){return t.size-e.size})),e}serializeCallers(t){let s=this.#l(t);const n=[];for(;1===s.callers().length;)s=s.callers()[0],n.push(this.#c(s));const i=[],o=s.callers();for(let e=0;e<o.length;e++)i.push(this.#c(o[e]));return new e.HeapSnapshotModel.AllocationNodeCallers(n,i)}serializeAllocationStack(t){let s=this.#i[t];const n=[];for(;s;){const t=s.functionInfo;n.push(new e.HeapSnapshotModel.AllocationStackFrame(t.functionName,t.scriptName,t.scriptId,t.line,t.column)),s=s.parent}return n}traceIds(e){return this.#l(e).traceTopIds}#l(e){let t=this.#n[e];if(!t){t=this.#o[e].bottomUpRoot(),delete this.#o[e],this.#n[e]=t}return t}#c(e){const t=this.#t++;return this.#n[t]=e,this.#h(t,e.functionInfo,e.allocationCount,e.allocationSize,e.liveCount,e.liveSize,e.hasCallers())}#h(t,s,n,i,o,r,a){return new e.HeapSnapshotModel.SerializedAllocationNode(t,s.functionName,s.scriptName,s.scriptId,s.line,s.column,n,i,o,r,a)}}class o{id;functionInfo;allocationCount;allocationSize;liveCount;liveSize;parent;children;constructor(e,t,s,n,i,o,r){this.id=e,this.functionInfo=t,this.allocationCount=s,this.allocationSize=n,this.liveCount=i,this.liveSize=o,this.parent=r,this.children=[]}}class r{functionInfo;allocationCount;allocationSize;liveCount;liveSize;traceTopIds;#u;constructor(e){this.functionInfo=e,this.allocationCount=0,this.allocationSize=0,this.liveCount=0,this.liveSize=0,this.traceTopIds=[],this.#u=[]}addCaller(e){const t=e.functionInfo;let s;for(let e=0;e<this.#u.length;e++){const n=this.#u[e];if(n.functionInfo===t){s=n;break}}return s||(s=new r(t),this.#u.push(s)),s}callers(){return this.#u}hasCallers(){return this.#u.length>0}}class a{functionName;scriptName;scriptId;line;column;totalCount;totalSize;totalLiveCount;totalLiveSize;#r;#g;constructor(e,t,s,n,i){this.functionName=e,this.scriptName=t,this.scriptId=s,this.line=n,this.column=i,this.totalCount=0,this.totalSize=0,this.totalLiveCount=0,this.totalLiveSize=0,this.#r=[]}addTraceTopNode(e){0!==e.allocationCount&&(this.#r.push(e),this.totalCount+=e.allocationCount,this.totalSize+=e.allocationSize,this.totalLiveCount+=e.liveCount,this.totalLiveSize+=e.liveSize)}bottomUpRoot(){return this.#r.length?(this.#g||this.#p(),this.#g):null}#p(){this.#g=new r(this);for(let e=0;e<this.#r.length;e++){let t=this.#r[e],s=this.#g;const n=t.allocationCount,i=t.allocationSize,o=t.liveCount,r=t.liveSize,a=t.id;for(;s.allocationCount+=n,s.allocationSize+=i,s.liveCount+=o,s.liveSize+=r,s.traceTopIds.push(a),t=t.parent,null!==t;)s=s.addCaller(t)}}}var d=Object.freeze({__proto__:null,AllocationProfile:i,BottomUpAllocationNode:r,FunctionAllocationInfo:a,TopDownAllocationNode:o});class h{snapshot;edges;edgeIndex;constructor(e,t){this.snapshot=e,this.edges=e.containmentEdges,this.edgeIndex=t||0}clone(){return new h(this.snapshot,this.edgeIndex)}hasStringName(){throw new Error("Not implemented")}name(){throw new Error("Not implemented")}node(){return this.snapshot.createNode(this.nodeIndex())}nodeIndex(){if(void 0===this.snapshot.edgeToNodeOffset)throw new Error("edgeToNodeOffset is undefined");return this.edges.getValue(this.edgeIndex+this.snapshot.edgeToNodeOffset)}toString(){return"HeapSnapshotEdge: "+this.name()}type(){return this.snapshot.edgeTypes[this.rawType()]}itemIndex(){return this.edgeIndex}serialize(){return new e.HeapSnapshotModel.Edge(this.name(),this.node().serialize(),this.type(),this.edgeIndex)}rawType(){if(void 0===this.snapshot.edgeTypeOffset)throw new Error("edgeTypeOffset is undefined");return this.edges.getValue(this.edgeIndex+this.snapshot.edgeTypeOffset)}isInternal(){throw new Error("Not implemented")}isInvisible(){throw new Error("Not implemented")}isWeak(){throw new Error("Not implemented")}getValueForSorting(e){throw new Error("Not implemented")}nameIndex(){throw new Error("Not implemented")}}class l{#f;constructor(e){this.#f=e.createNode()}itemForIndex(e){return this.#f.nodeIndex=e,this.#f}}class c{#I;constructor(e){this.#I=e.createEdge(0)}itemForIndex(e){return this.#I.edgeIndex=e,this.#I}}class u{#m;constructor(e){this.#m=e.createRetainingEdge(0)}itemForIndex(e){return this.#m.setRetainerIndex(e),this.#m}}class g{#x;edge;constructor(e){this.#x=e,this.edge=e.snapshot.createEdge(e.edgeIndexesStart())}hasNext(){return this.edge.edgeIndex<this.#x.edgeIndexesEnd()}item(){return this.edge}next(){if(void 0===this.edge.snapshot.edgeFieldsCount)throw new Error("edgeFieldsCount is undefined");this.edge.edgeIndex+=this.edge.snapshot.edgeFieldsCount}}class p{snapshot;#y;#N;#S;#w;#T;constructor(e,t){this.snapshot=e,this.setRetainerIndex(t)}clone(){return new p(this.snapshot,this.retainerIndex())}hasStringName(){return this.edge().hasStringName()}name(){return this.edge().name()}nameIndex(){return this.edge().nameIndex()}node(){return this.nodeInternal()}nodeIndex(){if(void 0===this.#S)throw new Error("retainingNodeIndex is undefined");return this.#S}retainerIndex(){return this.#y}setRetainerIndex(e){if(e!==this.#y){if(!this.snapshot.retainingEdges||!this.snapshot.retainingNodes)throw new Error("Snapshot does not contain retaining edges or retaining nodes");this.#y=e,this.#N=this.snapshot.retainingEdges[e],this.#S=this.snapshot.retainingNodes[e],this.#w=null,this.#T=null}}set edgeIndex(e){this.setRetainerIndex(e)}nodeInternal(){return this.#T||(this.#T=this.snapshot.createNode(this.#S)),this.#T}edge(){return this.#w||(this.#w=this.snapshot.createEdge(this.#N)),this.#w}toString(){return this.edge().toString()}itemIndex(){return this.#y}serialize(){const t=this.node(),s=t.serialize();return s.distance=this.#C(),s.ignored=this.snapshot.isNodeIgnoredInRetainersView(t.nodeIndex),new e.HeapSnapshotModel.Edge(this.name(),s,this.type(),this.#N)}type(){return this.edge().type()}isInternal(){return this.edge().isInternal()}getValueForSorting(e){if("!edgeDistance"===e)return this.#C();throw new Error("Invalid field name")}#C(){return this.snapshot.isEdgeIgnoredInRetainersView(this.#N)?e.HeapSnapshotModel.baseUnreachableDistance:this.node().distanceForRetainersView()}}class f{#O;retainer;constructor(e){const t=e.snapshot,s=e.ordinal();if(!t.firstRetainerIndex)throw new Error("Snapshot does not contain firstRetainerIndex");const n=t.firstRetainerIndex[s];this.#O=t.firstRetainerIndex[s+1],this.retainer=t.createRetainingEdge(n)}hasNext(){return this.retainer.retainerIndex()<this.#O}item(){return this.retainer}next(){this.retainer.setRetainerIndex(this.retainer.retainerIndex()+1)}}class I{snapshot;nodeIndex;constructor(e,t){this.snapshot=e,this.nodeIndex=t||0}distance(){return this.snapshot.nodeDistances[this.nodeIndex/this.snapshot.nodeFieldCount]}distanceForRetainersView(){return this.snapshot.getDistanceForRetainersView(this.nodeIndex)}className(){return this.snapshot.strings[this.classIndex()]}classIndex(){return this.#E()>>>O}classKeyInternal(){if(this.rawType()!==this.snapshot.nodeObjectType)return this.classIndex();const e=this.snapshot.getLocation(this.nodeIndex);return e?`${e.scriptId},${e.lineNumber},${e.columnNumber},${this.className()}`:this.classIndex()}setClassIndex(e){let t=this.#E();if(t&=C,t|=e<<O,this.#b(t),this.classIndex()!==e)throw new Error("String index overflow")}dominatorIndex(){const e=this.snapshot.nodeFieldCount;return this.snapshot.dominatorsTree[this.nodeIndex/this.snapshot.nodeFieldCount]*e}edges(){return new g(this)}edgesCount(){return(this.edgeIndexesEnd()-this.edgeIndexesStart())/this.snapshot.edgeFieldsCount}id(){throw new Error("Not implemented")}rawName(){return this.snapshot.strings[this.rawNameIndex()]}isRoot(){return this.nodeIndex===this.snapshot.rootNodeIndex}isUserRoot(){throw new Error("Not implemented")}isHidden(){throw new Error("Not implemented")}isArray(){throw new Error("Not implemented")}isSynthetic(){throw new Error("Not implemented")}isDocumentDOMTreesRoot(){throw new Error("Not implemented")}name(){return this.rawName()}retainedSize(){return this.snapshot.retainedSizes[this.ordinal()]}retainers(){return new f(this)}retainersCount(){const e=this.snapshot,t=this.ordinal();return e.firstRetainerIndex[t+1]-e.firstRetainerIndex[t]}selfSize(){const e=this.snapshot;return e.nodes.getValue(this.nodeIndex+e.nodeSelfSizeOffset)}type(){return this.snapshot.nodeTypes[this.rawType()]}traceNodeId(){const e=this.snapshot;return e.nodes.getValue(this.nodeIndex+e.nodeTraceNodeIdOffset)}itemIndex(){return this.nodeIndex}serialize(){return new e.HeapSnapshotModel.Node(this.id(),this.name(),this.distance(),this.nodeIndex,this.retainedSize(),this.selfSize(),this.type())}rawNameIndex(){const e=this.snapshot;return e.nodes.getValue(this.nodeIndex+e.nodeNameOffset)}edgeIndexesStart(){return this.snapshot.firstEdgeIndexes[this.ordinal()]}edgeIndexesEnd(){return this.snapshot.firstEdgeIndexes[this.ordinal()+1]}ordinal(){return this.nodeIndex/this.snapshot.nodeFieldCount}nextNodeIndex(){return this.nodeIndex+this.snapshot.nodeFieldCount}rawType(){const e=this.snapshot;return e.nodes.getValue(this.nodeIndex+e.nodeTypeOffset)}isFlatConsString(){if(this.rawType()!==this.snapshot.nodeConsStringType)return!1;for(let e=this.edges();e.hasNext();e.next()){const t=e.edge;if(!t.isInternal())continue;const s=t.name();if(("first"===s||"second"===s)&&""===t.node().name())return!0}return!1}#E(){const{snapshot:e,nodeIndex:t}=this,s=e.nodeDetachednessAndClassIndexOffset;return-1!==s?e.nodes.getValue(t+s):e.detachednessAndClassIndexArray[t/e.nodeFieldCount]}#b(e){const{snapshot:t,nodeIndex:s}=this,n=t.nodeDetachednessAndClassIndexOffset;-1!==n?t.nodes.setValue(s+n,e):t.detachednessAndClassIndexArray[s/t.nodeFieldCount]=e}detachedness(){return this.#E()&C}setDetachedness(e){let t=this.#E();t&=~C,t|=e,this.#b(t)}}class m{node;#F;constructor(e){this.node=e,this.#F=e.snapshot.nodes.length}hasNext(){return this.node.nodeIndex<this.#F}item(){return this.node}next(){this.node.nodeIndex=this.node.nextNodeIndex()}}class x{#A;#v;#D;constructor(e,t){this.#A=e,this.#v=t,this.#D=0}hasNext(){return this.#D<this.#v.length}item(){const e=this.#v[this.#D];return this.#A.itemForIndex(e)}next(){++this.#D}}class y{#z;#R;constructor(e,t){this.#z=e,this.#R=t,this.skipFilteredItems()}hasNext(){return this.#z.hasNext()}item(){return this.#z.item()}next(){this.#z.next(),this.skipFilteredItems()}skipFilteredItems(){for(;this.#z.hasNext()&&this.#R&&!this.#R(this.#z.item());)this.#z.next()}}class N{#_;constructor(e){this.#_=e}updateStatus(e){this.sendUpdateEvent(t.i18n.serializeUIString(e))}updateProgress(e,s,n){const i=(100*(n?s/n:0)).toFixed(0);this.sendUpdateEvent(t.i18n.serializeUIString(e,{PH1:i}))}reportProblem(t){this.#_&&this.#_.sendEvent(e.HeapSnapshotModel.HeapSnapshotProgressEvent.BrokenSnapshot,t)}sendUpdateEvent(t){this.#_&&this.#_.sendEvent(e.HeapSnapshotModel.HeapSnapshotProgressEvent.Update,t)}}function S(e,t){e.length>100||e.push(t)}function w(e,t){t.postMessage({problemReport:e})}class T{argsStep1;argsStep2;argsStep3;constructor(e){const{promise:t,resolve:s}=Promise.withResolvers();this.argsStep1=t;const{promise:n,resolve:i}=Promise.withResolvers();this.argsStep2=n;const{promise:o,resolve:r}=Promise.withResolvers();this.argsStep3=o,e.onmessage=e=>{const t=e.data;switch(t.step){case 1:s(t.args);break;case 2:i(t.args);break;case 3:r(t.args)}},this.initialize(e)}async getNodeSelfSizes(){return(await this.argsStep3).nodeSelfSizes}async initialize(e){try{const t=await this.argsStep1,n=E.buildRetainers(t),i=await this.argsStep2,o={...i,...t,...n,essentialEdges:s.TypedArrayUtilities.createBitVector(i.essentialEdgesBuffer),port:e,nodeSelfSizesPromise:this.getNodeSelfSizes()},r=await E.calculateDominatorsAndRetainedSizes(o),a=E.buildDominatedNodes({...o,...r}),d={...n,...r,...a};e.postMessage({resultsFromSecondWorker:d},{transfer:[d.dominatorsTree.buffer,d.firstRetainerIndex.buffer,d.retainedSizes.buffer,d.retainingEdges.buffer,d.retainingNodes.buffer,d.dominatedNodes.buffer,d.firstDominatedNodeIndex.buffer]})}catch(t){e.postMessage({error:t+"\n"+t?.stack})}}}const C=3,O=2;class E{nodes;containmentEdges;#k;#V;#j=null;strings;#M;#P;#H=-5;rootNodeIndexInternal=0;#U={};#B;#L={};#W={};profile;nodeTypeOffset;nodeNameOffset;nodeIdOffset;nodeSelfSizeOffset;#J;nodeTraceNodeIdOffset;nodeFieldCount;nodeTypes;nodeArrayType;nodeHiddenType;nodeObjectType;nodeNativeType;nodeStringType;nodeConsStringType;nodeSlicedStringType;nodeCodeType;nodeSyntheticType;nodeClosureType;nodeRegExpType;edgeFieldsCount;edgeTypeOffset;edgeNameOffset;edgeToNodeOffset;edgeTypes;edgeElementType;edgeHiddenType;edgeInternalType;edgeShortcutType;edgeWeakType;edgeInvisibleType;edgePropertyType;#K;#$;#Q;#q;#G;nodeCount;#X;retainedSizes;firstEdgeIndexes;retainingNodes;retainingEdges;firstRetainerIndex;nodeDistances;firstDominatedNodeIndex;dominatedNodes;dominatorsTree;#Y;nodeDetachednessAndClassIndexOffset;#Z;#ee=new Set;#te=new Set;#se;#ne;detachednessAndClassIndexArray;#ie=new Map;#oe;constructor(e,t){this.nodes=e.nodes,this.containmentEdges=e.edges,this.#k=e.snapshot.meta,this.#V=e.samples,this.strings=e.strings,this.#M=e.locations,this.#P=t,e.snapshot.root_index&&(this.rootNodeIndexInternal=e.snapshot.root_index),this.profile=e,this.#ne=s.TypedArrayUtilities.createBitVector(this.strings.length)}async initialize(e){const t=this.#k;this.nodeTypeOffset=t.node_fields.indexOf("type"),this.nodeNameOffset=t.node_fields.indexOf("name"),this.nodeIdOffset=t.node_fields.indexOf("id"),this.nodeSelfSizeOffset=t.node_fields.indexOf("self_size"),this.#J=t.node_fields.indexOf("edge_count"),this.nodeTraceNodeIdOffset=t.node_fields.indexOf("trace_node_id"),this.nodeDetachednessAndClassIndexOffset=t.node_fields.indexOf("detachedness"),this.nodeFieldCount=t.node_fields.length,this.nodeTypes=t.node_types[this.nodeTypeOffset],this.nodeArrayType=this.nodeTypes.indexOf("array"),this.nodeHiddenType=this.nodeTypes.indexOf("hidden"),this.nodeObjectType=this.nodeTypes.indexOf("object"),this.nodeNativeType=this.nodeTypes.indexOf("native"),this.nodeStringType=this.nodeTypes.indexOf("string"),this.nodeConsStringType=this.nodeTypes.indexOf("concatenated string"),this.nodeSlicedStringType=this.nodeTypes.indexOf("sliced string"),this.nodeCodeType=this.nodeTypes.indexOf("code"),this.nodeSyntheticType=this.nodeTypes.indexOf("synthetic"),this.nodeClosureType=this.nodeTypes.indexOf("closure"),this.nodeRegExpType=this.nodeTypes.indexOf("regexp"),this.edgeFieldsCount=t.edge_fields.length,this.edgeTypeOffset=t.edge_fields.indexOf("type"),this.edgeNameOffset=t.edge_fields.indexOf("name_or_index"),this.edgeToNodeOffset=t.edge_fields.indexOf("to_node"),this.edgeTypes=t.edge_types[this.edgeTypeOffset],this.edgeTypes.push("invisible"),this.edgeElementType=this.edgeTypes.indexOf("element"),this.edgeHiddenType=this.edgeTypes.indexOf("hidden"),this.edgeInternalType=this.edgeTypes.indexOf("internal"),this.edgeShortcutType=this.edgeTypes.indexOf("shortcut"),this.edgeWeakType=this.edgeTypes.indexOf("weak"),this.edgeInvisibleType=this.edgeTypes.indexOf("invisible"),this.edgePropertyType=this.edgeTypes.indexOf("property");const s=t.location_fields||[];this.#K=s.indexOf("object_index"),this.#$=s.indexOf("script_id"),this.#Q=s.indexOf("line"),this.#q=s.indexOf("column"),this.#G=s.length,this.nodeCount=this.nodes.length/this.nodeFieldCount,this.#X=this.containmentEdges.length/this.edgeFieldsCount,this.#P.updateStatus("Building edge indexes…"),this.firstEdgeIndexes=new Uint32Array(this.nodeCount+1),this.buildEdgeIndexes(),this.#P.updateStatus("Building retainers…");const n=this.startInitStep1InSecondThread(e);if(this.#P.updateStatus("Propagating DOM state…"),this.propagateDOMState(),this.#P.updateStatus("Calculating node flags…"),this.calculateFlags(),this.#P.updateStatus("Building dominated nodes…"),this.startInitStep2InSecondThread(e),this.#P.updateStatus("Calculating shallow sizes…"),this.calculateShallowSizes(),this.#P.updateStatus("Calculating retained sizes…"),this.startInitStep3InSecondThread(e),this.#P.updateStatus("Calculating distances…"),this.nodeDistances=new Int32Array(this.nodeCount),this.calculateDistances(!1),this.#P.updateStatus("Calculating object names…"),this.calculateObjectNames(),this.applyInterfaceDefinitions(this.inferInterfaceDefinitions()),this.#P.updateStatus("Calculating samples…"),this.buildSamples(),this.#P.updateStatus("Building locations…"),this.buildLocationMap(),this.#P.updateStatus("Calculating retained sizes…"),await this.installResultsFromSecondThread(n),this.#P.updateStatus("Calculating statistics…"),this.calculateStatistics(),this.profile.snapshot.trace_function_count){this.#P.updateStatus("Building allocation statistics…");const e=this.nodes.length,t=this.nodeFieldCount,s=this.rootNode(),n={};for(let i=0;i<e;i+=t){s.nodeIndex=i;const e=s.traceNodeId();let t=n[e];t||(n[e]=t={count:0,size:0,ids:[]}),t.count++,t.size+=s.selfSize(),t.ids.push(s.id())}this.#Y=new i(this.profile,n)}this.#P.updateStatus("Finished processing.")}startInitStep1InSecondThread(e){const t=new Promise(((t,s)=>{e.onmessage=e=>{const n=e.data;if(n?.problemReport){const e=n.problemReport;console.warn(function(e,t){const s=e.rootNode();return t.map((e=>"string"==typeof e?e:(s.nodeIndex=e,`${s.name()} @${s.id()}`))).join("\n ")}(this,e))}else if(n?.resultsFromSecondWorker){const e=n.resultsFromSecondWorker;t(e)}else n?.error&&s(n.error)}})),s=this.#X,{containmentEdges:n,edgeToNodeOffset:i,edgeFieldsCount:o,nodeFieldCount:r}=this,a=new Uint32Array(s);for(let e=0;e<s;++e){const t=n.getValue(e*o+i);if(t%r)throw new Error("Invalid toNodeIndex "+t);a[e]=t/r}const d={edgeToNodeOrdinals:a,firstEdgeIndexes:this.firstEdgeIndexes,nodeCount:this.nodeCount,edgeFieldsCount:this.edgeFieldsCount,nodeFieldCount:this.nodeFieldCount};return e.postMessage({step:1,args:d},[a.buffer]),t}startInitStep2InSecondThread(e){const t=this.rootNodeIndexInternal/this.nodeFieldCount,s=this.initEssentialEdges(),n={rootNodeOrdinal:t,essentialEdgesBuffer:s.buffer};e.postMessage({step:2,args:n},[s.buffer])}startInitStep3InSecondThread(e){const{nodes:t,nodeFieldCount:s,nodeSelfSizeOffset:n,nodeCount:i}=this,o=new Uint32Array(i);for(let e=0;e<i;++e)o[e]=t.getValue(e*s+n);const r={nodeSelfSizes:o};e.postMessage({step:3,args:r},[o.buffer])}async installResultsFromSecondThread(e){const t=await e;this.dominatedNodes=t.dominatedNodes,this.dominatorsTree=t.dominatorsTree,this.firstDominatedNodeIndex=t.firstDominatedNodeIndex,this.firstRetainerIndex=t.firstRetainerIndex,this.retainedSizes=t.retainedSizes,this.retainingEdges=t.retainingEdges,this.retainingNodes=t.retainingNodes}buildEdgeIndexes(){const e=this.nodes,t=this.nodeCount,s=this.firstEdgeIndexes,n=this.nodeFieldCount,i=this.edgeFieldsCount,o=this.#J;s[t]=this.containmentEdges.length;for(let r=0,a=0;r<t;++r)s[r]=a,a+=e.getValue(r*n+o)*i}static buildRetainers(e){const{edgeToNodeOrdinals:t,firstEdgeIndexes:s,nodeCount:n,edgeFieldsCount:i,nodeFieldCount:o}=e,r=t.length,a=new Uint32Array(r),d=new Uint32Array(r),h=new Uint32Array(n+1);for(let e=0;e<r;++e){++h[t[e]]}for(let e=0,t=0;e<n;e++){const s=h[e];h[e]=t,a[t]=s,t+=s}h[n]=a.length;let l=s[0];for(let e=0;e<n;++e){const n=l;l=s[e+1];const r=e*o;for(let e=n;e<l;e+=i){const s=h[t[e/i]],n=s+--a[s];a[n]=r,d[n]=e}}return{retainingNodes:a,retainingEdges:d,firstRetainerIndex:h}}allNodes(){return new m(this.rootNode())}rootNode(){return this.createNode(this.rootNodeIndexInternal)}get rootNodeIndex(){return this.rootNodeIndexInternal}get totalSize(){return this.rootNode().retainedSize()+(this.profile.snapshot.extra_native_bytes??0)}createFilter(e){const{minNodeId:t,maxNodeId:s,allocationNodeId:n,filterName:i}=e;let o;if("number"==typeof n){if(o=this.createAllocationStackFilter(n),!o)throw new Error("Unable to create filter");o.key="AllocationNodeId: "+n}else"number"==typeof t&&"number"==typeof s?(o=this.createNodeIdFilter(t,s),o.key="NodeIdRange: "+t+".."+s):void 0!==i&&(o=this.createNamedFilter(i),o.key="NamedFilter: "+i);return o}search(e,t){const n=e.query;const i=e.isRegex?new RegExp(n):s.StringUtilities.createPlainTextSearchRegex(n,"i");const o=e.isRegex||!e.caseSensitive,r=o?function(e,t,s){return i.test(t)&&e.add(s),e}:function(e,t,s){return-1!==t.indexOf(n)&&e.add(s),e},a=this.strings.reduce(r,new Set),d=this.createFilter(t),h=[],l=this.nodes.length,c=this.nodes,u=this.nodeNameOffset,g=this.nodeIdOffset,p=this.nodeFieldCount,f=this.rootNode();for(let e=0;e<l;e+=p){if(f.nodeIndex=e,d&&!d(f))continue;if(0===f.selfSize())continue;const t=f.name();t===f.rawName()?a.has(c.getValue(e+u))&&h.push(c.getValue(e+g)):(o?i.test(t):-1!==t.indexOf(n))&&h.push(c.getValue(e+g))}return h}aggregatesWithFilter(e){const t=this.createFilter(e),s=t?t.key:"allObjects";return this.getAggregatesByClassKey(!1,s,t)}createNodeIdFilter(e,t){return function(s){const n=s.id();return n>e&&n<=t}}createAllocationStackFilter(e){if(!this.#Y)throw new Error("No Allocation Profile provided");const t=this.#Y.traceIds(e);if(!t.length)return;const s={};for(let e=0;e<t.length;e++)s[t[e]]=!0;return function(e){return Boolean(s[e.traceNodeId()])}}createNamedFilter(e){const t=s.TypedArrayUtilities.createBitVector(this.nodeCount),n=e=>{const s=e.nodeIndex/this.nodeFieldCount;return t.getBit(s)},i=e=>{const s=new Int32Array(this.nodeCount);for(let e=0;e<this.nodeCount;++e)s[e]=this.#H;const n=new Uint32Array(this.nodeCount);s[this.rootNode().ordinal()]=0,n[0]=this.rootNode().nodeIndex;this.bfs(n,1,s,e);for(let e=0;e<this.nodeCount;++e)s[e]!==this.#H&&t.setBit(e)},o=()=>{for(let e=0;e<this.nodeCount;++e)this.nodeDistances[e]===this.#H&&t.setBit(e)};switch(e){case"objectsRetainedByDetachedDomNodes":return i(((e,t)=>2!==t.node().detachedness())),o(),e=>!n(e);case"objectsRetainedByConsole":return i(((e,t)=>!(e.isSynthetic()&&t.hasStringName()&&t.name().endsWith(" / DevTools console")))),o(),e=>!n(e);case"duplicatedStrings":{const e=new Map,s=this.createNode(0);for(let n=0;n<this.nodeCount;++n){s.nodeIndex=n*this.nodeFieldCount;const i=s.rawType();if(i===this.nodeStringType||i===this.nodeConsStringType){if(s.isFlatConsString())continue;const n=s.name(),i=e.get(n);void 0===i?e.set(n,s.nodeIndex):(t.setBit(i/this.nodeFieldCount),t.setBit(s.nodeIndex/this.nodeFieldCount))}}return n}}throw new Error("Invalid filter name")}getAggregatesByClassKey(e,t,s){let n;if(t&&this.#L[t])n=this.#L[t];else{const e=this.buildAggregates(s);this.calculateClassesRetainedSize(e,s),n=Object.create(null);for(const[t,s]of e.entries()){n[this.classKeyFromClassKeyInternal(t)]=s}t&&(this.#L[t]=n)}return!e||t&&this.#W[t]||(this.sortAggregateIndexes(n),t&&(this.#W[t]=e)),n}allocationTracesTops(){return this.#Y.serializeTraceTops()}allocationNodeCallers(e){return this.#Y.serializeCallers(e)}allocationStack(e){const t=this.createNode(e).traceNodeId();return t?this.#Y.serializeAllocationStack(t):null}aggregatesForDiff(e){if(this.#B?.interfaceDefinitions===e)return this.#B.aggregates;const t=this.#oe;this.applyInterfaceDefinitions(JSON.parse(e));const s=this.getAggregatesByClassKey(!0,"allObjects");this.applyInterfaceDefinitions(t??[]);const n={},i=this.createNode();for(const e in s){const t=s[e].idxs,o=new Array(t.length),r=new Array(t.length);for(let e=0;e<t.length;e++)i.nodeIndex=t[e],o[e]=i.id(),r[e]=i.selfSize();n[e]={name:i.className(),indexes:t,ids:o,selfSizes:r}}return this.#B={interfaceDefinitions:e,aggregates:n},n}isUserRoot(e){return!0}calculateShallowSizes(){}calculateDistances(t,s){const n=this.nodeCount;if(t){const e=s;s=(t,s)=>!this.#ee.has(s.nodeIndex())&&(!e||e(t,s)),void 0===this.#se&&(this.#se=new Int32Array(n))}const i=t?this.#se:this.nodeDistances,o=this.#H;for(let e=0;e<n;++e)i[e]=o;const r=new Uint32Array(this.nodeCount);let a=0;for(let e=this.rootNode().edges();e.hasNext();e.next()){const t=e.edge.node();this.isUserRoot(t)&&(i[t.ordinal()]=1,r[a++]=t.nodeIndex)}this.bfs(r,a,i,s),i[this.rootNode().ordinal()]=a>0?e.HeapSnapshotModel.baseSystemDistance:0,r[0]=this.rootNode().nodeIndex,a=1,this.bfs(r,a,i,s)}bfs(e,t,s,n){const i=this.edgeFieldsCount,o=this.nodeFieldCount,r=this.containmentEdges,a=this.firstEdgeIndexes,d=this.edgeToNodeOffset,h=this.edgeTypeOffset,l=this.nodeCount,c=this.edgeWeakType,u=this.#H;let g=0;const p=this.createEdge(0),f=this.createNode(0);for(;g<t;){const l=e[g++],I=l/o,m=s[I]+1,x=a[I],y=a[I+1];f.nodeIndex=l;for(let a=x;a<y;a+=i){if(r.getValue(a+h)===c)continue;const i=r.getValue(a+d),l=i/o;s[l]===u&&(p.edgeIndex=a,n&&!n(f,p)||(s[l]=m,e[t++]=i))}}if(t>l)throw new Error("BFS failed. Nodes to visit ("+t+") is more than nodes count ("+l+")")}buildAggregates(e){const t=new Map,s=this.nodes,n=s.length,i=this.nodeFieldCount,o=this.nodeSelfSizeOffset,r=this.rootNode(),a=this.nodeDistances;for(let d=0;d<n;d+=i){if(r.nodeIndex=d,e&&!e(r))continue;const n=s.getValue(d+o);if(!n)continue;const h=r.classKeyInternal(),l=a[d/i];let c=t.get(h);c?(c.distance=Math.min(c.distance,l),++c.count,c.self+=n,c.idxs.push(d)):(c={count:1,distance:l,self:n,maxRet:0,name:r.className(),idxs:[d]},t.set(h,c))}for(const e of t.values())e.idxs=e.idxs.slice();return t}calculateClassesRetainedSize(e,t){const s=this.rootNodeIndexInternal,n=this.createNode(s),i=[s],o=[-1],r=[],a=new Map,d=this.nodeFieldCount,h=this.dominatedNodes,l=this.firstDominatedNodeIndex;for(;i.length;){const s=i.pop();n.nodeIndex=s;let c=n.classKeyInternal();const u=Boolean(a.get(c)),g=s/d,p=l[g],f=l[g+1];u||t&&!t(n)||!n.selfSize()||(e.get(c).maxRet+=n.retainedSize(),p!==f&&(a.set(c,!0),o.push(i.length),r.push(c)));for(let e=p;e<f;e++)i.push(h[e]);const I=i.length;for(;o[o.length-1]===I;)o.pop(),c=r.pop(),a.set(c,!1)}}sortAggregateIndexes(e){const t=this.createNode(),s=this.createNode();for(const n in e)e[n].idxs.sort(((e,n)=>(t.nodeIndex=e,s.nodeIndex=n,t.id()<s.id()?-1:1)))}tryParseWeakMapEdgeName(e){if(this.#ne.getBit(e))return;const t=this.strings[e].match(/^\d+(?<duplicatedPart> \/ part of key \(.*? @\d+\) -> value \(.*? @\d+\) pair in WeakMap \(table @(?<tableId>\d+)\))$/);if(t)return t.groups;this.#ne.setBit(e)}computeIsEssentialEdge(e,t,s){const n=this.containmentEdges.getValue(t+this.edgeTypeOffset);if(n===this.edgeInternalType){const s=this.containmentEdges.getValue(t+this.edgeNameOffset),n=this.tryParseWeakMapEdgeName(s);if(n){if(this.nodes.getValue(e+this.nodeIdOffset)===parseInt(n.tableId,10))return!1}}if(n===this.edgeWeakType)return!1;const i=this.containmentEdges.getValue(t+this.edgeToNodeOffset);if(e===i)return!1;if(e!==this.rootNodeIndex){if(n===this.edgeShortcutType)return!1;const t=s?s.map:null,o=s?s.flag:0,r=e/this.nodeFieldCount,a=i/this.nodeFieldCount,d=!t||t[r]&o;if((!t||t[a]&o)&&!d)return!1}return!0}initEssentialEdges(){const e=s.TypedArrayUtilities.createBitVector(this.#X),{nodes:t,nodeFieldCount:n,edgeFieldsCount:i}=this,o=this.userObjectsMapAndFlag(),r=t.length,a=this.createNode(0);for(let t=0;t<r;t+=n){a.nodeIndex=t;const s=a.edgeIndexesEnd();for(let n=a.edgeIndexesStart();n<s;n+=i)this.computeIsEssentialEdge(t,n,o)&&e.setBit(n/i)}return e}static hasOnlyWeakRetainers(e,t){const{retainingEdges:s,edgeFieldsCount:n,firstRetainerIndex:i,essentialEdges:o}=e,r=i[t],a=i[t+1];for(let e=r;e<a;++e){const t=s[e];if(o.getBit(t/n))return!1}return!0}static async calculateDominatorsAndRetainedSizes(e){const{nodeCount:t,firstEdgeIndexes:s,edgeFieldsCount:n,nodeFieldCount:i,firstRetainerIndex:o,retainingEdges:r,retainingNodes:a,edgeToNodeOrdinals:d,rootNodeOrdinal:h,essentialEdges:l,nodeSelfSizesPromise:c,port:u}=e;function g(e){return l.getBit(e/n)}const p=t+1,f=new Uint32Array(p),I=new Uint32Array(p),m=new Uint32Array(p),x=new Uint32Array(p),y=new Uint32Array(p),N=new Array(p);let T=0;const C=new Uint32Array(p),O=e=>{const t=e-1;C[t]=s[t];let i=e;for(;0!==i;){0===y[i]&&(y[i]=++T,m[T]=x[i]=i);let e=f[i];const t=i-1;for(;C[t]<s[t+1];C[t]+=n){const o=C[t];if(!g(o))continue;const r=d[o/n],a=r+1;if(0===y[a]){f[a]=i,C[r]=s[r],e=a;break}}i=e}},b=new Uint32Array(p),F=e=>0===I[e]?e:((e=>{let t=0;for(;0!==I[I[e]];)b[++t]=e,e=I[e];for(;t>0;){const e=b[t--];y[x[I[e]]]<y[x[e]]&&(x[e]=x[I[e]]),I[e]=I[I[e]]}})(e),x[e]),A=(e,t)=>{I[t]=e},v=h+1;T=0;const D=new Uint32Array(p);if(O(v),T<t){const s=[`Heap snapshot: ${t-T} nodes are unreachable from the root.`];S(s,"The following nodes have only weak retainers:");for(let n=1;n<=t;n++){const t=n-1;0===y[n]&&E.hasOnlyWeakRetainers(e,t)&&(S(s,t*i),f[n]=v,O(n))}w(s,u)}if(T<t){const e=[`Heap snapshot: Still found ${t-T} unreachable nodes:`];for(let s=1;s<=t;s++)if(0===y[s]){S(e,(s-1)*i),f[s]=v,y[s]=++T,m[T]=x[s]=s}w(e,u)}for(let e=T;e>=2;--e){const t=m[e],s=t-1;let n=!0;for(let e=o[s];e<o[s+1];e++){if(!g(r[e]))continue;n=!1;const s=F(a[e]/i+1);y[s]<y[t]&&(y[t]=y[s])}if(n&&(y[t]=y[v]),void 0===N[m[y[t]]]&&(N[m[y[t]]]=new Set),N[m[y[t]]].add(t),A(f[t],t),void 0!==N[f[t]]){for(const e of N[f[t]]){const s=F(e);D[e]=y[s]<y[e]?s:f[t]}N[f[t]].clear()}}D[0]=D[v]=v;for(let e=2;e<=T;e++){const t=m[e];D[t]!==m[y[t]]&&(D[t]=D[D[t]])}const z=new Uint32Array(t),R=new Float64Array(t),_=await c;for(let e=0;e<t;e++)z[e]=D[e+1]-1,R[e]=_[e];for(let e=T;e>1;e--){const t=m[e]-1;R[z[t]]+=R[t]}return{dominatorsTree:z,retainedSizes:R}}static buildDominatedNodes(e){const{nodeCount:t,dominatorsTree:s,rootNodeOrdinal:n,nodeFieldCount:i}=e,o=new Uint32Array(t+1),r=new Uint32Array(t-1);let a=0,d=t;if(n===a)a=1;else{if(n!==d-1)throw new Error("Root node is expected to be either first or last");d-=1}for(let e=a;e<d;++e)++o[s[e]];let h=0;for(let e=0,s=t;e<s;++e){const t=r[h]=o[e];o[e]=h,h+=t}o[t]=r.length;for(let e=a;e<d;++e){let t=o[s[e]];t+=--r[t],r[t]=e*i}return{firstDominatedNodeIndex:o,dominatedNodes:r}}calculateObjectNames(){const{nodes:e,nodeCount:t,nodeNameOffset:s,nodeNativeType:n,nodeHiddenType:i,nodeObjectType:o,nodeCodeType:r,nodeClosureType:a,nodeRegExpType:d}=this;-1===this.nodeDetachednessAndClassIndexOffset&&(this.detachednessAndClassIndexArray=new Uint32Array(t));const h=new Map,l=e=>{let t=h.get(e);return void 0===t&&(t=this.addString(e),h.set(e,t)),t},c=l("(system)"),u=l("(compiled code)"),g=l("Function"),p=l("RegExp");function f(t){switch(t.rawType()){case i:return c;case o:case n:{let n=t.rawName();if(n.startsWith("<")){const e=n.indexOf(" ");return-1!==e&&(n=n.substring(0,e)+">"),l(n)}if(n.startsWith("Detached <")){const e=n.indexOf(" ",10);return-1!==e&&(n=n.substring(0,e)+">"),l(n)}return e.getValue(t.nodeIndex+s)}case r:return u;case a:return g;case d:return p;default:return l("("+t.type()+")")}}const I=this.createNode(0);for(let e=0;e<t;++e)I.setClassIndex(f(I)),I.nodeIndex=I.nextNodeIndex()}interfaceDefinitions(){return JSON.stringify(this.#oe??[])}isPlainJSObject(e){return e.rawType()===this.nodeObjectType&&"Object"===e.rawName()}inferInterfaceDefinitions(){const{edgePropertyType:e}=this,t=new Map;let s=0;for(let n=this.allNodes();n.hasNext();n.next()){const i=n.item();if(!this.isPlainJSObject(i))continue;++s;let o="{";const r=[];for(let t=i.edges();t.hasNext();t.next()){const s=t.item(),n=s.name();if(s.rawType()!==e||"__proto__"===n)continue;const i=D.formatPropertyName(n);if(o.length>1&&o.length+i.length>120)break;1!==o.length&&(o+=", "),o+=i,r.push(n)}if(0===r.length)continue;o+="}";const a=t.get(o);a?++a.count:t.set(o,{name:o,properties:r,count:1})}const n=Array.from(t.values());n.sort(((e,t)=>t.count-e.count));const i=[],o=Math.max(2,s/1e3);for(let e=0;e<n.length;++e){const t=n[e];if(t.count<o)break;i.push(t)}return i}applyInterfaceDefinitions(e){const{edgePropertyType:t}=this;function s(e,t){return!t||e.propertyCount>t.propertyCount?e:t.propertyCount>e.propertyCount?t:e.index<=t.index?e:t}this.#oe=e,this.#L={},this.#W={};const n={next:new Map,matchInfo:null,greatestNext:null};for(let t=0;t<e.length;++t){const s=e[t],i=s.properties.toSorted();let o=n;for(const e of i){const t=o.next;let s=t.get(e);s||(s={next:new Map,matchInfo:null,greatestNext:null},t.set(e,s),(null===o.greatestNext||o.greatestNext<e)&&(o.greatestNext=e)),o=s}o.matchInfo||(o.matchInfo={name:s.name,propertyCount:i.length,index:t})}const i={name:"Object",propertyCount:0,index:1/0};for(let e=this.allNodes();e.hasNext();e.next()){const o=e.item();if(!this.isPlainJSObject(o))continue;const r=[];for(let e=o.edges();e.hasNext();e.next()){const s=e.item();s.rawType()===t&&r.push(s.name())}r.sort();const a=new Set;a.add(n);let d=s(i,n.matchInfo);for(const e of r)for(const t of Array.from(a.keys())){(null===t.greatestNext||e>=t.greatestNext)&&a.delete(t);const n=t.next.get(e);n&&(a.add(n),d=s(d,n.matchInfo))}let h=d===i?o.rawNameIndex():this.#ie.get(d.name);void 0===h&&(h=this.addString(d.name),this.#ie.set(d.name,h)),o.setClassIndex(h)}}iterateFilteredChildren(e,t,s){const n=this.firstEdgeIndexes[e],i=this.firstEdgeIndexes[e+1];for(let e=n;e<i;e+=this.edgeFieldsCount){const n=this.containmentEdges.getValue(e+this.edgeToNodeOffset)/this.nodeFieldCount;t(this.containmentEdges.getValue(e+this.edgeTypeOffset))&&s(n)}}addString(e){return this.strings.push(e),this.strings.length-1}propagateDOMState(){if(-1===this.nodeDetachednessAndClassIndexOffset)return;console.time("propagateDOMState");const e=new Uint8Array(this.nodeCount),t=[],s=[],n=new Map,i=this.createNode(0),o=function(o,r,a){if(e[r])return;const d=r*o.nodeFieldCount;o.nodes.getValue(d+o.nodeTypeOffset)===o.nodeNativeType?(i.nodeIndex=d,i.setDetachedness(a),1===a?t.push(r):2===a&&(!function(e,t){const s=e.nodes.getValue(t+e.nodeNameOffset);let i=n.get(s);void 0===i&&(i=e.addString("Detached "+e.strings[s]),n.set(s,i)),e.nodes.setValue(t+e.nodeNameOffset,i)}(o,d),s.push(r)),e[r]=1):e[r]=1},r=function(e,t,s){e.iterateFilteredChildren(t,(t=>![e.edgeHiddenType,e.edgeInvisibleType,e.edgeWeakType].includes(t)),(t=>o(e,t,s)))};for(let e=0;e<this.nodeCount;++e){i.nodeIndex=e*this.nodeFieldCount;const t=i.detachedness();0!==t&&o(this,e,t)}for(;0!==t.length;){r(this,t.pop(),1)}for(;0!==s.length;){const e=s.pop();i.nodeIndex=e*this.nodeFieldCount;1!==i.detachedness()&&r(this,e,2)}console.timeEnd("propagateDOMState")}buildSamples(){const t=this.#V;if(!t?.length)return;const n=t.length/2,i=new Array(n),o=new Array(n),r=new Array(n),a=this.#k.sample_fields.indexOf("timestamp_us"),d=this.#k.sample_fields.indexOf("last_assigned_id");for(let e=0;e<n;e++)i[e]=0,o[e]=t[2*e+a]/1e3,r[e]=t[2*e+d];const h=this.nodes.length,l=this.nodeFieldCount,c=this.rootNode();for(let e=0;e<h;e+=l){c.nodeIndex=e;const t=c.id();if(t%2==0)continue;const o=s.ArrayUtilities.lowerBound(r,t,s.ArrayUtilities.DEFAULT_COMPARATOR);o!==n&&(i[o]+=c.selfSize())}this.#j=new e.HeapSnapshotModel.Samples(o,r,i)}buildLocationMap(){const t=new Map,s=this.#M;for(let n=0;n<s.length;n+=this.#G){const i=s[n+this.#K],o=s[n+this.#$],r=s[n+this.#Q],a=s[n+this.#q];t.set(i,new e.HeapSnapshotModel.Location(o,r,a))}this.#Z=t}getLocation(e){return this.#Z.get(e)||null}getSamples(){return this.#j}calculateFlags(){throw new Error("Not implemented")}calculateStatistics(){throw new Error("Not implemented")}userObjectsMapAndFlag(){throw new Error("Not implemented")}calculateSnapshotDiff(t,s){let n=this.#U[t];if(n)return n;n={};const i=this.getAggregatesByClassKey(!0,"allObjects");for(const e in s){const t=s[e],o=this.calculateDiffForClass(t,i[e]);o&&(n[e]=o)}const o=new e.HeapSnapshotModel.AggregateForDiff;for(const e in i){if(e in s)continue;const t=this.calculateDiffForClass(o,i[e]);t&&(n[e]=t)}return this.#U[t]=n,n}calculateDiffForClass(t,s){const n=t.ids,i=t.indexes,o=t.selfSizes,r=s?s.idxs:[];let a=0,d=0;const h=n.length,l=r.length,c=new e.HeapSnapshotModel.Diff(s?s.name:t.name),u=this.createNode(r[d]);for(;a<h&&d<l;){const e=n[a];e<u.id()?(c.deletedIndexes.push(i[a]),c.removedCount++,c.removedSize+=o[a],++a):e>u.id()?(c.addedIndexes.push(r[d]),c.addedCount++,c.addedSize+=u.selfSize(),u.nodeIndex=r[++d]):(++a,u.nodeIndex=r[++d])}for(;a<h;)c.deletedIndexes.push(i[a]),c.removedCount++,c.removedSize+=o[a],++a;for(;d<l;)c.addedIndexes.push(r[d]),c.addedCount++,c.addedSize+=u.selfSize(),u.nodeIndex=r[++d];return c.countDelta=c.addedCount-c.removedCount,c.sizeDelta=c.addedSize-c.removedSize,c.addedCount||c.removedCount?c:null}nodeForSnapshotObjectId(e){for(let t=this.allNodes();t.hasNext();t.next())if(t.node.id()===e)return t.node;return null}classKeyFromClassKeyInternal(e){return"number"==typeof e?","+this.strings[e]:e}nodeClassKey(e){const t=this.nodeForSnapshotObjectId(e);return t?this.classKeyFromClassKeyInternal(t.classKeyInternal()):null}idsOfObjectsWithName(e){const t=[];for(let s=this.allNodes();s.hasNext();s.next())s.item().name()===e&&t.push(s.item().id());return t}createEdgesProvider(e){const t=this.createNode(e),s=this.containmentEdgesFilter(),n=new c(this);return new F(this,s,t.edges(),n)}createEdgesProviderForTest(e,t){const s=this.createNode(e),n=new c(this);return new F(this,t,s.edges(),n)}retainingEdgesFilter(){return null}containmentEdgesFilter(){return null}createRetainingEdgesProvider(e){const t=this.createNode(e),s=this.retainingEdgesFilter(),n=new u(this);return new F(this,s,t.retainers(),n)}createAddedNodesProvider(e,t){const s=this.#U[e][t];return new A(this,s.addedIndexes)}createDeletedNodesProvider(e){return new A(this,e)}createNodesProviderForClass(e,t){return new A(this,this.aggregatesWithFilter(t)[e].idxs)}maxJsNodeId(){const e=this.nodeFieldCount,t=this.nodes,s=t.length;let n=0;for(let i=this.nodeIdOffset;i<s;i+=e){const e=t.getValue(i);e%2!=0&&(n<e&&(n=e))}return n}updateStaticData(){return new e.HeapSnapshotModel.StaticData(this.nodeCount,this.rootNodeIndexInternal,this.totalSize,this.maxJsNodeId())}ignoreNodeInRetainersView(e){this.#ee.add(e),this.calculateDistances(!0),this.#re()}unignoreNodeInRetainersView(e){this.#ee.delete(e),0===this.#ee.size?this.#se=void 0:this.calculateDistances(!0),this.#re()}unignoreAllNodesInRetainersView(){this.#ee.clear(),this.#se=void 0,this.#re()}#re(){const e=this.#se;if(this.#te.clear(),void 0===e)return;const t=new s.MapUtilities.Multimap,n=this.#H,{nodeCount:i,nodeFieldCount:o}=this,r=this.createNode(0);for(let s=0;s<i;++s)if(e[s]===n){r.nodeIndex=s*o;for(let e=r.edges();e.hasNext();e.next()){const s=e.edge;if(!s.isInternal())continue;const n=this.tryParseWeakMapEdgeName(s.nameIndex());n&&t.set(s.nodeIndex(),n.duplicatedPart)}}for(const e of t.keys()){r.nodeIndex=e;for(let s=r.retainers();s.hasNext();s.next()){const n=s.item();if(!n.isInternal())continue;const i=this.tryParseWeakMapEdgeName(n.nameIndex());if(i&&t.hasValue(e,i.duplicatedPart)){const e=this.retainingEdges[n.itemIndex()];this.#te.add(e)}}}}areNodesIgnoredInRetainersView(){return this.#ee.size>0}getDistanceForRetainersView(t){const s=t/this.nodeFieldCount,n=(this.#se??this.nodeDistances)[s];return n===this.#H?Math.max(0,this.nodeDistances[s])+e.HeapSnapshotModel.baseUnreachableDistance:n}isNodeIgnoredInRetainersView(e){return this.#ee.has(e)}isEdgeIgnoredInRetainersView(e){return this.#te.has(e)}}class b{iterator;#ae;#de;iterationOrder;currentComparator;#he;#le;constructor(e,t){this.iterator=e,this.#ae=t,this.#de=!e.hasNext(),this.iterationOrder=null,this.currentComparator=null,this.#he=0,this.#le=0}createIterationOrder(){if(!this.iterationOrder){this.iterationOrder=[];for(let e=this.iterator;e.hasNext();e.next())this.iterationOrder.push(e.item().itemIndex())}}isEmpty(){return this.#de}serializeItemsRange(t,s){if(this.createIterationOrder(),t>s)throw new Error("Start position > end position: "+t+" > "+s);if(!this.iterationOrder)throw new Error("Iteration order undefined");if(s>this.iterationOrder.length&&(s=this.iterationOrder.length),this.#he<s&&t<this.iterationOrder.length-this.#le&&this.currentComparator){const e=this.currentComparator;this.sort(e,this.#he,this.iterationOrder.length-1-this.#le,t,s-1),t<=this.#he&&(this.#he=s),s>=this.iterationOrder.length-this.#le&&(this.#le=this.iterationOrder.length-t)}let n=t;const i=s-t,o=new Array(i);for(let e=0;e<i;++e){const t=this.iterationOrder[n++],s=this.#ae.itemForIndex(t);o[e]=s.serialize()}return new e.HeapSnapshotModel.ItemsRange(t,s,this.iterationOrder.length,o)}sortAndRewind(e){this.currentComparator=e,this.#he=0,this.#le=0}}class F extends b{snapshot;constructor(e,t,s,n){super(t?new y(s,t):s,n),this.snapshot=e}sort(e,t,n,i,o){const r=e.fieldName1,a=e.fieldName2,d=e.ascending1,h=e.ascending2,l=this.iterator.item().clone(),c=l.clone(),u=this.snapshot.createNode(),g=this.snapshot.createNode();function p(e,t,s,n){l.edgeIndex=s,c.edgeIndex=n;let i=0;if("!edgeName"===e){if("__proto__"===c.name())return-1;if("__proto__"===l.name())return 1;i=l.hasStringName()===c.hasStringName()?l.name()<c.name()?-1:l.name()>c.name()?1:0:l.hasStringName()?-1:1}else i=l.getValueForSorting(e)-c.getValueForSorting(e);return t?i:-i}function f(e,t,s,n){l.edgeIndex=s,u.nodeIndex=l.nodeIndex();const i=u[e]();c.edgeIndex=n,g.nodeIndex=c.nodeIndex();const o=g[e](),r=i<o?-1:i>o?1:0;return t?r:-r}if(!this.iterationOrder)throw new Error("Iteration order not defined");function I(e){return e.startsWith("!edge")}I(r)?I(a)?s.ArrayUtilities.sortRange(this.iterationOrder,(function(e,t){let s=p(r,d,e,t);return 0===s&&(s=p(a,h,e,t)),0===s?e-t:s}),t,n,i,o):s.ArrayUtilities.sortRange(this.iterationOrder,(function(e,t){let s=p(r,d,e,t);return 0===s&&(s=f(a,h,e,t)),0===s?e-t:s}),t,n,i,o):I(a)?s.ArrayUtilities.sortRange(this.iterationOrder,(function(e,t){let s=f(r,d,e,t);return 0===s&&(s=p(a,h,e,t)),0===s?e-t:s}),t,n,i,o):s.ArrayUtilities.sortRange(this.iterationOrder,(function(e,t){let s=f(r,d,e,t);return 0===s&&(s=f(a,h,e,t)),0===s?e-t:s}),t,n,i,o)}}class A extends b{snapshot;constructor(e,t){const s=new l(e);super(new x(s,t),s),this.snapshot=e}nodePosition(e){this.createIterationOrder();const t=this.snapshot.createNode();let s=0;if(!this.iterationOrder)throw new Error("Iteration order not defined");for(;s<this.iterationOrder.length&&(t.nodeIndex=this.iterationOrder[s],t.id()!==e);s++);if(s===this.iterationOrder.length)return-1;const n=this.iterationOrder[s];let i=0;const o=this.currentComparator,r=this.buildCompareFunction(o);for(let e=0;e<this.iterationOrder.length;e++)r(this.iterationOrder[e],n)<0&&++i;return i}buildCompareFunction(e){const t=this.snapshot.createNode(),s=this.snapshot.createNode(),n=t[e.fieldName1],i=t[e.fieldName2],o=e.ascending1?1:-1,r=e.ascending2?1:-1;function a(e,n){const i=e.call(t),o=e.call(s);return i<o?-n:i>o?n:0}return function(e,d){t.nodeIndex=e,s.nodeIndex=d;let h=a(n,o);return 0===h&&(h=a(i,r)),h||e-d}}sort(e,t,n,i,o){if(!this.iterationOrder)throw new Error("Iteration order not defined");s.ArrayUtilities.sortRange(this.iterationOrder,this.buildCompareFunction(e),t,n,i,o)}}class v extends E{nodeFlags;flags;#ce;constructor(e,t){super(e,t),this.nodeFlags={canBeQueried:1,detachedDOMTreeNode:2,pageObject:4}}createNode(e){return new D(this,void 0===e?-1:e)}createEdge(e){return new z(this,e)}createRetainingEdge(e){return new R(this,e)}containmentEdgesFilter(){return e=>!e.isInvisible()}retainingEdgesFilter(){const e=this.containmentEdgesFilter();return function(t){return e(t)&&!t.node().isRoot()&&!t.isWeak()}}calculateFlags(){this.flags=new Uint8Array(this.nodeCount),this.markDetachedDOMTreeNodes(),this.markQueriableHeapObjects(),this.markPageOwnedNodes()}#ue(){for(let e=this.rootNode().edges();e.hasNext();e.next())if(this.isUserRoot(e.edge.node()))return!0;return!1}calculateShallowSizes(){if(!this.#ue())return;const{nodeCount:e,nodes:t,nodeFieldCount:s,nodeSelfSizeOffset:n}=this,i=4294967295,o=4294967294;if(e>=o)throw new Error("Too many nodes for calculateShallowSizes");const r=new Uint32Array(e),a=[],d=this.createNode(0);for(let t=0;t<e;++t)d.isHidden()||d.isArray()||d.isNative()&&"system / ExternalStringData"===d.rawName()?r[t]=i:(r[t]=t,a.push(t)),d.nodeIndex=d.nextNodeIndex();for(;0!==a.length;){const e=a.pop(),t=r[e];d.nodeIndex=e*s;for(let e=d.edges();e.hasNext();e.next()){const n=e.edge;if(n.isWeak())continue;const d=n.nodeIndex()/s;switch(r[d]){case i:r[d]=t,a.push(d);break;case d:case t:case o:break;default:r[d]=o,a.push(d)}}}for(let a=0;a<e;++a){const e=r[a];switch(e){case i:case o:case a:break;default:{const i=a*s,o=e*s;if(d.nodeIndex=o,d.isSynthetic()||d.isRoot())break;const r=t.getValue(i+n);t.setValue(i+n,0),t.setValue(o+n,t.getValue(o+n)+r);break}}}}calculateDistances(e){const t=new Set,s=this;super.calculateDistances(e,(function(e,n){if(e.isHidden()&&"sloppy_function_map"===n.name()&&"system / NativeContext"===e.rawName())return!1;if(e.isArray()&&"(map descriptors)"===e.rawName()){const e=parseInt(n.name(),10);return e<2||e%3!=1}if(n.isInternal()){const e=s.tryParseWeakMapEdgeName(n.nameIndex());if(e&&!t.delete(e.duplicatedPart))return t.add(e.duplicatedPart),!1}return!0}))}isUserRoot(e){return e.isUserRoot()||e.isDocumentDOMTreesRoot()}userObjectsMapAndFlag(){return{map:this.flags,flag:this.nodeFlags.pageObject}}flagsOfNode(e){return this.flags[e.nodeIndex/this.nodeFieldCount]}markDetachedDOMTreeNodes(){const e=this.nodes,t=e.length,s=this.nodeFieldCount,n=this.nodeNativeType,i=this.nodeTypeOffset,o=this.nodeFlags.detachedDOMTreeNode,r=this.rootNode();for(let a=0,d=0;a<t;a+=s,d++){e.getValue(a+i)===n&&(r.nodeIndex=a,r.name().startsWith("Detached ")&&(this.flags[d]|=o))}}markQueriableHeapObjects(){const e=this.nodeFlags.canBeQueried,t=this.edgeHiddenType,s=this.edgeInternalType,n=this.edgeInvisibleType,i=this.edgeWeakType,o=this.edgeToNodeOffset,r=this.edgeTypeOffset,a=this.edgeFieldsCount,d=this.containmentEdges,h=this.nodeFieldCount,l=this.firstEdgeIndexes,c=this.flags,u=[];for(let e=this.rootNode().edges();e.hasNext();e.next())e.edge.node().isUserRoot()&&u.push(e.edge.node().nodeIndex/h);for(;u.length;){const g=u.pop();if(c[g]&e)continue;c[g]|=e;const p=l[g],f=l[g+1];for(let l=p;l<f;l+=a){const a=d.getValue(l+o)/h;if(c[a]&e)continue;const g=d.getValue(l+r);g!==t&&g!==n&&g!==s&&g!==i&&u.push(a)}}}markPageOwnedNodes(){const e=this.edgeShortcutType,t=this.edgeElementType,s=this.edgeToNodeOffset,n=this.edgeTypeOffset,i=this.edgeFieldsCount,o=this.edgeWeakType,r=this.firstEdgeIndexes,a=this.containmentEdges,d=this.nodeFieldCount,h=this.nodeCount,l=this.flags,c=this.nodeFlags.pageObject,u=new Uint32Array(h);let g=0;const p=this.rootNodeIndexInternal/d,f=this.rootNode();for(let o=r[p],h=r[p+1];o<h;o+=i){const i=a.getValue(o+n),r=a.getValue(o+s);if(i===t){if(f.nodeIndex=r,!f.isDocumentDOMTreesRoot())continue}else if(i!==e)continue;const h=r/d;u[g++]=h,l[h]|=c}for(;g;){const e=u[--g],t=r[e],h=r[e+1];for(let e=t;e<h;e+=i){const t=a.getValue(e+s)/d;if(l[t]&c)continue;a.getValue(e+n)!==o&&(u[g++]=t,l[t]|=c)}}}calculateStatistics(){const e=this.nodeFieldCount,t=this.nodes,s=t.length,n=this.nodeTypeOffset,i=this.nodeSelfSizeOffset,o=this.nodeNativeType,r=this.nodeCodeType,a=this.nodeConsStringType,d=this.nodeSlicedStringType,h=this.nodeHiddenType,l=this.nodeStringType;let c=this.profile.snapshot.extra_native_bytes??0,u=0,g=0,p=0,f=0,I=0;const m=this.rootNode();for(let x=0;x<s;x+=e){const e=t.getValue(x+i),s=t.getValue(x+n);s!==h?(m.nodeIndex=x,s===o?(c+=e,"system / JSArrayBufferData"===m.rawName()&&(u+=e)):s===r?g+=e:s===a||s===d||s===l?p+=e:"Array"===m.rawName()&&(f+=this.calculateArraySize(m))):I+=e}this.#ce={total:this.totalSize,native:{total:c,typedArrays:u},v8heap:{total:this.totalSize-c,code:g,jsArrays:f,strings:p,system:I}}}calculateArraySize(e){let t=e.selfSize();const s=e.edgeIndexesStart(),n=e.edgeIndexesEnd(),i=this.containmentEdges,o=this.strings,r=this.edgeToNodeOffset,a=this.edgeTypeOffset,d=this.edgeNameOffset,h=this.edgeFieldsCount,l=this.edgeInternalType;for(let c=s;c<n;c+=h){if(i.getValue(c+a)!==l)continue;if("elements"!==o[i.getValue(c+d)])continue;const s=i.getValue(c+r);e.nodeIndex=s,1===e.retainersCount()&&(t+=e.selfSize());break}return t}getStatistics(){return this.#ce}}class D extends I{constructor(e,t){super(e,t)}canBeQueried(){const e=this.snapshot,t=e.flagsOfNode(this);return Boolean(t&e.nodeFlags.canBeQueried)}name(){const e=this.snapshot;return this.rawType()===e.nodeConsStringType?this.consStringName():this.rawType()===e.nodeObjectType&&"Object"===this.rawName()?this.#ge():this.rawName()}consStringName(){const e=this.snapshot,t=e.nodeConsStringType,s=e.edgeInternalType,n=e.edgeFieldsCount,i=e.edgeToNodeOffset,o=e.edgeTypeOffset,r=e.edgeNameOffset,a=e.strings,d=e.containmentEdges,h=e.firstEdgeIndexes,l=e.nodeFieldCount,c=e.nodeTypeOffset,u=e.nodeNameOffset,g=e.nodes,p=[];p.push(this.nodeIndex);let f="";for(;p.length&&f.length<1024;){const e=p.pop();if(g.getValue(e+c)!==t){f+=a[g.getValue(e+u)];continue}const I=e/l,m=h[I],x=h[I+1];let y=0,N=0;for(let e=m;e<x&&(!y||!N);e+=n){if(d.getValue(e+o)===s){const t=a[d.getValue(e+r)];"first"===t?y=d.getValue(e+i):"second"===t&&(N=d.getValue(e+i))}}p.push(N),p.push(y)}return f}#ge(){const e=this.snapshot,{edgeFieldsCount:t,edgePropertyType:s}=e,n=e.createEdge(0);let i="{",o="}",r=this.edgeIndexesStart(),a=this.edgeIndexesEnd()-t,d=!1;for(;r<=a;){if(n.edgeIndex=d?a:r,n.rawType()!==s||"__proto__"===n.name()){d?a-=t:r+=t;continue}const e=D.formatPropertyName(n.name());if(i.length>1&&i.length+o.length+e.length>100)break;d?(a-=t,o.length>1&&(o=", "+o),o=e+o):(r+=t,i.length>1&&(i+=", "),i+=e),d=!d}return r<=a&&(i+=", ..."),o.length>1&&(i+=", "),i+o}static formatPropertyName(e){return/[,'"{}]/.test(e)&&(e=(e=JSON.stringify({[e]:0})).substring(1,e.length-3)),e}id(){const e=this.snapshot;return e.nodes.getValue(this.nodeIndex+e.nodeIdOffset)}isHidden(){return this.rawType()===this.snapshot.nodeHiddenType}isArray(){return this.rawType()===this.snapshot.nodeArrayType}isSynthetic(){return this.rawType()===this.snapshot.nodeSyntheticType}isNative(){return this.rawType()===this.snapshot.nodeNativeType}isUserRoot(){return!this.isSynthetic()}isDocumentDOMTreesRoot(){return this.isSynthetic()&&"(Document DOM trees)"===this.rawName()}serialize(){const e=super.serialize(),t=this.snapshot,s=t.flagsOfNode(this);return s&t.nodeFlags.canBeQueried&&(e.canBeQueried=!0),s&t.nodeFlags.detachedDOMTreeNode&&(e.detachedDOMTreeNode=!0),e}}class z extends h{constructor(e,t){super(e,t)}clone(){const e=this.snapshot;return new z(e,this.edgeIndex)}hasStringName(){return this.isShortcut()?isNaN(parseInt(this.nameInternal(),10)):this.hasStringNameInternal()}isElement(){return this.rawType()===this.snapshot.edgeElementType}isHidden(){return this.rawType()===this.snapshot.edgeHiddenType}isWeak(){return this.rawType()===this.snapshot.edgeWeakType}isInternal(){return this.rawType()===this.snapshot.edgeInternalType}isInvisible(){return this.rawType()===this.snapshot.edgeInvisibleType}isShortcut(){return this.rawType()===this.snapshot.edgeShortcutType}name(){const e=this.nameInternal();if(!this.isShortcut())return String(e);const t=parseInt(e,10);return String(isNaN(t)?e:t)}toString(){const e=this.name();switch(this.type()){case"context":return"->"+e;case"element":return"["+e+"]";case"weak":return"[["+e+"]]";case"property":return-1===e.indexOf(" ")?"."+e:'["'+e+'"]';case"shortcut":return"string"==typeof e?-1===e.indexOf(" ")?"."+e:'["'+e+'"]':"["+e+"]";case"internal":case"hidden":case"invisible":return"{"+e+"}"}return"?"+e+"?"}hasStringNameInternal(){const e=this.rawType(),t=this.snapshot;return e!==t.edgeElementType&&e!==t.edgeHiddenType}nameInternal(){return this.hasStringNameInternal()?this.snapshot.strings[this.nameOrIndex()]:this.nameOrIndex()}nameOrIndex(){return this.edges.getValue(this.edgeIndex+this.snapshot.edgeNameOffset)}rawType(){return this.edges.getValue(this.edgeIndex+this.snapshot.edgeTypeOffset)}nameIndex(){if(!this.hasStringNameInternal())throw new Error("Edge does not have string name");return this.nameOrIndex()}}class R extends p{constructor(e,t){super(e,t)}clone(){const e=this.snapshot;return new R(e,this.retainerIndex())}isHidden(){return this.edge().isHidden()}isInvisible(){return this.edge().isInvisible()}isShortcut(){return this.edge().isShortcut()}isWeak(){return this.edge().isWeak()}}var _=Object.freeze({__proto__:null,HeapSnapshot:E,HeapSnapshotEdge:h,HeapSnapshotEdgeIndexProvider:c,HeapSnapshotEdgeIterator:g,HeapSnapshotEdgesProvider:F,HeapSnapshotFilteredIterator:y,HeapSnapshotIndexRangeIterator:x,HeapSnapshotItemProvider:b,HeapSnapshotNode:I,HeapSnapshotNodeIndexProvider:l,HeapSnapshotNodeIterator:m,HeapSnapshotNodesProvider:A,HeapSnapshotProgress:N,HeapSnapshotRetainerEdge:p,HeapSnapshotRetainerEdgeIndexProvider:u,HeapSnapshotRetainerEdgeIterator:f,JSHeapSnapshot:v,JSHeapSnapshotEdge:z,JSHeapSnapshotNode:D,JSHeapSnapshotRetainerEdge:R,SecondaryInitManager:T,createJSHeapSnapshotForTesting:async function(e){const t=new v(e,new N),s=new MessageChannel;return new T(s.port2),await t.initialize(s.port1),t}});class k{#P;#pe;#fe;#Ie;#me;#xe;#ye;#Ne="";parsingComplete;constructor(e){this.#Se(),this.#P=new N(e),this.#pe=[],this.#fe=null,this.#Ie=!1,this.parsingComplete=this.#we()}dispose(){this.#Se()}#Se(){this.#Ne="",this.#me=void 0}close(){this.#Ie=!0,this.#fe&&this.#fe("")}async buildSnapshot(e){await this.parsingComplete,this.#me=this.#me||{},this.#P.updateStatus("Processing snapshot…");const t=new v(this.#me,this.#P);return await t.initialize(e),this.#Se(),t}#Te(){let e=0;const t="0".charCodeAt(0),s="9".charCodeAt(0),n="]".charCodeAt(0),i=this.#Ne.length;for(;;){for(;e<i;){const i=this.#Ne.charCodeAt(e);if(t<=i&&i<=s)break;if(i===n)return this.#Ne=this.#Ne.slice(e+1),!1;++e}if(e===i)return this.#Ne="",!0;let o=0;const r=e;for(;e<i;){const n=this.#Ne.charCodeAt(e);if(t>n||n>s)break;o*=10,o+=n-t,++e}if(e===i)return this.#Ne=this.#Ne.slice(r),!0;if(!this.#xe)throw new Error("Array not instantiated");this.#xe.setValue(this.#ye++,o)}}#Ce(){this.#P.updateStatus("Parsing strings…");const e=this.#Ne.lastIndexOf("]");if(-1===e)throw new Error("Incomplete JSON");if(this.#Ne=this.#Ne.slice(0,e+1),!this.#me)throw new Error("No snapshot in parseStringsArray");this.#me.strings=JSON.parse(this.#Ne)}write(e){this.#pe.push(e),this.#fe&&(this.#fe(this.#pe.shift()),this.#fe=null)}#Oe(){if(this.#pe.length>0)return Promise.resolve(this.#pe.shift());const{promise:e,resolve:t}=Promise.withResolvers();return this.#fe=t,e}async#Ee(e,t){for(;;){const s=this.#Ne.indexOf(e,t||0);if(-1!==s)return s;t=this.#Ne.length-e.length+1,this.#Ne+=await this.#Oe()}}async#be(e,t,n){const i=await this.#Ee(e),o=await this.#Ee("[",i);for(this.#Ne=this.#Ne.slice(o+1),this.#xe=void 0===n?s.TypedArrayUtilities.createExpandableBigUint32Array():s.TypedArrayUtilities.createFixedBigUint32Array(n),this.#ye=0;this.#Te();)n?this.#P.updateProgress(t,this.#ye,this.#xe.length):this.#P.updateStatus(t),this.#Ne+=await this.#Oe();const r=this.#xe;return this.#xe=null,r}async#we(){const e='"snapshot"',t=await this.#Ee(e);if(-1===t)throw new Error("Snapshot token not found");this.#P.updateStatus("Loading snapshot info…");const s=this.#Ne.slice(t+10+1);let i=!1;const o=new n.TextUtils.BalancedJSONTokenizer((e=>{this.#Ne=o.remainder(),i=!0,this.#me=this.#me||{},this.#me.snapshot=JSON.parse(e)}));for(o.write(s);!i;)o.write(await this.#Oe());this.#me=this.#me||{};const r=await this.#be('"nodes"',"Loading nodes… {PH1}%",this.#me.snapshot.meta.node_fields.length*this.#me.snapshot.node_count);this.#me.nodes=r;const a=await this.#be('"edges"',"Loading edges… {PH1}%",this.#me.snapshot.meta.edge_fields.length*this.#me.snapshot.edge_count);if(this.#me.edges=a,this.#me.snapshot.trace_function_count){const e=await this.#be('"trace_function_infos"',"Loading allocation traces… {PH1}%",this.#me.snapshot.meta.trace_function_info_fields.length*this.#me.snapshot.trace_function_count);this.#me.trace_function_infos=e.asUint32ArrayOrFail();const t=await this.#Ee(":"),s=await this.#Ee('"',t),n=this.#Ne.indexOf("["),i=this.#Ne.lastIndexOf("]",s);this.#me.trace_tree=JSON.parse(this.#Ne.substring(n,i+1)),this.#Ne=this.#Ne.slice(i+1)}if(this.#me.snapshot.meta.sample_fields){const e=await this.#be('"samples"',"Loading samples…");this.#me.samples=e.asArrayOrFail()}if(this.#me.snapshot.meta.location_fields){const e=await this.#be('"locations"',"Loading locations…");this.#me.locations=e.asArrayOrFail()}else this.#me.locations=[];this.#P.updateStatus("Loading strings…");const d=await this.#Ee('"strings"'),h=await this.#Ee("[",d);for(this.#Ne=this.#Ne.slice(h);this.#pe.length>0||!this.#Ie;)this.#Ne+=await this.#Oe();this.#Ce()}}var V=Object.freeze({__proto__:null,HeapSnapshotLoader:k});var j=Object.freeze({__proto__:null,HeapSnapshotWorkerDispatcher:class{#Fe;#Ae;constructor(e){this.#Fe=[],this.#Ae=e}sendEvent(e,t){this.#Ae({eventName:e,data:t})}async dispatchMessage({data:t,ports:s}){const n={callId:t.callId,result:null,error:void 0,errorCallStack:void 0,errorMethodName:void 0};try{switch(t.disposition){case"createLoader":this.#Fe[t.objectId]=new k(this);break;case"dispose":delete this.#Fe[t.objectId];break;case"getter":{const e=this.#Fe[t.objectId][t.methodName];n.result=e;break}case"factory":{const e=this.#Fe[t.objectId],i=t.methodArguments.slice();i.push(...s);const o=await e[t.methodName].apply(e,i);o&&(this.#Fe[t.newObjectId]=o),n.result=Boolean(o);break}case"method":{const e=this.#Fe[t.objectId];n.result=e[t.methodName].apply(e,t.methodArguments);break}case"evaluateForTest":try{globalThis.HeapSnapshotWorker={AllocationProfile:d,HeapSnapshot:_,HeapSnapshotLoader:V},globalThis.HeapSnapshotModel=e,n.result=await self.eval(t.source)}catch(e){n.result=e.toString()}break;case"setupForSecondaryInit":this.#Fe[t.objectId]=new T(s[0])}}catch(e){n.error=e.toString(),n.errorCallStack=e.stack,t.methodName&&(n.errorMethodName=t.methodName)}this.#Ae(n)}}});export{d as AllocationProfile,_ as HeapSnapshot,V as HeapSnapshotLoader,j as HeapSnapshotWorkerDispatcher};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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"});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.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:"",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"});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../core/common/common.js";import*as t from"../../core/host/host.js";import*as a from"../../core/i18n/i18n.js";import*as s from"../../ui/legacy/legacy.js";import*as n from"../../ui/visual_logging/visual_logging.js";import*as r from"../../core/root/root.js";import*as o from"../../core/sdk/sdk.js";import*as i from"../../panels/mobile_throttling/mobile_throttling.js";import*as d from"../../panels/security/security.js";import*as l from"../../ui/legacy/components/utils/utils.js";import*as c from"../../core/platform/platform.js";import*as g from"../../models/bindings/bindings.js";var h={cssText:`:host{padding:12px}dt-checkbox{margin:0 0 10px;flex:none}.panel-section-separator{height:1px;margin-bottom:10px;background:var(--sys-color-divider);flex:none}.panel-section-separator:last-child{background:transparent}.chrome-select-label{margin-bottom:16px}\n/*# sourceURL=${import.meta.resolve("./renderingOptions.css")} */\n`};const u={paintFlashing:"Paint flashing",highlightsAreasOfThePageGreen:"Highlights areas of the page (green) that need to be repainted. May not be suitable for people prone to photosensitive epilepsy.",layoutShiftRegions:"Layout shift regions",highlightsAreasOfThePageBlueThat:"Highlights areas of the page (blue) that were shifted. May not be suitable for people prone to photosensitive epilepsy.",layerBorders:"Layer borders",showsLayerBordersOrangeoliveAnd:"Shows layer borders (orange/olive) and tiles (cyan).",frameRenderingStats:"Frame Rendering Stats",plotsFrameThroughputDropped:"Plots frame throughput, dropped frames distribution, and GPU memory.",scrollingPerformanceIssues:"Scrolling performance issues",highlightsElementsTealThatCan:"Highlights elements (teal) that can slow down scrolling, including touch & wheel event handlers and other main-thread scrolling situations.",highlightAdFrames:"Highlight ad frames",highlightsFramesRedDetectedToBe:"Highlights frames (red) detected to be ads.",disableLocalFonts:"Disable local fonts",disablesLocalSourcesInFontface:"Disables `local()` sources in `@font-face` rules. Requires a page reload to apply.",emulateAFocusedPage:"Emulate a focused page",emulatesAFocusedPage:"Keep page focused. Commonly used for debugging disappearing elements.",emulateAutoDarkMode:"Enable automatic dark mode",emulatesAutoDarkMode:"Enables automatic dark mode and sets `prefers-color-scheme` to `dark`.",forcesMediaTypeForTestingPrint:"Forces media type for testing print and screen styles",forcesCssPreferscolorschemeMedia:"Forces CSS `prefers-color-scheme` media feature",forcesCssPrefersreducedmotion:"Forces CSS `prefers-reduced-motion` media feature",forcesCssPreferscontrastMedia:"Forces CSS `prefers-contrast` media feature",forcesCssPrefersreduceddataMedia:"Forces CSS `prefers-reduced-data` media feature",forcesCssPrefersreducedtransparencyMedia:"Forces CSS `prefers-reduced-transparency` media feature",forcesCssColorgamutMediaFeature:"Forces CSS `color-gamut` media feature",forcesVisionDeficiencyEmulation:"Forces vision deficiency emulation",disableAvifImageFormat:"Disable `AVIF` image format",requiresAPageReloadToApplyAnd:"Requires a page reload to apply and disables caching for image requests.",disableWebpImageFormat:"Disable `WebP` image format",forcesCssForcedColors:"Forces CSS forced-colors media feature"},m=a.i18n.registerUIStrings("entrypoints/inspector_main/RenderingOptions.ts",u),p=a.i18n.getLocalizedString.bind(void 0,m);class f extends s.Widget.VBox{constructor(){super(!0),this.registerRequiredCSS(h),this.element.setAttribute("jslog",`${n.panel("rendering").track({resize:!0})}`),this.#e(p(u.paintFlashing),p(u.highlightsAreasOfThePageGreen),e.Settings.Settings.instance().moduleSetting("show-paint-rects")),this.#e(p(u.layoutShiftRegions),p(u.highlightsAreasOfThePageBlueThat),e.Settings.Settings.instance().moduleSetting("show-layout-shift-regions")),this.#e(p(u.layerBorders),p(u.showsLayerBordersOrangeoliveAnd),e.Settings.Settings.instance().moduleSetting("show-debug-borders")),this.#e(p(u.frameRenderingStats),p(u.plotsFrameThroughputDropped),e.Settings.Settings.instance().moduleSetting("show-fps-counter")),this.#e(p(u.scrollingPerformanceIssues),p(u.highlightsElementsTealThatCan),e.Settings.Settings.instance().moduleSetting("show-scroll-bottleneck-rects")),this.#e(p(u.highlightAdFrames),p(u.highlightsFramesRedDetectedToBe),e.Settings.Settings.instance().moduleSetting("show-ad-highlights")),this.#e(p(u.disableLocalFonts),p(u.disablesLocalSourcesInFontface),e.Settings.Settings.instance().moduleSetting("local-fonts-disabled")),this.#e(p(u.emulateAFocusedPage),p(u.emulatesAFocusedPage),e.Settings.Settings.instance().moduleSetting("emulate-page-focus"),{toggle:t.UserMetrics.Action.ToggleEmulateFocusedPageFromRenderingTab}),this.#e(p(u.emulateAutoDarkMode),p(u.emulatesAutoDarkMode),e.Settings.Settings.instance().moduleSetting("emulate-auto-dark-mode")),this.contentElement.createChild("div").classList.add("panel-section-separator"),this.#t(p(u.forcesCssPreferscolorschemeMedia),e.Settings.Settings.instance().moduleSetting("emulated-css-media-feature-prefers-color-scheme")),this.#t(p(u.forcesMediaTypeForTestingPrint),e.Settings.Settings.instance().moduleSetting("emulated-css-media")),this.#t(p(u.forcesCssForcedColors),e.Settings.Settings.instance().moduleSetting("emulated-css-media-feature-forced-colors")),window.matchMedia("not all and (prefers-contrast), (prefers-contrast)").matches&&this.#t(p(u.forcesCssPreferscontrastMedia),e.Settings.Settings.instance().moduleSetting("emulated-css-media-feature-prefers-contrast")),this.#t(p(u.forcesCssPrefersreducedmotion),e.Settings.Settings.instance().moduleSetting("emulated-css-media-feature-prefers-reduced-motion")),window.matchMedia("not all and (prefers-reduced-data), (prefers-reduced-data)").matches&&this.#t(p(u.forcesCssPrefersreduceddataMedia),e.Settings.Settings.instance().moduleSetting("emulated-css-media-feature-prefers-reduced-data")),window.matchMedia("not all and (prefers-reduced-transparency), (prefers-reduced-transparency)").matches&&this.#t(p(u.forcesCssPrefersreducedtransparencyMedia),e.Settings.Settings.instance().moduleSetting("emulated-css-media-feature-prefers-reduced-transparency")),this.#t(p(u.forcesCssColorgamutMediaFeature),e.Settings.Settings.instance().moduleSetting("emulated-css-media-feature-color-gamut")),this.contentElement.createChild("div").classList.add("panel-section-separator"),this.#t(p(u.forcesVisionDeficiencyEmulation),e.Settings.Settings.instance().moduleSetting("emulated-vision-deficiency")),this.contentElement.createChild("div").classList.add("panel-section-separator"),this.#e(p(u.disableAvifImageFormat),p(u.requiresAPageReloadToApplyAnd),e.Settings.Settings.instance().moduleSetting("avif-format-disabled")),this.#e(p(u.disableWebpImageFormat),p(u.requiresAPageReloadToApplyAnd),e.Settings.Settings.instance().moduleSetting("webp-format-disabled")),this.contentElement.createChild("div").classList.add("panel-section-separator")}#e(e,t,a,n){const r=s.UIUtils.CheckboxLabel.create(e,!1,t,a.name);return s.SettingsUI.bindCheckbox(r.checkboxElement,a,n),this.contentElement.appendChild(r),r}#t(e,t){const a=s.SettingsUI.createControlForSetting(t,e);a&&this.contentElement.appendChild(a)}}var S=Object.freeze({__proto__:null,ReloadActionDelegate:class{handleAction(t,a){const s=e.Settings.Settings.instance().moduleSetting("emulated-css-media-feature-prefers-color-scheme");if("rendering.toggle-prefers-color-scheme"===a){const e=["","light","dark"],t=e.findIndex((e=>e===s.get()||""));return s.set(e[(t+1)%3]),!0}return!1}},RenderingOptionsView:f}),b={cssText:`.node-icon{width:28px;height:26px;background-image:var(--image-file-nodeIcon);background-size:17px 17px;background-repeat:no-repeat;background-position:center;opacity:80%;cursor:auto}.node-icon:hover{opacity:100%}.node-icon.inactive{filter:grayscale(100%)}\n/*# sourceURL=${import.meta.resolve("./nodeIcon.css")} */\n`};const T={main:"Main",tab:"Tab",javascriptIsDisabled:"JavaScript is disabled",openDedicatedTools:"Open dedicated DevTools for `Node.js`"},C=a.i18n.registerUIStrings("entrypoints/inspector_main/InspectorMain.ts",T),y=a.i18n.getLocalizedString.bind(void 0,C);let v,I;class w{static instance(e={forceNew:null}){const{forceNew:t}=e;return v&&!t||(v=new w),v}async run(){let a=!0;if(await o.Connections.initMainConnection((async()=>{const e=r.Runtime.Runtime.queryParam("v8only")?o.Target.Type.NODE:"tab"===r.Runtime.Runtime.queryParam("targetType")?o.Target.Type.TAB:o.Target.Type.FRAME,t=e===o.Target.Type.FRAME&&"sources"===r.Runtime.Runtime.queryParam("panel"),s=e===o.Target.Type.FRAME?y(T.main):y(T.tab),n=o.TargetManager.TargetManager.instance().createTarget("main",s,e,null,void 0,t);if(await new Promise((e=>{const t=o.TargetManager.TargetManager.instance();t.observeTargets({targetAdded:a=>{a===t.primaryPageTarget()&&(a.setName(y(T.main)),e(a))},targetRemoved:e=>{}})})),a){if(a=!1,t){const e=n.model(o.DebuggerModel.DebuggerModel);e&&(e.isReadyToPause()||await e.once(o.DebuggerModel.Events.DebuggerIsReadyToPause),e.pause())}e!==o.Target.Type.TAB&&n.runtimeAgent().invoke_runIfWaitingForDebugger()}}),l.TargetDetachedDialog.TargetDetachedDialog.connectionLost),new A,new M,new i.NetworkPanelIndicator.NetworkPanelIndicator,t.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(t.InspectorFrontendHostAPI.Events.ReloadInspectedPage,(({data:e})=>{o.ResourceTreeModel.ResourceTreeModel.reloadAllPages(e)})),!r.Runtime.hostConfig.devToolsPrivacyUI?.enabled||!0===r.Runtime.hostConfig.thirdPartyCookieControls?.managedBlockThirdPartyCookies)return;const s=r.Runtime.hostConfig.thirdPartyCookieControls,n=e.Settings.Settings.instance().createSetting("cookie-control-override-enabled",void 0),c=e.Settings.Settings.instance().createSetting("grace-period-mitigation-disabled",void 0),g=e.Settings.Settings.instance().createSetting("heuristic-mitigation-disabled",void 0);if(void 0!==n.get()){if(s?.thirdPartyCookieRestrictionEnabled!==n.get())return void d.CookieControlsView.showInfobar();if(n.get()){if(s?.thirdPartyCookieMetadataEnabled===c.get())return void d.CookieControlsView.showInfobar();if(s?.thirdPartyCookieHeuristicsEnabled===g.get())return void d.CookieControlsView.showInfobar()}}}}e.Runnable.registerEarlyInitializationRunnable(w.instance);class F{#a;#s;constructor(){const e=document.createElement("div"),a=s.UIUtils.createShadowRootWithCoreStyles(e,{cssFile:b});this.#a=a.createChild("div","node-icon"),e.addEventListener("click",(()=>t.InspectorFrontendHost.InspectorFrontendHostInstance.openNodeFrontend()),!1),this.#s=new s.Toolbar.ToolbarItem(e),this.#s.setTitle(y(T.openDedicatedTools)),o.TargetManager.TargetManager.instance().addEventListener("AvailableTargetsChanged",(e=>this.#n(e.data))),this.#s.setVisible(!1),this.#n([])}static instance(e={forceNew:null}){const{forceNew:t}=e;return I&&!t||(I=new F),I}#n(e){const t=Boolean(e.find((e=>"node"===e.type&&!e.attached)));this.#a.classList.toggle("inactive",!t),t&&this.#s.setVisible(!0)}item(){return this.#s}}class A{constructor(){function t(){const t=[];e.Settings.Settings.instance().moduleSetting("java-script-disabled").get()&&t.push(y(T.javascriptIsDisabled)),s.InspectorView.InspectorView.instance().setPanelWarnings("sources",t)}e.Settings.Settings.instance().moduleSetting("java-script-disabled").addChangeListener(t),t()}}class M{#r;#o;#i;constructor(){this.#r=e.Settings.Settings.instance().moduleSetting("auto-attach-to-created-pages"),this.#r.addChangeListener(this.#d,this),this.#d(),this.#o=e.Settings.Settings.instance().moduleSetting("network.ad-blocking-enabled"),this.#o.addChangeListener(this.#n,this),this.#i=e.Settings.Settings.instance().moduleSetting("emulate-page-focus"),this.#i.addChangeListener(this.#n,this),o.TargetManager.TargetManager.instance().observeTargets(this)}#l(e){e.type()===o.Target.Type.FRAME&&e.parentTarget()?.type()!==o.Target.Type.FRAME&&(e.pageAgent().invoke_setAdBlockingEnabled({enabled:this.#o.get()}),e.emulationAgent().invoke_setFocusEmulationEnabled({enabled:this.#i.get()}))}#d(){t.InspectorFrontendHost.InspectorFrontendHostInstance.setOpenNewWindowForPopups(this.#r.get())}#n(){for(const e of o.TargetManager.TargetManager.instance().targets())this.#l(e)}targetAdded(e){this.#l(e)}targetRemoved(e){}}o.ChildTargetManager.ChildTargetManager.install();var P=Object.freeze({__proto__:null,BackendSettingsSync:M,FocusDebuggeeActionDelegate:class{handleAction(e,t){const a=o.TargetManager.TargetManager.instance().primaryPageTarget();return!!a&&(a.pageAgent().invoke_bringToFront(),!0)}},InspectorMainImpl:w,NodeIndicator:F,ReloadActionDelegate:class{handleAction(e,t){if(r.Runtime.experiments.isEnabled("react-native-specific-ui"))switch(t){case"inspector-main.reload":case"inspector-main.hard-reload":{const e=o.TargetManager.TargetManager.instance().primaryPageTarget();return!!e&&(e.pageAgent().invoke_reload({ignoreCache:!0}),!0)}}switch(t){case"inspector-main.reload":return o.ResourceTreeModel.ResourceTreeModel.reloadAllPages(!1),!0;case"inspector-main.hard-reload":return o.ResourceTreeModel.ResourceTreeModel.reloadAllPages(!0),!0}return!1}},SourcesPanelIndicator:A}),k={cssText:`:host{padding:2px 1px 2px 2px;white-space:nowrap;display:flex;flex-direction:column;height:36px;justify-content:center;overflow-y:auto}.title{overflow:hidden;padding-left:8px;text-overflow:ellipsis;flex-grow:0}.subtitle{color:var(--sys-color-token-subtle);margin-right:3px;overflow:hidden;padding-left:8px;text-overflow:ellipsis;flex-grow:0}:host(.highlighted) .subtitle{color:inherit}\n/*# sourceURL=${import.meta.resolve("./outermostTargetSelector.css")} */\n`};const x={targetNotSelected:"Page: Not selected",targetS:"Page: {PH1}"},R=a.i18n.registerUIStrings("entrypoints/inspector_main/OutermostTargetSelector.ts",x),E=a.i18n.getLocalizedString.bind(void 0,R);let D;class L{listItems=new s.ListModel.ListModel;#c;#g;constructor(){this.#c=new s.SoftDropDown.SoftDropDown(this.listItems,this),this.#c.setRowHeight(36),this.#g=new s.Toolbar.ToolbarItem(this.#c.element),this.#g.setTitle(E(x.targetNotSelected)),this.listItems.addEventListener("ItemsReplaced",(()=>this.#g.setEnabled(Boolean(this.listItems.length)))),this.#g.element.classList.add("toolbar-has-dropdown");const e=o.TargetManager.TargetManager.instance();e.addModelListener(o.ChildTargetManager.ChildTargetManager,"TargetInfoChanged",this.#h,this),e.addEventListener("NameChanged",this.#u,this),e.observeTargets(this),s.Context.Context.instance().addFlavorChangeListener(o.Target.Target,this.#m,this)}static instance(e={forceNew:null}){const{forceNew:t}=e;return D&&!t||(D=new L),D}item(){return this.#g}highlightedItemChanged(e,t,a,s){a&&a.classList.remove("highlighted"),s&&s.classList.add("highlighted")}titleFor(e){return e.name()}targetAdded(e){e.outermostTarget()===e&&(this.listItems.insertWithComparator(e,this.#p()),this.#g.setVisible(this.listItems.length>1),e===s.Context.Context.instance().flavor(o.Target.Target)&&this.#c.selectItem(e))}targetRemoved(e){const t=this.listItems.indexOf(e);-1!==t&&(this.listItems.remove(t),this.#g.setVisible(this.listItems.length>1))}#p(){return(e,t)=>{const a=e.targetInfo(),s=t.targetInfo();return a&&s?!a.subtype?.length&&s.subtype?.length?-1:a.subtype?.length&&!s.subtype?.length?1:a.url.localeCompare(s.url):0}}#h(e){const t=o.TargetManager.TargetManager.instance().targetById(e.data.targetId);t&&t.outermostTarget()===t&&(this.targetRemoved(t),this.targetAdded(t))}#u(e){const t=e.data;t&&t.outermostTarget()===t&&(this.targetRemoved(t),this.targetAdded(t))}#m({data:e}){this.#c.selectItem(e?.outermostTarget()||null)}createElementForItem(e){const t=document.createElement("div");t.classList.add("target");const a=s.UIUtils.createShadowRootWithCoreStyles(t,{cssFile:k}),n=a.createChild("div","title");s.UIUtils.createTextChild(n,c.StringUtilities.trimEndWithMaxLength(this.titleFor(e),100));const r=a.createChild("div","subtitle");return s.UIUtils.createTextChild(r,this.#f(e)),t}#f(e){const t=e.targetInfo();return e===o.TargetManager.TargetManager.instance().primaryPageTarget()&&t?g.ResourceUtils.displayNameForURL(t.url):e.targetInfo()?.subtype||""}isItemSelectable(e){return!0}itemSelected(e){const t=e?E(x.targetS,{PH1:this.titleFor(e)}):E(x.targetNotSelected);this.#g.setTitle(t),e&&e!==s.Context.Context.instance().flavor(o.Target.Target)?.outermostTarget()&&s.Context.Context.instance().setFlavor(o.Target.Target,e)}}var U=Object.freeze({__proto__:null,OutermostTargetSelector:L});export{P as InspectorMain,U as OutermostTargetSelector,S as RenderingOptions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/legacy.js";import*as n from"../../core/root/root.js";import*as i from"../../core/sdk/sdk.js";import*as r from"../../models/extensions/extensions.js";import*as a from"../../models/workspace/workspace.js";import*as s from"../../panels/network/forward/forward.js";import*as l from"../../core/host/host.js";import*as c from"../../ui/legacy/components/utils/utils.js";import*as g from"../main/main.js";const w={performance:"Performance",showPerformance:"Show Performance",showRecentTimelineSessions:"Show recent timeline sessions",record:"Record",stop:"Stop",recordAndReload:"Record and reload"},d=t.i18n.registerUIStrings("panels/js_timeline/js_timeline-meta.ts",w),k=t.i18n.getLazilyComputedLocalizedString.bind(void 0,d);let m;async function u(){return m||(m=await import("../../panels/timeline/timeline.js")),m}function p(e){return void 0===m?[]:e(m)}o.ViewManager.registerViewExtension({location:"panel",id:"timeline",title:k(w.performance),commandPrompt:k(w.showPerformance),order:66,hasToolbar:!1,isPreviewFeature:!0,loadView:async()=>(await u()).TimelinePanel.TimelinePanel.instance({forceNew:null,isNode:!0})}),o.ActionRegistration.registerActionExtension({actionId:"timeline.show-history",loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),category:"PERFORMANCE",title:k(w.showRecentTimelineSessions),contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+H"},{platform:"mac",shortcut:"Meta+Y"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.toggle-recording",category:"PERFORMANCE",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),options:[{value:!0,title:k(w.record)},{value:!1,title:k(w.stop)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.record-reload",iconClass:"refresh",contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),category:"PERFORMANCE",title:k(w.recordAndReload),loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+E"},{platform:"mac",shortcut:"Meta+Shift+E"}]}),e.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",settingName:"annotations-hidden",settingType:"boolean",defaultValue:!0});const y={throttling:"Throttling",showThrottling:"Show Throttling",goOffline:"Go offline",device:"device",throttlingTag:"throttling",enableSlowGThrottling:"Enable slow `3G` throttling",enableFastGThrottling:"Enable fast `3G` throttling",goOnline:"Go online"},R=t.i18n.registerUIStrings("panels/mobile_throttling/mobile_throttling-meta.ts",y),h=t.i18n.getLazilyComputedLocalizedString.bind(void 0,R);let T;async function N(){return T||(T=await import("../../panels/mobile_throttling/mobile_throttling.js")),T}o.ViewManager.registerViewExtension({location:"settings-view",id:"throttling-conditions",title:h(y.throttling),commandPrompt:h(y.showThrottling),order:35,loadView:async()=>new((await N()).ThrottlingSettingsTab.ThrottlingSettingsTab),settings:["custom-network-conditions","calibrated-cpu-throttling"],iconName:"performance"}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-offline",category:"NETWORK",title:h(y.goOffline),loadActionDelegate:async()=>new((await N()).ThrottlingManager.ActionDelegate),tags:[h(y.device),h(y.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-low-end-mobile",category:"NETWORK",title:h(y.enableSlowGThrottling),loadActionDelegate:async()=>new((await N()).ThrottlingManager.ActionDelegate),tags:[h(y.device),h(y.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-mid-tier-mobile",category:"NETWORK",title:h(y.enableFastGThrottling),loadActionDelegate:async()=>new((await N()).ThrottlingManager.ActionDelegate),tags:[h(y.device),h(y.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-online",category:"NETWORK",title:h(y.goOnline),loadActionDelegate:async()=>new((await N()).ThrottlingManager.ActionDelegate),tags:[h(y.device),h(y.throttlingTag)]}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"custom-network-conditions",settingType:"array",defaultValue:[]});const v={showNetwork:"Show Network",network:"Network",networkExpoUnstable:"Expo Network",showNetworkRequestBlocking:"Show Network request blocking",networkRequestBlocking:"Network request blocking",showNetworkConditions:"Show Network conditions",networkConditions:"Network conditions",diskCache:"disk cache",networkThrottling:"network throttling",showSearch:"Show Search",search:"Search",recordNetworkLog:"Record network log",stopRecordingNetworkLog:"Stop recording network log",hideRequestDetails:"Hide request details",colorcodeResourceTypes:"Color-code resource types",colorCode:"color code",resourceType:"resource type",colorCodeByResourceType:"Color code by resource type",useDefaultColors:"Use default colors",groupNetworkLogByFrame:"Group network log by frame",netWork:"network",frame:"frame",group:"group",groupNetworkLogItemsByFrame:"Group network log items by frame",dontGroupNetworkLogItemsByFrame:"Don't group network log items by frame",clear:"Clear network log",addNetworkRequestBlockingPattern:"Add network request blocking pattern",removeAllNetworkRequestBlockingPatterns:"Remove all network request blocking patterns",allowToGenerateHarWithSensitiveData:"Allow to generate `HAR` with sensitive data",dontAllowToGenerateHarWithSensitiveData:"Don't allow to generate `HAR` with sensitive data",allowToGenerateHarWithSensitiveDataDocumentation:"By default generated HAR logs are sanitized and don't include `Cookie`, `Set-Cookie`, or `Authorization` HTTP headers. When this setting is enabled, options to export/copy HAR with sensitive data are provided."},A=t.i18n.registerUIStrings("panels/network/network-meta.ts",v),f=t.i18n.getLazilyComputedLocalizedString.bind(void 0,A),E=t.i18n.getLocalizedString.bind(void 0,A);let P;async function S(){return P||(P=await import("../../panels/network/network.js")),P}function b(e){return void 0===P?[]:e(P)}o.ViewManager.registerViewExtension({location:"panel",id:"network",commandPrompt:f(v.showNetwork),title:()=>n.Runtime.conditions.reactNativeExpoNetworkPanel()?E(v.networkExpoUnstable):E(v.network),order:40,loadView:async()=>(await S()).NetworkPanel.NetworkPanel.instance()}),o.ViewManager.registerViewExtension({location:"drawer-view",id:"network.blocked-urls",commandPrompt:f(v.showNetworkRequestBlocking),title:f(v.networkRequestBlocking),persistence:"closeable",order:60,loadView:async()=>new((await S()).BlockedURLsPane.BlockedURLsPane)}),o.ViewManager.registerViewExtension({location:"drawer-view",id:"network.config",commandPrompt:f(v.showNetworkConditions),title:f(v.networkConditions),persistence:"closeable",order:40,tags:[f(v.diskCache),f(v.networkThrottling),t.i18n.lockedLazyString("useragent"),t.i18n.lockedLazyString("user agent"),t.i18n.lockedLazyString("user-agent")],loadView:async()=>(await S()).NetworkConfigView.NetworkConfigView.instance()}),o.ViewManager.registerViewExtension({location:"network-sidebar",id:"network.search-network-tab",commandPrompt:f(v.showSearch),title:f(v.search),persistence:"permanent",loadView:async()=>(await S()).NetworkPanel.SearchNetworkView.instance()}),o.ActionRegistration.registerActionExtension({actionId:"network.toggle-recording",category:"NETWORK",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>b((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await S()).NetworkPanel.ActionDelegate),options:[{value:!0,title:f(v.recordNetworkLog)},{value:!1,title:f(v.stopRecordingNetworkLog)}],bindings:[{shortcut:"Ctrl+E",platform:"windows,linux"},{shortcut:"Meta+E",platform:"mac"}]}),o.ActionRegistration.registerActionExtension({actionId:"network.clear",category:"NETWORK",title:f(v.clear),iconClass:"clear",loadActionDelegate:async()=>new((await S()).NetworkPanel.ActionDelegate),contextTypes:()=>b((e=>[e.NetworkPanel.NetworkPanel])),bindings:[{shortcut:"Ctrl+L"},{shortcut:"Meta+K",platform:"mac"}]}),o.ActionRegistration.registerActionExtension({actionId:"network.hide-request-details",category:"NETWORK",title:f(v.hideRequestDetails),contextTypes:()=>b((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await S()).NetworkPanel.ActionDelegate),bindings:[{shortcut:"Esc"}]}),o.ActionRegistration.registerActionExtension({actionId:"network.search",category:"NETWORK",title:f(v.search),contextTypes:()=>b((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await S()).NetworkPanel.ActionDelegate),bindings:[{platform:"mac",shortcut:"Meta+F",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+F",keybindSets:["devToolsDefault","vsCode"]}]}),o.ActionRegistration.registerActionExtension({actionId:"network.add-network-request-blocking-pattern",category:"NETWORK",title:f(v.addNetworkRequestBlockingPattern),iconClass:"plus",contextTypes:()=>b((e=>[e.BlockedURLsPane.BlockedURLsPane])),loadActionDelegate:async()=>new((await S()).BlockedURLsPane.ActionDelegate)}),o.ActionRegistration.registerActionExtension({actionId:"network.remove-all-network-request-blocking-patterns",category:"NETWORK",title:f(v.removeAllNetworkRequestBlockingPatterns),iconClass:"clear",contextTypes:()=>b((e=>[e.BlockedURLsPane.BlockedURLsPane])),loadActionDelegate:async()=>new((await S()).BlockedURLsPane.ActionDelegate)}),e.Settings.registerSettingExtension({category:"NETWORK",storageType:"Synced",title:f(v.allowToGenerateHarWithSensitiveData),settingName:"network.show-options-to-generate-har-with-sensitive-data",settingType:"boolean",defaultValue:!1,tags:[t.i18n.lockedLazyString("HAR")],options:[{value:!0,title:f(v.allowToGenerateHarWithSensitiveData)},{value:!1,title:f(v.dontAllowToGenerateHarWithSensitiveData)}],learnMore:{url:"https://goo.gle/devtools-export-hars",tooltip:f(v.allowToGenerateHarWithSensitiveDataDocumentation)}}),e.Settings.registerSettingExtension({category:"NETWORK",storageType:"Synced",title:f(v.colorcodeResourceTypes),settingName:"network-color-code-resource-types",settingType:"boolean",defaultValue:!1,tags:[f(v.colorCode),f(v.resourceType)],options:[{value:!0,title:f(v.colorCodeByResourceType)},{value:!1,title:f(v.useDefaultColors)}]}),e.Settings.registerSettingExtension({category:"NETWORK",storageType:"Synced",title:f(v.groupNetworkLogByFrame),settingName:"network.group-by-frame",settingType:"boolean",defaultValue:!1,tags:[f(v.netWork),f(v.frame),f(v.group)],options:[{value:!0,title:f(v.groupNetworkLogItemsByFrame)},{value:!1,title:f(v.dontGroupNetworkLogItemsByFrame)}]}),o.ViewManager.registerLocationResolver({name:"network-sidebar",category:"NETWORK",loadResolver:async()=>(await S()).NetworkPanel.NetworkPanel.instance()}),o.ContextMenu.registerProvider({contextTypes:()=>[i.NetworkRequest.NetworkRequest,i.Resource.Resource,a.UISourceCode.UISourceCode,i.TraceObject.RevealableNetworkRequest],loadProvider:async()=>(await S()).NetworkPanel.NetworkPanel.instance(),experiment:void 0}),e.Revealer.registerRevealer({contextTypes:()=>[i.NetworkRequest.NetworkRequest],destination:e.Revealer.RevealerDestination.NETWORK_PANEL,loadRevealer:async()=>new((await S()).NetworkPanel.RequestRevealer)}),e.Revealer.registerRevealer({contextTypes:()=>[s.UIRequestLocation.UIRequestLocation],destination:void 0,loadRevealer:async()=>new((await S()).NetworkPanel.RequestLocationRevealer)}),e.Revealer.registerRevealer({contextTypes:()=>[s.NetworkRequestId.NetworkRequestId],destination:e.Revealer.RevealerDestination.NETWORK_PANEL,loadRevealer:async()=>new((await S()).NetworkPanel.RequestIdRevealer)}),e.Revealer.registerRevealer({contextTypes:()=>[s.UIFilter.UIRequestFilter,r.ExtensionServer.RevealableNetworkRequestFilter],destination:e.Revealer.RevealerDestination.NETWORK_PANEL,loadRevealer:async()=>new((await S()).NetworkPanel.NetworkLogWithFilterRevealer)});const x={main:"Main",networkTitle:"Scripts",showNode:"Show Scripts"},D=t.i18n.registerUIStrings("entrypoints/js_app/js_app.ts",x),C=t.i18n.getLocalizedString.bind(void 0,D),L=t.i18n.getLazilyComputedLocalizedString.bind(void 0,D);let I,q;class M{static instance(e={forceNew:null}){const{forceNew:t}=e;return I&&!t||(I=new M),I}async run(){l.userMetrics.actionTaken(l.UserMetrics.Action.ConnectToNodeJSDirectly),i.Connections.initMainConnection((async()=>{i.TargetManager.TargetManager.instance().createTarget("main",C(x.main),i.Target.Type.NODE,null).runtimeAgent().invoke_runIfWaitingForDebugger()}),c.TargetDetachedDialog.TargetDetachedDialog.connectionLost)}}o.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-network",title:L(x.networkTitle),commandPrompt:L(x.showNode),order:2,persistence:"permanent",loadView:async()=>(await async function(){return q||(q=await import("../../panels/sources/sources.js")),q}()).SourcesNavigator.NetworkNavigatorView.instance()}),e.Runnable.registerEarlyInitializationRunnable(M.instance),new g.MainImpl.MainImpl;export{M as JsMainImpl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../core/root/root.js";import*as t from"../../services/puppeteer/puppeteer.js";import*as s from"../../third_party/third-party-web/third-party-web.js";import"../../third_party/lighthouse/lighthouse-dt-bundle.js";class n{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}}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(t){const s=self.lookupLocale(t);if("en-US"===s||"en"===s)return;try{const t=e.Runtime.getRemoteBase();let n;n=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}(c.locales),g=c.flags;g.logLevel=g.logLevel||"info",g.channel="devtools",g.locale=r;const p=c.config||self.createConfig(c.categoryIDs,g.formFactor),f=c.url;self.thirdPartyWeb.provideThirdPartyWeb(s.ThirdPartyWeb);const{rootTargetId:d,mainSessionId:h}=c;o=new n(h),l=await t.PuppeteerConnection.PuppeteerConnectionHelper.connectPuppeteerToConnectionViaTab({connection:o,rootTargetId:d,isPageTargetCallback:e=>"page"===e.type});const{page:u}=l;if(!u)throw new Error("Could not create page handle for the target page");if("snapshot"===i)return await self.snapshot(u,{config:p,flags:g});if("startTimespan"===i){const e=await self.startTimespan(u,{config:p,flags:g});return void(a=e.endTimespan)}return await self.navigation(u,f,{config:p,flags:g})}catch(e){return{fatal:!0,message:e.message,stack:e.stack}}finally{"startTimespan"!==i&&await(l?.browser.disconnect())}}function r(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 i(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":o?.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");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"../../core/common/common.js";import*as t from"../../core/host/host.js";import*as o from"../../core/i18n/i18n.js";import*as a from"../../core/sdk/sdk.js";import*as n from"../../models/workspace/workspace.js";import*as i from"../../ui/legacy/components/utils/utils.js";import*as r from"../../ui/legacy/legacy.js";const s={focusDebuggee:"Focus page",toggleDrawer:"Toggle drawer",nextPanel:"Next panel",previousPanel:"Previous panel",reloadDevtools:"Reload DevTools",restoreLastDockPosition:"Restore last dock position",zoomIn:"Zoom in",zoomOut:"Zoom out",resetZoomLevel:"Reset zoom level",searchInPanel:"Search in panel",cancelSearch:"Cancel search",findNextResult:"Find next result",findPreviousResult:"Find previous result",theme:"Theme:",switchToBrowserPreferredTheme:"Switch to browser's preferred theme",autoTheme:"Auto",switchToLightTheme:"Switch to light theme",lightCapital:"Light",switchToDarkTheme:"Switch to dark theme",darkCapital:"Dark",darkLower:"dark",lightLower:"light",panelLayout:"Panel layout:",useHorizontalPanelLayout:"Use horizontal panel layout",horizontal:"horizontal",useVerticalPanelLayout:"Use vertical panel layout",vertical:"vertical",useAutomaticPanelLayout:"Use automatic panel layout",auto:"auto",enableCtrlShortcutToSwitchPanels:"Enable Ctrl + 1-9 shortcut to switch panels",enableShortcutToSwitchPanels:"Enable ⌘ + 1-9 shortcut to switch panels",right:"Right",dockToRight:"Dock to right",bottom:"Bottom",dockToBottom:"Dock to bottom",left:"Left",dockToLeft:"Dock to left",undocked:"Undocked",undockIntoSeparateWindow:"Undock into separate window",devtoolsDefault:"DevTools (Default)",language:"Language:",browserLanguage:"Browser UI language",enableSync:"Enable settings sync",searchAsYouTypeSetting:"Search as you type",searchAsYouTypeCommand:"Enable search as you type",searchOnEnterCommand:"Disable search as you type (press Enter to search)",matchChromeColorScheme:"Match Chrome color scheme",matchChromeColorSchemeDocumentation:"Match DevTools colors to your customized Chrome theme (when enabled)",matchChromeColorSchemeCommand:"Match Chrome color scheme",dontMatchChromeColorSchemeCommand:"Don't match Chrome color scheme"},l=o.i18n.registerUIStrings("entrypoints/main/main-meta.ts",s),c=o.i18n.getLazilyComputedLocalizedString.bind(void 0,l);let u,d;async function m(){return u||(u=await import("./main.js")),u}function g(){return!t.InspectorFrontendHost.InspectorFrontendHostInstance.isHostedMode()}function h(e){return()=>o.i18n.getLocalizedLanguageRegion(e,o.DevToolsLocale.DevToolsLocale.instance())}r.ActionRegistration.registerActionExtension({category:"DRAWER",actionId:"inspector-main.focus-debuggee",loadActionDelegate:async()=>new((await async function(){return d||(d=await import("../inspector_main/inspector_main.js")),d}()).InspectorMain.FocusDebuggeeActionDelegate),order:100,title:c(s.focusDebuggee)}),r.ActionRegistration.registerActionExtension({category:"DRAWER",actionId:"main.toggle-drawer",loadActionDelegate:async()=>new r.InspectorView.ActionDelegate,order:101,title:c(s.toggleDrawer),bindings:[{shortcut:"Esc"}]}),r.ActionRegistration.registerActionExtension({actionId:"main.next-tab",category:"GLOBAL",title:c(s.nextPanel),loadActionDelegate:async()=>new r.InspectorView.ActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+]"},{platform:"mac",shortcut:"Meta+]"}]}),r.ActionRegistration.registerActionExtension({actionId:"main.previous-tab",category:"GLOBAL",title:c(s.previousPanel),loadActionDelegate:async()=>new r.InspectorView.ActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+["},{platform:"mac",shortcut:"Meta+["}]}),r.ActionRegistration.registerActionExtension({actionId:"main.debug-reload",category:"GLOBAL",title:c(s.reloadDevtools),loadActionDelegate:async()=>new((await m()).MainImpl.ReloadActionDelegate),bindings:[{shortcut:"Alt+R"}]}),r.ActionRegistration.registerActionExtension({category:"GLOBAL",title:c(s.restoreLastDockPosition),actionId:"main.toggle-dock",loadActionDelegate:async()=>new r.DockController.ToggleDockActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+D"},{platform:"mac",shortcut:"Meta+Shift+D"}]}),r.ActionRegistration.registerActionExtension({actionId:"main.zoom-in",category:"GLOBAL",title:c(s.zoomIn),loadActionDelegate:async()=>new((await m()).MainImpl.ZoomActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Plus",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+Shift+Plus"},{platform:"windows,linux",shortcut:"Ctrl+NumpadPlus"},{platform:"windows,linux",shortcut:"Ctrl+Shift+NumpadPlus"},{platform:"mac",shortcut:"Meta+Plus",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+Shift+Plus"},{platform:"mac",shortcut:"Meta+NumpadPlus"},{platform:"mac",shortcut:"Meta+Shift+NumpadPlus"}],condition:g}),r.ActionRegistration.registerActionExtension({actionId:"main.zoom-out",category:"GLOBAL",title:c(s.zoomOut),loadActionDelegate:async()=>new((await m()).MainImpl.ZoomActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Minus",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+Shift+Minus"},{platform:"windows,linux",shortcut:"Ctrl+NumpadMinus"},{platform:"windows,linux",shortcut:"Ctrl+Shift+NumpadMinus"},{platform:"mac",shortcut:"Meta+Minus",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+Shift+Minus"},{platform:"mac",shortcut:"Meta+NumpadMinus"},{platform:"mac",shortcut:"Meta+Shift+NumpadMinus"}],condition:g}),r.ActionRegistration.registerActionExtension({actionId:"main.zoom-reset",category:"GLOBAL",title:c(s.resetZoomLevel),loadActionDelegate:async()=>new((await m()).MainImpl.ZoomActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+0"},{platform:"windows,linux",shortcut:"Ctrl+Numpad0"},{platform:"mac",shortcut:"Meta+Numpad0"},{platform:"mac",shortcut:"Meta+0"}],condition:g}),r.ActionRegistration.registerActionExtension({actionId:"main.search-in-panel.find",category:"GLOBAL",title:c(s.searchInPanel),loadActionDelegate:async()=>new((await m()).MainImpl.SearchActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+F",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"Meta+F",keybindSets:["devToolsDefault","vsCode"]},{platform:"mac",shortcut:"F3"}]}),r.ActionRegistration.registerActionExtension({actionId:"main.search-in-panel.cancel",category:"GLOBAL",title:c(s.cancelSearch),loadActionDelegate:async()=>new((await m()).MainImpl.SearchActionDelegate),order:10,bindings:[{shortcut:"Esc"}]}),r.ActionRegistration.registerActionExtension({actionId:"main.search-in-panel.find-next",category:"GLOBAL",title:c(s.findNextResult),loadActionDelegate:async()=>new((await m()).MainImpl.SearchActionDelegate),bindings:[{platform:"mac",shortcut:"Meta+G",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+G"},{platform:"windows,linux",shortcut:"F3",keybindSets:["devToolsDefault","vsCode"]}]}),r.ActionRegistration.registerActionExtension({actionId:"main.search-in-panel.find-previous",category:"GLOBAL",title:c(s.findPreviousResult),loadActionDelegate:async()=>new((await m()).MainImpl.SearchActionDelegate),bindings:[{platform:"mac",shortcut:"Meta+Shift+G",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+Shift+G"},{platform:"windows,linux",shortcut:"Shift+F3",keybindSets:["devToolsDefault","vsCode"]}]}),e.Settings.registerSettingExtension({category:"APPEARANCE",storageType:"Synced",title:c(s.theme),settingName:"ui-theme",settingType:"enum",defaultValue:"systemPreferred",reloadRequired:!1,options:[{title:c(s.switchToBrowserPreferredTheme),text:c(s.autoTheme),value:"systemPreferred"},{title:c(s.switchToLightTheme),text:c(s.lightCapital),value:"default"},{title:c(s.switchToDarkTheme),text:c(s.darkCapital),value:"dark"}],tags:[c(s.darkLower),c(s.lightLower)]}),e.Settings.registerSettingExtension({category:"APPEARANCE",storageType:"Synced",title:c(s.matchChromeColorScheme),settingName:"chrome-theme-colors",settingType:"boolean",defaultValue:!0,options:[{value:!0,title:c(s.matchChromeColorSchemeCommand)},{value:!1,title:c(s.dontMatchChromeColorSchemeCommand)}],reloadRequired:!0,learnMore:{url:"https://goo.gle/devtools-customize-theme",tooltip:c(s.matchChromeColorSchemeDocumentation)}}),e.Settings.registerSettingExtension({category:"APPEARANCE",storageType:"Synced",title:c(s.panelLayout),settingName:"sidebar-position",settingType:"enum",defaultValue:"auto",options:[{title:c(s.useHorizontalPanelLayout),text:c(s.horizontal),value:"bottom"},{title:c(s.useVerticalPanelLayout),text:c(s.vertical),value:"right"},{title:c(s.useAutomaticPanelLayout),text:c(s.auto),value:"auto"}]}),e.Settings.registerSettingExtension({category:"APPEARANCE",storageType:"Synced",settingName:"language",settingType:"enum",title:c(s.language),defaultValue:"en-US",options:[{value:"browserLanguage",title:c(s.browserLanguage),text:c(s.browserLanguage)},...o.i18n.getAllSupportedDevToolsLocales().sort().map((e=>{return{value:t=e,title:h(t),text:h(t)};var t}))],reloadRequired:!0}),e.Settings.registerSettingExtension({category:"APPEARANCE",storageType:"Synced",title:"mac"===t.Platform.platform()?c(s.enableShortcutToSwitchPanels):c(s.enableCtrlShortcutToSwitchPanels),settingName:"shortcut-panel-switch",settingType:"boolean",defaultValue:!1}),e.Settings.registerSettingExtension({category:"GLOBAL",settingName:"currentDockState",settingType:"enum",defaultValue:"right",options:[{value:"right",text:c(s.right),title:c(s.dockToRight)},{value:"bottom",text:c(s.bottom),title:c(s.dockToBottom)},{value:"left",text:c(s.left),title:c(s.dockToLeft)},{value:"undocked",text:c(s.undocked),title:c(s.undockIntoSeparateWindow)}]}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"active-keybind-set",settingType:"enum",defaultValue:"devToolsDefault",options:[{value:"devToolsDefault",title:c(s.devtoolsDefault),text:c(s.devtoolsDefault)},{value:"vsCode",title:o.i18n.lockedLazyString("Visual Studio Code"),text:o.i18n.lockedLazyString("Visual Studio Code")}]}),e.Settings.registerSettingExtension({category:"SYNC",settingName:"sync-preferences",settingType:"boolean",title:c(s.enableSync),defaultValue:!1,reloadRequired:!0}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"user-shortcuts",settingType:"array",defaultValue:[]}),e.Settings.registerSettingExtension({category:"GLOBAL",storageType:"Local",title:c(s.searchAsYouTypeSetting),settingName:"search-as-you-type",settingType:"boolean",order:3,defaultValue:!0,options:[{value:!0,title:c(s.searchAsYouTypeCommand)},{value:!1,title:c(s.searchOnEnterCommand)}]}),r.ViewManager.registerLocationResolver({name:"drawer-view",category:"DRAWER",loadResolver:async()=>r.InspectorView.InspectorView.instance()}),r.ViewManager.registerLocationResolver({name:"drawer-sidebar",category:"DRAWER_SIDEBAR",loadResolver:async()=>r.InspectorView.InspectorView.instance()}),r.ViewManager.registerLocationResolver({name:"panel",category:"PANEL",loadResolver:async()=>r.InspectorView.InspectorView.instance()}),r.ContextMenu.registerProvider({contextTypes:()=>[n.UISourceCode.UISourceCode,a.Resource.Resource,a.NetworkRequest.NetworkRequest],loadProvider:async()=>new i.Linkifier.ContentProviderContextMenuProvider,experiment:void 0}),r.ContextMenu.registerProvider({contextTypes:()=>[Node],loadProvider:async()=>new r.XLink.ContextMenuProvider,experiment:void 0}),r.ContextMenu.registerProvider({contextTypes:()=>[Node],loadProvider:async()=>new i.Linkifier.LinkContextMenuProvider,experiment:void 0}),r.Toolbar.registerToolbarItem({separator:!0,location:"main-toolbar-left",order:100}),r.Toolbar.registerToolbarItem({separator:!0,order:97,location:"main-toolbar-right"}),r.Toolbar.registerToolbarItem({loadItem:async()=>(await m()).MainImpl.SettingsButtonProvider.instance(),order:99,location:"main-toolbar-right"}),r.Toolbar.registerToolbarItem({loadItem:async()=>(await m()).MainImpl.MainMenuItem.instance(),order:100,location:"main-toolbar-right"}),r.Toolbar.registerToolbarItem({loadItem:async()=>r.DockController.CloseButtonProvider.instance(),order:101,location:"main-toolbar-right"}),e.AppProvider.registerAppProvider({loadAppProvider:async()=>(await m()).SimpleApp.SimpleAppProvider.instance(),order:10});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import*as e from"../../core/sdk/sdk.js";import*as t from"../../core/common/common.js";import*as n from"../../core/host/host.js";import*as o from"../../core/i18n/i18n.js";import*as i from"../../core/platform/platform.js";import*as s from"../../core/protocol_client/protocol_client.js";import*as r from"../../core/rn_experiments/rn_experiments.js";import*as a from"../../core/root/root.js";import*as c from"../../models/autofill_manager/autofill_manager.js";import*as l from"../../models/bindings/bindings.js";import*as d from"../../models/breakpoints/breakpoints.js";import*as g from"../../models/crux-manager/crux-manager.js";import*as m from"../../models/extensions/extensions.js";import*as p from"../../models/issues_manager/issues_manager.js";import*as u from"../../models/live-metrics/live-metrics.js";import*as h from"../../models/logs/logs.js";import*as f from"../../models/persistence/persistence.js";import*as w from"../../models/project_settings/project_settings.js";import*as v from"../../models/workspace/workspace.js";import*as x from"../../panels/snippets/snippets.js";import"../../ui/components/buttons/buttons.js";import*as b from"../../ui/components/icon_button/icon_button.js";import*as I from"../../ui/legacy/components/utils/utils.js";import*as S from"../../ui/legacy/legacy.js";import*as M from"../../ui/legacy/theme_support/theme_support.js";import{render as k,html as C}from"../../ui/lit/lit.js";import*as T from"../../ui/visual_logging/visual_logging.js";class R{#e;#t;#n;#o;constructor(t,n){n.addFlavorChangeListener(e.RuntimeModel.ExecutionContext,this.#i,this),n.addFlavorChangeListener(e.Target.Target,this.#s,this),t.addModelListener(e.RuntimeModel.RuntimeModel,e.RuntimeModel.Events.ExecutionContextCreated,this.#r,this),t.addModelListener(e.RuntimeModel.RuntimeModel,e.RuntimeModel.Events.ExecutionContextDestroyed,this.#a,this),t.addModelListener(e.RuntimeModel.RuntimeModel,e.RuntimeModel.Events.ExecutionContextOrderChanged,this.#c,this),this.#e=t,this.#t=n,t.observeModels(e.RuntimeModel.RuntimeModel,this)}modelAdded(t){queueMicrotask(function(){this.#t.flavor(e.Target.Target)||this.#t.setFlavor(e.Target.Target,t.target())}.bind(this))}modelRemoved(t){const n=this.#t.flavor(e.RuntimeModel.ExecutionContext);n&&n.runtimeModel===t&&this.#l();const o=this.#e.models(e.RuntimeModel.RuntimeModel);this.#t.flavor(e.Target.Target)===t.target()&&o.length&&this.#t.setFlavor(e.Target.Target,o[0].target())}#i({data:t}){t&&(this.#t.setFlavor(e.Target.Target,t.target()),this.#o||(this.#n=this.#d(t)))}#d(e){return e.isDefault?e.target().name()+":"+e.frameId:""}#s({data:t}){const n=this.#t.flavor(e.RuntimeModel.ExecutionContext);if(!t||n&&n.target()===t)return;const o=t.model(e.RuntimeModel.RuntimeModel),i=o?o.executionContexts():[];if(!i.length)return;let s=null;for(let e=0;e<i.length&&!s;++e)this.#g(i[e])&&(s=i[e]);for(let e=0;e<i.length&&!s;++e)this.#m(i[e])&&(s=i[e]);this.#o=!0,this.#t.setFlavor(e.RuntimeModel.ExecutionContext,s||i[0]),this.#o=!1}#g(e){return!e.target().targetInfo()?.subtype&&(!(!this.#n||this.#n!==this.#d(e))||!this.#n&&this.#m(e))}#m(t){if(!t.isDefault||!t.frameId)return!1;if(t.target().parentTarget()?.type()===e.Target.Type.FRAME)return!1;const n=t.target().model(e.ResourceTreeModel.ResourceTreeModel),o=n?.frameForId(t.frameId);return Boolean(o?.isOutermostFrame())}#r(t){if(void 0!==this.#n)switch(t.data.target().type()){case e.Target.Type.AUCTION_WORKLET:case e.Target.Type.SHARED_STORAGE_WORKLET:case e.Target.Type.SHARED_WORKER:case e.Target.Type.ServiceWorker:case e.Target.Type.WORKLET:case e.Target.Type.Worker:return;case e.Target.Type.BROWSER:case e.Target.Type.FRAME:case e.Target.Type.NODE:case e.Target.Type.TAB:this.#p(t.data)}else this.#p(t.data)}#a(t){const n=t.data;this.#t.flavor(e.RuntimeModel.ExecutionContext)===n&&this.#l()}#c(e){const t=e.data.executionContexts();for(let e=0;e<t.length&&!this.#p(t[e]);e++);}#p(t){return!(this.#t.flavor(e.RuntimeModel.ExecutionContext)&&!this.#g(t))&&(this.#o=!0,this.#t.setFlavor(e.RuntimeModel.ExecutionContext,t),this.#o=!1,!0)}#l(){const t=this.#e.models(e.RuntimeModel.RuntimeModel);let n=null;for(let e=0;e<t.length&&!n;++e){const o=t[e].executionContexts();for(const e of o)if(this.#m(e)){n=e;break}}if(!n)for(let e=0;e<t.length&&!n;++e){const o=t[e].executionContexts();if(o.length){n=o[0];break}}this.#o=!0,this.#t.setFlavor(e.RuntimeModel.ExecutionContext,n),this.#o=!1}}var y=Object.freeze({__proto__:null,ExecutionContextSelector:R});const E={customizeAndControlDevtools:"Customize and control DevTools",dockSide:"Dock side",placementOfDevtoolsRelativeToThe:"Placement of DevTools relative to the page. ({PH1} to restore last position)",undockIntoSeparateWindow:"Undock into separate window",dockToBottom:"Dock to bottom",dockToRight:"Dock to right",dockToLeft:"Dock to left",focusDebuggee:"Focus page",hideConsoleDrawer:"Hide console drawer",showConsoleDrawer:"Show console drawer",moreTools:"More tools",help:"Help",dockSideNaviation:"Use left and right arrow keys to navigate the options"},F=o.i18n.registerUIStrings("entrypoints/main/MainImpl.ts",E),P=o.i18n.getLocalizedString.bind(void 0,F);class A{#u=Promise.withResolvers();constructor(){A.instanceForTest=this,this.#h()}static time(e){n.InspectorFrontendHost.isUnderTest()||console.time(e)}static timeEnd(e){n.InspectorFrontendHost.isUnderTest()||console.timeEnd(e)}async#h(){console.timeStamp("Main._loaded"),a.Runtime.Runtime.setPlatform(n.Platform.platform());const[e,o]=await Promise.all([new Promise((e=>{n.InspectorFrontendHost.InspectorFrontendHostInstance.getHostConfig(e)})),new Promise((e=>n.InspectorFrontendHost.InspectorFrontendHostInstance.getPreferences(e)))]);console.timeStamp("Main._gotPreferences"),this.#f(),Object.assign(a.Runtime.hostConfig,e),this.createSettings(o),await this.requestAndRegisterLocaleData(),n.userMetrics.syncSetting(t.Settings.Settings.instance().moduleSetting("sync-preferences").get());const i=e.devToolsVeLogging;if(i?.enabled)if(i?.testing){T.setVeDebugLoggingEnabled(!0,"Test");const e={processingThrottler:new t.Throttler.Throttler(0),keyboardLogThrottler:new t.Throttler.Throttler(10),hoverLogThrottler:new t.Throttler.Throttler(50),dragLogThrottler:new t.Throttler.Throttler(50),clickLogThrottler:new t.Throttler.Throttler(10),resizeLogThrottler:new t.Throttler.Throttler(10)};T.startLogging(e)}else T.startLogging();this.#w()}#f(){self.Extensions||={},self.Host||={},self.Host.userMetrics||=n.userMetrics,self.Host.UserMetrics||=n.UserMetrics,self.ProtocolClient||={},self.ProtocolClient.test||=s.InspectorBackend.test}async requestAndRegisterLocaleData(){const e=t.Settings.Settings.instance().moduleSetting("language").get(),i=o.DevToolsLocale.DevToolsLocale.instance({create:!0,data:{navigatorLanguage:navigator.language,settingLanguage:e,lookupClosestDevToolsLocale:o.i18n.lookupClosestSupportedDevToolsLocale}});n.userMetrics.language(i.locale),"en-US"!==i.locale&&await o.i18n.fetchAndRegisterLocaleData("en-US");try{await o.i18n.fetchAndRegisterLocaleData(i.locale)}catch(e){console.warn(`Unable to fetch & register locale data for '${i.locale}', falling back to 'en-US'. Cause: `,e),i.forceFallbackLocale()}}createSettings(e){this.#v();let o,i="";if(n.Platform.isCustomDevtoolsFrontend()?i="__custom__":a.Runtime.Runtime.queryParam("can_dock")||!Boolean(a.Runtime.Runtime.queryParam("debugFrontend"))||n.InspectorFrontendHost.isUnderTest()||(i="__bundled__"),!n.InspectorFrontendHost.isUnderTest()&&window.localStorage){const e={...t.Settings.NOOP_STORAGE,clear:()=>window.localStorage.clear()};o=new t.Settings.SettingsStorage(window.localStorage,e,i)}else o=new t.Settings.SettingsStorage({},t.Settings.NOOP_STORAGE,i);const s={register:e=>n.InspectorFrontendHost.InspectorFrontendHostInstance.registerPreference(e,{synced:!1}),set:n.InspectorFrontendHost.InspectorFrontendHostInstance.setPreference,get:e=>new Promise((t=>{n.InspectorFrontendHost.InspectorFrontendHostInstance.getPreference(e,t)})),remove:n.InspectorFrontendHost.InspectorFrontendHostInstance.removePreference,clear:n.InspectorFrontendHost.InspectorFrontendHostInstance.clearPreferences},r={...s,register:e=>n.InspectorFrontendHost.InspectorFrontendHostInstance.registerPreference(e,{synced:!0})},c=new t.Settings.SettingsStorage(e,r,i),l=new t.Settings.SettingsStorage(e,s,i);t.Settings.Settings.instance({forceNew:!0,syncedStorage:c,globalStorage:l,localStorage:o,logSettingAccess:T.logSettingAccess}),n.InspectorFrontendHost.isUnderTest()||(new t.Settings.VersionController).updateVersion()}#v(){a.Runtime.experiments.register("capture-node-creation-stacks","Capture node creation stacks"),a.Runtime.experiments.register("live-heap-profile","Live heap profile",!0),a.Runtime.experiments.register("protocol-monitor","Protocol Monitor",void 0,"https://developer.chrome.com/blog/new-in-devtools-92/#protocol-monitor"),a.Runtime.experiments.register("sampling-heap-profiler-timeline","Sampling heap profiler timeline",!0),a.Runtime.experiments.register("show-option-tp-expose-internals-in-heap-snapshot","Show option to expose internals in heap snapshots"),a.Runtime.experiments.register("timeline-invalidation-tracking","Performance panel: invalidation tracking",!0),a.Runtime.experiments.register("timeline-show-all-events","Performance panel: show all events",!0),a.Runtime.experiments.register("timeline-v8-runtime-call-stats","Performance panel: V8 runtime call stats",!0),a.Runtime.experiments.register("timeline-enhanced-traces","Performance panel: Enable collecting enhanced traces",!0),a.Runtime.experiments.register("timeline-compiled-sources","Performance panel: Enable collecting source text for compiled script",!0),a.Runtime.experiments.register("timeline-debug-mode","Performance panel: Enable debug mode (trace event details, etc)",!0),a.Runtime.experiments.register("instrumentation-breakpoints","Enable instrumentation breakpoints",!0),a.Runtime.experiments.register("use-source-map-scopes","Use scope information from source maps",!0),a.Runtime.experiments.register("apca","Enable new Advanced Perceptual Contrast Algorithm (APCA) replacing previous contrast ratio and AA/AAA guidelines",void 0,"https://developer.chrome.com/blog/new-in-devtools-89/#apca"),a.Runtime.experiments.register("full-accessibility-tree","Enable full accessibility tree view in the Elements panel",void 0,"https://developer.chrome.com/blog/new-in-devtools-90/#accesibility-tree","https://g.co/devtools/a11y-tree-feedback"),a.Runtime.experiments.register("font-editor","Enable new font editor within the Styles tab",void 0,"https://developer.chrome.com/blog/new-in-devtools-89/#font"),a.Runtime.experiments.register("contrast-issues","Enable automatic contrast issue reporting via the Issues panel",void 0,"https://developer.chrome.com/blog/new-in-devtools-90/#low-contrast"),a.Runtime.experiments.register("experimental-cookie-features","Enable experimental cookie features"),a.Runtime.experiments.register("highlight-errors-elements-panel","Highlights a violating node or attribute in the Elements panel DOM tree"),a.Runtime.experiments.register("authored-deployed-grouping","Group sources into authored and deployed trees",void 0,"https://goo.gle/authored-deployed","https://goo.gle/authored-deployed-feedback"),a.Runtime.experiments.register("just-my-code","Hide ignore-listed code in Sources tree view"),a.Runtime.experiments.register("network-panel-filter-bar-redesign","Redesign of the filter bar in the Network panel",!1,"https://goo.gle/devtools-network-filter-redesign","https://crbug.com/1500573"),a.Runtime.experiments.register("timeline-show-postmessage-events","Performance panel: show postMessage dispatch and handling flows"),a.Runtime.experiments.register("timeline-experimental-insights","Performance panel: enable experimental performance insights"),a.Runtime.experiments.register("timeline-dim-unrelated-events","Performance panel: enable dimming unrelated events in performance insights and search results"),a.Runtime.experiments.register("timeline-alternative-navigation","Performance panel: enable a switch to an alternative timeline navigation option"),r.RNExperimentsImpl.Instance.copyInto(a.Runtime.experiments,"[React Native] "),a.Runtime.experiments.enableExperimentsByDefault(["network-panel-filter-bar-redesign","timeline-alternative-navigation","timeline-dim-unrelated-events","full-accessibility-tree",...a.Runtime.Runtime.queryParam("isChromeForTesting")?["protocol-monitor"]:[]]),a.Runtime.experiments.cleanUpStaleExperiments();const e=a.Runtime.Runtime.queryParam("enabledExperiments");if(e&&a.Runtime.experiments.setServerEnabledExperiments(e.split(";")),a.Runtime.experiments.enableExperimentsTransiently([]),n.InspectorFrontendHost.isUnderTest()){const e=a.Runtime.Runtime.queryParam("test");e?.includes("live-line-level-heap-profile.js")&&a.Runtime.experiments.enableForTest("live-heap-profile")}for(const e of a.Runtime.experiments.allConfigurableExperiments())e.isEnabled()?n.userMetrics.experimentEnabledAtLaunch(e.name):n.userMetrics.experimentDisabledAtLaunch(e.name)}async#w(){A.time("Main._createAppUI"),f.IsolatedFileSystemManager.IsolatedFileSystemManager.instance();const o=t.Settings.Settings.instance().createSetting("ui-theme","systemPreferred");S.UIUtils.initializeUIUtils(document),M.ThemeSupport.hasInstance()||M.ThemeSupport.instance({forceNew:!0,setting:o}),S.UIUtils.addPlatformClass(document.documentElement),S.UIUtils.installComponentRootStyles(document.body),this.#x(document);const i=Boolean(a.Runtime.Runtime.queryParam("can_dock"));S.ZoomManager.ZoomManager.instance({forceNew:!0,win:window,frontendHost:n.InspectorFrontendHost.InspectorFrontendHostInstance}),S.ContextMenu.ContextMenu.initialize(),S.ContextMenu.ContextMenu.installHandler(document),h.NetworkLog.NetworkLog.instance(),e.FrameManager.FrameManager.instance(),h.LogManager.LogManager.instance(),p.IssuesManager.IssuesManager.instance({forceNew:!0,ensureFirst:!0,showThirdPartyIssuesSetting:p.Issue.getShowThirdPartyIssuesSetting(),hideIssueSetting:p.IssuesManager.getHideIssueByCodeSetting()}),p.ContrastCheckTrigger.ContrastCheckTrigger.instance(),S.DockController.DockController.instance({forceNew:!0,canDock:i}),e.NetworkManager.MultitargetNetworkManager.instance({forceNew:!0}),e.DOMDebuggerModel.DOMDebuggerManager.instance({forceNew:!0});const s=e.TargetManager.TargetManager.instance();s.addEventListener("SuspendStateChanged",this.#b.bind(this)),v.FileManager.FileManager.instance({forceNew:!0}),v.Workspace.WorkspaceImpl.instance(),l.NetworkProject.NetworkProjectManager.instance();const r=new l.ResourceMapping.ResourceMapping(s,v.Workspace.WorkspaceImpl.instance());new l.PresentationConsoleMessageHelper.PresentationConsoleMessageManager,l.CSSWorkspaceBinding.CSSWorkspaceBinding.instance({forceNew:!0,resourceMapping:r,targetManager:s}),l.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance({forceNew:!0,resourceMapping:r,targetManager:s}),s.setScopeTarget(s.primaryPageTarget()),S.Context.Context.instance().addFlavorChangeListener(e.Target.Target,(({data:e})=>{const t=e?.outermostTarget();s.setScopeTarget(t)})),d.BreakpointManager.BreakpointManager.instance({forceNew:!0,workspace:v.Workspace.WorkspaceImpl.instance(),targetManager:s,debuggerWorkspaceBinding:l.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()}),self.Extensions.extensionServer=m.ExtensionServer.ExtensionServer.instance({forceNew:!0}),new f.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding(f.IsolatedFileSystemManager.IsolatedFileSystemManager.instance(),v.Workspace.WorkspaceImpl.instance()),f.IsolatedFileSystemManager.IsolatedFileSystemManager.instance().addPlatformFileSystem("snippet://",new x.ScriptSnippetFileSystem.SnippetFileSystem),f.Persistence.PersistenceImpl.instance({forceNew:!0,workspace:v.Workspace.WorkspaceImpl.instance(),breakpointManager:d.BreakpointManager.BreakpointManager.instance()}),f.NetworkPersistenceManager.NetworkPersistenceManager.instance({forceNew:!0,workspace:v.Workspace.WorkspaceImpl.instance()}),new R(s,S.Context.Context.instance()),l.IgnoreListManager.IgnoreListManager.instance({forceNew:!0,debuggerWorkspaceBinding:l.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance()});const b=w.ProjectSettingsModel.ProjectSettingsModel.instance({forceNew:!0,hostConfig:a.Runtime.hostConfig,pageResourceLoader:e.PageResourceLoader.PageResourceLoader.instance(),targetManager:s});f.AutomaticFileSystemManager.AutomaticFileSystemManager.instance({forceNew:!0,hostConfig:a.Runtime.hostConfig,inspectorFrontendHost:n.InspectorFrontendHost.InspectorFrontendHostInstance,projectSettingsModel:b}),c.AutofillManager.AutofillManager.instance(),u.LiveMetrics.instance(),g.CrUXManager.instance(),new N;const I=S.ActionRegistry.ActionRegistry.instance({forceNew:!0});S.ShortcutRegistry.ShortcutRegistry.instance({forceNew:!0,actionRegistry:I}),this.#I(),A.timeEnd("Main._createAppUI");const k=t.AppProvider.getRegisteredAppProviders()[0];if(!k)throw new Error("Unable to boot DevTools, as the appprovider is missing");await this.#S(await k.loadAppProvider())}async#S(e){A.time("Main._showAppUI");const t=e.createApp();if(S.DockController.DockController.instance().initialize(),M.ThemeSupport.instance().fetchColorsAndApplyHostTheme(),t.presentUI(document),S.ActionRegistry.ActionRegistry.instance().hasAction("elements.toggle-element-search")){const e=S.ActionRegistry.ActionRegistry.instance().getAction("elements.toggle-element-search");n.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(n.InspectorFrontendHostAPI.Events.EnterInspectElementMode,(()=>{e.execute()}),this)}n.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(n.InspectorFrontendHostAPI.Events.RevealSourceLine,this.#M,this),await S.InspectorView.InspectorView.instance().createToolbars(),n.InspectorFrontendHost.InspectorFrontendHostInstance.loadCompleted();const o=a.Runtime.Runtime.queryParam("loadTimelineFromURL");if(null!==o){(await import("../../panels/timeline/timeline.js")).TimelinePanel.LoadTimelineHandler.instance().handleQueryParam(o)}else{"timeline"===a.Runtime.Runtime.queryParam("panel")&&await import("../../panels/timeline/timeline.js")}S.ARIAUtils.getOrCreateAlertElements(),S.DockController.DockController.instance().announceDockLocation(),window.setTimeout(this.#k.bind(this),0),A.timeEnd("Main._showAppUI")}async#k(){A.time("Main._initializeTarget");for(const e of t.Runnable.earlyInitializationRunnables())await e().run();n.InspectorFrontendHost.InspectorFrontendHostInstance.readyForTest(),this.#u.resolve(),window.setTimeout(this.#C.bind(this),100),await this.#T(),A.timeEnd("Main._initializeTarget")}async#T(){const n=e.TargetManager.TargetManager.instance().primaryPageTarget(),o=n?.targetInfo()?.url,i=o?t.ParsedURL.ParsedURL.extractOrigin(o):void 0,s="__devtools_ve_inspection_binding__";if(n&&await T.isUnderInspection(i)){const t=n.model(e.RuntimeModel.RuntimeModel);await(t?.addBinding({name:s})),t?.addEventListener(e.RuntimeModel.Events.BindingCalled,(e=>{e.data.name===s&&T.setVeDebuggingEnabled("true"===e.data.payload,(e=>{T.setVeDebuggingEnabled(!1),t?.defaultExecutionContext()?.evaluate({expression:`window.inspect(${JSON.stringify(e)})`,includeCommandLineAPI:!1,silent:!0,returnByValue:!1,generatePreview:!1},!1,!1)}))}))}}async#C(){A.time("Main._lateInitialization"),m.ExtensionServer.ExtensionServer.instance().initializeExtensions();const e=t.Runnable.lateInitializationRunnables().map((async e=>{const t=await e();return await t.run()}));if(a.Runtime.experiments.isEnabled("live-heap-profile")){const n=await import("../../ui/legacy/components/perf_ui/perf_ui.js"),o="memory-live-heap-profile";if(t.Settings.Settings.instance().moduleSetting(o).get())e.push(n.LiveHeapProfile.LiveHeapProfile.instance().run());else{const e=async i=>{i.data&&(t.Settings.Settings.instance().moduleSetting(o).removeChangeListener(e),n.LiveHeapProfile.LiveHeapProfile.instance().run())};t.Settings.Settings.instance().moduleSetting(o).addChangeListener(e)}}A.timeEnd("Main._lateInitialization")}readyForTest(){return this.#u.promise}#I(){t.Console.Console.instance().addEventListener("messageAdded",(function({data:e}){e.show&&t.Console.Console.instance().show()}))}#M(e){const{url:n,lineNumber:o,columnNumber:i}=e.data,s=v.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(n);s?t.Revealer.reveal(s.uiLocation(o,i)):v.Workspace.WorkspaceImpl.instance().addEventListener(v.Workspace.Events.UISourceCodeAdded,(function e(s){const r=s.data;r.url()===n&&(t.Revealer.reveal(r.uiLocation(o,i)),v.Workspace.WorkspaceImpl.instance().removeEventListener(v.Workspace.Events.UISourceCodeAdded,e))}))}#R(e){e.handled||S.ShortcutRegistry.ShortcutRegistry.instance().handleShortcut(e)}#y(e){const t=new CustomEvent("clipboard-"+e.type,{bubbles:!0});t.original=e;const n=e.target&&e.target.ownerDocument,o=n?i.DOMUtilities.deepActiveElement(n):null;o&&o.dispatchEvent(t),t.handled&&e.preventDefault()}#E(e){(e.handled||e.target.classList.contains("popup-glasspane"))&&e.preventDefault()}#x(e){e.addEventListener("keydown",this.#R.bind(this),!1),e.addEventListener("beforecopy",this.#y.bind(this),!0),e.addEventListener("copy",this.#y.bind(this),!1),e.addEventListener("cut",this.#y.bind(this),!1),e.addEventListener("paste",this.#y.bind(this),!1),e.addEventListener("contextmenu",this.#E.bind(this),!0)}#b(){const t=e.TargetManager.TargetManager.instance().allTargetsSuspended();S.InspectorView.InspectorView.instance().onSuspendStateChanged(t)}static instanceForTest=null}globalThis.Main=globalThis.Main||{},globalThis.Main.Main=A;let L,D;class H{#F;constructor(){this.#F=new S.Toolbar.ToolbarMenuButton(this.#P.bind(this),!0,!0,"main-menu","dots-vertical"),this.#F.element.classList.add("main-menu"),this.#F.setTitle(P(E.customizeAndControlDevtools))}static instance(e={forceNew:null}){const{forceNew:t}=e;return L&&!t||(L=new H),L}item(){return this.#F}#P(t){const o=S.DockController.DockController.instance();if(o.canDock()){const e=document.createElement("div");e.classList.add("flex-auto","flex-centered","location-menu"),e.setAttribute("jslog",`${T.item("dock-side").track({keydown:"ArrowDown|ArrowLeft|ArrowRight"})}`),e.tabIndex=-1,S.ARIAUtils.setLabel(e,E.dockSide+E.dockSideNaviation);const[n]=S.ShortcutRegistry.ShortcutRegistry.instance().shortcutsForAction("main.toggle-dock");k(C`
|
|
2
|
+
<span class="dockside-title"
|
|
3
|
+
title=${P(E.placementOfDevtoolsRelativeToThe,{PH1:n.title()})}>
|
|
4
|
+
${P(E.dockSide)}
|
|
5
|
+
</span>
|
|
6
|
+
<devtools-toolbar @mousedown=${e=>e.consume()}>
|
|
7
|
+
<devtools-button class="toolbar-button"
|
|
8
|
+
jslog=${T.toggle().track({click:!0}).context("current-dock-state-undock")}
|
|
9
|
+
title=${P(E.undockIntoSeparateWindow)}
|
|
10
|
+
aria-label=${P(E.undockIntoSeparateWindow)}
|
|
11
|
+
.iconName=${"dock-window"}
|
|
12
|
+
.toggled=${"undocked"===o.dockSide()}
|
|
13
|
+
.toggledIconName=${"dock-window"}
|
|
14
|
+
.toggleType=${"primary-toggle"}
|
|
15
|
+
.variant=${"icon_toggle"}
|
|
16
|
+
@click=${r.bind(null,"undocked")}></devtools-button>
|
|
17
|
+
<devtools-button class="toolbar-button"
|
|
18
|
+
jslog=${T.toggle().track({click:!0}).context("current-dock-state-left")}
|
|
19
|
+
title=${P(E.dockToLeft)}
|
|
20
|
+
aria-label=${P(E.dockToLeft)}
|
|
21
|
+
.iconName=${"dock-left"}
|
|
22
|
+
.toggled=${"left"===o.dockSide()}
|
|
23
|
+
.toggledIconName=${"dock-left"}
|
|
24
|
+
.toggleType=${"primary-toggle"}
|
|
25
|
+
.variant=${"icon_toggle"}
|
|
26
|
+
@click=${r.bind(null,"left")}></devtools-button>
|
|
27
|
+
<devtools-button class="toolbar-button"
|
|
28
|
+
jslog=${T.toggle().track({click:!0}).context("current-dock-state-bottom")}
|
|
29
|
+
title=${P(E.dockToBottom)}
|
|
30
|
+
aria-label=${P(E.dockToBottom)}
|
|
31
|
+
.iconName=${"dock-bottom"}
|
|
32
|
+
.toggled=${"bottom"===o.dockSide()}
|
|
33
|
+
.toggledIconName=${"dock-bottom"}
|
|
34
|
+
.toggleType=${"primary-toggle"}
|
|
35
|
+
.variant=${"icon_toggle"}
|
|
36
|
+
@click=${r.bind(null,"bottom")}></devtools-button>
|
|
37
|
+
<devtools-button class="toolbar-button"
|
|
38
|
+
jslog=${T.toggle().track({click:!0}).context("current-dock-state-right")}
|
|
39
|
+
title=${P(E.dockToRight)}
|
|
40
|
+
aria-label=${P(E.dockToRight)}
|
|
41
|
+
.iconName=${"dock-right"}
|
|
42
|
+
.toggled=${"right"===o.dockSide()}
|
|
43
|
+
.toggledIconName=${"dock-right"}
|
|
44
|
+
.toggleType=${"primary-toggle"}
|
|
45
|
+
.variant=${"icon_toggle"}
|
|
46
|
+
@click=${r.bind(null,"right")}></devtools-button>
|
|
47
|
+
</devtools-toolbar>
|
|
48
|
+
`,e,{host:this}),e.addEventListener("keydown",(t=>{let n=0;if("ArrowLeft"===t.key)n=-1;else{if("ArrowRight"!==t.key){if("ArrowDown"===t.key){const t=e.closest(".soft-context-menu");return void t?.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowDown"}))}return}n=1}const o=Array.from(e.querySelectorAll("devtools-button"));let s=o.findIndex((e=>e.hasFocus()));s=i.NumberUtilities.clamp(s+n,0,o.length-1),o[s].focus(),t.consume(!0)})),t.headerSection().appendCustomItem(e,"dock-side")}const s=this.#F.element;function r(e){o.once("AfterDockSideChanged").then((()=>s.focus())),o.setDockSide(e),t.discard()}if("undocked"===o.dockSide()){const n=e.TargetManager.TargetManager.instance().primaryPageTarget();n&&n.type()===e.Target.Type.FRAME&&t.defaultSection().appendAction("inspector-main.focus-debuggee",P(E.focusDebuggee))}t.defaultSection().appendAction("main.toggle-drawer",S.InspectorView.InspectorView.instance().drawerVisible()?P(E.hideConsoleDrawer):P(E.showConsoleDrawer)),t.appendItemsAtLocation("mainMenu");const a=t.defaultSection().appendSubMenuItem(P(E.moreTools),!1,"more-tools"),c=S.ViewManager.getRegisteredViewExtensions();c.sort(((e,t)=>{const n=e.title(),o=t.title();return n.localeCompare(o)}));for(const e of c){const t=e.location(),o=e.persistence(),i=e.title(),s=e.viewId();if("issues-pane"!==s){if("closeable"===o&&("drawer-view"===t||"panel"===t))if(e.isPreviewFeature()){const e=b.Icon.create("experiment");a.defaultSection().appendItem(i,(()=>{S.ViewManager.ViewManager.instance().showView(s,!0,!1)}),{disabled:!1,additionalElement:e,jslogContext:s})}else a.defaultSection().appendItem(i,(()=>{S.ViewManager.ViewManager.instance().showView(s,!0,!1)}),{jslogContext:s})}else a.defaultSection().appendItem(i,(()=>{n.userMetrics.issuesPanelOpenedFrom(3),S.ViewManager.ViewManager.instance().showView("issues-pane",!0)}),{jslogContext:s})}t.footerSection().appendSubMenuItem(P(E.help),!1,"help").appendItemsAtLocation("mainMenuHelp")}}class _{#A;constructor(){this.#A=S.Toolbar.Toolbar.createActionButton("settings.show")}static instance(e={forceNew:null}){const{forceNew:t}=e;return D&&!t||(D=new _),D}item(){return this.#A}}class N{constructor(){e.TargetManager.TargetManager.instance().addModelListener(e.DebuggerModel.DebuggerModel,e.DebuggerModel.Events.DebuggerPaused,this.#L,this)}#L(n){e.TargetManager.TargetManager.instance().removeModelListener(e.DebuggerModel.DebuggerModel,e.DebuggerModel.Events.DebuggerPaused,this.#L,this);const o=n.data,i=o.debuggerPausedDetails();S.Context.Context.instance().setFlavor(e.Target.Target,o.target()),t.Revealer.reveal(i)}}var j=Object.freeze({__proto__:null,MainImpl:A,MainMenuItem:H,PauseListener:N,ReloadActionDelegate:class{handleAction(e,t){return"main.debug-reload"===t&&(I.Reload.reload(),!0)}},SearchActionDelegate:class{handleAction(e,t){let n=S.SearchableView.SearchableView.fromElement(i.DOMUtilities.deepActiveElement(document));if(!n){const e=S.InspectorView.InspectorView.instance().currentPanelDeprecated();if(e?.searchableView&&(n=e.searchableView()),!n)return!1}switch(t){case"main.search-in-panel.find":return n.handleFindShortcut();case"main.search-in-panel.cancel":return n.handleCancelSearchShortcut();case"main.search-in-panel.find-next":return n.handleFindNextShortcut();case"main.search-in-panel.find-previous":return n.handleFindPreviousShortcut()}return!1}},SettingsButtonProvider:_,ZoomActionDelegate:class{handleAction(e,t){if(n.InspectorFrontendHost.InspectorFrontendHostInstance.isHostedMode())return!1;switch(t){case"main.zoom-in":return n.InspectorFrontendHost.InspectorFrontendHostInstance.zoomIn(),!0;case"main.zoom-out":return n.InspectorFrontendHost.InspectorFrontendHostInstance.zoomOut(),!0;case"main.zoom-reset":return n.InspectorFrontendHost.InspectorFrontendHostInstance.resetZoom(),!0}return!1}},sendOverProtocol:function(e,t){return new Promise(((n,o)=>{const i=s.InspectorBackend.test.sendRawMessage;if(!i)return o("Unable to send message to test client");i(e,t,((e,...t)=>e?o(e):n(t)))}))}});class U{presentUI(e){const t=new S.RootView.RootView;S.InspectorView.InspectorView.instance().show(t.element),t.attachToDocument(e),t.focus()}}let W;class ${static instance(e={forceNew:null}){const{forceNew:t}=e;return W&&!t||(W=new $),W}createApp(){return new U}}var B=Object.freeze({__proto__:null,SimpleApp:U,SimpleAppProvider:$});export{y as ExecutionContextSelector,j as MainImpl,B as SimpleApp};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../shell/shell.js";import*as m from"../main/main.js";new m.MainImpl.MainImpl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/legacy.js";import*as n from"../../core/root/root.js";import*as i from"../../core/sdk/sdk.js";import*as r from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as a from"../../panels/network/forward/forward.js";import*as c from"../main/main.js";import*as l from"../../core/host/host.js";import"../../ui/components/buttons/buttons.js";import*as d from"../../ui/legacy/components/utils/utils.js";const g={throttling:"Throttling",showThrottling:"Show Throttling",goOffline:"Go offline",device:"device",throttlingTag:"throttling",enableSlowGThrottling:"Enable slow `3G` throttling",enableFastGThrottling:"Enable fast `3G` throttling",goOnline:"Go online"},w=t.i18n.registerUIStrings("panels/mobile_throttling/mobile_throttling-meta.ts",g),p=t.i18n.getLazilyComputedLocalizedString.bind(void 0,w);let h;async function m(){return h||(h=await import("../../panels/mobile_throttling/mobile_throttling.js")),h}o.ViewManager.registerViewExtension({location:"settings-view",id:"throttling-conditions",title:p(g.throttling),commandPrompt:p(g.showThrottling),order:35,loadView:async()=>new((await m()).ThrottlingSettingsTab.ThrottlingSettingsTab),settings:["custom-network-conditions","calibrated-cpu-throttling"],iconName:"performance"}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-offline",category:"NETWORK",title:p(g.goOffline),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-low-end-mobile",category:"NETWORK",title:p(g.enableSlowGThrottling),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-mid-tier-mobile",category:"NETWORK",title:p(g.enableFastGThrottling),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-online",category:"NETWORK",title:p(g.goOnline),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"custom-network-conditions",settingType:"array",defaultValue:[]});const u={performance:"Performance",showPerformance:"Show Performance",showRecentTimelineSessions:"Show recent timeline sessions",record:"Record",stop:"Stop",recordAndReload:"Record and reload"},k=t.i18n.registerUIStrings("panels/js_timeline/js_timeline-meta.ts",u),v=t.i18n.getLazilyComputedLocalizedString.bind(void 0,k);let y;async function f(){return y||(y=await import("../../panels/timeline/timeline.js")),y}function T(e){return void 0===y?[]:e(y)}o.ViewManager.registerViewExtension({location:"panel",id:"timeline",title:v(u.performance),commandPrompt:v(u.showPerformance),order:66,hasToolbar:!1,isPreviewFeature:!0,loadView:async()=>(await f()).TimelinePanel.TimelinePanel.instance({forceNew:null,isNode:!0})}),o.ActionRegistration.registerActionExtension({actionId:"timeline.show-history",loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),category:"PERFORMANCE",title:v(u.showRecentTimelineSessions),contextTypes:()=>T((e=>[e.TimelinePanel.TimelinePanel])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+H"},{platform:"mac",shortcut:"Meta+Y"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.toggle-recording",category:"PERFORMANCE",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>T((e=>[e.TimelinePanel.TimelinePanel])),loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),options:[{value:!0,title:v(u.record)},{value:!1,title:v(u.stop)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.record-reload",iconClass:"refresh",contextTypes:()=>T((e=>[e.TimelinePanel.TimelinePanel])),category:"PERFORMANCE",title:v(u.recordAndReload),loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+E"},{platform:"mac",shortcut:"Meta+Shift+E"}]}),e.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",settingName:"annotations-hidden",settingType:"boolean",defaultValue:!0});const R={showNetwork:"Show Network",network:"Network",networkExpoUnstable:"Expo Network",showNetworkRequestBlocking:"Show Network request blocking",networkRequestBlocking:"Network request blocking",showNetworkConditions:"Show Network conditions",networkConditions:"Network conditions",diskCache:"disk cache",networkThrottling:"network throttling",showSearch:"Show Search",search:"Search",recordNetworkLog:"Record network log",stopRecordingNetworkLog:"Stop recording network log",hideRequestDetails:"Hide request details",colorcodeResourceTypes:"Color-code resource types",colorCode:"color code",resourceType:"resource type",colorCodeByResourceType:"Color code by resource type",useDefaultColors:"Use default colors",groupNetworkLogByFrame:"Group network log by frame",netWork:"network",frame:"frame",group:"group",groupNetworkLogItemsByFrame:"Group network log items by frame",dontGroupNetworkLogItemsByFrame:"Don't group network log items by frame",clear:"Clear network log",addNetworkRequestBlockingPattern:"Add network request blocking pattern",removeAllNetworkRequestBlockingPatterns:"Remove all network request blocking patterns",allowToGenerateHarWithSensitiveData:"Allow to generate `HAR` with sensitive data",dontAllowToGenerateHarWithSensitiveData:"Don't allow to generate `HAR` with sensitive data",allowToGenerateHarWithSensitiveDataDocumentation:"By default generated HAR logs are sanitized and don't include `Cookie`, `Set-Cookie`, or `Authorization` HTTP headers. When this setting is enabled, options to export/copy HAR with sensitive data are provided."},N=t.i18n.registerUIStrings("panels/network/network-meta.ts",R),x=t.i18n.getLazilyComputedLocalizedString.bind(void 0,N),C=t.i18n.getLocalizedString.bind(void 0,N);let D;async function E(){return D||(D=await import("../../panels/network/network.js")),D}function I(e){return void 0===D?[]:e(D)}o.ViewManager.registerViewExtension({location:"panel",id:"network",commandPrompt:x(R.showNetwork),title:()=>n.Runtime.conditions.reactNativeExpoNetworkPanel()?C(R.networkExpoUnstable):C(R.network),order:40,loadView:async()=>(await E()).NetworkPanel.NetworkPanel.instance()}),o.ViewManager.registerViewExtension({location:"drawer-view",id:"network.blocked-urls",commandPrompt:x(R.showNetworkRequestBlocking),title:x(R.networkRequestBlocking),persistence:"closeable",order:60,loadView:async()=>new((await E()).BlockedURLsPane.BlockedURLsPane)}),o.ViewManager.registerViewExtension({location:"drawer-view",id:"network.config",commandPrompt:x(R.showNetworkConditions),title:x(R.networkConditions),persistence:"closeable",order:40,tags:[x(R.diskCache),x(R.networkThrottling),t.i18n.lockedLazyString("useragent"),t.i18n.lockedLazyString("user agent"),t.i18n.lockedLazyString("user-agent")],loadView:async()=>(await E()).NetworkConfigView.NetworkConfigView.instance()}),o.ViewManager.registerViewExtension({location:"network-sidebar",id:"network.search-network-tab",commandPrompt:x(R.showSearch),title:x(R.search),persistence:"permanent",loadView:async()=>(await E()).NetworkPanel.SearchNetworkView.instance()}),o.ActionRegistration.registerActionExtension({actionId:"network.toggle-recording",category:"NETWORK",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>I((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await E()).NetworkPanel.ActionDelegate),options:[{value:!0,title:x(R.recordNetworkLog)},{value:!1,title:x(R.stopRecordingNetworkLog)}],bindings:[{shortcut:"Ctrl+E",platform:"windows,linux"},{shortcut:"Meta+E",platform:"mac"}]}),o.ActionRegistration.registerActionExtension({actionId:"network.clear",category:"NETWORK",title:x(R.clear),iconClass:"clear",loadActionDelegate:async()=>new((await E()).NetworkPanel.ActionDelegate),contextTypes:()=>I((e=>[e.NetworkPanel.NetworkPanel])),bindings:[{shortcut:"Ctrl+L"},{shortcut:"Meta+K",platform:"mac"}]}),o.ActionRegistration.registerActionExtension({actionId:"network.hide-request-details",category:"NETWORK",title:x(R.hideRequestDetails),contextTypes:()=>I((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await E()).NetworkPanel.ActionDelegate),bindings:[{shortcut:"Esc"}]}),o.ActionRegistration.registerActionExtension({actionId:"network.search",category:"NETWORK",title:x(R.search),contextTypes:()=>I((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await E()).NetworkPanel.ActionDelegate),bindings:[{platform:"mac",shortcut:"Meta+F",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+F",keybindSets:["devToolsDefault","vsCode"]}]}),o.ActionRegistration.registerActionExtension({actionId:"network.add-network-request-blocking-pattern",category:"NETWORK",title:x(R.addNetworkRequestBlockingPattern),iconClass:"plus",contextTypes:()=>I((e=>[e.BlockedURLsPane.BlockedURLsPane])),loadActionDelegate:async()=>new((await E()).BlockedURLsPane.ActionDelegate)}),o.ActionRegistration.registerActionExtension({actionId:"network.remove-all-network-request-blocking-patterns",category:"NETWORK",title:x(R.removeAllNetworkRequestBlockingPatterns),iconClass:"clear",contextTypes:()=>I((e=>[e.BlockedURLsPane.BlockedURLsPane])),loadActionDelegate:async()=>new((await E()).BlockedURLsPane.ActionDelegate)}),e.Settings.registerSettingExtension({category:"NETWORK",storageType:"Synced",title:x(R.allowToGenerateHarWithSensitiveData),settingName:"network.show-options-to-generate-har-with-sensitive-data",settingType:"boolean",defaultValue:!1,tags:[t.i18n.lockedLazyString("HAR")],options:[{value:!0,title:x(R.allowToGenerateHarWithSensitiveData)},{value:!1,title:x(R.dontAllowToGenerateHarWithSensitiveData)}],learnMore:{url:"https://goo.gle/devtools-export-hars",tooltip:x(R.allowToGenerateHarWithSensitiveDataDocumentation)}}),e.Settings.registerSettingExtension({category:"NETWORK",storageType:"Synced",title:x(R.colorcodeResourceTypes),settingName:"network-color-code-resource-types",settingType:"boolean",defaultValue:!1,tags:[x(R.colorCode),x(R.resourceType)],options:[{value:!0,title:x(R.colorCodeByResourceType)},{value:!1,title:x(R.useDefaultColors)}]}),e.Settings.registerSettingExtension({category:"NETWORK",storageType:"Synced",title:x(R.groupNetworkLogByFrame),settingName:"network.group-by-frame",settingType:"boolean",defaultValue:!1,tags:[x(R.netWork),x(R.frame),x(R.group)],options:[{value:!0,title:x(R.groupNetworkLogItemsByFrame)},{value:!1,title:x(R.dontGroupNetworkLogItemsByFrame)}]}),o.ViewManager.registerLocationResolver({name:"network-sidebar",category:"NETWORK",loadResolver:async()=>(await E()).NetworkPanel.NetworkPanel.instance()}),o.ContextMenu.registerProvider({contextTypes:()=>[i.NetworkRequest.NetworkRequest,i.Resource.Resource,s.UISourceCode.UISourceCode,i.TraceObject.RevealableNetworkRequest],loadProvider:async()=>(await E()).NetworkPanel.NetworkPanel.instance(),experiment:void 0}),e.Revealer.registerRevealer({contextTypes:()=>[i.NetworkRequest.NetworkRequest],destination:e.Revealer.RevealerDestination.NETWORK_PANEL,loadRevealer:async()=>new((await E()).NetworkPanel.RequestRevealer)}),e.Revealer.registerRevealer({contextTypes:()=>[a.UIRequestLocation.UIRequestLocation],destination:void 0,loadRevealer:async()=>new((await E()).NetworkPanel.RequestLocationRevealer)}),e.Revealer.registerRevealer({contextTypes:()=>[a.NetworkRequestId.NetworkRequestId],destination:e.Revealer.RevealerDestination.NETWORK_PANEL,loadRevealer:async()=>new((await E()).NetworkPanel.RequestIdRevealer)}),e.Revealer.registerRevealer({contextTypes:()=>[a.UIFilter.UIRequestFilter,r.ExtensionServer.RevealableNetworkRequestFilter],destination:e.Revealer.RevealerDestination.NETWORK_PANEL,loadRevealer:async()=>new((await E()).NetworkPanel.NetworkLogWithFilterRevealer)});var A={cssText:`.add-network-target-button{margin:10px 25px;align-self:center}.network-discovery-list{flex:none;max-width:600px;max-height:202px;margin:20px 0 5px}.network-discovery-list-empty{flex:auto;height:30px;display:flex;align-items:center;justify-content:center}.network-discovery-list-item{padding:3px 5px;height:30px;display:flex;align-items:center;position:relative;flex:auto 1 1}.network-discovery-value{flex:3 1 0}.list-item .network-discovery-value{white-space:nowrap;text-overflow:ellipsis;user-select:none;color:var(--sys-color-on-surface);overflow:hidden}.network-discovery-edit-row{flex:none;display:flex;flex-direction:row;margin:6px 5px;align-items:center}.network-discovery-edit-row input{width:100%;text-align:inherit}.network-discovery-footer{margin:0;overflow:hidden;max-width:500px;padding:3px}.network-discovery-footer > *{white-space:pre-wrap}.node-panel{align-items:center;justify-content:flex-start;overflow-y:auto}.network-discovery-view{min-width:400px;text-align:left}:host-context(.node-frontend) .network-discovery-list-empty{height:40px}:host-context(.node-frontend) .network-discovery-list-item{padding:3px 15px;height:40px}.node-panel-center{max-width:600px;padding-top:50px;text-align:center}.node-panel-logo{width:400px;margin-bottom:50px}:host-context(.node-frontend) .network-discovery-edit-row input{height:30px;padding-left:5px}:host-context(.node-frontend) .network-discovery-edit-row{margin:6px 9px}\n/*# sourceURL=${import.meta.resolve("./nodeConnectionsPanel.css")} */\n`};const S={nodejsDebuggingGuide:"Node.js debugging guide",specifyNetworkEndpointAnd:"Specify network endpoint and DevTools will connect to it automatically. Read {PH1} to learn more.",noConnectionsSpecified:"No connections specified",addConnection:"Add connection",networkAddressEgLocalhost:"Network address (e.g. localhost:9229)"},b=t.i18n.registerUIStrings("entrypoints/node_app/NodeConnectionsPanel.ts",S),P=t.i18n.getLocalizedString.bind(void 0,b),L=new URL("../../Images/node-stack-icon.svg",import.meta.url).toString();class M extends o.Panel.Panel{#e;#t;constructor(){super("node-connection"),this.contentElement.classList.add("node-panel");const e=this.contentElement.createChild("div","node-panel-center");e.createChild("img","node-panel-logo").src=L,l.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(l.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged,this.#o,this),this.contentElement.tabIndex=0,this.setDefaultFocusedElement(this.contentElement),l.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesUpdatesEnabled(!1),l.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesUpdatesEnabled(!0),this.#t=new F((e=>{this.#e.networkDiscoveryConfig=e,l.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesDiscoveryConfig(this.#e)})),this.#t.show(e)}#o({data:e}){this.#e=e,this.#t.discoveryConfigChanged(this.#e.networkDiscoveryConfig)}wasShown(){super.wasShown(),this.registerRequiredCSS(A)}}class F extends o.Widget.VBox{#n;#i;#r;#s;constructor(e){super(),this.#n=e,this.element.classList.add("network-discovery-view");const n=this.element.createChild("div","network-discovery-footer"),i=o.XLink.XLink.create("https://nodejs.org/en/docs/inspector/",P(S.nodejsDebuggingGuide),void 0,void 0,"node-js-debugging");n.appendChild(t.i18n.getFormatLocalizedString(b,S.specifyNetworkEndpointAnd,{PH1:i})),this.#i=new o.ListWidget.ListWidget(this),this.#i.registerRequiredCSS(A),this.#i.element.classList.add("network-discovery-list");const r=document.createElement("div");r.classList.add("network-discovery-list-empty"),r.textContent=P(S.noConnectionsSpecified),this.#i.setEmptyPlaceholder(r),this.#i.show(this.element),this.#r=null;const s=o.UIUtils.createTextButton(P(S.addConnection),this.#a.bind(this),{className:"add-network-target-button",variant:"primary"});this.element.appendChild(s),this.#s=[],this.element.classList.add("node-frontend")}#c(){const e=this.#s.map((e=>e.address));this.#n.call(null,e)}#a(){this.#i.addNewItem(this.#s.length,{address:"",port:""})}discoveryConfigChanged(e){this.#s=[],this.#i.clear();for(const t of e){const e={address:t,port:""};this.#s.push(e),this.#i.appendItem(e,!0)}}renderItem(e,t){const o=document.createElement("div");return o.classList.add("network-discovery-list-item"),o.createChild("div","network-discovery-value network-discovery-address").textContent=e.address,o}removeItemRequested(e,t){this.#s.splice(t,1),this.#i.removeItem(t),this.#c()}commitEdit(e,t,o){e.address=t.control("address").value.trim(),o&&this.#s.push(e),this.#c()}beginEdit(e){const t=this.#l();return t.control("address").value=e.address,t}#l(){if(this.#r)return this.#r;const e=new o.ListWidget.Editor;this.#r=e;const t=e.contentElement().createChild("div","network-discovery-edit-row"),n=e.createInput("address","text",P(S.networkAddressEgLocalhost),(function(e,t,o){const n=o.value.trim().match(/^([a-zA-Z0-9\.\-_]+):(\d+)$/);if(!n)return{valid:!1,errorMessage:void 0};return{valid:parseInt(n[2],10)<=65535,errorMessage:void 0}}));return t.createChild("div","network-discovery-value network-discovery-address").appendChild(n),e}}const H={main:"Main",nodejsS:"Node.js: {PH1}",NodejsTitleS:"DevTools - Node.js: {PH1}"},V=t.i18n.registerUIStrings("entrypoints/node_app/NodeMain.ts",H),W=t.i18n.getLocalizedString.bind(void 0,V);let q;class j{static instance(e={forceNew:null}){const{forceNew:t}=e;return q&&!t||(q=new j),q}async run(){l.userMetrics.actionTaken(l.UserMetrics.Action.ConnectToNodeJSFromFrontend),i.Connections.initMainConnection((async()=>{i.TargetManager.TargetManager.instance().createTarget("main",W(H.main),i.Target.Type.BROWSER,null).setInspectedURL("Node.js")}),d.TargetDetachedDialog.TargetDetachedDialog.connectionLost)}}class U extends i.SDKModel.SDKModel{#d;#g;#w;#p=new Map;#h=new Map;constructor(e){super(e),this.#d=e.targetManager(),this.#g=e,this.#w=e.targetAgent(),e.registerTargetDispatcher(this),this.#w.invoke_setDiscoverTargets({discover:!0}),l.InspectorFrontendHost.InspectorFrontendHostInstance.events.addEventListener(l.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged,this.#o,this),l.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesUpdatesEnabled(!1),l.InspectorFrontendHost.InspectorFrontendHostInstance.setDevicesUpdatesEnabled(!0)}#o({data:e}){const t=[];for(const o of e.networkDiscoveryConfig){const e=o.split(":"),n=parseInt(e[1],10);e[0]&&n&&t.push({host:e[0],port:n})}this.#w.invoke_setRemoteLocations({locations:t})}dispose(){l.InspectorFrontendHost.InspectorFrontendHostInstance.events.removeEventListener(l.InspectorFrontendHostAPI.Events.DevicesDiscoveryConfigChanged,this.#o,this);for(const e of this.#p.keys())this.detachedFromTarget({sessionId:e})}targetCreated({targetInfo:e}){"node"!==e.type||e.attached||this.#w.invoke_attachToTarget({targetId:e.targetId,flatten:!1})}targetInfoChanged(e){}targetDestroyed(e){}attachedToTarget({sessionId:e,targetInfo:t}){const o=W(H.nodejsS,{PH1:t.url});document.title=W(H.NodejsTitleS,{PH1:t.url});const n=new B(this.#w,e);this.#h.set(e,n);const r=this.#d.createTarget(t.targetId,o,i.Target.Type.NODE,this.#g,void 0,void 0,n);this.#p.set(e,r),r.runtimeAgent().invoke_runIfWaitingForDebugger()}detachedFromTarget({sessionId:e}){const t=this.#p.get(e);t&&t.dispose("target terminated"),this.#p.delete(e),this.#h.delete(e)}receivedMessageFromTarget({sessionId:e,message:t}){const o=this.#h.get(e),n=o?o.onMessage:null;n&&n.call(null,t)}targetCrashed(e){}}class B{#w;#m;onMessage;#u;constructor(e,t){this.#w=e,this.#m=t,this.onMessage=null,this.#u=null}setOnMessage(e){this.onMessage=e}setOnDisconnect(e){this.#u=e}sendRawMessage(e){this.#w.invoke_sendMessageToTarget({message:e,sessionId:this.#m})}async disconnect(){this.#u&&this.#u.call(null,"force disconnect"),this.#u=null,this.onMessage=null,await this.#w.invoke_detachFromTarget({sessionId:this.#m})}}i.SDKModel.SDKModel.register(U,{capabilities:32,autostart:!0});const O={connection:"Connection",node:"node",showConnection:"Show Connection",networkTitle:"Node",showNode:"Show Node"},K=t.i18n.registerUIStrings("entrypoints/node_app/node_app.ts",O),G=t.i18n.getLazilyComputedLocalizedString.bind(void 0,K);let z;o.ViewManager.registerViewExtension({location:"panel",id:"node-connection",title:G(O.connection),commandPrompt:G(O.showConnection),order:0,loadView:async()=>new M,tags:[G(O.node)]}),o.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-network",title:G(O.networkTitle),commandPrompt:G(O.showNode),order:2,persistence:"permanent",loadView:async()=>(await async function(){return z||(z=await import("../../panels/sources/sources.js")),z}()).SourcesNavigator.NetworkNavigatorView.instance()}),self.runtime=n.Runtime.Runtime.instance({forceNew:!0}),e.Runnable.registerEarlyInitializationRunnable(j.instance),new c.MainImpl.MainImpl;
|