chrome-devtools-frontend 1.0.1040337 → 1.0.1070764

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.
Files changed (1002) hide show
  1. package/AUTHORS +4 -1
  2. package/README.md +4 -10
  3. package/config/gni/devtools_grd_files.gni +41 -25
  4. package/config/gni/devtools_image_files.gni +4 -0
  5. package/docs/README.md +81 -0
  6. package/{ARCHITECTURE.md → docs/architecture_of_devtools.md} +5 -6
  7. package/docs/{images/architecture-lazy-loading-features.png → architecture_of_devtools_lazy_loading_features.png} +0 -0
  8. package/docs/{images/module-visibility-rules.png → architecture_of_devtools_module_visibility_rules.png} +0 -0
  9. package/docs/design_guidelines.md +3 -1
  10. package/docs/{images/DevToolsDesignGuidelines.png → design_guidelines.png} +0 -0
  11. package/docs/l10n.md +293 -0
  12. package/docs/navbar.md +13 -0
  13. package/docs/third_party_guidelines.md +78 -0
  14. package/docs/workflows.md +6 -1
  15. package/extension-api/ExtensionAPI.d.ts +1 -0
  16. package/front_end/Images/src/edit-icon.svg +3 -0
  17. package/front_end/Images/src/frame-embedded-icon.svg +61 -0
  18. package/front_end/Images/src/frame-icon.svg +54 -0
  19. package/front_end/Images/src/trash_bin_material_icon.svg +1 -0
  20. package/front_end/Images/src/triangle-expanded.svg +1 -1
  21. package/front_end/Tests.js +0 -25
  22. package/front_end/core/common/ResourceType.ts +7 -1
  23. package/front_end/core/common/Revealer.ts +3 -0
  24. package/front_end/core/common/common.ts +2 -0
  25. package/front_end/core/dom_extension/DOMExtension.ts +1 -138
  26. package/front_end/core/host/InspectorFrontendHostAPI.ts +2 -0
  27. package/front_end/core/host/ResourceLoader.ts +15 -5
  28. package/front_end/core/host/UserMetrics.ts +43 -10
  29. package/front_end/core/i18n/locales/af.json +194 -110
  30. package/front_end/core/i18n/locales/am.json +205 -121
  31. package/front_end/core/i18n/locales/ar.json +196 -112
  32. package/front_end/core/i18n/locales/as.json +195 -111
  33. package/front_end/core/i18n/locales/az.json +196 -112
  34. package/front_end/core/i18n/locales/be.json +193 -109
  35. package/front_end/core/i18n/locales/bg.json +193 -109
  36. package/front_end/core/i18n/locales/bn.json +197 -113
  37. package/front_end/core/i18n/locales/bs.json +194 -110
  38. package/front_end/core/i18n/locales/ca.json +197 -113
  39. package/front_end/core/i18n/locales/cs.json +192 -108
  40. package/front_end/core/i18n/locales/cy.json +193 -109
  41. package/front_end/core/i18n/locales/da.json +194 -110
  42. package/front_end/core/i18n/locales/de.json +199 -115
  43. package/front_end/core/i18n/locales/el.json +191 -107
  44. package/front_end/core/i18n/locales/en-GB.json +193 -109
  45. package/front_end/core/i18n/locales/en-US.json +323 -233
  46. package/front_end/core/i18n/locales/en-XL.json +323 -233
  47. package/front_end/core/i18n/locales/es-419.json +195 -111
  48. package/front_end/core/i18n/locales/es.json +192 -108
  49. package/front_end/core/i18n/locales/et.json +195 -111
  50. package/front_end/core/i18n/locales/eu.json +197 -113
  51. package/front_end/core/i18n/locales/fa.json +243 -159
  52. package/front_end/core/i18n/locales/fi.json +192 -108
  53. package/front_end/core/i18n/locales/fil.json +193 -109
  54. package/front_end/core/i18n/locales/fr-CA.json +198 -114
  55. package/front_end/core/i18n/locales/fr.json +220 -136
  56. package/front_end/core/i18n/locales/gl.json +196 -112
  57. package/front_end/core/i18n/locales/gu.json +196 -112
  58. package/front_end/core/i18n/locales/he.json +201 -117
  59. package/front_end/core/i18n/locales/hi.json +200 -116
  60. package/front_end/core/i18n/locales/hr.json +192 -108
  61. package/front_end/core/i18n/locales/hu.json +195 -111
  62. package/front_end/core/i18n/locales/hy.json +193 -109
  63. package/front_end/core/i18n/locales/id.json +198 -114
  64. package/front_end/core/i18n/locales/is.json +193 -109
  65. package/front_end/core/i18n/locales/it.json +194 -110
  66. package/front_end/core/i18n/locales/ja.json +192 -108
  67. package/front_end/core/i18n/locales/ka.json +194 -110
  68. package/front_end/core/i18n/locales/kk.json +194 -110
  69. package/front_end/core/i18n/locales/km.json +196 -112
  70. package/front_end/core/i18n/locales/kn.json +193 -109
  71. package/front_end/core/i18n/locales/ko.json +196 -112
  72. package/front_end/core/i18n/locales/ky.json +196 -112
  73. package/front_end/core/i18n/locales/lo.json +196 -112
  74. package/front_end/core/i18n/locales/lt.json +192 -108
  75. package/front_end/core/i18n/locales/lv.json +194 -110
  76. package/front_end/core/i18n/locales/mk.json +194 -110
  77. package/front_end/core/i18n/locales/ml.json +194 -110
  78. package/front_end/core/i18n/locales/mn.json +194 -110
  79. package/front_end/core/i18n/locales/mr.json +193 -109
  80. package/front_end/core/i18n/locales/ms.json +193 -109
  81. package/front_end/core/i18n/locales/my.json +198 -114
  82. package/front_end/core/i18n/locales/ne.json +197 -113
  83. package/front_end/core/i18n/locales/nl.json +193 -109
  84. package/front_end/core/i18n/locales/no.json +195 -111
  85. package/front_end/core/i18n/locales/or.json +197 -113
  86. package/front_end/core/i18n/locales/pa.json +195 -111
  87. package/front_end/core/i18n/locales/pl.json +195 -111
  88. package/front_end/core/i18n/locales/pt-PT.json +195 -111
  89. package/front_end/core/i18n/locales/pt.json +194 -110
  90. package/front_end/core/i18n/locales/ro.json +189 -105
  91. package/front_end/core/i18n/locales/ru.json +191 -107
  92. package/front_end/core/i18n/locales/si.json +194 -110
  93. package/front_end/core/i18n/locales/sk.json +192 -108
  94. package/front_end/core/i18n/locales/sl.json +193 -109
  95. package/front_end/core/i18n/locales/sq.json +193 -109
  96. package/front_end/core/i18n/locales/sr-Latn.json +192 -108
  97. package/front_end/core/i18n/locales/sr.json +192 -108
  98. package/front_end/core/i18n/locales/sv.json +191 -107
  99. package/front_end/core/i18n/locales/sw.json +195 -111
  100. package/front_end/core/i18n/locales/ta.json +193 -109
  101. package/front_end/core/i18n/locales/te.json +198 -114
  102. package/front_end/core/i18n/locales/th.json +194 -110
  103. package/front_end/core/i18n/locales/tr.json +192 -108
  104. package/front_end/core/i18n/locales/uk.json +192 -108
  105. package/front_end/core/i18n/locales/ur.json +194 -110
  106. package/front_end/core/i18n/locales/uz.json +190 -106
  107. package/front_end/core/i18n/locales/vi.json +195 -111
  108. package/front_end/core/i18n/locales/zh-HK.json +193 -109
  109. package/front_end/core/i18n/locales/zh-TW.json +195 -111
  110. package/front_end/core/i18n/locales/zh.json +194 -110
  111. package/front_end/core/i18n/locales/zu.json +193 -109
  112. package/front_end/core/platform/dom-utilities.ts +107 -0
  113. package/front_end/core/platform/keyboard-utilities.ts +8 -0
  114. package/front_end/core/platform/string-utilities.ts +10 -0
  115. package/front_end/core/root/Runtime.ts +0 -2
  116. package/front_end/core/sdk/CPUProfileDataModel.ts +11 -4
  117. package/front_end/core/sdk/CPUThrottlingManager.ts +1 -1
  118. package/front_end/core/sdk/CSSMatchedStyles.ts +11 -12
  119. package/front_end/core/sdk/ChildTargetManager.ts +1 -1
  120. package/front_end/core/sdk/ConsoleModel.ts +3 -3
  121. package/front_end/core/sdk/DOMModel.ts +0 -1
  122. package/front_end/core/sdk/DebuggerModel.ts +4 -36
  123. package/front_end/core/sdk/FrameManager.ts +12 -33
  124. package/front_end/core/sdk/NetworkManager.ts +50 -16
  125. package/front_end/core/sdk/NetworkRequest.ts +49 -0
  126. package/front_end/core/sdk/ProfileTreeModel.ts +19 -6
  127. package/front_end/core/sdk/ResourceTreeModel.ts +31 -32
  128. package/front_end/core/sdk/RuntimeModel.ts +1 -1
  129. package/front_end/core/sdk/ScreenCaptureModel.ts +27 -3
  130. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +3 -0
  131. package/front_end/core/sdk/SourceMap.ts +14 -8
  132. package/front_end/core/sdk/SourceMapManager.ts +8 -6
  133. package/front_end/core/sdk/Target.ts +3 -3
  134. package/front_end/core/sdk/TargetManager.ts +12 -1
  135. package/front_end/core/sdk/sdk-legacy.ts +3 -0
  136. package/front_end/core/sdk/sdk-meta.ts +21 -0
  137. package/front_end/devtools_compatibility.js +17 -13
  138. package/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -3
  139. package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +1 -53
  140. package/front_end/entrypoints/formatter_worker/JavaScriptFormatter.ts +1 -0
  141. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +0 -9
  142. package/front_end/entrypoints/formatter_worker/formatter_worker.ts +0 -4
  143. package/front_end/entrypoints/inspector_main/InspectorMain.ts +5 -3
  144. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +35 -0
  145. package/front_end/entrypoints/js_app/js_app.ts +1 -0
  146. package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +17 -9
  147. package/front_end/entrypoints/main/ExecutionContextSelector.ts +1 -1
  148. package/front_end/entrypoints/main/MainImpl.ts +31 -38
  149. package/front_end/entrypoints/main/main-meta.ts +0 -2
  150. package/front_end/entrypoints/node_app/node_app.ts +2 -1
  151. package/front_end/entrypoints/shell/shell.ts +1 -2
  152. package/front_end/generated/ARIAProperties.js +8 -0
  153. package/front_end/generated/InspectorBackendCommands.js +32 -23
  154. package/front_end/generated/SupportedCSSProperties.js +97 -48
  155. package/front_end/generated/protocol-mapping.d.ts +67 -34
  156. package/front_end/generated/protocol-proxy-api.d.ts +52 -29
  157. package/front_end/generated/protocol.ts +344 -89
  158. package/front_end/legacy/legacy-defs.d.ts +1 -3
  159. package/front_end/legacy_test_runner/network_test_runner/network_test_runner.js +1 -1
  160. package/front_end/legacy_test_runner/performance_test_runner/TimelineTestRunner.js +10 -18
  161. package/front_end/legacy_test_runner/sources_test_runner/DebuggerTestRunner.js +3 -3
  162. package/front_end/legacy_test_runner/test_runner/TestRunner.js +24 -0
  163. package/front_end/legacy_test_runner/test_runner/test_runner.js +15 -13
  164. package/front_end/models/bindings/BreakpointManager.ts +38 -21
  165. package/front_end/models/bindings/CSSWorkspaceBinding.ts +19 -18
  166. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +4 -0
  167. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +32 -37
  168. package/front_end/models/bindings/FileUtils.ts +3 -3
  169. package/front_end/models/bindings/IgnoreListManager.ts +14 -3
  170. package/front_end/models/bindings/ResourceMapping.ts +5 -28
  171. package/front_end/models/bindings/ResourceScriptMapping.ts +2 -13
  172. package/front_end/models/bindings/ResourceUtils.ts +1 -2
  173. package/front_end/models/emulation/DeviceModeModel.ts +11 -13
  174. package/front_end/models/extensions/ExtensionAPI.ts +22 -5
  175. package/front_end/models/extensions/ExtensionServer.ts +31 -14
  176. package/front_end/models/formatter/FormatterWorkerPool.ts +0 -31
  177. package/front_end/models/har/HARFormat.ts +68 -5
  178. package/front_end/models/har/Importer.ts +3 -5
  179. package/front_end/models/har/Log.ts +3 -0
  180. package/front_end/models/issues_manager/AttributionReportingIssue.ts +24 -1
  181. package/front_end/models/issues_manager/DeprecationIssue.ts +113 -33
  182. package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +0 -10
  183. package/front_end/models/issues_manager/IssuesManager.ts +3 -12
  184. package/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +5 -6
  185. package/front_end/models/issues_manager/descriptions/arPermissionPolicyNotDelegated.md +11 -0
  186. package/front_end/models/javascript_metadata/NativeFunctions.js +121 -97
  187. package/front_end/models/logs/NetworkLog.ts +11 -11
  188. package/front_end/models/persistence/IsolatedFileSystemManager.ts +5 -1
  189. package/front_end/models/persistence/NetworkPersistenceManager.ts +13 -5
  190. package/front_end/models/persistence/PersistenceImpl.ts +2 -1
  191. package/front_end/models/source_map_scopes/NamesResolver.ts +99 -56
  192. package/front_end/models/text_utils/TextUtils.ts +18 -34
  193. package/front_end/models/text_utils/text_utils-legacy.ts +0 -3
  194. package/front_end/models/timeline_model/TimelineModel.ts +2 -2
  195. package/front_end/models/timeline_model/timeline_model-legacy.ts +0 -9
  196. package/front_end/models/timeline_model/timeline_model.ts +0 -3
  197. package/front_end/models/workspace/UISourceCode.ts +12 -6
  198. package/front_end/panels/accessibility/ARIAAttributesView.ts +2 -1
  199. package/front_end/panels/application/AppManifestView.ts +15 -7
  200. package/front_end/panels/application/ApplicationPanelCacheSection.ts +2 -1
  201. package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -9
  202. package/front_end/panels/application/DOMStorageModel.ts +16 -18
  203. package/front_end/panels/application/IndexedDBModel.ts +97 -134
  204. package/front_end/panels/application/IndexedDBViews.ts +1 -3
  205. package/front_end/panels/application/InterestGroupStorageModel.ts +3 -0
  206. package/front_end/panels/application/InterestGroupTreeElement.ts +1 -1
  207. package/front_end/panels/application/ReportingApiTreeElement.ts +2 -1
  208. package/front_end/panels/application/ReportingApiView.ts +5 -4
  209. package/front_end/panels/application/StorageView.ts +30 -26
  210. package/front_end/panels/application/TrustTokensTreeElement.ts +5 -4
  211. package/front_end/panels/application/application.ts +6 -0
  212. package/front_end/panels/application/components/BackForwardCacheStrings.ts +6 -1
  213. package/front_end/panels/application/components/BackForwardCacheView.ts +149 -92
  214. package/front_end/panels/application/components/FrameDetailsView.ts +66 -7
  215. package/front_end/panels/application/components/OriginTrialTreeView.ts +0 -5
  216. package/front_end/panels/application/components/Prerender2.ts +74 -14
  217. package/front_end/panels/application/components/ProtocolHandlersView.ts +6 -1
  218. package/front_end/panels/application/components/SharedStorageAccessGrid.ts +184 -0
  219. package/front_end/panels/application/components/SharedStorageMetadataView.ts +173 -0
  220. package/front_end/panels/application/components/backForwardCacheView.css +2 -3
  221. package/front_end/panels/application/components/components.ts +4 -0
  222. package/front_end/panels/application/components/frameDetailsReportView.css +1 -1
  223. package/front_end/panels/application/components/permissionsPolicySection.css +1 -1
  224. package/front_end/panels/application/components/protocolHandlersView.css +5 -1
  225. package/front_end/panels/application/components/sharedStorageAccessGrid.css +26 -0
  226. package/front_end/panels/application/components/sharedStorageMetadataView.css +11 -0
  227. package/front_end/panels/application/components/stackTraceLinkButton.css +1 -1
  228. package/front_end/panels/application/components/stackTraceRow.css +1 -1
  229. package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +2 -1
  230. package/front_end/panels/console/ConsoleFormat.ts +2 -2
  231. package/front_end/panels/console/ConsolePinPane.ts +1 -1
  232. package/front_end/panels/console/ConsolePrompt.ts +1 -1
  233. package/front_end/panels/console/ConsoleView.ts +1 -0
  234. package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
  235. package/front_end/panels/console/consoleView.css +5 -0
  236. package/front_end/panels/coverage/CoverageView.ts +2 -2
  237. package/front_end/panels/css_overview/CSSOverviewUnusedDeclarations.ts +1 -1
  238. package/front_end/panels/developer_resources/DeveloperResourcesView.ts +6 -24
  239. package/front_end/panels/developer_resources/developer_resources-meta.ts +1 -1
  240. package/front_end/panels/elements/CSSRuleValidator.ts +147 -65
  241. package/front_end/panels/elements/CSSRuleValidatorHelper.ts +32 -2
  242. package/front_end/panels/elements/ClassesPaneWidget.ts +2 -2
  243. package/front_end/panels/elements/ElementsPanel.ts +19 -1
  244. package/front_end/panels/elements/StylePropertiesSection.ts +3 -1
  245. package/front_end/panels/elements/StylePropertyTreeElement.ts +9 -3
  246. package/front_end/panels/elements/StylesSidebarPane.ts +46 -19
  247. package/front_end/panels/elements/components/CSSHintDetailsView.ts +1 -2
  248. package/front_end/panels/elements/components/CSSPropertyIconResolver.ts +2 -3
  249. package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +19 -2
  250. package/front_end/panels/elements/components/computedStyleProperty.css +3 -3
  251. package/front_end/panels/elements/components/computedStyleTrace.css +8 -4
  252. package/front_end/panels/elements/components/cssHintDetailsView.css +2 -8
  253. package/front_end/panels/elements/elements-meta.ts +28 -0
  254. package/front_end/panels/elements/stylesSectionTree.css +2 -1
  255. package/front_end/panels/elements/stylesSidebarPane.css +7 -0
  256. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +2 -0
  257. package/front_end/panels/issues/IssueView.ts +5 -4
  258. package/front_end/panels/js_profiler/js_profiler-meta.ts +139 -0
  259. package/front_end/panels/lighthouse/LighthouseController.ts +4 -9
  260. package/front_end/panels/lighthouse/LighthousePanel.ts +38 -32
  261. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +16 -15
  262. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +3 -3
  263. package/front_end/panels/lighthouse/LighthouseReportSelector.ts +6 -1
  264. package/front_end/panels/lighthouse/LighthouseReporterTypes.ts +3 -2
  265. package/front_end/panels/lighthouse/LighthouseStartView.ts +162 -89
  266. package/front_end/panels/lighthouse/lighthouseStartView.css +7 -36
  267. package/front_end/panels/media/TickingFlameChart.ts +9 -3
  268. package/front_end/panels/network/NetworkDataGridNode.ts +79 -9
  269. package/front_end/panels/network/NetworkItemView.ts +4 -3
  270. package/front_end/panels/network/NetworkLogView.ts +40 -42
  271. package/front_end/panels/network/NetworkLogViewColumns.ts +2 -1
  272. package/front_end/panels/network/RequestCookiesView.ts +28 -0
  273. package/front_end/panels/network/components/HeaderSectionRow.css +176 -0
  274. package/front_end/panels/network/components/HeaderSectionRow.ts +477 -0
  275. package/front_end/panels/network/components/RequestHeaderSection.css +59 -0
  276. package/front_end/panels/network/components/RequestHeaderSection.ts +133 -0
  277. package/front_end/panels/network/components/RequestHeadersView.css +1 -59
  278. package/front_end/panels/network/components/RequestHeadersView.ts +43 -417
  279. package/front_end/panels/network/components/ResponseHeaderSection.css +21 -0
  280. package/front_end/panels/network/components/ResponseHeaderSection.ts +635 -0
  281. package/front_end/panels/network/components/components.ts +6 -0
  282. package/front_end/panels/network/network-meta.ts +0 -16
  283. package/front_end/panels/network/requestPayloadTree.css +0 -1
  284. package/front_end/panels/profiler/HeapProfileView.ts +7 -6
  285. package/front_end/panels/profiler/LiveHeapProfileView.ts +2 -2
  286. package/front_end/panels/sensors/sensors-meta.ts +0 -10
  287. package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +61 -43
  288. package/front_end/panels/settings/KeybindsSettingsTab.ts +1 -1
  289. package/front_end/panels/settings/SettingsScreen.ts +1 -3
  290. package/front_end/panels/settings/components/syncSection.css +1 -1
  291. package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +38 -35
  292. package/front_end/panels/sources/BreakpointsSidebarPane.ts +433 -14
  293. package/front_end/panels/sources/CallStackSidebarPane.ts +10 -1
  294. package/front_end/panels/sources/CoveragePlugin.ts +1 -1
  295. package/front_end/panels/sources/DebuggerPlugin.ts +316 -109
  296. package/front_end/panels/sources/GoToLineQuickOpen.ts +22 -49
  297. package/front_end/panels/sources/NavigatorView.ts +2 -10
  298. package/front_end/panels/sources/OpenFileQuickOpen.ts +0 -13
  299. package/front_end/panels/sources/OutlineQuickOpen.ts +274 -45
  300. package/front_end/panels/sources/SourcesNavigator.ts +2 -2
  301. package/front_end/panels/sources/SourcesPanel.ts +13 -9
  302. package/front_end/panels/sources/SourcesView.ts +8 -2
  303. package/front_end/panels/sources/TabbedEditorContainer.ts +8 -0
  304. package/front_end/panels/sources/UISourceCodeFrame.ts +81 -34
  305. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
  306. package/front_end/panels/sources/components/BreakpointsView.ts +472 -28
  307. package/front_end/panels/sources/components/BreakpointsViewUtils.ts +195 -0
  308. package/front_end/panels/sources/components/HeadersView.css +5 -1
  309. package/front_end/panels/sources/components/HeadersView.ts +18 -11
  310. package/front_end/panels/sources/components/breakpointsView.css +136 -11
  311. package/front_end/panels/sources/sources-legacy.ts +0 -5
  312. package/front_end/panels/sources/sources-meta.ts +114 -5
  313. package/front_end/panels/sources/sources.ts +0 -2
  314. package/front_end/panels/sources/watchExpressionsSidebarPane.css +10 -6
  315. package/front_end/panels/timeline/PerformanceModel.ts +65 -18
  316. package/front_end/panels/timeline/TimelineController.ts +11 -5
  317. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -49
  318. package/front_end/panels/timeline/TimelineFlameChartView.ts +1 -1
  319. package/front_end/panels/timeline/TimelineLoader.ts +41 -24
  320. package/front_end/panels/timeline/TimelinePanel.ts +155 -57
  321. package/front_end/panels/timeline/TimelineUIUtils.ts +1 -263
  322. package/front_end/panels/webauthn/WebauthnPane.ts +2 -2
  323. package/front_end/panels/webauthn/webauthnPane.css +1 -0
  324. package/front_end/services/puppeteer/PuppeteerConnection.ts +51 -42
  325. package/front_end/third_party/additional_readme_paths.json +0 -1
  326. package/front_end/third_party/chromium/client-variations/ClientVariations.js +1 -1
  327. package/front_end/third_party/codemirror.next/bundle.ts +1 -1
  328. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  329. package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
  330. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +7 -1
  331. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  332. package/front_end/third_party/codemirror.next/package.json +4 -2
  333. package/front_end/third_party/i18n/localized-string-set.ts +9 -1
  334. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +431 -434
  335. package/front_end/third_party/lighthouse/locales/en-US.json +144 -186
  336. package/front_end/third_party/lighthouse/locales/en-XL.json +144 -186
  337. package/front_end/third_party/puppeteer/README.chromium +14 -6
  338. package/front_end/third_party/puppeteer/package/README.md +134 -316
  339. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts +337 -0
  340. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.d.ts.map +1 -0
  341. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js +248 -0
  342. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Browser.js.map +1 -0
  343. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts +148 -0
  344. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.d.ts.map +1 -0
  345. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js +135 -0
  346. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/BrowserContext.js.map +1 -0
  347. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts +2100 -0
  348. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.d.ts.map +1 -0
  349. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js +536 -0
  350. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api/Page.js.map +1 -0
  351. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +2 -2
  352. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  353. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +39 -23
  354. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
  355. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +17 -199
  356. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
  357. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +112 -202
  358. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
  359. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +9 -3
  360. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  361. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +5 -6
  362. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  363. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts +1 -1
  364. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
  365. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js +0 -6
  366. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ChromeTargetManager.js.map +1 -1
  367. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.d.ts +133 -0
  368. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.d.ts.map +1 -0
  369. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/initializePuppeteer.d.ts → cjs/puppeteer/common/Configuration.js} +4 -7
  370. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Configuration.js.map +1 -0
  371. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +24 -0
  372. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
  373. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +67 -28
  374. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
  375. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +11 -2
  376. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
  377. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +7 -5
  378. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
  379. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts +52 -0
  380. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.d.ts.map +1 -0
  381. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{DeviceDescriptors.js → Device.js} +17 -11
  382. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Device.js.map +1 -0
  383. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts +29 -6
  384. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -1
  385. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +69 -46
  386. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -1
  387. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +27 -3
  388. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
  389. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +47 -2
  390. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
  391. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts +16 -1
  392. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -1
  393. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +16 -1
  394. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
  395. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +2 -36
  396. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  397. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +20 -59
  398. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
  399. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts +1 -1
  400. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
  401. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts +47 -21
  402. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.d.ts.map +1 -1
  403. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js +155 -43
  404. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Frame.js.map +1 -1
  405. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +7 -2
  406. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
  407. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +47 -97
  408. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
  409. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.d.ts +39 -0
  410. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.d.ts.map +1 -0
  411. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.js +120 -0
  412. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameTree.js.map +1 -0
  413. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -2
  414. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +2 -2
  415. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts +13 -67
  416. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.d.ts.map +1 -1
  417. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js +124 -511
  418. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/IsolatedWorld.js.map +1 -1
  419. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +5 -5
  420. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
  421. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +7 -9
  422. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  423. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/node/install.d.ts → cjs/puppeteer/common/LazyArg.d.ts} +7 -7
  424. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.d.ts.map +1 -0
  425. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.js +45 -0
  426. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LazyArg.js.map +1 -0
  427. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  428. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +12 -2
  429. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
  430. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +15 -0
  431. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  432. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +15 -0
  433. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
  434. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -4
  435. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  436. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +2 -2
  437. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  438. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/node → cjs/puppeteer/common}/NodeWebSocketTransport.d.ts +1 -1
  439. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NodeWebSocketTransport.d.ts.map +1 -0
  440. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{node → common}/NodeWebSocketTransport.js +1 -15
  441. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NodeWebSocketTransport.js.map +1 -0
  442. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +35 -496
  443. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  444. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +287 -414
  445. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  446. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/common/NetworkConditions.d.ts → cjs/puppeteer/common/PredefinedNetworkConditions.d.ts} +13 -6
  447. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PredefinedNetworkConditions.d.ts.map +1 -0
  448. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{NetworkConditions.js → PredefinedNetworkConditions.js} +12 -8
  449. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PredefinedNetworkConditions.js.map +1 -0
  450. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +36 -61
  451. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
  452. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +32 -66
  453. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
  454. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +26 -34
  455. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -1
  456. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +57 -94
  457. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
  458. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +3 -2
  459. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
  460. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +2 -2
  461. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
  462. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts +52 -0
  463. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.d.ts.map +1 -0
  464. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js +204 -0
  465. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WaitTask.js.map +1 -0
  466. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +4 -5
  467. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
  468. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js +23 -27
  469. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js.map +1 -1
  470. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.d.ts +45 -0
  471. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.d.ts.map +1 -0
  472. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.js +75 -0
  473. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Browser.js.map +1 -0
  474. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.d.ts +28 -0
  475. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.d.ts.map +1 -0
  476. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.js +52 -0
  477. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/BrowserContext.js.map +1 -0
  478. package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/puppeteer.js → cjs/puppeteer/common/bidi/Connection.d.ts} +20 -10
  479. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.d.ts.map +1 -0
  480. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.js +133 -0
  481. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Connection.js.map +1 -0
  482. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.d.ts +28 -0
  483. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.d.ts.map +1 -0
  484. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.js +61 -0
  485. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/bidi/Page.js.map +1 -0
  486. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts +11 -0
  487. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts.map +1 -1
  488. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +0 -4
  489. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -1
  490. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js +25 -59
  491. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -1
  492. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +4 -0
  493. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts.map +1 -1
  494. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js +8 -1
  495. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js.map +1 -1
  496. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts +8 -2
  497. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.d.ts.map +1 -1
  498. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js +8 -2
  499. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/injected.js.map +1 -1
  500. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +1 -1
  501. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +1 -1
  502. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.d.ts +9 -0
  503. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.d.ts.map +1 -0
  504. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.js +71 -0
  505. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/PierceQuerySelector.js.map +1 -0
  506. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts +32 -6
  507. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.d.ts.map +1 -1
  508. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js +30 -7
  509. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/Poller.js.map +1 -1
  510. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.d.ts +39 -0
  511. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.d.ts.map +1 -0
  512. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.js +133 -0
  513. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextContent.js.map +1 -0
  514. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts +28 -0
  515. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.d.ts.map +1 -0
  516. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.js +80 -0
  517. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/TextQuerySelector.js.map +1 -0
  518. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts +24 -0
  519. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -0
  520. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js +42 -0
  521. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/XPathQuerySelector.js.map +1 -0
  522. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts +44 -1
  523. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.d.ts.map +1 -1
  524. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js +52 -3
  525. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/injected.js.map +1 -1
  526. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.d.ts +26 -0
  527. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.d.ts.map +1 -0
  528. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js +58 -0
  529. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/injected/util.js.map +1 -0
  530. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +50 -14
  531. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  532. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +137 -154
  533. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  534. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +6 -0
  535. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  536. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +16 -7
  537. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  538. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +6 -18
  539. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  540. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +88 -28
  541. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -1
  542. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts +4 -18
  543. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  544. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +40 -33
  545. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -1
  546. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +15 -0
  547. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -1
  548. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js +1 -16
  549. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
  550. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts +24 -22
  551. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map +1 -1
  552. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js +94 -130
  553. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js.map +1 -1
  554. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/{Puppeteer.d.ts → PuppeteerNode.d.ts} +74 -43
  555. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts.map +1 -0
  556. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js +271 -0
  557. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.js.map +1 -0
  558. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +21 -5
  559. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -1
  560. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +22 -6
  561. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -1
  562. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +1 -1
  563. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  564. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts +24 -18
  565. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -1
  566. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js +25 -22
  567. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -1
  568. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.d.ts +9 -0
  569. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.d.ts.map +1 -0
  570. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.js +22 -0
  571. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DebuggableDeferredPromise.js.map +1 -0
  572. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts +12 -10
  573. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.d.ts.map +1 -1
  574. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js +17 -44
  575. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/DeferredPromise.js.map +1 -1
  576. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/mitt/index.d.ts +23 -0
  577. package/front_end/third_party/puppeteer/package/lib/cjs/third_party/mitt/index.js +5 -0
  578. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts +337 -0
  579. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.d.ts.map +1 -0
  580. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js +244 -0
  581. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Browser.js.map +1 -0
  582. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts +148 -0
  583. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.d.ts.map +1 -0
  584. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js +131 -0
  585. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/BrowserContext.js.map +1 -0
  586. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts +2100 -0
  587. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.d.ts.map +1 -0
  588. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js +532 -0
  589. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api/Page.js.map +1 -0
  590. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +2 -2
  591. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
  592. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +39 -23
  593. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
  594. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +17 -199
  595. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
  596. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +108 -198
  597. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
  598. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +9 -3
  599. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
  600. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +4 -5
  601. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
  602. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts +1 -1
  603. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.d.ts.map +1 -1
  604. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js +0 -6
  605. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ChromeTargetManager.js.map +1 -1
  606. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.d.ts +133 -0
  607. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.d.ts.map +1 -0
  608. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/initializePuppeteer.d.ts → esm/puppeteer/common/Configuration.js} +3 -7
  609. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Configuration.js.map +1 -0
  610. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +24 -0
  611. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
  612. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +63 -26
  613. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
  614. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +11 -2
  615. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
  616. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +7 -5
  617. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
  618. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts +52 -0
  619. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.d.ts.map +1 -0
  620. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{DeviceDescriptors.js → Device.js} +16 -10
  621. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Device.js.map +1 -0
  622. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts +29 -6
  623. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -1
  624. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +69 -46
  625. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -1
  626. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +27 -3
  627. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
  628. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +47 -2
  629. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
  630. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +16 -1
  631. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -1
  632. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +16 -1
  633. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js.map +1 -1
  634. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +2 -36
  635. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
  636. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +20 -59
  637. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -1
  638. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts +1 -1
  639. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FirefoxTargetManager.d.ts.map +1 -1
  640. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts +47 -21
  641. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.d.ts.map +1 -1
  642. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js +132 -43
  643. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Frame.js.map +1 -1
  644. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +7 -2
  645. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
  646. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +47 -97
  647. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
  648. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.d.ts +39 -0
  649. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.d.ts.map +1 -0
  650. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.js +116 -0
  651. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameTree.js.map +1 -0
  652. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -2
  653. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +2 -2
  654. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts +13 -67
  655. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.d.ts.map +1 -1
  656. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js +124 -487
  657. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/IsolatedWorld.js.map +1 -1
  658. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +5 -5
  659. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
  660. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +7 -9
  661. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
  662. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/node/install.d.ts → esm/puppeteer/common/LazyArg.d.ts} +7 -7
  663. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.d.ts.map +1 -0
  664. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.js +41 -0
  665. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LazyArg.js.map +1 -0
  666. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
  667. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +12 -2
  668. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
  669. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +15 -0
  670. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  671. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +15 -0
  672. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
  673. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -4
  674. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  675. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +2 -2
  676. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  677. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/node → esm/puppeteer/common}/NodeWebSocketTransport.d.ts +1 -1
  678. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NodeWebSocketTransport.d.ts.map +1 -0
  679. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{node → common}/NodeWebSocketTransport.js +1 -15
  680. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NodeWebSocketTransport.js.map +1 -0
  681. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +35 -496
  682. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  683. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +287 -414
  684. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  685. package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/common/NetworkConditions.d.ts → esm/puppeteer/common/PredefinedNetworkConditions.d.ts} +13 -6
  686. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PredefinedNetworkConditions.d.ts.map +1 -0
  687. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{NetworkConditions.js → PredefinedNetworkConditions.js} +11 -7
  688. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PredefinedNetworkConditions.js.map +1 -0
  689. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +36 -61
  690. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
  691. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +33 -67
  692. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
  693. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +26 -34
  694. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -1
  695. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +57 -94
  696. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
  697. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +3 -2
  698. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
  699. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +2 -2
  700. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
  701. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts +52 -0
  702. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.d.ts.map +1 -0
  703. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js +199 -0
  704. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WaitTask.js.map +1 -0
  705. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +4 -5
  706. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
  707. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +23 -27
  708. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js.map +1 -1
  709. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.d.ts +45 -0
  710. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.d.ts.map +1 -0
  711. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.js +71 -0
  712. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Browser.js.map +1 -0
  713. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.d.ts +28 -0
  714. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.d.ts.map +1 -0
  715. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.js +48 -0
  716. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/BrowserContext.js.map +1 -0
  717. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.d.ts +37 -0
  718. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.d.ts.map +1 -0
  719. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.js +129 -0
  720. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Connection.js.map +1 -0
  721. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.d.ts +28 -0
  722. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.d.ts.map +1 -0
  723. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.js +57 -0
  724. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/bidi/Page.js.map +1 -0
  725. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts +11 -0
  726. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts.map +1 -1
  727. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +0 -4
  728. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -1
  729. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js +24 -57
  730. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -1
  731. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +4 -0
  732. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -1
  733. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +7 -0
  734. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js.map +1 -1
  735. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts +8 -2
  736. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.d.ts.map +1 -1
  737. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js +8 -2
  738. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/injected.js.map +1 -1
  739. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +1 -1
  740. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +1 -1
  741. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.d.ts +9 -0
  742. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.d.ts.map +1 -0
  743. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.js +66 -0
  744. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/PierceQuerySelector.js.map +1 -0
  745. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts +32 -6
  746. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.d.ts.map +1 -1
  747. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js +30 -7
  748. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/Poller.js.map +1 -1
  749. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.d.ts +39 -0
  750. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.d.ts.map +1 -0
  751. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.js +128 -0
  752. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextContent.js.map +1 -0
  753. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts +28 -0
  754. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.d.ts.map +1 -0
  755. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.js +75 -0
  756. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/TextQuerySelector.js.map +1 -0
  757. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts +24 -0
  758. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.d.ts.map +1 -0
  759. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js +37 -0
  760. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/XPathQuerySelector.js.map +1 -0
  761. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts +44 -1
  762. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.d.ts.map +1 -1
  763. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js +41 -1
  764. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/injected.js.map +1 -1
  765. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.d.ts +26 -0
  766. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.d.ts.map +1 -0
  767. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.js +53 -0
  768. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/injected/util.js.map +1 -0
  769. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +50 -14
  770. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
  771. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +137 -154
  772. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  773. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +6 -0
  774. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
  775. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +14 -5
  776. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  777. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts +6 -18
  778. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -1
  779. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +89 -29
  780. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -1
  781. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts +4 -18
  782. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -1
  783. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js +41 -34
  784. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -1
  785. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +15 -0
  786. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -1
  787. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +1 -16
  788. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
  789. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts +24 -22
  790. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts.map +1 -1
  791. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js +70 -124
  792. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js.map +1 -1
  793. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/{Puppeteer.d.ts → PuppeteerNode.d.ts} +74 -43
  794. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts.map +1 -0
  795. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js +267 -0
  796. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.js.map +1 -0
  797. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +21 -5
  798. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -1
  799. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js +22 -6
  800. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js.map +1 -1
  801. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +1 -1
  802. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  803. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +24 -18
  804. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -1
  805. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +25 -22
  806. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -1
  807. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.d.ts +9 -0
  808. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.d.ts.map +1 -0
  809. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.js +18 -0
  810. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DebuggableDeferredPromise.js.map +1 -0
  811. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts +12 -10
  812. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.d.ts.map +1 -1
  813. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js +16 -42
  814. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/DeferredPromise.js.map +1 -1
  815. package/front_end/third_party/puppeteer/package/lib/esm/third_party/mitt/index.d.ts +23 -0
  816. package/front_end/third_party/puppeteer/package/lib/esm/third_party/mitt/index.js +3 -0
  817. package/front_end/third_party/puppeteer/package/lib/types.d.ts +548 -513
  818. package/front_end/third_party/puppeteer/package/package.json +125 -104
  819. package/front_end/third_party/puppeteer/puppeteer.ts +3 -3
  820. package/front_end/ui/components/buttons/Button.ts +30 -1
  821. package/front_end/ui/components/buttons/button.css +21 -0
  822. package/front_end/ui/components/chrome_link/ChromeLink.ts +3 -2
  823. package/front_end/ui/components/chrome_link/chromeLink.css +1 -1
  824. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +21 -2
  825. package/front_end/ui/components/docs/button/basic.ts +43 -10
  826. package/front_end/ui/components/docs/elements_breadcrumbs/basic.ts +2 -0
  827. package/front_end/ui/components/docs/elements_breadcrumbs/scroll-to-active-element.ts +10 -3
  828. package/front_end/ui/components/docs/two_states_counter/basic.html +27 -0
  829. package/front_end/ui/components/docs/two_states_counter/basic.ts +45 -0
  830. package/front_end/ui/components/expandable_list/expandableList.css +1 -1
  831. package/front_end/ui/components/helpers/scheduled-render.ts +5 -2
  832. package/front_end/ui/components/icon_button/iconButton.css +2 -0
  833. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +23 -12
  834. package/front_end/ui/components/linkifier/linkifierImpl.css +1 -0
  835. package/front_end/ui/components/markdown_view/MarkdownImage.ts +0 -4
  836. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +4 -0
  837. package/front_end/ui/components/markdown_view/MarkdownView.ts +39 -38
  838. package/front_end/ui/components/markdown_view/markdownLink.css +1 -0
  839. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +12 -6
  840. package/front_end/ui/components/survey_link/surveyLink.css +1 -0
  841. package/front_end/ui/components/text_editor/TextEditor.ts +75 -9
  842. package/front_end/ui/components/text_editor/config.ts +58 -2
  843. package/front_end/ui/components/text_editor/position.ts +2 -0
  844. package/front_end/ui/components/text_editor/theme.ts +10 -0
  845. package/front_end/ui/components/text_prompt/textPrompt.css +4 -0
  846. package/front_end/ui/components/tree_outline/TreeOutline.ts +1 -8
  847. package/front_end/ui/components/tree_outline/treeOutline.css +20 -0
  848. package/front_end/ui/components/two_states_counter/TwoStatesCounter.ts +103 -0
  849. package/front_end/ui/components/two_states_counter/twoStatesCounter.css +37 -0
  850. package/front_end/ui/components/two_states_counter/two_states_counter.ts +9 -0
  851. package/front_end/ui/legacy/ARIAUtils.ts +4 -1
  852. package/front_end/ui/legacy/Context.ts +5 -1
  853. package/front_end/ui/legacy/DockController.ts +19 -0
  854. package/front_end/ui/legacy/FilterBar.ts +3 -1
  855. package/front_end/ui/legacy/InspectorView.ts +6 -2
  856. package/front_end/ui/legacy/ListWidget.ts +5 -1
  857. package/front_end/ui/legacy/SearchableView.ts +6 -19
  858. package/front_end/ui/legacy/SoftContextMenu.ts +20 -6
  859. package/front_end/ui/legacy/TabbedPane.ts +7 -5
  860. package/front_end/ui/legacy/TextPrompt.ts +1 -2
  861. package/front_end/ui/legacy/Toolbar.ts +6 -4
  862. package/front_end/ui/legacy/UIUtils.ts +8 -8
  863. package/front_end/ui/legacy/XLink.ts +3 -3
  864. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +9 -10
  865. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -1
  866. package/front_end/ui/legacy/components/data_grid/dataGrid.css +7 -6
  867. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +9 -2
  868. package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +10 -2
  869. package/front_end/ui/legacy/components/inline_editor/CSSVarSwatch.ts +22 -9
  870. package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +3 -2
  871. package/front_end/ui/legacy/components/inline_editor/cssLength.css +4 -0
  872. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +15 -9
  873. package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +9 -1
  874. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +75 -377
  875. package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +3 -14
  876. package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +2 -14
  877. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +9 -41
  878. package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -2
  879. package/front_end/ui/legacy/inspectorCommon.css +23 -0
  880. package/front_end/ui/legacy/inspectorSyntaxHighlight.css +1 -0
  881. package/front_end/ui/legacy/reportView.css +10 -0
  882. package/front_end/ui/legacy/softContextMenu.css +11 -1
  883. package/front_end/ui/legacy/splitWidget.css +1 -1
  884. package/front_end/ui/legacy/tabbedPane.css +26 -4
  885. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +3 -5
  886. package/front_end/ui/legacy/toolbar.css +7 -1
  887. package/package.json +2 -1
  888. package/scripts/eslint_rules/lib/no_only.js +27 -0
  889. package/scripts/eslint_rules/tests/no_only_test.js +95 -0
  890. package/docs/localization/README.md +0 -6
  891. package/docs/localization/adding_strings.md +0 -133
  892. package/docs/localization/descriptions.md +0 -30
  893. package/docs/localization/localization_apis.md +0 -80
  894. package/docs/localization/locked_terms.md +0 -38
  895. package/docs/testing_guidelines.md +0 -4
  896. package/docs/triage_guidelines.md +0 -3
  897. package/front_end/entrypoints/formatter_worker/HTMLOutline.ts +0 -53
  898. package/front_end/entrypoints/formatter_worker/JavaScriptOutline.ts +0 -153
  899. package/front_end/legacy_test_runner/lighthouse_test_runner/lighthouse_test_runner.js +0 -155
  900. package/front_end/models/timeline_model/TimelineIRModel.ts +0 -317
  901. package/front_end/panels/application/components/originTrialTreeView.css +0 -9
  902. package/front_end/panels/input/InputModel.ts +0 -213
  903. package/front_end/panels/input/InputTimeline.ts +0 -407
  904. package/front_end/panels/input/input-legacy.ts +0 -32
  905. package/front_end/panels/input/input-meta.ts +0 -130
  906. package/front_end/panels/input/input.ts +0 -11
  907. package/front_end/panels/input/inputTimeline.css +0 -16
  908. package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +0 -179
  909. package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +0 -145
  910. package/front_end/third_party/acorn-loose/README.chromium +0 -22
  911. package/front_end/third_party/acorn-loose/acorn-loose-tsconfig.json +0 -8
  912. package/front_end/third_party/acorn-loose/acorn-loose.ts +0 -9
  913. package/front_end/third_party/acorn-loose/package/CHANGELOG.md +0 -123
  914. package/front_end/third_party/acorn-loose/package/LICENSE +0 -21
  915. package/front_end/third_party/acorn-loose/package/README.md +0 -66
  916. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.d.ts +0 -16
  917. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js +0 -1538
  918. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js.map +0 -1
  919. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs +0 -1528
  920. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs.d.ts +0 -10
  921. package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs.map +0 -1
  922. package/front_end/third_party/acorn-loose/package/package.json +0 -47
  923. package/front_end/third_party/puppeteer/package/LICENSE +0 -202
  924. package/front_end/third_party/puppeteer/package/install.js +0 -89
  925. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +0 -60
  926. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +0 -1
  927. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +0 -1
  928. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +0 -1
  929. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.js.map +0 -1
  930. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts +0 -6
  931. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts.map +0 -1
  932. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js +0 -21
  933. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js.map +0 -1
  934. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts +0 -5
  935. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts.map +0 -1
  936. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js +0 -10
  937. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js.map +0 -1
  938. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.d.ts.map +0 -1
  939. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js +0 -47
  940. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js.map +0 -1
  941. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +0 -1
  942. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +0 -1
  943. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +0 -1
  944. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +0 -213
  945. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +0 -1
  946. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +0 -1
  947. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +0 -198
  948. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +0 -1
  949. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts +0 -10
  950. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts.map +0 -1
  951. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js +0 -40
  952. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js.map +0 -1
  953. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts +0 -27
  954. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts.map +0 -1
  955. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js +0 -44
  956. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js.map +0 -1
  957. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts +0 -2
  958. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.d.ts.map +0 -1
  959. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js +0 -19
  960. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/util/getPackageDirectory.js.map +0 -1
  961. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.d.ts +0 -27
  962. package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.js +0 -56
  963. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +0 -60
  964. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +0 -1
  965. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +0 -1
  966. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +0 -1
  967. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.js.map +0 -1
  968. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts +0 -6
  969. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts.map +0 -1
  970. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js +0 -20
  971. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js.map +0 -1
  972. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts +0 -5
  973. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts.map +0 -1
  974. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js +0 -7
  975. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js.map +0 -1
  976. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.d.ts.map +0 -1
  977. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js +0 -43
  978. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js.map +0 -1
  979. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +0 -1
  980. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +0 -1
  981. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +0 -1
  982. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +0 -209
  983. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +0 -1
  984. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +0 -1
  985. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +0 -190
  986. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +0 -1
  987. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts +0 -10
  988. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts.map +0 -1
  989. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js +0 -13
  990. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js.map +0 -1
  991. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts +0 -27
  992. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts.map +0 -1
  993. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.js.map +0 -1
  994. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts +0 -2
  995. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.d.ts.map +0 -1
  996. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js +0 -15
  997. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/util/getPackageDirectory.js.map +0 -1
  998. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +0 -27
  999. package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +0 -53
  1000. package/front_end/third_party/puppeteer/package/typescript-if-required.js +0 -70
  1001. package/scripts/eslint_rules/lib/render_coordinator_write.js +0 -58
  1002. package/scripts/eslint_rules/tests/render_coordinator_write_test.js +0 -55
