@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,1566 @@
|
|
|
1
|
+
import { F as e, I as t, X as n, Y as r, lt as i, ut as a } from "./platform-BzB373NB.js";
|
|
2
|
+
import { At as o, Ht as s, Mt as c, Nt as l, Pt as u, Qt as d, Vt as f, Xt as p, Yt as m, Zt as h, an as g, bt as _, cn as ee, d as v, dn as te, en as ne, fn as re, in as y, jt as b, ln as x, n as S, on as C, pn as w, qt as T, rn as E, sn as ie, tn as D, un as ae, wt as O } from "./common-qd_KLeYO.js";
|
|
3
|
+
import { $f as k, Al as oe, Ao as se, At as A, Ca as ce, Cn as le, Dt as j, Fo as ue, Hi as de, K as fe, Ka as pe, La as me, Md as he, Mn as M, Mo as N, Nt as ge, Po as _e, Pt as ve, Sa as ye, Ur as P, Wn as be, Xf as F, Xn as I, _n as L, _o as xe, br as Se, dr as Ce, dt as we, ei as Te, fn as Ee, gn as De, ha as Oe, ja as ke, jo as R, ka as Ae, lt as je, no as Me, oo as Ne, q as z, qt as Pe, wo as Fe, wt as Ie, xa as Le, xn as Re, xt as ze } from "./legacy-Bqn4Q0Tf.js";
|
|
4
|
+
import { g as Be } from "./text_utils-ohNt_gua.js";
|
|
5
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/legacy/components/color_picker/ColorFormatSpec.ts
|
|
6
|
+
var B = (e) => e.map((e) => t(e, 2)), V = (e) => `${e[0]} ${e[1]} ${e[2]} / ${e[3]}`, Ve = {
|
|
7
|
+
[u.RGB]: {
|
|
8
|
+
label: "RGBA",
|
|
9
|
+
toValues: function(e) {
|
|
10
|
+
return B(e.as(u.RGBA).canonicalRGBA());
|
|
11
|
+
},
|
|
12
|
+
fromValues: function(e) {
|
|
13
|
+
return D(`rgb(${V(e)})`);
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
[u.HSL]: {
|
|
17
|
+
label: "HSLA",
|
|
18
|
+
toValues: function(e) {
|
|
19
|
+
let t = B(e.as(u.HSLA).canonicalHSLA());
|
|
20
|
+
return t[1] += "%", t[2] += "%", t;
|
|
21
|
+
},
|
|
22
|
+
fromValues: function(e) {
|
|
23
|
+
return D(`hsl(${V(e)})`);
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
[u.HWB]: {
|
|
27
|
+
label: "HWBA",
|
|
28
|
+
toValues: function(e) {
|
|
29
|
+
let t = B(e.as(u.HWBA).canonicalHWBA());
|
|
30
|
+
return t[1] += "%", t[2] += "%", t;
|
|
31
|
+
},
|
|
32
|
+
fromValues: function(e) {
|
|
33
|
+
return D(`hwb(${V(e)})`);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
[u.LCH]: {
|
|
37
|
+
label: "lchA",
|
|
38
|
+
toValues: function(e) {
|
|
39
|
+
let t = e.as(u.LCH);
|
|
40
|
+
return B([
|
|
41
|
+
t.l,
|
|
42
|
+
t.c,
|
|
43
|
+
t.h,
|
|
44
|
+
t.alpha ?? 1
|
|
45
|
+
]);
|
|
46
|
+
},
|
|
47
|
+
fromValues: function(e) {
|
|
48
|
+
return D(`lch(${V(e)})`);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
[u.OKLCH]: {
|
|
52
|
+
label: "lchA",
|
|
53
|
+
toValues: function(e) {
|
|
54
|
+
let t = e.as(u.OKLCH);
|
|
55
|
+
return B([
|
|
56
|
+
t.l,
|
|
57
|
+
t.c,
|
|
58
|
+
t.h,
|
|
59
|
+
t.alpha ?? 1
|
|
60
|
+
]);
|
|
61
|
+
},
|
|
62
|
+
fromValues: function(e) {
|
|
63
|
+
return D(`oklch(${V(e)})`);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
[u.LAB]: {
|
|
67
|
+
label: "labA",
|
|
68
|
+
toValues: function(e) {
|
|
69
|
+
let t = e.as(u.LAB);
|
|
70
|
+
return B([
|
|
71
|
+
t.l,
|
|
72
|
+
t.a,
|
|
73
|
+
t.b,
|
|
74
|
+
t.alpha ?? 1
|
|
75
|
+
]);
|
|
76
|
+
},
|
|
77
|
+
fromValues: function(e) {
|
|
78
|
+
return D(`lab(${V(e)})`);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
[u.OKLAB]: {
|
|
82
|
+
label: "labA",
|
|
83
|
+
toValues: function(e) {
|
|
84
|
+
let t = e.as(u.OKLAB);
|
|
85
|
+
return B([
|
|
86
|
+
t.l,
|
|
87
|
+
t.a,
|
|
88
|
+
t.b,
|
|
89
|
+
t.alpha ?? 1
|
|
90
|
+
]);
|
|
91
|
+
},
|
|
92
|
+
fromValues: function(e) {
|
|
93
|
+
return D(`oklab(${V(e)})`);
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
[u.SRGB]: {
|
|
97
|
+
label: "RGBA",
|
|
98
|
+
toValues: function(e) {
|
|
99
|
+
let t = e.as(u.SRGB);
|
|
100
|
+
return B([
|
|
101
|
+
t.p0,
|
|
102
|
+
t.p1,
|
|
103
|
+
t.p2,
|
|
104
|
+
t.alpha ?? 1
|
|
105
|
+
]);
|
|
106
|
+
},
|
|
107
|
+
fromValues: function(e) {
|
|
108
|
+
return D(`color(${u.SRGB} ${V(e)})`);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
[u.SRGB_LINEAR]: {
|
|
112
|
+
label: "RGBA",
|
|
113
|
+
toValues: function(e) {
|
|
114
|
+
let t = e.as(u.SRGB_LINEAR);
|
|
115
|
+
return B([
|
|
116
|
+
t.p0,
|
|
117
|
+
t.p1,
|
|
118
|
+
t.p2,
|
|
119
|
+
t.alpha ?? 1
|
|
120
|
+
]);
|
|
121
|
+
},
|
|
122
|
+
fromValues: function(e) {
|
|
123
|
+
return D(`color(${u.SRGB_LINEAR} ${V(e)})`);
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
[u.DISPLAY_P3]: {
|
|
127
|
+
label: "RGBA",
|
|
128
|
+
toValues(e) {
|
|
129
|
+
let t = e.as(u.DISPLAY_P3);
|
|
130
|
+
return B([
|
|
131
|
+
t.p0,
|
|
132
|
+
t.p1,
|
|
133
|
+
t.p2,
|
|
134
|
+
1
|
|
135
|
+
]);
|
|
136
|
+
},
|
|
137
|
+
fromValues(e) {
|
|
138
|
+
return D(`color(${u.DISPLAY_P3} ${V(e)})`);
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
[u.A98_RGB]: {
|
|
142
|
+
label: "RGBA",
|
|
143
|
+
toValues: function(e) {
|
|
144
|
+
let t = e.as(u.A98_RGB);
|
|
145
|
+
return B([
|
|
146
|
+
t.p0,
|
|
147
|
+
t.p1,
|
|
148
|
+
t.p2,
|
|
149
|
+
t.alpha ?? 1
|
|
150
|
+
]);
|
|
151
|
+
},
|
|
152
|
+
fromValues: function(e) {
|
|
153
|
+
return D(`color(${u.A98_RGB} ${V(e)})`);
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
[u.PROPHOTO_RGB]: {
|
|
157
|
+
label: "RGBA",
|
|
158
|
+
toValues: function(e) {
|
|
159
|
+
let t = e.as(u.PROPHOTO_RGB);
|
|
160
|
+
return B([
|
|
161
|
+
t.p0,
|
|
162
|
+
t.p1,
|
|
163
|
+
t.p2,
|
|
164
|
+
t.alpha ?? 1
|
|
165
|
+
]);
|
|
166
|
+
},
|
|
167
|
+
fromValues: function(e) {
|
|
168
|
+
return D(`color(${u.PROPHOTO_RGB} ${V(e)})`);
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
[u.REC_2020]: {
|
|
172
|
+
label: "RGBA",
|
|
173
|
+
toValues: function(e) {
|
|
174
|
+
let t = e.as(u.REC_2020);
|
|
175
|
+
return B([
|
|
176
|
+
t.p0,
|
|
177
|
+
t.p1,
|
|
178
|
+
t.p2,
|
|
179
|
+
t.alpha ?? 1
|
|
180
|
+
]);
|
|
181
|
+
},
|
|
182
|
+
fromValues: function(e) {
|
|
183
|
+
return D(`color(${u.REC_2020} ${V(e)})`);
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
[u.XYZ]: {
|
|
187
|
+
label: "xyzA",
|
|
188
|
+
toValues: function(e) {
|
|
189
|
+
let t = e.as(u.XYZ);
|
|
190
|
+
return B([
|
|
191
|
+
t.p0,
|
|
192
|
+
t.p1,
|
|
193
|
+
t.p2,
|
|
194
|
+
t.alpha ?? 1
|
|
195
|
+
]);
|
|
196
|
+
},
|
|
197
|
+
fromValues: function(e) {
|
|
198
|
+
return D(`color(${u.XYZ} ${V(e)})`);
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
[u.XYZ_D50]: {
|
|
202
|
+
label: "xyzA",
|
|
203
|
+
toValues: function(e) {
|
|
204
|
+
let t = e.as(u.XYZ_D50);
|
|
205
|
+
return B([
|
|
206
|
+
t.p0,
|
|
207
|
+
t.p1,
|
|
208
|
+
t.p2,
|
|
209
|
+
t.alpha ?? 1
|
|
210
|
+
]);
|
|
211
|
+
},
|
|
212
|
+
fromValues: function(e) {
|
|
213
|
+
return D(`color(${u.XYZ_D50} ${V(e)})`);
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
[u.XYZ_D65]: {
|
|
217
|
+
label: "xyzA",
|
|
218
|
+
toValues: function(e) {
|
|
219
|
+
let t = e.as(u.XYZ_D65);
|
|
220
|
+
return B([
|
|
221
|
+
t.p0,
|
|
222
|
+
t.p1,
|
|
223
|
+
t.p2,
|
|
224
|
+
t.alpha ?? 1
|
|
225
|
+
]);
|
|
226
|
+
},
|
|
227
|
+
fromValues: function(e) {
|
|
228
|
+
return D(`color(${u.XYZ_D65} ${V(e)})`);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}, He = class extends o {
|
|
232
|
+
#e;
|
|
233
|
+
#t;
|
|
234
|
+
#n;
|
|
235
|
+
contrastRatioThresholds;
|
|
236
|
+
#r;
|
|
237
|
+
fgColor;
|
|
238
|
+
#i;
|
|
239
|
+
#a;
|
|
240
|
+
constructor(e) {
|
|
241
|
+
if (super(), this.#e = !0, this.#t = null, this.#n = null, this.contrastRatioThresholds = null, this.#r = 0, this.fgColor = null, this.#i = null, !e || !e.computedFontSize || !e.computedFontWeight || (this.#e = !1, this.contrastRatioThresholds = ae(e.computedFontSize, e.computedFontWeight), this.#r = x(e.computedFontSize, e.computedFontWeight), e.backgroundColors?.length !== 1)) return;
|
|
242
|
+
let t = e.backgroundColors[0], n = D(t)?.asLegacyColor();
|
|
243
|
+
n && this.#o(n);
|
|
244
|
+
}
|
|
245
|
+
isNull() {
|
|
246
|
+
return this.#e;
|
|
247
|
+
}
|
|
248
|
+
setColor(e, t) {
|
|
249
|
+
this.fgColor = e, this.#a = t, this.updateContrastRatio(), this.dispatchEventToListeners("ContrastInfoUpdated");
|
|
250
|
+
}
|
|
251
|
+
colorFormat() {
|
|
252
|
+
return this.#a;
|
|
253
|
+
}
|
|
254
|
+
color() {
|
|
255
|
+
return this.fgColor;
|
|
256
|
+
}
|
|
257
|
+
contrastRatio() {
|
|
258
|
+
return this.#t;
|
|
259
|
+
}
|
|
260
|
+
contrastRatioAPCA() {
|
|
261
|
+
return this.#n;
|
|
262
|
+
}
|
|
263
|
+
contrastRatioAPCAThreshold() {
|
|
264
|
+
return this.#r;
|
|
265
|
+
}
|
|
266
|
+
setBgColor(e) {
|
|
267
|
+
this.#o(e), this.dispatchEventToListeners("ContrastInfoUpdated");
|
|
268
|
+
}
|
|
269
|
+
#o(e) {
|
|
270
|
+
if (this.#i = e, !this.fgColor) return;
|
|
271
|
+
let t = this.fgColor.rgba();
|
|
272
|
+
if (e.hasAlpha()) {
|
|
273
|
+
let n = y(e.rgba(), t);
|
|
274
|
+
this.#i = new f(n, u.RGBA);
|
|
275
|
+
}
|
|
276
|
+
this.#t = g(t, this.#i.rgba()), this.#n = C(this.fgColor.rgba(), this.#i.rgba());
|
|
277
|
+
}
|
|
278
|
+
bgColor() {
|
|
279
|
+
return this.#i;
|
|
280
|
+
}
|
|
281
|
+
updateContrastRatio() {
|
|
282
|
+
!this.#i || !this.fgColor || (this.#t = g(this.fgColor.rgba(), this.#i.rgba()), this.#n = C(this.fgColor.rgba(), this.#i.rgba()));
|
|
283
|
+
}
|
|
284
|
+
contrastRatioThreshold(e) {
|
|
285
|
+
return this.contrastRatioThresholds ? this.contrastRatioThresholds[e] : null;
|
|
286
|
+
}
|
|
287
|
+
}, Ue = /* @__PURE__ */ function(e) {
|
|
288
|
+
return e.CONTRAST_INFO_UPDATED = "ContrastInfoUpdated", e;
|
|
289
|
+
}({}), H = {
|
|
290
|
+
noContrastInformationAvailable: "No contrast information available",
|
|
291
|
+
contrastRatio: "Contrast ratio",
|
|
292
|
+
showMore: "Show more",
|
|
293
|
+
pickBackgroundColor: "Pick background color",
|
|
294
|
+
toggleBackgroundColorPicker: "Toggle background color picker",
|
|
295
|
+
useSuggestedColorStoFixLow: "Use suggested color {PH1}to fix low contrast",
|
|
296
|
+
apca: "APCA",
|
|
297
|
+
aa: "AA",
|
|
298
|
+
placeholderWithColon: ": {PH1}",
|
|
299
|
+
aaa: "AAA",
|
|
300
|
+
showLess: "Show less"
|
|
301
|
+
}, We = O("ui/legacy/components/color_picker/ContrastDetails.ts", H), U = _.bind(void 0, We), Ge = class e extends o {
|
|
302
|
+
contrastInfo;
|
|
303
|
+
#e;
|
|
304
|
+
toggleMainColorPicker;
|
|
305
|
+
expandedChangedCallback;
|
|
306
|
+
colorSelectedCallback;
|
|
307
|
+
#t;
|
|
308
|
+
passesAA;
|
|
309
|
+
contrastUnknown;
|
|
310
|
+
#n;
|
|
311
|
+
noContrastInfoAvailable;
|
|
312
|
+
contrastValueBubble;
|
|
313
|
+
contrastValue;
|
|
314
|
+
contrastValueBubbleIcons;
|
|
315
|
+
expandButton;
|
|
316
|
+
expandedDetails;
|
|
317
|
+
contrastThresholds;
|
|
318
|
+
contrastAA;
|
|
319
|
+
contrastPassFailAA;
|
|
320
|
+
contrastAAA;
|
|
321
|
+
contrastPassFailAAA;
|
|
322
|
+
contrastAPCA;
|
|
323
|
+
contrastPassFailAPCA;
|
|
324
|
+
chooseBgColor;
|
|
325
|
+
bgColorPickerButton;
|
|
326
|
+
bgColorPickedBound;
|
|
327
|
+
bgColorSwatch;
|
|
328
|
+
constructor(t, n, r, i, a) {
|
|
329
|
+
super(), this.contrastInfo = t, this.#e = n.createChild("div", "spectrum-contrast-details collapsed"), this.toggleMainColorPicker = r, this.expandedChangedCallback = i, this.colorSelectedCallback = a, this.#t = !1, this.passesAA = !0, this.contrastUnknown = !1, this.#n = !1, this.noContrastInfoAvailable = n.createChild("div", "no-contrast-info-available"), this.noContrastInfoAvailable.textContent = U(H.noContrastInformationAvailable), this.noContrastInfoAvailable.classList.add("hidden");
|
|
330
|
+
let o = this.#e.createChild("div");
|
|
331
|
+
o.addEventListener("click", this.topRowClicked.bind(this));
|
|
332
|
+
let s = o.createChild("div", "container");
|
|
333
|
+
Re(s, U(H.contrastRatio)), this.contrastValueBubble = s.createChild("span", "contrast-details-value"), this.contrastValue = this.contrastValueBubble.createChild("span"), this.contrastValueBubbleIcons = [], this.contrastValueBubbleIcons.push(this.contrastValueBubble.appendChild(N("checkmark"))), this.contrastValueBubbleIcons.push(this.contrastValueBubble.appendChild(N("check-double"))), this.contrastValueBubbleIcons.push(this.contrastValueBubble.appendChild(N("clear"))), this.contrastValueBubbleIcons.forEach((t) => t.addEventListener("click", (t) => {
|
|
334
|
+
e.showHelp(), t.consume(!1);
|
|
335
|
+
}));
|
|
336
|
+
let c = s.createChild("devtools-toolbar", "expand");
|
|
337
|
+
this.expandButton = new I(U(H.showMore), "chevron-down"), this.expandButton.addEventListener(I.Events.CLICK, this.expandButtonClicked.bind(this)), Ie(this.expandButton.element, !1), c.appendToolbarItem(this.expandButton), this.expandedDetails = this.#e.createChild("div", "expanded-details"), ze(this.expandButton.element, this.expandedDetails), this.contrastThresholds = this.expandedDetails.createChild("div", "contrast-thresholds"), this.contrastAA = this.contrastThresholds.createChild("div", "contrast-threshold"), this.contrastPassFailAA = this.contrastAA.createChild("div", "contrast-pass-fail"), this.contrastAAA = this.contrastThresholds.createChild("div", "contrast-threshold"), this.contrastPassFailAAA = this.contrastAAA.createChild("div", "contrast-pass-fail"), this.contrastAPCA = this.contrastThresholds.createChild("div", "contrast-threshold"), this.contrastPassFailAPCA = this.contrastAPCA.createChild("div", "contrast-pass-fail"), this.chooseBgColor = this.expandedDetails.createChild("div", "contrast-choose-bg-color"), this.chooseBgColor.textContent = U(H.pickBackgroundColor);
|
|
338
|
+
let l = this.expandedDetails.createChild("div", "background-color"), u = l.createChild("devtools-toolbar", "spectrum-eye-dropper");
|
|
339
|
+
this.bgColorPickerButton = new Ce(U(H.toggleBackgroundColorPicker), "color-picker", "color-picker-filled"), this.bgColorPickerButton.addEventListener(I.Events.CLICK, this.#r.bind(this, void 0, !0)), u.appendToolbarItem(this.bgColorPickerButton), this.bgColorPickedBound = this.bgColorPicked.bind(this), this.bgColorSwatch = new qe(l), this.contrastInfo.addEventListener(Ue.CONTRAST_INFO_UPDATED, this.update.bind(this));
|
|
340
|
+
}
|
|
341
|
+
showNoContrastInfoAvailableMessage() {
|
|
342
|
+
this.noContrastInfoAvailable.classList.remove("hidden");
|
|
343
|
+
}
|
|
344
|
+
hideNoContrastInfoAvailableMessage() {
|
|
345
|
+
this.noContrastInfoAvailable.classList.add("hidden");
|
|
346
|
+
}
|
|
347
|
+
computeSuggestedColor(e) {
|
|
348
|
+
let t = this.contrastInfo.color(), n = this.contrastInfo.bgColor();
|
|
349
|
+
if (!t || !n) return;
|
|
350
|
+
if (e === "APCA") {
|
|
351
|
+
let e = this.contrastInfo.contrastRatioAPCAThreshold();
|
|
352
|
+
return e === null ? void 0 : d(t, n, e + 1);
|
|
353
|
+
}
|
|
354
|
+
let r = this.contrastInfo.contrastRatioThreshold(e);
|
|
355
|
+
if (r) return h(t, n, r + .1);
|
|
356
|
+
}
|
|
357
|
+
onSuggestColor(e) {
|
|
358
|
+
let t = this.computeSuggestedColor(e);
|
|
359
|
+
t && this.colorSelectedCallback(t);
|
|
360
|
+
}
|
|
361
|
+
createFixColorButton(e, t) {
|
|
362
|
+
let n = e.createChild("button", "contrast-fix-button"), r = t.asString(this.contrastInfo.colorFormat()), i = r ? r + " " : "", a = U(H.useSuggestedColorStoFixLow, { PH1: i });
|
|
363
|
+
return j(n, a), P.install(n, a), n.tabIndex = 0, n.style.backgroundColor = i, n;
|
|
364
|
+
}
|
|
365
|
+
update() {
|
|
366
|
+
if (this.contrastInfo.isNull()) {
|
|
367
|
+
this.showNoContrastInfoAvailableMessage(), this.setVisible(!1);
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
this.setVisible(!0), this.hideNoContrastInfoAvailableMessage();
|
|
371
|
+
let t = v.instance().moduleSetting("apca").get(), r = this.contrastInfo.color(), i = this.contrastInfo.bgColor();
|
|
372
|
+
if (t) {
|
|
373
|
+
let t = this.contrastInfo.contrastRatioAPCA();
|
|
374
|
+
if (t === null || !i || !r) {
|
|
375
|
+
this.contrastUnknown = !0, this.contrastValue.textContent = "", this.contrastValueBubble.classList.add("contrast-unknown"), this.chooseBgColor.classList.remove("hidden"), this.contrastThresholds.classList.add("hidden"), this.showNoContrastInfoAvailableMessage();
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
this.contrastUnknown = !1, this.chooseBgColor.classList.add("hidden"), this.contrastThresholds.classList.remove("hidden"), this.contrastValueBubble.classList.remove("contrast-unknown"), this.contrastValue.textContent = `${n(t, 2)}%`;
|
|
379
|
+
let a = this.contrastInfo.contrastRatioAPCAThreshold(), o = t && a ? Math.abs(t) >= a : !1;
|
|
380
|
+
this.contrastPassFailAPCA.removeChildren();
|
|
381
|
+
let s = this.contrastPassFailAPCA.createChild("span", "contrast-link-label");
|
|
382
|
+
if (s.textContent = U(H.apca), a !== null && (this.contrastPassFailAPCA.createChild("span").textContent = `: ${a.toFixed(2)}%`), o) {
|
|
383
|
+
let e = W();
|
|
384
|
+
this.contrastPassFailAPCA.appendChild(e);
|
|
385
|
+
} else {
|
|
386
|
+
let e = G();
|
|
387
|
+
this.contrastPassFailAPCA.appendChild(e);
|
|
388
|
+
let t = this.computeSuggestedColor("APCA");
|
|
389
|
+
t && this.createFixColorButton(this.contrastPassFailAPCA, t).addEventListener("click", () => this.onSuggestColor("APCA"));
|
|
390
|
+
}
|
|
391
|
+
s.addEventListener("click", (t) => e.showHelp()), this.#e.classList.toggle("contrast-fail", !o), this.contrastValueBubble.classList.toggle("contrast-aa", o), this.bgColorSwatch.setColors(r, i);
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
let a = this.contrastInfo.contrastRatio();
|
|
395
|
+
if (!a || !i || !r) {
|
|
396
|
+
this.contrastUnknown = !0, this.contrastValue.textContent = "", this.contrastValueBubble.classList.add("contrast-unknown"), this.chooseBgColor.classList.remove("hidden"), this.contrastThresholds.classList.add("hidden"), this.showNoContrastInfoAvailableMessage();
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
this.contrastUnknown = !1, this.chooseBgColor.classList.add("hidden"), this.contrastThresholds.classList.remove("hidden"), this.contrastValueBubble.classList.remove("contrast-unknown"), this.contrastValue.textContent = String(n(a, 2)), this.bgColorSwatch.setColors(r, i);
|
|
400
|
+
let o = this.contrastInfo.contrastRatioThreshold("aa") || 0;
|
|
401
|
+
this.passesAA = (this.contrastInfo.contrastRatio() || 0) >= o, this.contrastPassFailAA.removeChildren();
|
|
402
|
+
let s = this.contrastPassFailAA.createChild("span", "contrast-link-label");
|
|
403
|
+
if (s.textContent = U(H.aa), this.contrastPassFailAA.createChild("span").textContent = U(H.placeholderWithColon, { PH1: o.toFixed(1) }), this.passesAA) {
|
|
404
|
+
let e = W();
|
|
405
|
+
this.contrastPassFailAA.appendChild(e);
|
|
406
|
+
} else {
|
|
407
|
+
let e = G();
|
|
408
|
+
this.contrastPassFailAA.appendChild(e);
|
|
409
|
+
let t = this.computeSuggestedColor("aa");
|
|
410
|
+
t && this.createFixColorButton(this.contrastPassFailAA, t).addEventListener("click", () => this.onSuggestColor("aa"));
|
|
411
|
+
}
|
|
412
|
+
let c = this.contrastInfo.contrastRatioThreshold("aaa") || 0, l = (this.contrastInfo.contrastRatio() || 0) >= c;
|
|
413
|
+
this.contrastPassFailAAA.removeChildren();
|
|
414
|
+
let u = this.contrastPassFailAAA.createChild("span", "contrast-link-label");
|
|
415
|
+
if (u.textContent = U(H.aaa), this.contrastPassFailAAA.createChild("span").textContent = U(H.placeholderWithColon, { PH1: c.toFixed(1) }), l) {
|
|
416
|
+
let e = W();
|
|
417
|
+
this.contrastPassFailAAA.appendChild(e);
|
|
418
|
+
} else {
|
|
419
|
+
let e = G();
|
|
420
|
+
this.contrastPassFailAAA.appendChild(e);
|
|
421
|
+
let t = this.computeSuggestedColor("aaa");
|
|
422
|
+
t && this.createFixColorButton(this.contrastPassFailAAA, t).addEventListener("click", () => this.onSuggestColor("aaa"));
|
|
423
|
+
}
|
|
424
|
+
[s, u].forEach((t) => t.addEventListener("click", () => e.showHelp())), this.#e.classList.toggle("contrast-fail", !this.passesAA), this.contrastValueBubble.classList.toggle("contrast-aa", this.passesAA && !l), this.contrastValueBubble.classList.toggle("contrast-aaa", l);
|
|
425
|
+
}
|
|
426
|
+
static showHelp() {
|
|
427
|
+
se("https://web.dev/color-and-contrast-accessibility/");
|
|
428
|
+
}
|
|
429
|
+
setVisible(e) {
|
|
430
|
+
this.#n = e, this.#e.classList.toggle("hidden", !e);
|
|
431
|
+
}
|
|
432
|
+
visible() {
|
|
433
|
+
return this.#n;
|
|
434
|
+
}
|
|
435
|
+
element() {
|
|
436
|
+
return this.#e;
|
|
437
|
+
}
|
|
438
|
+
expandButtonClicked() {
|
|
439
|
+
let e = this.contrastValueBubble.getComponentSelection();
|
|
440
|
+
e && e.empty(), this.toggleExpanded();
|
|
441
|
+
}
|
|
442
|
+
topRowClicked(e) {
|
|
443
|
+
let t = this.contrastValueBubble.getComponentSelection();
|
|
444
|
+
t && t.empty(), this.toggleExpanded(), e.consume(!0);
|
|
445
|
+
}
|
|
446
|
+
toggleExpanded() {
|
|
447
|
+
this.#t = !this.#t, Ie(this.expandButton.element, this.#t), this.#e.classList.toggle("collapsed", !this.#t), this.#t ? (this.toggleMainColorPicker(!1), this.expandButton.setGlyph("chevron-up"), this.expandButton.setTitle(U(H.showLess)), this.contrastUnknown && this.#r(!0)) : (this.#r(!1), this.expandButton.setGlyph("chevron-down"), this.expandButton.setTitle(U(H.showMore))), this.expandedChangedCallback();
|
|
448
|
+
}
|
|
449
|
+
collapse() {
|
|
450
|
+
this.#e.classList.remove("expanded"), this.#r(!1), this.toggleMainColorPicker(!1);
|
|
451
|
+
}
|
|
452
|
+
expanded() {
|
|
453
|
+
return this.#t;
|
|
454
|
+
}
|
|
455
|
+
backgroundColorPickerEnabled() {
|
|
456
|
+
return this.bgColorPickerButton.isToggled();
|
|
457
|
+
}
|
|
458
|
+
toggleBackgroundColorPicker(e) {
|
|
459
|
+
this.#r(e, !1);
|
|
460
|
+
}
|
|
461
|
+
#r(e, t = !0) {
|
|
462
|
+
e === void 0 && (e = this.bgColorPickerButton.isToggled()), t && this.dispatchEventToListeners("BackgroundColorPickerWillBeToggled", e), F.setEyeDropperActive(e), e ? F.events.addEventListener(k.EyeDropperPickedColor, this.bgColorPickedBound) : F.events.removeEventListener(k.EyeDropperPickedColor, this.bgColorPickedBound);
|
|
463
|
+
}
|
|
464
|
+
bgColorPicked({ data: e }) {
|
|
465
|
+
let t = [
|
|
466
|
+
e.r,
|
|
467
|
+
e.g,
|
|
468
|
+
e.b,
|
|
469
|
+
(e.a / 2.55 | 0) / 100
|
|
470
|
+
], n = f.fromRGBA(t);
|
|
471
|
+
this.contrastInfo.setBgColor(n), this.#r(!1), this.bgColorPickerButton.toggled(!1), F.bringToFront();
|
|
472
|
+
}
|
|
473
|
+
}, Ke = /* @__PURE__ */ function(e) {
|
|
474
|
+
return e.BACKGROUND_COLOR_PICKER_WILL_BE_TOGGLED = "BackgroundColorPickerWillBeToggled", e;
|
|
475
|
+
}({}), qe = class {
|
|
476
|
+
swatchElement;
|
|
477
|
+
swatchInnerElement;
|
|
478
|
+
textPreview;
|
|
479
|
+
constructor(e) {
|
|
480
|
+
this.swatchElement = e.createChild("span", "swatch contrast swatch-inner-white"), this.swatchInnerElement = this.swatchElement.createChild("span", "swatch-inner"), this.textPreview = this.swatchElement.createChild("div", "text-preview"), this.textPreview.textContent = "Aa";
|
|
481
|
+
}
|
|
482
|
+
setColors(e, t) {
|
|
483
|
+
this.textPreview.style.color = e.asString(u.RGBA), this.swatchInnerElement.style.backgroundColor = t.asString(u.RGBA), this.swatchElement.classList.toggle("swatch-inner-white", t.as(u.HSL).l > .9);
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
function W() {
|
|
487
|
+
let e = new R();
|
|
488
|
+
return e.name = "checkmark", e.style.color = "var(--icon-checkmark-green)", e.style.width = "var(--sys-size-9)", e.style.height = "var(--sys-size-7)", e;
|
|
489
|
+
}
|
|
490
|
+
function G() {
|
|
491
|
+
let e = new R();
|
|
492
|
+
return e.name = "clear", e.style.color = "var(--icon-error)", e.classList.add("small"), e;
|
|
493
|
+
}
|
|
494
|
+
//#endregion
|
|
495
|
+
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts
|
|
496
|
+
var Je = class {
|
|
497
|
+
contrastInfo;
|
|
498
|
+
visible;
|
|
499
|
+
contrastRatioSVG;
|
|
500
|
+
contrastRatioLines;
|
|
501
|
+
width;
|
|
502
|
+
height;
|
|
503
|
+
contrastRatioLineBuilder;
|
|
504
|
+
contrastRatioLinesThrottler;
|
|
505
|
+
drawContrastRatioLinesBound;
|
|
506
|
+
constructor(e, t) {
|
|
507
|
+
this.contrastInfo = e, this.visible = !1, this.contrastRatioSVG = L(t, "svg", "spectrum-contrast-container fill"), this.contrastRatioLines = /* @__PURE__ */ new Map(), v.instance().moduleSetting("apca").get() ? this.contrastRatioLines.set("APCA", L(this.contrastRatioSVG, "path", "spectrum-contrast-line")) : (this.contrastRatioLines.set("aa", L(this.contrastRatioSVG, "path", "spectrum-contrast-line")), this.contrastRatioLines.set("aaa", L(this.contrastRatioSVG, "path", "spectrum-contrast-line"))), this.width = 0, this.height = 0, this.contrastRatioLineBuilder = new Ye(this.contrastInfo), this.contrastRatioLinesThrottler = new S(0), this.drawContrastRatioLinesBound = this.drawContrastRatioLines.bind(this), this.contrastInfo.addEventListener(Ue.CONTRAST_INFO_UPDATED, this.update.bind(this));
|
|
508
|
+
}
|
|
509
|
+
update() {
|
|
510
|
+
!this.visible || this.contrastInfo.isNull() || v.instance().moduleSetting("apca").get() && this.contrastInfo.contrastRatioAPCA() === null || this.contrastInfo.contrastRatio() && this.contrastRatioLinesThrottler.schedule(this.drawContrastRatioLinesBound);
|
|
511
|
+
}
|
|
512
|
+
setDimensions(e, t) {
|
|
513
|
+
this.width = e, this.height = t, this.update();
|
|
514
|
+
}
|
|
515
|
+
setVisible(e) {
|
|
516
|
+
this.visible = e, this.contrastRatioSVG.classList.toggle("hidden", !e), this.update();
|
|
517
|
+
}
|
|
518
|
+
async drawContrastRatioLines() {
|
|
519
|
+
for (let [e, t] of this.contrastRatioLines) {
|
|
520
|
+
let n = this.contrastRatioLineBuilder.drawContrastRatioLine(this.width, this.height, e);
|
|
521
|
+
n ? t.setAttribute("d", n) : t.removeAttribute("d");
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}, Ye = class {
|
|
525
|
+
contrastInfo;
|
|
526
|
+
constructor(e) {
|
|
527
|
+
this.contrastInfo = e;
|
|
528
|
+
}
|
|
529
|
+
drawContrastRatioLine(e, t, n) {
|
|
530
|
+
let r = v.instance().moduleSetting("apca").get(), i = r ? this.contrastInfo.contrastRatioAPCAThreshold() : this.contrastInfo.contrastRatioThreshold(n);
|
|
531
|
+
if (!e || !t || i === null) return null;
|
|
532
|
+
let a = .02, o = this.contrastInfo.color(), s = this.contrastInfo.bgColor();
|
|
533
|
+
if (!o || !s) return null;
|
|
534
|
+
let c = o.rgba(), l = o.as(u.HSL).hsva(), d = s.rgba(), h = te(d), g = y(c, d), _ = te(g) > h, b = r ? ee(h, i, _) : p(h, i, _);
|
|
535
|
+
if (r && Math.abs(Math.round(ie(b, h))) < i) return null;
|
|
536
|
+
let x = l[2], S = 0, C = [
|
|
537
|
+
l[0],
|
|
538
|
+
0,
|
|
539
|
+
0,
|
|
540
|
+
l[3]
|
|
541
|
+
], w = [];
|
|
542
|
+
g = y(ne(C), d);
|
|
543
|
+
let T = (e) => te(y(f.fromHSVA(e).rgba(), d));
|
|
544
|
+
v.instance().moduleSetting("apca").get() && (T = (e) => re(y(f.fromHSVA(e).rgba(), d)));
|
|
545
|
+
let E;
|
|
546
|
+
for (E = 0; E < 1.02; E += a) {
|
|
547
|
+
E = Math.min(1, E), C[1] = E, C[2] = x + S * a;
|
|
548
|
+
let n = m(C, 2, b, T);
|
|
549
|
+
if (n === null) break;
|
|
550
|
+
S = E === 0 ? 0 : (n - x) / a, x = n, w.push(w.length ? "L" : "M"), w.push((E * e).toFixed(2)), w.push(((1 - n) * t).toFixed(2));
|
|
551
|
+
}
|
|
552
|
+
return E < 1.02 && (E -= a, C[2] = 1, E = m(C, 1, b, T), E !== null && (w = w.concat([
|
|
553
|
+
"L",
|
|
554
|
+
(E * e).toFixed(2),
|
|
555
|
+
"-0.1"
|
|
556
|
+
]))), w.length === 0 ? null : w.join(" ");
|
|
557
|
+
}
|
|
558
|
+
}, Xe = { colorShiftWarning: "⚠️ Conversion to a narrow gamut will cause color shifts" }, Ze = O("ui/legacy/components/color_picker/FormatPickerContextMenu.ts", Xe), Qe = _.bind(void 0, Ze), $e = class {
|
|
559
|
+
#e;
|
|
560
|
+
constructor(e) {
|
|
561
|
+
this.#e = e;
|
|
562
|
+
}
|
|
563
|
+
async show(e, t) {
|
|
564
|
+
let { resolve: n, promise: r } = Promise.withResolvers(), i = [
|
|
565
|
+
u.HEX,
|
|
566
|
+
u.HEXA,
|
|
567
|
+
u.RGB,
|
|
568
|
+
u.RGBA,
|
|
569
|
+
u.HSL,
|
|
570
|
+
u.HWB
|
|
571
|
+
], a = [
|
|
572
|
+
u.LCH,
|
|
573
|
+
u.OKLCH,
|
|
574
|
+
u.LAB,
|
|
575
|
+
u.OKLAB,
|
|
576
|
+
u.SRGB,
|
|
577
|
+
u.SRGB_LINEAR,
|
|
578
|
+
u.DISPLAY_P3,
|
|
579
|
+
u.A98_RGB,
|
|
580
|
+
u.PROPHOTO_RGB,
|
|
581
|
+
u.REC_2020,
|
|
582
|
+
u.XYZ,
|
|
583
|
+
u.XYZ_D50,
|
|
584
|
+
u.XYZ_D65
|
|
585
|
+
], o = new Se(e, { onSoftMenuClosed: () => n() }), c = o.section("disclaimer"), d = o.section("legacy"), f = o.section("wide"), p = o.section("color-function").appendSubMenuItem("color()", !1, "color").section(), m = !1;
|
|
586
|
+
if (!(this.#e instanceof s)) {
|
|
587
|
+
let e = this.#e.asLegacyColor().nickname();
|
|
588
|
+
e && (m ||= e.isGamutClipped(), this.addColorToSection(e, d, t));
|
|
589
|
+
}
|
|
590
|
+
if (!(this.#e instanceof T)) {
|
|
591
|
+
let e = this.#e.as((this.#e.alpha ?? 1) === 1 ? u.HEX : u.HEXA).shortHex();
|
|
592
|
+
e && (m ||= e.isGamutClipped(), this.addColorToSection(e, d, t));
|
|
593
|
+
}
|
|
594
|
+
for (let e of [...i, ...a]) {
|
|
595
|
+
if (e === this.#e.format()) continue;
|
|
596
|
+
let n = this.#e.as(e), r = i.includes(e) ? d : n instanceof l ? p : f;
|
|
597
|
+
m ||= n.isGamutClipped(), this.addColorToSection(n, r, t);
|
|
598
|
+
}
|
|
599
|
+
m && c.appendItem(Qe(Xe.colorShiftWarning), () => {}, { disabled: !0 }), await o.show(), await r;
|
|
600
|
+
}
|
|
601
|
+
addColorToSection(e, t, n) {
|
|
602
|
+
if (e instanceof f) {
|
|
603
|
+
let t = (this.#e.alpha ?? 1) !== 1;
|
|
604
|
+
if (e.alpha !== null !== t) return;
|
|
605
|
+
}
|
|
606
|
+
let r = e.isGamutClipped() ? e.asString() + " ⚠️" : e.asString();
|
|
607
|
+
r && t.appendItem(r, () => n(e), { jslogContext: e.isGamutClipped() ? "color" : "clipped-color" });
|
|
608
|
+
}
|
|
609
|
+
}, et = "/*\n * Copyright 2023 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 position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n\n.gamut-line {\n /* We want to show 50% white color in all themes since this is drawn over a color rectangle */\n stroke: color-mix(in srgb, var(--ref-palette-neutral100) 50%, transparent);\n fill: none;\n}\n\n.label {\n position: absolute;\n bottom: 3px;\n margin-right: 5px;\n /* We want to show 50% white color in all themes since this is drawn over a color rectangle */\n color: color-mix(in srgb, var(--ref-palette-neutral100) 50%, transparent);\n}\n", tt = 13, nt = .001;
|
|
610
|
+
function rt(e) {
|
|
611
|
+
let t = ne([...e, 1]), n = w.displayP3ToXyzd50(t[0], t[1], t[2]);
|
|
612
|
+
return w.xyzd50ToSrgb(n[0], n[1], n[2]).every((e) => e + nt >= 0 && e - nt <= 1);
|
|
613
|
+
}
|
|
614
|
+
var it = class extends HTMLElement {
|
|
615
|
+
#e = this.attachShadow({ mode: "open" });
|
|
616
|
+
#t({ hue: e, width: t, height: n }) {
|
|
617
|
+
if (t === 0 || n === 0) return null;
|
|
618
|
+
let r = 1 / window.devicePixelRatio, i = [], a = 0;
|
|
619
|
+
for (let o = 0; o < n; o += r) {
|
|
620
|
+
let s = 1 - o / n;
|
|
621
|
+
for (; a < t; a += r) if (!rt([
|
|
622
|
+
e,
|
|
623
|
+
a / t,
|
|
624
|
+
s
|
|
625
|
+
])) {
|
|
626
|
+
i.push({
|
|
627
|
+
x: a,
|
|
628
|
+
y: o
|
|
629
|
+
});
|
|
630
|
+
break;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
if (i.length === 0) return null;
|
|
634
|
+
let o = i[i.length - 1];
|
|
635
|
+
return o.x < t && i.push({
|
|
636
|
+
y: o.y,
|
|
637
|
+
x: t
|
|
638
|
+
}), i;
|
|
639
|
+
}
|
|
640
|
+
#n(e, t) {
|
|
641
|
+
let n = Infinity, r = null;
|
|
642
|
+
for (let i of e) Math.abs(t - i.y) <= n && (n = Math.abs(t - i.y), r = i);
|
|
643
|
+
return r;
|
|
644
|
+
}
|
|
645
|
+
render({ hue: e, width: t, height: n }) {
|
|
646
|
+
return Fe("Srgb Overlay render", () => {
|
|
647
|
+
let r = this.#t({
|
|
648
|
+
hue: e,
|
|
649
|
+
width: t,
|
|
650
|
+
height: n
|
|
651
|
+
});
|
|
652
|
+
if (!r || r.length === 0) return;
|
|
653
|
+
let i = this.#n(r, n - tt);
|
|
654
|
+
i && ue(_e`
|
|
655
|
+
<style>${et}</style>
|
|
656
|
+
<span class="label" style="right: ${t - i.x}px">sRGB</span>
|
|
657
|
+
<svg>
|
|
658
|
+
<polyline points=${r.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" ")} class="gamut-line" />
|
|
659
|
+
</svg>
|
|
660
|
+
`, this.#e, { host: this });
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
customElements.define("devtools-spectrum-srgb-overlay", it);
|
|
665
|
+
//#endregion
|
|
666
|
+
//#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/legacy/components/color_picker/spectrum.css.mjs
|
|
667
|
+
var at = "/*\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/* https://github.com/bgrins/spectrum */\n\n:host {\n width: 232px;\n height: 319px;\n user-select: none;\n overflow: hidden;\n}\n\n/* stylelint-disable-next-line selector-pseudo-class-no-unknown */\n:selection {\n background-color: var(--sys-color-tonal-container);\n color: var(--sys-color-on-tonal-container);\n}\n\n.spectrum-color {\n position: relative;\n width: 232px;\n height: 127px;\n border-radius: 2px 2px 0 0;\n overflow: hidden;\n flex: none;\n touch-action: none;\n}\n\n.spectrum-dragger,\n.spectrum-slider {\n user-select: none;\n}\n\n.spectrum-dragger {\n border-radius: 12px;\n height: 12px;\n width: 12px;\n border: 1px solid var(--sys-color-surface);\n cursor: move;\n z-index: 1;\n position: absolute;\n top: 0;\n left: 0;\n background: var(--sys-color-inverse-surface);\n box-shadow: var(--drop-shadow);\n}\n\n.spectrum-slider {\n position: absolute;\n top: -1px;\n cursor: ew-resize;\n width: 13px;\n height: 13px;\n border-radius: 13px;\n background-color: var(--sys-color-neutral-container);\n box-shadow: var(--drop-shadow);\n}\n\n.spectrum-color:focus .spectrum-dragger {\n border: 1px solid var(--sys-color-state-focus-ring);\n}\n\n.spectrum-tools {\n position: relative;\n height: 110px;\n width: 100%;\n flex: none;\n}\n\n.spectrum-hue {\n top: 16px;\n /* stylelint-disable-next-line plugin/use_theme_colors, declaration-property-value-no-unknown */\n background: linear-gradient(to left in hsl longer hue, #f00 0 100%);\n}\n\n.spectrum-hue.display-p3 {\n /* stylelint-disable-next-line declaration-property-value-no-unknown */\n background: linear-gradient(\n to left in hsl longer hue,\n color(display-p3 1 0 0) 0 100%\n );\n}\n\n.spectrum-alpha {\n top: 35px;\n background-image: var(--image-file-checker);\n background-size: 12px 11px;\n}\n\n.spectrum-alpha-background {\n height: 100%;\n border-radius: 2px;\n}\n\n.spectrum-hue,\n.spectrum-alpha {\n position: absolute;\n left: 86px;\n width: 130px;\n height: 11px;\n border-radius: 2px;\n touch-action: none;\n}\n\n.spectrum-hue:focus-visible .spectrum-slider,\n.spectrum-alpha:focus-visible .spectrum-slider {\n border: 1px solid var(--sys-color-state-focus-ring);\n width: 14px;\n height: 14px;\n border-radius: 14px;\n}\n\n.spectrum-sat,\n.-theme-preserve {\n /* stylelint-disable-next-line plugin/use_theme_colors */\n background-image: linear-gradient(to right, #fff, rgb(204 154 129 / 0%));\n}\n\n.spectrum-val,\n.-theme-preserve {\n /* stylelint-disable-next-line plugin/use_theme_colors */\n background-image: linear-gradient(to top, #000, rgb(204 154 129 / 0%));\n}\n\n.spectrum-contrast-details {\n position: relative;\n background-color: var(--sys-color-cdt-base-container);\n width: 100%;\n height: 83px;\n top: 0;\n font-size: 13px;\n color: var(--sys-color-on-surface);\n border-top: 1px solid var(--sys-color-divider);\n line-height: initial;\n overflow: hidden;\n flex: none;\n}\n\n.spectrum-contrast-details.collapsed {\n height: 36px;\n flex: none;\n}\n\n.spectrum-contrast-details devtools-toolbar.expand {\n position: absolute;\n right: 6px;\n top: 6px;\n margin: 0;\n}\n\n.spectrum-contrast-details.visible {\n display: initial;\n}\n\n.spectrum-contrast-details div.container {\n margin: 10px;\n}\n\n.spectrum-contrast-details .expanded-details {\n display: flex;\n margin: 12px 12px 0 4px;\n}\n\n.spectrum-contrast-details.collapsed .expanded-details {\n display: none;\n}\n\n.contrast-pass-fail {\n margin-left: 0.5em;\n display: flex;\n align-items: center;\n}\n\n.contrast-choose-bg-color {\n margin: 8px 0 0 5px;\n font-style: italic;\n}\n\n.spectrum-contrast-details .contrast-choose-bg-color,\n.spectrum-contrast-details .contrast-thresholds {\n width: 150px;\n}\n\n.contrast-threshold:first-child {\n margin-bottom: 5px;\n}\n\n.contrast-fix-button {\n cursor: pointer;\n font-size: 13px;\n padding: 0;\n margin: 0 0 0 10px;\n background: 0;\n width: 12px;\n height: 12px;\n border: 1px solid var(--sys-color-neutral-outline);\n display: inline-block;\n position: relative;\n}\n\n.contrast-fix-button::after {\n content: ' ';\n width: 13px;\n height: 13px;\n background-image: var(--image-file-refresh);\n background-size: contain;\n position: absolute;\n left: 5.5px;\n top: 3.5px;\n background-color: var(--sys-color-cdt-base-container);\n border-radius: 50%;\n}\n\n.contrast-fix-button:hover,\n.contrast-fix-button:focus {\n border: 1px solid var(--sys-color-state-focus-ring);\n transform: scale(1.2);\n}\n\n.contrast-link-label {\n cursor: pointer;\n}\n\n.contrast-link-label:hover {\n text-decoration: underline;\n}\n\n.spectrum-contrast-details .background-color {\n position: absolute;\n flex: none;\n right: 12px;\n}\n\n.spectrum-eye-dropper {\n width: 32px;\n height: 24px;\n position: relative;\n left: 8px;\n top: 17px;\n cursor: pointer;\n}\n\n.spectrum-contrast-details .spectrum-eye-dropper {\n top: 2px;\n right: 34px;\n position: absolute;\n left: auto;\n}\n\n.contrast-details-value {\n color: var(--sys-color-on-surface);\n margin: 1px 5px;\n user-select: text;\n}\n\n.contrast-pass-fail devtools-icon {\n margin-left: 5px;\n}\n\n.contrast-details-value devtools-icon {\n display: none;\n margin-left: 5px;\n color: var(--sys-color-on-surface);\n}\n\n.spectrum-contrast-details .toolbar-state-on devtools-icon {\n color: var(--sys-color-token-subtle);\n}\n\ndevtools-icon.clear {\n transform: scale(0.7);\n color: var(--icon-error);\n}\n\ndevtools-icon.checkmark,\ndevtools-icon.check-double {\n color: var(--icon-checkmark-green);\n}\n\n.spectrum-contrast-details .contrast-details-value.contrast-unknown {\n background-color: var(--sys-color-cdt-base-container);\n color: var(--sys-color-on-surface);\n width: 3em;\n text-align: center;\n}\n\n.contrast-details-value .clear,\n.contrast-details-value .checkmark,\n.contrast-details-value .check-double {\n cursor: pointer;\n vertical-align: -5px;\n}\n\n.spectrum-contrast-details.contrast-fail .contrast-details-value .clear,\n.contrast-details-value.contrast-aa .checkmark,\n.contrast-details-value.contrast-aaa .check-double {\n display: inline-block;\n}\n\n.swatch {\n width: 32px;\n height: 32px;\n margin: 0;\n position: absolute;\n top: 15px;\n left: 44px;\n background-image: var(--image-file-checker);\n border-radius: 16px;\n}\n\n.swatch-inner,\n.swatch-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n display: inline-block;\n border-radius: 16px;\n}\n\n.swatch-inner-white {\n border: 1px solid var(--sys-color-neutral-outline);\n}\n\n.swatch-overlay {\n cursor: pointer;\n opacity: 0%;\n padding: 4px;\n}\n\n.swatch-overlay:hover,\n.swatch-overlay:focus-visible {\n background-color: var(--color-background-inverted-opacity-30);\n opacity: 100%;\n}\n\n.swatch-overlay:active {\n background-color: var(--color-background-inverted-opacity-50);\n}\n\ndevtools-icon.copy-color-icon {\n color: var(--sys-color-cdt-base-container);\n margin-top: 2px;\n margin-left: 2px;\n}\n\n.spectrum-text {\n position: absolute;\n top: 60px;\n left: 16px;\n}\n\n.spectrum-text-value {\n display: inline-block;\n width: 40px;\n overflow: hidden;\n text-align: center;\n margin-right: 6px;\n line-height: 20px;\n padding: 0;\n color: var(--sys-color-on-surface);\n border: 1px solid var(--sys-color-neutral-outline);\n white-space: nowrap;\n}\n\n.spectrum-text-label {\n letter-spacing: 39.5px;\n margin-top: 8px;\n display: block;\n color: var(--sys-color-state-disabled);\n margin-left: 16px;\n width: 174px;\n}\n\n.spectrum-text-hex > .spectrum-text-value {\n width: 178px;\n}\n\n.spectrum-text-hex > .spectrum-text-label {\n letter-spacing: normal;\n margin-left: 0;\n text-align: center;\n}\n\n.spectrum-switcher {\n border-radius: 2px;\n height: 20px;\n width: 20px;\n padding: 2px;\n border: none;\n background: none;\n margin: 0;\n}\n\n.spectrum-display-switcher {\n top: 72px;\n position: absolute;\n right: 10px;\n}\n\n.spectrum-switcher:hover {\n background-color: var(--sys-color-state-hover-on-subtle);\n}\n\n.spectrum-switcher:focus-visible {\n background-color: var(--sys-color-state-focus-highlight);\n}\n\n.spectrum-palette-container {\n border-top: 1px solid var(--sys-color-divider);\n position: relative;\n width: 100%;\n padding: 6px 24px 6px 6px;\n display: flex;\n flex-wrap: wrap;\n}\n\n.spectrum-palette {\n display: flex;\n flex-wrap: wrap;\n width: 198px;\n}\n\n.spectrum-palette-color {\n width: 12px;\n height: 12px;\n flex: 0 0 12px;\n border-radius: 2px;\n margin: 6px;\n cursor: pointer;\n position: relative;\n border: 1px solid var(--sys-color-divider);\n background-position: -1px !important; /* stylelint-disable-line declaration-no-important */\n z-index: 14;\n}\n\n.spectrum-palette-color-shadow {\n position: absolute;\n opacity: 0%;\n margin: 0;\n top: -5px;\n left: 3px;\n border: 0;\n border-radius: 1px;\n width: 11px;\n height: 11px;\n}\n\n.spectrum-palette-color:hover:not(.spectrum-shades-shown)\n > .spectrum-palette-color-shadow,\n.spectrum-palette-color:focus:not(.spectrum-shades-shown)\n > .spectrum-palette-color-shadow {\n opacity: 20%;\n}\n\n.spectrum-palette-color:hover:not(.spectrum-shades-shown)\n > .spectrum-palette-color-shadow:first-child,\n.spectrum-palette-color:focus:not(.spectrum-shades-shown)\n > .spectrum-palette-color-shadow:first-child {\n opacity: 60%;\n top: -3px;\n left: 1px;\n}\n\n.palette-color-shades {\n position: absolute;\n background-color: var(--sys-color-cdt-base-container);\n height: 228px;\n width: 28px;\n box-shadow: var(--drop-shadow);\n z-index: 14;\n border-radius: 2px;\n transform-origin: 0 228px;\n margin-top: 16px;\n margin-left: -8px;\n}\n\n.spectrum-palette > .spectrum-palette-color.spectrum-shades-shown {\n z-index: 15;\n}\n\n.palette-color-shades > .spectrum-palette-color {\n margin: 8px 0 0;\n margin-left: 8px;\n width: 12px;\n}\n\n.spectrum-palette > .spectrum-palette-color {\n transition: transform 100ms cubic-bezier(0, 0, 0.2, 1);\n will-change: transform;\n z-index: 13;\n}\n\n.palette-preview > .spectrum-palette-color {\n margin-top: 1px;\n}\n\n.spectrum-palette > .spectrum-palette-color.empty-color {\n border-color: transparent;\n}\n\n.spectrum-palette-color:not(.has-material-shades):focus {\n border: 1px solid var(--sys-color-state-focus-ring);\n transform: scale(1.4);\n}\n\n.palette-color-shades > .spectrum-palette-color:not(.empty-color):hover,\n.spectrum-palette\n > .spectrum-palette-color:not(.empty-color, .has-material-shades):hover {\n transform: scale(1.15);\n}\n\n.add-color-toolbar {\n margin-left: -3px;\n margin-top: -1px;\n}\n\n.spectrum-palette-switcher {\n right: 10px;\n top: 0;\n margin-top: 9px;\n position: absolute;\n}\n\n.palette-panel {\n width: 100%;\n position: absolute;\n top: 100%;\n display: flex;\n flex-direction: column;\n background-color: var(--sys-color-cdt-base-container);\n z-index: 14;\n transition: transform 200ms cubic-bezier(0, 0, 0.2, 1), visibility 0s 200ms;\n border-top: 1px solid var(--sys-color-divider);\n visibility: hidden;\n}\n\n.palette-panel-showing > .palette-panel {\n transform: translateY(-100%);\n transition-delay: 0s;\n visibility: visible;\n}\n\n.palette-panel > devtools-toolbar {\n position: absolute;\n right: 6px;\n top: 6px;\n}\n\n.palette-panel > div {\n flex: 0 0 38px;\n border-bottom: 1px solid var(--sys-color-divider);\n padding: 12px;\n line-height: 14px;\n color: var(--sys-color-on-surface);\n}\n\n.palette-panel > div.palette-title {\n font-size: 14px;\n line-height: 16px;\n color: var(--sys-color-on-surface);\n flex-basis: 40px;\n}\n\ndiv.palette-preview {\n display: flex;\n cursor: pointer;\n}\n\n.palette-preview-title {\n flex: 0 0 84px;\n}\n\n.palette-preview:focus-visible,\n.palette-preview:hover {\n background-color: var(--sys-color-state-hover-on-subtle);\n}\n\n.spectrum-overlay {\n z-index: 13;\n visibility: hidden;\n /* stylelint-disable-next-line plugin/use_theme_colors */\n background-color: hsl(0deg 0% 0% / 50%);\n /* See: crbug.com/1152736 for color variable migration. */\n opacity: 0%;\n transition: opacity 100ms cubic-bezier(0, 0, 0.2, 1), visibility 0s 100ms;\n}\n\n.palette-panel-showing > .spectrum-overlay {\n transition-delay: 0s;\n visibility: visible;\n opacity: 100%;\n}\n\n.spectrum-contrast-container {\n width: 100%;\n height: 100%;\n}\n\n.spectrum-contrast-line,\n:host-context(.theme-with-dark-background) .spectrum-contrast-line {\n fill: none;\n stroke: #fff; /* stylelint-disable-line plugin/use_theme_colors */\n opacity: 70%;\n stroke-width: 1.5px;\n}\n\n.delete-color-toolbar {\n position: absolute;\n right: 0;\n top: 0;\n background-color: var(--sys-color-cdt-base-container);\n visibility: hidden;\n z-index: 3;\n width: 36px;\n display: flex;\n align-items: center;\n padding-left: 4px;\n bottom: 2px;\n border-bottom-right-radius: 2px;\n}\n\n@keyframes showDeleteToolbar {\n from {\n opacity: 0%;\n }\n\n to {\n opacity: 100%;\n }\n}\n\n.delete-color-toolbar.dragging {\n visibility: visible;\n animation: showDeleteToolbar 100ms 150ms cubic-bezier(0, 0, 0.2, 1) backwards;\n}\n\n.delete-color-toolbar-active {\n background-color: var(--sys-color-state-hover-on-subtle);\n color: var(--sys-color-cdt-base-container);\n}\n\n.swatch.contrast {\n width: 30px;\n height: 30px;\n position: absolute;\n top: 0;\n right: 0;\n left: auto;\n background-image: var(--image-file-checker);\n border-radius: 15px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.swatch.contrast .swatch-overlay {\n padding: 0;\n}\n\n.background-color .text-preview {\n color: var(--sys-color-inverse-surface);\n font-size: 16px;\n position: relative;\n padding-bottom: 2px;\n}\n\n.swatch.contrast devtools-icon {\n margin: -2px;\n}\n\n.no-contrast-info-available {\n border-top: 1px solid var(--sys-color-divider);\n position: relative;\n width: 100%;\n padding: 10px;\n justify-content: center;\n display: flex;\n flex-wrap: wrap;\n}\n\n@media (forced-colors: active) {\n :host {\n border: 1px solid canvastext !important; /* stylelint-disable-line declaration-no-important */\n }\n\n .spectrum-color {\n forced-color-adjust: none;\n }\n\n .spectrum-switcher:hover,\n .spectrum-switcher:focus-visible {\n forced-color-adjust: none;\n background-color: Highlight !important; /* stylelint-disable-line declaration-no-important */\n }\n\n :host-context(.theme-with-dark-background) .spectrum-switcher {\n filter: unset;\n }\n\n .spectrum-switcher:hover svg,\n .spectrum-switcher:focus-visible svg {\n fill: HighlightText;\n }\n\n .swatch {\n forced-color-adjust: none;\n }\n\n .swatch-inner,\n .swatch-overlay,\n .swatch-inner-white {\n border: 1px solid ButtonText;\n }\n\n .swatch-overlay:hover,\n .swatch-overlay:focus-visible {\n background-color: canvas !important; /* stylelint-disable-line declaration-no-important */\n }\n\n .spectrum-slider {\n forced-color-adjust: none;\n background-color: ButtonText !important; /* stylelint-disable-line declaration-no-important */\n box-shadow: 0 1px 4px 0 ButtonFace !important; /* stylelint-disable-line declaration-no-important */\n }\n}\n", K = {
|
|
668
|
+
toggleColorPicker: "Eye dropper [{PH1}]",
|
|
669
|
+
changeHue: "Change hue",
|
|
670
|
+
changeAlpha: "Change alpha",
|
|
671
|
+
hex: "HEX",
|
|
672
|
+
changeColorFormat: "Change color format",
|
|
673
|
+
previewPalettes: "Preview palettes",
|
|
674
|
+
addToPalette: "Add to palette",
|
|
675
|
+
colorPalettes: "Color Palettes",
|
|
676
|
+
returnToColorPicker: "Return to color picker",
|
|
677
|
+
colorS: "Color {PH1}",
|
|
678
|
+
longclickOrLongpressSpaceToShow: "Long-click or long-press space to show alternate shades of {PH1}",
|
|
679
|
+
removeColor: "Remove color",
|
|
680
|
+
removeAllToTheRight: "Remove all to the right",
|
|
681
|
+
clearPalette: "Clear palette",
|
|
682
|
+
sInS: "{PH1} in {PH2}",
|
|
683
|
+
copyColorToClipboard: "Copy color to clipboard",
|
|
684
|
+
pressArrowKeysMessage: "Press arrow keys with or without modifiers to move swatch position. Arrow key with Shift key moves position largely, with Ctrl key it is less and with Alt key it is even less"
|
|
685
|
+
}, ot = O("ui/legacy/components/color_picker/Spectrum.ts", K), q = _.bind(void 0, ot), st = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), lt = [
|
|
686
|
+
u.SRGB,
|
|
687
|
+
u.RGB,
|
|
688
|
+
u.HEX,
|
|
689
|
+
u.HSL,
|
|
690
|
+
u.HWB
|
|
691
|
+
], J = "EyeDropper" in window;
|
|
692
|
+
function ut(e) {
|
|
693
|
+
return !lt.includes(e);
|
|
694
|
+
}
|
|
695
|
+
function dt(e) {
|
|
696
|
+
return e === u.RGBA ? u.RGB : e === u.HSLA ? u.HSL : e === u.HWBA ? u.HWB : e === u.HEXA ? u.HEX : e;
|
|
697
|
+
}
|
|
698
|
+
function ft(e, t) {
|
|
699
|
+
switch (e) {
|
|
700
|
+
case "display-p3": {
|
|
701
|
+
let e = t.as(u.DISPLAY_P3);
|
|
702
|
+
return [...E([
|
|
703
|
+
e.p0,
|
|
704
|
+
e.p1,
|
|
705
|
+
e.p2
|
|
706
|
+
]), e.alpha || 1];
|
|
707
|
+
}
|
|
708
|
+
case "srgb": return t.as(u.HSL).hsva();
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
function Y(e, t) {
|
|
712
|
+
let n = f.fromHSVA(t);
|
|
713
|
+
switch (e) {
|
|
714
|
+
case "display-p3": {
|
|
715
|
+
let e = ne(t);
|
|
716
|
+
return new l(u.DISPLAY_P3, e[0], e[1], e[2], e[3], void 0);
|
|
717
|
+
}
|
|
718
|
+
case "srgb": return n;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
var pt = class extends b(Te) {
|
|
722
|
+
#e;
|
|
723
|
+
gamut = "srgb";
|
|
724
|
+
colorElement;
|
|
725
|
+
colorDragElement;
|
|
726
|
+
dragX;
|
|
727
|
+
dragY;
|
|
728
|
+
colorPickerButton;
|
|
729
|
+
swatch;
|
|
730
|
+
hueElement;
|
|
731
|
+
hueSlider;
|
|
732
|
+
alphaElement;
|
|
733
|
+
alphaElementBackground;
|
|
734
|
+
alphaSlider;
|
|
735
|
+
displayContainer;
|
|
736
|
+
textValues;
|
|
737
|
+
textLabels;
|
|
738
|
+
hexContainer;
|
|
739
|
+
hexValue;
|
|
740
|
+
contrastInfo;
|
|
741
|
+
srgbOverlay;
|
|
742
|
+
contrastOverlay;
|
|
743
|
+
contrastDetails;
|
|
744
|
+
contrastDetailsBackgroundColorPickerToggledBound;
|
|
745
|
+
palettes;
|
|
746
|
+
palettePanel;
|
|
747
|
+
palettePanelShowing;
|
|
748
|
+
paletteSectionContainer;
|
|
749
|
+
paletteContainer;
|
|
750
|
+
shadesContainer;
|
|
751
|
+
deleteIconToolbar;
|
|
752
|
+
deleteButton;
|
|
753
|
+
addColorToolbar;
|
|
754
|
+
colorPickedBound;
|
|
755
|
+
hsv;
|
|
756
|
+
hueAlphaWidth;
|
|
757
|
+
dragWidth;
|
|
758
|
+
dragHeight;
|
|
759
|
+
colorDragElementHeight;
|
|
760
|
+
slideHelperWidth;
|
|
761
|
+
numPaletteRowsShown;
|
|
762
|
+
selectedColorPalette;
|
|
763
|
+
customPaletteSetting;
|
|
764
|
+
colorOffset;
|
|
765
|
+
closeButton;
|
|
766
|
+
paletteContainerMutable;
|
|
767
|
+
shadesCloseHandler;
|
|
768
|
+
dragElement;
|
|
769
|
+
dragHotSpotX;
|
|
770
|
+
dragHotSpotY;
|
|
771
|
+
#t;
|
|
772
|
+
colorFormat = u.RGB;
|
|
773
|
+
eyeDropperAbortController = null;
|
|
774
|
+
isFormatPickerShown = !1;
|
|
775
|
+
#n;
|
|
776
|
+
constructor(e) {
|
|
777
|
+
super({ useShadowDom: !0 }), this.registerRequiredCSS(at), this.contentElement.tabIndex = 0, this.contentElement.setAttribute("jslog", `${Ae("colorPicker").parent("mapped").track({ keydown: "Enter|Escape" })}`), this.colorElement = this.contentElement.createChild("div", "spectrum-color"), this.colorElement.tabIndex = 0, this.colorElement.setAttribute("jslog", `${Le("color").track({
|
|
778
|
+
click: !0,
|
|
779
|
+
drag: !0,
|
|
780
|
+
keydown: "ArrowLeft|ArrowRight|ArrowDown|ArrowUp"
|
|
781
|
+
})}`), this.setDefaultFocusedElement(this.colorElement), this.colorElement.addEventListener("keydown", this.onSliderKeydown.bind(this, m.bind(this)));
|
|
782
|
+
let t = q(K.pressArrowKeysMessage);
|
|
783
|
+
j(this.colorElement, t), fe(this.colorElement), this.colorDragElement = this.colorElement.createChild("div", "spectrum-sat fill").createChild("div", "spectrum-val fill").createChild("div", "spectrum-dragger"), this.dragX = 0, this.dragY = 0;
|
|
784
|
+
let n = this.contentElement.createChild("div", "spectrum-tools"), i = n.createChild("devtools-toolbar", "spectrum-eye-dropper"), a = de.instance().shortcutsForAction("elements.toggle-eye-dropper")[0]?.descriptors.flatMap((e) => e.name.split(" + "))[0];
|
|
785
|
+
this.colorPickerButton = new Ce(q(K.toggleColorPicker, { PH1: a || "" }), "color-picker", "color-picker-filled", "color-eye-dropper"), this.colorPickerButton.setToggled(!0), this.colorPickerButton.addEventListener(I.Events.CLICK, this.toggleColorPicker.bind(this, void 0)), i.appendToolbarItem(this.colorPickerButton), this.colorPickerButton.element.setAttribute("jslog", `${ce().track({ click: !0 })}`), this.swatch = new vt(n), this.hueElement = n.createChild("div", "spectrum-hue"), this.hueElement.setAttribute("jslog", `${Ne("hue").track({
|
|
786
|
+
click: !0,
|
|
787
|
+
drag: !0,
|
|
788
|
+
keydown: "ArrowLeft|ArrowRight|ArrowDown|ArrowUp"
|
|
789
|
+
})}`), this.hueElement.tabIndex = 0, this.hueElement.addEventListener("keydown", this.onSliderKeydown.bind(this, f.bind(this))), j(this.hueElement, q(K.changeHue)), we(this.hueElement, 0, 360), this.hueSlider = this.hueElement.createChild("div", "spectrum-slider"), this.alphaElement = n.createChild("div", "spectrum-alpha"), this.alphaElement.setAttribute("jslog", `${Ne("alpha").track({
|
|
790
|
+
click: !0,
|
|
791
|
+
drag: !0,
|
|
792
|
+
keydown: "ArrowLeft|ArrowRight|ArrowDown|ArrowUp"
|
|
793
|
+
})}`), this.alphaElement.tabIndex = 0, this.alphaElement.addEventListener("keydown", this.onSliderKeydown.bind(this, p.bind(this))), j(this.alphaElement, q(K.changeAlpha)), we(this.alphaElement, 0, 1), this.alphaElementBackground = this.alphaElement.createChild("div", "spectrum-alpha-background"), this.alphaSlider = this.alphaElement.createChild("div", "spectrum-slider"), this.displayContainer = n.createChild("div", "spectrum-text source-code"), je(this.displayContainer, !0), this.textValues = [];
|
|
794
|
+
for (let e = 0; e < 4; ++e) {
|
|
795
|
+
let t = Ee("spectrum-text-value");
|
|
796
|
+
t.setAttribute("jslog", `${xe().track({
|
|
797
|
+
change: !0,
|
|
798
|
+
keydown: "ArrowUp|ArrowDown"
|
|
799
|
+
}).context(e)}`), this.displayContainer.appendChild(t), t.maxLength = 4, this.textValues.push(t), t.addEventListener("keydown", this.inputChanged.bind(this), !1), t.addEventListener("input", this.inputChanged.bind(this), !1), t.addEventListener("wheel", this.inputChanged.bind(this), !1), t.addEventListener("paste", this.pasted.bind(this), !1);
|
|
800
|
+
}
|
|
801
|
+
this.textLabels = this.displayContainer.createChild("div", "spectrum-text-label"), this.hexContainer = n.createChild("div", "spectrum-text spectrum-text-hex source-code"), je(this.hexContainer, !0), this.hexValue = Ee("spectrum-text-value"), this.hexValue.setAttribute("jslog", `${xe("hex").track({
|
|
802
|
+
keydown: "ArrowUp|ArrowDown",
|
|
803
|
+
change: !0
|
|
804
|
+
})}`), this.hexContainer.appendChild(this.hexValue), this.hexValue.maxLength = 9, this.hexValue.addEventListener("keydown", this.inputChanged.bind(this), !1), this.hexValue.addEventListener("input", this.inputChanged.bind(this), !1), this.hexValue.addEventListener("wheel", this.inputChanged.bind(this), !1), this.hexValue.addEventListener("paste", this.pasted.bind(this), !1);
|
|
805
|
+
let o = this.hexContainer.createChild("div", "spectrum-text-label");
|
|
806
|
+
o.textContent = q(K.hex), j(this.hexValue, o.textContent);
|
|
807
|
+
let s = n.createChild("button", "spectrum-display-switcher spectrum-switcher");
|
|
808
|
+
s.setAttribute("jslog", `${ke("color-format").track({ click: !0 })}`), _(s), be(s, q(K.changeColorFormat)), s.tabIndex = 0, s.addEventListener("click", (e) => {
|
|
809
|
+
this.showFormatPicker(e);
|
|
810
|
+
}), M(this.hueElement, this.dragStart.bind(this, f.bind(this)), f.bind(this), null, "ew-resize", "crosshair"), M(this.alphaElement, this.dragStart.bind(this, p.bind(this)), p.bind(this), null, "ew-resize", "crosshair"), M(this.colorElement, this.dragStart.bind(this, m.bind(this)), m.bind(this), null, "move", "crosshair"), e && (this.contrastInfo = e, this.contrastOverlay = new Je(this.contrastInfo, this.colorElement), this.contrastDetails = new Ge(this.contrastInfo, this.contentElement, this.toggleColorPicker.bind(this), this.contrastPanelExpandedChanged.bind(this), this.colorSelected.bind(this)), this.contrastDetailsBackgroundColorPickerToggledBound = this.contrastDetailsBackgroundColorPickerToggled.bind(this)), this.element.classList.add("flex-none"), this.palettes = /* @__PURE__ */ new Map(), this.palettePanel = this.contentElement.createChild("div", "palette-panel"), this.palettePanel.setAttribute("jslog", `${Me("palette-panel")}`), this.palettePanelShowing = !1, this.paletteSectionContainer = this.contentElement.createChild("div", "spectrum-palette-container"), this.paletteContainer = this.paletteSectionContainer.createChild("div", "spectrum-palette"), this.paletteContainer.addEventListener("contextmenu", this.showPaletteColorContextMenu.bind(this, -1)), this.shadesContainer = this.contentElement.createChild("div", "palette-color-shades hidden"), this.shadesContainer.setAttribute("jslog", `${pe()}`), M(this.paletteContainer, this.paletteDragStart.bind(this), this.paletteDrag.bind(this), this.paletteDragEnd.bind(this), "default");
|
|
811
|
+
let c = this.paletteSectionContainer.createChild("div", "spectrum-palette-switcher spectrum-switcher");
|
|
812
|
+
c.setAttribute("jslog", `${ke("palette-switcher").track({ click: !0 })}`), _(c), be(c, q(K.previewPalettes)), z(c), c.tabIndex = 0, self.onInvokeElement(c, (e) => {
|
|
813
|
+
this.togglePalettePanel(!0), e.consume(!0);
|
|
814
|
+
}), this.deleteIconToolbar = document.createElement("devtools-toolbar"), this.deleteIconToolbar.classList.add("delete-color-toolbar"), this.deleteButton = new I("", "bin"), this.deleteIconToolbar.appendToolbarItem(this.deleteButton), this.contentElement.createChild("div", "spectrum-overlay fill").addEventListener("click", this.togglePalettePanel.bind(this, !1)), this.addColorToolbar = document.createElement("devtools-toolbar"), this.addColorToolbar.classList.add("add-color-toolbar");
|
|
815
|
+
let l = new I(q(K.addToPalette), "plus", void 0, "add-color");
|
|
816
|
+
l.addEventListener(I.Events.CLICK, this.onAddColorMousedown.bind(this)), l.element.addEventListener("keydown", this.onAddColorKeydown.bind(this)), this.addColorToolbar.appendToolbarItem(l), this.colorPickedBound = this.colorPicked.bind(this), this.numPaletteRowsShown = -1, this.contentElement.addEventListener("focusout", (e) => {
|
|
817
|
+
this.isFormatPickerShown && e.stopImmediatePropagation();
|
|
818
|
+
}), this.srgbOverlay = new it(), this.loadPalettes(), new gt((e) => {
|
|
819
|
+
e.colors.length ? this.addPalette(e) : this.selectedColorPalette.get() === e.title && this.paletteSelected($);
|
|
820
|
+
});
|
|
821
|
+
function d(e, t) {
|
|
822
|
+
let n = t, r = e.getBoundingClientRect();
|
|
823
|
+
switch (n.key) {
|
|
824
|
+
case "ArrowLeft":
|
|
825
|
+
case "ArrowDown": return r.left - 1;
|
|
826
|
+
case "ArrowRight":
|
|
827
|
+
case "ArrowUp": return r.right + 1;
|
|
828
|
+
default: return t.x;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
function f(e) {
|
|
832
|
+
let t = this.hsv.slice();
|
|
833
|
+
t[0] = r(1 - (d(this.hueSlider, e) - this.hueElement.getBoundingClientRect().left) / this.hueAlphaWidth, 0, 1), this.#i(t, "", void 0, void 0, X.Other);
|
|
834
|
+
let n = Y(this.gamut, t).as(u.HSL).canonicalHSLA();
|
|
835
|
+
ge(this.hueElement, n[0]);
|
|
836
|
+
}
|
|
837
|
+
function p(e) {
|
|
838
|
+
let t = this.hsv.slice(), n = (d(this.alphaSlider, e) - this.hueElement.getBoundingClientRect().left) / this.hueAlphaWidth;
|
|
839
|
+
t[3] = r(Math.round(n * 100) / 100, 0, 1), this.#i(t, "", void 0, void 0, X.Other);
|
|
840
|
+
let i = Y(this.gamut, t).as(u.HSL).canonicalHSLA();
|
|
841
|
+
ve(this.alphaElement, i[3]);
|
|
842
|
+
}
|
|
843
|
+
function m(e) {
|
|
844
|
+
let t = this.hsv.slice(), n = h(this.colorDragElement, e);
|
|
845
|
+
this.colorOffset = this.colorElement.getBoundingClientRect(), t[1] = r((n.x - this.colorOffset.left) / this.dragWidth, 0, 1), t[2] = r(1 - (n.y - this.colorOffset.top) / this.dragHeight, 0, 1), this.#i(t, "", void 0, void 0, X.Other);
|
|
846
|
+
}
|
|
847
|
+
function h(e, t) {
|
|
848
|
+
let n = e.getBoundingClientRect(), r = n.x + n.width / 2, i = n.y + n.width / 2, a = g(n.width / 4, t);
|
|
849
|
+
switch (t.key) {
|
|
850
|
+
case "ArrowLeft": return {
|
|
851
|
+
x: n.left - a,
|
|
852
|
+
y: i
|
|
853
|
+
};
|
|
854
|
+
case "ArrowRight": return {
|
|
855
|
+
x: n.right + a,
|
|
856
|
+
y: i
|
|
857
|
+
};
|
|
858
|
+
case "ArrowDown": return {
|
|
859
|
+
x: r,
|
|
860
|
+
y: n.bottom + a
|
|
861
|
+
};
|
|
862
|
+
case "ArrowUp": return {
|
|
863
|
+
x: r,
|
|
864
|
+
y: n.top - a
|
|
865
|
+
};
|
|
866
|
+
default: return {
|
|
867
|
+
x: t.x,
|
|
868
|
+
y: t.y
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
function g(e, t) {
|
|
873
|
+
let n = t;
|
|
874
|
+
return n.altKey ? e = 1 : n.ctrlKey ? e = 10 : n.shiftKey && (e = 20), e;
|
|
875
|
+
}
|
|
876
|
+
function _(e) {
|
|
877
|
+
let t = new R();
|
|
878
|
+
t.name = "fold-more", t.classList.add("medium"), e.appendChild(t);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
dragStart(e, t) {
|
|
882
|
+
return this.colorOffset = this.colorElement.getBoundingClientRect(), e(t), !0;
|
|
883
|
+
}
|
|
884
|
+
contrastDetailsBackgroundColorPickerToggled(e) {
|
|
885
|
+
e.data && this.toggleColorPicker(!1);
|
|
886
|
+
}
|
|
887
|
+
contrastPanelExpandedChanged() {
|
|
888
|
+
!this.contrastOverlay || !this.contrastDetails || (this.contrastOverlay.setVisible(this.contrastDetails.expanded()), this.resizeForSelectedPalette(!0), this.contrastDetails.expanded() ? this.hideSrgbOverlay() : this.showSrgbOverlay());
|
|
889
|
+
}
|
|
890
|
+
updatePalettePanel() {
|
|
891
|
+
this.palettePanel.removeChildren();
|
|
892
|
+
let e = this.palettePanel.createChild("div", "palette-title");
|
|
893
|
+
e.textContent = q(K.colorPalettes);
|
|
894
|
+
let t = this.palettePanel.createChild("devtools-toolbar");
|
|
895
|
+
this.closeButton = new I(q(K.returnToColorPicker), "cross"), this.closeButton.addEventListener(I.Events.CLICK, this.togglePalettePanel.bind(this, !1)), this.closeButton.element.addEventListener("keydown", this.onCloseBtnKeydown.bind(this)), this.closeButton.element.setAttribute("jslog", `${ye().track({ click: !0 })}`), t.appendToolbarItem(this.closeButton);
|
|
896
|
+
for (let e of this.palettes.values()) this.palettePanel.appendChild(this.createPreviewPaletteElement(e));
|
|
897
|
+
this.contentElement.scrollIntoView({ block: "end" });
|
|
898
|
+
}
|
|
899
|
+
togglePalettePanel(e) {
|
|
900
|
+
this.palettePanelShowing !== e && (e && this.updatePalettePanel(), this.palettePanelShowing = e, this.contentElement.classList.toggle("palette-panel-showing", e), this.#r());
|
|
901
|
+
}
|
|
902
|
+
onCloseBtnKeydown(e) {
|
|
903
|
+
(a(e) || i(e)) && (this.togglePalettePanel(!1), e.consume(!0));
|
|
904
|
+
}
|
|
905
|
+
onSliderKeydown(e, t) {
|
|
906
|
+
switch (t.key) {
|
|
907
|
+
case "ArrowLeft":
|
|
908
|
+
case "ArrowRight":
|
|
909
|
+
case "ArrowDown":
|
|
910
|
+
case "ArrowUp": e(t), t.consume(!0);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
#r() {
|
|
914
|
+
this.isShowing() && (this.palettePanelShowing && this.closeButton ? this.closeButton.element.focus({ preventScroll: !0 }) : this.contentElement.focus());
|
|
915
|
+
}
|
|
916
|
+
createPaletteColor(t, n, r) {
|
|
917
|
+
let i = document.createElement("div");
|
|
918
|
+
return i.classList.add("spectrum-palette-color"), i.setAttribute("jslog", `${me().track({
|
|
919
|
+
click: !0,
|
|
920
|
+
drag: !0,
|
|
921
|
+
keydown: "ArrowUp|ArrowDown|ArrowLeft|ArrowRight|Escape|Tab"
|
|
922
|
+
})}`), i.style.background = e("linear-gradient(%s, %s), var(--image-file-checker)", t, t), r && i.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
923
|
+
duration: 100,
|
|
924
|
+
delay: r,
|
|
925
|
+
fill: "backwards"
|
|
926
|
+
}), P.install(i, n || t), i;
|
|
927
|
+
}
|
|
928
|
+
showPalette(e, t, n) {
|
|
929
|
+
this.resizeForSelectedPalette(), this.paletteContainer.removeChildren();
|
|
930
|
+
for (let n = 0; n < e.colors.length; n++) {
|
|
931
|
+
let r = t ? n * 100 / e.colors.length : 0, i = this.createPaletteColor(e.colors[n], e.colorNames[n], r);
|
|
932
|
+
if (z(i), j(i, q(K.colorS, { PH1: e.colors[n] })), i.tabIndex = -1, i.addEventListener("mousedown", this.onPaletteColorKeydown.bind(this, e, n)), i.addEventListener("keydown", this.onPaletteColorKeydown.bind(this, e, n)), e.mutable) st.set(i, !0), ct.set(i, e.colors[n]), i.addEventListener("contextmenu", this.showPaletteColorContextMenu.bind(this, n));
|
|
933
|
+
else if (e === $) {
|
|
934
|
+
i.classList.add("has-material-shades");
|
|
935
|
+
let t = i.createChild("div", "spectrum-palette-color spectrum-palette-color-shadow");
|
|
936
|
+
t.style.background = e.colors[n], t = i.createChild("div", "spectrum-palette-color spectrum-palette-color-shadow"), t.style.background = e.colors[n];
|
|
937
|
+
let r = q(K.longclickOrLongpressSpaceToShow, { PH1: e.colors[n] });
|
|
938
|
+
P.install(i, r), j(i, r), new Pe(i, this.showLightnessShades.bind(this, i, e.colors[n]));
|
|
939
|
+
}
|
|
940
|
+
this.paletteContainer.appendChild(i);
|
|
941
|
+
}
|
|
942
|
+
this.paletteContainer.childNodes.length > 0 && (this.paletteContainer.childNodes[0].tabIndex = 0), this.paletteContainerMutable = e.mutable, e.mutable ? (this.paletteContainer.appendChild(this.addColorToolbar), this.paletteContainer.appendChild(this.deleteIconToolbar)) : (this.addColorToolbar.remove(), this.deleteIconToolbar.remove()), this.togglePalettePanel(!1), this.#r();
|
|
943
|
+
}
|
|
944
|
+
showLightnessShades(e, t, n) {
|
|
945
|
+
function r(e) {
|
|
946
|
+
this.shadesContainer.classList.add("hidden"), e.classList.remove("spectrum-shades-shown"), this.shadesCloseHandler && this.shadesContainer.ownerDocument.removeEventListener("mousedown", this.shadesCloseHandler, !0), delete this.shadesCloseHandler;
|
|
947
|
+
}
|
|
948
|
+
this.shadesCloseHandler && this.shadesCloseHandler(), this.shadesContainer.classList.remove("hidden"), this.shadesContainer.removeChildren(), this.shadesContainer.animate([{
|
|
949
|
+
transform: "scaleY(0)",
|
|
950
|
+
opacity: "0"
|
|
951
|
+
}, {
|
|
952
|
+
transform: "scaleY(1)",
|
|
953
|
+
opacity: "1"
|
|
954
|
+
}], {
|
|
955
|
+
duration: 200,
|
|
956
|
+
easing: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
957
|
+
});
|
|
958
|
+
let i = this.paletteContainer.offsetTop + e.offsetTop + (e.parentElement ? e.parentElement.offsetTop : 0);
|
|
959
|
+
this.contrastDetails && (i += this.contrastDetails.element().offsetHeight), this.shadesContainer.style.top = i + "px", this.shadesContainer.style.left = e.offsetLeft + "px", e.classList.add("spectrum-shades-shown");
|
|
960
|
+
let a = _t.get(t);
|
|
961
|
+
if (a !== void 0) for (let t = a.length - 1; t >= 0; t--) {
|
|
962
|
+
let n = this.createPaletteColor(a[t], void 0, t * 200 / a.length + 100);
|
|
963
|
+
z(n), j(n, q(K.colorS, { PH1: a[t] })), n.tabIndex = -1, n.addEventListener("mousedown", this.onShadeColorKeydown.bind(this, a[t], e)), n.addEventListener("keydown", this.onShadeColorKeydown.bind(this, a[t], e)), this.shadesContainer.appendChild(n);
|
|
964
|
+
}
|
|
965
|
+
this.shadesContainer.childNodes.length > 0 && this.shadesContainer.childNodes[this.shadesContainer.childNodes.length - 1].focus(), this.shadesCloseHandler = r.bind(this, e), this.shadesContainer.ownerDocument.addEventListener("mousedown", this.shadesCloseHandler, !0);
|
|
966
|
+
}
|
|
967
|
+
slotIndexForEvent(e) {
|
|
968
|
+
let t = e, n = t.pageX - this.paletteContainer.getBoundingClientRect().left, r = t.pageY - this.paletteContainer.getBoundingClientRect().top, i = Math.min(n / Z | 0, Q - 1), a = r / Z | 0;
|
|
969
|
+
return Math.min(a * Q + i, this.customPaletteSetting.get().colors.length - 1);
|
|
970
|
+
}
|
|
971
|
+
isDraggingToBin(e) {
|
|
972
|
+
return e.pageX > this.deleteIconToolbar.getBoundingClientRect().left;
|
|
973
|
+
}
|
|
974
|
+
paletteDragStart(e) {
|
|
975
|
+
let t = le(e);
|
|
976
|
+
if (!t || !st.get(t)) return !1;
|
|
977
|
+
let n = this.slotIndexForEvent(e);
|
|
978
|
+
this.dragElement = t;
|
|
979
|
+
let r = e;
|
|
980
|
+
return this.dragHotSpotX = r.pageX - n % Q * Z, this.dragHotSpotY = r.pageY - (n / Q | 0) * Z, !0;
|
|
981
|
+
}
|
|
982
|
+
paletteDrag(e) {
|
|
983
|
+
let t = e;
|
|
984
|
+
if (t.pageX < this.paletteContainer.getBoundingClientRect().left || t.pageY < this.paletteContainer.getBoundingClientRect().top || !this.dragElement || this.dragHotSpotX === void 0 || this.dragHotSpotY === void 0) return;
|
|
985
|
+
let n = this.slotIndexForEvent(e), r = t.pageX - n % Q * Z, i = t.pageY - (n / Q | 0) * Z, a = this.isDraggingToBin(e);
|
|
986
|
+
this.deleteIconToolbar.classList.add("dragging"), this.deleteIconToolbar.classList.toggle("delete-color-toolbar-active", a);
|
|
987
|
+
let o = "translateX(" + (r - this.dragHotSpotX) + "px) translateY(" + (i - this.dragHotSpotY) + "px)";
|
|
988
|
+
this.dragElement.style.transform = a ? o + " scale(0.8)" : o;
|
|
989
|
+
let s = [...this.paletteContainer.children], c = s.indexOf(this.dragElement), l = /* @__PURE__ */ new Map();
|
|
990
|
+
for (let e of s) l.set(e, e.getBoundingClientRect());
|
|
991
|
+
c !== n && this.paletteContainer.insertBefore(this.dragElement, s[n > c ? n + 1 : n]);
|
|
992
|
+
for (let e of s) {
|
|
993
|
+
if (e === this.dragElement) continue;
|
|
994
|
+
let t = l.get(e), n = e.getBoundingClientRect();
|
|
995
|
+
t && (t.left !== n.left || t.top !== n.top) && e.animate([{ transform: "translateX(" + (t.left - n.left) + "px) translateY(" + (t.top - n.top) + "px)" }, { transform: "none" }], {
|
|
996
|
+
duration: 100,
|
|
997
|
+
easing: "cubic-bezier(0, 0, 0.2, 1)"
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
paletteDragEnd(e) {
|
|
1002
|
+
if (!this.dragElement) return;
|
|
1003
|
+
this.isDraggingToBin(e) && this.dragElement.remove(), this.dragElement.style.removeProperty("transform");
|
|
1004
|
+
let t = this.paletteContainer.children, n = [];
|
|
1005
|
+
for (let e = 0; e < t.length; ++e) {
|
|
1006
|
+
let r = ct.get(t[e]);
|
|
1007
|
+
r && n.push(r);
|
|
1008
|
+
}
|
|
1009
|
+
let r = this.customPaletteSetting.get();
|
|
1010
|
+
r.colors = n, this.customPaletteSetting.set(r), this.showPalette(r, !1), this.deleteIconToolbar.classList.remove("dragging"), this.deleteIconToolbar.classList.remove("delete-color-toolbar-active");
|
|
1011
|
+
}
|
|
1012
|
+
loadPalettes() {
|
|
1013
|
+
this.palettes.set($.title, $);
|
|
1014
|
+
let e = {
|
|
1015
|
+
title: "Custom",
|
|
1016
|
+
colors: [],
|
|
1017
|
+
colorNames: [],
|
|
1018
|
+
mutable: !0
|
|
1019
|
+
};
|
|
1020
|
+
this.customPaletteSetting = v.instance().createSetting("custom-color-palette", e);
|
|
1021
|
+
let t = this.customPaletteSetting.get();
|
|
1022
|
+
t.colorNames = t.colorNames || [], this.palettes.set(t.title, t), this.selectedColorPalette = v.instance().createSetting("selected-color-palette", ht);
|
|
1023
|
+
let n = this.palettes.get(this.selectedColorPalette.get());
|
|
1024
|
+
n && this.showPalette(n, !0);
|
|
1025
|
+
}
|
|
1026
|
+
addPalette(e) {
|
|
1027
|
+
this.palettes.set(e.title, e), this.selectedColorPalette.get() === e.title && this.showPalette(e, !0);
|
|
1028
|
+
}
|
|
1029
|
+
createPreviewPaletteElement(e) {
|
|
1030
|
+
let t = document.createElement("div");
|
|
1031
|
+
t.classList.add("palette-preview"), z(t), t.tabIndex = 0;
|
|
1032
|
+
let n = t.createChild("div", "palette-preview-title");
|
|
1033
|
+
n.textContent = e.title;
|
|
1034
|
+
let r;
|
|
1035
|
+
for (r = 0; r < 5 && r < e.colors.length; r++) t.appendChild(this.createPaletteColor(e.colors[r], e.colorNames[r]));
|
|
1036
|
+
for (; r < 5; r++) t.createChild("div", "spectrum-palette-color empty-color");
|
|
1037
|
+
return self.onInvokeElement(t, (t) => {
|
|
1038
|
+
this.paletteSelected(e), t.consume(!0);
|
|
1039
|
+
}), t;
|
|
1040
|
+
}
|
|
1041
|
+
paletteSelected(e) {
|
|
1042
|
+
this.selectedColorPalette.set(e.title), this.showPalette(e, !0);
|
|
1043
|
+
}
|
|
1044
|
+
resizeForSelectedPalette(e) {
|
|
1045
|
+
let t = this.palettes.get(this.selectedColorPalette.get());
|
|
1046
|
+
if (!t) return;
|
|
1047
|
+
let n = t.colors.length;
|
|
1048
|
+
t === this.customPaletteSetting.get() && n++;
|
|
1049
|
+
let r = Math.max(1, Math.ceil(n / Q));
|
|
1050
|
+
if (this.numPaletteRowsShown === r && !e) return;
|
|
1051
|
+
this.numPaletteRowsShown = r;
|
|
1052
|
+
let i = 236;
|
|
1053
|
+
this.contrastDetails && (this.contrastDetails.expanded() ? i += 78 : i += 36), this.element.style.height = i + 12 + 24 * r + "px", this.dispatchEventToListeners("SizeChanged");
|
|
1054
|
+
}
|
|
1055
|
+
onPaletteColorKeydown(e, t, n) {
|
|
1056
|
+
if (n instanceof MouseEvent || i(n)) {
|
|
1057
|
+
let n = e.colors[t], r = e.colorNames[t], i = D(n);
|
|
1058
|
+
i && this.#i(i, n, r, e.matchUserFormat ? this.colorFormat : i.format(), X.Other);
|
|
1059
|
+
return;
|
|
1060
|
+
}
|
|
1061
|
+
let r;
|
|
1062
|
+
switch (n.key) {
|
|
1063
|
+
case "ArrowLeft":
|
|
1064
|
+
r = t - 1;
|
|
1065
|
+
break;
|
|
1066
|
+
case "ArrowRight":
|
|
1067
|
+
r = t + 1;
|
|
1068
|
+
break;
|
|
1069
|
+
case "ArrowUp":
|
|
1070
|
+
r = t - Q;
|
|
1071
|
+
break;
|
|
1072
|
+
case "ArrowDown":
|
|
1073
|
+
r = t + Q;
|
|
1074
|
+
break;
|
|
1075
|
+
}
|
|
1076
|
+
r !== void 0 && r > -1 && r < this.paletteContainer.childNodes.length && this.paletteContainer.childNodes[r].focus();
|
|
1077
|
+
}
|
|
1078
|
+
onShadeColorKeydown(e, t, n) {
|
|
1079
|
+
if (n instanceof MouseEvent || i(n)) {
|
|
1080
|
+
let t = D(e);
|
|
1081
|
+
t && this.#i(t, e, e, t.format(), X.Other);
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
let r = n.target;
|
|
1085
|
+
a(n) || n.key === "Tab" ? (t.focus(), this.shadesCloseHandler && this.shadesCloseHandler(), n.consume(!0)) : n.key === "ArrowUp" && r.previousElementSibling ? (r.previousElementSibling.focus(), n.consume(!0)) : n.key === "ArrowDown" && r.nextElementSibling && (r.nextElementSibling.focus(), n.consume(!0));
|
|
1086
|
+
}
|
|
1087
|
+
onAddColorMousedown() {
|
|
1088
|
+
this.addColorToCustomPalette();
|
|
1089
|
+
}
|
|
1090
|
+
onAddColorKeydown(e) {
|
|
1091
|
+
i(e) && (this.addColorToCustomPalette(), e.consume(!0));
|
|
1092
|
+
}
|
|
1093
|
+
addColorToCustomPalette() {
|
|
1094
|
+
let e = this.customPaletteSetting.get();
|
|
1095
|
+
e.colors.push(this.colorString()), this.customPaletteSetting.set(e), this.showPalette(e, !1);
|
|
1096
|
+
let t = this.paletteContainer.querySelectorAll(".spectrum-palette-color");
|
|
1097
|
+
t[t.length - 1].focus();
|
|
1098
|
+
}
|
|
1099
|
+
showPaletteColorContextMenu(e, t) {
|
|
1100
|
+
if (!this.paletteContainerMutable) return;
|
|
1101
|
+
let n = new Se(t);
|
|
1102
|
+
e !== -1 && (n.defaultSection().appendItem(q(K.removeColor), this.deletePaletteColors.bind(this, e, !1), { jslogContext: "remove-color" }), n.defaultSection().appendItem(q(K.removeAllToTheRight), this.deletePaletteColors.bind(this, e, !0), { jslogContext: "remove-all-to-the-right" })), n.defaultSection().appendItem(q(K.clearPalette), this.deletePaletteColors.bind(this, -1, !0), { jslogContext: "clear-palette" }), n.show();
|
|
1103
|
+
}
|
|
1104
|
+
deletePaletteColors(e, t) {
|
|
1105
|
+
let n = this.customPaletteSetting.get();
|
|
1106
|
+
t ? n.colors.splice(e + 1, n.colors.length - e - 1) : n.colors.splice(e, 1), this.customPaletteSetting.set(n), this.showPalette(n, !1);
|
|
1107
|
+
}
|
|
1108
|
+
setColor(e) {
|
|
1109
|
+
this.#i(e, "", void 0, e.format(), X.Model);
|
|
1110
|
+
let t = e.as(u.HSL).canonicalHSLA();
|
|
1111
|
+
ge(this.hueElement, t[0]), ve(this.alphaElement, t[3]);
|
|
1112
|
+
}
|
|
1113
|
+
colorSelected(e) {
|
|
1114
|
+
this.#i(e, "", void 0, void 0, X.Other);
|
|
1115
|
+
}
|
|
1116
|
+
get color() {
|
|
1117
|
+
return this.#e ? this.#e : Y(this.gamut, this.hsv);
|
|
1118
|
+
}
|
|
1119
|
+
#i(e, t, n, r, i) {
|
|
1120
|
+
if (t !== void 0 && (this.#n = t), r !== void 0 && (this.colorFormat = dt(r), this.gamut = ut(this.colorFormat) ? "display-p3" : "srgb"), Array.isArray(e)) this.#e = void 0, this.hsv = e;
|
|
1121
|
+
else if (e !== void 0) {
|
|
1122
|
+
this.#e = e;
|
|
1123
|
+
let t = this.hsv ? this.hsv[0] : null;
|
|
1124
|
+
this.hsv = ft(this.gamut, e), t !== null && e.as(u.LCH).isHuePowerless() && (this.hsv[0] = t);
|
|
1125
|
+
}
|
|
1126
|
+
this.#t = n, this.contrastInfo && this.contrastInfo.setColor(f.fromHSVA(this.hsv), this.colorFormat), this.updateHelperLocations(), this.updateUI(), i !== X.Input && this.updateInput(), i !== X.Model && this.dispatchEventToListeners("ColorChanged", this.colorString());
|
|
1127
|
+
}
|
|
1128
|
+
colorName() {
|
|
1129
|
+
return this.#t;
|
|
1130
|
+
}
|
|
1131
|
+
colorString() {
|
|
1132
|
+
if (this.#n) return this.#n;
|
|
1133
|
+
let e = this.color, t = this.colorFormat && this.colorFormat !== e.format() ? e.asString(this.colorFormat) : e.getAuthoredText() ?? e.asString();
|
|
1134
|
+
return t || (t = this.colorFormat === u.HEX ? e.asString(u.HEXA) : this.colorFormat === u.HSL ? e.asString(u.HSLA) : this.colorFormat === u.HWB ? e.asString(u.HWBA) : e.asString(u.RGBA), console.assert(!!t), t || "");
|
|
1135
|
+
}
|
|
1136
|
+
updateHelperLocations() {
|
|
1137
|
+
let e = this.hsv[0], t = this.hsv[1], n = this.hsv[2], r = this.hsv[3];
|
|
1138
|
+
this.dragX = t * this.dragWidth, this.dragY = this.dragHeight - n * this.dragHeight;
|
|
1139
|
+
let i = Math.max(-this.colorDragElementHeight, Math.min(this.dragWidth - this.colorDragElementHeight, this.dragX - this.colorDragElementHeight)), a = Math.max(-this.colorDragElementHeight, Math.min(this.dragHeight - this.colorDragElementHeight, this.dragY - this.colorDragElementHeight));
|
|
1140
|
+
this.colorDragElement.positionAt(i, a);
|
|
1141
|
+
let o = (1 - e) * this.hueAlphaWidth - this.slideHelperWidth;
|
|
1142
|
+
this.hueSlider.style.left = o + "px";
|
|
1143
|
+
let s = r * this.hueAlphaWidth - this.slideHelperWidth;
|
|
1144
|
+
this.alphaSlider.style.left = s + "px";
|
|
1145
|
+
}
|
|
1146
|
+
updateInput() {
|
|
1147
|
+
if (this.colorFormat === u.HEX) this.hexContainer.hidden = !1, this.displayContainer.hidden = !0, this.hexValue.value = this.color.asString((this.color.alpha ?? 1) === 1 ? u.HEX : u.HEXA);
|
|
1148
|
+
else {
|
|
1149
|
+
this.hexContainer.hidden = !0, this.displayContainer.hidden = !1;
|
|
1150
|
+
let e = Ve[this.colorFormat], t = e.toValues(this.color);
|
|
1151
|
+
this.textLabels.textContent = e.label;
|
|
1152
|
+
for (let e = 0; e < this.textValues.length; ++e) j(this.textValues[e], q(K.sInS, {
|
|
1153
|
+
PH1: this.textLabels.textContent.charAt(e),
|
|
1154
|
+
PH2: this.textLabels.textContent
|
|
1155
|
+
})), this.textValues[e].value = String(t[e]);
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
hideSrgbOverlay() {
|
|
1159
|
+
this.colorElement.contains(this.srgbOverlay) && this.colorElement.removeChild(this.srgbOverlay);
|
|
1160
|
+
}
|
|
1161
|
+
showSrgbOverlay() {
|
|
1162
|
+
this.contrastDetails?.expanded() || this.gamut !== "display-p3" || (this.srgbOverlay.render({
|
|
1163
|
+
hue: this.hsv[0],
|
|
1164
|
+
width: this.dragWidth,
|
|
1165
|
+
height: this.dragHeight
|
|
1166
|
+
}), this.colorElement.contains(this.srgbOverlay) || this.colorElement.appendChild(this.srgbOverlay));
|
|
1167
|
+
}
|
|
1168
|
+
updateSrgbOverlay() {
|
|
1169
|
+
this.gamut === "display-p3" ? this.showSrgbOverlay() : this.hideSrgbOverlay();
|
|
1170
|
+
}
|
|
1171
|
+
updateUI() {
|
|
1172
|
+
this.colorElement.style.backgroundColor = Y(this.gamut, [
|
|
1173
|
+
this.hsv[0],
|
|
1174
|
+
1,
|
|
1175
|
+
1,
|
|
1176
|
+
1
|
|
1177
|
+
]).asString(), this.contrastOverlay && this.contrastOverlay.setDimensions(this.dragWidth, this.dragHeight), this.updateSrgbOverlay(), this.swatch.setColor(this.color, this.colorString()), this.colorDragElement.style.backgroundColor = this.color.asString(u.LCH);
|
|
1178
|
+
let t = f.fromHSVA(this.hsv.slice(0, 3).concat(1));
|
|
1179
|
+
this.alphaElementBackground.style.backgroundImage = e("linear-gradient(to right, rgba(0,0,0,0), %s)", t.asString(u.LCH)), this.hueElement.classList.toggle("display-p3", ut(this.colorFormat));
|
|
1180
|
+
}
|
|
1181
|
+
async showFormatPicker(e) {
|
|
1182
|
+
let t = new $e(this.color);
|
|
1183
|
+
this.isFormatPickerShown = !0, await t.show(e, (e) => {
|
|
1184
|
+
this.#i(e, void 0, void 0, e.format(), X.Other);
|
|
1185
|
+
}), this.isFormatPickerShown = !1;
|
|
1186
|
+
}
|
|
1187
|
+
pasted(e) {
|
|
1188
|
+
if (!e.clipboardData) return;
|
|
1189
|
+
let t = e.clipboardData.getData("text"), n = D(t);
|
|
1190
|
+
n && (this.#i(n, t, void 0, void 0, X.Other), e.preventDefault());
|
|
1191
|
+
}
|
|
1192
|
+
#a(e) {
|
|
1193
|
+
switch (this.color.channels[this.textValues.indexOf(e)]) {
|
|
1194
|
+
case c.R:
|
|
1195
|
+
case c.G:
|
|
1196
|
+
case c.B: return this.color instanceof l ? {
|
|
1197
|
+
step: .01,
|
|
1198
|
+
range: {
|
|
1199
|
+
min: 0,
|
|
1200
|
+
max: 1
|
|
1201
|
+
}
|
|
1202
|
+
} : {
|
|
1203
|
+
step: 1,
|
|
1204
|
+
range: {
|
|
1205
|
+
min: 0,
|
|
1206
|
+
max: 255
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
case c.ALPHA:
|
|
1210
|
+
case c.X:
|
|
1211
|
+
case c.Y:
|
|
1212
|
+
case c.Z: return {
|
|
1213
|
+
step: .01,
|
|
1214
|
+
range: {
|
|
1215
|
+
min: 0,
|
|
1216
|
+
max: 1
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
default: return;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
inputChanged(e) {
|
|
1223
|
+
let t = e.currentTarget, n = De(t.value, e, void 0, this.#a(t));
|
|
1224
|
+
n && (t.value = n, t.selectionStart = 0, t.selectionEnd = n.length, e.consume(!0));
|
|
1225
|
+
let r = null;
|
|
1226
|
+
if (this.colorFormat === u.HEX) r = D(this.hexValue.value);
|
|
1227
|
+
else {
|
|
1228
|
+
let e = Ve[this.colorFormat], t = this.textValues.map((e) => e.value);
|
|
1229
|
+
if (t.length !== 4) return;
|
|
1230
|
+
r = e.fromValues(t);
|
|
1231
|
+
}
|
|
1232
|
+
r && this.#i(r, void 0, void 0, void 0, X.Input);
|
|
1233
|
+
}
|
|
1234
|
+
wasShown() {
|
|
1235
|
+
super.wasShown(), this.hueAlphaWidth = this.hueElement.offsetWidth, this.slideHelperWidth = this.hueSlider.offsetWidth / 2, this.dragWidth = this.colorElement.offsetWidth, this.dragHeight = this.colorElement.offsetHeight, this.colorDragElementHeight = this.colorDragElement.offsetHeight / 2, this.#i(void 0, void 0, void 0, void 0, X.Model), J ? this.colorPickerButton.setToggled(!1) : this.toggleColorPicker(!0), this.contrastDetails && this.contrastDetailsBackgroundColorPickerToggledBound && this.contrastDetails.addEventListener(Ke.BACKGROUND_COLOR_PICKER_WILL_BE_TOGGLED, this.contrastDetailsBackgroundColorPickerToggledBound);
|
|
1236
|
+
}
|
|
1237
|
+
willHide() {
|
|
1238
|
+
super.willHide(), this.toggleColorPicker(!1), this.contrastDetails && this.contrastDetailsBackgroundColorPickerToggledBound && this.contrastDetails.removeEventListener(Ke.BACKGROUND_COLOR_PICKER_WILL_BE_TOGGLED, this.contrastDetailsBackgroundColorPickerToggledBound);
|
|
1239
|
+
}
|
|
1240
|
+
async toggleColorPicker(e) {
|
|
1241
|
+
if (e === void 0 && (e = this.colorPickerButton.isToggled()), this.contrastDetails?.backgroundColorPickerEnabled() && this.contrastDetails.toggleBackgroundColorPicker(!1), !J) F.setEyeDropperActive(e), e ? F.events.addEventListener(k.EyeDropperPickedColor, this.colorPickedBound) : F.events.removeEventListener(k.EyeDropperPickedColor, this.colorPickedBound);
|
|
1242
|
+
else if (J && e) {
|
|
1243
|
+
let e = new window.EyeDropper();
|
|
1244
|
+
this.eyeDropperAbortController = new AbortController();
|
|
1245
|
+
try {
|
|
1246
|
+
let t = D((await e.open({ signal: this.eyeDropperAbortController.signal })).sRGBHex);
|
|
1247
|
+
this.#i(t ?? void 0, "", void 0, void 0, X.Other);
|
|
1248
|
+
} catch (e) {
|
|
1249
|
+
e.name !== "AbortError" && console.error(e);
|
|
1250
|
+
}
|
|
1251
|
+
this.colorPickerButton.setToggled(!1);
|
|
1252
|
+
} else J && !e && (this.eyeDropperAbortController?.abort(), this.eyeDropperAbortController = null);
|
|
1253
|
+
}
|
|
1254
|
+
colorPicked({ data: e }) {
|
|
1255
|
+
let t = [
|
|
1256
|
+
e.r,
|
|
1257
|
+
e.g,
|
|
1258
|
+
e.b,
|
|
1259
|
+
(e.a / 2.55 | 0) / 100
|
|
1260
|
+
], n = f.fromRGBA(t);
|
|
1261
|
+
this.#i(n, "", void 0, void 0, X.Other), F.bringToFront();
|
|
1262
|
+
}
|
|
1263
|
+
}, X = {
|
|
1264
|
+
Input: "Input",
|
|
1265
|
+
Model: "Model",
|
|
1266
|
+
Other: "Other"
|
|
1267
|
+
}, mt = /* @__PURE__ */ function(e) {
|
|
1268
|
+
return e.COLOR_CHANGED = "ColorChanged", e.SIZE_CHANGED = "SizeChanged", e;
|
|
1269
|
+
}({}), Z = 24, Q = 8, ht = "Page colors", gt = class {
|
|
1270
|
+
callback;
|
|
1271
|
+
frequencyMap = /* @__PURE__ */ new Map();
|
|
1272
|
+
constructor(e) {
|
|
1273
|
+
this.callback = e;
|
|
1274
|
+
let t = [];
|
|
1275
|
+
for (let e of he.instance().models(oe)) for (let n of e.allStyleSheets()) t.push(this.processStylesheet(n));
|
|
1276
|
+
Promise.all(t).catch((e) => {
|
|
1277
|
+
console.error(e);
|
|
1278
|
+
}).then(this.finish.bind(this));
|
|
1279
|
+
}
|
|
1280
|
+
frequencyComparator(e, t) {
|
|
1281
|
+
return this.frequencyMap.get(t) - this.frequencyMap.get(e);
|
|
1282
|
+
}
|
|
1283
|
+
finish() {
|
|
1284
|
+
function e(e, t) {
|
|
1285
|
+
let r = n.get(e).as(u.HSL).hsva(), i = n.get(t).as(u.HSL).hsva();
|
|
1286
|
+
return i[1] < .12 && r[1] < .12 ? i[2] * i[3] - r[2] * r[3] : i[1] < .12 ? -1 : r[1] < .12 ? 1 : i[0] === r[0] ? i[1] * i[3] - r[1] * r[3] : (i[0] + .94) % 1 - (r[0] + .94) % 1;
|
|
1287
|
+
}
|
|
1288
|
+
let t = [...this.frequencyMap.keys()];
|
|
1289
|
+
t = t.sort(this.frequencyComparator.bind(this));
|
|
1290
|
+
let n = /* @__PURE__ */ new Map();
|
|
1291
|
+
for (; n.size < 24 && t.length;) {
|
|
1292
|
+
let e = t.shift(), r = D(e);
|
|
1293
|
+
r && n.set(e, r);
|
|
1294
|
+
}
|
|
1295
|
+
this.callback({
|
|
1296
|
+
title: ht,
|
|
1297
|
+
colors: [...n.keys()].sort(e),
|
|
1298
|
+
colorNames: [],
|
|
1299
|
+
mutable: !1
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
async processStylesheet(e) {
|
|
1303
|
+
let t = await e.requestContentData(), n = Be.textOr(t, "").toLowerCase(), r = n.matchAll(/((?:rgb|hsl|hwb)a?\([^)]+\)|#[0-9a-f]{6}|#[0-9a-f]{3})/g);
|
|
1304
|
+
for (let { 0: e, index: t } of r) {
|
|
1305
|
+
if (n.indexOf(";", t) < 0 || n.indexOf(":", t) > -1 && n.indexOf(":", t) < n.indexOf(";", t)) continue;
|
|
1306
|
+
let r = 1 + (this.frequencyMap.get(e) ?? 0);
|
|
1307
|
+
this.frequencyMap.set(e, r);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
}, _t = new Map([
|
|
1311
|
+
["#F44336", [
|
|
1312
|
+
"#FFEBEE",
|
|
1313
|
+
"#FFCDD2",
|
|
1314
|
+
"#EF9A9A",
|
|
1315
|
+
"#E57373",
|
|
1316
|
+
"#EF5350",
|
|
1317
|
+
"#F44336",
|
|
1318
|
+
"#E53935",
|
|
1319
|
+
"#D32F2F",
|
|
1320
|
+
"#C62828",
|
|
1321
|
+
"#B71C1C"
|
|
1322
|
+
]],
|
|
1323
|
+
["#E91E63", [
|
|
1324
|
+
"#FCE4EC",
|
|
1325
|
+
"#F8BBD0",
|
|
1326
|
+
"#F48FB1",
|
|
1327
|
+
"#F06292",
|
|
1328
|
+
"#EC407A",
|
|
1329
|
+
"#E91E63",
|
|
1330
|
+
"#D81B60",
|
|
1331
|
+
"#C2185B",
|
|
1332
|
+
"#AD1457",
|
|
1333
|
+
"#880E4F"
|
|
1334
|
+
]],
|
|
1335
|
+
["#9C27B0", [
|
|
1336
|
+
"#F3E5F5",
|
|
1337
|
+
"#E1BEE7",
|
|
1338
|
+
"#CE93D8",
|
|
1339
|
+
"#BA68C8",
|
|
1340
|
+
"#AB47BC",
|
|
1341
|
+
"#9C27B0",
|
|
1342
|
+
"#8E24AA",
|
|
1343
|
+
"#7B1FA2",
|
|
1344
|
+
"#6A1B9A",
|
|
1345
|
+
"#4A148C"
|
|
1346
|
+
]],
|
|
1347
|
+
["#673AB7", [
|
|
1348
|
+
"#EDE7F6",
|
|
1349
|
+
"#D1C4E9",
|
|
1350
|
+
"#B39DDB",
|
|
1351
|
+
"#9575CD",
|
|
1352
|
+
"#7E57C2",
|
|
1353
|
+
"#673AB7",
|
|
1354
|
+
"#5E35B1",
|
|
1355
|
+
"#512DA8",
|
|
1356
|
+
"#4527A0",
|
|
1357
|
+
"#311B92"
|
|
1358
|
+
]],
|
|
1359
|
+
["#3F51B5", [
|
|
1360
|
+
"#E8EAF6",
|
|
1361
|
+
"#C5CAE9",
|
|
1362
|
+
"#9FA8DA",
|
|
1363
|
+
"#7986CB",
|
|
1364
|
+
"#5C6BC0",
|
|
1365
|
+
"#3F51B5",
|
|
1366
|
+
"#3949AB",
|
|
1367
|
+
"#303F9F",
|
|
1368
|
+
"#283593",
|
|
1369
|
+
"#1A237E"
|
|
1370
|
+
]],
|
|
1371
|
+
["#2196F3", [
|
|
1372
|
+
"#E3F2FD",
|
|
1373
|
+
"#BBDEFB",
|
|
1374
|
+
"#90CAF9",
|
|
1375
|
+
"#64B5F6",
|
|
1376
|
+
"#42A5F5",
|
|
1377
|
+
"#2196F3",
|
|
1378
|
+
"#1E88E5",
|
|
1379
|
+
"#1976D2",
|
|
1380
|
+
"#1565C0",
|
|
1381
|
+
"#0D47A1"
|
|
1382
|
+
]],
|
|
1383
|
+
["#03A9F4", [
|
|
1384
|
+
"#E1F5FE",
|
|
1385
|
+
"#B3E5FC",
|
|
1386
|
+
"#81D4FA",
|
|
1387
|
+
"#4FC3F7",
|
|
1388
|
+
"#29B6F6",
|
|
1389
|
+
"#03A9F4",
|
|
1390
|
+
"#039BE5",
|
|
1391
|
+
"#0288D1",
|
|
1392
|
+
"#0277BD",
|
|
1393
|
+
"#01579B"
|
|
1394
|
+
]],
|
|
1395
|
+
["#00BCD4", [
|
|
1396
|
+
"#E0F7FA",
|
|
1397
|
+
"#B2EBF2",
|
|
1398
|
+
"#80DEEA",
|
|
1399
|
+
"#4DD0E1",
|
|
1400
|
+
"#26C6DA",
|
|
1401
|
+
"#00BCD4",
|
|
1402
|
+
"#00ACC1",
|
|
1403
|
+
"#0097A7",
|
|
1404
|
+
"#00838F",
|
|
1405
|
+
"#006064"
|
|
1406
|
+
]],
|
|
1407
|
+
["#009688", [
|
|
1408
|
+
"#E0F2F1",
|
|
1409
|
+
"#B2DFDB",
|
|
1410
|
+
"#80CBC4",
|
|
1411
|
+
"#4DB6AC",
|
|
1412
|
+
"#26A69A",
|
|
1413
|
+
"#009688",
|
|
1414
|
+
"#00897B",
|
|
1415
|
+
"#00796B",
|
|
1416
|
+
"#00695C",
|
|
1417
|
+
"#004D40"
|
|
1418
|
+
]],
|
|
1419
|
+
["#4CAF50", [
|
|
1420
|
+
"#E8F5E9",
|
|
1421
|
+
"#C8E6C9",
|
|
1422
|
+
"#A5D6A7",
|
|
1423
|
+
"#81C784",
|
|
1424
|
+
"#66BB6A",
|
|
1425
|
+
"#4CAF50",
|
|
1426
|
+
"#43A047",
|
|
1427
|
+
"#388E3C",
|
|
1428
|
+
"#2E7D32",
|
|
1429
|
+
"#1B5E20"
|
|
1430
|
+
]],
|
|
1431
|
+
["#8BC34A", [
|
|
1432
|
+
"#F1F8E9",
|
|
1433
|
+
"#DCEDC8",
|
|
1434
|
+
"#C5E1A5",
|
|
1435
|
+
"#AED581",
|
|
1436
|
+
"#9CCC65",
|
|
1437
|
+
"#8BC34A",
|
|
1438
|
+
"#7CB342",
|
|
1439
|
+
"#689F38",
|
|
1440
|
+
"#558B2F",
|
|
1441
|
+
"#33691E"
|
|
1442
|
+
]],
|
|
1443
|
+
["#CDDC39", [
|
|
1444
|
+
"#F9FBE7",
|
|
1445
|
+
"#F0F4C3",
|
|
1446
|
+
"#E6EE9C",
|
|
1447
|
+
"#DCE775",
|
|
1448
|
+
"#D4E157",
|
|
1449
|
+
"#CDDC39",
|
|
1450
|
+
"#C0CA33",
|
|
1451
|
+
"#AFB42B",
|
|
1452
|
+
"#9E9D24",
|
|
1453
|
+
"#827717"
|
|
1454
|
+
]],
|
|
1455
|
+
["#FFEB3B", [
|
|
1456
|
+
"#FFFDE7",
|
|
1457
|
+
"#FFF9C4",
|
|
1458
|
+
"#FFF59D",
|
|
1459
|
+
"#FFF176",
|
|
1460
|
+
"#FFEE58",
|
|
1461
|
+
"#FFEB3B",
|
|
1462
|
+
"#FDD835",
|
|
1463
|
+
"#FBC02D",
|
|
1464
|
+
"#F9A825",
|
|
1465
|
+
"#F57F17"
|
|
1466
|
+
]],
|
|
1467
|
+
["#FFC107", [
|
|
1468
|
+
"#FFF8E1",
|
|
1469
|
+
"#FFECB3",
|
|
1470
|
+
"#FFE082",
|
|
1471
|
+
"#FFD54F",
|
|
1472
|
+
"#FFCA28",
|
|
1473
|
+
"#FFC107",
|
|
1474
|
+
"#FFB300",
|
|
1475
|
+
"#FFA000",
|
|
1476
|
+
"#FF8F00",
|
|
1477
|
+
"#FF6F00"
|
|
1478
|
+
]],
|
|
1479
|
+
["#FF9800", [
|
|
1480
|
+
"#FFF3E0",
|
|
1481
|
+
"#FFE0B2",
|
|
1482
|
+
"#FFCC80",
|
|
1483
|
+
"#FFB74D",
|
|
1484
|
+
"#FFA726",
|
|
1485
|
+
"#FF9800",
|
|
1486
|
+
"#FB8C00",
|
|
1487
|
+
"#F57C00",
|
|
1488
|
+
"#EF6C00",
|
|
1489
|
+
"#E65100"
|
|
1490
|
+
]],
|
|
1491
|
+
["#FF5722", [
|
|
1492
|
+
"#FBE9E7",
|
|
1493
|
+
"#FFCCBC",
|
|
1494
|
+
"#FFAB91",
|
|
1495
|
+
"#FF8A65",
|
|
1496
|
+
"#FF7043",
|
|
1497
|
+
"#FF5722",
|
|
1498
|
+
"#F4511E",
|
|
1499
|
+
"#E64A19",
|
|
1500
|
+
"#D84315",
|
|
1501
|
+
"#BF360C"
|
|
1502
|
+
]],
|
|
1503
|
+
["#795548", [
|
|
1504
|
+
"#EFEBE9",
|
|
1505
|
+
"#D7CCC8",
|
|
1506
|
+
"#BCAAA4",
|
|
1507
|
+
"#A1887F",
|
|
1508
|
+
"#8D6E63",
|
|
1509
|
+
"#795548",
|
|
1510
|
+
"#6D4C41",
|
|
1511
|
+
"#5D4037",
|
|
1512
|
+
"#4E342E",
|
|
1513
|
+
"#3E2723"
|
|
1514
|
+
]],
|
|
1515
|
+
["#9E9E9E", [
|
|
1516
|
+
"#FAFAFA",
|
|
1517
|
+
"#F5F5F5",
|
|
1518
|
+
"#EEEEEE",
|
|
1519
|
+
"#E0E0E0",
|
|
1520
|
+
"#BDBDBD",
|
|
1521
|
+
"#9E9E9E",
|
|
1522
|
+
"#757575",
|
|
1523
|
+
"#616161",
|
|
1524
|
+
"#424242",
|
|
1525
|
+
"#212121"
|
|
1526
|
+
]],
|
|
1527
|
+
["#607D8B", [
|
|
1528
|
+
"#ECEFF1",
|
|
1529
|
+
"#CFD8DC",
|
|
1530
|
+
"#B0BEC5",
|
|
1531
|
+
"#90A4AE",
|
|
1532
|
+
"#78909C",
|
|
1533
|
+
"#607D8B",
|
|
1534
|
+
"#546E7A",
|
|
1535
|
+
"#455A64",
|
|
1536
|
+
"#37474F",
|
|
1537
|
+
"#263238"
|
|
1538
|
+
]]
|
|
1539
|
+
]), $ = {
|
|
1540
|
+
title: "Material",
|
|
1541
|
+
mutable: !1,
|
|
1542
|
+
matchUserFormat: !0,
|
|
1543
|
+
colors: [..._t.keys()],
|
|
1544
|
+
colorNames: []
|
|
1545
|
+
}, vt = class {
|
|
1546
|
+
colorString;
|
|
1547
|
+
swatchInnerElement;
|
|
1548
|
+
swatchOverlayElement;
|
|
1549
|
+
swatchCopyIcon;
|
|
1550
|
+
constructor(e) {
|
|
1551
|
+
let t = e.createChild("span", "swatch");
|
|
1552
|
+
t.setAttribute("jslog", `${Oe("copy-color").track({ click: !0 })}`), this.swatchInnerElement = t.createChild("span", "swatch-inner"), this.swatchOverlayElement = t.createChild("span", "swatch-overlay"), z(this.swatchOverlayElement), A(this.swatchOverlayElement, !1), this.swatchOverlayElement.tabIndex = 0, self.onInvokeElement(this.swatchOverlayElement, this.onCopyText.bind(this)), this.swatchOverlayElement.addEventListener("mouseout", this.onCopyIconMouseout.bind(this)), this.swatchOverlayElement.addEventListener("blur", this.onCopyIconMouseout.bind(this)), this.swatchCopyIcon = N("copy", "copy-color-icon"), P.install(this.swatchCopyIcon, q(K.copyColorToClipboard)), this.swatchOverlayElement.appendChild(this.swatchCopyIcon), j(this.swatchOverlayElement, this.swatchCopyIcon.title);
|
|
1553
|
+
}
|
|
1554
|
+
setColor(e, t) {
|
|
1555
|
+
let n = e.as(u.LCH);
|
|
1556
|
+
this.swatchInnerElement.style.backgroundColor = n.asString(), this.swatchInnerElement.classList.toggle("swatch-inner-white", n.l > 90), this.colorString = t || null, t ? this.swatchOverlayElement.hidden = !1 : this.swatchOverlayElement.hidden = !0;
|
|
1557
|
+
}
|
|
1558
|
+
onCopyText(e) {
|
|
1559
|
+
this.swatchCopyIcon.name = "checkmark", F.copyText(this.colorString), A(this.swatchOverlayElement, !0), e.consume();
|
|
1560
|
+
}
|
|
1561
|
+
onCopyIconMouseout() {
|
|
1562
|
+
this.swatchCopyIcon.name = "copy", A(this.swatchOverlayElement, !1);
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
//#endregion
|
|
1566
|
+
export { He as i, pt as n, $e as r, mt as t };
|