@qilin-agent/experimental-inspector 0.0.0-stage → 3.1.3
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.i18n.yaml +49 -0
- package/README.md +179 -2
- package/README.zh.md +180 -0
- package/cordis.patch.yml +5 -0
- package/icon.svg +12 -0
- package/lib/client.js +3572 -0
- package/lib/client.page.js +314 -0
- package/lib/devtools/Images/3d-center.svg +3 -0
- package/lib/devtools/Images/3d-pan.svg +3 -0
- package/lib/devtools/Images/3d-rotate.svg +3 -0
- package/lib/devtools/Images/accelerometer-back.svg +69 -0
- package/lib/devtools/Images/accelerometer-bottom.png +0 -0
- package/lib/devtools/Images/accelerometer-front.svg +28 -0
- package/lib/devtools/Images/accelerometer-left.png +0 -0
- package/lib/devtools/Images/accelerometer-right.png +0 -0
- package/lib/devtools/Images/accelerometer-top.png +0 -0
- package/lib/devtools/Images/account-tree.svg +10 -0
- package/lib/devtools/Images/add-photo.svg +3 -0
- package/lib/devtools/Images/ai-explorer-badge.svg +114 -0
- package/lib/devtools/Images/align-content-center.svg +5 -0
- package/lib/devtools/Images/align-content-end.svg +5 -0
- package/lib/devtools/Images/align-content-space-around.svg +6 -0
- package/lib/devtools/Images/align-content-space-between.svg +4 -0
- package/lib/devtools/Images/align-content-space-evenly.svg +6 -0
- package/lib/devtools/Images/align-content-start.svg +5 -0
- package/lib/devtools/Images/align-content-stretch.svg +4 -0
- package/lib/devtools/Images/align-items-baseline.svg +4 -0
- package/lib/devtools/Images/align-items-center.svg +5 -0
- package/lib/devtools/Images/align-items-end.svg +5 -0
- package/lib/devtools/Images/align-items-start.svg +5 -0
- package/lib/devtools/Images/align-items-stretch.svg +6 -0
- package/lib/devtools/Images/align-self-center.svg +3 -0
- package/lib/devtools/Images/align-self-end.svg +4 -0
- package/lib/devtools/Images/align-self-start.svg +4 -0
- package/lib/devtools/Images/align-self-stretch.svg +5 -0
- package/lib/devtools/Images/animation.svg +3 -0
- package/lib/devtools/Images/arrow-back.svg +4 -0
- package/lib/devtools/Images/arrow-collapse.svg +3 -0
- package/lib/devtools/Images/arrow-down.svg +10 -0
- package/lib/devtools/Images/arrow-drop-down-dark.svg +3 -0
- package/lib/devtools/Images/arrow-drop-down-light.svg +3 -0
- package/lib/devtools/Images/arrow-drop-down.svg +3 -0
- package/lib/devtools/Images/arrow-forward.svg +4 -0
- package/lib/devtools/Images/arrow-right-circle.svg +3 -0
- package/lib/devtools/Images/arrow-up-down-circle.svg +3 -0
- package/lib/devtools/Images/arrow-up-down.svg +3 -0
- package/lib/devtools/Images/arrow-up.svg +10 -0
- package/lib/devtools/Images/attach-file.svg +3 -0
- package/lib/devtools/Images/baseline-high-availability.svg +17 -0
- package/lib/devtools/Images/baseline-limited-availability.svg +19 -0
- package/lib/devtools/Images/baseline-low-availability.svg +31 -0
- package/lib/devtools/Images/bell.svg +3 -0
- package/lib/devtools/Images/bezier-curve-filled.svg +3 -0
- package/lib/devtools/Images/bin.svg +1 -0
- package/lib/devtools/Images/bottom-panel-close.svg +1 -0
- package/lib/devtools/Images/bottom-panel-open.svg +1 -0
- package/lib/devtools/Images/brackets.svg +1 -0
- package/lib/devtools/Images/breakpoint-circle.svg +4 -0
- package/lib/devtools/Images/breakpoint-crossed-filled.svg +1 -0
- package/lib/devtools/Images/breakpoint-crossed.svg +1 -0
- package/lib/devtools/Images/brush-2.svg +3 -0
- package/lib/devtools/Images/brush-filled.svg +1 -0
- package/lib/devtools/Images/brush.svg +1 -0
- package/lib/devtools/Images/bucket.svg +4 -0
- package/lib/devtools/Images/bug.svg +3 -0
- package/lib/devtools/Images/button-magic.svg +3 -0
- package/lib/devtools/Images/calendar-today.svg +3 -0
- package/lib/devtools/Images/center-focus-weak.svg +3 -0
- package/lib/devtools/Images/check-circle.svg +3 -0
- package/lib/devtools/Images/check-double.svg +3 -0
- package/lib/devtools/Images/checker.svg +12 -0
- package/lib/devtools/Images/checkmark.svg +1 -0
- package/lib/devtools/Images/chevron-double-right.svg +3 -0
- package/lib/devtools/Images/chevron-down.svg +3 -0
- package/lib/devtools/Images/chevron-left-dot.svg +4 -0
- package/lib/devtools/Images/chevron-left.svg +3 -0
- package/lib/devtools/Images/chevron-right.svg +3 -0
- package/lib/devtools/Images/chevron-up.svg +3 -0
- package/lib/devtools/Images/chromeLeft.avif +0 -0
- package/lib/devtools/Images/chromeMiddle.avif +0 -0
- package/lib/devtools/Images/chromeRight.avif +0 -0
- package/lib/devtools/Images/class.svg +6 -0
- package/lib/devtools/Images/clear-list.svg +3 -0
- package/lib/devtools/Images/clear.svg +3 -0
- package/lib/devtools/Images/cloud.svg +3 -0
- package/lib/devtools/Images/code-circle.svg +5 -0
- package/lib/devtools/Images/code-whisperer-badge.svg +166 -0
- package/lib/devtools/Images/code.svg +3 -0
- package/lib/devtools/Images/colon.svg +4 -0
- package/lib/devtools/Images/color-picker-filled.svg +3 -0
- package/lib/devtools/Images/color-picker.svg +3 -0
- package/lib/devtools/Images/compress.svg +8 -0
- package/lib/devtools/Images/console-conditional-breakpoint.svg +1 -0
- package/lib/devtools/Images/console-logpoint.svg +1 -0
- package/lib/devtools/Images/container.svg +4 -0
- package/lib/devtools/Images/cookie.svg +3 -0
- package/lib/devtools/Images/cookie_off.svg +3 -0
- package/lib/devtools/Images/copy.svg +3 -0
- package/lib/devtools/Images/corporate-fare.svg +3 -0
- package/lib/devtools/Images/credit-card.svg +3 -0
- package/lib/devtools/Images/cross-circle-filled.svg +3 -0
- package/lib/devtools/Images/cross-circle.svg +3 -0
- package/lib/devtools/Images/cross.svg +3 -0
- package/lib/devtools/Images/cssoverview_icons_2x.avif +0 -0
- package/lib/devtools/Images/database-off.svg +1 -0
- package/lib/devtools/Images/database.svg +3 -0
- package/lib/devtools/Images/deployed.svg +3 -0
- package/lib/devtools/Images/device-fold.svg +1 -0
- package/lib/devtools/Images/devices.svg +3 -0
- package/lib/devtools/Images/devtools-thumbnail.svg +57 -0
- package/lib/devtools/Images/devtools-tips.svg +61 -0
- package/lib/devtools/Images/devtools-user-badge.svg +129 -0
- package/lib/devtools/Images/devtools.svg +13 -0
- package/lib/devtools/Images/difference.svg +3 -0
- package/lib/devtools/Images/dock-bottom.svg +3 -0
- package/lib/devtools/Images/dock-left.svg +3 -0
- package/lib/devtools/Images/dock-right.svg +3 -0
- package/lib/devtools/Images/dock-window.svg +3 -0
- package/lib/devtools/Images/document.svg +3 -0
- package/lib/devtools/Images/dog-paw.svg +10 -0
- package/lib/devtools/Images/dom-detective-badge.svg +136 -0
- package/lib/devtools/Images/domain.svg +3 -0
- package/lib/devtools/Images/dots-horizontal.svg +1 -0
- package/lib/devtools/Images/dots-vertical.svg +3 -0
- package/lib/devtools/Images/download.svg +3 -0
- package/lib/devtools/Images/edit.svg +1 -0
- package/lib/devtools/Images/empty.svg +2 -0
- package/lib/devtools/Images/errorWave.svg +74 -0
- package/lib/devtools/Images/exclamation.svg +3 -0
- package/lib/devtools/Images/expand.svg +1 -0
- package/lib/devtools/Images/experiment-check.svg +1 -0
- package/lib/devtools/Images/experiment.svg +3 -0
- package/lib/devtools/Images/extension.svg +1 -0
- package/lib/devtools/Images/eye-crossed.svg +3 -0
- package/lib/devtools/Images/eye.svg +3 -0
- package/lib/devtools/Images/file-document.svg +3 -0
- package/lib/devtools/Images/file-fetch-xhr.svg +3 -0
- package/lib/devtools/Images/file-font.svg +4 -0
- package/lib/devtools/Images/file-generic.svg +3 -0
- package/lib/devtools/Images/file-image.svg +3 -0
- package/lib/devtools/Images/file-json.svg +4 -0
- package/lib/devtools/Images/file-manifest.svg +3 -0
- package/lib/devtools/Images/file-media.svg +3 -0
- package/lib/devtools/Images/file-script.svg +3 -0
- package/lib/devtools/Images/file-snippet.svg +4 -0
- package/lib/devtools/Images/file-stylesheet.svg +4 -0
- package/lib/devtools/Images/file-wasm.svg +5 -0
- package/lib/devtools/Images/file-websocket.svg +3 -0
- package/lib/devtools/Images/filter-clear.svg +3 -0
- package/lib/devtools/Images/filter-filled.svg +3 -0
- package/lib/devtools/Images/filter.svg +3 -0
- package/lib/devtools/Images/flex-direction.svg +5 -0
- package/lib/devtools/Images/flex-no-wrap.svg +5 -0
- package/lib/devtools/Images/flex-wrap.svg +8 -0
- package/lib/devtools/Images/flow.svg +3 -0
- package/lib/devtools/Images/flowsheet.svg +1 -0
- package/lib/devtools/Images/fold-more.svg +3 -0
- package/lib/devtools/Images/folder-asterisk.svg +10 -0
- package/lib/devtools/Images/folder-off.svg +3 -0
- package/lib/devtools/Images/folder.svg +3 -0
- package/lib/devtools/Images/frame-crossed.svg +3 -0
- package/lib/devtools/Images/frame-icon.svg +54 -0
- package/lib/devtools/Images/frame.svg +3 -0
- package/lib/devtools/Images/gdp-logo-dark.png +0 -0
- package/lib/devtools/Images/gdp-logo-light.png +0 -0
- package/lib/devtools/Images/gear-filled.svg +3 -0
- package/lib/devtools/Images/gear.svg +4 -0
- package/lib/devtools/Images/gears.svg +3 -0
- package/lib/devtools/Images/geminiInDevTools.png +0 -0
- package/lib/devtools/Images/geminiInDevTools_2x.png +0 -0
- package/lib/devtools/Images/global.svg +5 -0
- package/lib/devtools/Images/google.svg +3 -0
- package/lib/devtools/Images/goto-filled.svg +1 -0
- package/lib/devtools/Images/grid-direction.svg +6 -0
- package/lib/devtools/Images/grid-on.svg +10 -0
- package/lib/devtools/Images/group.svg +3 -0
- package/lib/devtools/Images/heap-snapshot.svg +6 -0
- package/lib/devtools/Images/heap-snapshots.svg +7 -0
- package/lib/devtools/Images/help.svg +3 -0
- package/lib/devtools/Images/history.svg +3 -0
- package/lib/devtools/Images/home.svg +3 -0
- package/lib/devtools/Images/hover.svg +6 -0
- package/lib/devtools/Images/iframe-crossed.svg +3 -0
- package/lib/devtools/Images/iframe.svg +3 -0
- package/lib/devtools/Images/import.svg +3 -0
- package/lib/devtools/Images/indeterminate-question-box.svg +3 -0
- package/lib/devtools/Images/info-filled.svg +3 -0
- package/lib/devtools/Images/info.svg +3 -0
- package/lib/devtools/Images/issue-cross-filled.svg +3 -0
- package/lib/devtools/Images/issue-exclamation-filled.svg +3 -0
- package/lib/devtools/Images/issue-questionmark-filled.svg +3 -0
- package/lib/devtools/Images/issue-text-filled.svg +3 -0
- package/lib/devtools/Images/justify-content-center.svg +5 -0
- package/lib/devtools/Images/justify-content-end.svg +5 -0
- package/lib/devtools/Images/justify-content-space-around.svg +6 -0
- package/lib/devtools/Images/justify-content-space-between.svg +4 -0
- package/lib/devtools/Images/justify-content-space-evenly.svg +6 -0
- package/lib/devtools/Images/justify-content-start.svg +5 -0
- package/lib/devtools/Images/justify-content-stretch.svg +4 -0
- package/lib/devtools/Images/justify-items-center.svg +4 -0
- package/lib/devtools/Images/justify-items-end.svg +4 -0
- package/lib/devtools/Images/justify-items-start.svg +4 -0
- package/lib/devtools/Images/justify-items-stretch.svg +4 -0
- package/lib/devtools/Images/keyboard-arrow-right.svg +1 -0
- package/lib/devtools/Images/keyboard-full.svg +10 -0
- package/lib/devtools/Images/keyboard-pen.svg +1 -0
- package/lib/devtools/Images/keyboard.svg +3 -0
- package/lib/devtools/Images/label-auto.svg +3 -0
- package/lib/devtools/Images/label.svg +10 -0
- package/lib/devtools/Images/large-arrow-right-filled.svg +1 -0
- package/lib/devtools/Images/layers-filled.svg +1 -0
- package/lib/devtools/Images/layers.svg +1 -0
- package/lib/devtools/Images/left-panel-close.svg +1 -0
- package/lib/devtools/Images/left-panel-open.svg +1 -0
- package/lib/devtools/Images/lightbulb-spark.svg +13 -0
- package/lib/devtools/Images/lightbulb.svg +3 -0
- package/lib/devtools/Images/lighthouse_logo.svg +158 -0
- package/lib/devtools/Images/list.svg +3 -0
- package/lib/devtools/Images/location-on.svg +3 -0
- package/lib/devtools/Images/lock-person.svg +1 -0
- package/lib/devtools/Images/lock.svg +3 -0
- package/lib/devtools/Images/mark-email-unread.svg +3 -0
- package/lib/devtools/Images/match-case.svg +3 -0
- package/lib/devtools/Images/match-whole-word.svg +1 -0
- package/lib/devtools/Images/memory.svg +6 -0
- package/lib/devtools/Images/minus.svg +3 -0
- package/lib/devtools/Images/mop.svg +1 -0
- package/lib/devtools/Images/mouse.svg +4 -0
- package/lib/devtools/Images/navigationControls.png +0 -0
- package/lib/devtools/Images/navigationControls_2x.png +0 -0
- package/lib/devtools/Images/network-settings.svg +3 -0
- package/lib/devtools/Images/node-stack-icon.svg +1 -0
- package/lib/devtools/Images/nodeIcon.avif +0 -0
- package/lib/devtools/Images/open-externally.svg +3 -0
- package/lib/devtools/Images/override.svg +11 -0
- package/lib/devtools/Images/palette.svg +10 -0
- package/lib/devtools/Images/pause-circle.svg +1 -0
- package/lib/devtools/Images/pause.svg +1 -0
- package/lib/devtools/Images/pen-spark.svg +3 -0
- package/lib/devtools/Images/performance-panel-delete-annotation.svg +32 -0
- package/lib/devtools/Images/performance-panel-diagram.svg +34 -0
- package/lib/devtools/Images/performance-panel-entry-label.svg +75 -0
- package/lib/devtools/Images/performance-panel-time-range.svg +15 -0
- package/lib/devtools/Images/performance.svg +3 -0
- package/lib/devtools/Images/person.svg +3 -0
- package/lib/devtools/Images/photo-camera.svg +10 -0
- package/lib/devtools/Images/play.svg +3 -0
- package/lib/devtools/Images/plus.svg +3 -0
- package/lib/devtools/Images/policy.svg +3 -0
- package/lib/devtools/Images/popoverArrows.png +0 -0
- package/lib/devtools/Images/popup.svg +3 -0
- package/lib/devtools/Images/preview_feature_video_thumbnail.svg +92 -0
- package/lib/devtools/Images/profile.svg +3 -0
- package/lib/devtools/Images/psychiatry.svg +3 -0
- package/lib/devtools/Images/puzzle.svg +3 -0
- package/lib/devtools/Images/record-start.svg +4 -0
- package/lib/devtools/Images/record-stop.svg +4 -0
- package/lib/devtools/Images/redo.svg +3 -0
- package/lib/devtools/Images/refresh.svg +10 -0
- package/lib/devtools/Images/regular-expression.svg +3 -0
- package/lib/devtools/Images/replace.svg +1 -0
- package/lib/devtools/Images/replay.svg +3 -0
- package/lib/devtools/Images/report.svg +1 -0
- package/lib/devtools/Images/resizeDiagonal.svg +1 -0
- package/lib/devtools/Images/resizeHorizontal.svg +1 -0
- package/lib/devtools/Images/resizeVertical.svg +1 -0
- package/lib/devtools/Images/resume.svg +1 -0
- package/lib/devtools/Images/revert.svg +3 -0
- package/lib/devtools/Images/review.svg +5 -0
- package/lib/devtools/Images/right-panel-close.svg +1 -0
- package/lib/devtools/Images/right-panel-open.svg +1 -0
- package/lib/devtools/Images/scissors.svg +3 -0
- package/lib/devtools/Images/screen-rotation.svg +1 -0
- package/lib/devtools/Images/search.svg +3 -0
- package/lib/devtools/Images/select-element.svg +3 -0
- package/lib/devtools/Images/send.svg +3 -0
- package/lib/devtools/Images/shadow.svg +3 -0
- package/lib/devtools/Images/shield.svg +3 -0
- package/lib/devtools/Images/small-status-dot.svg +3 -0
- package/lib/devtools/Images/smart-assistant.svg +3 -0
- package/lib/devtools/Images/snippet.svg +4 -0
- package/lib/devtools/Images/spark-info.svg +3 -0
- package/lib/devtools/Images/spark.svg +3 -0
- package/lib/devtools/Images/speculative-loads.svg +1 -0
- package/lib/devtools/Images/speedster-badge.svg +166 -0
- package/lib/devtools/Images/star.svg +3 -0
- package/lib/devtools/Images/step-into.svg +1 -0
- package/lib/devtools/Images/step-out.svg +1 -0
- package/lib/devtools/Images/step-over.svg +1 -0
- package/lib/devtools/Images/step.svg +1 -0
- package/lib/devtools/Images/stop.svg +3 -0
- package/lib/devtools/Images/symbol.svg +3 -0
- package/lib/devtools/Images/sync.svg +3 -0
- package/lib/devtools/Images/tab-move.svg +1 -0
- package/lib/devtools/Images/table.svg +3 -0
- package/lib/devtools/Images/terminal.svg +10 -0
- package/lib/devtools/Images/text-analysis.svg +3 -0
- package/lib/devtools/Images/thumb-down-filled.svg +3 -0
- package/lib/devtools/Images/thumb-down.svg +3 -0
- package/lib/devtools/Images/thumb-up-filled.svg +3 -0
- package/lib/devtools/Images/thumb-up.svg +3 -0
- package/lib/devtools/Images/tonality.svg +10 -0
- package/lib/devtools/Images/toolbarResizerVertical.png +0 -0
- package/lib/devtools/Images/top-panel-close.svg +1 -0
- package/lib/devtools/Images/top-panel-open.svg +1 -0
- package/lib/devtools/Images/touch-app.svg +4 -0
- package/lib/devtools/Images/touchCursor.png +0 -0
- package/lib/devtools/Images/touchCursor_2x.png +0 -0
- package/lib/devtools/Images/triangle-bottom-right.svg +3 -0
- package/lib/devtools/Images/triangle-down.svg +1 -0
- package/lib/devtools/Images/triangle-left.svg +1 -0
- package/lib/devtools/Images/triangle-right.svg +1 -0
- package/lib/devtools/Images/triangle-up.svg +3 -0
- package/lib/devtools/Images/trophy.svg +3 -0
- package/lib/devtools/Images/tune.svg +3 -0
- package/lib/devtools/Images/undo.svg +1 -0
- package/lib/devtools/Images/warning-filled.svg +3 -0
- package/lib/devtools/Images/warning.svg +3 -0
- package/lib/devtools/Images/watch.svg +3 -0
- package/lib/devtools/Images/whatsnew.svg +61 -0
- package/lib/devtools/Images/width.svg +3 -0
- package/lib/devtools/Images/zoom-in.svg +3 -0
- package/lib/devtools/LICENSE +27 -0
- package/lib/devtools/application_tokens.css +413 -0
- package/lib/devtools/chunks/FormatterActions-FcPgI0uV.js +19 -0
- package/lib/devtools/chunks/UIFilter-CIzBruM3.js +18 -0
- package/lib/devtools/chunks/UIRequestLocation-CtGcVN3I.js +48 -0
- package/lib/devtools/chunks/_qilin-devtools_empty-BvRk9kiK.js +0 -0
- package/lib/devtools/chunks/accessibility-CwvHp3sj.js +2718 -0
- package/lib/devtools/chunks/acorn-_jSanihy.js +3232 -0
- package/lib/devtools/chunks/adorners-D4aU6nuY.js +45 -0
- package/lib/devtools/chunks/ai_assistance-BU6E0Wio.js +4255 -0
- package/lib/devtools/chunks/angular-Dutmu-L9.js +117 -0
- package/lib/devtools/chunks/animation-TEwO5UI_.js +922 -0
- package/lib/devtools/chunks/application-SCf6MiCN.js +12740 -0
- package/lib/devtools/chunks/autofill-Dp3nMnuK.js +198 -0
- package/lib/devtools/chunks/autofill_manager-BXntqfdp.js +58 -0
- package/lib/devtools/chunks/bindings-DgoVEdsr.js +4105 -0
- package/lib/devtools/chunks/browser-DL1S1Kiu.js +62 -0
- package/lib/devtools/chunks/browser_debugger-p7Rr4IBR.js +629 -0
- package/lib/devtools/chunks/changes-DeW5MC9u.js +2 -0
- package/lib/devtools/chunks/changes-k42bihtm.js +393 -0
- package/lib/devtools/chunks/checkbox.css-CZJJ6atQ.js +4 -0
- package/lib/devtools/chunks/chunk-DF993M8W.js +11 -0
- package/lib/devtools/chunks/code_highlighter-BnTPt9_G.js +210 -0
- package/lib/devtools/chunks/codemirror-CBR9VJma.js +15842 -0
- package/lib/devtools/chunks/color_picker-Cuh_X19Y.js +1566 -0
- package/lib/devtools/chunks/common-DjRFwulW.js +15145 -0
- package/lib/devtools/chunks/common-Uu9A2glf.js +2 -0
- package/lib/devtools/chunks/common-qd_KLeYO.js +6639 -0
- package/lib/devtools/chunks/components-CnPGgDUW.js +704 -0
- package/lib/devtools/chunks/components-Cw5tHQqN.js +1338 -0
- package/lib/devtools/chunks/components-EJwviLtZ.js +1090 -0
- package/lib/devtools/chunks/console-D1WlMaFQ.js +3855 -0
- package/lib/devtools/chunks/console-yMm3XVTY.js +2 -0
- package/lib/devtools/chunks/console_counters-9SfIdrUo.js +103 -0
- package/lib/devtools/chunks/coverage-BbFH390Q.js +1176 -0
- package/lib/devtools/chunks/coverage-CLBpovLw.js +2 -0
- package/lib/devtools/chunks/cpp-CdElSCaB.js +435 -0
- package/lib/devtools/chunks/css_overview-cITV9auE.js +1288 -0
- package/lib/devtools/chunks/data_grid-pC5qqfsJ.js +1671 -0
- package/lib/devtools/chunks/developer_resources-4DqQIvy6.js +240 -0
- package/lib/devtools/chunks/diff-qn55JSCS.js +444 -0
- package/lib/devtools/chunks/dom_extension-BfrKZ4JG.js +172 -0
- package/lib/devtools/chunks/elements-CgEYz3mX.js +2 -0
- package/lib/devtools/chunks/elements-Dbx4q9-v.js +11407 -0
- package/lib/devtools/chunks/emulation-C6XKPPGu.js +1306 -0
- package/lib/devtools/chunks/emulation-D8xbdsAj.js +2 -0
- package/lib/devtools/chunks/emulation-EtJlEukP.js +2732 -0
- package/lib/devtools/chunks/emulation-cjFPXHT9.js +157 -0
- package/lib/devtools/chunks/event_listeners-BeTH3gi2.js +414 -0
- package/lib/devtools/chunks/explain-P_aDGFSD.js +747 -0
- package/lib/devtools/chunks/greendev-BU0QcVPX.js +152 -0
- package/lib/devtools/chunks/heap_snapshot-CZt2KUPL.js +427 -0
- package/lib/devtools/chunks/helper-CI72KvIC.js +33 -0
- package/lib/devtools/chunks/helpers--xrfGSwQ.js +29 -0
- package/lib/devtools/chunks/i18n-DvFMqQdJ.js +17 -0
- package/lib/devtools/chunks/icon_button-BebVdJD8.js +83 -0
- package/lib/devtools/chunks/inline_editor-D54X5UUr.js +1309 -0
- package/lib/devtools/chunks/inspector_main-DRbdXLmF.js +279 -0
- package/lib/devtools/chunks/issue_counter-CeOjTNGW.js +193 -0
- package/lib/devtools/chunks/issues-CegBKEda.js +1649 -0
- package/lib/devtools/chunks/issues_manager-D7nfNPN1.js +3009 -0
- package/lib/devtools/chunks/java-7g_qfFa2.js +263 -0
- package/lib/devtools/chunks/layer_viewer-CaFC5oyv.js +1423 -0
- package/lib/devtools/chunks/layers-CXqlD9zH.js +370 -0
- package/lib/devtools/chunks/legacy-Bqn4Q0Tf.js +41804 -0
- package/lib/devtools/chunks/legacy-DOCLCisy.js +1434 -0
- package/lib/devtools/chunks/less-DXiRNbd4.js +195 -0
- package/lib/devtools/chunks/lighthouse-DtpzvfT6.js +3920 -0
- package/lib/devtools/chunks/lighthouse-T9ZpmENr.js +2 -0
- package/lib/devtools/chunks/linear_memory_inspector-C50PtM45.js +305 -0
- package/lib/devtools/chunks/live-metrics-Bs7wxibB.js +284 -0
- package/lib/devtools/chunks/main-C5y6NscM.js +2 -0
- package/lib/devtools/chunks/main-DcgYyEI0.js +755 -0
- package/lib/devtools/chunks/markdown-tZoR6Bsu.js +1512 -0
- package/lib/devtools/chunks/markdown_view-C67b2DdG.js +461 -0
- package/lib/devtools/chunks/marked-zGgfoDxO.js +1362 -0
- package/lib/devtools/chunks/media-BhuqASbO.js +1337 -0
- package/lib/devtools/chunks/media-Wfo1AbXC.js +2 -0
- package/lib/devtools/chunks/menus-BAUukA5-.js +969 -0
- package/lib/devtools/chunks/mobile_throttling-C26zde8o.js +2 -0
- package/lib/devtools/chunks/mobile_throttling-Cw4AkJH4.js +1052 -0
- package/lib/devtools/chunks/network-C3gIloDN.js +2 -0
- package/lib/devtools/chunks/network-CaxdpGU2.js +9181 -0
- package/lib/devtools/chunks/objectValue.css-C9o9fdM2.js +4 -0
- package/lib/devtools/chunks/object_ui-BYgPTK_b.js +1461 -0
- package/lib/devtools/chunks/object_ui-E7eR7aD-.js +2 -0
- package/lib/devtools/chunks/perf_ui-BqzJrt4p.js +2 -0
- package/lib/devtools/chunks/perf_ui-CQMkYfn3.js +3143 -0
- package/lib/devtools/chunks/performance_monitor-B2kUoCv0.js +385 -0
- package/lib/devtools/chunks/php-tl5gKrxu.js +423 -0
- package/lib/devtools/chunks/platform-BzB373NB.js +600 -0
- package/lib/devtools/chunks/profiler-BGu3akEf.js +4608 -0
- package/lib/devtools/chunks/protocol_client-Cwf_jb8R.js +24329 -0
- package/lib/devtools/chunks/protocol_monitor-B9nMqAAE.js +2 -0
- package/lib/devtools/chunks/protocol_monitor-CvLQ8ms1.js +1224 -0
- package/lib/devtools/chunks/puppeteer-CaOjgj3v.js +13299 -0
- package/lib/devtools/chunks/python-D9AdRkMm.js +580 -0
- package/lib/devtools/chunks/quick_open-C3IZ69m9.js +2 -0
- package/lib/devtools/chunks/quick_open-DRITaPnZ.js +722 -0
- package/lib/devtools/chunks/recorder-C0f1n95b.js +5465 -0
- package/lib/devtools/chunks/recorder-actions-S2RfLX4H.js +6 -0
- package/lib/devtools/chunks/request_link_icon-fGy57GcW.js +87 -0
- package/lib/devtools/chunks/root-DbVQo07X.js +255 -0
- package/lib/devtools/chunks/sass-BPQlMmw2.js +370 -0
- package/lib/devtools/chunks/security-NbgKa3ux.js +898 -0
- package/lib/devtools/chunks/sensors-nM7qcBE4.js +752 -0
- package/lib/devtools/chunks/settings-aKtQC12v.js +1433 -0
- package/lib/devtools/chunks/settings_ui-CzxAFzIb.js +175 -0
- package/lib/devtools/chunks/snackbars-lPThuWYs.js +12010 -0
- package/lib/devtools/chunks/snippets-dIuBmVBv.js +173 -0
- package/lib/devtools/chunks/source_frame-CSjno3kf.js +1352 -0
- package/lib/devtools/chunks/sources-BIZssBei.js +8216 -0
- package/lib/devtools/chunks/sources-Bf8QJxju.js +2 -0
- package/lib/devtools/chunks/suggestion_input-Duuu5pyd.js +196 -0
- package/lib/devtools/chunks/svelte-DJS1itbE.js +744 -0
- package/lib/devtools/chunks/textInput.css-DPvwvIic.js +4 -0
- package/lib/devtools/chunks/text_editor-Dq1P6D2J.js +15706 -0
- package/lib/devtools/chunks/text_utils-ohNt_gua.js +608 -0
- package/lib/devtools/chunks/theme_support-CbSSLkbO.js +92 -0
- package/lib/devtools/chunks/third-party-web-DGiPoc0U.js +12626 -0
- package/lib/devtools/chunks/timeline-BE_ysZxO.js +2 -0
- package/lib/devtools/chunks/timeline-C4vCX79k.js +16347 -0
- package/lib/devtools/chunks/utils-CELci976.js +298 -0
- package/lib/devtools/chunks/vue-CjH9yovn.js +73 -0
- package/lib/devtools/chunks/wast-CbGHiqaW.js +109 -0
- package/lib/devtools/chunks/web_audio-IdfBLjwV.js +277 -0
- package/lib/devtools/chunks/webauthn-iRZlbjGV.js +522 -0
- package/lib/devtools/chunks/whats_new-DOTPf2xJ.js +177 -0
- package/lib/devtools/chunks/xml-DI9dcP5w.js +327 -0
- package/lib/devtools/connect.js +9 -0
- package/lib/devtools/design_system_tokens.css +1061 -0
- package/lib/devtools/device_mode_emulation_frame.html +25 -0
- package/lib/devtools/devtools_app.html +25 -0
- package/lib/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/optimized_images.gni +53 -0
- package/lib/devtools/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +4 -0
- package/lib/devtools/entrypoints/devtools_app/devtools_app.js +6240 -0
- package/lib/devtools/entrypoints/formatter_worker/formatter_worker-entrypoint.js +2810 -0
- package/lib/devtools/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +2142 -0
- package/lib/devtools/entrypoints/lighthouse_worker/lighthouse_worker.js +290095 -0
- package/lib/devtools/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +3403 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/LowTextContrast.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/arInsecureContext.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
- package/lib/devtools/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
- package/lib/devtools/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
- package/lib/devtools/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidHeader.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistItemNotInnerList.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistMoreThanOneList.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/lib/devtools/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cspURLViolation.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/deprecation.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestInvalidEmail.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolDescription.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/heavyAd.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/mixedContent.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabled.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidType.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementLowContrast.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementRegistrationFailed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementRequestInProgress.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementTypeNotSupported.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementUntrustedEvent.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/propertyRuleIssue.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureHeader.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureHeader.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestType.md +17 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestMalformedDictionary.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
- package/lib/devtools/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -0
- package/lib/devtools/panels/recorder/injected/injected.generated.js +1 -0
- package/lib/devtools/panels/whats_new/resources/WNDT.md +14 -0
- package/lib/devtools/resource-manifest.json +3818 -0
- package/lib/devtools/third_party/acorn/package/LICENSE +21 -0
- package/lib/devtools/third_party/axe-core/LICENSE +362 -0
- package/lib/devtools/third_party/chromium/LICENSE +27 -0
- package/lib/devtools/third_party/codemirror/package/LICENSE +21 -0
- package/lib/devtools/third_party/codemirror.next/LICENSE +21 -0
- package/lib/devtools/third_party/csp_evaluator/package/LICENSE +202 -0
- package/lib/devtools/third_party/diff/LICENSE +202 -0
- package/lib/devtools/third_party/i18n/LICENSE +202 -0
- package/lib/devtools/third_party/intl-messageformat/LICENSE +33 -0
- package/lib/devtools/third_party/intl-messageformat/package/LICENSE.md +33 -0
- package/lib/devtools/third_party/json5/LICENSE +23 -0
- package/lib/devtools/third_party/legacy-javascript/LICENSE +202 -0
- package/lib/devtools/third_party/lighthouse/LICENSE +202 -0
- package/lib/devtools/third_party/lit/LICENSE +28 -0
- package/lib/devtools/third_party/marked/LICENSE +39 -0
- package/lib/devtools/third_party/marked/package/LICENSE.md +44 -0
- package/lib/devtools/third_party/puppeteer/LICENSE +202 -0
- package/lib/devtools/third_party/puppeteer/third_party/mitt/LICENSE +21 -0
- package/lib/devtools/third_party/puppeteer/third_party/parsel/LICENSE +21 -0
- package/lib/devtools/third_party/puppeteer/third_party/rxjs/LICENSE +201 -0
- package/lib/devtools/third_party/puppeteer-replay/package/LICENSE +202 -0
- package/lib/devtools/third_party/source-map-scopes-codec/LICENSE +26 -0
- package/lib/devtools/third_party/source-map-scopes-codec/package/LICENSE +26 -0
- package/lib/devtools/third_party/third-party-web/LICENSE +20 -0
- package/lib/devtools/third_party/third-party-web/package/LICENSE +20 -0
- package/lib/devtools/third_party/vscode.web-custom-data/package/LICENSE.md +21 -0
- package/lib/devtools/third_party/wasmparser/package/LICENSE +177 -0
- package/lib/devtools/third_party/web-vitals/package/LICENSE +202 -0
- package/lib/index.js +2554 -0
- package/lib/types/client/bottom/keyboard.d.ts +10 -0
- package/lib/types/client/bottom/locales.d.ts +17 -0
- package/lib/types/client/bottom/page.d.ts +10 -0
- package/lib/types/client/bottom/resize.d.ts +12 -0
- package/lib/types/client/bridge/controller.d.ts +10 -0
- package/lib/types/client/bridge/dispatcher.d.ts +26 -0
- package/lib/types/client/bridge/lifecycle.d.ts +22 -0
- package/lib/types/client/bridge/locales.d.ts +3 -0
- package/lib/types/client/bridge/publisher.d.ts +42 -0
- package/lib/types/client/bridge/rpc.d.ts +13 -0
- package/lib/types/client/bridge/transport.d.ts +41 -0
- package/lib/types/client/cdp/console.d.ts +45 -0
- package/lib/types/client/cdp/debugger.d.ts +8 -0
- package/lib/types/client/cdp/errors.d.ts +8 -0
- package/lib/types/client/cdp/heap-profiler.d.ts +8 -0
- package/lib/types/client/cdp/index.d.ts +10 -0
- package/lib/types/client/cdp/objects.d.ts +69 -0
- package/lib/types/client/cdp/profiler.d.ts +8 -0
- package/lib/types/client/cdp/properties.d.ts +16 -0
- package/lib/types/client/cdp/runtime.d.ts +79 -0
- package/lib/types/client/cdp/sources.d.ts +53 -0
- package/lib/types/client/cdp/stack.d.ts +27 -0
- package/lib/types/client/index.d.ts +3 -0
- package/lib/types/client/inspection/cordis.d.ts +3 -0
- package/lib/types/client/inspection/network.d.ts +4 -0
- package/lib/types/client/inspection/realm.d.ts +27 -0
- package/lib/types/client/plugin.d.ts +29 -0
- package/lib/types/host/bridge/controller.d.ts +108 -0
- package/lib/types/host/bridge/dispatcher.d.ts +16 -0
- package/lib/types/host/bridge/lifecycle.d.ts +42 -0
- package/lib/types/host/bridge/publisher.d.ts +31 -0
- package/lib/types/host/bridge/rpc.d.ts +15 -0
- package/lib/types/host/bridge/transport.d.ts +28 -0
- package/lib/types/host/cdp/console.d.ts +14 -0
- package/lib/types/host/cdp/debugger.d.ts +8 -0
- package/lib/types/host/cdp/errors.d.ts +6 -0
- package/lib/types/host/cdp/heap-profiler.d.ts +8 -0
- package/lib/types/host/cdp/index.d.ts +10 -0
- package/lib/types/host/cdp/objects.d.ts +8 -0
- package/lib/types/host/cdp/profiler.d.ts +8 -0
- package/lib/types/host/cdp/properties.d.ts +7 -0
- package/lib/types/host/cdp/runtime.d.ts +16 -0
- package/lib/types/host/cdp/sources.d.ts +14 -0
- package/lib/types/host/cdp/stack.d.ts +4 -0
- package/lib/types/host/index.d.ts +3 -0
- package/lib/types/host/inspection/cordis.d.ts +3 -0
- package/lib/types/host/inspection/network.d.ts +23 -0
- package/lib/types/host/inspection/realm.d.ts +9 -0
- package/lib/types/host/plugin.d.ts +19 -0
- package/lib/types/index.d.ts +50 -0
- package/lib/types/shared/bridge/buffer.d.ts +62 -0
- package/lib/types/shared/bridge/codec.d.ts +4 -0
- package/lib/types/shared/bridge/control-codec.d.ts +27 -0
- package/lib/types/shared/bridge/ids.d.ts +19 -0
- package/lib/types/shared/bridge/messages/control.d.ts +64 -0
- package/lib/types/shared/bridge/messages/cordis.d.ts +4 -0
- package/lib/types/shared/bridge/messages/network.d.ts +4 -0
- package/lib/types/shared/bridge/messages/observation.d.ts +110 -0
- package/lib/types/shared/bridge/messages/query/codec.d.ts +40 -0
- package/lib/types/shared/bridge/messages/query/commands.d.ts +35 -0
- package/lib/types/shared/bridge/messages/query/frames.d.ts +31 -0
- package/lib/types/shared/bridge/messages/query/index.d.ts +5 -0
- package/lib/types/shared/bridge/messages/runtime/command-codec.d.ts +9 -0
- package/lib/types/shared/bridge/messages/runtime/commands.d.ts +76 -0
- package/lib/types/shared/bridge/messages/runtime/console-frames.d.ts +52 -0
- package/lib/types/shared/bridge/messages/runtime/frames.d.ts +98 -0
- package/lib/types/shared/bridge/messages/runtime/index.d.ts +5 -0
- package/lib/types/shared/bridge/messages/runtime/value-codec.d.ts +28 -0
- package/lib/types/shared/bridge/messages/sources/codec.d.ts +15 -0
- package/lib/types/shared/bridge/messages/sources/commands.d.ts +42 -0
- package/lib/types/shared/bridge/messages/sources/frames.d.ts +67 -0
- package/lib/types/shared/bridge/messages/sources/index.d.ts +5 -0
- package/lib/types/shared/bridge/publisher.d.ts +33 -0
- package/lib/types/shared/bridge/query-reader.d.ts +10 -0
- package/lib/types/shared/bridge/rpc.d.ts +62 -0
- package/lib/types/shared/bridge/validation.d.ts +3 -0
- package/lib/types/shared/bridge/version.d.ts +3 -0
- package/lib/types/shared/cdp/capabilities.d.ts +17 -0
- package/lib/types/shared/cdp/console.d.ts +28 -0
- package/lib/types/shared/cdp/debugger.d.ts +69 -0
- package/lib/types/shared/cdp/errors.d.ts +27 -0
- package/lib/types/shared/cdp/ids.d.ts +9 -0
- package/lib/types/shared/cdp/index.d.ts +11 -0
- package/lib/types/shared/cdp/operations.d.ts +86 -0
- package/lib/types/shared/cdp/property.d.ts +28 -0
- package/lib/types/shared/cdp/realm.d.ts +137 -0
- package/lib/types/shared/cdp/remote-object.d.ts +44 -0
- package/lib/types/shared/cdp/sources.d.ts +18 -0
- package/lib/types/shared/cordis/collector.d.ts +26 -0
- package/lib/types/shared/cordis/ids.d.ts +7 -0
- package/lib/types/shared/cordis/model.d.ts +61 -0
- package/lib/types/shared/cordis/object-reference.d.ts +14 -0
- package/lib/types/shared/cordis/object-registry.d.ts +80 -0
- package/lib/types/shared/cordis/observer.d.ts +15 -0
- package/lib/types/shared/cordis/projector.d.ts +34 -0
- package/lib/types/shared/cordis/publisher.d.ts +13 -0
- package/lib/types/shared/cordis/reader.d.ts +18 -0
- package/lib/types/shared/cordis/snapshot.d.ts +39 -0
- package/lib/types/shared/dispose.d.ts +11 -0
- package/lib/types/shared/identity.d.ts +12 -0
- package/lib/types/shared/index.d.ts +18 -0
- package/lib/types/shared/json.d.ts +35 -0
- package/lib/types/shared/network/event-source.d.ts +20 -0
- package/lib/types/shared/network/observation.d.ts +52 -0
- package/lib/types/shared/service.d.ts +23 -0
- package/lib/types/shared/validation.d.ts +52 -0
- package/lib/types/shared/web.d.ts +16 -0
- package/lib/types/worker/bridge/endpoint.d.ts +49 -0
- package/lib/types/worker/bridge/hub.d.ts +108 -0
- package/lib/types/worker/bridge/runtime-rpc.d.ts +90 -0
- package/lib/types/worker/bridge/session.d.ts +15 -0
- package/lib/types/worker/bridge/source-rpc.d.ts +42 -0
- package/lib/types/worker/cdp/domains/debugger/cdp-params.d.ts +15 -0
- package/lib/types/worker/cdp/domains/debugger/index.d.ts +6 -0
- package/lib/types/worker/cdp/domains/debugger/projector.d.ts +22 -0
- package/lib/types/worker/cdp/domains/debugger/script-registry.d.ts +70 -0
- package/lib/types/worker/cdp/domains/debugger/session.d.ts +47 -0
- package/lib/types/worker/cdp/domains/dom/index.d.ts +4 -0
- package/lib/types/worker/cdp/domains/dom/model.d.ts +121 -0
- package/lib/types/worker/cdp/domains/dom/session.d.ts +78 -0
- package/lib/types/worker/cdp/domains/native.d.ts +25 -0
- package/lib/types/worker/cdp/domains/network/session.d.ts +46 -0
- package/lib/types/worker/cdp/domains/runtime/cdp-params.d.ts +82 -0
- package/lib/types/worker/cdp/domains/runtime/index.d.ts +3 -0
- package/lib/types/worker/cdp/domains/runtime/object-table.d.ts +117 -0
- package/lib/types/worker/cdp/domains/runtime/session.d.ts +97 -0
- package/lib/types/worker/cdp/ids.d.ts +37 -0
- package/lib/types/worker/cdp/protocol.d.ts +46 -0
- package/lib/types/worker/cdp/realm-sessions.d.ts +67 -0
- package/lib/types/worker/cdp/session.d.ts +39 -0
- package/lib/types/worker/cdp/target.d.ts +17 -0
- package/lib/types/worker/entry.d.ts +3 -0
- package/lib/types/worker/inspection/cordis-query.d.ts +11 -0
- package/lib/types/worker/inspection/cordis-store.d.ts +94 -0
- package/lib/types/worker/inspection/network-store.d.ts +110 -0
- package/lib/types/worker/inspection/query-router.d.ts +78 -0
- package/lib/types/worker/inspection/realm-store.d.ts +58 -0
- package/lib/types/worker/inspection/realm.d.ts +43 -0
- package/lib/types/worker/realms/client/bridge.d.ts +18 -0
- package/lib/types/worker/realms/client/console.d.ts +21 -0
- package/lib/types/worker/realms/client/debugger.d.ts +8 -0
- package/lib/types/worker/realms/client/index.d.ts +18 -0
- package/lib/types/worker/realms/client/runtime.d.ts +28 -0
- package/lib/types/worker/realms/client/scripts.d.ts +15 -0
- package/lib/types/worker/realms/client/sources.d.ts +30 -0
- package/lib/types/worker/realms/client/values.d.ts +55 -0
- package/lib/types/worker/realms/host/bridge.d.ts +49 -0
- package/lib/types/worker/realms/host/console.d.ts +25 -0
- package/lib/types/worker/realms/host/debugger.d.ts +25 -0
- package/lib/types/worker/realms/host/index.d.ts +13 -0
- package/lib/types/worker/realms/host/runtime.d.ts +54 -0
- package/lib/types/worker/realms/host/scripts.d.ts +9 -0
- package/lib/types/worker/realms/host/sources.d.ts +26 -0
- package/lib/types/worker/realms/host/values.d.ts +22 -0
- package/lib/types/worker/server.d.ts +16 -0
- package/lib/worker.js +7289 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +90 -3
|
@@ -0,0 +1,1288 @@
|
|
|
1
|
+
import { n as e } from "./chunk-DF993M8W.js";
|
|
2
|
+
import { X as t } from "./platform-BzB373NB.js";
|
|
3
|
+
import { Pt as n, Vt as r, bt as i, d as a, dn as o, tn as s, wt as c } from "./common-qd_KLeYO.js";
|
|
4
|
+
import { l } from "./root-DbVQo07X.js";
|
|
5
|
+
import { $i as u, Ad as d, Al as f, Fo as p, Hr as ee, La as te, Md as m, Nd as h, Po as g, S as _, Vr as ne, Wo as v, Xf as y, Zo as b, ei as x, ff as S, ha as C, ii as re, kl as ie, mf as ae, ni as w, pf as oe, tl as se, vi as ce } from "./legacy-Bqn4Q0Tf.js";
|
|
6
|
+
import { b as T } from "./text_utils-ohNt_gua.js";
|
|
7
|
+
import { C as E, c as D } from "./common-DjRFwulW.js";
|
|
8
|
+
import "./data_grid-pC5qqfsJ.js";
|
|
9
|
+
import { n as O, t as k } from "./helpers--xrfGSwQ.js";
|
|
10
|
+
import { i as le } from "./color_picker-Cuh_X19Y.js";
|
|
11
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/panels/css_overview/CSSOverviewUnusedDeclarations.ts
|
|
12
|
+
var ue = /* @__PURE__ */ e({ CSSOverviewUnusedDeclarations: () => M }), A = {
|
|
13
|
+
topAppliedToAStatically: "`Top` applied to a statically positioned element",
|
|
14
|
+
leftAppliedToAStatically: "`Left` applied to a statically positioned element",
|
|
15
|
+
rightAppliedToAStatically: "`Right` applied to a statically positioned element",
|
|
16
|
+
bottomAppliedToAStatically: "`Bottom` applied to a statically positioned element",
|
|
17
|
+
widthAppliedToAnInlineElement: "`Width` applied to an inline element",
|
|
18
|
+
heightAppliedToAnInlineElement: "`Height` applied to an inline element",
|
|
19
|
+
verticalAlignmentAppliedTo: "Vertical alignment applied to element which is neither `inline` nor `table-cell`"
|
|
20
|
+
}, de = c("panels/css_overview/CSSOverviewUnusedDeclarations.ts", A), j = i.bind(void 0, de), M = class {
|
|
21
|
+
static add(e, t, n) {
|
|
22
|
+
let r = e.get(t) || [];
|
|
23
|
+
r.push(n), e.set(t, r);
|
|
24
|
+
}
|
|
25
|
+
static checkForUnusedPositionValues(e, t, n, r, i, a, o, s) {
|
|
26
|
+
if (n[r] === "static") {
|
|
27
|
+
if (n[i] !== "auto") {
|
|
28
|
+
let r = j(A.topAppliedToAStatically);
|
|
29
|
+
this.add(e, r, {
|
|
30
|
+
declaration: `top: ${n[i]}`,
|
|
31
|
+
nodeId: t
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
if (n[a] !== "auto") {
|
|
35
|
+
let r = j(A.leftAppliedToAStatically);
|
|
36
|
+
this.add(e, r, {
|
|
37
|
+
declaration: `left: ${n[a]}`,
|
|
38
|
+
nodeId: t
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
if (n[o] !== "auto") {
|
|
42
|
+
let r = j(A.rightAppliedToAStatically);
|
|
43
|
+
this.add(e, r, {
|
|
44
|
+
declaration: `right: ${n[o]}`,
|
|
45
|
+
nodeId: t
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (n[s] !== "auto") {
|
|
49
|
+
let r = j(A.bottomAppliedToAStatically);
|
|
50
|
+
this.add(e, r, {
|
|
51
|
+
declaration: `bottom: ${n[s]}`,
|
|
52
|
+
nodeId: t
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
static checkForUnusedWidthAndHeightValues(e, t, n, r, i, a) {
|
|
58
|
+
if (n[r] === "inline") {
|
|
59
|
+
if (n[i] !== "auto") {
|
|
60
|
+
let r = j(A.widthAppliedToAnInlineElement);
|
|
61
|
+
this.add(e, r, {
|
|
62
|
+
declaration: `width: ${n[i]}`,
|
|
63
|
+
nodeId: t
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
if (n[a] !== "auto") {
|
|
67
|
+
let r = j(A.heightAppliedToAnInlineElement);
|
|
68
|
+
this.add(e, r, {
|
|
69
|
+
declaration: `height: ${n[a]}`,
|
|
70
|
+
nodeId: t
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
static checkForInvalidVerticalAlignment(e, t, n, r, i) {
|
|
76
|
+
if (!(!n[r] || n[r].startsWith("inline") || n[r].startsWith("table")) && n[i] !== "baseline") {
|
|
77
|
+
let r = j(A.verticalAlignmentAppliedTo);
|
|
78
|
+
this.add(e, r, {
|
|
79
|
+
declaration: `vertical-align: ${n[i]}`,
|
|
80
|
+
nodeId: t
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, N = /* @__PURE__ */ e({ CSSOverviewModel: () => P }), P = class extends S {
|
|
85
|
+
#e;
|
|
86
|
+
#t;
|
|
87
|
+
#n;
|
|
88
|
+
constructor(e) {
|
|
89
|
+
super(e), this.#e = e.runtimeAgent(), this.#t = e.cssAgent(), this.#n = e.domsnapshotAgent();
|
|
90
|
+
}
|
|
91
|
+
async getNodeStyleStats() {
|
|
92
|
+
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = {
|
|
93
|
+
computedStyles: [
|
|
94
|
+
"background-color",
|
|
95
|
+
"color",
|
|
96
|
+
"fill",
|
|
97
|
+
"border-top-width",
|
|
98
|
+
"border-top-color",
|
|
99
|
+
"border-bottom-width",
|
|
100
|
+
"border-bottom-color",
|
|
101
|
+
"border-left-width",
|
|
102
|
+
"border-left-color",
|
|
103
|
+
"border-right-width",
|
|
104
|
+
"border-right-color",
|
|
105
|
+
"font-family",
|
|
106
|
+
"font-size",
|
|
107
|
+
"font-weight",
|
|
108
|
+
"line-height",
|
|
109
|
+
"position",
|
|
110
|
+
"top",
|
|
111
|
+
"right",
|
|
112
|
+
"bottom",
|
|
113
|
+
"left",
|
|
114
|
+
"display",
|
|
115
|
+
"width",
|
|
116
|
+
"height",
|
|
117
|
+
"vertical-align"
|
|
118
|
+
],
|
|
119
|
+
includeTextColorOpacities: !0,
|
|
120
|
+
includeBlendedBackgroundColors: !0
|
|
121
|
+
}, f = (e) => e instanceof r ? e.hasAlpha() ? e.asString(n.HEXA) : e.asString(n.HEX) : e.asString(), p = (e, t, n) => {
|
|
122
|
+
if (e === -1) return;
|
|
123
|
+
let r = _[e];
|
|
124
|
+
if (!r) return;
|
|
125
|
+
let i = s(r);
|
|
126
|
+
if (!i || i.asLegacyColor().rgba()[3] === 0) return;
|
|
127
|
+
let a = f(i);
|
|
128
|
+
if (!a) return;
|
|
129
|
+
let o = n.get(a) || /* @__PURE__ */ new Set();
|
|
130
|
+
return o.add(t), n.set(a, o), i;
|
|
131
|
+
}, ee = (e) => new Set([
|
|
132
|
+
"altglyph",
|
|
133
|
+
"circle",
|
|
134
|
+
"ellipse",
|
|
135
|
+
"path",
|
|
136
|
+
"polygon",
|
|
137
|
+
"polyline",
|
|
138
|
+
"rect",
|
|
139
|
+
"svg",
|
|
140
|
+
"text",
|
|
141
|
+
"textpath",
|
|
142
|
+
"tref",
|
|
143
|
+
"tspan"
|
|
144
|
+
]).has(e.toLowerCase()), te = (e) => new Set([
|
|
145
|
+
"iframe",
|
|
146
|
+
"video",
|
|
147
|
+
"embed",
|
|
148
|
+
"img"
|
|
149
|
+
]).has(e.toLowerCase()), m = (e, t) => new Set([
|
|
150
|
+
"tr",
|
|
151
|
+
"td",
|
|
152
|
+
"thead",
|
|
153
|
+
"tbody"
|
|
154
|
+
]).has(e.toLowerCase()) && t.startsWith("table"), h = 0, { documents: g, strings: _ } = await this.#n.invoke_captureSnapshot(d);
|
|
155
|
+
for (let { nodes: r, layout: d } of g) {
|
|
156
|
+
h += d.nodeIndex.length;
|
|
157
|
+
for (let h = 0; h < d.styles.length; h++) {
|
|
158
|
+
let g = d.styles[h], ne = d.nodeIndex[h];
|
|
159
|
+
if (!r.backendNodeId || !r.nodeName) continue;
|
|
160
|
+
let v = r.backendNodeId[ne], y = r.nodeName[ne], [b, x, S, C, re, ie, ae, w, oe, se, ce, T, E, D, O, k, ue, A, de, j, N, P, fe, F] = g;
|
|
161
|
+
p(b, v, e);
|
|
162
|
+
let I = p(x, v, t);
|
|
163
|
+
if (ee(_[y]) && p(S, v, o), _[C] !== "0px" && p(re, v, c), _[ie] !== "0px" && p(ae, v, c), _[w] !== "0px" && p(oe, v, c), _[se] !== "0px" && p(ce, v, c), T && T !== -1) {
|
|
164
|
+
let e = _[T], t = l.get(e) || /* @__PURE__ */ new Map(), n = "font-size", r = "font-weight", i = "line-height", a = t.get(n) || /* @__PURE__ */ new Map(), o = t.get(r) || /* @__PURE__ */ new Map(), s = t.get(i) || /* @__PURE__ */ new Map();
|
|
165
|
+
if (E !== -1) {
|
|
166
|
+
let e = _[E], t = a.get(e) || [];
|
|
167
|
+
t.push(v), a.set(e, t);
|
|
168
|
+
}
|
|
169
|
+
if (D !== -1) {
|
|
170
|
+
let e = _[D], t = o.get(e) || [];
|
|
171
|
+
t.push(v), o.set(e, t);
|
|
172
|
+
}
|
|
173
|
+
if (O !== -1) {
|
|
174
|
+
let e = _[O], t = s.get(e) || [];
|
|
175
|
+
t.push(v), s.set(e, t);
|
|
176
|
+
}
|
|
177
|
+
t.set(n, a), t.set(r, o), t.set(i, s), l.set(e, t);
|
|
178
|
+
}
|
|
179
|
+
let L = I && d.blendedBackgroundColors && d.blendedBackgroundColors[h] !== -1 ? s(_[d.blendedBackgroundColors[h]]) : null;
|
|
180
|
+
if (I && L) {
|
|
181
|
+
let e = new le({
|
|
182
|
+
backgroundColors: [L.asString(n.HEXA)],
|
|
183
|
+
computedFontSize: E === -1 ? "" : _[E],
|
|
184
|
+
computedFontWeight: D === -1 ? "" : _[D]
|
|
185
|
+
}), t = I.asLegacyColor().blendWithAlpha(d.textColorOpacities ? d.textColorOpacities[h] : 1);
|
|
186
|
+
e.setColor(t);
|
|
187
|
+
let r = `${f(t)}_${f(L.asLegacyColor())}`;
|
|
188
|
+
if (a.instance().moduleSetting("apca").get()) {
|
|
189
|
+
let n = e.contrastRatioAPCA(), a = e.contrastRatioAPCAThreshold();
|
|
190
|
+
if (!(n && a && Math.abs(n) >= a) && n) {
|
|
191
|
+
let e = {
|
|
192
|
+
nodeId: v,
|
|
193
|
+
contrastRatio: n,
|
|
194
|
+
textColor: t,
|
|
195
|
+
backgroundColor: L,
|
|
196
|
+
thresholdsViolated: {
|
|
197
|
+
aa: !1,
|
|
198
|
+
aaa: !1,
|
|
199
|
+
apca: !0
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
i.has(r) ? i.get(r).push(e) : i.set(r, [e]);
|
|
203
|
+
}
|
|
204
|
+
} else {
|
|
205
|
+
let n = e.contrastRatioThreshold("aa") || 0, a = e.contrastRatioThreshold("aaa") || 0, o = e.contrastRatio() || 0;
|
|
206
|
+
if (n > o || a > o) {
|
|
207
|
+
let e = {
|
|
208
|
+
nodeId: v,
|
|
209
|
+
contrastRatio: o,
|
|
210
|
+
textColor: t,
|
|
211
|
+
backgroundColor: L,
|
|
212
|
+
thresholdsViolated: {
|
|
213
|
+
aa: n > o,
|
|
214
|
+
aaa: a > o,
|
|
215
|
+
apca: !1
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
i.has(r) ? i.get(r).push(e) : i.set(r, [e]);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
M.checkForUnusedPositionValues(u, v, _, k, ue, j, A, de), !ee(_[y]) && !te(_[y]) && M.checkForUnusedWidthAndHeightValues(u, v, _, N, P, fe), F !== -1 && !m(_[y], _[N]) && M.checkForInvalidVerticalAlignment(u, v, _, N, F);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return {
|
|
226
|
+
backgroundColors: e,
|
|
227
|
+
textColors: t,
|
|
228
|
+
textColorContrastIssues: i,
|
|
229
|
+
fillColors: o,
|
|
230
|
+
borderColors: c,
|
|
231
|
+
fontInfo: l,
|
|
232
|
+
unusedDeclarations: u,
|
|
233
|
+
elementCount: h
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
getComputedStyleForNode(e) {
|
|
237
|
+
return this.#t.invoke_getComputedStyleForNode({ nodeId: e });
|
|
238
|
+
}
|
|
239
|
+
async getMediaQueries() {
|
|
240
|
+
let e = await this.#t.invoke_getMediaQueries(), t = /* @__PURE__ */ new Map();
|
|
241
|
+
if (!e) return t;
|
|
242
|
+
for (let n of e.medias) {
|
|
243
|
+
if (n.source === "linkedSheet") continue;
|
|
244
|
+
let e = t.get(n.text) || [];
|
|
245
|
+
e.push(n), t.set(n.text, e);
|
|
246
|
+
}
|
|
247
|
+
return t;
|
|
248
|
+
}
|
|
249
|
+
async getGlobalStylesheetStats() {
|
|
250
|
+
let { result: e } = await this.#e.invoke_evaluate({
|
|
251
|
+
expression: "(function() {\n let styleRules = 0;\n let inlineStyles = 0;\n let externalSheets = 0;\n const stats = {\n // Simple.\n type: new Set(),\n class: new Set(),\n id: new Set(),\n universal: new Set(),\n attribute: new Set(),\n\n // Non-simple.\n nonSimple: new Set()\n };\n\n for (const styleSheet of document.styleSheets) {\n if (styleSheet.href) {\n externalSheets++;\n } else {\n inlineStyles++;\n }\n\n // Attempting to grab rules can trigger a DOMException.\n // Try it and if it fails skip to the next stylesheet.\n let rules;\n try {\n rules = styleSheet.rules;\n } catch (err) {\n continue;\n }\n\n for (const rule of rules) {\n if ('selectorText' in rule) {\n styleRules++;\n\n // Each group that was used.\n for (const selectorGroup of rule.selectorText.split(',')) {\n // Each selector in the group.\n for (const selector of selectorGroup.split(/[\\t\\n\\f\\r ]+/g)) {\n if (selector.startsWith('.')) {\n // Class.\n stats.class.add(selector);\n } else if (selector.startsWith('#')) {\n // Id.\n stats.id.add(selector);\n } else if (selector.startsWith('*')) {\n // Universal.\n stats.universal.add(selector);\n } else if (selector.startsWith('[')) {\n // Attribute.\n stats.attribute.add(selector);\n } else {\n // Type or non-simple selector.\n const specialChars = /[#.:\\[\\]|\\+>~]/;\n if (specialChars.test(selector)) {\n stats.nonSimple.add(selector);\n } else {\n stats.type.add(selector);\n }\n }\n }\n }\n }\n }\n }\n\n return {\n styleRules,\n inlineStyles,\n externalSheets,\n stats: {\n // Simple.\n type: stats.type.size,\n class: stats.class.size,\n id: stats.id.size,\n universal: stats.universal.size,\n attribute: stats.attribute.size,\n\n // Non-simple.\n nonSimple: stats.nonSimple.size\n }\n }\n })()",
|
|
252
|
+
returnByValue: !0
|
|
253
|
+
});
|
|
254
|
+
if (e.type === "object") return e.value;
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
S.register(P, {
|
|
258
|
+
capabilities: h.DOM,
|
|
259
|
+
autostart: !1
|
|
260
|
+
});
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region \0qilin-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/panels/css_overview/cssOverviewProcessingView.css.mjs
|
|
263
|
+
var fe = "/**\n * Copyright 2019 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.overview-processing-view {\n overflow: hidden;\n padding: 16px;\n justify-content: center;\n align-items: center;\n height: 100%;\n}\n\n.overview-processing-view h1 {\n font-size: 16px;\n text-align: center;\n font-weight: normal;\n margin: 0;\n padding: 8px;\n}\n\n.overview-processing-view h2 {\n font-size: 12px;\n text-align: center;\n font-weight: normal;\n margin: 0;\n padding-top: 32px;\n}\n", F = /* @__PURE__ */ e({
|
|
264
|
+
CSSOverviewProcessingView: () => he,
|
|
265
|
+
DEFAULT_VIEW: () => me
|
|
266
|
+
}), I = { cancel: "Cancel" }, L = c("panels/css_overview/CSSOverviewProcessingView.ts", I), pe = i.bind(void 0, L), me = (e, t, n) => {
|
|
267
|
+
p(g`
|
|
268
|
+
<style>${fe}</style>
|
|
269
|
+
<div style="overflow:auto">
|
|
270
|
+
<div class="vbox overview-processing-view">
|
|
271
|
+
<h1>Processing page</h1>
|
|
272
|
+
<div>
|
|
273
|
+
<devtools-button
|
|
274
|
+
@click=${e.onCancel}
|
|
275
|
+
.jslogContext=${"css-overview.cancel-processing"}
|
|
276
|
+
.variant=${u.OUTLINED}>${pe(I.cancel)}</devtools-button>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
</div>`, n);
|
|
280
|
+
}, he = class extends w {
|
|
281
|
+
#e = () => {};
|
|
282
|
+
#t;
|
|
283
|
+
constructor(e, t = me) {
|
|
284
|
+
super(e), this.#t = t, this.requestUpdate();
|
|
285
|
+
}
|
|
286
|
+
set onCancel(e) {
|
|
287
|
+
this.#e = e, this.requestUpdate();
|
|
288
|
+
}
|
|
289
|
+
performUpdate() {
|
|
290
|
+
this.#t({ onCancel: this.#e }, {}, this.element);
|
|
291
|
+
}
|
|
292
|
+
}, R = "/**\n * Copyright 2019 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n@scope to (devtools-widget > *) {\n .overview-completed-view {\n overflow: auto;\n\n --overview-default-padding: 28px;\n --overview-icon-padding: 32px;\n }\n\n .overview-completed-view .summary ul,\n .overview-completed-view .colors ul {\n display: flex;\n flex-wrap: wrap;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .overview-completed-view .summary ul {\n display: grid;\n grid-template-columns: repeat(auto-fill, 140px);\n gap: 16px;\n }\n\n .overview-completed-view .colors ul li {\n display: inline-block;\n margin: 0 0 16px;\n padding: 0 8px 0 0;\n }\n\n .overview-completed-view .summary ul li {\n display: flex;\n flex-direction: column;\n grid-column-start: auto;\n }\n\n .overview-completed-view li .label {\n font-size: 12px;\n padding-bottom: 2px;\n }\n\n .overview-completed-view li .value {\n font-size: 17px;\n }\n\n .overview-completed-view ul li span {\n font-weight: bold;\n }\n\n .unused-rules-grid .header-container,\n .unused-rules-grid .data-container,\n .unused-rules-grid table.data {\n position: relative;\n }\n\n .unused-rules-grid .data-container {\n top: 0;\n max-height: 350px;\n }\n\n .unused-rules-grid {\n border-left: none;\n border-right: none;\n }\n /** Ensure links are rendered at the correct height */\n\n .unused-rules-grid .monospace {\n display: block;\n height: 18px;\n }\n\n .element-grid {\n flex: 1;\n border-left: none;\n border-right: none;\n overflow: auto;\n }\n\n .block {\n width: 65px;\n height: 25px;\n border-radius: 3px;\n margin-right: 16px;\n\n &:focus-visible {\n outline: 2px solid var(--sys-color-state-focus-ring);\n outline-offset: 2px;\n }\n }\n\n .block-title {\n padding-top: 4px;\n font-size: 12px;\n color: var(--sys-color-on-surface);\n letter-spacing: 0;\n text-transform: uppercase;\n }\n\n .block-title.color-text {\n text-transform: none;\n max-width: 65px;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: text;\n user-select: text;\n overflow: hidden;\n }\n\n .results-section {\n flex-shrink: 0;\n border-bottom: 1px solid var(--sys-color-divider);\n padding: var(--overview-default-padding) 0 var(--overview-default-padding) 0;\n }\n\n .horizontally-padded {\n padding-left: var(--overview-default-padding);\n padding-right: var(--overview-default-padding);\n }\n\n .results-section h1 {\n font-size: 15px;\n font-weight: normal;\n padding: 0;\n margin: 0 0 20px;\n padding-left: calc(var(--overview-default-padding) + var(--overview-icon-padding));\n position: relative;\n height: 26px;\n line-height: 26px;\n }\n\n .results-section h1::before {\n content: \"\";\n display: block;\n position: absolute;\n left: var(--overview-default-padding);\n top: 0;\n width: 26px;\n height: 26px;\n /* stylelint-disable-next-line custom-property-pattern */\n background-image: var(--image-file-cssoverview_icons_2x);\n background-size: 104px 26px;\n }\n\n .results-section.horizontally-padded h1 {\n padding-left: var(--overview-icon-padding);\n }\n\n .results-section.horizontally-padded h1::before {\n left: 0;\n }\n\n .results-section.summary h1 {\n padding-left: 0;\n }\n\n .results-section.summary h1::before {\n display: none;\n }\n\n .results-section.colors h1::before {\n background-position: 0 0;\n }\n\n .results-section.font-info h1::before {\n background-position: -26px 0;\n }\n\n .results-section.unused-declarations h1::before {\n background-position: -52px 0;\n }\n\n .results-section.media-queries h1::before {\n background-position: -78px 0;\n }\n\n .results-section.colors h2 {\n margin-top: 20px;\n font-size: 13px;\n font-weight: normal;\n }\n\n .overview-completed-view .font-info ul,\n .overview-completed-view .media-queries ul,\n .overview-completed-view .unused-declarations ul {\n width: 100%;\n list-style: none;\n margin: 0;\n padding: 0 var(--overview-default-padding);\n }\n\n .overview-completed-view .font-info ul li,\n .overview-completed-view .media-queries ul li,\n .overview-completed-view .unused-declarations ul li {\n display: grid;\n grid-template-columns: 2fr 3fr;\n gap: 12px;\n margin-bottom: 4px;\n align-items: center;\n }\n\n .overview-completed-view .font-info button .details,\n .overview-completed-view .media-queries button .details,\n .overview-completed-view .unused-declarations button .details {\n min-width: 100px;\n text-align: right;\n margin-right: 8px;\n color: var(--sys-color-primary);\n pointer-events: none;\n }\n\n .overview-completed-view .font-info button .bar-container,\n .overview-completed-view .media-queries button .bar-container,\n .overview-completed-view .unused-declarations button .bar-container {\n flex: 1;\n pointer-events: none;\n }\n\n .overview-completed-view .font-info button .bar,\n .overview-completed-view .media-queries button .bar,\n .overview-completed-view .unused-declarations button .bar {\n height: 8px;\n background: var(--sys-color-primary-bright);\n border-radius: 2px;\n min-width: 2px;\n }\n\n .overview-completed-view .font-info button,\n .overview-completed-view .media-queries button,\n .overview-completed-view .unused-declarations button {\n border: none;\n padding: 0;\n padding-right: 10px;\n margin: 0;\n display: flex;\n align-items: center;\n border-radius: 2px;\n cursor: pointer;\n height: 28px;\n background: none;\n\n &:focus-visible {\n outline: 2px solid var(--sys-color-state-focus-ring);\n }\n\n &:hover {\n border-radius: 12px;\n background: var(--sys-color-state-hover-on-subtle);\n }\n\n &:hover .details,\n &:focus .details {\n color: color-mix(in srgb, var(--sys-color-primary), var(--sys-color-state-hover-on-prominent) 6%);\n }\n\n &:hover .bar,\n &:focus .bar {\n background-color: color-mix(in srgb, var(--sys-color-primary-bright), var(--sys-color-state-hover-on-prominent) 6%);\n color: var(--sys-color-on-primary);\n }\n }\n\n .overview-completed-view .font-info .font-metric {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));\n gap: 12px;\n }\n\n .overview-completed-view .font-info ul {\n padding: 0;\n }\n\n .overview-completed-view .font-info ul li {\n grid-template-columns: 1fr 4fr;\n }\n\n .overview-completed-view .font-info h2 {\n font-size: 14px;\n font-weight: bold;\n margin: 0 0 1em;\n }\n\n .overview-completed-view .font-info h3 {\n font-size: 13px;\n font-weight: normal;\n font-style: italic;\n margin: 0 0 0.5em;\n }\n\n .overview-completed-view .font-info {\n padding-bottom: 0;\n }\n\n .overview-completed-view .font-family {\n padding: var(--overview-default-padding);\n }\n\n .overview-completed-view .font-family:nth-child(2n+1) {\n background: var(--sys-color-cdt-base-container);\n }\n\n .overview-completed-view .font-family:first-of-type {\n padding-top: 0;\n }\n\n .contrast-warning {\n display: flex;\n align-items: center;\n margin-top: 2px;\n }\n\n .contrast-warning .threshold-label {\n font-weight: normal;\n width: 30px;\n }\n\n .contrast-warning devtools-icon {\n margin-left: 2px;\n }\n\n .contrast-preview {\n padding: 0 5px;\n }\n\n .contrast-container-in-grid {\n display: flex;\n align-items: center;\n }\n\n .contrast-container-in-grid > * {\n margin-right: 5px;\n min-width: initial;\n }\n\n ::part(node-id-column) {\n align-items: center;\n height: 20px;\n\n --show-element-display: none;\n }\n\n ::part(node-id-column):focus,\n ::part(node-id-column):hover {\n --show-element-display: inline-block;\n }\n\n ::part(show-element) {\n display: var(--show-element-display);\n height: 16px;\n width: 16px;\n }\n\n .results-section.colors {\n forced-color-adjust: none; /* show colors in high contrast theme */\n }\n}\n", ge = "/**\n * Copyright 2019 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n@scope to (devtools-widget > *) {\n .overview-sidebar-panel {\n display: flex;\n background: var(--sys-color-cdt-base-container);\n min-width: fit-content;\n flex-direction: column;\n }\n\n .overview-sidebar-panel-item {\n height: 30px;\n padding-left: 30px;\n display: flex;\n align-items: center;\n color: var(--sys-color-on-surface);\n white-space: nowrap;\n\n &:hover {\n background: var(--sys-color-state-hover-on-subtle);\n }\n\n &:focus {\n background: var(--sys-color-state-focus-highlight);\n }\n\n &.selected {\n background: var(--sys-color-tonal-container);\n color: var(--sys-color-on-tonal-container);\n }\n }\n\n .overview-toolbar {\n border-bottom: 1px solid var(--sys-color-divider);\n flex: 0 0 auto;\n }\n\n .overview-sidebar-panel-item:focus-visible {\n outline-width: unset;\n }\n\n @media (forced-colors: active) {\n .overview-sidebar-panel-item.selected {\n forced-color-adjust: none; /* crbug.com/1166705 workaround */\n background: Highlight;\n color: HighlightText;\n }\n\n .overview-sidebar-panel-item:hover {\n forced-color-adjust: none; /* crbug.com/1166705 workaround */\n background: Highlight;\n color: HighlightText;\n }\n }\n}\n", _e = /* @__PURE__ */ e({
|
|
293
|
+
CSSOverviewSidebarPanel: () => Se,
|
|
294
|
+
DEFAULT_VIEW: () => xe
|
|
295
|
+
}), { classMap: ve } = v, z = {
|
|
296
|
+
clearOverview: "Clear overview",
|
|
297
|
+
cssOverviewPanelSidebar: "CSS overview panel sidebar"
|
|
298
|
+
}, ye = c("panels/css_overview/CSSOverviewSidebarPanel.ts", z), be = i.bind(void 0, ye), xe = (e, t, n) => {
|
|
299
|
+
p(g`
|
|
300
|
+
<style>${ge}</style>
|
|
301
|
+
<div class="overview-sidebar-panel" @click=${(t) => {
|
|
302
|
+
if (t.target instanceof HTMLElement) {
|
|
303
|
+
let n = t.target.dataset.id;
|
|
304
|
+
n && e.onItemClick(n);
|
|
305
|
+
}
|
|
306
|
+
}} @keydown=${(t) => {
|
|
307
|
+
if (!(t.key !== "Enter" && t.key !== "ArrowUp" && t.key !== "ArrowDown")) {
|
|
308
|
+
if (t.target instanceof HTMLElement) {
|
|
309
|
+
let n = t.target.dataset.id;
|
|
310
|
+
n && e.onItemKeyDown(n, t.key);
|
|
311
|
+
}
|
|
312
|
+
t.consume(!0);
|
|
313
|
+
}
|
|
314
|
+
}}
|
|
315
|
+
aria-label=${be(z.cssOverviewPanelSidebar)} role="tree">
|
|
316
|
+
<div class="overview-toolbar">
|
|
317
|
+
<devtools-toolbar>
|
|
318
|
+
<devtools-button title=${be(z.clearOverview)} @click=${e.onReset}
|
|
319
|
+
.iconName=${"clear"} .variant=${u.TOOLBAR}
|
|
320
|
+
.jslogContext=${"css-overview.clear-overview"}></devtools-button>
|
|
321
|
+
</devtools-toolbar>
|
|
322
|
+
</div>
|
|
323
|
+
${e.items.map(({ id: t, name: n }) => {
|
|
324
|
+
let r = t === e.selectedId;
|
|
325
|
+
return g`
|
|
326
|
+
<div class="overview-sidebar-panel-item ${ve({ selected: r })}"
|
|
327
|
+
?autofocus=${r}
|
|
328
|
+
role="treeitem" data-id=${t} tabindex="0"
|
|
329
|
+
jslog=${te(`css-overview.${t}`).track({
|
|
330
|
+
click: !0,
|
|
331
|
+
keydown: "Enter|ArrowUp|ArrowDown"
|
|
332
|
+
})}>
|
|
333
|
+
${n}
|
|
334
|
+
</div>`;
|
|
335
|
+
})}
|
|
336
|
+
</div>`, n);
|
|
337
|
+
}, Se = class extends x {
|
|
338
|
+
#e;
|
|
339
|
+
#t = [];
|
|
340
|
+
#n;
|
|
341
|
+
#r = (e, t) => {};
|
|
342
|
+
#i = () => {};
|
|
343
|
+
constructor(e, t = xe) {
|
|
344
|
+
super(e, {
|
|
345
|
+
useShadowDom: !0,
|
|
346
|
+
delegatesFocus: !0
|
|
347
|
+
}), this.#e = t;
|
|
348
|
+
}
|
|
349
|
+
performUpdate() {
|
|
350
|
+
let e = {
|
|
351
|
+
items: this.#t,
|
|
352
|
+
selectedId: this.#n,
|
|
353
|
+
onReset: this.#i,
|
|
354
|
+
onItemClick: this.#o.bind(this),
|
|
355
|
+
onItemKeyDown: this.#s.bind(this)
|
|
356
|
+
};
|
|
357
|
+
this.#e(e, {}, this.contentElement);
|
|
358
|
+
}
|
|
359
|
+
set items(e) {
|
|
360
|
+
this.#t = e, this.requestUpdate();
|
|
361
|
+
}
|
|
362
|
+
set selectedId(e) {
|
|
363
|
+
this.#a(e);
|
|
364
|
+
}
|
|
365
|
+
set onItemSelected(e) {
|
|
366
|
+
this.#r = e, this.requestUpdate();
|
|
367
|
+
}
|
|
368
|
+
set onReset(e) {
|
|
369
|
+
this.#i = e, this.requestUpdate();
|
|
370
|
+
}
|
|
371
|
+
#a(e, t = !1) {
|
|
372
|
+
return this.#n = e, this.requestUpdate(), this.#r(e, t), this.updateComplete;
|
|
373
|
+
}
|
|
374
|
+
#o(e) {
|
|
375
|
+
this.#a(e, !1);
|
|
376
|
+
}
|
|
377
|
+
#s(e, t) {
|
|
378
|
+
if (t === "Enter") this.#a(e, !0);
|
|
379
|
+
else {
|
|
380
|
+
let n = -1;
|
|
381
|
+
for (let t = 0; t < this.#t.length; t++) if (this.#t[t].id === e) {
|
|
382
|
+
n = t;
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
if (n < 0) return;
|
|
386
|
+
let r = (n + (t === "ArrowDown" ? 1 : -1)) % this.#t.length, i = this.#t[r].id;
|
|
387
|
+
if (!i) return;
|
|
388
|
+
this.#a(i, !1).then(() => {
|
|
389
|
+
this.element.blur(), this.element.focus();
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}, Ce = /* @__PURE__ */ e({
|
|
394
|
+
CSSOverviewCompletedView: () => G,
|
|
395
|
+
DEFAULT_VIEW: () => Oe,
|
|
396
|
+
ELEMENT_DETAILS_DEFAULT_VIEW: () => Re,
|
|
397
|
+
ElementDetailsView: () => ze
|
|
398
|
+
}), { styleMap: B, ref: V } = v, { widget: we } = re, H = {
|
|
399
|
+
overviewSummary: "Overview summary",
|
|
400
|
+
colors: "Colors",
|
|
401
|
+
fontInfo: "Font info",
|
|
402
|
+
unusedDeclarations: "Unused declarations",
|
|
403
|
+
mediaQueries: "Media queries",
|
|
404
|
+
elements: "Elements",
|
|
405
|
+
externalStylesheets: "External stylesheets",
|
|
406
|
+
inlineStyleElements: "Inline style elements",
|
|
407
|
+
styleRules: "Style rules",
|
|
408
|
+
typeSelectors: "Type selectors",
|
|
409
|
+
idSelectors: "ID selectors",
|
|
410
|
+
classSelectors: "Class selectors",
|
|
411
|
+
universalSelectors: "Universal selectors",
|
|
412
|
+
attributeSelectors: "Attribute selectors",
|
|
413
|
+
nonsimpleSelectors: "Non-simple selectors",
|
|
414
|
+
backgroundColorsS: "Background colors: {PH1}",
|
|
415
|
+
textColorsS: "Text colors: {PH1}",
|
|
416
|
+
fillColorsS: "Fill colors: {PH1}",
|
|
417
|
+
borderColorsS: "Border colors: {PH1}",
|
|
418
|
+
thereAreNoFonts: "There are no fonts.",
|
|
419
|
+
thereAreNoUnusedDeclarations: "There are no unused declarations.",
|
|
420
|
+
thereAreNoMediaQueries: "There are no media queries.",
|
|
421
|
+
contrastIssues: "Contrast issues",
|
|
422
|
+
nOccurrences: "{n, plural, =1 {# occurrence} other {# occurrences}}",
|
|
423
|
+
contrastIssuesS: "Contrast issues: {PH1}",
|
|
424
|
+
textColorSOverSBackgroundResults: "Text color {PH1} over {PH2} background results in low contrast for {PH3} elements",
|
|
425
|
+
aa: "AA",
|
|
426
|
+
aaa: "AAA",
|
|
427
|
+
apca: "APCA",
|
|
428
|
+
element: "Element",
|
|
429
|
+
declaration: "Declaration",
|
|
430
|
+
source: "Source",
|
|
431
|
+
contrastRatio: "Contrast ratio",
|
|
432
|
+
cssOverviewElements: "CSS overview elements",
|
|
433
|
+
showElement: "Show element",
|
|
434
|
+
unableToLink: "(unable to link)",
|
|
435
|
+
unableToLinkToInlineStyle: "(unable to link to inline style)"
|
|
436
|
+
}, Te = c("panels/css_overview/CSSOverviewCompletedView.ts", H), U = i.bind(void 0, Te);
|
|
437
|
+
function Ee(e) {
|
|
438
|
+
let { h: t, s: r, l: i } = e.as(n.HSL);
|
|
439
|
+
return t = Math.round(t * 360), r = Math.round(r * 100), i = Math.round(i * 100), i = Math.max(0, i - 15), `1px solid hsl(${t}deg ${r}% ${i}%)`;
|
|
440
|
+
}
|
|
441
|
+
var De = new Intl.NumberFormat("en-US"), Oe = (e, t, n) => {
|
|
442
|
+
function r(e, t) {
|
|
443
|
+
e && (e.scrollIntoView(), t && e.querySelector("button, [tabindex=\"0\"]")?.focus());
|
|
444
|
+
}
|
|
445
|
+
p(g`
|
|
446
|
+
<style>${R}</style>
|
|
447
|
+
<devtools-split-view direction="column" sidebar-position="first" sidebar-initial-size="200">
|
|
448
|
+
<devtools-widget slot="sidebar" ${we(Se, {
|
|
449
|
+
minimumSize: new ce(100, 25),
|
|
450
|
+
items: [
|
|
451
|
+
{
|
|
452
|
+
name: U(H.overviewSummary),
|
|
453
|
+
id: "summary"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
name: U(H.colors),
|
|
457
|
+
id: "colors"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
name: U(H.fontInfo),
|
|
461
|
+
id: "font-info"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: U(H.unusedDeclarations),
|
|
465
|
+
id: "unused-declarations"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
name: U(H.mediaQueries),
|
|
469
|
+
id: "media-queries"
|
|
470
|
+
}
|
|
471
|
+
],
|
|
472
|
+
selectedId: e.selectedSection,
|
|
473
|
+
onItemSelected: e.onSectionSelected,
|
|
474
|
+
onReset: e.onReset
|
|
475
|
+
})}>
|
|
476
|
+
</devtools-widget>
|
|
477
|
+
<devtools-split-view sidebar-position="second" slot="main" direction="row" sidebar-initial-size="minimized">
|
|
478
|
+
<div class="vbox overview-completed-view" slot="main" @click=${e.onClick}>
|
|
479
|
+
<!-- Dupe the styles into the main container because of the shadow root will prevent outer styles. -->
|
|
480
|
+
<style>${R}</style>
|
|
481
|
+
<div class="results-section horizontally-padded summary"
|
|
482
|
+
${V((e) => {
|
|
483
|
+
t.revealSection.set("summary", r.bind(null, e));
|
|
484
|
+
})}>
|
|
485
|
+
<h1>${U(H.overviewSummary)}</h1>
|
|
486
|
+
${ke(e.elementCount, e.globalStyleStats, e.mediaQueries)}
|
|
487
|
+
</div>
|
|
488
|
+
<div class="results-section horizontally-padded colors"
|
|
489
|
+
${V((e) => {
|
|
490
|
+
t.revealSection.set("colors", r.bind(null, e));
|
|
491
|
+
})}>
|
|
492
|
+
<h1>${U(H.colors)}</h1>
|
|
493
|
+
${Ae(e.backgroundColors, e.textColors, e.textColorContrastIssues, e.fillColors, e.borderColors)}
|
|
494
|
+
</div>
|
|
495
|
+
<div class="results-section font-info"
|
|
496
|
+
${V((e) => {
|
|
497
|
+
t.revealSection.set("font-info", r.bind(null, e));
|
|
498
|
+
})}>
|
|
499
|
+
<h1>${U(H.fontInfo)}</h1>
|
|
500
|
+
${Ne(e.fontInfo)}
|
|
501
|
+
</div>
|
|
502
|
+
<div class="results-section unused-declarations"
|
|
503
|
+
${V((e) => {
|
|
504
|
+
t.revealSection.set("unused-declarations", r.bind(null, e));
|
|
505
|
+
})}>
|
|
506
|
+
<h1>${U(H.unusedDeclarations)}</h1>
|
|
507
|
+
${je(e.unusedDeclarations)}
|
|
508
|
+
</div>
|
|
509
|
+
<div class="results-section media-queries"
|
|
510
|
+
${V((e) => {
|
|
511
|
+
t.revealSection.set("media-queries", r.bind(null, e));
|
|
512
|
+
})}>
|
|
513
|
+
<h1>${U(H.mediaQueries)}</h1>
|
|
514
|
+
${Me(e.mediaQueries)}
|
|
515
|
+
</div>
|
|
516
|
+
</div>
|
|
517
|
+
<devtools-widget slot="sidebar" ${we((e) => {
|
|
518
|
+
let n = new ee(e);
|
|
519
|
+
return t.closeAllTabs = () => {
|
|
520
|
+
n.closeTabs(n.tabIds());
|
|
521
|
+
}, t.addTab = (e, t, r, i) => {
|
|
522
|
+
n.hasTab(e) || n.appendTab(e, t, r, void 0, void 0, !0, void 0, void 0, i), n.selectTab(e), n.parentWidget().setSidebarMinimized(!1);
|
|
523
|
+
}, n.addEventListener(ne.TabClosed, (e) => {
|
|
524
|
+
n.tabIds().length === 0 && n.parentWidget().setSidebarMinimized(!0);
|
|
525
|
+
}), n;
|
|
526
|
+
})}>
|
|
527
|
+
</devtools-widget>
|
|
528
|
+
</devtools-split-view>
|
|
529
|
+
</devtools-split-view>`, n);
|
|
530
|
+
};
|
|
531
|
+
function ke(e, t, n) {
|
|
532
|
+
let r = (e, t) => g`
|
|
533
|
+
<li>
|
|
534
|
+
<div class="label">${e}</div>
|
|
535
|
+
<div class="value">${De.format(t)}</div>
|
|
536
|
+
</li>`;
|
|
537
|
+
return g`<ul>
|
|
538
|
+
${r(U(H.elements), e)}
|
|
539
|
+
${r(U(H.externalStylesheets), t.externalSheets)}
|
|
540
|
+
${r(U(H.inlineStyleElements), t.inlineStyles)}
|
|
541
|
+
${r(U(H.styleRules), t.styleRules)}
|
|
542
|
+
${r(U(H.mediaQueries), n.length)}
|
|
543
|
+
${r(U(H.typeSelectors), t.stats.type)}
|
|
544
|
+
${r(U(H.idSelectors), t.stats.id)}
|
|
545
|
+
${r(U(H.classSelectors), t.stats.class)}
|
|
546
|
+
${r(U(H.universalSelectors), t.stats.universal)}
|
|
547
|
+
${r(U(H.attributeSelectors), t.stats.attribute)}
|
|
548
|
+
${r(U(H.nonsimpleSelectors), t.stats.nonSimple)}
|
|
549
|
+
</ul>`;
|
|
550
|
+
}
|
|
551
|
+
function Ae(e, t, n, r, i) {
|
|
552
|
+
return g`
|
|
553
|
+
<h2>${U(H.backgroundColorsS, { PH1: e.length })}</h2>
|
|
554
|
+
<ul>${e.map((e) => W("background", e))}</ul>
|
|
555
|
+
|
|
556
|
+
<h2>${U(H.textColorsS, { PH1: t.length })}</h2>
|
|
557
|
+
<ul>${t.map((e) => W("text", e))}</ul>
|
|
558
|
+
|
|
559
|
+
${n.size > 0 ? Ie(n) : ""}
|
|
560
|
+
|
|
561
|
+
<h2>${U(H.fillColorsS, { PH1: r.length })}</h2>
|
|
562
|
+
<ul>${r.map((e) => W("fill", e))}</ul>
|
|
563
|
+
|
|
564
|
+
<h2>${U(H.borderColorsS, { PH1: i.length })}</h2>
|
|
565
|
+
<ul>${i.map((e) => W("border", e))}</ul>`;
|
|
566
|
+
}
|
|
567
|
+
function je(e) {
|
|
568
|
+
return e.length > 0 ? Fe(e, "unused-declarations") : g`<div class="horizontally-padded">${U(H.thereAreNoUnusedDeclarations)}</div>`;
|
|
569
|
+
}
|
|
570
|
+
function Me(e) {
|
|
571
|
+
return e.length > 0 ? Fe(e, "media-queries") : g`<div class="horizontally-padded">${U(H.thereAreNoMediaQueries)}</div>`;
|
|
572
|
+
}
|
|
573
|
+
function Ne(e) {
|
|
574
|
+
return e.length > 0 ? g`${e.map(({ font: e, fontMetrics: t }) => g`
|
|
575
|
+
<section class="font-family">
|
|
576
|
+
<h2>${e}</h2>
|
|
577
|
+
${Pe(e, t)}
|
|
578
|
+
</section>`)}` : g`<div>${U(H.thereAreNoFonts)}</div>`;
|
|
579
|
+
}
|
|
580
|
+
function Pe(e, t) {
|
|
581
|
+
return g`
|
|
582
|
+
<div class="font-metric">
|
|
583
|
+
${t.map(({ label: t, values: n }) => g`
|
|
584
|
+
<div>
|
|
585
|
+
<h3>${t}</h3>
|
|
586
|
+
${Fe(n, "font-info", `${e}/${t}`)}
|
|
587
|
+
</div>`)}
|
|
588
|
+
</div>`;
|
|
589
|
+
}
|
|
590
|
+
function Fe(e, t, n = "") {
|
|
591
|
+
let r = e.reduce((e, t) => e + t.nodes.length, 0);
|
|
592
|
+
return g`
|
|
593
|
+
<ul aria-label=${t}>
|
|
594
|
+
${e.map(({ title: e, nodes: i }) => {
|
|
595
|
+
let a = 100 * i.length / r, o = U(H.nOccurrences, { n: i.length });
|
|
596
|
+
return g`<li>
|
|
597
|
+
<div class="title">${e}</div>
|
|
598
|
+
<button data-type=${t} data-path=${n} data-label=${e}
|
|
599
|
+
jslog=${C().track({ click: !0 }).context(`css-overview.${t}`)}
|
|
600
|
+
aria-label=${`${e}: ${o}`}>
|
|
601
|
+
<div class="details">${o}</div>
|
|
602
|
+
<div class="bar-container">
|
|
603
|
+
<div class="bar" style=${B({ width: a })}></div>
|
|
604
|
+
</div>
|
|
605
|
+
</button>
|
|
606
|
+
</li>`;
|
|
607
|
+
})}
|
|
608
|
+
</ul>`;
|
|
609
|
+
}
|
|
610
|
+
function Ie(e) {
|
|
611
|
+
return g`
|
|
612
|
+
<h2>${U(H.contrastIssuesS, { PH1: e.size })}</h2>
|
|
613
|
+
<ul>
|
|
614
|
+
${[...e.entries()].map(([e, t]) => Le(e, t))}
|
|
615
|
+
</ul>`;
|
|
616
|
+
}
|
|
617
|
+
function Le(e, t) {
|
|
618
|
+
console.assert(t.length > 0);
|
|
619
|
+
let r = t[0];
|
|
620
|
+
for (let e of t) Math.abs(e.contrastRatio) < Math.abs(r.contrastRatio) && (r = e);
|
|
621
|
+
let i = r.textColor.asString(n.HEXA), o = r.backgroundColor.asString(n.HEXA), s = a.instance().moduleSetting("apca").get(), c = U(H.textColorSOverSBackgroundResults, {
|
|
622
|
+
PH1: i,
|
|
623
|
+
PH2: o,
|
|
624
|
+
PH3: t.length
|
|
625
|
+
});
|
|
626
|
+
return g`<li>
|
|
627
|
+
<button
|
|
628
|
+
title=${c} aria-label=${c}
|
|
629
|
+
data-type="contrast" data-key=${e} data-section="contrast" class="block"
|
|
630
|
+
style=${B({
|
|
631
|
+
color: i,
|
|
632
|
+
backgroundColor: o,
|
|
633
|
+
border: Ee(r.backgroundColor.asLegacyColor())
|
|
634
|
+
})}
|
|
635
|
+
jslog=${C("css-overview.contrast").track({ click: !0 })}>
|
|
636
|
+
Text
|
|
637
|
+
</button>
|
|
638
|
+
<div class="block-title">
|
|
639
|
+
${s ? g`
|
|
640
|
+
<div class="contrast-warning hidden">
|
|
641
|
+
<span class="threshold-label">${U(H.apca)}</span>
|
|
642
|
+
${r.thresholdsViolated.apca ? K() : q()}
|
|
643
|
+
</div>` : g`
|
|
644
|
+
<div class="contrast-warning hidden">
|
|
645
|
+
<span class="threshold-label">${U(H.aa)}</span>
|
|
646
|
+
${r.thresholdsViolated.aa ? K() : q()}
|
|
647
|
+
</div>
|
|
648
|
+
<div class="contrast-warning hidden">
|
|
649
|
+
<span class="threshold-label">${U(H.aaa)}</span>
|
|
650
|
+
${r.thresholdsViolated.aaa ? K() : q()}
|
|
651
|
+
</div>`}
|
|
652
|
+
</div>
|
|
653
|
+
</li>`;
|
|
654
|
+
}
|
|
655
|
+
function W(e, t) {
|
|
656
|
+
let n = s(t)?.asLegacyColor();
|
|
657
|
+
return n ? g`<li>
|
|
658
|
+
<button title=${t} data-type="color" data-color=${t}
|
|
659
|
+
data-section=${e} class="block"
|
|
660
|
+
style=${B({
|
|
661
|
+
backgroundColor: t,
|
|
662
|
+
border: Ee(n)
|
|
663
|
+
})}
|
|
664
|
+
jslog=${C("css-overview.color").track({ click: !0 })}>
|
|
665
|
+
</button>
|
|
666
|
+
<div class="block-title color-text">${t}</div>
|
|
667
|
+
</li>` : b;
|
|
668
|
+
}
|
|
669
|
+
var G = class e extends x {
|
|
670
|
+
onReset = () => {};
|
|
671
|
+
#e = "summary";
|
|
672
|
+
#t;
|
|
673
|
+
#n;
|
|
674
|
+
#r;
|
|
675
|
+
#i;
|
|
676
|
+
#a;
|
|
677
|
+
#o;
|
|
678
|
+
#s = {
|
|
679
|
+
revealSection: /* @__PURE__ */ new Map(),
|
|
680
|
+
closeAllTabs: () => {},
|
|
681
|
+
addTab: (e, t, n, r) => {}
|
|
682
|
+
};
|
|
683
|
+
constructor(e, t = Oe) {
|
|
684
|
+
super(e), this.#o = t, this.registerRequiredCSS(R), this.#r = new E(20, !0), this.#i = /* @__PURE__ */ new Map(), this.#a = null;
|
|
685
|
+
}
|
|
686
|
+
set target(e) {
|
|
687
|
+
if (!e) return;
|
|
688
|
+
let t = e.model(f), n = e.model(se);
|
|
689
|
+
if (!t || !n) throw Error("Target must provide CSS and DOM models");
|
|
690
|
+
this.#t = t, this.#n = n;
|
|
691
|
+
}
|
|
692
|
+
#c(e, t) {
|
|
693
|
+
let n = this.#s.revealSection.get(e);
|
|
694
|
+
n && n(t);
|
|
695
|
+
}
|
|
696
|
+
#l() {
|
|
697
|
+
this.#u(), this.onReset();
|
|
698
|
+
}
|
|
699
|
+
#u() {
|
|
700
|
+
this.#s.closeAllTabs(), this.#i = /* @__PURE__ */ new Map(), e.pushedNodes.clear(), this.#e = "summary", this.requestUpdate();
|
|
701
|
+
}
|
|
702
|
+
#d(e) {
|
|
703
|
+
if (!e.target) return;
|
|
704
|
+
let t = e.target.dataset, n = t.type;
|
|
705
|
+
if (!n || !this.#a) return;
|
|
706
|
+
let r;
|
|
707
|
+
switch (n) {
|
|
708
|
+
case "contrast": {
|
|
709
|
+
let e = t.section, i = t.key;
|
|
710
|
+
if (!i) return;
|
|
711
|
+
r = {
|
|
712
|
+
type: n,
|
|
713
|
+
key: i,
|
|
714
|
+
nodes: this.#a.textColorContrastIssues.get(i) || [],
|
|
715
|
+
section: e
|
|
716
|
+
};
|
|
717
|
+
break;
|
|
718
|
+
}
|
|
719
|
+
case "color": {
|
|
720
|
+
let e = t.color, i = t.section;
|
|
721
|
+
if (!e) return;
|
|
722
|
+
let a;
|
|
723
|
+
switch (i) {
|
|
724
|
+
case "text":
|
|
725
|
+
a = this.#a.textColors.get(e);
|
|
726
|
+
break;
|
|
727
|
+
case "background":
|
|
728
|
+
a = this.#a.backgroundColors.get(e);
|
|
729
|
+
break;
|
|
730
|
+
case "fill":
|
|
731
|
+
a = this.#a.fillColors.get(e);
|
|
732
|
+
break;
|
|
733
|
+
case "border":
|
|
734
|
+
a = this.#a.borderColors.get(e);
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
if (!a) return;
|
|
738
|
+
a = Array.from(a).map((e) => ({ nodeId: e })), r = {
|
|
739
|
+
type: n,
|
|
740
|
+
color: e,
|
|
741
|
+
nodes: a,
|
|
742
|
+
section: i
|
|
743
|
+
};
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
746
|
+
case "unused-declarations": {
|
|
747
|
+
let e = t.label;
|
|
748
|
+
if (!e) return;
|
|
749
|
+
let i = this.#a.unusedDeclarations.get(e);
|
|
750
|
+
if (!i) return;
|
|
751
|
+
r = {
|
|
752
|
+
type: n,
|
|
753
|
+
declaration: e,
|
|
754
|
+
nodes: i
|
|
755
|
+
};
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
case "media-queries": {
|
|
759
|
+
let e = t.label;
|
|
760
|
+
if (!e) return;
|
|
761
|
+
let i = this.#a.mediaQueries.get(e);
|
|
762
|
+
if (!i) return;
|
|
763
|
+
r = {
|
|
764
|
+
type: n,
|
|
765
|
+
text: e,
|
|
766
|
+
nodes: i
|
|
767
|
+
};
|
|
768
|
+
break;
|
|
769
|
+
}
|
|
770
|
+
case "font-info": {
|
|
771
|
+
let e = t.label;
|
|
772
|
+
if (!t.path) return;
|
|
773
|
+
let [i, a] = t.path.split("/");
|
|
774
|
+
if (!e) return;
|
|
775
|
+
let o = this.#a.fontInfo.get(i);
|
|
776
|
+
if (!o) return;
|
|
777
|
+
let s = o.get(a);
|
|
778
|
+
if (!s) return;
|
|
779
|
+
let c = s.get(e);
|
|
780
|
+
if (!c) return;
|
|
781
|
+
let l = c.map((e) => ({ nodeId: e }));
|
|
782
|
+
r = {
|
|
783
|
+
type: n,
|
|
784
|
+
name: `${e} (${i}, ${a})`,
|
|
785
|
+
nodes: l
|
|
786
|
+
};
|
|
787
|
+
break;
|
|
788
|
+
}
|
|
789
|
+
default: return;
|
|
790
|
+
}
|
|
791
|
+
e.consume(), this.#f(r), this.requestUpdate();
|
|
792
|
+
}
|
|
793
|
+
performUpdate() {
|
|
794
|
+
if (!this.#a || !("backgroundColors" in this.#a) || !("textColors" in this.#a)) return;
|
|
795
|
+
let e = {
|
|
796
|
+
elementCount: this.#a.elementCount,
|
|
797
|
+
backgroundColors: this.#p(this.#a.backgroundColors),
|
|
798
|
+
textColors: this.#p(this.#a.textColors),
|
|
799
|
+
textColorContrastIssues: this.#a.textColorContrastIssues,
|
|
800
|
+
fillColors: this.#p(this.#a.fillColors),
|
|
801
|
+
borderColors: this.#p(this.#a.borderColors),
|
|
802
|
+
globalStyleStats: this.#a.globalStyleStats,
|
|
803
|
+
mediaQueries: this.#h(this.#a.mediaQueries),
|
|
804
|
+
unusedDeclarations: this.#h(this.#a.unusedDeclarations),
|
|
805
|
+
fontInfo: this.#m(this.#a.fontInfo),
|
|
806
|
+
selectedSection: this.#e,
|
|
807
|
+
onClick: this.#d.bind(this),
|
|
808
|
+
onSectionSelected: this.#c.bind(this),
|
|
809
|
+
onReset: this.#l.bind(this)
|
|
810
|
+
};
|
|
811
|
+
this.#o(e, this.#s, this.element);
|
|
812
|
+
}
|
|
813
|
+
#f(e) {
|
|
814
|
+
let t = "", n = "";
|
|
815
|
+
switch (e.type) {
|
|
816
|
+
case "contrast": {
|
|
817
|
+
let { section: r, key: i } = e;
|
|
818
|
+
t = `${r}-${i}`, n = U(H.contrastIssues);
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
case "color": {
|
|
822
|
+
let { section: r, color: i } = e;
|
|
823
|
+
t = `${r}-${i}`, n = `${i.toUpperCase()} (${r})`;
|
|
824
|
+
break;
|
|
825
|
+
}
|
|
826
|
+
case "unused-declarations": {
|
|
827
|
+
let { declaration: r } = e;
|
|
828
|
+
t = `${r}`, n = `${r}`;
|
|
829
|
+
break;
|
|
830
|
+
}
|
|
831
|
+
case "media-queries": {
|
|
832
|
+
let { text: r } = e;
|
|
833
|
+
t = `${r}`, n = `${r}`;
|
|
834
|
+
break;
|
|
835
|
+
}
|
|
836
|
+
case "font-info": {
|
|
837
|
+
let { name: r } = e;
|
|
838
|
+
t = `${r}`, n = `${r}`;
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
let r = this.#i.get(t);
|
|
843
|
+
if (!r) {
|
|
844
|
+
if (!this.#n || !this.#t) throw Error("Unable to initialize CSS overview, missing models");
|
|
845
|
+
r = new ze(this.#n, this.#t, this.#r), r.data = e.nodes, this.#i.set(t, r);
|
|
846
|
+
}
|
|
847
|
+
this.#s.addTab(t, n, r, e.type);
|
|
848
|
+
}
|
|
849
|
+
#p(e) {
|
|
850
|
+
return Array.from(e.keys()).sort((e, t) => {
|
|
851
|
+
let n = s(e)?.asLegacyColor(), r = s(t)?.asLegacyColor();
|
|
852
|
+
return !n || !r ? 0 : o(r.rgba()) - o(n.rgba());
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
#m(e) {
|
|
856
|
+
return Array.from(e.entries()).map(([e, t]) => ({
|
|
857
|
+
font: e,
|
|
858
|
+
fontMetrics: Array.from(t.entries()).map(([e, t]) => ({
|
|
859
|
+
label: e,
|
|
860
|
+
values: this.#h(t)
|
|
861
|
+
}))
|
|
862
|
+
}));
|
|
863
|
+
}
|
|
864
|
+
#h(e) {
|
|
865
|
+
return Array.from(e.entries()).sort((e, t) => {
|
|
866
|
+
let n = e[1];
|
|
867
|
+
return t[1].length - n.length;
|
|
868
|
+
}).map(([e, t]) => ({
|
|
869
|
+
title: e,
|
|
870
|
+
nodes: t
|
|
871
|
+
}));
|
|
872
|
+
}
|
|
873
|
+
set overviewData(e) {
|
|
874
|
+
this.#a = e, this.requestUpdate();
|
|
875
|
+
}
|
|
876
|
+
static pushedNodes = /* @__PURE__ */ new Set();
|
|
877
|
+
}, Re = (e, t, n) => {
|
|
878
|
+
let { items: r, visibility: i } = e;
|
|
879
|
+
p(g`
|
|
880
|
+
<div>
|
|
881
|
+
<devtools-data-grid class="element-grid" striped inline
|
|
882
|
+
name=${U(H.cssOverviewElements)}>
|
|
883
|
+
<table>
|
|
884
|
+
<tr>
|
|
885
|
+
${i.has("node-id") ? g`
|
|
886
|
+
<th id="node-id" weight="50" sortable>
|
|
887
|
+
${U(H.element)}
|
|
888
|
+
</th>` : b}
|
|
889
|
+
${i.has("declaration") ? g`
|
|
890
|
+
<th id="declaration" weight="50" sortable>
|
|
891
|
+
${U(H.declaration)}
|
|
892
|
+
</th>` : b}
|
|
893
|
+
${i.has("source-url") ? g`
|
|
894
|
+
<th id="source-url" weight="100">
|
|
895
|
+
${U(H.source)}
|
|
896
|
+
</th>` : b}
|
|
897
|
+
${i.has("contrast-ratio") ? g`
|
|
898
|
+
<th id="contrast-ratio" weight="25" width="150px" sortable fixed>
|
|
899
|
+
${U(H.contrastRatio)}
|
|
900
|
+
</th>` : b}
|
|
901
|
+
</tr>
|
|
902
|
+
${r.map(({ data: e, link: t, showNode: n }) => g`
|
|
903
|
+
<tr>
|
|
904
|
+
${i.has("node-id") ? Be(e, t, n) : b}
|
|
905
|
+
${i.has("declaration") ? Ve(e) : b}
|
|
906
|
+
${i.has("source-url") ? He(e, t) : b}
|
|
907
|
+
${i.has("contrast-ratio") ? Ue(e) : b}
|
|
908
|
+
</tr>`)}
|
|
909
|
+
</table>
|
|
910
|
+
</devtools-data-grid>
|
|
911
|
+
</div>`, n);
|
|
912
|
+
}, ze = class extends w {
|
|
913
|
+
#e;
|
|
914
|
+
#t;
|
|
915
|
+
#n;
|
|
916
|
+
#r;
|
|
917
|
+
#i;
|
|
918
|
+
constructor(e, t, n, r = Re) {
|
|
919
|
+
super(), this.#e = e, this.#t = t, this.#n = n, this.#i = r, this.#r = [];
|
|
920
|
+
}
|
|
921
|
+
set data(e) {
|
|
922
|
+
this.#r = e, this.requestUpdate();
|
|
923
|
+
}
|
|
924
|
+
async performUpdate() {
|
|
925
|
+
let e = /* @__PURE__ */ new Set();
|
|
926
|
+
if (!this.#r.length) {
|
|
927
|
+
this.#i({
|
|
928
|
+
items: [],
|
|
929
|
+
visibility: e
|
|
930
|
+
}, {}, this.element);
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
let [t] = this.#r;
|
|
934
|
+
"nodeId" in t && t.nodeId && e.add("node-id"), "declaration" in t && t.declaration && e.add("declaration"), "sourceURL" in t && t.sourceURL && e.add("source-url"), "contrastRatio" in t && t.contrastRatio && e.add("contrast-ratio");
|
|
935
|
+
let n;
|
|
936
|
+
if ("nodeId" in t && e.has("node-id")) {
|
|
937
|
+
let e = this.#r.reduce((e, t) => {
|
|
938
|
+
let n = t.nodeId;
|
|
939
|
+
return G.pushedNodes.has(n) ? e : (G.pushedNodes.add(n), e.add(n));
|
|
940
|
+
}, /* @__PURE__ */ new Set());
|
|
941
|
+
n = await this.#e.pushNodesByBackendIdsToFrontend(e);
|
|
942
|
+
}
|
|
943
|
+
let r = await Promise.all(this.#r.map(async (t) => {
|
|
944
|
+
let r, i;
|
|
945
|
+
if ("nodeId" in t && e.has("node-id")) {
|
|
946
|
+
let e = n?.get(t.nodeId) ?? null;
|
|
947
|
+
e && (r = D.instance().linkify(e), i = () => e.scrollIntoView());
|
|
948
|
+
}
|
|
949
|
+
if ("range" in t && t.range && t.styleSheetId && e.has("source-url")) {
|
|
950
|
+
let e = T.fromObject(t.range), n = this.#t.styleSheetHeaderForId(t.styleSheetId);
|
|
951
|
+
if (n) {
|
|
952
|
+
let t = new ie(n, n.lineNumberInSource(e.startLine), n.columnNumberInSource(e.startLine, e.startColumn));
|
|
953
|
+
r = g`${this.#n.linkifyCSSLocation(t)}`;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
return {
|
|
957
|
+
data: t,
|
|
958
|
+
link: r,
|
|
959
|
+
showNode: i
|
|
960
|
+
};
|
|
961
|
+
}));
|
|
962
|
+
this.#i({
|
|
963
|
+
items: r,
|
|
964
|
+
visibility: e
|
|
965
|
+
}, {}, this.element);
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
function Be(e, t, n) {
|
|
969
|
+
return t ? g`
|
|
970
|
+
<td>
|
|
971
|
+
${t}
|
|
972
|
+
<devtools-icon part="show-element" name="select-element"
|
|
973
|
+
title=${U(H.showElement)} tabindex="0"
|
|
974
|
+
@click=${() => n?.()}></devtools-icon>
|
|
975
|
+
</td>` : b;
|
|
976
|
+
}
|
|
977
|
+
function Ve(e) {
|
|
978
|
+
if (!("declaration" in e)) throw Error("Declaration entry is missing a declaration.");
|
|
979
|
+
return g`<td>${e.declaration}</td>`;
|
|
980
|
+
}
|
|
981
|
+
function He(e, t) {
|
|
982
|
+
return "range" in e && e.range ? t ? g`<td>${t}</td>` : g`<td>${U(H.unableToLink)}</td>` : g`<td>${U(H.unableToLinkToInlineStyle)}</td>`;
|
|
983
|
+
}
|
|
984
|
+
function Ue(e) {
|
|
985
|
+
if (!("contrastRatio" in e)) throw Error("Contrast ratio entry is missing a contrast ratio.");
|
|
986
|
+
let n = a.instance().moduleSetting("apca").get(), r = t(e.contrastRatio, 2), i = n ? r + "%" : r;
|
|
987
|
+
return g`
|
|
988
|
+
<td>
|
|
989
|
+
<div class="contrast-container-in-grid">
|
|
990
|
+
<span class="contrast-preview" style=${B({
|
|
991
|
+
border: Ee(e.backgroundColor),
|
|
992
|
+
color: e.textColor.asString(),
|
|
993
|
+
backgroundColor: e.backgroundColor.asString()
|
|
994
|
+
})}>Aa</span>
|
|
995
|
+
<span>${i}</span>
|
|
996
|
+
${n ? g`
|
|
997
|
+
<span>${U(H.apca)}</span>${e.thresholdsViolated.apca ? K() : q()}` : g`
|
|
998
|
+
<span>${U(H.aa)}</span>${e.thresholdsViolated.aa ? K() : q()}
|
|
999
|
+
<span>${U(H.aaa)}</span>${e.thresholdsViolated.aaa ? K() : q()}`}
|
|
1000
|
+
</div>
|
|
1001
|
+
</td>`;
|
|
1002
|
+
}
|
|
1003
|
+
function K() {
|
|
1004
|
+
return g`
|
|
1005
|
+
<devtools-icon name="clear" class="small" style="color:var(--icon-error);"></devtools-icon>`;
|
|
1006
|
+
}
|
|
1007
|
+
function q() {
|
|
1008
|
+
return g`
|
|
1009
|
+
<devtools-icon name="checkmark" class="small"
|
|
1010
|
+
style="color:var(--icon-checkmark-green);"></devtools-icon>`;
|
|
1011
|
+
}
|
|
1012
|
+
//#endregion
|
|
1013
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/components/panel_feedback/FeedbackButton.ts
|
|
1014
|
+
var We = { feedback: "Feedback" }, Ge = c("ui/components/panel_feedback/FeedbackButton.ts", We), Ke = i.bind(void 0, Ge), qe = class extends HTMLElement {
|
|
1015
|
+
#e = this.attachShadow({ mode: "open" });
|
|
1016
|
+
#t = { feedbackUrl: "" };
|
|
1017
|
+
set data(e) {
|
|
1018
|
+
this.#t = e, O(this, this.#r);
|
|
1019
|
+
}
|
|
1020
|
+
#n() {
|
|
1021
|
+
y.openInNewTab(this.#t.feedbackUrl);
|
|
1022
|
+
}
|
|
1023
|
+
#r() {
|
|
1024
|
+
if (!k(this)) throw Error("FeedbackButton render was not scheduled");
|
|
1025
|
+
p(g`
|
|
1026
|
+
<devtools-button
|
|
1027
|
+
@click=${this.#n}
|
|
1028
|
+
.iconName=${"review"}
|
|
1029
|
+
.variant=${u.OUTLINED}
|
|
1030
|
+
.jslogContext=${"feedback"}
|
|
1031
|
+
>${Ke(We.feedback)}</devtools-button>
|
|
1032
|
+
`, this.#e, { host: this });
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
1035
|
+
customElements.define("devtools-feedback-button", qe);
|
|
1036
|
+
//#endregion
|
|
1037
|
+
//#region \0qilin-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/components/panel_feedback/panelFeedback.css.mjs
|
|
1038
|
+
var Je = "/*\n * Copyright 2021 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n:host {\n display: block;\n}\n\n.preview {\n padding: 12px 16px;\n border: 1px solid var(--sys-color-divider);\n color: var(--sys-color-on-surface);\n font-size: 13px;\n line-height: 20px;\n border-radius: 12px;\n margin: 42px 0;\n letter-spacing: 0.01em;\n}\n\nh2 {\n color: var(--sys-color-primary);\n font-size: 13px;\n line-height: 20px;\n letter-spacing: 0.01em;\n margin: 9px 0 14px;\n display: flex;\n align-items: center;\n gap: 5px;\n font-weight: normal;\n}\n\nh3 {\n font-size: 13px;\n line-height: 20px;\n letter-spacing: 0.04em;\n color: var(--sys-color-on-surface);\n margin-bottom: 2px;\n font-weight: normal;\n}\n\n.preview p {\n margin-bottom: 24px;\n}\n\n.thumbnail {\n height: 92px;\n}\n\n.video {\n display: flex;\n flex-flow: row wrap;\n gap: 20px;\n}\n\ndevtools-link {\n color: var(--sys-color-primary);\n text-decoration-line: underline;\n}\n\ndevtools-link.quick-start-link {\n font-size: 14px;\n line-height: 22px;\n letter-spacing: 0.04em;\n}\n\n.video-description {\n min-width: min-content;\n flex-basis: min-content;\n flex-grow: 1;\n}\n\n@media (forced-colors: active) {\n devtools-link {\n color: linktext;\n }\n}\n", J = {
|
|
1039
|
+
previewText: "Our team is actively working on this feature and we would love to know what you think.",
|
|
1040
|
+
previewTextFeedbackLink: "Send us your feedback.",
|
|
1041
|
+
previewFeature: "Preview feature",
|
|
1042
|
+
videoAndDocumentation: "Video and documentation"
|
|
1043
|
+
}, Ye = c("ui/components/panel_feedback/PanelFeedback.ts", J), Y = i.bind(void 0, Ye), Xe = new URL("../../../Images/preview_feature_video_thumbnail.svg", new URL("ui/components/panel_feedback/PanelFeedback.js", typeof document < "u" ? document.baseURI : new URL("../../", self.location.href).href).href).toString(), Ze = class extends HTMLElement {
|
|
1044
|
+
#e = this.attachShadow({ mode: "open" });
|
|
1045
|
+
#t = {
|
|
1046
|
+
feedbackUrl: "",
|
|
1047
|
+
quickStartUrl: "",
|
|
1048
|
+
quickStartLinkText: ""
|
|
1049
|
+
};
|
|
1050
|
+
set data(e) {
|
|
1051
|
+
this.#t = e, O(this, this.#n);
|
|
1052
|
+
}
|
|
1053
|
+
#n() {
|
|
1054
|
+
if (!k(this)) throw Error("PanelFeedback render was not scheduled");
|
|
1055
|
+
p(g`
|
|
1056
|
+
<style>${Je}</style>
|
|
1057
|
+
<div class="preview">
|
|
1058
|
+
<h2 class="flex">
|
|
1059
|
+
<devtools-icon name="experiment" class="extra-large" style="color: var(--icon-primary);"></devtools-icon> ${Y(J.previewFeature)}
|
|
1060
|
+
</h2>
|
|
1061
|
+
<p>${Y(J.previewText)} <devtools-link href=${this.#t.feedbackUrl} .jslogContext=${"feedback"}>${Y(J.previewTextFeedbackLink)}</devtools-link></p>
|
|
1062
|
+
<div class="video">
|
|
1063
|
+
<div class="thumbnail">
|
|
1064
|
+
<img src=${Xe} role="presentation" />
|
|
1065
|
+
</div>
|
|
1066
|
+
<div class="video-description">
|
|
1067
|
+
<h3>${Y(J.videoAndDocumentation)}</h3>
|
|
1068
|
+
<devtools-link class="quick-start-link" href=${this.#t.quickStartUrl} jslogcontext="css-overview.quick-start">${this.#t.quickStartLinkText}</devtools-link>
|
|
1069
|
+
</div>
|
|
1070
|
+
</div>
|
|
1071
|
+
</div>
|
|
1072
|
+
`, this.#e, { host: this });
|
|
1073
|
+
}
|
|
1074
|
+
};
|
|
1075
|
+
customElements.define("devtools-panel-feedback", Ze);
|
|
1076
|
+
//#endregion
|
|
1077
|
+
//#region \0qilin-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/components/panel_feedback/previewToggle.css.mjs
|
|
1078
|
+
var Qe = "/*\n * Copyright 2021 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n:host {\n display: block;\n}\n\n.container {\n display: flex;\n flex-wrap: wrap;\n padding: 4px;\n}\n\n.feedback,\n.learn-more {\n display: flex;\n align-items: center;\n}\n\n.helper {\n flex-basis: 100%;\n text-align: center;\n font-style: italic;\n}\n\n.spacer {\n flex: 1;\n}\n\n.devtools-link {\n color: var(--sys-color-primary);\n text-decoration-line: underline;\n margin: 0 4px;\n}\n\n.feedback .devtools-link {\n color: var(--sys-color-token-subtle);\n}\n", X = {
|
|
1079
|
+
previewTextFeedbackLink: "Send us your feedback.",
|
|
1080
|
+
shortFeedbackLink: "Send feedback",
|
|
1081
|
+
learnMoreLink: "Learn More"
|
|
1082
|
+
}, $e = c("ui/components/panel_feedback/PreviewToggle.ts", X), et = i.bind(void 0, $e), tt = class extends HTMLElement {
|
|
1083
|
+
#e = this.attachShadow({ mode: "open" });
|
|
1084
|
+
#t = "";
|
|
1085
|
+
#n = null;
|
|
1086
|
+
#r = null;
|
|
1087
|
+
#i;
|
|
1088
|
+
#a = "";
|
|
1089
|
+
#o;
|
|
1090
|
+
set data(e) {
|
|
1091
|
+
this.#t = e.name, this.#n = e.helperText, this.#r = e.feedbackURL, this.#i = e.learnMoreURL, this.#a = e.experiment, this.#o = e.onChangeCallback, this.#s();
|
|
1092
|
+
}
|
|
1093
|
+
#s() {
|
|
1094
|
+
p(g`
|
|
1095
|
+
<style>${Qe}</style>
|
|
1096
|
+
<div class="container">
|
|
1097
|
+
<devtools-checkbox
|
|
1098
|
+
?checked=${this.#a && l.isEnabled(this.#a)}
|
|
1099
|
+
@change=${this.#c}
|
|
1100
|
+
aria-label=${this.#t} >
|
|
1101
|
+
<devtools-icon name="experiment" class="medium">
|
|
1102
|
+
</devtools-icon>${this.#t}
|
|
1103
|
+
</devtools-checkbox>
|
|
1104
|
+
<div class="spacer"></div>
|
|
1105
|
+
${this.#r && !this.#n ? g`<div class="feedback"><devtools-link class="devtools-link" href=${this.#r} jslogContext=${"feedback"}>${et(X.shortFeedbackLink)}</devtools-link></div>` : b}
|
|
1106
|
+
${this.#i ? g`<div class="learn-more"><devtools-link class="devtools-link" href=${this.#i} jslogContext=${"learn-more"}>${et(X.learnMoreLink)}</devtools-link></div>` : b}
|
|
1107
|
+
<div class="helper">
|
|
1108
|
+
${this.#n && this.#r ? g`<p>${this.#n} <devtools-link class="devtools-link" href=${this.#r} jslogContext=${"feedback"}>${et(X.previewTextFeedbackLink)}</devtools-link></p>` : b}
|
|
1109
|
+
</div>
|
|
1110
|
+
</div>`, this.#e, { host: this });
|
|
1111
|
+
}
|
|
1112
|
+
#c(e) {
|
|
1113
|
+
let t = e.target.checked;
|
|
1114
|
+
this.#a && l.setEnabled(this.#a, t), this.#o?.(t);
|
|
1115
|
+
}
|
|
1116
|
+
};
|
|
1117
|
+
customElements.define("devtools-preview-toggle", tt);
|
|
1118
|
+
//#endregion
|
|
1119
|
+
//#region \0qilin-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css.mjs
|
|
1120
|
+
var nt = "/*\n * Copyright 2022 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n:host {\n display: block;\n}\n\nh1 {\n font-weight: normal;\n font-size: 18px;\n line-height: 28px;\n padding: 0;\n margin-top: 0;\n color: var(--sys-color-on-surface);\n}\n\n.intro-steps {\n counter-reset: custom-counter;\n list-style: none;\n margin: 16px 0 30px 30px;\n padding: 0;\n}\n\n.intro-steps li {\n color: var(--sys-color-on-surface);\n counter-increment: custom-counter;\n font-size: 13px;\n letter-spacing: 0.03em;\n line-height: 1.54;\n margin-bottom: 9px;\n position: relative;\n}\n\n.intro-steps li::before {\n --override-color-counter-background: var(--sys-color-tonal-container);\n\n box-sizing: border-box;\n background: var(--override-color-counter-background);\n border-radius: 50%;\n color: var(--sys-color-primary);\n content: counter(custom-counter);\n font-size: 12px;\n height: 18px;\n left: -30px;\n line-height: 20px;\n position: absolute;\n text-align: center;\n top: 0;\n width: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n", rt = class extends HTMLElement {
|
|
1121
|
+
#e = this.attachShadow({ mode: "open" });
|
|
1122
|
+
connectedCallback() {
|
|
1123
|
+
O(this, this.#t);
|
|
1124
|
+
}
|
|
1125
|
+
#t() {
|
|
1126
|
+
if (!k(this)) throw Error("FeedbackButton render was not scheduled");
|
|
1127
|
+
p(g`
|
|
1128
|
+
<style>${nt}</style>
|
|
1129
|
+
<h1><slot name="title">slot: title</slot></h1>
|
|
1130
|
+
|
|
1131
|
+
<ol class="intro-steps">
|
|
1132
|
+
<li><slot name="step-1">slot: step-1</slot></li>
|
|
1133
|
+
<li><slot name="step-2">slot: step-2</slot></li>
|
|
1134
|
+
<li><slot name="step-3">slot: step-3</slot></li>
|
|
1135
|
+
</ol>
|
|
1136
|
+
`, this.#e, { host: this });
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
customElements.define("devtools-panel-introduction-steps", rt);
|
|
1140
|
+
//#endregion
|
|
1141
|
+
//#region \0qilin-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/panels/css_overview/cssOverviewStartView.css.mjs
|
|
1142
|
+
var it = "/**\n * Copyright 2019 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n@scope to (devtools-widget > *) {\n h1 {\n font-weight: normal;\n }\n\n .css-overview-start-view {\n padding: 24px;\n display: flex;\n flex-direction: column;\n background-color: var(--sys-color-cdt-base-container);\n overflow: auto;\n }\n\n .start-capture-wrapper {\n width: fit-content;\n }\n\n .preview-feature {\n padding: 12px 16px;\n border: 1px solid var(--sys-color-neutral-outline);\n color: var(--sys-color-on-surface);\n font-size: 13px;\n line-height: 20px;\n border-radius: 12px;\n margin: 42px 0;\n letter-spacing: 0.01em;\n }\n\n .preview-header {\n color: var(--sys-color-primary);\n font-size: 13px;\n line-height: 20px;\n letter-spacing: 0.01em;\n margin: 9px 0 14px;\n }\n\n .preview-icon {\n vertical-align: middle;\n }\n\n .feedback-prompt {\n margin-bottom: 24px;\n }\n\n .feedback-prompt .devtools-link {\n color: -webkit-link;\n cursor: pointer;\n text-decoration: underline;\n }\n\n .resources {\n display: flex;\n flex-direction: row;\n }\n\n .thumbnail-wrapper {\n width: 144px;\n height: 92px;\n margin-right: 20px;\n }\n\n .video-doc-header {\n font-size: 13px;\n line-height: 20px;\n letter-spacing: 0.04em;\n color: var(--sys-color-on-surface);\n margin-bottom: 2px;\n }\n\n devtools-feedback-button {\n align-self: flex-end;\n }\n\n .resources .devtools-link {\n font-size: 14px;\n line-height: 22px;\n letter-spacing: 0.04em;\n text-decoration-line: underline;\n color: var(--sys-color-primary);\n }\n}\n", Z = {
|
|
1143
|
+
captureOverview: "Capture overview",
|
|
1144
|
+
identifyCSSImprovements: "Identify potential CSS improvements",
|
|
1145
|
+
capturePageCSSOverview: "Capture an overview of your page’s CSS",
|
|
1146
|
+
identifyCSSImprovementsWithExampleIssues: "Identify potential CSS improvements (e.g. low contrast issues, unused declarations, color or font mismatches)",
|
|
1147
|
+
locateAffectedElements: "Locate the affected elements in the Elements panel",
|
|
1148
|
+
quickStartWithCSSOverview: "Quick start: get started with the new CSS overview panel"
|
|
1149
|
+
}, at = c("panels/css_overview/CSSOverviewStartView.ts", Z), Q = i.bind(void 0, at), ot = "https://g.co/devtools/css-overview-feedback", st = "https://developer.chrome.com/docs/devtools/css-overview", ct = (e, t, n) => {
|
|
1150
|
+
p(g`
|
|
1151
|
+
<style>${it}</style>
|
|
1152
|
+
<div class="css-overview-start-view">
|
|
1153
|
+
<devtools-panel-introduction-steps>
|
|
1154
|
+
<span slot="title">${Q(Z.identifyCSSImprovements)}</span>
|
|
1155
|
+
<span slot="step-1">${Q(Z.capturePageCSSOverview)}</span>
|
|
1156
|
+
<span slot="step-2">${Q(Z.identifyCSSImprovementsWithExampleIssues)}</span>
|
|
1157
|
+
<span slot="step-3">${Q(Z.locateAffectedElements)}</span>
|
|
1158
|
+
</devtools-panel-introduction-steps>
|
|
1159
|
+
<div class="start-capture-wrapper">
|
|
1160
|
+
<devtools-button
|
|
1161
|
+
class="start-capture"
|
|
1162
|
+
autofocus
|
|
1163
|
+
.variant=${u.PRIMARY}
|
|
1164
|
+
.jslogContext=${"css-overview.capture-overview"}
|
|
1165
|
+
@click=${e.onStartCapture}>
|
|
1166
|
+
${Q(Z.captureOverview)}
|
|
1167
|
+
</devtools-button>
|
|
1168
|
+
</div>
|
|
1169
|
+
<devtools-panel-feedback .data=${{
|
|
1170
|
+
feedbackUrl: ot,
|
|
1171
|
+
quickStartUrl: st,
|
|
1172
|
+
quickStartLinkText: Q(Z.quickStartWithCSSOverview)
|
|
1173
|
+
}}>
|
|
1174
|
+
</devtools-panel-feedback>
|
|
1175
|
+
<devtools-feedback-button .data=${{ feedbackUrl: ot }}>
|
|
1176
|
+
</devtools-feedback-button>
|
|
1177
|
+
</div>`, n);
|
|
1178
|
+
}, lt = class extends w {
|
|
1179
|
+
#e;
|
|
1180
|
+
onStartCapture = () => {};
|
|
1181
|
+
constructor(e, t = ct) {
|
|
1182
|
+
super(e, {
|
|
1183
|
+
useShadowDom: !0,
|
|
1184
|
+
delegatesFocus: !0
|
|
1185
|
+
}), this.#e = t, this.performUpdate();
|
|
1186
|
+
}
|
|
1187
|
+
performUpdate() {
|
|
1188
|
+
this.#e({ onStartCapture: this.onStartCapture }, {}, this.contentElement);
|
|
1189
|
+
}
|
|
1190
|
+
}, ut = /* @__PURE__ */ e({
|
|
1191
|
+
CSSOverviewPanel: () => ft,
|
|
1192
|
+
DEFAULT_VIEW: () => dt
|
|
1193
|
+
}), { widget: $ } = re, dt = (e, t, n) => {
|
|
1194
|
+
p(e.state === "start" ? $(lt, { onStartCapture: e.onStartCapture }) : e.state === "processing" ? $(he, { onCancel: e.onCancel }) : $(G, {
|
|
1195
|
+
onReset: e.onReset,
|
|
1196
|
+
overviewData: e.overviewData,
|
|
1197
|
+
target: e.target
|
|
1198
|
+
}), n);
|
|
1199
|
+
}, ft = class extends _ {
|
|
1200
|
+
#e;
|
|
1201
|
+
#t;
|
|
1202
|
+
#n;
|
|
1203
|
+
#r;
|
|
1204
|
+
#i;
|
|
1205
|
+
#a;
|
|
1206
|
+
#o;
|
|
1207
|
+
#s;
|
|
1208
|
+
#c;
|
|
1209
|
+
#l;
|
|
1210
|
+
#u;
|
|
1211
|
+
#d;
|
|
1212
|
+
#f;
|
|
1213
|
+
#p;
|
|
1214
|
+
constructor(e = dt) {
|
|
1215
|
+
super("css-overview"), this.#e = m.instance().inspectedURL(), m.instance().addEventListener(d.INSPECTED_URL_CHANGED, this.#h, this), this.#p = e, m.instance().observeTargets(this), this.#_();
|
|
1216
|
+
}
|
|
1217
|
+
#m() {
|
|
1218
|
+
oe.actionTaken(ae.CaptureCssOverviewClicked), this.#x();
|
|
1219
|
+
}
|
|
1220
|
+
#h() {
|
|
1221
|
+
this.#e !== m.instance().inspectedURL() && (this.#e = m.instance().inspectedURL(), this.#_());
|
|
1222
|
+
}
|
|
1223
|
+
targetAdded(e) {
|
|
1224
|
+
e === m.instance().primaryPageTarget() && (this.#t = e.model(P) ?? void 0);
|
|
1225
|
+
}
|
|
1226
|
+
targetRemoved() {}
|
|
1227
|
+
#g() {
|
|
1228
|
+
if (!this.#t) throw Error("Did not retrieve model information yet.");
|
|
1229
|
+
return this.#t;
|
|
1230
|
+
}
|
|
1231
|
+
#_() {
|
|
1232
|
+
this.#n = /* @__PURE__ */ new Map(), this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = /* @__PURE__ */ new Map(), this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#c = /* @__PURE__ */ new Map(), this.#l = 0, this.#u = {
|
|
1233
|
+
styleRules: 0,
|
|
1234
|
+
inlineStyles: 0,
|
|
1235
|
+
externalSheets: 0,
|
|
1236
|
+
stats: {
|
|
1237
|
+
type: 0,
|
|
1238
|
+
class: 0,
|
|
1239
|
+
id: 0,
|
|
1240
|
+
universal: 0,
|
|
1241
|
+
attribute: 0,
|
|
1242
|
+
nonSimple: 0
|
|
1243
|
+
}
|
|
1244
|
+
}, this.#d = /* @__PURE__ */ new Map(), this.#v();
|
|
1245
|
+
}
|
|
1246
|
+
#v() {
|
|
1247
|
+
this.#f = "start", this.performUpdate();
|
|
1248
|
+
}
|
|
1249
|
+
#y() {
|
|
1250
|
+
this.#f = "processing", this.performUpdate();
|
|
1251
|
+
}
|
|
1252
|
+
#b() {
|
|
1253
|
+
this.#f = "completed", this.performUpdate();
|
|
1254
|
+
}
|
|
1255
|
+
performUpdate() {
|
|
1256
|
+
let e = {
|
|
1257
|
+
state: this.#f,
|
|
1258
|
+
onStartCapture: this.#m.bind(this),
|
|
1259
|
+
onCancel: this.#_.bind(this),
|
|
1260
|
+
onReset: this.#_.bind(this),
|
|
1261
|
+
target: this.#t?.target(),
|
|
1262
|
+
overviewData: {
|
|
1263
|
+
backgroundColors: this.#n,
|
|
1264
|
+
textColors: this.#r,
|
|
1265
|
+
textColorContrastIssues: this.#d,
|
|
1266
|
+
fillColors: this.#i,
|
|
1267
|
+
borderColors: this.#a,
|
|
1268
|
+
globalStyleStats: this.#u,
|
|
1269
|
+
fontInfo: this.#o,
|
|
1270
|
+
elementCount: this.#l,
|
|
1271
|
+
mediaQueries: this.#s,
|
|
1272
|
+
unusedDeclarations: this.#c
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
this.#p(e, {}, this.contentElement);
|
|
1276
|
+
}
|
|
1277
|
+
async #x() {
|
|
1278
|
+
this.#y();
|
|
1279
|
+
let e = this.#g(), [t, { elementCount: n, backgroundColors: r, textColors: i, textColorContrastIssues: a, fillColors: o, borderColors: s, fontInfo: c, unusedDeclarations: l }, u] = await Promise.all([
|
|
1280
|
+
e.getGlobalStylesheetStats(),
|
|
1281
|
+
e.getNodeStyleStats(),
|
|
1282
|
+
e.getMediaQueries()
|
|
1283
|
+
]);
|
|
1284
|
+
n && (this.#l = n), t && (this.#u = t), u && (this.#s = u), r && (this.#n = r), i && (this.#r = i), a && (this.#d = a), o && (this.#i = o), s && (this.#a = s), c && (this.#o = c), l && (this.#c = l), this.#b();
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
//#endregion
|
|
1288
|
+
export { Ce as CSSOverviewCompletedView, N as CSSOverviewModel, ut as CSSOverviewPanel, F as CSSOverviewProcessingView, _e as CSSOverviewSidebarPanel, ue as CSSOverviewUnusedDeclarations };
|