@@ -24,25 +24,25 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
24
24
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
25
25
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
26
26
  };
27
- var _BrowserFetcher_instances, _BrowserFetcher_product, _BrowserFetcher_downloadsFolder, _BrowserFetcher_downloadHost, _BrowserFetcher_platform, _BrowserFetcher_getFolderPath;
28
- import * as os from 'os';
29
- import * as fs from 'fs';
30
- import * as path from 'path';
31
- import * as util from 'util';
32
- import * as childProcess from 'child_process';
33
- import * as https from 'https';
34
- import * as http from 'http';
27
+ var _BrowserFetcher_instances, _BrowserFetcher_product, _BrowserFetcher_downloadPath, _BrowserFetcher_downloadHost, _BrowserFetcher_platform, _BrowserFetcher_getFolderPath;
28
+ import { exec as execChildProcess } from 'child_process';
35
29
  import extractZip from 'extract-zip';
36
- import { debug } from '../common/Debug.js';
37
- import { promisify } from 'util';
38
- import removeRecursive from 'rimraf';
39
- import * as URL from 'url';
30
+ import { createReadStream, createWriteStream, existsSync, readdirSync } from 'fs';
31
+ import { chmod, mkdir, readdir, unlink } from 'fs/promises';
32
+ import * as http from 'http';
33
+ import * as https from 'https';
40
34
  import createHttpsProxyAgent from 'https-proxy-agent';
