@browserless.io/browserless 2.2.0-beta-8 → 2.3.0-beta-1
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/CHANGELOG.md +21 -2
- package/bin/browserless.js +26 -15
- package/bin/scaffold/README.md +8 -7
- package/build/browserless.d.ts +6 -1
- package/build/browserless.js +45 -26
- package/build/browsers/chrome.cdp.d.ts +6 -0
- package/build/browsers/chrome.cdp.js +6 -0
- package/build/browsers/chrome.playwright.d.ts +6 -0
- package/build/browsers/chrome.playwright.js +6 -0
- package/build/browsers/{cdp-chromium.d.ts → chromium.cdp.d.ts} +3 -2
- package/build/browsers/{cdp-chromium.js → chromium.cdp.js} +16 -10
- package/build/browsers/{playwright-chromium.d.ts → chromium.playwright.d.ts} +3 -2
- package/build/browsers/{playwright-chromium.js → chromium.playwright.js} +6 -5
- package/build/browsers/{playwright-firefox.d.ts → firefox.playwright.d.ts} +2 -2
- package/build/browsers/{playwright-firefox.js → firefox.playwright.js} +4 -4
- package/build/browsers/index.d.ts +20 -10
- package/build/browsers/index.js +110 -11
- package/build/browsers/{playwright-webkit.d.ts → webkit.playwright.d.ts} +2 -2
- package/build/browsers/{playwright-webkit.js → webkit.playwright.js} +4 -4
- package/build/data/selectors.json +1 -1
- package/build/exports.core.d.ts +24 -0
- package/build/exports.core.js +26 -0
- package/build/exports.d.ts +38 -22
- package/build/exports.js +44 -24
- package/build/hooks.d.ts +4 -5
- package/build/hooks.js +4 -6
- package/build/http.d.ts +22 -1
- package/build/http.js +21 -0
- package/build/router.js +19 -3
- package/build/routes/{chromium/http/content-post.body.json → chrome/http/content.post.body.json} +8 -8
- package/build/routes/chrome/http/content.post.d.ts +7 -0
- package/build/routes/chrome/http/content.post.js +6 -0
- package/build/routes/{chromium/http/scrape-post.body.json → chrome/http/download.post.body.json} +9 -56
- package/build/routes/chrome/http/download.post.d.ts +7 -0
- package/build/routes/chrome/http/download.post.js +6 -0
- package/build/routes/{chromium/http/download-post.response.json → chrome/http/download.post.response.json} +1 -0
- package/build/routes/{chromium/http/screenshot-post.body.json → chrome/http/function.post.body.json} +9 -99
- package/build/routes/chrome/http/function.post.d.ts +7 -0
- package/build/routes/chrome/http/function.post.js +6 -0
- package/build/routes/{management/http/sessions-get.response.json → chrome/http/function.post.query.json} +26 -68
- package/build/routes/{chromium/http/function-post.response.json → chrome/http/function.post.response.json} +1 -0
- package/build/routes/chrome/http/json-list.get.d.ts +1 -0
- package/build/routes/chrome/http/json-list.get.js +1 -0
- package/build/routes/chrome/http/json-list.get.response.json +4 -0
- package/build/routes/chrome/http/json-new.put.d.ts +1 -0
- package/build/routes/chrome/http/json-new.put.js +1 -0
- package/build/routes/chrome/http/json-new.put.response.json +4 -0
- package/build/routes/chrome/http/json-protocol.get.d.ts +1 -0
- package/build/routes/chrome/http/json-protocol.get.js +1 -0
- package/build/routes/chrome/http/json-protocol.get.response.json +4 -0
- package/build/routes/chrome/http/json-version.get.d.ts +1 -0
- package/build/routes/chrome/http/json-version.get.js +1 -0
- package/build/routes/chrome/http/json-version.get.response.json +4 -0
- package/build/routes/{chromium/http/pdf-post.body.json → chrome/http/pdf.post.body.json} +9 -153
- package/build/routes/chrome/http/pdf.post.d.ts +7 -0
- package/build/routes/chrome/http/pdf.post.js +6 -0
- package/build/routes/{chromium/http/download-post.query.json → chrome/http/pdf.post.query.json} +69 -6
- package/build/routes/chrome/http/performance.post.body.json +510 -0
- package/build/routes/chrome/http/performance.post.d.ts +7 -0
- package/build/routes/chrome/http/performance.post.js +6 -0
- package/build/routes/chrome/http/performance.post.query.json +183 -0
- package/build/routes/{chromium/http/performance.response.json → chrome/http/performance.post.response.json} +1 -3
- package/build/routes/chrome/http/scrape.post.body.json +510 -0
- package/build/routes/chrome/http/scrape.post.d.ts +7 -0
- package/build/routes/chrome/http/scrape.post.js +6 -0
- package/build/routes/chrome/http/scrape.post.query.json +183 -0
- package/build/routes/chrome/http/scrape.post.response.json +5 -0
- package/build/routes/chrome/http/screenshot.post.body.json +510 -0
- package/build/routes/chrome/http/screenshot.post.d.ts +7 -0
- package/build/routes/chrome/http/screenshot.post.js +6 -0
- package/build/routes/chrome/http/screenshot.post.query.json +183 -0
- package/build/routes/chrome/tests/content.spec.js +311 -0
- package/build/routes/chrome/tests/download.spec.js +67 -0
- package/build/routes/chrome/tests/function.spec.d.ts +1 -0
- package/build/routes/chrome/tests/function.spec.js +245 -0
- package/build/routes/chrome/tests/json-version.spec.d.ts +1 -0
- package/build/routes/chrome/tests/json-version.spec.js +37 -0
- package/build/routes/chrome/tests/page-websocket.spec.d.ts +1 -0
- package/build/routes/chrome/tests/page-websocket.spec.js +97 -0
- package/build/routes/chrome/tests/pdf.spec.d.ts +1 -0
- package/build/routes/chrome/tests/pdf.spec.js +333 -0
- package/build/routes/chrome/tests/performance.spec.d.ts +1 -0
- package/build/routes/chrome/tests/performance.spec.js +124 -0
- package/build/routes/chrome/tests/scrape.spec.d.ts +1 -0
- package/build/routes/chrome/tests/scrape.spec.js +354 -0
- package/build/routes/chrome/tests/screenshot.spec.d.ts +1 -0
- package/build/routes/chrome/tests/screenshot.spec.js +339 -0
- package/build/routes/chrome/tests/websocket.spec.d.ts +1 -0
- package/build/routes/chrome/tests/websocket.spec.js +371 -0
- package/build/routes/chrome/ws/browser.d.ts +6 -0
- package/build/routes/chrome/ws/browser.js +5 -0
- package/build/routes/chrome/ws/browser.query.json +183 -0
- package/build/routes/chrome/ws/cdp.d.ts +7 -0
- package/build/routes/chrome/ws/cdp.js +6 -0
- package/build/routes/chrome/ws/cdp.query.json +183 -0
- package/build/routes/chrome/ws/page.d.ts +6 -0
- package/build/routes/chrome/ws/page.js +5 -0
- package/build/routes/chrome/ws/page.query.json +183 -0
- package/build/routes/chrome/ws/playwright.d.ts +7 -0
- package/build/routes/chrome/ws/playwright.js +6 -0
- package/build/routes/chrome/ws/playwright.query.json +183 -0
- package/build/routes/chromium/http/content.post.body.json +510 -0
- package/build/routes/chromium/http/content.post.d.ts +1 -0
- package/build/routes/chromium/http/content.post.js +1 -0
- package/build/routes/chromium/http/content.post.query.json +183 -0
- package/build/routes/chromium/http/content.post.response.json +5 -0
- package/build/routes/chromium/http/download.post.body.json +510 -0
- package/build/routes/chromium/http/download.post.d.ts +1 -0
- package/build/routes/chromium/http/download.post.js +1 -0
- package/build/routes/chromium/http/download.post.query.json +183 -0
- package/build/routes/chromium/http/download.post.response.json +5 -0
- package/build/routes/chromium/http/function.post.body.json +510 -0
- package/build/routes/chromium/http/function.post.d.ts +1 -0
- package/build/routes/chromium/http/function.post.js +1 -0
- package/build/routes/chromium/http/function.post.query.json +183 -0
- package/build/routes/chromium/http/function.post.response.json +5 -0
- package/build/routes/chromium/http/json-list.get.d.ts +1 -0
- package/build/routes/chromium/http/json-list.get.js +1 -0
- package/build/routes/chromium/http/json-list.get.response.json +4 -0
- package/build/routes/chromium/http/json-new.put.d.ts +1 -0
- package/build/routes/chromium/http/json-new.put.js +1 -0
- package/build/routes/chromium/http/json-new.put.response.json +4 -0
- package/build/routes/chromium/http/json-protocol.get.d.ts +1 -0
- package/build/routes/chromium/http/json-protocol.get.js +1 -0
- package/build/routes/chromium/http/json-protocol.get.response.json +4 -0
- package/build/routes/chromium/http/json-version.get.d.ts +1 -0
- package/build/routes/chromium/http/json-version.get.js +1 -0
- package/build/routes/chromium/http/json-version.get.response.json +4 -0
- package/build/routes/chromium/http/pdf.post.body.json +510 -0
- package/build/routes/chromium/http/pdf.post.d.ts +1 -0
- package/build/routes/chromium/http/pdf.post.js +1 -0
- package/build/routes/chromium/http/pdf.post.query.json +183 -0
- package/build/routes/chromium/http/pdf.post.response.json +5 -0
- package/build/routes/chromium/http/performance.post.body.json +510 -0
- package/build/routes/chromium/http/performance.post.d.ts +1 -0
- package/build/routes/chromium/http/performance.post.js +1 -0
- package/build/routes/chromium/http/performance.post.query.json +183 -0
- package/build/routes/chromium/http/performance.post.response.json +5 -0
- package/build/routes/chromium/http/scrape.post.body.json +510 -0
- package/build/routes/chromium/http/scrape.post.d.ts +1 -0
- package/build/routes/chromium/http/scrape.post.js +1 -0
- package/build/routes/chromium/http/scrape.post.query.json +183 -0
- package/build/routes/chromium/http/scrape.post.response.json +5 -0
- package/build/routes/chromium/http/screenshot.post.body.json +510 -0
- package/build/routes/chromium/http/screenshot.post.d.ts +1 -0
- package/build/routes/chromium/http/screenshot.post.js +1 -0
- package/build/routes/chromium/http/screenshot.post.query.json +183 -0
- package/build/routes/chromium/http/screenshot.post.response.json +5 -0
- package/build/routes/chromium/tests/content.spec.js +16 -16
- package/build/routes/chromium/tests/download.spec.js +3 -3
- package/build/routes/chromium/tests/function.spec.js +10 -10
- package/build/routes/chromium/tests/page-websocket.spec.d.ts +1 -0
- package/build/routes/chromium/tests/page-websocket.spec.js +97 -0
- package/build/routes/chromium/tests/pdf.spec.js +16 -16
- package/build/routes/chromium/tests/performance.spec.js +7 -7
- package/build/routes/chromium/tests/scrape.spec.js +15 -15
- package/build/routes/chromium/tests/screenshot.spec.js +17 -17
- package/build/routes/chromium/tests/websocket.spec.js +31 -37
- package/build/routes/chromium/ws/browser.d.ts +1 -16
- package/build/routes/chromium/ws/browser.js +1 -10
- package/build/routes/chromium/ws/browser.query.json +69 -6
- package/build/routes/chromium/ws/cdp.d.ts +1 -0
- package/build/routes/chromium/ws/cdp.js +1 -0
- package/build/routes/chromium/ws/cdp.query.json +183 -0
- package/build/routes/chromium/ws/page.d.ts +1 -16
- package/build/routes/chromium/ws/page.js +1 -10
- package/build/routes/chromium/ws/page.query.json +69 -6
- package/build/routes/chromium/ws/playwright.d.ts +1 -0
- package/build/routes/chromium/ws/playwright.js +1 -0
- package/build/routes/chromium/ws/playwright.query.json +183 -0
- package/build/routes/firefox/ws/playwright.d.ts +20 -0
- package/build/routes/firefox/ws/{playwright-firefox.js → playwright.js} +4 -4
- package/build/routes/firefox/ws/playwright.query.json +183 -0
- package/build/routes/management/http/config.get.response.json +4 -0
- package/build/routes/management/http/metrics-total.get.response.json +4 -0
- package/build/routes/management/http/metrics.get.response.json +4 -0
- package/build/routes/management/http/sessions.get.response.json +4 -0
- package/build/routes/management/http/{static-get.js → static.get.js} +9 -9
- package/build/routes/webkit/ws/{playwright-webkit.d.ts → playwright.d.ts} +5 -5
- package/build/routes/webkit/ws/{playwright-webkit.js → playwright.js} +4 -4
- package/build/routes/webkit/ws/playwright.query.json +183 -0
- package/build/{routes/chromium/ws/cdp-chromium.d.ts → shared/browser.ws.d.ts} +4 -4
- package/build/shared/browser.ws.js +12 -0
- package/build/{routes/chromium/ws/playwright-chromium.d.ts → shared/chromium.playwright.ws.d.ts} +4 -4
- package/build/{routes/chromium/ws/playwright-chromium.js → shared/chromium.playwright.ws.js} +6 -3
- package/build/shared/chromium.ws.d.ts +16 -0
- package/build/shared/chromium.ws.js +10 -0
- package/build/{routes/chromium/http/content-post.d.ts → shared/content.http.d.ts} +3 -3
- package/build/{routes/chromium/http/content-post.js → shared/content.http.js} +3 -3
- package/build/{routes/chromium/http/download-post.d.ts → shared/download.http.d.ts} +3 -3
- package/build/{routes/chromium/http/download-post.js → shared/download.http.js} +4 -4
- package/build/{routes/chromium/http/function-post.d.ts → shared/function.http.d.ts} +3 -3
- package/build/{routes/chromium/http/function-post.js → shared/function.http.js} +4 -4
- package/build/{routes/chromium/http/json-new.d.ts → shared/json-list.http.d.ts} +2 -3
- package/build/{routes/chromium/http/json-list.js → shared/json-list.http.js} +5 -8
- package/build/{routes/chromium/http/json-list.d.ts → shared/json-new.http.d.ts} +2 -3
- package/build/shared/json-new.http.js +34 -0
- package/build/{routes/chromium/http/json-protocol-get.js → shared/json-protocol.http.js} +2 -2
- package/build/{routes/chromium/http/json-version-get.js → shared/json-version.http.js} +3 -3
- package/build/shared/page.ws.d.ts +16 -0
- package/build/shared/page.ws.js +13 -0
- package/build/{routes/chromium/http/pdf-post.d.ts → shared/pdf.http.d.ts} +3 -3
- package/build/{routes/chromium/http/pdf-post.js → shared/pdf.http.js} +3 -3
- package/build/{routes/chromium/http/performance.d.ts → shared/performance.http.d.ts} +3 -3
- package/build/{routes/chromium/http/performance.js → shared/performance.http.js} +4 -4
- package/build/{routes/chromium/http/scrape-post.d.ts → shared/scrape.http.d.ts} +3 -3
- package/build/{routes/chromium/http/scrape-post.js → shared/scrape.http.js} +3 -3
- package/build/{routes/chromium/http/screenshot-post.d.ts → shared/screenshot.http.d.ts} +3 -3
- package/build/{routes/chromium/http/screenshot-post.js → shared/screenshot.http.js} +3 -3
- package/build/shared/utils/performance/child.d.ts +1 -0
- package/build/{routes/chromium → shared}/utils/performance/main.js +2 -2
- package/build/shared/utils/performance/types.js +1 -0
- package/build/shim.js +2 -1
- package/build/types.d.ts +10 -8
- package/build/utils.d.ts +8 -3
- package/build/utils.js +24 -11
- package/docker/base/Dockerfile +1 -1
- package/docker/chrome/Dockerfile +6 -4
- package/docker/chromium/.dockerignore +16 -0
- package/docker/chromium/Dockerfile +42 -0
- package/docker/firefox/Dockerfile +3 -1
- package/docker/multi/Dockerfile +15 -1
- package/docker/webkit/Dockerfile +3 -1
- package/extensions/ublock/3p-filters.html +1 -1
- package/extensions/ublock/_locales/ar/messages.json +4 -0
- package/extensions/ublock/_locales/az/messages.json +4 -0
- package/extensions/ublock/_locales/be/messages.json +4 -0
- package/extensions/ublock/_locales/bg/messages.json +5 -1
- package/extensions/ublock/_locales/bn/messages.json +4 -0
- package/extensions/ublock/_locales/br_FR/messages.json +6 -2
- package/extensions/ublock/_locales/bs/messages.json +4 -0
- package/extensions/ublock/_locales/ca/messages.json +4 -0
- package/extensions/ublock/_locales/cs/messages.json +4 -0
- package/extensions/ublock/_locales/cv/messages.json +4 -0
- package/extensions/ublock/_locales/cy/messages.json +1294 -0
- package/extensions/ublock/_locales/da/messages.json +4 -0
- package/extensions/ublock/_locales/de/messages.json +5 -1
- package/extensions/ublock/_locales/el/messages.json +4 -0
- package/extensions/ublock/_locales/en/messages.json +4 -0
- package/extensions/ublock/_locales/en_GB/messages.json +4 -0
- package/extensions/ublock/_locales/eo/messages.json +9 -5
- package/extensions/ublock/_locales/es/messages.json +4 -0
- package/extensions/ublock/_locales/et/messages.json +4 -0
- package/extensions/ublock/_locales/eu/messages.json +8 -4
- package/extensions/ublock/_locales/fa/messages.json +4 -0
- package/extensions/ublock/_locales/fi/messages.json +4 -0
- package/extensions/ublock/_locales/fil/messages.json +4 -0
- package/extensions/ublock/_locales/fr/messages.json +4 -0
- package/extensions/ublock/_locales/fy/messages.json +4 -0
- package/extensions/ublock/_locales/gl/messages.json +4 -0
- package/extensions/ublock/_locales/gu/messages.json +4 -0
- package/extensions/ublock/_locales/he/messages.json +4 -0
- package/extensions/ublock/_locales/hi/messages.json +4 -0
- package/extensions/ublock/_locales/hr/messages.json +4 -0
- package/extensions/ublock/_locales/hu/messages.json +4 -0
- package/extensions/ublock/_locales/hy/messages.json +4 -0
- package/extensions/ublock/_locales/id/messages.json +5 -1
- package/extensions/ublock/_locales/it/messages.json +4 -0
- package/extensions/ublock/_locales/ja/messages.json +4 -0
- package/extensions/ublock/_locales/ka/messages.json +34 -30
- package/extensions/ublock/_locales/kk/messages.json +4 -0
- package/extensions/ublock/_locales/kn/messages.json +4 -0
- package/extensions/ublock/_locales/ko/messages.json +4 -0
- package/extensions/ublock/_locales/ku/messages.json +4 -0
- package/extensions/ublock/_locales/lt/messages.json +4 -0
- package/extensions/ublock/_locales/lv/messages.json +4 -0
- package/extensions/ublock/_locales/mk/messages.json +4 -0
- package/extensions/ublock/_locales/ml/messages.json +4 -0
- package/extensions/ublock/_locales/mr/messages.json +4 -0
- package/extensions/ublock/_locales/ms/messages.json +13 -9
- package/extensions/ublock/_locales/nb/messages.json +4 -0
- package/extensions/ublock/_locales/nl/messages.json +4 -0
- package/extensions/ublock/_locales/no/messages.json +4 -0
- package/extensions/ublock/_locales/oc/messages.json +4 -0
- package/extensions/ublock/_locales/pa/messages.json +4 -0
- package/extensions/ublock/_locales/pl/messages.json +5 -1
- package/extensions/ublock/_locales/pt_BR/messages.json +4 -0
- package/extensions/ublock/_locales/pt_PT/messages.json +4 -0
- package/extensions/ublock/_locales/ro/messages.json +5 -1
- package/extensions/ublock/_locales/ru/messages.json +4 -0
- package/extensions/ublock/_locales/si/messages.json +4 -0
- package/extensions/ublock/_locales/sk/messages.json +4 -0
- package/extensions/ublock/_locales/sl/messages.json +4 -0
- package/extensions/ublock/_locales/so/messages.json +4 -0
- package/extensions/ublock/_locales/sq/messages.json +4 -0
- package/extensions/ublock/_locales/sr/messages.json +4 -0
- package/extensions/ublock/_locales/sv/messages.json +4 -0
- package/extensions/ublock/_locales/sw/messages.json +4 -0
- package/extensions/ublock/_locales/ta/messages.json +4 -0
- package/extensions/ublock/_locales/te/messages.json +4 -0
- package/extensions/ublock/_locales/th/messages.json +12 -8
- package/extensions/ublock/_locales/tr/messages.json +4 -0
- package/extensions/ublock/_locales/uk/messages.json +4 -0
- package/extensions/ublock/_locales/ur/messages.json +4 -0
- package/extensions/ublock/_locales/vi/messages.json +4 -0
- package/extensions/ublock/_locales/zh_CN/messages.json +6 -2
- package/extensions/ublock/_locales/zh_TW/messages.json +6 -2
- package/extensions/ublock/assets/assets.json +11 -11
- package/extensions/ublock/assets/resources/scriptlets.js +660 -378
- package/extensions/ublock/assets/thirdparties/easylist/easylist.txt +7173 -3455
- package/extensions/ublock/assets/thirdparties/easylist/easyprivacy.txt +18829 -1918
- package/extensions/ublock/assets/thirdparties/pgl.yoyo.org/as/serverlist +21 -26
- package/extensions/ublock/assets/thirdparties/publicsuffix.org/list/effective_tld_names.dat +118 -46
- package/extensions/ublock/assets/thirdparties/urlhaus-filter/urlhaus-filter-online.txt +710 -1117
- package/extensions/ublock/assets/ublock/badlists.txt +0 -4
- package/extensions/ublock/assets/ublock/badware.min.txt +116 -105
- package/extensions/ublock/assets/ublock/filters.min.txt +1443 -1097
- package/extensions/ublock/assets/ublock/privacy.min.txt +50 -31
- package/extensions/ublock/assets/ublock/quick-fixes.min.txt +97 -108
- package/extensions/ublock/assets/ublock/unbreak.min.txt +64 -21
- package/extensions/ublock/css/1p-filters.css +4 -0
- package/extensions/ublock/css/3p-filters.css +6 -4
- package/extensions/ublock/css/common.css +1 -1
- package/extensions/ublock/css/fa-icons.css +1 -0
- package/extensions/ublock/css/logger-ui.css +72 -52
- package/extensions/ublock/css/popup-fenix.css +1 -1
- package/extensions/ublock/img/fontawesome/fontawesome-defs.svg +1 -0
- package/extensions/ublock/js/3p-filters.js +3 -3
- package/extensions/ublock/js/assets.js +7 -4
- package/extensions/ublock/js/background.js +1 -3
- package/extensions/ublock/js/benchmarks.js +1 -0
- package/extensions/ublock/js/broadcast.js +12 -0
- package/extensions/ublock/js/click2load.js +2 -3
- package/extensions/ublock/js/codemirror/ubo-static-filtering.js +1 -0
- package/extensions/ublock/js/commands.js +10 -0
- package/extensions/ublock/js/contentscript-extra.js +13 -11
- package/extensions/ublock/js/contentscript.js +0 -31
- package/extensions/ublock/js/contextmenu.js +5 -1
- package/extensions/ublock/js/dyna-rules.js +83 -52
- package/extensions/ublock/js/fa-icons.js +1 -0
- package/extensions/ublock/js/filtering-context.js +0 -2
- package/extensions/ublock/js/i18n.js +1 -5
- package/extensions/ublock/js/logger-ui.js +71 -38
- package/extensions/ublock/js/logger.js +18 -14
- package/extensions/ublock/js/messaging.js +17 -5
- package/extensions/ublock/js/popup-fenix.js +6 -6
- package/extensions/ublock/js/scriptlet-filtering-core.js +14 -12
- package/extensions/ublock/js/scriptlet-filtering.js +149 -53
- package/extensions/ublock/js/scriptlets/scriptlet-loglevel-1.js +49 -0
- package/extensions/ublock/js/scriptlets/scriptlet-loglevel-2.js +49 -0
- package/extensions/ublock/js/scriptlets/should-inject-contentscript.js +1 -1
- package/extensions/ublock/js/static-dnr-filtering.js +4 -2
- package/extensions/ublock/js/static-filtering-parser.js +14 -8
- package/extensions/ublock/js/static-net-filtering.js +32 -30
- package/extensions/ublock/js/storage.js +18 -4
- package/extensions/ublock/js/traffic.js +3 -3
- package/extensions/ublock/js/ublock.js +1 -1
- package/extensions/ublock/js/vapi-background.js +15 -7
- package/extensions/ublock/logger-ui.html +18 -10
- package/extensions/ublock/manifest.json +4 -1
- package/extensions/ublock/web_accessible_resources/chartbeat.js +3 -0
- package/package.json +12 -12
- package/scripts/build-function.js +1 -1
- package/scripts/build-open-api.js +21 -11
- package/scripts/build-schemas.js +2 -3
- package/scripts/clean.js +6 -1
- package/scripts/install-debugger.js +20 -0
- package/scripts/install-devtools.js +40 -0
- package/src/browserless.ts +72 -45
- package/src/browsers/chrome.cdp.ts +10 -0
- package/src/browsers/chrome.playwright.ts +10 -0
- package/src/browsers/{cdp-chromium.ts → chromium.cdp.ts} +20 -13
- package/src/browsers/{playwright-chromium.ts → chromium.playwright.ts} +7 -6
- package/src/browsers/{playwright-firefox.ts → firefox.playwright.ts} +5 -5
- package/src/browsers/index.ts +160 -23
- package/src/browsers/{playwright-webkit.ts → webkit.playwright.ts} +5 -5
- package/src/exports.core.ts +26 -0
- package/src/exports.ts +48 -24
- package/src/hooks.ts +4 -12
- package/src/http.ts +21 -0
- package/src/router.ts +25 -5
- package/src/routes/chrome/http/content.post.ts +14 -0
- package/src/routes/chrome/http/download.post.ts +14 -0
- package/src/routes/chrome/http/function.post.ts +14 -0
- package/src/routes/chrome/http/json-list.get.ts +1 -0
- package/src/routes/chrome/http/json-new.put.ts +1 -0
- package/src/routes/chrome/http/json-protocol.get.ts +1 -0
- package/src/routes/chrome/http/json-version.get.ts +1 -0
- package/src/routes/chrome/http/pdf.post.ts +14 -0
- package/src/routes/chrome/http/performance.post.ts +14 -0
- package/src/routes/chrome/http/scrape.post.ts +14 -0
- package/src/routes/chrome/http/screenshot.post.ts +14 -0
- package/src/routes/chrome/tests/content.spec.ts +375 -0
- package/src/routes/chrome/tests/download.spec.ts +77 -0
- package/src/routes/chrome/tests/function.spec.ts +282 -0
- package/src/routes/chrome/tests/json-version.spec.ts +52 -0
- package/src/routes/chrome/tests/page-websocket.spec.ts +129 -0
- package/src/routes/chrome/tests/pdf.spec.ts +380 -0
- package/src/routes/chrome/tests/performance.spec.ts +155 -0
- package/src/routes/chrome/tests/scrape.spec.ts +417 -0
- package/src/routes/chrome/tests/screenshot.spec.ts +387 -0
- package/src/routes/chrome/tests/websocket.spec.ts +491 -0
- package/src/routes/chrome/ws/browser.ts +8 -0
- package/src/routes/chrome/ws/cdp.ts +12 -0
- package/src/routes/chrome/ws/page.ts +8 -0
- package/src/routes/chrome/ws/playwright.ts +12 -0
- package/src/routes/chromium/http/content.post.ts +6 -0
- package/src/routes/chromium/http/download.post.ts +6 -0
- package/src/routes/chromium/http/function.post.ts +6 -0
- package/src/routes/chromium/http/json-list.get.ts +1 -0
- package/src/routes/chromium/http/json-new.put.ts +1 -0
- package/src/routes/chromium/http/json-protocol.get.ts +1 -0
- package/src/routes/chromium/http/json-version.get.ts +1 -0
- package/src/routes/chromium/http/pdf.post.ts +6 -0
- package/src/routes/chromium/http/performance.post.ts +6 -0
- package/src/routes/chromium/http/scrape.post.ts +6 -0
- package/src/routes/chromium/http/screenshot.post.ts +6 -0
- package/src/routes/chromium/tests/content.spec.ts +36 -28
- package/src/routes/chromium/tests/download.spec.ts +3 -3
- package/src/routes/chromium/tests/function.spec.ts +18 -15
- package/src/routes/chromium/tests/page-websocket.spec.ts +129 -0
- package/src/routes/chromium/tests/pdf.spec.ts +31 -26
- package/src/routes/chromium/tests/performance.spec.ts +46 -34
- package/src/routes/chromium/tests/scrape.spec.ts +23 -20
- package/src/routes/chromium/tests/screenshot.spec.ts +24 -24
- package/src/routes/chromium/tests/websocket.spec.ts +31 -40
- package/src/routes/chromium/ws/browser.ts +1 -29
- package/src/routes/chromium/ws/cdp.ts +1 -0
- package/src/routes/chromium/ws/page.ts +1 -29
- package/src/routes/chromium/ws/playwright.ts +4 -0
- package/src/routes/firefox/ws/{playwright-firefox.ts → playwright.ts} +8 -6
- package/src/routes/management/http/{static-get.ts → static.get.ts} +15 -10
- package/src/routes/webkit/ws/{playwright-webkit.ts → playwright.ts} +5 -5
- package/src/shared/browser.ws.ts +34 -0
- package/src/{routes/chromium/ws/playwright-chromium.ts → shared/chromium.playwright.ws.ts} +7 -4
- package/src/{routes/chromium/ws/cdp-chromium.ts → shared/chromium.ws.ts} +6 -6
- package/src/{routes/chromium/http/content-post.ts → shared/content.http.ts} +4 -4
- package/src/{routes/chromium/http/download-post.ts → shared/download.http.ts} +4 -4
- package/src/{routes/chromium/http/function-post.ts → shared/function.http.ts} +4 -4
- package/src/shared/json-list.http.ts +35 -0
- package/src/{routes/chromium/http/json-new.ts → shared/json-new.http.ts} +23 -7
- package/src/{routes/chromium/http/json-protocol-get.ts → shared/json-protocol.http.ts} +3 -5
- package/src/{routes/chromium/http/json-version-get.ts → shared/json-version.http.ts} +4 -5
- package/src/shared/page.ws.ts +35 -0
- package/src/{routes/chromium/http/pdf-post.ts → shared/pdf.http.ts} +4 -4
- package/src/{routes/chromium/http/performance.ts → shared/performance.http.ts} +4 -4
- package/src/{routes/chromium/http/scrape-post.ts → shared/scrape.http.ts} +4 -4
- package/src/{routes/chromium/http/screenshot-post.ts → shared/screenshot.http.ts} +4 -4
- package/src/{routes/chromium → shared}/utils/function/handler.ts +2 -2
- package/src/{routes/chromium → shared}/utils/performance/main.ts +2 -4
- package/src/shim.ts +2 -1
- package/src/types.ts +27 -20
- package/src/utils.ts +32 -14
- package/static/devtools/Images/accelerometer-back.svg +1 -0
- package/static/devtools/Images/accelerometer-bottom.png +0 -0
- package/static/devtools/Images/accelerometer-front.svg +1 -0
- package/static/devtools/Images/accelerometer-left.png +0 -0
- package/static/devtools/Images/accelerometer-right.png +0 -0
- package/static/devtools/Images/accelerometer-top.png +0 -0
- package/static/devtools/Images/baseline-icon.svg +1 -0
- package/static/devtools/Images/breaking_change_icon.svg +1 -0
- package/static/devtools/Images/checkboxCheckmark.svg +1 -0
- package/static/devtools/Images/checker.png +0 -0
- package/static/devtools/Images/chevrons.svg +1 -0
- package/static/devtools/Images/chromeDisabledSelect.png +0 -0
- package/static/devtools/Images/chromeDisabledSelect_2x.png +0 -0
- package/static/devtools/Images/chromeLeft.avif +0 -0
- package/static/devtools/Images/chromeMiddle.avif +0 -0
- package/static/devtools/Images/chromeRight.avif +0 -0
- package/static/devtools/Images/chromeSelect.svg +1 -0
- package/static/devtools/Images/chromeSelectDark.svg +1 -0
- package/static/devtools/Images/cssoverview_icons_2x.avif +0 -0
- package/static/devtools/Images/dropdown_7x6_icon.svg +1 -0
- package/static/devtools/Images/elements_panel_icon.svg +1 -0
- package/static/devtools/Images/errorWave.svg +1 -0
- package/static/devtools/Images/error_icon.svg +1 -0
- package/static/devtools/Images/feedback_thin_16x16_icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-around-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-between-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-evenly-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-direction-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-center-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-around-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-between-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-evenly-icon.svg +1 -0
- package/static/devtools/Images/ic_checkmark_16x16.svg +3 -0
- package/static/devtools/Images/ic_delete_filter.svg +1 -0
- package/static/devtools/Images/ic_delete_list.svg +1 -0
- package/static/devtools/Images/ic_info_black_18dp.svg +1 -0
- package/static/devtools/Images/ic_page_next_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_page_prev_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_redo_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_show_node_16x16.svg +4 -0
- package/static/devtools/Images/ic_suggest_color.svg +6 -0
- package/static/devtools/Images/ic_undo_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_warning_black_18dp.svg +1 -0
- package/static/devtools/Images/issue-text-icon.svg +1 -0
- package/static/devtools/Images/largeIcons.svg +1 -0
- package/static/devtools/Images/lighthouse_logo.svg +1 -0
- package/static/devtools/Images/link_icon.svg +1 -0
- package/static/devtools/Images/mediumIcons.svg +1 -0
- package/static/devtools/Images/navigationControls.png +0 -0
- package/static/devtools/Images/navigationControls_2x.png +0 -0
- package/static/devtools/Images/network_panel_icon.svg +1 -0
- package/static/devtools/Images/nodeIcon.avif +0 -0
- package/static/devtools/Images/node_search_icon.svg +1 -0
- package/static/devtools/Images/popoverArrows.png +0 -0
- package/static/devtools/Images/profileGroupIcon.png +0 -0
- package/static/devtools/Images/profileIcon.png +0 -0
- package/static/devtools/Images/profileSmallIcon.png +0 -0
- package/static/devtools/Images/radioDot-dark-theme.png +0 -0
- package/static/devtools/Images/radioDot.png +0 -0
- package/static/devtools/Images/refresh_12x12_icon.svg +1 -0
- package/static/devtools/Images/resizeDiagonal.svg +1 -0
- package/static/devtools/Images/resizeHorizontal.svg +1 -0
- package/static/devtools/Images/resizeVertical.svg +1 -0
- package/static/devtools/Images/resourceCSSIcon.png +0 -0
- package/static/devtools/Images/resourceDocumentIcon.png +0 -0
- package/static/devtools/Images/resourceDocumentIconSmall.png +0 -0
- package/static/devtools/Images/resourceJSIcon.png +0 -0
- package/static/devtools/Images/resourcePlainIcon.png +0 -0
- package/static/devtools/Images/resourcePlainIconSmall.png +0 -0
- package/static/devtools/Images/resourcesTimeGraphIcon.avif +0 -0
- package/static/devtools/Images/searchNext.png +0 -0
- package/static/devtools/Images/searchPrev.png +0 -0
- package/static/devtools/Images/securityIcons.svg +1 -0
- package/static/devtools/Images/settings_14x14_icon.svg +1 -0
- package/static/devtools/Images/smallIcons.svg +1 -0
- package/static/devtools/Images/sources_panel_icon.svg +1 -0
- package/static/devtools/Images/speech.png +0 -0
- package/static/devtools/Images/toolbarResizerVertical.png +0 -0
- package/static/devtools/Images/touchCursor.png +0 -0
- package/static/devtools/Images/touchCursor_2x.png +0 -0
- package/static/devtools/Images/treeoutlineTriangles.svg +1 -0
- package/static/devtools/Images/warning_icon.svg +1 -0
- package/static/devtools/Images/whatsnew.avif +0 -0
- package/static/devtools/Tests.js +1654 -0
- package/static/devtools/accessibility/accessibility-legacy.js +1 -0
- package/static/devtools/accessibility/accessibility-meta.js +1 -0
- package/static/devtools/accessibility/accessibility.js +1 -0
- package/static/devtools/accessibility/accessibility_module.js +1 -0
- package/static/devtools/accessibility_test_runner/accessibility_test_runner.js +77 -0
- package/static/devtools/accessibility_test_runner/accessibility_test_runner_module.js +0 -0
- package/static/devtools/animation/animation-legacy.js +1 -0
- package/static/devtools/animation/animation-meta.js +1 -0
- package/static/devtools/animation/animation.js +1 -0
- package/static/devtools/animation/animation_module.js +1 -0
- package/static/devtools/application_test_runner/AppcacheTestRunner.js +220 -0
- package/static/devtools/application_test_runner/CacheStorageTestRunner.js +286 -0
- package/static/devtools/application_test_runner/IndexedDBTestRunner.js +476 -0
- package/static/devtools/application_test_runner/ResourceTreeTestRunner.js +99 -0
- package/static/devtools/application_test_runner/ResourcesTestRunner.js +167 -0
- package/static/devtools/application_test_runner/ServiceWorkersTestRunner.js +131 -0
- package/static/devtools/application_test_runner/application_test_runner.js +10 -0
- package/static/devtools/application_test_runner/application_test_runner_module.js +0 -0
- package/static/devtools/axe_core_test_runner/axe_core_test_runner.js +174 -0
- package/static/devtools/axe_core_test_runner/axe_core_test_runner_module.js +0 -0
- package/static/devtools/bindings/bindings-legacy.js +1 -0
- package/static/devtools/bindings/bindings.js +1 -0
- package/static/devtools/bindings_test_runner/AutomappingTestRunner.js +130 -0
- package/static/devtools/bindings_test_runner/BindingsTestRunner.js +238 -0
- package/static/devtools/bindings_test_runner/IsolatedFilesystemTestRunner.js +287 -0
- package/static/devtools/bindings_test_runner/OverridesTestRunner.js +26 -0
- package/static/devtools/bindings_test_runner/PersistenceTestRunner.js +109 -0
- package/static/devtools/bindings_test_runner/bindings_test_runner.js +9 -0
- package/static/devtools/bindings_test_runner/bindings_test_runner_module.js +0 -0
- package/static/devtools/browser_debugger/browser_debugger-legacy.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger-meta.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger_module.js +1 -0
- package/static/devtools/browser_sdk/browser_sdk-meta.js +1 -0
- package/static/devtools/browser_sdk/browser_sdk.js +1 -0
- package/static/devtools/changes/changes-legacy.js +1 -0
- package/static/devtools/changes/changes-meta.js +1 -0
- package/static/devtools/changes/changes.js +1 -0
- package/static/devtools/changes/changes_module.js +1 -0
- package/static/devtools/client_variations/client_variations.js +1 -0
- package/static/devtools/client_variations/client_variations_module.js +0 -0
- package/static/devtools/cm/cm.js +1 -0
- package/static/devtools/cm/cm_module.js +1 -0
- package/static/devtools/cm_headless/cm_headless.js +1 -0
- package/static/devtools/color_picker/color_picker-legacy.js +1 -0
- package/static/devtools/color_picker/color_picker.js +1 -0
- package/static/devtools/color_picker/color_picker_module.js +1 -0
- package/static/devtools/common/common-legacy.js +1 -0
- package/static/devtools/common/common.js +1 -0
- package/static/devtools/component_helpers/component_helpers.js +1 -0
- package/static/devtools/components/components-legacy.js +1 -0
- package/static/devtools/components/components.js +1 -0
- package/static/devtools/console/console-legacy.js +1 -0
- package/static/devtools/console/console-meta.js +1 -0
- package/static/devtools/console/console.js +6 -0
- package/static/devtools/console/console_module.js +1 -0
- package/static/devtools/console_counters/console_counters-legacy.js +1 -0
- package/static/devtools/console_counters/console_counters.js +1 -0
- package/static/devtools/console_test_runner/console_test_runner.js +696 -0
- package/static/devtools/console_test_runner/console_test_runner_module.js +0 -0
- package/static/devtools/cookie_table/cookie_table-legacy.js +1 -0
- package/static/devtools/cookie_table/cookie_table.js +1 -0
- package/static/devtools/cookie_table/cookie_table_module.js +1 -0
- package/static/devtools/coverage/coverage-legacy.js +1 -0
- package/static/devtools/coverage/coverage-meta.js +1 -0
- package/static/devtools/coverage/coverage.js +1 -0
- package/static/devtools/coverage/coverage_module.js +1 -0
- package/static/devtools/coverage_test_runner/coverage_test_runner.js +151 -0
- package/static/devtools/coverage_test_runner/coverage_test_runner_module.js +0 -0
- package/static/devtools/cpu_profiler_test_runner/cpu_profiler_test_runner.js +72 -0
- package/static/devtools/cpu_profiler_test_runner/cpu_profiler_test_runner_module.js +0 -0
- package/static/devtools/css_overview/css_overview-meta.js +1 -0
- package/static/devtools/css_overview/css_overview.js +146 -0
- package/static/devtools/css_overview/css_overview_module.js +1 -0
- package/static/devtools/data_grid/data_grid-legacy.js +1 -0
- package/static/devtools/data_grid/data_grid.js +1 -0
- package/static/devtools/data_grid/data_grid_module.js +1 -0
- package/static/devtools/data_grid_test_runner/data_grid_test_runner.js +78 -0
- package/static/devtools/data_grid_test_runner/data_grid_test_runner_module.js +0 -0
- package/static/devtools/developer_resources/developer_resources-legacy.js +1 -0
- package/static/devtools/developer_resources/developer_resources-meta.js +1 -0
- package/static/devtools/developer_resources/developer_resources.js +1 -0
- package/static/devtools/developer_resources/developer_resources_module.js +1 -0
- package/static/devtools/device_mode_test_runner/device_mode_test_runner.js +45 -0
- package/static/devtools/device_mode_test_runner/device_mode_test_runner_module.js +0 -0
- package/static/devtools/devtools_app.html +20 -0
- package/static/devtools/devtools_app.js +1 -0
- package/static/devtools/devtools_compatibility.js +1546 -0
- package/static/devtools/diff/diff-legacy.js +1 -0
- package/static/devtools/diff/diff.js +1 -0
- package/static/devtools/diff/diff_module.js +0 -0
- package/static/devtools/dom_extension/dom_extension.js +1 -0
- package/static/devtools/elements/elements-legacy.js +1 -0
- package/static/devtools/elements/elements-meta.js +1 -0
- package/static/devtools/elements/elements.js +469 -0
- package/static/devtools/elements/elements_module.js +1 -0
- package/static/devtools/elements_test_runner/EditDOMTestRunner.js +78 -0
- package/static/devtools/elements_test_runner/ElementsPanelShadowSelectionOnRefreshTestRunner.js +39 -0
- package/static/devtools/elements_test_runner/ElementsTestRunner.js +1280 -0
- package/static/devtools/elements_test_runner/SetOuterHTMLTestRunner.js +115 -0
- package/static/devtools/elements_test_runner/StylesUpdateLinksTestRunner.js +134 -0
- package/static/devtools/elements_test_runner/elements_test_runner.js +9 -0
- package/static/devtools/elements_test_runner/elements_test_runner_module.js +0 -0
- package/static/devtools/emulated_devices/emulated_devices_module.js +0 -0
- package/static/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/static/devtools/emulation/emulation-legacy.js +1 -0
- package/static/devtools/emulation/emulation-meta.js +1 -0
- package/static/devtools/emulation/emulation.js +1 -0
- package/static/devtools/event_listeners/event_listeners-legacy.js +1 -0
- package/static/devtools/event_listeners/event_listeners.js +1 -0
- package/static/devtools/event_listeners/event_listeners_module.js +1 -0
- package/static/devtools/extensions/extensions-legacy.js +1 -0
- package/static/devtools/extensions/extensions.js +1 -0
- package/static/devtools/extensions_test_runner/ExtensionsNetworkTestRunner.js +27 -0
- package/static/devtools/extensions_test_runner/ExtensionsTestRunner.js +68 -0
- package/static/devtools/extensions_test_runner/extensions_test_runner.js +6 -0
- package/static/devtools/extensions_test_runner/extensions_test_runner_module.js +0 -0
- package/static/devtools/formatter/formatter-legacy.js +1 -0
- package/static/devtools/formatter/formatter.js +1 -0
- package/static/devtools/formatter/formatter_module.js +0 -0
- package/static/devtools/formatter_worker/FormatterActions.js +1 -0
- package/static/devtools/formatter_worker/formatter_worker-entrypoint.js +1 -0
- package/static/devtools/formatter_worker/formatter_worker.js +1 -0
- package/static/devtools/har_importer/har_importer-legacy.js +1 -0
- package/static/devtools/har_importer/har_importer.js +1 -0
- package/static/devtools/har_importer/har_importer_module.js +0 -0
- package/static/devtools/heap_profiler_test_runner/heap_profiler_test_runner.js +740 -0
- package/static/devtools/heap_profiler_test_runner/heap_profiler_test_runner_module.js +0 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model-legacy.js +1 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model.js +1 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model_module.js +0 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker-legacy.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker_module.js +0 -0
- package/static/devtools/help/help-legacy.js +1 -0
- package/static/devtools/help/help-meta.js +1 -0
- package/static/devtools/help/help.js +1 -0
- package/static/devtools/help/help_module.js +1 -0
- package/static/devtools/host/host-legacy.js +1 -0
- package/static/devtools/host/host.js +1 -0
- package/static/devtools/i18n/i18n.js +1 -0
- package/static/devtools/i18n/i18n_locales-tsconfig.json +8 -0
- package/static/devtools/i18n/locales/en-US.json +3566 -0
- package/static/devtools/inline_editor/inline_editor-legacy.js +1 -0
- package/static/devtools/inline_editor/inline_editor.js +203 -0
- package/static/devtools/inline_editor/inline_editor_module.js +1 -0
- package/static/devtools/input/input-legacy.js +1 -0
- package/static/devtools/input/input-meta.js +1 -0
- package/static/devtools/input/input.js +1 -0
- package/static/devtools/input/input_module.js +1 -0
- package/static/devtools/inspector.html +20 -0
- package/static/devtools/inspector.js +1 -0
- package/static/devtools/inspector_main/inspector_main-legacy.js +1 -0
- package/static/devtools/inspector_main/inspector_main-meta.js +1 -0
- package/static/devtools/inspector_main/inspector_main.js +1 -0
- package/static/devtools/integration_test_runner.html +14 -0
- package/static/devtools/integration_test_runner.js +2 -0
- package/static/devtools/issues/issues-legacy.js +1 -0
- package/static/devtools/issues/issues-meta.js +1 -0
- package/static/devtools/issues/issues.js +67 -0
- package/static/devtools/issues/issues_module.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata-legacy.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata_module.js +0 -0
- package/static/devtools/js_app.html +20 -0
- package/static/devtools/js_app.js +1 -0
- package/static/devtools/js_main/js_main-legacy.js +1 -0
- package/static/devtools/js_main/js_main.js +1 -0
- package/static/devtools/js_profiler/js_profiler-meta.js +1 -0
- package/static/devtools/js_profiler/js_profiler.js +1 -0
- package/static/devtools/js_profiler/js_profiler_module.js +0 -0
- package/static/devtools/layer_viewer/layer_viewer-legacy.js +1 -0
- package/static/devtools/layer_viewer/layer_viewer.js +1 -0
- package/static/devtools/layer_viewer/layer_viewer_module.js +1 -0
- package/static/devtools/layers/layers-legacy.js +1 -0
- package/static/devtools/layers/layers-meta.js +1 -0
- package/static/devtools/layers/layers.js +1 -0
- package/static/devtools/layers/layers_module.js +0 -0
- package/static/devtools/layers_test_runner/layers_test_runner.js +156 -0
- package/static/devtools/layers_test_runner/layers_test_runner_module.js +0 -0
- package/static/devtools/lighthouse/lighthouse-legacy.js +1 -0
- package/static/devtools/lighthouse/lighthouse-meta.js +1 -0
- package/static/devtools/lighthouse/lighthouse.js +70 -0
- package/static/devtools/lighthouse/lighthouse_module.js +1 -0
- package/static/devtools/lighthouse_test_runner/lighthouse_test_runner.js +136 -0
- package/static/devtools/lighthouse_test_runner/lighthouse_test_runner_module.js +0 -0
- package/static/devtools/lighthouse_worker/LighthouseService.js +195 -0
- package/static/devtools/lighthouse_worker/lighthouse_worker.js +6 -0
- package/static/devtools/lighthouse_worker.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector-legacy.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector-meta.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector.js +399 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector_module.js +0 -0
- package/static/devtools/main/main-legacy.js +1 -0
- package/static/devtools/main/main.js +1 -0
- package/static/devtools/media/media-legacy.js +1 -0
- package/static/devtools/media/media-meta.js +1 -0
- package/static/devtools/media/media.js +1 -0
- package/static/devtools/media/media_module.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling-legacy.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling-meta.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling.js +1 -0
- package/static/devtools/ndb_app.html +20 -0
- package/static/devtools/ndb_app.js +1 -0
- package/static/devtools/network/network-legacy.js +1 -0
- package/static/devtools/network/network-meta.js +1 -0
- package/static/devtools/network/network.js +72 -0
- package/static/devtools/network/network_module.js +1 -0
- package/static/devtools/network_test_runner/network_test_runner.js +280 -0
- package/static/devtools/network_test_runner/network_test_runner_module.js +0 -0
- package/static/devtools/node_app.html +20 -0
- package/static/devtools/node_app.js +1 -0
- package/static/devtools/node_debugger/node_debugger-meta.js +1 -0
- package/static/devtools/node_debugger/node_debugger.js +1 -0
- package/static/devtools/node_debugger/node_debugger_module.js +0 -0
- package/static/devtools/node_main/node_main-legacy.js +1 -0
- package/static/devtools/node_main/node_main-meta.js +1 -0
- package/static/devtools/node_main/node_main.js +1 -0
- package/static/devtools/object_ui/object_ui-legacy.js +1 -0
- package/static/devtools/object_ui/object_ui.js +3 -0
- package/static/devtools/object_ui/object_ui_module.js +1 -0
- package/static/devtools/perf_ui/perf_ui-legacy.js +1 -0
- package/static/devtools/perf_ui/perf_ui.js +152 -0
- package/static/devtools/perf_ui/perf_ui_module.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor-legacy.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor-meta.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor_module.js +1 -0
- package/static/devtools/performance_test_runner/TimelineDataTestRunner.js +5375 -0
- package/static/devtools/performance_test_runner/TimelineTestRunner.js +446 -0
- package/static/devtools/performance_test_runner/performance_test_runner.js +6 -0
- package/static/devtools/performance_test_runner/performance_test_runner_module.js +0 -0
- package/static/devtools/persistence/persistence-legacy.js +1 -0
- package/static/devtools/persistence/persistence-meta.js +1 -0
- package/static/devtools/persistence/persistence.js +1 -0
- package/static/devtools/platform/platform.js +1 -0
- package/static/devtools/profiler/profiler-legacy.js +1 -0
- package/static/devtools/profiler/profiler-meta.js +1 -0
- package/static/devtools/profiler/profiler.js +8 -0
- package/static/devtools/profiler/profiler_module.js +1 -0
- package/static/devtools/protocol_client/protocol_client-legacy.js +1 -0
- package/static/devtools/protocol_client/protocol_client.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor-legacy.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor-meta.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor_module.js +1 -0
- package/static/devtools/quick_open/quick_open-legacy.js +1 -0
- package/static/devtools/quick_open/quick_open.js +1 -0
- package/static/devtools/quick_open/quick_open_module.js +1 -0
- package/static/devtools/recorder/recorder.js +1 -0
- package/static/devtools/resources/resources-legacy.js +1 -0
- package/static/devtools/resources/resources-meta.js +1 -0
- package/static/devtools/resources/resources.js +28 -0
- package/static/devtools/resources/resources_module.js +1 -0
- package/static/devtools/root/root-legacy.js +1 -0
- package/static/devtools/root/root.js +1 -0
- package/static/devtools/screencast/screencast-legacy.js +1 -0
- package/static/devtools/screencast/screencast.js +1 -0
- package/static/devtools/sdk/sdk-legacy.js +1 -0
- package/static/devtools/sdk/sdk.js +2 -0
- package/static/devtools/sdk_test_runner/sdk_test_runner.js +297 -0
- package/static/devtools/sdk_test_runner/sdk_test_runner_module.js +0 -0
- package/static/devtools/search/search-legacy.js +1 -0
- package/static/devtools/search/search.js +1 -0
- package/static/devtools/search/search_module.js +1 -0
- package/static/devtools/security/security-legacy.js +1 -0
- package/static/devtools/security/security-meta.js +1 -0
- package/static/devtools/security/security.js +1 -0
- package/static/devtools/security/security_module.js +1 -0
- package/static/devtools/security_test_runner/security_test_runner.js +32 -0
- package/static/devtools/security_test_runner/security_test_runner_module.js +0 -0
- package/static/devtools/services/services-legacy.js +1 -0
- package/static/devtools/services/services.js +1 -0
- package/static/devtools/settings/settings-legacy.js +1 -0
- package/static/devtools/settings/settings-meta.js +1 -0
- package/static/devtools/settings/settings.js +1 -0
- package/static/devtools/settings/settings_module.js +1 -0
- package/static/devtools/shell.js +1 -0
- package/static/devtools/snippets/snippets-legacy.js +1 -0
- package/static/devtools/snippets/snippets.js +1 -0
- package/static/devtools/snippets/snippets_module.js +0 -0
- package/static/devtools/source_frame/source_frame-legacy.js +1 -0
- package/static/devtools/source_frame/source_frame.js +1 -0
- package/static/devtools/source_frame/source_frame_module.js +1 -0
- package/static/devtools/sources/sources-legacy.js +1 -0
- package/static/devtools/sources/sources-meta.js +1 -0
- package/static/devtools/sources/sources.js +13 -0
- package/static/devtools/sources/sources_module.js +1 -0
- package/static/devtools/sources_test_runner/AutocompleteTestRunner.js +46 -0
- package/static/devtools/sources_test_runner/DebuggerTestRunner.js +895 -0
- package/static/devtools/sources_test_runner/EditorTestRunner.js +237 -0
- package/static/devtools/sources_test_runner/LiveEditTestRunner.js +33 -0
- package/static/devtools/sources_test_runner/SearchTestRunner.js +158 -0
- package/static/devtools/sources_test_runner/SourcesTestRunner.js +173 -0
- package/static/devtools/sources_test_runner/sources_test_runner.js +10 -0
- package/static/devtools/sources_test_runner/sources_test_runner_module.js +0 -0
- package/static/devtools/startup/startup.js +1 -0
- package/static/devtools/test_runner/test_runner.js +1 -0
- package/static/devtools/text_editor/text_editor-legacy.js +1 -0
- package/static/devtools/text_editor/text_editor.js +1 -0
- package/static/devtools/text_editor/text_editor_module.js +1 -0
- package/static/devtools/text_utils/text_utils-legacy.js +1 -0
- package/static/devtools/text_utils/text_utils.js +1 -0
- package/static/devtools/theme_support/theme_support.js +1 -0
- package/static/devtools/third_party/acorn/acorn-tsconfig.json +8 -0
- package/static/devtools/third_party/acorn/acorn.js +1 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.d.ts +209 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs +5261 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs.d.ts +2 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs.map +1 -0
- package/static/devtools/third_party/acorn-loose/acorn-loose-tsconfig.json +8 -0
- package/static/devtools/third_party/acorn-loose/package/dist/acorn-loose.d.ts +16 -0
- package/static/devtools/third_party/acorn-loose/package/dist/acorn-loose.mjs +1418 -0
- package/static/devtools/third_party/axe-core/axe.js +16423 -0
- package/static/devtools/third_party/chromium/chromium-tsconfig.json +8 -0
- package/static/devtools/third_party/chromium/client-variations/ClientVariations.d.ts +13 -0
- package/static/devtools/third_party/chromium/client-variations/ClientVariations.js +27 -0
- package/static/devtools/third_party/codemirror/codemirror-tsconfig.json +72 -0
- package/static/devtools/third_party/codemirror/package/addon/comment/comment.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/addon/comment/comment.js +211 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/closebrackets.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/closebrackets.js +201 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/matchbrackets.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/matchbrackets.js +158 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/brace-fold.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/brace-fold.js +105 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldcode.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldcode.js +157 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldgutter.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldgutter.js +163 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/multiplex.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/multiplex.js +131 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/overlay.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/overlay.js +90 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/simple.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/simple.js +216 -0
- package/static/devtools/third_party/codemirror/package/addon/runmode/runmode-standalone.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/runmode/runmode-standalone.js +333 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/active-line.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/active-line.js +72 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/mark-selection.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/mark-selection.js +119 -0
- package/static/devtools/third_party/codemirror/package/lib/codemirror.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/lib/codemirror.js +9800 -0
- package/static/devtools/third_party/codemirror/package/mode/clike/clike.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/clike/clike.js +935 -0
- package/static/devtools/third_party/codemirror/package/mode/clojure/clojure.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/clojure/clojure.js +292 -0
- package/static/devtools/third_party/codemirror/package/mode/coffeescript/coffeescript.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/coffeescript/coffeescript.js +359 -0
- package/static/devtools/third_party/codemirror/package/mode/css/css.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/css/css.js +864 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlembedded/htmlembedded.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlembedded/htmlembedded.js +37 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlmixed/htmlmixed.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlmixed/htmlmixed.js +153 -0
- package/static/devtools/third_party/codemirror/package/mode/javascript/javascript.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/javascript/javascript.js +942 -0
- package/static/devtools/third_party/codemirror/package/mode/jsx/jsx.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/jsx/jsx.js +148 -0
- package/static/devtools/third_party/codemirror/package/mode/livescript/livescript.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/livescript/livescript.js +280 -0
- package/static/devtools/third_party/codemirror/package/mode/markdown/markdown.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/markdown/markdown.js +886 -0
- package/static/devtools/third_party/codemirror/package/mode/php/php.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/php/php.js +234 -0
- package/static/devtools/third_party/codemirror/package/mode/python/python.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/python/python.js +399 -0
- package/static/devtools/third_party/codemirror/package/mode/shell/shell.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/shell/shell.js +168 -0
- package/static/devtools/third_party/codemirror/package/mode/wast/wast.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/wast/wast.js +41 -0
- package/static/devtools/third_party/codemirror/package/mode/xml/xml.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/xml/xml.js +413 -0
- package/static/devtools/third_party/i18n/bundle-tsconfig.json +8 -0
- package/static/devtools/third_party/i18n/i18n.d.ts +108 -0
- package/static/devtools/third_party/i18n/i18n.js +4336 -0
- package/static/devtools/third_party/lighthouse/lighthouse-dt-bundle.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/lighthouse-dt-bundle.js +1140 -0
- package/static/devtools/third_party/lighthouse/lighthouse-tsconfig.json +10 -0
- package/static/devtools/third_party/lighthouse/locales/ar-XB.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ar.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/bg.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ca.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/cs.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/da.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/de.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/el.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-GB.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-US.json +2297 -0
- package/static/devtools/third_party/lighthouse/locales/en-XA.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-XL.json +2297 -0
- package/static/devtools/third_party/lighthouse/locales/es-419.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/es.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fil.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/he.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hu.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/id.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/it.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ja.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ko.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/lt.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/lv.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/nl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/no.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pt-PT.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pt.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ro.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ru.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sk.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sr-Latn.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sv.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ta.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/te.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/th.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/tr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/uk.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/vi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh-HK.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh-TW.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh.json +2066 -0
- package/static/devtools/third_party/lighthouse/report-assets/report-generator.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/report-assets/report-generator.js +167 -0
- package/static/devtools/third_party/lighthouse/report-assets/report.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/report-assets/report.js +5032 -0
- package/static/devtools/third_party/lit-html/lit-html-tsconfig.json +22 -0
- package/static/devtools/third_party/lit-html/lit-html.js +120 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.d.ts +28 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.js +101 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.d.ts +22 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.js +37 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/live.d.ts +38 -0
- package/static/devtools/third_party/lit-html/package/directives/live.js +73 -0
- package/static/devtools/third_party/lit-html/package/directives/live.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.d.ts +37 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.js +415 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.d.ts +36 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.js +78 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.d.ts +39 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.js +52 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.d.ts +59 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.js +63 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.d.ts +29 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.js +44 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/part.d.ts +46 -0
- package/static/devtools/third_party/lit-html/package/lib/part.js +23 -0
- package/static/devtools/third_party/lit-html/package/lib/part.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.d.ts +148 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.js +476 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/render.d.ts +33 -0
- package/static/devtools/third_party/lit-html/package/lib/render.js +43 -0
- package/static/devtools/third_party/lit-html/package/lib/render.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.d.ts +57 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.js +48 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.d.ts +30 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.js +134 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.d.ts +42 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.js +131 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template.d.ts +92 -0
- package/static/devtools/third_party/lit-html/package/lib/template.js +215 -0
- package/static/devtools/third_party/lit-html/package/lib/template.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lit-html.d.ts +42 -0
- package/static/devtools/third_party/lit-html/package/lit-html.js +59 -0
- package/static/devtools/third_party/lit-html/package/lit-html.js.map +1 -0
- package/static/devtools/third_party/marked/marked-tsconfig.json +8 -0
- package/static/devtools/third_party/marked/marked.js +1 -0
- package/static/devtools/third_party/marked/package/lib/marked.esm.d.ts +1 -0
- package/static/devtools/third_party/marked/package/lib/marked.esm.js +2584 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +53 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.js +64 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +356 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +81 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +423 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +516 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +39 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +76 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +30 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +120 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +266 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts +72 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js +60 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +181 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +316 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +174 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +647 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +53 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +77 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +33 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +873 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +76 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +92 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.js +33 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +34 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +37 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +59 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +89 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +109 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts +82 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.js +83 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +189 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +313 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +60 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +735 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +962 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +276 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +421 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +128 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +150 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +322 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +463 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +439 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +724 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +62 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +80 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +262 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +152 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js +31 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +910 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +1343 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.d.ts +21 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +135 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +133 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +24 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.js +0 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +157 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.js +72 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +98 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +137 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.js +43 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +94 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.js +403 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +102 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +109 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +24 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts +17 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js +20 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +288 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +17 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +16 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +39 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +132 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +468 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +197 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +42 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.js +0 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +16 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +469 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +29 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +34 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +31 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +61 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +156 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +183 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +151 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +19 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +53 -0
- package/static/devtools/third_party/puppeteer/puppeteer-tsconfig.json +58 -0
- package/static/devtools/third_party/puppeteer/puppeteer.js +1 -0
- package/static/devtools/third_party/wasmparser/package/dist/esm/WasmDis.js +1595 -0
- package/static/devtools/third_party/wasmparser/package/dist/esm/WasmParser.js +3120 -0
- package/static/devtools/third_party/wasmparser/wasmparser-tsconfig.json +9 -0
- package/static/devtools/timeline/timeline-legacy.js +1 -0
- package/static/devtools/timeline/timeline-meta.js +1 -0
- package/static/devtools/timeline/timeline.js +1 -0
- package/static/devtools/timeline/timeline_module.js +1 -0
- package/static/devtools/timeline_model/timeline_model-legacy.js +1 -0
- package/static/devtools/timeline_model/timeline_model.js +1 -0
- package/static/devtools/timeline_model/timeline_model_module.js +0 -0
- package/static/devtools/toolbox.html +20 -0
- package/static/devtools/toolbox.js +1 -0
- package/static/devtools/toolbox_bootstrap/toolbox_bootstrap.js +1 -0
- package/static/devtools/ui/components/components.js +378 -0
- package/static/devtools/ui/ui-legacy.js +1 -0
- package/static/devtools/ui/ui.js +3 -0
- package/static/devtools/ui/utils/utils.js +1 -0
- package/static/devtools/wasmparser_worker/wasmparser_worker-entrypoint.js +1 -0
- package/static/devtools/wasmparser_worker/wasmparser_worker.js +1 -0
- package/static/devtools/web_audio/graph_visualizer/graph_visualizer.js +1 -0
- package/static/devtools/web_audio/web_audio-legacy.js +1 -0
- package/static/devtools/web_audio/web_audio-meta.js +1 -0
- package/static/devtools/web_audio/web_audio.js +23 -0
- package/static/devtools/web_audio/web_audio_module.js +1 -0
- package/static/devtools/webauthn/webauthn-legacy.js +1 -0
- package/static/devtools/webauthn/webauthn-meta.js +1 -0
- package/static/devtools/webauthn/webauthn.js +6 -0
- package/static/devtools/webauthn/webauthn_module.js +1 -0
- package/static/devtools/worker_app.html +20 -0
- package/static/devtools/worker_app.js +1 -0
- package/static/devtools/worker_main/worker_main-legacy.js +1 -0
- package/static/devtools/worker_main/worker_main.js +1 -0
- package/static/devtools/worker_service/worker_service.js +1 -0
- package/static/devtools/workspace/workspace-legacy.js +1 -0
- package/static/devtools/workspace/workspace.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff-legacy.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff_module.js +0 -0
- package/static/docs/swagger.json +3294 -2185
- package/static/function/client.js +1037 -992
- package/build/routes/chromium/http/download-post.body.json +0 -32
- package/build/routes/chromium/http/function-post.body.json +0 -32
- package/build/routes/chromium/http/function-post.query.json +0 -120
- package/build/routes/chromium/http/json-list.response.json +0 -52
- package/build/routes/chromium/http/json-new.js +0 -23
- package/build/routes/chromium/http/json-new.response.json +0 -44
- package/build/routes/chromium/http/json-protocol-get.response.json +0 -6
- package/build/routes/chromium/http/json-version-get.response.json +0 -37
- package/build/routes/chromium/http/pdf-post.query.json +0 -120
- package/build/routes/chromium/http/performance.body.json +0 -26
- package/build/routes/chromium/http/performance.query.json +0 -120
- package/build/routes/chromium/http/scrape-post.response.json +0 -309
- package/build/routes/chromium/http/screenshot-post.query.json +0 -120
- package/build/routes/chromium/utils/cdp.d.ts +0 -2
- package/build/routes/chromium/utils/cdp.js +0 -14
- package/build/routes/chromium/ws/cdp-chromium.js +0 -10
- package/build/routes/chromium/ws/cdp-chromium.query.json +0 -120
- package/build/routes/chromium/ws/playwright-chromium.query.json +0 -100
- package/build/routes/firefox/ws/playwright-firefox.d.ts +0 -16
- package/build/routes/firefox/ws/playwright-firefox.query.json +0 -100
- package/build/routes/management/http/config-get.response.json +0 -107
- package/build/routes/management/http/metrics-get.response.json +0 -94
- package/build/routes/management/http/metrics-total-get.response.json +0 -72
- package/build/routes/webkit/ws/playwright-webkit.query.json +0 -100
- package/src/routes/chromium/http/json-list.ts +0 -50
- package/src/routes/chromium/utils/cdp.ts +0 -19
- package/build/routes/{chromium/http/content-post.query.json → chrome/http/content.post.query.json} +0 -0
- package/build/routes/{chromium/http/content-post.response.json → chrome/http/content.post.response.json} +0 -0
- package/build/routes/{chromium/http/scrape-post.query.json → chrome/http/download.post.query.json} +0 -0
- package/build/routes/{chromium/http/pdf-post.response.json → chrome/http/pdf.post.response.json} +0 -0
- package/build/routes/{chromium/http/screenshot-post.response.json → chrome/http/screenshot.post.response.json} +0 -0
- package/build/routes/{chromium/utils/performance/child.d.ts → chrome/tests/content.spec.d.ts} +0 -0
- package/build/routes/{chromium/utils/performance/types.js → chrome/tests/download.spec.d.ts} +0 -0
- package/build/routes/management/http/{config-get.d.ts → config.get.d.ts} +0 -0
- package/build/routes/management/http/{config-get.js → config.get.js} +0 -0
- package/build/routes/management/http/{metrics-total-get.d.ts → metrics-total.get.d.ts} +0 -0
- package/build/routes/management/http/{metrics-total-get.js → metrics-total.get.js} +0 -0
- package/build/routes/management/http/{metrics-get.d.ts → metrics.get.d.ts} +0 -0
- package/build/routes/management/http/{metrics-get.js → metrics.get.js} +0 -0
- package/build/routes/management/http/{sessions-get.d.ts → sessions.get.d.ts} +0 -0
- package/build/routes/management/http/{sessions-get.js → sessions.get.js} +0 -0
- package/build/routes/management/http/{static-get.d.ts → static.get.d.ts} +0 -0
- package/build/{routes/chromium/http/json-protocol-get.d.ts → shared/json-protocol.http.d.ts} +1 -1
- package/build/{routes/chromium/http/json-version-get.d.ts → shared/json-version.http.d.ts} +1 -1
- /package/build/{routes/chromium → shared}/utils/function/client.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/function/client.js +0 -0
- /package/build/{routes/chromium → shared}/utils/function/handler.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/function/handler.js +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/child.js +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/main.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/types.d.ts +0 -0
- /package/src/routes/management/http/{config-get.ts → config.get.ts} +0 -0
- /package/src/routes/management/http/{metrics-total-get.ts → metrics-total.get.ts} +0 -0
- /package/src/routes/management/http/{metrics-get.ts → metrics.get.ts} +0 -0
- /package/src/routes/management/http/{sessions-get.ts → sessions.get.ts} +0 -0
- /package/src/{routes/chromium → shared}/utils/function/client.ts +0 -0
- /package/src/{routes/chromium → shared}/utils/performance/child.ts +0 -0
- /package/src/{routes/chromium → shared}/utils/performance/types.ts +0 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @fileoverview using private properties isn't a Closure violation in tests.
|
|
7
|
+
*/
|
|
8
|
+
self.BindingsTestRunner = self.BindingsTestRunner || {};
|
|
9
|
+
|
|
10
|
+
Host.InspectorFrontendHost.isolatedFileSystem = function(name) {
|
|
11
|
+
return BindingsTestRunner.TestFileSystem._instances[name];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
BindingsTestRunner.TestFileSystem = function(fileSystemPath) {
|
|
15
|
+
this.root = new BindingsTestRunner.TestFileSystem.Entry(this, '', true, null);
|
|
16
|
+
this.fileSystemPath = fileSystemPath;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
BindingsTestRunner.TestFileSystem._instances = {};
|
|
20
|
+
|
|
21
|
+
BindingsTestRunner.TestFileSystem.prototype = {
|
|
22
|
+
dumpAsText: function() {
|
|
23
|
+
const result = [];
|
|
24
|
+
dfs(this.root, '');
|
|
25
|
+
result[0] = this.fileSystemPath;
|
|
26
|
+
return result.join('\n');
|
|
27
|
+
|
|
28
|
+
function dfs(node, indent) {
|
|
29
|
+
result.push(indent + node.name);
|
|
30
|
+
const newIndent = indent + ' ';
|
|
31
|
+
|
|
32
|
+
for (const child of node._children.values()) {
|
|
33
|
+
dfs(child, newIndent);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
reportCreatedPromise: function(type) {
|
|
39
|
+
return new Promise(fulfill => this.reportCreated(fulfill, type));
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
reportCreated: function(callback, type) {
|
|
43
|
+
const fileSystemPath = this.fileSystemPath;
|
|
44
|
+
BindingsTestRunner.TestFileSystem._instances[this.fileSystemPath] = this;
|
|
45
|
+
|
|
46
|
+
Host.InspectorFrontendHost.events.dispatchEventToListeners(
|
|
47
|
+
Host.InspectorFrontendHostAPI.Events.FileSystemAdded,
|
|
48
|
+
{fileSystem: {fileSystemPath: this.fileSystemPath, fileSystemName: this.fileSystemPath, type}});
|
|
49
|
+
|
|
50
|
+
self.Persistence.isolatedFileSystemManager.addEventListener(
|
|
51
|
+
Persistence.IsolatedFileSystemManager.Events.FileSystemAdded, created);
|
|
52
|
+
|
|
53
|
+
function created(event) {
|
|
54
|
+
const fileSystem = event.data;
|
|
55
|
+
|
|
56
|
+
if (fileSystem.path() !== fileSystemPath) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
self.Persistence.isolatedFileSystemManager.removeEventListener(
|
|
61
|
+
Persistence.IsolatedFileSystemManager.Events.FileSystemAdded, created);
|
|
62
|
+
callback(fileSystem);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
reportRemoved: function() {
|
|
67
|
+
delete BindingsTestRunner.TestFileSystem._instances[this.fileSystemPath];
|
|
68
|
+
Host.InspectorFrontendHost.events.dispatchEventToListeners(
|
|
69
|
+
Host.InspectorFrontendHostAPI.Events.FileSystemRemoved, this.fileSystemPath);
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
addFile: function(path, content, lastModified) {
|
|
73
|
+
const pathTokens = path.split('/');
|
|
74
|
+
let node = this.root;
|
|
75
|
+
const folders = pathTokens.slice(0, pathTokens.length - 1);
|
|
76
|
+
const fileName = pathTokens[pathTokens.length - 1];
|
|
77
|
+
|
|
78
|
+
for (const folder of folders) {
|
|
79
|
+
let dir = node._children.get(folder);
|
|
80
|
+
|
|
81
|
+
if (!dir) {
|
|
82
|
+
dir = node.mkdir(folder);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
node = dir;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const file = node.addFile(fileName, content);
|
|
89
|
+
|
|
90
|
+
if (lastModified) {
|
|
91
|
+
file._timestamp = lastModified;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return file;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
BindingsTestRunner.TestFileSystem.Entry = function(fileSystem, name, isDirectory, parent) {
|
|
99
|
+
this._fileSystem = fileSystem;
|
|
100
|
+
this.name = name;
|
|
101
|
+
this._children = new Map();
|
|
102
|
+
this.isDirectory = isDirectory;
|
|
103
|
+
this._timestamp = 1000000;
|
|
104
|
+
this._parent = parent;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
BindingsTestRunner.TestFileSystem.Entry.prototype = {
|
|
108
|
+
get fullPath() {
|
|
109
|
+
return (this._parent ? this._parent.fullPath + '/' + this.name : '');
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
remove: function(success, failure) {
|
|
113
|
+
this._parent._removeChild(this, success, failure);
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
_removeChild: function(child, success, failure) {
|
|
117
|
+
if (!this._children.has(child.name)) {
|
|
118
|
+
failure('Failed to remove file: file not found.');
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const fullPath = this._fileSystem.fileSystemPath + child.fullPath;
|
|
123
|
+
this._children.delete(child.name);
|
|
124
|
+
child._parent = null;
|
|
125
|
+
|
|
126
|
+
Host.InspectorFrontendHost.events.dispatchEventToListeners(
|
|
127
|
+
Host.InspectorFrontendHostAPI.Events.FileSystemFilesChangedAddedRemoved,
|
|
128
|
+
{changed: [], added: [], removed: [fullPath]});
|
|
129
|
+
|
|
130
|
+
success();
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
mkdir: function(name) {
|
|
134
|
+
const child = new BindingsTestRunner.TestFileSystem.Entry(this._fileSystem, name, true, this);
|
|
135
|
+
this._children.set(name, child);
|
|
136
|
+
return child;
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
addFile: function(name, content) {
|
|
140
|
+
const child = new BindingsTestRunner.TestFileSystem.Entry(this._fileSystem, name, false, this);
|
|
141
|
+
this._children.set(name, child);
|
|
142
|
+
|
|
143
|
+
child.content = new Blob([content], {type: 'text/plain'});
|
|
144
|
+
|
|
145
|
+
const fullPath = this._fileSystem.fileSystemPath + child.fullPath;
|
|
146
|
+
|
|
147
|
+
Host.InspectorFrontendHost.events.dispatchEventToListeners(
|
|
148
|
+
Host.InspectorFrontendHostAPI.Events.FileSystemFilesChangedAddedRemoved,
|
|
149
|
+
{changed: [], added: [fullPath], removed: []});
|
|
150
|
+
|
|
151
|
+
return child;
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
setContent: function(content) {
|
|
155
|
+
this.content = new Blob([content], {type: 'text/plain'});
|
|
156
|
+
|
|
157
|
+
this._timestamp += 1000;
|
|
158
|
+
const fullPath = this._fileSystem.fileSystemPath + this.fullPath;
|
|
159
|
+
|
|
160
|
+
Host.InspectorFrontendHost.events.dispatchEventToListeners(
|
|
161
|
+
Host.InspectorFrontendHostAPI.Events.FileSystemFilesChangedAddedRemoved,
|
|
162
|
+
{changed: [fullPath], added: [], removed: []});
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
createReader: function() {
|
|
166
|
+
return new BindingsTestRunner.TestFileSystem.Reader([...this._children.values()]);
|
|
167
|
+
},
|
|
168
|
+
|
|
169
|
+
createWriter: function(success, failure) {
|
|
170
|
+
success(new BindingsTestRunner.TestFileSystem.Writer(this));
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
file: function(callback) {
|
|
174
|
+
callback(this.content);
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
getDirectory: function(path, noop, callback, errorCallback) {
|
|
178
|
+
this.getEntry(path, noop, callback, errorCallback);
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
getFile: function(path, noop, callback, errorCallback) {
|
|
182
|
+
this.getEntry(path, noop, callback, errorCallback);
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
_createEntry: function(path, options, callback, errorCallback) {
|
|
186
|
+
const tokens = path.split('/');
|
|
187
|
+
const name = tokens.pop();
|
|
188
|
+
let parentEntry = this;
|
|
189
|
+
|
|
190
|
+
for (const token of tokens) {
|
|
191
|
+
parentEntry = parentEntry._children.get(token);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
let entry = parentEntry._children.get(name);
|
|
195
|
+
|
|
196
|
+
if (entry && options.exclusive) {
|
|
197
|
+
errorCallback(new DOMException('File exists: ' + path, 'InvalidModificationError'));
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (!entry) {
|
|
202
|
+
entry = parentEntry.addFile(name, '');
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
callback(entry);
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
getEntry: function(path, options, callback, errorCallback) {
|
|
209
|
+
if (path.startsWith('/')) {
|
|
210
|
+
path = path.substring(1);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (options && options.create) {
|
|
214
|
+
this._createEntry(path, options, callback, errorCallback);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (!path) {
|
|
219
|
+
callback(this);
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
let entry = this;
|
|
224
|
+
|
|
225
|
+
for (const token of path.split('/')) {
|
|
226
|
+
entry = entry._children.get(token);
|
|
227
|
+
if (!entry) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
(entry ? callback(entry) : errorCallback(new DOMException('Path not found: ' + path, 'NotFoundError')));
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
getMetadata: function(success, failure) {
|
|
236
|
+
success({modificationTime: new Date(this._timestamp), size: (this.isDirectory ? 0 : this.content.size)});
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
moveTo: function(parent, newName, callback, errorCallback) {
|
|
240
|
+
this._parent._children.delete(this.name);
|
|
241
|
+
this._parent = parent;
|
|
242
|
+
this.name = newName;
|
|
243
|
+
this._parent._children.set(this.name, this);
|
|
244
|
+
callback(this);
|
|
245
|
+
},
|
|
246
|
+
|
|
247
|
+
getParent: function(callback, errorCallback) {
|
|
248
|
+
callback(this._parent);
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
BindingsTestRunner.TestFileSystem.Reader = function(children) {
|
|
253
|
+
this._children = children;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
BindingsTestRunner.TestFileSystem.Reader.prototype = {
|
|
257
|
+
readEntries: function(callback) {
|
|
258
|
+
const children = this._children;
|
|
259
|
+
this._children = [];
|
|
260
|
+
callback(children);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
BindingsTestRunner.TestFileSystem.Writer = function(entry) {
|
|
265
|
+
this._entry = entry;
|
|
266
|
+
this._modificationTimesDelta = 500;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
BindingsTestRunner.TestFileSystem.Writer.prototype = {
|
|
270
|
+
write: function(blob) {
|
|
271
|
+
this._entry._timestamp += this._modificationTimesDelta;
|
|
272
|
+
this._entry.content = blob;
|
|
273
|
+
|
|
274
|
+
if (this.onwriteend) {
|
|
275
|
+
this.onwriteend();
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
|
|
279
|
+
truncate: function(num) {
|
|
280
|
+
this._entry._timestamp += this._modificationTimesDelta;
|
|
281
|
+
this._entry.content = this._entry.content.slice(0, num);
|
|
282
|
+
|
|
283
|
+
if (this.onwriteend) {
|
|
284
|
+
this.onwriteend();
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
self.BindingsTestRunner = self.BindingsTestRunner || {};
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @param {string} folderPath
|
|
9
|
+
* @return {!{isolatedFileSystem: !Persistence.IsolatedFileSystem, project: !Workspace.Project, testFileSystem: !BindingsTestRunner.TestFileSystem}}
|
|
10
|
+
*/
|
|
11
|
+
BindingsTestRunner.createOverrideProject = async function(folderPath) {
|
|
12
|
+
const testFileSystem = new BindingsTestRunner.TestFileSystem(folderPath);
|
|
13
|
+
const isolatedFileSystem = await testFileSystem.reportCreatedPromise('overrides');
|
|
14
|
+
isolatedFileSystem._type = 'overrides';
|
|
15
|
+
const project =
|
|
16
|
+
self.Workspace.workspace.project(Persistence.FileSystemWorkspaceBinding.projectId(isolatedFileSystem.path()));
|
|
17
|
+
console.assert(project);
|
|
18
|
+
return {isolatedFileSystem, project, testFileSystem};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @param {boolean} enabled
|
|
23
|
+
*/
|
|
24
|
+
BindingsTestRunner.setOverridesEnabled = function(enabled) {
|
|
25
|
+
self.Common.settings.moduleSetting('persistenceNetworkOverridesEnabled').set(enabled);
|
|
26
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @fileoverview using private properties isn't a Closure violation in tests.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
self.BindingsTestRunner = self.BindingsTestRunner || {};
|
|
10
|
+
|
|
11
|
+
Persistence.PersistenceBinding.prototype.toString = function() {
|
|
12
|
+
const lines = ['{', ' network: ' + this.network.url(), ' fileSystem: ' + this.fileSystem.url(), '}'];
|
|
13
|
+
|
|
14
|
+
return lines.join('\n');
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
Persistence.AutomappingStatus.prototype.toString = function() {
|
|
18
|
+
const lines = [
|
|
19
|
+
'{', ' network: ' + this.network.url(), ' fileSystem: ' + this.fileSystem.url(),
|
|
20
|
+
' exactMatch: ' + this.exactMatch, '}'
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
return lines.join('\n');
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
BindingsTestRunner.waitForBinding = function(fileName) {
|
|
28
|
+
const uiSourceCodes = self.Workspace.workspace.uiSourceCodes();
|
|
29
|
+
|
|
30
|
+
for (const uiSourceCode of uiSourceCodes) {
|
|
31
|
+
const binding = self.Persistence.persistence.binding(uiSourceCode);
|
|
32
|
+
|
|
33
|
+
if (!binding) {
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (uiSourceCode.name() === fileName) {
|
|
38
|
+
return Promise.resolve(binding);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return TestRunner.waitForEvent(
|
|
43
|
+
Persistence.Persistence.Events.BindingCreated, self.Persistence.persistence,
|
|
44
|
+
binding => binding.network.name() === fileName || binding.fileSystem.name() === fileName);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
BindingsTestRunner.addFooJSFile = function(fs) {
|
|
48
|
+
return fs.root.mkdir('devtools')
|
|
49
|
+
.mkdir('persistence')
|
|
50
|
+
.mkdir('resources')
|
|
51
|
+
.addFile('foo.js', '\n\nwindow.foo = ()=>\'foo\';\n');
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
BindingsTestRunner.initializeTestMapping = function() {
|
|
55
|
+
return new TestMapping(self.Persistence.persistence);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
class TestMapping {
|
|
59
|
+
constructor(persistence) {
|
|
60
|
+
this._persistence = persistence;
|
|
61
|
+
persistence.addNetworkInterceptor(() => true);
|
|
62
|
+
this._bindings = new Set();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async addBinding(urlSuffix) {
|
|
66
|
+
if (this._findBinding(urlSuffix)) {
|
|
67
|
+
TestRunner.addResult(`FAILED TO ADD BINDING: binding already exists for ${urlSuffix}`);
|
|
68
|
+
TestRunner.completeTest();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const networkUISourceCode = await TestRunner.waitForUISourceCode(urlSuffix, Workspace.projectTypes.Network);
|
|
73
|
+
const fileSystemUISourceCode = await TestRunner.waitForUISourceCode(urlSuffix, Workspace.projectTypes.FileSystem);
|
|
74
|
+
const binding = new Persistence.PersistenceBinding(networkUISourceCode, fileSystemUISourceCode);
|
|
75
|
+
this._bindings.add(binding);
|
|
76
|
+
await this._persistence.addBindingForTest(binding);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
_findBinding(urlSuffix) {
|
|
80
|
+
for (const binding of this._bindings) {
|
|
81
|
+
if (binding.network.url().endsWith(urlSuffix)) {
|
|
82
|
+
return binding;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async removeBinding(urlSuffix) {
|
|
90
|
+
const binding = this._findBinding(urlSuffix);
|
|
91
|
+
|
|
92
|
+
if (!binding) {
|
|
93
|
+
TestRunner.addResult(`FAILED TO REMOVE BINDING: binding does not exist for ${urlSuffix}`);
|
|
94
|
+
TestRunner.completeTest();
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
this._bindings.delete(binding);
|
|
99
|
+
await this._persistence.removeBindingForTest(binding);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
async dispose() {
|
|
103
|
+
for (const binding of this._bindings) {
|
|
104
|
+
await this._persistence.removeBindingForTest(binding);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
this._bindings.clear();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2020 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
import './BindingsTestRunner.js';
|
|
6
|
+
import './IsolatedFilesystemTestRunner.js';
|
|
7
|
+
import './AutomappingTestRunner.js';
|
|
8
|
+
import './PersistenceTestRunner.js';
|
|
9
|
+
import './OverridesTestRunner.js';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DOMBreakpointsSidebarPane as e,EventListenerBreakpointsSidebarPane as r,CSPViolationBreakpointsSidebarPane as a,ObjectEventListenersSidebarPane as n,XHRBreakpointsSidebarPane as o}from"./browser_debugger.js";self.BrowserDebugger=self.BrowserDebugger||{},BrowserDebugger=BrowserDebugger||{},BrowserDebugger.DOMBreakpointsSidebarPane=e.DOMBreakpointsSidebarPane,BrowserDebugger.DOMBreakpointsSidebarPane.BreakpointTypeLabels=e.BreakpointTypeLabels,BrowserDebugger.DOMBreakpointsSidebarPane.ContextMenuProvider=e.ContextMenuProvider,BrowserDebugger.EventListenerBreakpointsSidebarPane=r.EventListenerBreakpointsSidebarPane,BrowserDebugger.CSPViolationBreakpointsSidebarPane=a.CSPViolationBreakpointsSidebarPane,BrowserDebugger.ObjectEventListenersSidebarPane=n.ObjectEventListenersSidebarPane,BrowserDebugger.ObjectEventListenersSidebarPane._objectGroupName=n.objectGroupName,BrowserDebugger.XHRBreakpointsSidebarPane=o.XHRBreakpointsSidebarPane;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ls as e}from"../platform/platform.js";import{Runtime as t}from"../root/root.js";import{ViewManager as i}from"../ui/ui.js";let o,r;async function a(){return o||(await t.Runtime.instance().loadModulePromise("browser_debugger"),o=await import("./browser_debugger.js")),o}async function n(){return r||(await t.Runtime.instance().loadModulePromise("sources"),r=await import("../sources/sources.js")),r}i.registerViewExtension({loadView:async()=>(await a()).EventListenerBreakpointsSidebarPane.EventListenerBreakpointsSidebarPane.instance(),id:"sources.eventListenerBreakpoints",location:"sources.sidebar-bottom",commandPrompt:()=>e`Show Elements`,title:()=>e`Event Listener Breakpoints`,order:9,persistence:"permanent"}),i.registerViewExtension({loadView:async()=>(await a()).CSPViolationBreakpointsSidebarPane.CSPViolationBreakpointsSidebarPane.instance(),id:"sources.cspViolationBreakpoints",location:"sources.sidebar-bottom",commandPrompt:()=>e`Show CSP Violation Breakpoints`,title:()=>e`CSP Violation Breakpoints`,order:10,persistence:"permanent"}),i.registerViewExtension({loadView:async()=>(await a()).XHRBreakpointsSidebarPane.XHRBreakpointsSidebarPane.instance(),id:"sources.xhrBreakpoints",location:"sources.sidebar-bottom",commandPrompt:()=>e`Show XHR/fetch Breakpoints`,title:()=>e`XHR/fetch Breakpoints`,order:5,persistence:"permanent",hasToolbar:!0}),i.registerViewExtension({loadView:async()=>(await a()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"sources.domBreakpoints",location:"sources.sidebar-bottom",commandPrompt:()=>e`Show DOM Breakpoints`,title:()=>e`DOM Breakpoints`,order:7,persistence:"permanent"}),i.registerViewExtension({loadView:async()=>(await a()).ObjectEventListenersSidebarPane.ObjectEventListenersSidebarPane.instance(),id:"sources.globalListeners",location:"sources.sidebar-bottom",commandPrompt:()=>e`Show Global Listeners`,title:()=>e`Global Listeners`,order:8,persistence:"permanent",hasToolbar:!0}),i.registerViewExtension({loadView:async()=>(await a()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"elements.domBreakpoints",location:"elements-sidebar",commandPrompt:()=>e`Show DOM Breakpoints`,title:()=>e`DOM Breakpoints`,order:6,persistence:"permanent"}),i.registerViewExtension({location:"navigator-view",id:"navigator-network",title:()=>e`Page`,commandPrompt:()=>e`Show Page`,order:2,persistence:"permanent",loadView:async()=>(await n()).SourcesNavigator.NetworkNavigatorView.instance()}),i.registerViewExtension({location:"navigator-view",id:"navigator-overrides",title:()=>e`Overrides`,commandPrompt:()=>e`Show Overrides`,order:4,persistence:"permanent",loadView:async()=>(await n()).SourcesNavigator.OverridesNavigatorView.instance()}),i.registerViewExtension({location:"navigator-view",id:"navigator-contentScripts",title:()=>e`Content scripts`,commandPrompt:()=>e`Show Content scripts`,order:5,persistence:"permanent",loadView:async()=>(await n()).SourcesNavigator.ContentScriptsNavigatorView.instance()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SDKModel as e,DebuggerModel as t,DOMDebuggerModel as n,RuntimeModel as i}from"../sdk/sdk.js";import{ls as s}from"../platform/platform.js";import{Widget as o,TreeOutline as a,Context as r,UIUtils as d,ARIAUtils as c,ViewManager as l,ListModel as h,ListControl as p,ContextMenu as m,Toolbar as u,InplaceEditor as k}from"../ui/ui.js";import{UIString as g,Linkifier as b,Revealer as _}from"../common/common.js";import{DebuggerPausedMessage as f}from"../sources/sources.js";import{EventListenersView as E}from"../event_listeners/event_listeners.js";class x extends o.VBox{constructor(n,i,s,o){super(!0),this._categoriesTreeOutline=new a.TreeOutlineInShadow,this._categoriesTreeOutline.registerRequiredCSS("browser_debugger/categorizedBreakpointsSidebarPane.css",{enableLegacyPatching:!0}),this._categoriesTreeOutline.setShowSelectionOnKeyboardFocus(!0),this.contentElement.appendChild(this._categoriesTreeOutline.element),this._viewId=s,this._detailsPausedReason=o,this._categories=new Map;for(const e of n)this._categories.has(e)||this._createCategory(e);if(n.length>0){const e=this._categories.get(n[0]);e&&e.element.select()}this._breakpoints=new Map;for(const e of i)this._createBreakpoint(e);e.TargetManager.instance().addModelListener(t.DebuggerModel,t.Events.DebuggerPaused,this._update,this),e.TargetManager.instance().addModelListener(t.DebuggerModel,t.Events.DebuggerResumed,this._update,this),r.Context.instance().addFlavorChangeListener(e.Target,this._update,this)}focus(){this._categoriesTreeOutline.forceSelect()}_createCategory(e){const t=d.CheckboxLabel.create(e);t.checkboxElement.addEventListener("click",this._categoryCheckboxClicked.bind(this,e),!0),t.checkboxElement.tabIndex=-1;const n=new a.TreeElement(t);n.listItemElement.addEventListener("keydown",(t=>{if(" "===t.key){const n=this._categories.get(e);n&&n.checkbox.click(),t.consume(!0)}})),t.checkboxElement.addEventListener("focus",(()=>n.listItemElement.focus())),c.setChecked(n.listItemElement,!1),this._categoriesTreeOutline.appendChild(n),this._categories.set(e,{element:n,checkbox:t.checkboxElement})}_createBreakpoint(e){const t=d.CheckboxLabel.create(e.title());t.classList.add("source-code"),t.checkboxElement.addEventListener("click",this._breakpointCheckboxClicked.bind(this,e),!0),t.checkboxElement.tabIndex=-1;const n=new a.TreeElement(t);n.listItemElement.addEventListener("keydown",(t=>{if(" "===t.key){const n=this._breakpoints.get(e);n&&n.checkbox.click(),t.consume(!0)}})),t.checkboxElement.addEventListener("focus",(()=>n.listItemElement.focus())),c.setChecked(n.listItemElement,!1),n.listItemElement.createChild("div","breakpoint-hit-marker");const i=this._categories.get(e.category());i&&i.element.appendChild(n),this._breakpoints.set(e,{element:n,checkbox:t.checkboxElement})}_getBreakpointFromPausedDetails(e){return null}_update(){const n=r.Context.instance().flavor(e.Target),i=n?n.model(t.DebuggerModel):null,o=i?i.debuggerPausedDetails():null;if(!o||o.reason!==this._detailsPausedReason||!o.auxData)return void(this._highlightedElement&&(c.setDescription(this._highlightedElement,""),this._highlightedElement.classList.remove("breakpoint-hit"),delete this._highlightedElement));const a=this._getBreakpointFromPausedDetails(o);if(!a)return;l.ViewManager.instance().showView(this._viewId);const d=this._categories.get(a.category());d&&d.element.expand();const h=this._breakpoints.get(a);h&&(this._highlightedElement=h.element.listItemElement,c.setDescription(this._highlightedElement,s`breakpoint hit`),this._highlightedElement.classList.add("breakpoint-hit"))}_categoryCheckboxClicked(e){const t=this._categories.get(e);if(!t)return;const n=t.checkbox.checked;c.setChecked(t.element.listItemElement,n);for(const t of this._breakpoints.keys())if(t.category()===e){const e=this._breakpoints.get(t);e&&(e.checkbox.checked=n,this._toggleBreakpoint(t,n))}}_toggleBreakpoint(e,t){e.setEnabled(t)}_breakpointCheckboxClicked(e){const t=this._breakpoints.get(e);if(!t)return;this._toggleBreakpoint(e,t.checkbox.checked),c.setChecked(t.element.listItemElement,t.checkbox.checked);let n=!1,i=!1;for(const t of this._breakpoints.keys())t.category()===e.category()&&(t.enabled()?n=!0:i=!0);const s=this._categories.get(e.category());s&&(s.checkbox.checked=n,s.checkbox.indeterminate=n&&i,s.checkbox.indeterminate?c.setCheckboxAsIndeterminate(s.element.listItemElement):c.setChecked(s.element.listItemElement,n))}}let v;class B extends x{constructor(){const e=n.DOMDebuggerManager.instance().cspViolationBreakpoints(),t=e.map((e=>e.category()));t.sort(),super(t,e,"sources.cspViolationBreakpoints",Protocol.Debugger.PausedEventReason.CSPViolation)}static instance(){return v||(v=new B),v}_getBreakpointFromPausedDetails(e){const t=e.auxData&&e.auxData.violationType?e.auxData.violationType:"",i=n.DOMDebuggerManager.instance().cspViolationBreakpoints().find((e=>e.type()===t));return i||null}_toggleBreakpoint(e,t){e.setEnabled(t),n.DOMDebuggerManager.instance().updateCSPViolationBreakpoints()}}var M=Object.freeze({__proto__:null,CSPViolationBreakpointsSidebarPane:B});let D;class C extends o.VBox{constructor(){super(!0),this.registerRequiredCSS("browser_debugger/domBreakpointsSidebarPane.css",{enableLegacyPatching:!1}),this.elementToCheckboxes=new WeakMap,this._emptyElement=this.contentElement.createChild("div","gray-info-message"),this._emptyElement.textContent=g.UIString("No breakpoints"),this._breakpoints=new h.ListModel,this._list=new p.ListControl(this._breakpoints,this,p.ListMode.NonViewport),this.contentElement.appendChild(this._list.element),this._list.element.classList.add("breakpoint-list","hidden"),c.markAsList(this._list.element),c.setAccessibleName(this._list.element,s`DOM Breakpoints list`),this._emptyElement.tabIndex=-1,e.TargetManager.instance().addModelListener(n.DOMDebuggerModel,n.Events.DOMBreakpointAdded,this._breakpointAdded,this),e.TargetManager.instance().addModelListener(n.DOMDebuggerModel,n.Events.DOMBreakpointToggled,this._breakpointToggled,this),e.TargetManager.instance().addModelListener(n.DOMDebuggerModel,n.Events.DOMBreakpointsRemoved,this._breakpointsRemoved,this);for(const t of e.TargetManager.instance().models(n.DOMDebuggerModel)){t.retrieveDOMBreakpoints();for(const e of t.domBreakpoints())this._addBreakpoint(e)}this._highlightedBreakpoint=null,this._update()}static instance(){return D||(D=new C),D}createElementForItem(e){const t=document.createElement("div");t.classList.add("breakpoint-entry"),t.addEventListener("contextmenu",this._contextMenu.bind(this,e),!0),c.markAsListitem(t),t.tabIndex=-1;const n=d.CheckboxLabel.create(void 0,e.enabled),i=n.checkboxElement;i.addEventListener("click",this._checkboxClicked.bind(this,e),!1),i.tabIndex=-1,this.elementToCheckboxes.set(t,i),t.appendChild(n),t.addEventListener("keydown",(e=>{" "===e.key&&(n.checkboxElement.click(),e.consume(!0))}));const o=document.createElement("div");o.classList.add("dom-breakpoint"),t.appendChild(o);const a=document.createElement("div"),r=L.get(e.type);a.textContent=r||null,c.setAccessibleName(i,s`${r}`);const l=document.createElement("monospace");l.style.display="block",o.appendChild(l),b.Linkifier.linkify(e.node,{preventKeyboardFocus:!0,tooltip:void 0}).then((e=>{l.appendChild(e),c.setAccessibleName(i,s`${r}: ${e.deepTextContent()}`)})),o.appendChild(a);const h=e.enabled?s`checked`:s`unchecked`;return e===this._highlightedBreakpoint?(t.classList.add("breakpoint-hit"),c.setDescription(t,s`${h} breakpoint hit`),c.setDescription(i,s`breakpoint hit`)):c.setDescription(t,h),this._emptyElement.classList.add("hidden"),this._list.element.classList.remove("hidden"),t}heightForItem(e){return 0}isItemSelectable(e){return!0}updateSelectedItemARIA(e,t){return!0}selectedItemChanged(e,t,n,i){n&&(n.tabIndex=-1),i&&(this.setDefaultFocusedElement(i),i.tabIndex=0,this.hasFocus()&&i.focus())}_breakpointAdded(e){this._addBreakpoint(e.data)}_breakpointToggled(e){const t=this.hasFocus(),n=e.data;this._list.refreshItem(n),t&&this.focus()}_breakpointsRemoved(e){const t=this.hasFocus(),n=e.data;let i=-1;for(const e of n){const t=this._breakpoints.indexOf(e);t>=0&&(this._breakpoints.remove(t),i=t)}if(0===this._breakpoints.length)this._emptyElement.classList.remove("hidden"),this.setDefaultFocusedElement(this._emptyElement),this._list.element.classList.add("hidden");else if(i>=0){const e=this._breakpoints.at(i);e&&this._list.selectItem(e)}t&&this.focus()}_addBreakpoint(e){this._breakpoints.insertWithComparator(e,((e,t)=>e.type>t.type?-1:e.type<t.type?1:0)),this._list.selectedItem()&&this.hasFocus()||this._list.selectItem(this._breakpoints.at(0))}_contextMenu(e,t){const n=new m.ContextMenu(t);n.defaultSection().appendItem(s`Reveal DOM node in Elements panel`,(()=>_.reveal(e.node))),n.defaultSection().appendItem(g.UIString("Remove breakpoint"),(()=>{e.domDebuggerModel.removeDOMBreakpoint(e.node,e.type)})),n.defaultSection().appendItem(g.UIString("Remove all DOM breakpoints"),(()=>{e.domDebuggerModel.removeAllDOMBreakpoints()})),n.show()}_checkboxClicked(e,t){e.domDebuggerModel.toggleDOMBreakpoint(e,!!t.target&&t.target.checked)}flavorChanged(e){this._update()}_update(){const e=r.Context.instance().flavor(t.DebuggerPausedDetails);if(this._highlightedBreakpoint){const e=this._highlightedBreakpoint;this._highlightedBreakpoint=null,this._list.refreshItem(e)}if(!e||!e.auxData||e.reason!==Protocol.Debugger.PausedEventReason.DOM)return;const i=e.debuggerModel.target().model(n.DOMDebuggerModel);if(!i)return;const s=i.resolveDOMBreakpointData(e.auxData);if(s){for(const e of this._breakpoints)e.node===s.node&&e.type===s.type&&(this._highlightedBreakpoint=e);this._highlightedBreakpoint&&this._list.refreshItem(this._highlightedBreakpoint),l.ViewManager.instance().showView("sources.domBreakpoints")}}}const L=new Map([[Protocol.DOMDebugger.DOMBreakpointType.SubtreeModified,g.UIString("Subtree modified")],[Protocol.DOMDebugger.DOMBreakpointType.AttributeModified,g.UIString("Attribute modified")],[Protocol.DOMDebugger.DOMBreakpointType.NodeRemoved,g.UIString("Node removed")]]);var I=Object.freeze({__proto__:null,DOMBreakpointsSidebarPane:C,BreakpointTypeLabels:L,ContextMenuProvider:class{appendApplicableItems(e,t,i){const s=i;if(s.pseudoType())return;const o=s.domModel().target().model(n.DOMDebuggerModel);if(!o)return;function a(e){o&&(o.hasDOMBreakpoint(s,e)?o.removeDOMBreakpoint(s,e):o.setDOMBreakpoint(s,e))}const r=t.debugSection().appendSubMenuItem(g.UIString("Break on"));for(const e of Object.values(Protocol.DOMDebugger.DOMBreakpointType)){const t=f.BreakpointTypeNouns.get(e);t&&r.defaultSection().appendCheckboxItem(t,a.bind(null,e),o.hasDOMBreakpoint(s,e))}}}});let w;class y extends x{constructor(){const e=n.DOMDebuggerManager.instance().eventListenerBreakpoints().map((e=>e.category()));e.sort();super(e,n.DOMDebuggerManager.instance().eventListenerBreakpoints(),"sources.eventListenerBreakpoints",Protocol.Debugger.PausedEventReason.EventListener)}static instance(){return w||(w=new y),w}_getBreakpointFromPausedDetails(e){return n.DOMDebuggerManager.instance().resolveEventListenerBreakpoint(e.auxData)}}var O=Object.freeze({__proto__:null,EventListenerBreakpointsSidebarPane:y});let S;class P extends o.VBox{constructor(){super(),this._refreshButton=new u.ToolbarButton(s`Refresh global listeners`,"largeicon-refresh"),this._refreshButton.addEventListener(u.ToolbarButton.Events.Click,this._refreshClick,this),this._refreshButton.setEnabled(!1),this._eventListenersView=new E.EventListenersView(this.update.bind(this),!0),this._eventListenersView.show(this.element),this.setDefaultFocusedChild(this._eventListenersView)}static instance(){return S||(S=new P),S}toolbarItems(){return[this._refreshButton]}update(){this._lastRequestedContext&&(this._lastRequestedContext.runtimeModel.releaseObjectGroup(R),delete this._lastRequestedContext);const e=r.Context.instance().flavor(i.ExecutionContext);if(!e)return this._eventListenersView.reset(),void this._eventListenersView.addEmptyHolderIfNeeded();this._lastRequestedContext=e,Promise.all([this._windowObjectInContext(e)]).then(this._eventListenersView.addObjects.bind(this._eventListenersView))}wasShown(){super.wasShown(),r.Context.instance().addFlavorChangeListener(i.ExecutionContext,this.update,this),this._refreshButton.setEnabled(!0),this.update()}willHide(){super.willHide(),r.Context.instance().removeFlavorChangeListener(i.ExecutionContext,this.update,this),this._refreshButton.setEnabled(!1)}_windowObjectInContext(e){return e.evaluate({expression:"self",objectGroup:R,includeCommandLineAPI:!1,silent:!0,returnByValue:!1,generatePreview:!1,timeout:void 0,throwOnSideEffect:void 0,disableBreaks:void 0,replMode:void 0,allowUnsafeEvalBlockedByCSP:void 0},!1,!1).then((e=>"error"in e||e.exceptionDetails?null:e.object))}_refreshClick(e){e.data.consume(),this.update()}}const R="object-event-listeners-sidebar-pane";var T=Object.freeze({__proto__:null,ObjectEventListenersSidebarPane:P,objectGroupName:R});const V=new WeakMap,A=new WeakMap;let F;class j extends o.VBox{constructor(){super(!0),this.registerRequiredCSS("browser_debugger/xhrBreakpointsSidebarPane.css",{enableLegacyPatching:!0}),this._breakpoints=new h.ListModel,this._list=new p.ListControl(this._breakpoints,this,p.ListMode.NonViewport),this.contentElement.appendChild(this._list.element),this._list.element.classList.add("breakpoint-list","hidden"),c.markAsList(this._list.element),c.setAccessibleName(this._list.element,s`XHR/fetch Breakpoints`),this._emptyElement=this.contentElement.createChild("div","gray-info-message"),this._emptyElement.textContent=g.UIString("No breakpoints"),this._breakpointElements=new Map,this._addButton=new u.ToolbarButton(s`Add XHR/fetch breakpoint`,"largeicon-add"),this._addButton.addEventListener(u.ToolbarButton.Events.Click,(e=>{this._addButtonClicked()})),this._emptyElement.addEventListener("contextmenu",this._emptyElementContextMenu.bind(this),!0),this._emptyElement.tabIndex=-1,this._restoreBreakpoints(),this._update()}static instance(){return F||(F=new j),F}toolbarItems(){return[this._addButton]}_emptyElementContextMenu(e){const t=new m.ContextMenu(e);t.defaultSection().appendItem(g.UIString("Add breakpoint"),this._addButtonClicked.bind(this)),t.show()}async _addButtonClicked(){await l.ViewManager.instance().showView("sources.xhrBreakpoints");const e=document.createElement("p");e.classList.add("breakpoint-condition"),e.textContent=g.UIString("Break when URL contains:");const t=e.createChild("span","breakpoint-condition-input");function i(t,i,s){this._removeListElement(e),t&&(n.DOMDebuggerManager.instance().addXHRBreakpoint(s,!0),this._setBreakpoint(s)),this._update()}c.setAccessibleName(t,s`URL Breakpoint`),this._addListElement(e,this._list.element.firstChild);const o=new k.Config(i.bind(this,!0),i.bind(this,!1));k.InplaceEditor.startEditing(t,o)}heightForItem(e){return 0}isItemSelectable(e){return!0}_setBreakpoint(e){-1!==this._breakpoints.indexOf(e)?this._list.refreshItem(e):this._breakpoints.insertWithComparator(e,((e,t)=>e>t?1:e<t?-1:0)),this._list.selectedItem()&&this.hasFocus()||this._list.selectItem(this._breakpoints.at(0))}createElementForItem(e){const t=document.createElement("div");c.markAsListitem(t);const i=t.createChild("div","breakpoint-entry");V.set(t,i);const o=n.DOMDebuggerManager.instance().xhrBreakpoints().get(e)||!1;c.markAsCheckbox(i),c.setChecked(i,o),i.addEventListener("contextmenu",this._contextMenu.bind(this,e),!0);const a=e?g.UIString('URL contains "%s"',e):g.UIString("Any XHR or fetch"),r=d.CheckboxLabel.create(a,o);return c.markAsHidden(r),c.setAccessibleName(i,a),i.appendChild(r),r.checkboxElement.addEventListener("click",this._checkboxClicked.bind(this,e,o),!1),i.addEventListener("click",(t=>{t.target===i&&this._checkboxClicked(e,o)}),!1),A.set(i,r.checkboxElement),r.checkboxElement.tabIndex=-1,i.tabIndex=-1,e===this._list.selectedItem()&&(i.tabIndex=0,this.setDefaultFocusedElement(i)),i.addEventListener("keydown",(t=>{let n=!1;" "===t.key?(this._checkboxClicked(e,o),n=!0):"Enter"===t.key&&(this._labelClicked(e),n=!0),n&&t.consume(!0)})),e===this._hitBreakpoint&&(i.classList.add("breakpoint-hit"),c.setDescription(i,s`breakpoint hit`)),r.classList.add("cursor-auto"),r.textElement.addEventListener("dblclick",this._labelClicked.bind(this,e),!1),this._breakpointElements.set(e,t),t}selectedItemChanged(e,t,n,i){if(n){const e=V.get(n);if(!e)throw new Error("Expected breakpoint entry to be found for an element");e.tabIndex=-1}if(i){const e=V.get(i);if(!e)throw new Error("Expected breakpoint entry to be found for an element");this.setDefaultFocusedElement(e),e.tabIndex=0,this.hasFocus()&&e.focus()}}updateSelectedItemARIA(e,t){return!0}_removeBreakpoint(e){const t=this._breakpoints.indexOf(e);t>=0&&this._breakpoints.remove(t),this._breakpointElements.delete(e),this._update()}_addListElement(e,t){this._list.element.insertBefore(e,t),this._emptyElement.classList.add("hidden"),this._list.element.classList.remove("hidden")}_removeListElement(e){this._list.element.removeChild(e),this._list.element.firstElementChild||(this._emptyElement.classList.remove("hidden"),this._list.element.classList.add("hidden"))}_contextMenu(e,t){const i=new m.ContextMenu(t);const s=g.UIString("Remove all breakpoints");i.defaultSection().appendItem(g.UIString("Add breakpoint"),this._addButtonClicked.bind(this)),i.defaultSection().appendItem(g.UIString("Remove breakpoint"),function(){n.DOMDebuggerManager.instance().removeXHRBreakpoint(e),this._removeBreakpoint(e)}.bind(this)),i.defaultSection().appendItem(s,function(){for(const e of this._breakpointElements.keys())n.DOMDebuggerManager.instance().removeXHRBreakpoint(e),this._removeBreakpoint(e);this._update()}.bind(this)),i.show()}_checkboxClicked(e,t){const i=this.hasFocus();n.DOMDebuggerManager.instance().toggleXHRBreakpoint(e,!t),this._list.refreshItem(e),this._list.selectItem(e),i&&this.focus()}_labelClicked(e){const t=this._breakpointElements.get(e),i=document.createElement("span");function s(s,o,a){if(this._removeListElement(i),s){n.DOMDebuggerManager.instance().removeXHRBreakpoint(e),this._removeBreakpoint(e);let i=!0;if(t){const e=V.get(t),n=e?A.get(e):void 0;n&&(i=n.checked)}n.DOMDebuggerManager.instance().addXHRBreakpoint(a,i),this._setBreakpoint(a),this._list.selectItem(a)}else t&&t.classList.remove("hidden");this.focus()}i.classList.add("breakpoint-condition"),i.textContent=e,t&&(this._list.element.insertBefore(i,t),t.classList.add("hidden"));const o=new k.Config(s.bind(this,!0),s.bind(this,!1));k.InplaceEditor.startEditing(i,o)}flavorChanged(e){this._update()}_update(){const e=0===this._breakpoints.length;this._list.element.classList.toggle("hidden",e),this._emptyElement.classList.toggle("hidden",!e);const n=r.Context.instance().flavor(t.DebuggerPausedDetails);if(!n||n.reason!==Protocol.Debugger.PausedEventReason.XHR){if(this._hitBreakpoint){const e=this._hitBreakpoint;delete this._hitBreakpoint,this._breakpoints.indexOf(e)>=0&&this._list.refreshItem(e)}return}const i=n.auxData&&n.auxData.breakpointURL;this._hitBreakpoint=i,this._breakpoints.indexOf(i)<0||(this._list.refreshItem(i),l.ViewManager.instance().showView("sources.xhrBreakpoints"))}_restoreBreakpoints(){const e=n.DOMDebuggerManager.instance().xhrBreakpoints();for(const t of e.keys())this._setBreakpoint(t)}}var U=Object.freeze({__proto__:null,XHRBreakpointsSidebarPane:j});export{M as CSPViolationBreakpointsSidebarPane,I as DOMBreakpointsSidebarPane,O as EventListenerBreakpointsSidebarPane,T as ObjectEventListenersSidebarPane,U as XHRBreakpointsSidebarPane};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as RootModule from'../root/root.js';RootModule.Runtime.cachedResources.set("browser_debugger/domBreakpointsSidebarPane.css","/*\n * Copyright 2017 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.breakpoint-list {\n padding-bottom: 3px;\n}\n\n.breakpoint-list .dom-breakpoint > div {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.breakpoint-entry {\n display: flex;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n padding: 2px 0;\n}\n\n.breakpoint-entry:focus-visible {\n background-color: var(--focus-bg-color);\n}\n\n.breakpoint-list .breakpoint-entry:hover {\n background-color: var(--color-background-elevation-2);\n}\n\n.breakpoint-hit {\n background-color: var(--color-background-elevation-2);\n border-right: 3px solid var(--color-details-hairline);\n color: var(--color-text-primary);\n}\n\n@media (forced-colors: active) {\n .breakpoint-entry:focus-visible,\n .breakpoint-list .breakpoint-entry:hover {\n forced-color-adjust: none;\n background-color: Highlight;\n }\n\n .breakpoint-entry:focus-visible *,\n .breakpoint-list .breakpoint-entry:hover * {\n color: HighlightText;\n }\n}\n\n/*# sourceURL=browser_debugger/domBreakpointsSidebarPane.css */");RootModule.Runtime.cachedResources.set("browser_debugger/categorizedBreakpointsSidebarPane.css","/*\n * Copyright 2016 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n:host {\n margin: 0;\n padding: 2px 4px;\n min-height: 18px;\n}\n\n.tree-outline {\n padding: 0;\n}\n\n.tree-outline li {\n margin-left: 14px;\n user-select: text;\n cursor: default;\n}\n\n.tree-outline li.parent {\n margin-left: 1px;\n}\n\n.tree-outline li:not(.parent)::before {\n display: none;\n}\n\n.breakpoint-hit {\n background-color: rgb(255 255 194);\n}\n\n:host-context(.-theme-with-dark-background) .breakpoint-hit {\n background-color: hsl(46deg 98% 22%);\n color: #ccc;\n}\n\n.breakpoint-hit .breakpoint-hit-marker {\n background-color: rgb(255 255 194);\n border-right: 3px solid rgb(107 97 48);\n height: 18px;\n left: 0;\n margin-left: -30px;\n position: absolute;\n right: -4px;\n z-index: -1;\n}\n\n:host-context(.-theme-with-dark-background) .breakpoint-hit .breakpoint-hit-marker {\n background-color: hsl(46deg 98% 22%);\n}\n\n/*# sourceURL=browser_debugger/categorizedBreakpointsSidebarPane.css */");RootModule.Runtime.cachedResources.set("browser_debugger/xhrBreakpointsSidebarPane.css","/*\n * Copyright 2017 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.breakpoint-list {\n padding-bottom: 3px;\n}\n\n.breakpoint-list .editing.being-edited {\n overflow: hidden;\n white-space: nowrap;\n}\n\n.breakpoint-condition {\n display: block;\n margin-top: 4px;\n margin-bottom: 4px;\n margin-left: 23px;\n margin-right: 8px;\n}\n\n.breakpoint-condition-input {\n display: block;\n margin-left: 0;\n margin-right: 0;\n outline: none !important;\n border: 1px solid rgb(66% 66% 66%);\n}\n\n.breakpoint-entry {\n white-space: nowrap;\n padding: 2px 0;\n}\n\n.breakpoint-list .breakpoint-entry:hover {\n background-color: #eee;\n}\n\n.breakpoint-list .breakpoint-entry:focus-visible {\n background-color: var(--focus-bg-color);\n}\n\n.breakpoint-entry [is=dt-checkbox] {\n max-width: 100%;\n}\n\n.breakpoint-hit {\n background-color: rgb(255 255 194);\n border-right: 3px solid rgb(107 97 48);\n}\n\n:host-context(.-theme-with-dark-background) .breakpoint-hit {\n background-color: hsl(46deg 98% 22%);\n color: #ccc;\n}\n\n@media (forced-colors: active) {\n .breakpoint-list .breakpoint-entry:hover,\n .breakpoint-list .breakpoint-entry:focus-visible {\n forced-color-adjust: none;\n background-color: Highlight;\n }\n\n .breakpoint-list .breakpoint-entry:hover *,\n .breakpoint-list .breakpoint-entry:focus-visible * {\n color: HighlightText;\n }\n}\n\n/*# sourceURL=browser_debugger/xhrBreakpointsSidebarPane.css */");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Settings as e}from"../common/common.js";import{i18n as t}from"../i18n/i18n.js";const r={network:"Network",preserveLog:"Preserve log",preserve:"preserve",clear:"clear",reset:"reset",preserveLogOnPageReload:"Preserve log on page reload / navigation",doNotPreserveLogOnPageReload:"Do not preserve log on page reload / navigation",recordNetworkLog:"Record network log"},o=t.registerUIStrings("browser_sdk/browser_sdk-meta.ts",r),g=t.getLazilyComputedLocalizedString.bind(void 0,o);e.registerSettingExtension({category:e.SettingCategoryObject.NETWORK,title:g(r.preserveLog),settingName:"network_log.preserve-log",settingType:e.SettingTypeObject.BOOLEAN,defaultValue:!1,tags:[g(r.preserve),g(r.clear),g(r.reset)],options:[{value:!0,title:g(r.preserveLogOnPageReload)},{value:!1,title:g(r.doNotPreserveLogOnPageReload)}]}),e.registerSettingExtension({category:e.SettingCategoryObject.NETWORK,title:g(r.recordNetworkLog),settingName:"network_log.record-log",settingType:e.SettingTypeObject.BOOLEAN,defaultValue:!0,storageType:e.SettingStorageType.Session});export{r as UIStrings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Revealer as e,ObjectWrapper as s,EventTarget as t}from"../common/common.js";import{DebuggerModel as i,ContentSecurityPolicyIssue as r,SDKModel as n,IssuesModel as o,FrameManager as a,Issue as d,LogModel as u,ConsoleModel as c,RuntimeModel as l,NetworkLog as h,NetworkRequest as g,Cookie as m}from"../sdk/sdk.js";import{LiveLocation as f,DebuggerWorkspaceBinding as p}from"../bindings/bindings.js";import{Marked as v}from"../third_party/marked/marked.js";import{UISourceCode as I}from"../workspace/workspace.js";import{Runtime as M}from"../root/root.js";class _{constructor(e){this.locationPool=new f.LiveLocationPool,this.issueMessages=new Array,this.issuesManager=e,this.issuesManager.addEventListener(L.IssueAdded,this.onIssueAdded,this),this.issuesManager.addEventListener(L.FullUpdateRequired,this.onFullUpdateRequired,this)}onIssueAdded(e){const{issue:s}=e.data;this.addIssue(s)}addIssue(e){if(!this.isTrustedTypeIssue(e))return;const s=e.model();if(!s)return;const t=s.target().model(i.DebuggerModel),r=e.details().sourceCodeLocation;if(r&&t){const s=t.createRawLocationByURL(r.url,r.lineNumber,r.columnNumber);s&&this.addIssueMessageToScript(e,s)}}onFullUpdateRequired(){this.resetMessages();const e=this.issuesManager.issues();for(const s of e)this.addIssue(s)}createIssueDescriptionFromMarkdown(e){const s=function(e){const s=M.cachedResources.get(e);if(!s)throw new Error(`Markdown file ${e} not found. Declare it as a resource in the module.json file`);return s}(e.file);return function(e){return 0===e.length||"heading"!==e[0].type||1!==e[0].depth?null:e[0].text}(v.lexer(s))}addIssueMessageToScript(s,t){const i=s.getDescription();if(i&&"file"in i){const r=this.createIssueDescriptionFromMarkdown(i);if(r){const i=()=>{e.reveal(s)};this.issueMessages.push(new y(r,t,this.locationPool,i))}}}isTrustedTypeIssue(e){return e instanceof r.ContentSecurityPolicyIssue&&e.code()===r.trustedTypesSinkViolationCode||e.code()===r.trustedTypesPolicyViolationCode}resetMessages(){for(const e of this.issueMessages)e.dispose();this.issueMessages=[],this.locationPool.disposeAll()}}class y{constructor(e,s,t,i){this.text=e,this.level=I.Message.Level.Issue,this.uiMessage=void 0,this.clickHandler=i,p.DebuggerWorkspaceBinding.instance().createLiveLocation(s,this.updateLocation.bind(this),t)}async updateLocation(e){this.uiMessage&&this.uiMessage.remove();const s=await e.uiLocation();s&&(this.uiMessage=s.uiSourceCode.addLineMessage(this.level,this.text,s.lineNumber,s.columnNumber,this.clickHandler))}dispose(){this.uiMessage?.remove()}getText(){return this.text}getLevel(){return this.level}}let T=null;class w extends s.ObjectWrapper{constructor(){super(),this._eventListeners=new WeakMap,n.TargetManager.instance().observeModels(o.IssuesModel,this),this._issues=new Map,this._filteredIssues=new Map,this._hasSeenTopFrameNavigated=!1,a.FrameManager.instance().addEventListener(a.Events.TopFrameNavigated,this._onTopFrameNavigated,this),a.FrameManager.instance().addEventListener(a.Events.FrameAddedToTarget,this._onFrameAddedToTarget,this),this._showThirdPartySettingsChangeListener=null,this._sourceFrameIssuesManager=new _(this)}static instance({forceNew:e}={forceNew:!1}){return T&&!e||(T=new w),T}reloadForAccurateInformationRequired(){return!this._hasSeenTopFrameNavigated}_onTopFrameNavigated(e){const{frame:s}=e.data,t=new Map;for(const[e,i]of this._issues.entries())i.isAssociatedWithRequestId(s.loaderId)&&t.set(e,i);this._issues=t,this._hasSeenTopFrameNavigated=!0,this._updateFilteredIssues()}_onFrameAddedToTarget(e){const{frame:s}=e.data;s.isTopFrame()&&this._updateFilteredIssues()}modelAdded(e){const s=e.addEventListener(o.Events.IssueAdded,this._issueAdded,this);this._eventListeners.set(e,s)}modelRemoved(e){const s=this._eventListeners.get(e);s&&t.EventTarget.removeEventListeners([s])}_issueAdded(e){const{issuesModel:s,issue:t}=e.data;if(!t.getDescription())return;const i=t.primaryKey();this._issues.has(i)||(this._issues.set(i,t),this._issueFilter(t)&&(this._filteredIssues.set(i,t),this.dispatchEventToListeners(L.IssueAdded,{issuesModel:s,issue:t})),this.dispatchEventToListeners(L.IssuesCountUpdated))}issues(){return this._filteredIssues.values()}numberOfIssues(){return this._filteredIssues.size}numberOfAllStoredIssues(){return this._issues.size}_issueFilter(e){if(!this._showThirdPartySettingsChangeListener){const e=d.getShowThirdPartyIssuesSetting();this._showThirdPartySettingsChangeListener=e.addChangeListener((()=>{this._updateFilteredIssues()}))}return d.getShowThirdPartyIssuesSetting().get()||!e.isCausedByThirdParty()}_updateFilteredIssues(){this._filteredIssues.clear();for(const[e,s]of this._issues)this._issueFilter(s)&&this._filteredIssues.set(e,s);this.dispatchEventToListeners(L.FullUpdateRequired),this.dispatchEventToListeners(L.IssuesCountUpdated)}}const L={IssuesCountUpdated:Symbol("IssuesCountUpdated"),IssueAdded:Symbol("IssueAdded"),FullUpdateRequired:Symbol("FullUpdateRequired")};var F=Object.freeze({__proto__:null,IssuesManager:w,Events:L});const A=new WeakMap;class k{constructor(){n.TargetManager.instance().observeModels(u.LogModel,this)}modelAdded(e){const s=[];s.push(e.addEventListener(u.Events.EntryAdded,this._logEntryAdded,this)),A.set(e,s)}modelRemoved(e){const s=A.get(e);s&&t.EventTarget.removeEventListeners(s)}_logEntryAdded(e){const s=e.data,t=s.logModel.target(),i=new c.ConsoleMessage(t.model(l.RuntimeModel),s.entry.source,s.entry.level,s.entry.text,void 0,s.entry.url,s.entry.lineNumber,void 0,[s.entry.text,...s.entry.args||[]],s.entry.stackTrace,s.entry.timestamp,void 0,void 0,s.entry.workerId);if(s.entry.networkRequestId&&h.NetworkLog.instance().associateConsoleMessageWithRequest(i,s.entry.networkRequestId),i.source===c.MessageSource.Worker){const e=i.workerId||"";if(n.TargetManager.instance().targetById(e))return;setTimeout((()=>{n.TargetManager.instance().targetById(e)||c.ConsoleModel.instance().addMessage(i)}),1e3)}else c.ConsoleModel.instance().addMessage(i)}}var E=Object.freeze({__proto__:null,LogManager:k});function b(e,s){if(s instanceof g.NetworkRequest)return function(e,s){return e.filter((e=>{for(const t of e.requests())if(t.requestId===s.requestId())return!0;return!1}))}(e,s);if(s instanceof m.Cookie)return function(e,s,t,i){return e.filter((e=>{for(const r of e.cookies())if(r.domain===s&&r.name===t&&r.path===i)return!0;return!1}))}(e,s.domain(),s.name(),s.path());throw new Error("issues can not be associated with "+JSON.stringify(s))}var C=Object.freeze({__proto__:null,IssuesAssociatable:undefined,issuesAssociatedWith:b,hasIssues:function(e){return b(Array.from(w.instance().issues()),e).length>0},hasIssueOfCategory:function(e,s){return b(Array.from(w.instance().issues()),e).some((e=>e.getCategory()===s))},reveal:async function(s,t){const i=b(Array.from(w.instance().issues()),s).filter((e=>!t||e.getCategory()===t));if(i.length>0)return e.reveal(i[0])}});const S=new k;w.instance();export{F as IssuesManager,E as LogManager,C as RelatedIssue,S as logManager};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ChangesHighlighter as e,ChangesSidebar as a,ChangesView as g}from"./changes.js";self.Changes=self.Changes||{},Changes=Changes||{},Changes.ChangesHighlighter=e.ChangesHighlighter,Changes.ChangesSidebar=a.ChangesSidebar,Changes.ChangesView=g.ChangesView,Changes.ChangesView.RowType=g.RowType,Changes.ChangesView.DiffUILocationRevealer=g.DiffUILocationRevealer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i18n as e}from"../i18n/i18n.js";import{Runtime as n}from"../root/root.js";import{ViewManager as i}from"../ui/ui.js";let s;const a={changes:"Changes",showChanges:"Show Changes"},t=e.registerUIStrings("changes/changes-meta.ts",a),o=e.getLazilyComputedLocalizedString.bind(void 0,t);i.registerViewExtension({location:"drawer-view",id:"changes.changes",title:o(a.changes),commandPrompt:o(a.showChanges),persistence:"closeable",loadView:async()=>(await async function(){return s||(await n.Runtime.instance().loadModulePromise("changes"),s=await import("./changes.js")),s}()).ChangesView.ChangesView.instance()});export{a as UIStrings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EventTarget as e,Revealer as t}from"../common/common.js";import{Diff as i}from"../diff/diff.js";import{i18n as s}from"../i18n/i18n.js";import{Widget as n,TreeOutline as o,ARIAUtils as r,Icon as a,SplitWidget as d,EmptyWidget as l,Toolbar as c,ViewManager as h}from"../ui/ui.js";import{WorkspaceDiff as u}from"../workspace_diff/workspace_diff.js";import{StringUtilities as f}from"../platform/platform.js";import{ScriptSnippetFileSystem as p}from"../snippets/snippets.js";import{UISourceCode as g}from"../workspace/workspace.js";import{CodeMirrorTextEditor as m}from"../text_editor/text_editor.js";function _(e,t){const i=t.diffRows,s=t.baselineLines,n=t.currentLines,o=CodeMirror.getMode({},t.mimeType);function r(e,t,i,s){let n=t;for(;n<i&&n<s.length;){const t=new CodeMirror.StringStream(s[n]);for(t.eol()&&o.blankLine&&o.blankLine(e);!t.eol();)o.token&&o.token(t,e),t.start=t.pos;n++}}return{startState:function(){return{rowNumber:0,diffTokenIndex:0,currentLineNumber:0,baselineLineNumber:0,currentSyntaxState:CodeMirror.startState(o),baselineSyntaxState:CodeMirror.startState(o),syntaxPosition:0,diffPosition:0,syntaxStyle:"",diffStyle:""}},token:function(e,t){const a=i[t.rowNumber];if(!a)return e.next(),"";!function(e,t,i){t>e.baselineLineNumber&&(r(e.baselineSyntaxState,e.baselineLineNumber,t,s),e.baselineLineNumber=t),i>e.currentLineNumber&&(r(e.currentSyntaxState,e.currentLineNumber,i,n),e.currentLineNumber=i)}(t,a.baselineLineNumber-1,a.currentLineNumber-1);let d="";0===e.pos&&(d+=" line-background-"+a.type+" line-"+a.type);const l=t.diffPosition>=t.syntaxPosition;return t.diffPosition<=t.syntaxPosition&&(t.diffPosition+=a.tokens[t.diffTokenIndex].text.length,t.diffStyle=a.tokens[t.diffTokenIndex].className,t.diffTokenIndex++),l&&(!o.token||"deletion"!==a.type&&"addition"!==a.type&&"equal"!==a.type?(t.syntaxStyle="",t.syntaxPosition=1/0):(t.syntaxStyle=o.token(e,"deletion"===a.type?t.baselineSyntaxState:t.currentSyntaxState)||"",t.syntaxPosition=e.pos)),e.pos=Math.min(t.syntaxPosition,t.diffPosition),d+=" "+t.syntaxStyle,d+=" "+t.diffStyle,e.eol()&&(t.rowNumber++,"deletion"===a.type?t.baselineLineNumber++:t.currentLineNumber++,t.diffPosition=0,t.syntaxPosition=0,t.diffTokenIndex=0),d},blankLine:function(e){const t=i[e.rowNumber];if(e.rowNumber++,e.syntaxPosition=0,e.diffPosition=0,e.diffTokenIndex=0,!t)return"";let s="";return o.blankLine&&("equal"===t.type||"addition"===t.type?(s=o.blankLine(e.currentSyntaxState),e.currentLineNumber++):"deletion"===t.type&&(s=o.blankLine(e.baselineSyntaxState),e.baselineLineNumber++)),s+" line-background-"+t.type+" line-"+t.type},copyState:function(e){const t=Object.assign({},e);return t.currentSyntaxState=CodeMirror.copyState(o,e.currentSyntaxState),t.baselineSyntaxState=CodeMirror.copyState(o,e.baselineSyntaxState),t}}}CodeMirror.defineMode("devtools-diff",_);var S=Object.freeze({__proto__:null,ChangesHighlighter:_});const b={sFromSourceMap:"{PH1} (from source map)"},C=s.registerUIStrings("changes/ChangesSidebar.ts",b),y=s.getLocalizedString.bind(void 0,C);class x extends n.Widget{constructor(e){super(),this._treeoutline=new o.TreeOutlineInShadow,this._treeoutline.setFocusable(!1),this._treeoutline.registerRequiredCSS("changes/changesSidebar.css",{enableLegacyPatching:!0}),this._treeoutline.setComparator(((e,t)=>f.compare(e.titleAsText(),t.titleAsText()))),this._treeoutline.addEventListener(o.Events.ElementSelected,this._selectionChanged,this),r.markAsTablist(this._treeoutline.contentElement),this.element.appendChild(this._treeoutline.element),this._treeElements=new Map,this._workspaceDiff=e,this._workspaceDiff.modifiedUISourceCodes().forEach(this._addUISourceCode.bind(this)),this._workspaceDiff.addEventListener(u.Events.ModifiedStatusChanged,this._uiSourceCodeMofiedStatusChanged,this)}selectUISourceCode(e,t){const i=this._treeElements.get(e);i&&i.select(t)}selectedUISourceCode(){return this._treeoutline.selectedTreeElement?this._treeoutline.selectedTreeElement.uiSourceCode:null}_selectionChanged(){this.dispatchEventToListeners("SelectedUISourceCodeChanged")}_uiSourceCodeMofiedStatusChanged(e){e.data.isModified?this._addUISourceCode(e.data.uiSourceCode):this._removeUISourceCode(e.data.uiSourceCode)}_removeUISourceCode(e){const t=this._treeElements.get(e);if(this._treeElements.delete(e),this._treeoutline.selectedTreeElement===t){const e=t.previousSibling||t.nextSibling;e?e.select(!0):(t.deselect(),this._selectionChanged())}t&&(this._treeoutline.removeChild(t),t.dispose()),0===this._treeoutline.rootElement().childCount()&&this._treeoutline.setFocusable(!1)}_addUISourceCode(e){const t=new w(e);this._treeElements.set(e,t),this._treeoutline.setFocusable(!0),this._treeoutline.appendChild(t),this._treeoutline.selectedTreeElement||t.select(!0)}}class w extends o.TreeElement{constructor(e){super(),this.uiSourceCode=e,this.listItemElement.classList.add("navigator-"+e.contentType().name()+"-tree-item"),r.markAsTab(this.listItemElement);let t="largeicon-navigator-file";p.isSnippetsUISourceCode(this.uiSourceCode)&&(t="largeicon-navigator-snippet");const i=a.Icon.create(t,"icon");this.setLeadingIcons([i]),this._eventListeners=[e.addEventListener(g.Events.TitleChanged,this._updateTitle,this),e.addEventListener(g.Events.WorkingCopyChanged,this._updateTitle,this),e.addEventListener(g.Events.WorkingCopyCommitted,this._updateTitle,this)],this._updateTitle()}_updateTitle(){let e=this.uiSourceCode.displayName();this.uiSourceCode.isDirty()&&(e="*"+e),this.title=e;let t=this.uiSourceCode.url();this.uiSourceCode.contentType().isFromSourceMap()&&(t=y(b.sFromSourceMap,{PH1:this.uiSourceCode.displayName()})),this.tooltip=t}dispose(){e.EventTarget.removeEventListeners(this._eventListeners)}}var v=Object.freeze({__proto__:null,UIStrings:b,ChangesSidebar:x,UISourceCodeTreeElement:w});const L={deletions:"Deletion:{PH1}",additions:"Addition:{PH1}"},I=s.registerUIStrings("changes/ChangesTextEditor.ts",L),T=s.getLocalizedString.bind(void 0,I);class k extends m.CodeMirrorTextEditor{constructor(e){e.inputStyle="devToolsAccessibleDiffTextArea",super(e),this.codeMirror().setOption("gutters",["CodeMirror-linenumbers","changes-diff-gutter"]),this.codeMirror().setOption("extraKeys",{Enter:!1,Space:!1,Left:function(e){const t=e.getScrollInfo();t.left>0&&e.scrollTo(t.left-Math.round(t.clientWidth/6),null)},Right:function(e){const t=e.getScrollInfo();e.scrollTo(t.left+Math.round(t.clientWidth/6),null)}})}updateDiffGutter(e){this.codeMirror().eachLine((t=>{const i=this.codeMirror().getLineNumber(t),s=e[i];let n;"deletion"===s.type?(n=document.createElement("div"),n.classList.add("deletion"),n.classList.add("changes-diff-gutter-marker"),n.textContent="-"):"addition"===s.type&&(n=document.createElement("div"),n.classList.add("addition"),n.classList.add("changes-diff-gutter-marker"),n.textContent="+"),n&&this.codeMirror().setGutterMarker(t,"changes-diff-gutter",n)}))}}class D extends m.DevToolsAccessibleTextArea{reset(e){super.reset(e);const t=this.cm.doc;if(this.textAreaBusy(Boolean(e))||"object"!=typeof t.modeOption)return;const i=t.modeOption.diffRows[this.cm.getCursor().line].type;"deletion"===i&&(this.textarea.value=T(L.deletions,{PH1:this.textarea.value})),"addition"===i&&(this.textarea.value=T(L.additions,{PH1:this.textarea.value})),this.prevInput=this.textarea.value}}CodeMirror.inputStyles.devToolsAccessibleDiffTextArea=D;var E=Object.freeze({__proto__:null,UIStrings:L,ChangesTextEditor:k,DevToolsAccessibleDiffTextArea:D});const M={changesDiffViewer:"Changes diff viewer",revertAllChangesToCurrentFile:"Revert all changes to current file",noChanges:"No changes",binaryData:"Binary data",sInsertion:"{PH1} insertion (+),",sInsertions:"{PH1} insertions (+),",sDeletion:"{PH1} deletion (-)",sDeletions:"{PH1} deletions (-)",SkippingDMatchingLines:"( … Skipping {PH1} matching lines … )"},U=s.registerUIStrings("changes/ChangesView.ts",M),N=s.getLocalizedString.bind(void 0,U);let P;class R extends n.VBox{constructor(){super(!0),this.registerRequiredCSS("changes/changesView.css",{enableLegacyPatching:!0});const e=new d.SplitWidget(!0,!1),t=new n.Widget;e.setMainWidget(t),e.show(this.contentElement),this._emptyWidget=new l.EmptyWidget(""),this._emptyWidget.show(t.element),this._workspaceDiff=u.workspaceDiff(),this._changesSidebar=new x(this._workspaceDiff),this._changesSidebar.addEventListener("SelectedUISourceCodeChanged",this._selectedUISourceCodeChanged,this),e.setSidebarWidget(this._changesSidebar),this._selectedUISourceCode=null,this._diffRows=[],this._maxLineDigits=1,this._editor=new k({bracketMatchingSetting:void 0,devtoolsAccessibleName:N(M.changesDiffViewer),lineNumbers:!0,lineWrapping:!1,mimeType:void 0,autoHeight:void 0,padBottom:void 0,maxHighlightLength:1/0,placeholder:void 0,lineWiseCopyCut:void 0,inputStyle:void 0}),this._editor.setReadOnly(!0);const i=t.element.createChild("div","editor-container");r.markAsTabpanel(i),this._editor.show(i),this._editor.hideWidget(),self.onInvokeElement(this._editor.element,this._click.bind(this)),this._toolbar=new c.Toolbar("changes-toolbar",t.element);const s=new c.ToolbarButton(N(M.revertAllChangesToCurrentFile),"largeicon-undo");s.addEventListener(c.ToolbarButton.Events.Click,this._revert.bind(this)),this._toolbar.appendToolbarItem(s),this._diffStats=new c.ToolbarText(""),this._toolbar.appendToolbarItem(this._diffStats),this._toolbar.setEnabled(!1),this._hideDiff(N(M.noChanges)),this._selectedUISourceCodeChanged()}static instance(e={forceNew:null}){const{forceNew:t}=e;return P&&!t||(P=new R),P}_selectedUISourceCodeChanged(){this._revealUISourceCode(this._changesSidebar.selectedUISourceCode())}_revert(){const e=this._selectedUISourceCode;e&&this._workspaceDiff.revertToOriginal(e)}_click(e){const i=this._editor.selection();if(!i.isEmpty()||!this._selectedUISourceCode)return;const s=this._diffRows[i.startLine];t.reveal(this._selectedUISourceCode.uiLocation(s.currentLineNumber-1,i.startColumn),!1),e.consume(!0)}_revealUISourceCode(e){this._selectedUISourceCode!==e&&(this._selectedUISourceCode&&this._workspaceDiff.unsubscribeFromDiffChange(this._selectedUISourceCode,this._refreshDiff,this),e&&this.isShowing()&&this._workspaceDiff.subscribeToDiffChange(e,this._refreshDiff,this),this._selectedUISourceCode=e,this._refreshDiff())}wasShown(){this._refreshDiff()}_refreshDiff(){if(!this.isShowing())return;if(!this._selectedUISourceCode)return void this._renderDiffRows(null);const e=this._selectedUISourceCode;e.contentType().isTextType()?this._workspaceDiff.requestDiff(e).then((t=>{this._selectedUISourceCode===e&&this._renderDiffRows(t)})):this._hideDiff(N(M.binaryData))}_hideDiff(e){this._diffStats.setText(""),this._toolbar.setEnabled(!1),this._editor.hideWidget(),this._emptyWidget.text=e,this._emptyWidget.showWidget()}_renderDiffRows(e){if(this._diffRows=[],!e||1===e.length&&e[0][0]===i.Operation.Equal)return void this._hideDiff(N(M.noChanges));let t=0,s=0,n=0,o=0;const r=[],a=[];for(let n=0;n<e.length;++n){const o=e[n];switch(o[0]){case i.Operation.Equal:this._diffRows.push(...c(o[1],0===n,n===e.length-1)),r.push(...o[1]),a.push(...o[1]);break;case i.Operation.Insert:for(const e of o[1])this._diffRows.push(u(e,"addition"));t+=o[1].length,a.push(...o[1]);break;case i.Operation.Delete:if(s+=o[1].length,r.push(...o[1]),e[n+1]&&e[n+1][0]===i.Operation.Insert)n++,this._diffRows.push(...h(o[1].join("\n"),e[n][1].join("\n"))),t+=e[n][1].length,a.push(...e[n][1]);else for(const e of o[1])this._diffRows.push(u(e,"deletion"))}}this._maxLineDigits=Math.ceil(Math.log10(Math.max(n,o)));let d="";d=N(1===t?M.sInsertion:M.sInsertions,{PH1:t});let l="";function c(e,t,i){const s=[];if(!t){for(let t=0;t<3&&t<e.length;t++)s.push(u(e[t],"equal"));e.length>7&&!i&&s.push(u(N(M.SkippingDMatchingLines,{PH1:e.length-6}),"spacer"))}if(!i){const i=Math.max(e.length-3-1,t?0:3);let r=e.length-3-1;t||(r-=3),r>0&&(o+=r,n+=r);for(let t=i;t<e.length;t++)s.push(u(e[t],"equal"))}return s}function h(e,t){const s=i.DiffWrapper.charDiff(e,t,!0),n=[u("","deletion")],o=[u("","addition")];for(const e of s){const t=e[1],s=e[0],r=s===i.Operation.Equal?"":"inner-diff",a=t.split("\n");for(let e=0;e<a.length;e++)e>0&&s!==i.Operation.Insert&&n.push(u("","deletion")),e>0&&s!==i.Operation.Delete&&o.push(u("","addition")),a[e]&&(s!==i.Operation.Insert&&n[n.length-1].tokens.push({text:a[e],className:r}),s!==i.Operation.Delete&&o[o.length-1].tokens.push({text:a[e],className:r}))}return n.concat(o)}function u(e,t){return"addition"===t&&n++,"deletion"===t&&o++,"equal"===t&&(o++,n++),{baselineLineNumber:o,currentLineNumber:n,tokens:e?[{text:e,className:"inner-diff"}]:[],type:t}}l=N(1===s?M.sDeletion:M.sDeletions,{PH1:s}),this._diffStats.setText(`${d} ${l}`),this._toolbar.setEnabled(!0),this._emptyWidget.hideWidget(),this._editor.operation((()=>{this._editor.showWidget(),this._editor.setHighlightMode({name:"devtools-diff",diffRows:this._diffRows,mimeType:this._selectedUISourceCode.mimeType(),baselineLines:r,currentLines:a}),this._editor.setText(this._diffRows.map((e=>e.tokens.map((e=>e.text)).join(""))).join("\n")),this._editor.setLineNumberFormatter(this._lineFormatter.bind(this)),this._editor.updateDiffGutter(this._diffRows)}))}_lineFormatter(e){const t=this._diffRows[e-1];let i="deletion"===t.type,s="addition"===t.type;"equal"===t.type&&(i=!0,s=!0);return(i?String(t.baselineLineNumber):"").padStart(this._maxLineDigits," ")+" "+(s?String(t.currentLineNumber):"").padStart(this._maxLineDigits," ")}}var W=Object.freeze({__proto__:null,UIStrings:M,ChangesView:R,DiffUILocationRevealer:class{async reveal(e,t){if(!(e instanceof u.DiffUILocation))throw new Error("Internal error: not a diff ui location");await h.ViewManager.instance().showView("changes.changes"),R.instance()._changesSidebar.selectUISourceCode(e.uiSourceCode,t)}}});export{S as ChangesHighlighter,v as ChangesSidebar,E as ChangesTextEditor,W as ChangesView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as RootModule from'../root/root.js';RootModule.Runtime.cachedResources.set("changes/changesView.css","/*\n * Copyright (c) 2017 The Chromium Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n[slot=insertion-point-main] {\n flex-direction: column;\n display: flex;\n}\n\n[slot=insertion-point-sidebar] {\n overflow: auto;\n}\n\n.editor-container {\n flex: 1;\n}\n\n:focus.selected {\n background-color: var(--selection-bg-color);\n color: #fff;\n}\n\n.CodeMirror-lines:not(:active) {\n cursor: default !important;\n}\n\n.CodeMirror-line:hover {\n cursor: default !important;\n background-color: rgb(0 0 255 / 5%);\n}\n\n.CodeMirror .CodeMirror-linebackground.spacer {\n text-align: center;\n color: rgb(0 0 0 / 50%);\n background-color: rgb(0 0 255 / 10%);\n}\n\n.CodeMirror .equal > span > span {\n opacity: 50%;\n}\n\n.CodeMirror .CodeMirror-selectedtext:not(.CodeMirror-persist-highlight) {\n opacity: 100%;\n}\n\n.CodeMirror .CodeMirror-linebackground.addition,\n.-theme-preserve,\n.changes-diff-gutter-marker.addition {\n background-color: hsl(144deg 55% 49% / 20%);\n}\n\n.CodeMirror .CodeMirror-linebackground.deletion,\n.-theme-preserve,\n.changes-diff-gutter-marker.deletion {\n background-color: rgb(255 0 0 / 20%);\n}\n\n.CodeMirror .addition .cm-inner-diff:not(.CodeMirror-selectedtext),\n.-theme-preserve {\n background-color: hsl(144deg 55% 49% / 30%);\n}\n\n.CodeMirror .deletion .cm-inner-diff:not(.CodeMirror-selectedtext),\n.-theme-preserve {\n background-color: rgb(255 0 0 / 30%);\n}\n\n.changes-toolbar {\n background-color: var(--toolbar-bg-color);\n border-top: var(--divider-border);\n}\n\n.changes-diff-gutter {\n width: 20px;\n}\n\n.changes-diff-gutter-marker {\n text-align: center;\n}\n\n/*# sourceURL=changes/changesView.css */");RootModule.Runtime.cachedResources.set("changes/changesSidebar.css","li .icon {\n margin: -3px -5px -3px -5px;\n background: linear-gradient(45deg, hsl(0deg 0% 50%), hsl(0deg 0% 70%));\n}\n\n.tree-outline li {\n min-height: 20px;\n}\n\n.tree-outline li:hover:not(.selected) .selection {\n display: block;\n background-color: var(--item-hover-color);\n}\n\n.navigator-fs-tree-item .icon {\n background: linear-gradient(45deg, hsl(28deg 75% 50%), hsl(28deg 75% 70%));\n}\n\n.navigator-sm-script-tree-item .icon,\n.navigator-script-tree-item .icon,\n.navigator-snippet-tree-item .icon {\n background: linear-gradient(45deg, hsl(48deg 70% 50%), hsl(48deg 70% 70%));\n}\n\n.navigator-sm-stylesheet-tree-item .icon,\n.navigator-stylesheet-tree-item .icon {\n background: linear-gradient(45deg, hsl(256deg 50% 50%), hsl(256deg 50% 70%));\n}\n\n.navigator-image-tree-item .icon,\n.navigator-font-tree-item .icon {\n background: linear-gradient(45deg, hsl(109deg 33% 50%), hsl(109deg 33% 70%));\n}\n\n@media (forced-colors: active) {\n li .icon,\n .navigator-fs-tree-item .icon,\n .navigator-sm-script-tree-item .icon,\n .navigator-script-tree-item .icon,\n .navigator-snippet-tree-item .icon,\n .navigator-sm-stylesheet-tree-item .icon,\n .navigator-stylesheet-tree-item .icon,\n .navigator-image-tree-item .icon,\n .navigator-font-tree-item .icon {\n background-color: ButtonText;\n background-image: none;\n forced-color-adjust: none;\n }\n}\n\n/*# sourceURL=changes/changesSidebar.css */");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={};(function(){var t=this||self;function r(r,i){r=r.split(".");var n,e=t;r[0]in e||void 0===e.execScript||e.execScript("var "+r[0]);for(;r.length&&(n=r.shift());)r.length||void 0===i?e=e[n]&&e[n]!==Object.prototype[n]?e[n]:e[n]={}:e[n]=i}function i(t,r){function i(){}i.prototype=r.prototype,t.m=r.prototype,t.prototype=new i,t.prototype.constructor=t,t.base=function(t,i,n){for(var e=Array(arguments.length-2),a=2;a<arguments.length;a++)e[a-2]=arguments[a];return r.prototype[i].apply(t,e)}}function n(t){if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{const t=Error().stack;t&&(this.stack=t)}t&&(this.message=String(t))}function e(t,r){for(var i="",e=(t=t.split("%s")).length-1,a=0;a<e;a++)i+=t[a]+(a<r.length?r[a]:"%s");n.call(this,i+t[e])}function a(t,r){throw new e("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function o(){this.a=""}function s(){this.l=""}function c(){this.j=""}function f(){this.a=""}i(n,Error),n.prototype.name="CustomError",i(e,n),e.prototype.name="AssertionError",o.prototype.toString=function(){return"SafeScript{"+this.a+"}"},o.prototype.g=function(t){this.a=t},(new o).g(""),s.prototype.toString=function(){return"SafeStyle{"+this.l+"}"},s.prototype.g=function(t){this.l=t},(new s).g(""),c.prototype.toString=function(){return"SafeStyleSheet{"+this.j+"}"},c.prototype.g=function(t){this.j=t},(new c).g(""),f.prototype.toString=function(){return"SafeHtml{"+this.a+"}"},f.prototype.g=function(t){this.a=t},(new f).g("<!DOCTYPE html>"),(new f).g(""),(new f).g("<br>");var h=null;function u(t){var r=t.length,i=3*r/4;i%3?i=Math.floor(i):-1!="=.".indexOf(t[r-1])&&(i=-1!="=.".indexOf(t[r-2])?i-2:i-1);var n=new Uint8Array(i),e=0;return function(t,r){function i(r){for(;n<t.length;){var i=t.charAt(n++),e=h[i];if(null!=e)return e;if(!/^[\s\xa0]*$/.test(i))throw Error("Unknown base64 encoding at char: "+i)}return r}!function(){if(!h){h={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),r=["+/=","+/","-_=","-_.","-_"],i=0;5>i;i++)for(var n=t.concat(r[i].split("")),e=0;e<n.length;e++){var a=n[e];void 0===h[a]&&(h[a]=e)}}}();for(var n=0;;){var e=i(-1),a=i(0),o=i(64),s=i(64);if(64===s&&-1===e)break;r(e<<2|a>>4),64!=o&&(r(a<<4&240|o>>2),64!=s&&r(o<<6&192|s))}}(t,(function(t){n[e++]=t})),n.subarray(0,e)}function p(t){this.b=null,this.a=this.h=this.i=0,t&&g(this,t)}var l=[];function g(t,r){t.b=function(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||"undefined"!=typeof Buffer&&t.constructor===Buffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?u(t):(a("Type not convertible to Uint8Array."),new Uint8Array(0))}(r),t.i=0,t.h=t.b.length,t.a=t.i}function v(t){if(l.length){var r=l.pop();t&&g(r,t),t=r}else t=new p(t);this.a=t,this.h=this.a.a,this.b=this.c=-1,this.f=!1}function y(t){var r=t.a;if(r.a==r.h)return!1;if((r=t.f)||(r=0>(r=t.a).a||r.a>r.h),r)return a("Decoder hit an error"),!1;t.h=t.a.a;var i=t.a.f();return r=i>>>3,0!=(i&=7)&&5!=i&&1!=i&&2!=i&&3!=i&&4!=i?(a("Invalid wire type: %s (at position %s)",i,t.h),t.f=!0,!1):(t.c=r,t.b=i,!0)}function b(t){switch(t.b){case 0:if(0!=t.b)a("Invalid wire type for skipVarintField"),b(t);else{for(t=t.a;128&t.b[t.a];)t.a++;t.a++}break;case 1:1!=t.b?(a("Invalid wire type for skipFixed64Field"),b(t)):(t=t.a).a+=8;break;case 2:if(2!=t.b)a("Invalid wire type for skipDelimitedField"),b(t);else{var r=t.a.f();(t=t.a).a+=r}break;case 5:5!=t.b?(a("Invalid wire type for skipFixed32Field"),b(t)):(t=t.a).a+=4;break;case 3:for(r=t.c;;){if(!y(t)){a("Unmatched start-group tag: stream EOF"),t.f=!0;break}if(4==t.b){t.c!=r&&(a("Unmatched end-group tag"),t.f=!0);break}b(t)}break;default:a("Invalid wire encoding for field.")}}function d(t,r){var i=t.a.f();i=t.a.a+i;for(var n=[];t.a.a<i;)n.push(r.call(t.a));return n}function w(){}p.prototype.reset=function(){this.a=this.i},p.prototype.f=function(){var t=this.b,r=t[this.a],i=127&r;return 128>r?(this.a+=1,i):(i|=(127&(r=t[this.a+1]))<<7,128>r?(this.a+=2,i):(i|=(127&(r=t[this.a+2]))<<14,128>r?(this.a+=3,i):(i|=(127&(r=t[this.a+3]))<<21,128>r?(this.a+=4,i):(i|=(15&(r=t[this.a+4]))<<28,128>r?(this.a+=5,i>>>0):(this.a+=5,128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&this.a++,i)))))},p.prototype.c=p.prototype.f,v.prototype.reset=function(){this.a.reset(),this.b=this.c=-1};var k="function"==typeof Uint8Array,A=Object.freeze?Object.freeze([]):[];function S(t,r){if(r<t.c){r+=t.f;var i=t.a[r];return i===A?t.a[r]=[]:i}if(t.b)return(i=t.b[r])===A?t.b[r]=[]:i}function m(t){var r=t;t=I,r||(r=[]),this.f=-1,this.a=r;t:{if(r=this.a.length){--r;var i=this.a[r];if(!(null===i||"object"!=typeof i||Array.isArray(i)||k&&i instanceof Uint8Array)){this.c=r- -1,this.b=i;break t}}this.c=Number.MAX_VALUE}if(t)for(r=0;r<t.length;r++)if((i=t[r])<this.c)i+=-1,this.a[i]=this.a[i]||A;else{var n=this.c+-1;this.a[n]||(this.b=this.a[n]={}),this.b[i]=this.b[i]||A}}w.prototype.toString=function(){return this.a.toString()},i(m,w);var I=[1,3];function U(t){t=new v(t);for(var r=new m;y(t)&&4!=t.b;)switch(t.c){case 1:for(var i=2==t.b?d(t,t.a.c):[t.a.c()],n=0;n<i.length;n++){var e=i[n];S(r,1).push(e)}break;case 3:for(i=2==t.b?d(t,t.a.c):[t.a.c()],n=0;n<i.length;n++)e=i[n],S(r,3).push(e);break;default:b(t)}return r}r("parseClientVariations",(function(t){var r="";try{r=atob(t)}catch(t){}t=[];for(let i=0;i<r.length;i++)t.push(r.charCodeAt(i));r=null;try{r=U(t)}catch(t){r=U([])}return{variationIds:S(r,1),triggerVariationIds:S(r,3)}})),r("formatClientVariations",(function(t,r="Active client experiment variation IDs.",i="Active client experiment variation IDs that trigger server-side behavior."){const n=t.variationIds;t=t.triggerVariationIds;const e=["message ClientVariations {"];return n.length&&e.push(" // "+r,` repeated int32 variation_id = [${n.join(", ")}];`),t.length&&e.push(" // "+i,` repeated int32 trigger_variation_id = [${t.join(", ")}];`),e.push("}"),e.join("\n")}))}).call(t);const r=function(r){return t.parseClientVariations(r)},i=function(r){return t.formatClientVariations(r)};export{i as formatClientVariations,r as parseClientVariations};
|
|
File without changes
|