35
+ import * as os from 'os';
36
+ import * as path from 'path';
41
37
  import { getProxyForUrl } from 'proxy-from-env';
42
- import { assert } from '../util/assert.js';
38
+ import removeRecursive from 'rimraf';
43
39
  import tar from 'tar-fs';
44
40
  import bzip from 'unbzip2-stream';
45
- const { PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM } = process.env;
41
+ import * as URL from 'url';
42
+ import * as util from 'util';
43
+ import { promisify } from 'util';
44
+ import { debug } from '../common/Debug.js';
45
+ import { assert } from '../util/assert.js';
46
46
  const debugFetcher = debug('puppeteer:fetcher');
47
47
  const downloadURLs = {
48
48
  chrome: {
@@ -62,13 +62,12 @@ const downloadURLs = {
62
62
  const browserConfig = {
63
63
  chrome: {
64
64
  host: 'https://storage.googleapis.com',
65
- destination: '.local-chromium',
66
65
  },
67
66
  firefox: {
68
67
  host: 'https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central',
69
- destination: '.local-firefox',
70
68
  },
71
69
  };
70
+ const exec = promisify(execChildProcess);
72
71
  function archiveName(product, platform, revision) {
73
72
  switch (product) {
74
73
  case 'chrome':
@@ -94,11 +93,11 @@ function downloadURL(product, platform, host, revision) {
94
93
  return url;
95
94
  }
96
95
  function handleArm64() {
97
- let exists = fs.existsSync('/usr/bin/chromium-browser');
96
+ let exists = existsSync('/usr/bin/chromium-browser');
98
97
  if (exists) {
99
98
  return;
100
99
  }
101
- exists = fs.existsSync('/usr/bin/chromium');
100
+ exists = existsSync('/usr/bin/chromium');
102
101
  if (exists) {
103
102
  return;
104
103
  }
@@ -108,57 +107,53 @@ function handleArm64() {
108
107
  '\n\n sudo apt install chromium-browser\n');
109
108
  throw new Error();
110
109
  }
111
- const readdirAsync = promisify(fs.readdir.bind(fs));
112
- const mkdirAsync = promisify(fs.mkdir.bind(fs));
113
- const unlinkAsync = promisify(fs.unlink.bind(fs));
114
- const chmodAsync = promisify(fs.chmod.bind(fs));
115
- function existsAsync(filePath) {
116
- return new Promise(resolve => {
117
- fs.access(filePath, err => {
118
- return resolve(!err);
119
- });
120
- });
121
- }
122
110
  /**
123
- * BrowserFetcher can download and manage different versions of Chromium and Firefox.
111
+ * BrowserFetcher can download and manage different versions of Chromium and
112
+ * Firefox.
124
113
  *
125
114
  * @remarks
126
- * BrowserFetcher operates on revision strings that specify a precise version of Chromium, e.g. `"533271"`. Revision strings can be obtained from {@link http://omahaproxy.appspot.com/ | omahaproxy.appspot.com}.
127
- * In the Firefox case, BrowserFetcher downloads Firefox Nightly and
128
- * operates on version numbers such as `"75"`.
115
+ * BrowserFetcher operates on revision strings that specify a precise version of
116
+ * Chromium, e.g. `"533271"`. Revision strings can be obtained from
117
+ * {@link http://omahaproxy.appspot.com/ | omahaproxy.appspot.com}. For Firefox,
118
+ * BrowserFetcher downloads Firefox Nightly and operates on version numbers such
119
+ * as `"75"`.
120
+ *
121
+ * @remarks
122
+ * The default constructed fetcher will always be for Chromium unless otherwise
123
+ * specified.
124
+ *
125
+ * @remarks
126
+ * BrowserFetcher is not designed to work concurrently with other instances of
127
+ * BrowserFetcher that share the same downloads directory.
129
128
  *
130
129
  * @example
131
130
  * An example of using BrowserFetcher to download a specific version of Chromium
132
131
  * and running Puppeteer against it:
133
132
  *
134
133
  * ```ts
135
- * const browserFetcher = puppeteer.createBrowserFetcher();
134
+ * const browserFetcher = new BrowserFetcher({path: 'path/to/download/folder'});
136
135
  * const revisionInfo = await browserFetcher.download('533271');
137
136
  * const browser = await puppeteer.launch({
138
137
  * executablePath: revisionInfo.executablePath,
139
138
  * });
140
139
  * ```
141
140
  *
142
- * **NOTE** BrowserFetcher is not designed to work concurrently with other
143
- * instances of BrowserFetcher that share the same downloads directory.
144
- *
145
141
  * @public
146
142
  */
147
143
  export class BrowserFetcher {
148
144
  /**
149
- * @internal
145
+ * Constructs a browser fetcher for the given options.
150
146
  */
151
- constructor(projectRoot, options = {}) {
147
+ constructor(options) {
148
+ var _a, _b;
152
149
  _BrowserFetcher_instances.add(this);
153
150
  _BrowserFetcher_product.set(this, void 0);
154
- _BrowserFetcher_downloadsFolder.set(this, void 0);
151
+ _BrowserFetcher_downloadPath.set(this, void 0);
155
152
  _BrowserFetcher_downloadHost.set(this, void 0);
156
153
  _BrowserFetcher_platform.set(this, void 0);
157
- __classPrivateFieldSet(this, _BrowserFetcher_product, (options.product || 'chrome').toLowerCase(), "f");
158
- assert(__classPrivateFieldGet(this, _BrowserFetcher_product, "f") === 'chrome' || __classPrivateFieldGet(this, _BrowserFetcher_product, "f") === 'firefox', `Unknown product: "${options.product}"`);
159
- __classPrivateFieldSet(this, _BrowserFetcher_downloadsFolder, options.path ||
160
- path.join(projectRoot, browserConfig[__classPrivateFieldGet(this, _BrowserFetcher_product, "f")].destination), "f");
161
- __classPrivateFieldSet(this, _BrowserFetcher_downloadHost, options.host || browserConfig[__classPrivateFieldGet(this, _BrowserFetcher_product, "f")].host, "f");
154
+ __classPrivateFieldSet(this, _BrowserFetcher_product, (_a = options.product) !== null && _a !== void 0 ? _a : 'chrome', "f");
155
+ __classPrivateFieldSet(this, _BrowserFetcher_downloadPath, options.path, "f");
156
+ __classPrivateFieldSet(this, _BrowserFetcher_downloadHost, (_b = options.host) !== null && _b !== void 0 ? _b : browserConfig[__classPrivateFieldGet(this, _BrowserFetcher_product, "f")].host, "f");
162
157
  if (options.platform) {
163
158
  __classPrivateFieldSet(this, _BrowserFetcher_platform, options.platform, "f");
164
159
  }
@@ -168,7 +163,7 @@ export class BrowserFetcher {
168
163
  case 'darwin':
169
164
  switch (__classPrivateFieldGet(this, _BrowserFetcher_product, "f")) {
170
165
  case 'chrome':
171
- __classPrivateFieldSet(this, _BrowserFetcher_platform, os.arch() === 'arm64' && PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM
166
+ __classPrivateFieldSet(this, _BrowserFetcher_platform, os.arch() === 'arm64' && options.useMacOSARMBinary
172
167
  ? 'mac_arm'
173
168
  : 'mac', "f");
174
169
  break;
@@ -181,7 +176,11 @@ export class BrowserFetcher {
181
176
  __classPrivateFieldSet(this, _BrowserFetcher_platform, 'linux', "f");
182
177
  break;
183
178
  case 'win32':
184
- __classPrivateFieldSet(this, _BrowserFetcher_platform, os.arch() === 'x64' ? 'win64' : 'win32', "f");
179
+ __classPrivateFieldSet(this, _BrowserFetcher_platform, os.arch() === 'x64' ||
180
+ // Windows 11 for ARM supports x64 emulation
181
+ (os.arch() === 'arm64' && isWindows11(os.release()))
182
+ ? 'win64'
183
+ : 'win32', "f");
185
184
  return;
186
185
  default:
187
186
  assert(false, 'Unsupported platform: ' + platform);
@@ -243,16 +242,16 @@ export class BrowserFetcher {
243
242
  const url = downloadURL(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), __classPrivateFieldGet(this, _BrowserFetcher_downloadHost, "f"), revision);
244
243
  const fileName = url.split('/').pop();
245
244
  assert(fileName, `A malformed download URL was found: ${url}.`);
246
- const archivePath = path.join(__classPrivateFieldGet(this, _BrowserFetcher_downloadsFolder, "f"), fileName);
245
+ const archivePath = path.join(__classPrivateFieldGet(this, _BrowserFetcher_downloadPath, "f"), fileName);
247
246
  const outputPath = __classPrivateFieldGet(this, _BrowserFetcher_instances, "m", _BrowserFetcher_getFolderPath).call(this, revision);
248
- if (await existsAsync(outputPath)) {
247
+ if (existsSync(outputPath)) {
249
248
  return this.revisionInfo(revision);
250
249
  }
251
- if (!(await existsAsync(__classPrivateFieldGet(this, _BrowserFetcher_downloadsFolder, "f")))) {
252
- await mkdirAsync(__classPrivateFieldGet(this, _BrowserFetcher_downloadsFolder, "f"));
250
+ if (!existsSync(__classPrivateFieldGet(this, _BrowserFetcher_downloadPath, "f"))) {
251
+ await mkdir(__classPrivateFieldGet(this, _BrowserFetcher_downloadPath, "f"), { recursive: true });
253
252
  }
254
253
  // Use system Chromium builds on Linux ARM devices
255
- if (os.platform() !== 'darwin' && os.arch() === 'arm64') {
254
+ if (os.platform() === 'linux' && os.arch() === 'arm64') {
256
255
  handleArm64();
257
256
  return;
258
257
  }
@@ -261,27 +260,27 @@ export class BrowserFetcher {
261
260
  await install(archivePath, outputPath);
262
261
  }
263
262
  finally {
264
- if (await existsAsync(archivePath)) {
265
- await unlinkAsync(archivePath);
263
+ if (existsSync(archivePath)) {
264
+ await unlink(archivePath);
266
265
  }
267
266
  }
268
267
  const revisionInfo = this.revisionInfo(revision);
269
268
  if (revisionInfo) {
270
- await chmodAsync(revisionInfo.executablePath, 0o755);
269
+ await chmod(revisionInfo.executablePath, 0o755);
271
270
  }
272
271
  return revisionInfo;
273
272
  }
274
273
  /**
275
274
  * @remarks
276
275
  * This method is affected by the current `product`.
277
- * @returns A promise with a list of all revision strings (for the current `product`)
276
+ * @returns A list of all revision strings (for the current `product`)
278
277
  * available locally on disk.
279
278
  */
280
- async localRevisions() {
281
- if (!(await existsAsync(__classPrivateFieldGet(this, _BrowserFetcher_downloadsFolder, "f")))) {
279
+ localRevisions() {
280
+ if (!existsSync(__classPrivateFieldGet(this, _BrowserFetcher_downloadPath, "f"))) {
282
281
  return [];
283
282
  }
284
- const fileNames = await readdirAsync(__classPrivateFieldGet(this, _BrowserFetcher_downloadsFolder, "f"));
283
+ const fileNames = readdirSync(__classPrivateFieldGet(this, _BrowserFetcher_downloadPath, "f"));
285
284
  return fileNames
286
285
  .map(fileName => {
287
286
  return parseFolderPath(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), fileName);
@@ -303,7 +302,7 @@ export class BrowserFetcher {
303
302
  */
304
303
  async remove(revision) {
305
304
  const folderPath = __classPrivateFieldGet(this, _BrowserFetcher_instances, "m", _BrowserFetcher_getFolderPath).call(this, revision);
306
- assert(await existsAsync(folderPath), `Failed to remove: revision ${revision} is not downloaded`);
305
+ assert(existsSync(folderPath), `Failed to remove: revision ${revision} is not downloaded`);
307
306
  await new Promise(fulfill => {
308
307
  return removeRecursive(folderPath, fulfill);
309
308
  });
@@ -315,39 +314,39 @@ export class BrowserFetcher {
315
314
  revisionInfo(revision) {
316
315
  const folderPath = __classPrivateFieldGet(this, _BrowserFetcher_instances, "m", _BrowserFetcher_getFolderPath).call(this, revision);
317
316
  let executablePath = '';
318
- if (__classPrivateFieldGet(this, _BrowserFetcher_product, "f") === 'chrome') {
319
- if (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'mac' || __classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'mac_arm') {
320
- executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), 'Chromium.app', 'Contents', 'MacOS', 'Chromium');
321
- }
322
- else if (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'linux') {
323
- executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), 'chrome');
324
- }
325
- else if (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'win32' || __classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'win64') {
326
- executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), 'chrome.exe');
327
- }
328
- else {
329
- throw new Error('Unsupported platform: ' + __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"));
330
- }
331
- }
332
- else if (__classPrivateFieldGet(this, _BrowserFetcher_product, "f") === 'firefox') {
333
- if (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'mac' || __classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'mac_arm') {
334
- executablePath = path.join(folderPath, 'Firefox Nightly.app', 'Contents', 'MacOS', 'firefox');
335
- }
336
- else if (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'linux') {
337
- executablePath = path.join(folderPath, 'firefox', 'firefox');
338
- }
339
- else if (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'win32' || __classPrivateFieldGet(this, _BrowserFetcher_platform, "f") === 'win64') {
340
- executablePath = path.join(folderPath, 'firefox', 'firefox.exe');
341
- }
342
- else {
343
- throw new Error('Unsupported platform: ' + __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"));
344
- }
345
- }
346
- else {
347
- throw new Error('Unsupported product: ' + __classPrivateFieldGet(this, _BrowserFetcher_product, "f"));
317
+ switch (__classPrivateFieldGet(this, _BrowserFetcher_product, "f")) {
318
+ case 'chrome':
319
+ switch (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f")) {
320
+ case 'mac':
321
+ case 'mac_arm':
322
+ executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), 'Chromium.app', 'Contents', 'MacOS', 'Chromium');
323
+ break;
324
+ case 'linux':
325
+ executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), 'chrome');
326
+ break;
327
+ case 'win32':
328
+ case 'win64':
329
+ executablePath = path.join(folderPath, archiveName(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), revision), 'chrome.exe');
330
+ break;
331
+ }
332
+ break;
333
+ case 'firefox':
334
+ switch (__classPrivateFieldGet(this, _BrowserFetcher_platform, "f")) {
335
+ case 'mac':
336
+ case 'mac_arm':
337
+ executablePath = path.join(folderPath, 'Firefox Nightly.app', 'Contents', 'MacOS', 'firefox');
338
+ break;
339
+ case 'linux':
340
+ executablePath = path.join(folderPath, 'firefox', 'firefox');
341
+ break;
342
+ case 'win32':
343
+ case 'win64':
344
+ executablePath = path.join(folderPath, 'firefox', 'firefox.exe');
345
+ break;
346
+ }
348
347
  }
349
348
  const url = downloadURL(__classPrivateFieldGet(this, _BrowserFetcher_product, "f"), __classPrivateFieldGet(this, _BrowserFetcher_platform, "f"), __classPrivateFieldGet(this, _BrowserFetcher_downloadHost, "f"), revision);
350
- const local = fs.existsSync(folderPath);
349
+ const local = existsSync(folderPath);
351
350
  debugFetcher({
352
351
  revision,
353
352
  executablePath,
@@ -366,8 +365,8 @@ export class BrowserFetcher {
366
365
  };
367
366
  }
368
367
  }
369
- _BrowserFetcher_product = new WeakMap(), _BrowserFetcher_downloadsFolder = new WeakMap(), _BrowserFetcher_downloadHost = new WeakMap(), _BrowserFetcher_platform = new WeakMap(), _BrowserFetcher_instances = new WeakSet(), _BrowserFetcher_getFolderPath = function _BrowserFetcher_getFolderPath(revision) {
370
- return path.resolve(__classPrivateFieldGet(this, _BrowserFetcher_downloadsFolder, "f"), `${__classPrivateFieldGet(this, _BrowserFetcher_platform, "f")}-${revision}`);
368
+ _BrowserFetcher_product = new WeakMap(), _BrowserFetcher_downloadPath = new WeakMap(), _BrowserFetcher_downloadHost = new WeakMap(), _BrowserFetcher_platform = new WeakMap(), _BrowserFetcher_instances = new WeakSet(), _BrowserFetcher_getFolderPath = function _BrowserFetcher_getFolderPath(revision) {
369
+ return path.resolve(__classPrivateFieldGet(this, _BrowserFetcher_downloadPath, "f"), `${__classPrivateFieldGet(this, _BrowserFetcher_platform, "f")}-${revision}`);
371
370
  };
372
371
  function parseFolderPath(product, folderPath) {
373
372
  const name = path.basename(folderPath);
@@ -381,6 +380,22 @@ function parseFolderPath(product, folderPath) {
381
380
  }
382
381
  return { product, platform, revision };
383
382
  }
383
+ /**
384
+ * Windows 11 is identified by 10.0.22000 or greater
385
+ * @internal
386
+ */
387
+ function isWindows11(version) {
388
+ const parts = version.split('.');
389
+ if (parts.length > 2) {
390
+ const major = parseInt(parts[0], 10);
391
+ const minor = parseInt(parts[1], 10);
392
+ const patch = parseInt(parts[2], 10);
393
+ return (major > 10 ||
394
+ (major === 10 && minor > 0) ||
395
+ (major === 10 && minor === 0 && patch >= 22000));
396
+ }
397
+ return false;
398
+ }
384
399
  /**
385
400
  * @internal
386
401
  */
@@ -402,7 +417,7 @@ function _downloadFile(url, destinationPath, progressCallback) {
402
417
  reject(error);
403
418
  return;
404
419
  }
405
- const file = fs.createWriteStream(destinationPath);
420
+ const file = createWriteStream(destinationPath);
406
421
  file.on('finish', () => {
407
422
  return fulfill();
408
423
  });
@@ -424,18 +439,17 @@ function _downloadFile(url, destinationPath, progressCallback) {
424
439
  progressCallback(downloadedBytes, totalBytes);
425
440
  }
426
441
  }
427
- function install(archivePath, folderPath) {
442
+ async function install(archivePath, folderPath) {
428
443
  debugFetcher(`Installing ${archivePath} to ${folderPath}`);
429
444
  if (archivePath.endsWith('.zip')) {
430
- return extractZip(archivePath, { dir: folderPath });
445
+ await extractZip(archivePath, { dir: folderPath });
431
446
  }
432
447
  else if (archivePath.endsWith('.tar.bz2')) {
433
- return _extractTar(archivePath, folderPath);
448
+ await extractTar(archivePath, folderPath);
434
449
  }
435
450
  else if (archivePath.endsWith('.dmg')) {
436
- return mkdirAsync(folderPath).then(() => {
437
- return _installDMG(archivePath, folderPath);
438
- });
451
+ await mkdir(folderPath);
452
+ await installDMG(archivePath, folderPath);
439
453
  }
440
454
  else {
441
455
  throw new Error(`Unsupported archive format: ${archivePath}`);
@@ -444,79 +458,48 @@ function install(archivePath, folderPath) {
444
458
  /**
445
459
  * @internal
446
460
  */
447
- function _extractTar(tarPath, folderPath) {
461
+ function extractTar(tarPath, folderPath) {
448
462
  return new Promise((fulfill, reject) => {
449
463
  const tarStream = tar.extract(folderPath);
450
464
  tarStream.on('error', reject);
451
465
  tarStream.on('finish', fulfill);
452
- const readStream = fs.createReadStream(tarPath);
466
+ const readStream = createReadStream(tarPath);
453
467
  readStream.pipe(bzip()).pipe(tarStream);
454
468
  });
455
469
  }
456
470
  /**
457
471
  * @internal
458
472
  */
459
- function _installDMG(dmgPath, folderPath) {
460
- let mountPath;
461
- return new Promise((fulfill, reject) => {
462
- const mountCommand = `hdiutil attach -nobrowse -noautoopen "${dmgPath}"`;
463
- childProcess.exec(mountCommand, (err, stdout) => {
464
- if (err) {
465
- return reject(err);
466
- }
467
- const volumes = stdout.match(/\/Volumes\/(.*)/m);
468
- if (!volumes) {
469
- return reject(new Error(`Could not find volume path in ${stdout}`));
470
- }
471
- mountPath = volumes[0];
472
- readdirAsync(mountPath)
473
- .then(fileNames => {
474
- const appName = fileNames.find(item => {
475
- return typeof item === 'string' && item.endsWith('.app');
476
- });
477
- if (!appName) {
478
- return reject(new Error(`Cannot find app in ${mountPath}`));
479
- }
480
- const copyPath = path.join(mountPath, appName);
481
- debugFetcher(`Copying ${copyPath} to ${folderPath}`);
482
- childProcess.exec(`cp -R "${copyPath}" "${folderPath}"`, err => {
483
- if (err) {
484
- reject(err);
485
- }
486
- else {
487
- fulfill();
488
- }
489
- });
490
- })
491
- .catch(reject);
473
+ async function installDMG(dmgPath, folderPath) {
474
+ const { stdout } = await exec(`hdiutil attach -nobrowse -noautoopen "${dmgPath}"`);
475
+ const volumes = stdout.match(/\/Volumes\/(.*)/m);
476
+ if (!volumes) {
477
+ throw new Error(`Could not find volume path in ${stdout}`);
478
+ }
479
+ const mountPath = volumes[0];
480
+ try {
481
+ const fileNames = await readdir(mountPath);
482
+ const appName = fileNames.find(item => {
483
+ return typeof item === 'string' && item.endsWith('.app');
492
484
  });
493
- })
494
- .catch(error => {
495
- console.error(error);
496
- })
497
- .finally(() => {
498
- if (!mountPath) {
499
- return;
485
+ if (!appName) {
486
+ throw new Error(`Cannot find app in ${mountPath}`);
500
487
  }
501
- const unmountCommand = `hdiutil detach "${mountPath}" -quiet`;
488
+ const mountedPath = path.join(mountPath, appName);
489
+ debugFetcher(`Copying ${mountedPath} to ${folderPath}`);
490
+ await exec(`cp -R "${mountedPath}" "${folderPath}"`);
491
+ }
492
+ finally {
502
493
  debugFetcher(`Unmounting ${mountPath}`);
503
- childProcess.exec(unmountCommand, err => {
504
- if (err) {
505
- console.error(`Error unmounting dmg: ${err}`);
506
- }
507
- });
508
- });
494
+ await exec(`hdiutil detach "${mountPath}" -quiet`);
495
+ }
509
496
  }
510
497
  function httpRequest(url, method, response, keepAlive = true) {
511
498
  const urlParsed = URL.parse(url);
512
499
  let options = {
513
500
  ...urlParsed,
514
501
  method,
515
- headers: keepAlive
516
- ? {
517
- Connection: 'keep-alive',
518
- }
519
- : undefined,
502
+ headers: keepAlive ? { Connection: 'keep-alive' } : undefined,
520
503
  };
521
504
  const proxyURL = getProx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}
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /// <reference types="node" />
17
17
  import * as childProcess from 'child_process';
18
+ import { Connection as BiDiConnection } from '../common/bidi/Connection.js';
18
19
  import { Connection } from '../common/Connection.js';
19
20
  import { Product } from '../common/Product.js';
20
21
  import { LaunchOptions } from './LaunchOptions.js';
@@ -29,6 +30,11 @@ export declare class BrowserRunner {
29
30
  start(options: LaunchOptions): void;
30
31
  close(): Promise<void>;
31
32
  kill(): void;
33
+ setupWebDriverBiDiConnection(options: {
34
+ timeout: number;
35
+ slowMo: number;
36
+ preferredRevision: string;
37
+ }): Promise<BiDiConnection>;
32
38
  setupConnection(options: {
33
39
  usePipe?: boolean;
34
40
  timeout: number;
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserRunner.d.ts","sourceRoot":"","sources":["../../../../src/node/BrowserRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAO9C,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAUnD,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAcjD;;GAEG;AACH,qBAAa,aAAa;;IAUxB,IAAI,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;IACjC,UAAU,CAAC,EAAE,UAAU,CAAC;gBAGtB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,WAAW,EAAE,MAAM,EACnB,iBAAiB,CAAC,EAAE,OAAO;IAS7B,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAkGnC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBtB,IAAI,IAAI,IAAI;IAmDN,eAAe,CAAC,OAAO,EAAE;QAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE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AAC;CAwBxB"}
@@ -31,13 +31,14 @@ import * as path from 'path';
31
31
  import * as readline from 'readline';
32
32
  import removeFolder from 'rimraf';
33
33
  import { promisify } from 'util';
34
- import { assert } from '../util/assert.js';
34
+ import { Connection as BiDiConnection } from '../common/bidi/Connection.js';
35
35
  import { Connection } from '../common/Connection.js';
36
36
  import { debug } from '../common/Debug.js';
37
37
  import { TimeoutError } from '../common/Errors.js';
38
- import { debugError, addEventListener, removeEventListeners, } from '../common/util.js';
38
+ import { NodeWebSocketTransport as WebSocketTransport } from '../common/NodeWebSocketTransport.js';
39
+ import { addEventListener, debugError, removeEventListeners, } from '../common/util.js';
40
+ import { assert } from '../util/assert.js';
39
41
  import { isErrnoException, isErrorLike } from '../util/ErrorLike.js';
40
- import { NodeWebSocketTransport as WebSocketTransport } from '../node/NodeWebSocketTransport.js';
41
42
  import { PipeTransport } from './PipeTransport.js';
42
43
  const removeFolderAsync = promisify(removeFolder);
43
44
  const renameAsync = promisify(fs.rename);
@@ -218,6 +219,14 @@ export class BrowserRunner {
218
219
  // perform this earlier, then the previous function calls would not happen.
219
220
  removeEventListeners(__classPrivateFieldGet(this, _BrowserRunner_listeners, "f"));
220
221
  }
222
+ async setupWebDriverBiDiConnection(options) {
223
+ assert(this.proc, 'BrowserRunner not started.');
224
+ const { timeout, slowMo, preferredRevision } = options;
225
+ let browserWSEndpoint = await waitForWSEndpoint(this.proc, timeout, preferredRevision, /^WebDriver BiDi listening on (ws:\/\/.*)$/);
226
+ browserWSEndpoint += '/session';
227
+ const transport = await WebSocketTransport.create(browserWSEndpoint);
228
+ return new BiDiConnection(transport, slowMo);
229
+ }
221
230
  async setupConnection(options) {
222
231
  assert(this.proc, 'BrowserRunner not started.');
223
232
  const { usePipe, timeout, slowMo, preferredRevision } = options;
@@ -237,7 +246,7 @@ export class BrowserRunner {
237
246
  }
238
247
  }
239
248
  _BrowserRunner_product = new WeakMap(), _BrowserRunner_executablePath = new WeakMap(), _BrowserRunner_processArguments = new WeakMap(), _BrowserRunner_userDataDir = new WeakMap(), _BrowserRunner_isTempUserDataDir = new WeakMap(), _BrowserRunner_closed = new WeakMap(), _BrowserRunner_listeners = new WeakMap(), _BrowserRunner_processClosing = new WeakMap();
240
- function waitForWSEndpoint(browserProcess, timeout, preferredRevision) {
249
+ function waitForWSEndpoint(browserProcess, timeout, preferredRevision, regex = /^DevTools listening on (ws:\/\/.*)$/) {
241
250
  assert(browserProcess.stderr, '`browserProcess` does not have stderr.');
242
251
  const rl = readline.createInterface(browserProcess.stderr);
243
252
  let stderr = '';
@@ -272,7 +281,7 @@ function waitForWSEndpoint(browserProcess, timeout, preferredRevision) {
272
281
  }
273
282
  function onLine(line) {
274
283
  stderr += line + '\n';
275
- const match = line.match(/^DevTools listening on (ws:\/\/.*)$/);
284
+ const match = line.match(regex);
276
285
  if (!match) {
277
286
  return;
278
287
  }