chrome-devtools-frontend 1.0.1021097 → 1.0.1021582
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/gni/devtools_grd_files.gni +15 -10
 - package/front_end/.eslintrc.js +1 -0
 - package/front_end/core/i18n/locales/en-US.json +118 -4
 - package/front_end/core/i18n/locales/en-XL.json +118 -4
 - package/front_end/models/bindings/DebuggerLanguagePlugins.ts +8 -0
 - package/front_end/panels/application/components/FrameDetailsView.ts +3 -2
 - package/front_end/panels/application/components/Prerender2.ts +188 -0
 - package/front_end/panels/elements/CSSRuleValidator.ts +103 -13
 - package/front_end/panels/elements/ElementsTreeElement.ts +3 -1
 - package/front_end/panels/elements/StylePropertyTreeElement.ts +10 -8
 - package/front_end/panels/elements/components/CSSHintDetailsView.ts +71 -0
 - package/front_end/panels/elements/components/components.ts +2 -0
 - package/front_end/panels/elements/components/cssHintDetailsView.css +36 -0
 - package/front_end/panels/elements/stylesSectionTree.css +1 -1
 - package/front_end/panels/network/components/RequestHeadersView.ts +2 -1
 - package/front_end/services/puppeteer/PuppeteerConnection.ts +3 -5
 - package/front_end/third_party/lit-html/directives.ts +1 -0
 - package/front_end/third_party/lit-html/lit-html-tsconfig.json +1 -0
 - package/front_end/third_party/puppeteer/package/README.md +136 -214
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.d.ts +6 -6
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js +149 -85
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Accessibility.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +34 -10
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +17 -36
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +217 -160
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts +5 -4
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +18 -13
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +4 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +30 -11
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +21 -20
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +125 -82
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +1 -4
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.js +27 -9
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +6 -30
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +167 -131
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +36 -67
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +359 -215
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts +8 -4
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js +9 -6
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Debug.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +21 -2
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js +26 -6
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts +2 -6
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js +32 -15
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts +355 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js +847 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ElementHandle.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EmulationManager.d.ts +4 -3
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EmulationManager.js +25 -8
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EmulationManager.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +28 -6
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +27 -7
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts +20 -19
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +146 -126
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts +4 -6
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js +25 -10
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +53 -92
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +337 -320
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +16 -28
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +200 -147
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts +1 -18
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +86 -60
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +18 -22
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +166 -117
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +46 -395
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +80 -842
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +4 -32
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +136 -108
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.d.ts +25 -7
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.js +23 -2
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkConditions.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +16 -11
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +39 -32
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +2 -42
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +315 -316
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +5 -3
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js +2 -2
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +246 -287
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +841 -700
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts +37 -74
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +37 -89
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts +38 -13
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js +79 -29
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/SecurityDetails.d.ts +1 -6
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/SecurityDetails.js +31 -12
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/SecurityDetails.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +6 -9
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +80 -40
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts +4 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js +24 -3
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +1 -2
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TimeoutSettings.js +28 -10
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TimeoutSettings.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts +4 -5
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +50 -23
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/USKeyboardLayout.js +2 -2
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts +9 -11
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js +41 -31
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/WebWorker.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts +4 -3
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js +6 -8
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.d.ts +5 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +6 -3
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts +48 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{EvalTypes.js → types.js} +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/types.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts +129 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/{helper.js → util.js} +168 -87
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts +3 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js +3 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/compat.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts +3 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js +3 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/constants.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts +3 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js +3 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/environment.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts +4 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js +4 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/generated/version.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/initialize-node.d.ts → cjs/puppeteer/initializePuppeteer.d.ts} +5 -2
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{initialize-node.js → initializePuppeteer.js} +18 -14
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initializePuppeteer.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +4 -11
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +226 -158
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts +9 -11
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +116 -72
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts +27 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js +176 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ChromeLauncher.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts +49 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js +361 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +6 -3
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +44 -12
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts +4 -20
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js +60 -35
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts +31 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js +166 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/ProductLauncher.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +42 -41
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +69 -47
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts +6 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +55 -32
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts +10 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js +40 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/util.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts +23 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js +41 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer-core.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts +26 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js +44 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/puppeteer.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts +6 -5
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +6 -3
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/tsconfig.cjs.tsbuildinfo +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/tsconfig.tsbuildinfo +1 -0
 - package/front_end/third_party/puppeteer/package/lib/{esm/puppeteer/api-docs-entry.js → cjs/puppeteer/types.d.ts} +46 -63
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/{api-docs-entry.js → types.js} +50 -51
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/types.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.d.ts +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.js +11 -12
 - package/front_end/third_party/puppeteer/package/lib/cjs/vendor/tsconfig.cjs.tsbuildinfo +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +6 -6
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +149 -85
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +34 -10
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +17 -36
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +217 -160
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +5 -4
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +16 -11
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +4 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +30 -11
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +21 -20
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +125 -82
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts +1 -4
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js +27 -9
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +6 -30
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +167 -131
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +36 -67
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +335 -214
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +8 -4
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +9 -6
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +21 -2
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +25 -5
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +2 -6
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +32 -15
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts +355 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js +820 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ElementHandle.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts +4 -3
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.js +25 -8
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +28 -6
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +26 -6
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +20 -19
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +145 -125
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +4 -6
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +25 -10
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +53 -92
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +337 -320
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +16 -28
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +199 -146
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +1 -18
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +86 -60
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +18 -22
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +167 -118
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +46 -395
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +80 -817
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +4 -32
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +135 -107
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.d.ts +25 -7
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.js +23 -2
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkConditions.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +16 -11
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +39 -32
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +2 -42
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +312 -313
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +5 -3
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +246 -287
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +819 -701
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +37 -74
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +39 -91
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +38 -13
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +79 -29
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts +1 -6
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.js +31 -12
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +6 -9
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +80 -40
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts +4 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js +24 -3
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts +1 -2
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.js +28 -10
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +4 -5
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +50 -23
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.js +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +9 -11
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +41 -31
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +4 -3
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +5 -6
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts +5 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js +6 -3
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts +48 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{EvalTypes.js → types.js} +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/types.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts +129 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/{helper.js → util.js} +161 -100
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts +3 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js +3 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/compat.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts +3 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js +3 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/constants.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +3 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +3 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/environment.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts +4 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js +4 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/generated/version.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/initialize-node.d.ts → esm/puppeteer/initializePuppeteer.d.ts} +5 -2
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{initialize-node.js → initializePuppeteer.js} +16 -12
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initializePuppeteer.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +4 -11
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +226 -158
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +9 -11
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +113 -69
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts +27 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js +169 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ChromeLauncher.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts +49 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/{Launcher.js → FirefoxLauncher.js} +51 -345
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +6 -3
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +44 -12
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +4 -20
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +60 -35
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts +31 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js +157 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/ProductLauncher.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +42 -41
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +70 -45
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts +6 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +53 -30
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts +10 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js +13 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/util.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts +23 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/{node-puppeteer-core.d.ts → puppeteer-core.js} +8 -2
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer-core.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts +26 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/{cjs/puppeteer/node-puppeteer-core.d.ts → esm/puppeteer/puppeteer.js} +11 -2
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/puppeteer.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +6 -5
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +6 -3
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js.map +1 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/tsconfig.esm.tsbuildinfo +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/tsconfig.tsbuildinfo +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts +64 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.d.ts.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js +68 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/types.js.map +1 -0
 - package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +9 -10
 - package/front_end/third_party/puppeteer/package/lib/esm/vendor/tsconfig.esm.tsbuildinfo +1 -0
 - package/front_end/third_party/puppeteer/package/lib/types.d.ts +846 -1670
 - package/front_end/third_party/puppeteer/package/package.json +65 -68
 - package/front_end/third_party/puppeteer/package/typescript-if-required.js +17 -8
 - package/front_end/third_party/puppeteer/puppeteer.ts +7 -14
 - package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +2 -5
 - package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +22 -2
 - package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +40 -12
 - package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +5 -5
 - package/front_end/ui/legacy/components/utils/Linkifier.ts +3 -1
 - package/package.json +1 -1
 - package/scripts/eslint_rules/lib/inject_checkbox_styles.js +4 -2
 - package/scripts/eslint_rules/tests/inject_checkbox_styles_test.js +45 -5
 - package/front_end/third_party/puppeteer/package/cjs-entry-core.js +0 -29
 - package/front_end/third_party/puppeteer/package/cjs-entry.js +0 -29
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts +0 -111
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +0 -61
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Events.d.ts +0 -82
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Events.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Events.js +0 -87
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Events.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts +0 -85
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-node.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-web.d.ts +0 -18
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-web.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-web.js +0 -27
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/initialize-web.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +0 -18
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +0 -674
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js +0 -25
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.d.ts +0 -18
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js +0 -24
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.d.ts +0 -18
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js +0 -24
 - package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/cjs/vendor/mitt/src/index.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +0 -111
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +0 -61
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts +0 -82
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.js +0 -84
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +0 -85
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts +0 -18
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.js +0 -23
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +0 -18
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +0 -23
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts +0 -18
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js +0 -22
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts +0 -18
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js +0 -22
 - package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/web.js.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts.map +0 -1
 - package/front_end/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js.map +0 -1
 
| 
         @@ -14,79 +14,173 @@ 
     | 
|
| 
       14 
14 
     | 
    
         
             
             * See the License for the specific language governing permissions and
         
     | 
| 
       15 
15 
     | 
    
         
             
             * limitations under the License.
         
     | 
| 
       16 
16 
     | 
    
         
             
             */
         
     | 
| 
      
 17 
     | 
    
         
            +
            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
         
     | 
| 
      
 18 
     | 
    
         
            +
                if (k2 === undefined) k2 = k;
         
     | 
| 
      
 19 
     | 
    
         
            +
                var desc = Object.getOwnPropertyDescriptor(m, k);
         
     | 
| 
      
 20 
     | 
    
         
            +
                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
         
     | 
| 
      
 21 
     | 
    
         
            +
                  desc = { enumerable: true, get: function() { return m[k]; } };
         
     | 
| 
      
 22 
     | 
    
         
            +
                }
         
     | 
| 
      
 23 
     | 
    
         
            +
                Object.defineProperty(o, k2, desc);
         
     | 
| 
      
 24 
     | 
    
         
            +
            }) : (function(o, m, k, k2) {
         
     | 
| 
      
 25 
     | 
    
         
            +
                if (k2 === undefined) k2 = k;
         
     | 
| 
      
 26 
     | 
    
         
            +
                o[k2] = m[k];
         
     | 
| 
      
 27 
     | 
    
         
            +
            }));
         
     | 
| 
      
 28 
     | 
    
         
            +
            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
         
     | 
| 
      
 29 
     | 
    
         
            +
                Object.defineProperty(o, "default", { enumerable: true, value: v });
         
     | 
| 
      
 30 
     | 
    
         
            +
            }) : function(o, v) {
         
     | 
| 
      
 31 
     | 
    
         
            +
                o["default"] = v;
         
     | 
| 
      
 32 
     | 
    
         
            +
            });
         
     | 
| 
      
 33 
     | 
    
         
            +
            var __importStar = (this && this.__importStar) || function (mod) {
         
     | 
| 
      
 34 
     | 
    
         
            +
                if (mod && mod.__esModule) return mod;
         
     | 
| 
      
 35 
     | 
    
         
            +
                var result = {};
         
     | 
| 
      
 36 
     | 
    
         
            +
                if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
         
     | 
| 
      
 37 
     | 
    
         
            +
                __setModuleDefault(result, mod);
         
     | 
| 
      
 38 
     | 
    
         
            +
                return result;
         
     | 
| 
      
 39 
     | 
    
         
            +
            };
         
     | 
| 
      
 40 
     | 
    
         
            +
            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
         
     | 
| 
      
 41 
     | 
    
         
            +
                if (kind === "m") throw new TypeError("Private method is not writable");
         
     | 
| 
      
 42 
     | 
    
         
            +
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
         
     | 
| 
      
 43 
     | 
    
         
            +
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
         
     | 
| 
      
 44 
     | 
    
         
            +
                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
         
     | 
| 
      
 45 
     | 
    
         
            +
            };
         
     | 
| 
      
 46 
     | 
    
         
            +
            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
         
     | 
| 
      
 47 
     | 
    
         
            +
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
         
     | 
| 
      
 48 
     | 
    
         
            +
                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");
         
     | 
| 
      
 49 
     | 
    
         
            +
                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
         
     | 
| 
      
 50 
     | 
    
         
            +
            };
         
     | 
| 
      
 51 
     | 
    
         
            +
            var _a, _DOMWorld_frameManager, _DOMWorld_client, _DOMWorld_frame, _DOMWorld_timeoutSettings, _DOMWorld_documentPromise, _DOMWorld_contextPromise, _DOMWorld_contextResolveCallback, _DOMWorld_detached, _DOMWorld_ctxBindings, _DOMWorld_boundFunctions, _DOMWorld_waitTasks, _DOMWorld_bindingIdentifier, _DOMWorld_settingUpBinding, _DOMWorld_onBindingCalled, _WaitTask_instances, _WaitTask_domWorld, _WaitTask_polling, _WaitTask_timeout, _WaitTask_predicateBody, _WaitTask_predicateAcceptsContextElement, _WaitTask_args, _WaitTask_binding, _WaitTask_runCount, _WaitTask_resolve, _WaitTask_reject, _WaitTask_timeoutTimer, _WaitTask_terminated, _WaitTask_root, _WaitTask_cleanup;
         
     | 
| 
       17 
52 
     | 
    
         
             
            Object.defineProperty(exports, "__esModule", { value: true });
         
     | 
| 
       18 
53 
     | 
    
         
             
            exports.WaitTask = exports.DOMWorld = void 0;
         
     | 
| 
       19 
54 
     | 
    
         
             
            const assert_js_1 = require("./assert.js");
         
     | 
| 
       20 
     | 
    
         
            -
            const helper_js_1 = require("./helper.js");
         
     | 
| 
       21 
     | 
    
         
            -
            const LifecycleWatcher_js_1 = require("./LifecycleWatcher.js");
         
     | 
| 
       22 
55 
     | 
    
         
             
            const Errors_js_1 = require("./Errors.js");
         
     | 
| 
      
 56 
     | 
    
         
            +
            const LifecycleWatcher_js_1 = require("./LifecycleWatcher.js");
         
     | 
| 
       23 
57 
     | 
    
         
             
            const QueryHandler_js_1 = require("./QueryHandler.js");
         
     | 
| 
       24 
     | 
    
         
            -
            const  
     | 
| 
      
 58 
     | 
    
         
            +
            const util_js_1 = require("./util.js");
         
     | 
| 
       25 
59 
     | 
    
         
             
            /**
         
     | 
| 
       26 
60 
     | 
    
         
             
             * @internal
         
     | 
| 
       27 
61 
     | 
    
         
             
             */
         
     | 
| 
       28 
62 
     | 
    
         
             
            class DOMWorld {
         
     | 
| 
       29 
63 
     | 
    
         
             
                constructor(client, frameManager, frame, timeoutSettings) {
         
     | 
| 
       30 
     | 
    
         
            -
                    this 
     | 
| 
       31 
     | 
    
         
            -
                    this 
     | 
| 
       32 
     | 
    
         
            -
                    this 
     | 
| 
       33 
     | 
    
         
            -
                    this 
     | 
| 
       34 
     | 
    
         
            -
                     
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
                    this 
     | 
| 
       38 
     | 
    
         
            -
                    /**
         
     | 
| 
       39 
     | 
    
         
            -
                     * @internal
         
     | 
| 
       40 
     | 
    
         
            -
                     * Contains mapping from functions that should be bound to Puppeteer functions.
         
     | 
| 
       41 
     | 
    
         
            -
                     */
         
     | 
| 
       42 
     | 
    
         
            -
                    this._boundFunctions = new Map();
         
     | 
| 
      
 64 
     | 
    
         
            +
                    _DOMWorld_frameManager.set(this, void 0);
         
     | 
| 
      
 65 
     | 
    
         
            +
                    _DOMWorld_client.set(this, void 0);
         
     | 
| 
      
 66 
     | 
    
         
            +
                    _DOMWorld_frame.set(this, void 0);
         
     | 
| 
      
 67 
     | 
    
         
            +
                    _DOMWorld_timeoutSettings.set(this, void 0);
         
     | 
| 
      
 68 
     | 
    
         
            +
                    _DOMWorld_documentPromise.set(this, null);
         
     | 
| 
      
 69 
     | 
    
         
            +
                    _DOMWorld_contextPromise.set(this, null);
         
     | 
| 
      
 70 
     | 
    
         
            +
                    _DOMWorld_contextResolveCallback.set(this, null);
         
     | 
| 
      
 71 
     | 
    
         
            +
                    _DOMWorld_detached.set(this, false);
         
     | 
| 
       43 
72 
     | 
    
         
             
                    // Set of bindings that have been registered in the current context.
         
     | 
| 
       44 
     | 
    
         
            -
                    this 
     | 
| 
      
 73 
     | 
    
         
            +
                    _DOMWorld_ctxBindings.set(this, new Set());
         
     | 
| 
      
 74 
     | 
    
         
            +
                    // Contains mapping from functions that should be bound to Puppeteer functions.
         
     | 
| 
      
 75 
     | 
    
         
            +
                    _DOMWorld_boundFunctions.set(this, new Map());
         
     | 
| 
      
 76 
     | 
    
         
            +
                    _DOMWorld_waitTasks.set(this, new Set());
         
     | 
| 
       45 
77 
     | 
    
         
             
                    // If multiple waitFor are set up asynchronously, we need to wait for the
         
     | 
| 
       46 
78 
     | 
    
         
             
                    // first one to set up the binding in the page before running the others.
         
     | 
| 
       47 
     | 
    
         
            -
                    this 
     | 
| 
      
 79 
     | 
    
         
            +
                    _DOMWorld_settingUpBinding.set(this, null);
         
     | 
| 
      
 80 
     | 
    
         
            +
                    _DOMWorld_onBindingCalled.set(this, async (event) => {
         
     | 
| 
      
 81 
     | 
    
         
            +
                        let payload;
         
     | 
| 
      
 82 
     | 
    
         
            +
                        if (!this._hasContext()) {
         
     | 
| 
      
 83 
     | 
    
         
            +
                            return;
         
     | 
| 
      
 84 
     | 
    
         
            +
                        }
         
     | 
| 
      
 85 
     | 
    
         
            +
                        const context = await this.executionContext();
         
     | 
| 
      
 86 
     | 
    
         
            +
                        try {
         
     | 
| 
      
 87 
     | 
    
         
            +
                            payload = JSON.parse(event.payload);
         
     | 
| 
      
 88 
     | 
    
         
            +
                        }
         
     | 
| 
      
 89 
     | 
    
         
            +
                        catch {
         
     | 
| 
      
 90 
     | 
    
         
            +
                            // The binding was either called by something in the page or it was
         
     | 
| 
      
 91 
     | 
    
         
            +
                            // called before our wrapper was initialized.
         
     | 
| 
      
 92 
     | 
    
         
            +
                            return;
         
     | 
| 
      
 93 
     | 
    
         
            +
                        }
         
     | 
| 
      
 94 
     | 
    
         
            +
                        const { type, name, seq, args } = payload;
         
     | 
| 
      
 95 
     | 
    
         
            +
                        if (type !== 'internal' ||
         
     | 
| 
      
 96 
     | 
    
         
            +
                            !__classPrivateFieldGet(this, _DOMWorld_ctxBindings, "f").has(__classPrivateFieldGet(DOMWorld, _a, "f", _DOMWorld_bindingIdentifier).call(DOMWorld, name, context._contextId))) {
         
     | 
| 
      
 97 
     | 
    
         
            +
                            return;
         
     | 
| 
      
 98 
     | 
    
         
            +
                        }
         
     | 
| 
      
 99 
     | 
    
         
            +
                        if (context._contextId !== event.executionContextId) {
         
     | 
| 
      
 100 
     | 
    
         
            +
                            return;
         
     | 
| 
      
 101 
     | 
    
         
            +
                        }
         
     | 
| 
      
 102 
     | 
    
         
            +
                        try {
         
     | 
| 
      
 103 
     | 
    
         
            +
                            const fn = this._boundFunctions.get(name);
         
     | 
| 
      
 104 
     | 
    
         
            +
                            if (!fn) {
         
     | 
| 
      
 105 
     | 
    
         
            +
                                throw new Error(`Bound function $name is not found`);
         
     | 
| 
      
 106 
     | 
    
         
            +
                            }
         
     | 
| 
      
 107 
     | 
    
         
            +
                            const result = await fn(...args);
         
     | 
| 
      
 108 
     | 
    
         
            +
                            await context.evaluate(deliverResult, name, seq, result);
         
     | 
| 
      
 109 
     | 
    
         
            +
                        }
         
     | 
| 
      
 110 
     | 
    
         
            +
                        catch (error) {
         
     | 
| 
      
 111 
     | 
    
         
            +
                            // The WaitTask may already have been resolved by timing out, or the
         
     | 
| 
      
 112 
     | 
    
         
            +
                            // exection context may have been destroyed.
         
     | 
| 
      
 113 
     | 
    
         
            +
                            // In both caes, the promises above are rejected with a protocol error.
         
     | 
| 
      
 114 
     | 
    
         
            +
                            // We can safely ignores these, as the WaitTask is re-installed in
         
     | 
| 
      
 115 
     | 
    
         
            +
                            // the next execution context if needed.
         
     | 
| 
      
 116 
     | 
    
         
            +
                            if (error.message.includes('Protocol error')) {
         
     | 
| 
      
 117 
     | 
    
         
            +
                                return;
         
     | 
| 
      
 118 
     | 
    
         
            +
                            }
         
     | 
| 
      
 119 
     | 
    
         
            +
                            (0, util_js_1.debugError)(error);
         
     | 
| 
      
 120 
     | 
    
         
            +
                        }
         
     | 
| 
      
 121 
     | 
    
         
            +
                        function deliverResult(name, seq, result) {
         
     | 
| 
      
 122 
     | 
    
         
            +
                            // eslint-disable-next-line @typescript-eslint/ban-ts-comment
         
     | 
| 
      
 123 
     | 
    
         
            +
                            // @ts-ignore Code is evaluated in a different context.
         
     | 
| 
      
 124 
     | 
    
         
            +
                            globalThis[name].callbacks.get(seq).resolve(result);
         
     | 
| 
      
 125 
     | 
    
         
            +
                            // eslint-disable-next-line @typescript-eslint/ban-ts-comment
         
     | 
| 
      
 126 
     | 
    
         
            +
                            // @ts-ignore Code is evaluated in a different context.
         
     | 
| 
      
 127 
     | 
    
         
            +
                            globalThis[name].callbacks.delete(seq);
         
     | 
| 
      
 128 
     | 
    
         
            +
                        }
         
     | 
| 
      
 129 
     | 
    
         
            +
                    });
         
     | 
| 
       48 
130 
     | 
    
         
             
                    // Keep own reference to client because it might differ from the FrameManager's
         
     | 
| 
       49 
131 
     | 
    
         
             
                    // client for OOP iframes.
         
     | 
| 
       50 
     | 
    
         
            -
                    this 
     | 
| 
       51 
     | 
    
         
            -
                    this 
     | 
| 
       52 
     | 
    
         
            -
                    this 
     | 
| 
       53 
     | 
    
         
            -
                    this 
     | 
| 
      
 132 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _DOMWorld_client, client, "f");
         
     | 
| 
      
 133 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _DOMWorld_frameManager, frameManager, "f");
         
     | 
| 
      
 134 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _DOMWorld_frame, frame, "f");
         
     | 
| 
      
 135 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _DOMWorld_timeoutSettings, timeoutSettings, "f");
         
     | 
| 
       54 
136 
     | 
    
         
             
                    this._setContext(null);
         
     | 
| 
       55 
     | 
    
         
            -
                    this 
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
      
 137 
     | 
    
         
            +
                    __classPrivateFieldGet(this, _DOMWorld_client, "f").on('Runtime.bindingCalled', __classPrivateFieldGet(this, _DOMWorld_onBindingCalled, "f"));
         
     | 
| 
      
 138 
     | 
    
         
            +
                }
         
     | 
| 
      
 139 
     | 
    
         
            +
                get _waitTasks() {
         
     | 
| 
      
 140 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _DOMWorld_waitTasks, "f");
         
     | 
| 
      
 141 
     | 
    
         
            +
                }
         
     | 
| 
      
 142 
     | 
    
         
            +
                get _boundFunctions() {
         
     | 
| 
      
 143 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _DOMWorld_boundFunctions, "f");
         
     | 
| 
       57 
144 
     | 
    
         
             
                }
         
     | 
| 
       58 
145 
     | 
    
         
             
                frame() {
         
     | 
| 
       59 
     | 
    
         
            -
                    return this 
     | 
| 
      
 146 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _DOMWorld_frame, "f");
         
     | 
| 
       60 
147 
     | 
    
         
             
                }
         
     | 
| 
       61 
148 
     | 
    
         
             
                async _setContext(context) {
         
     | 
| 
      
 149 
     | 
    
         
            +
                    var _b;
         
     | 
| 
       62 
150 
     | 
    
         
             
                    if (context) {
         
     | 
| 
       63 
     | 
    
         
            -
                        (0, assert_js_1.assert)(this 
     | 
| 
       64 
     | 
    
         
            -
                        this. 
     | 
| 
       65 
     | 
    
         
            -
                        this. 
     | 
| 
       66 
     | 
    
         
            -
                        this 
     | 
| 
       67 
     | 
    
         
            -
                        for (const waitTask of this._waitTasks)
         
     | 
| 
      
 151 
     | 
    
         
            +
                        (0, assert_js_1.assert)(__classPrivateFieldGet(this, _DOMWorld_contextResolveCallback, "f"), 'Execution Context has already been set.');
         
     | 
| 
      
 152 
     | 
    
         
            +
                        __classPrivateFieldGet(this, _DOMWorld_ctxBindings, "f").clear();
         
     | 
| 
      
 153 
     | 
    
         
            +
                        (_b = __classPrivateFieldGet(this, _DOMWorld_contextResolveCallback, "f")) === null || _b === void 0 ? void 0 : _b.call(null, context);
         
     | 
| 
      
 154 
     | 
    
         
            +
                        __classPrivateFieldSet(this, _DOMWorld_contextResolveCallback, null, "f");
         
     | 
| 
      
 155 
     | 
    
         
            +
                        for (const waitTask of this._waitTasks) {
         
     | 
| 
       68 
156 
     | 
    
         
             
                            waitTask.rerun();
         
     | 
| 
      
 157 
     | 
    
         
            +
                        }
         
     | 
| 
       69 
158 
     | 
    
         
             
                    }
         
     | 
| 
       70 
159 
     | 
    
         
             
                    else {
         
     | 
| 
       71 
     | 
    
         
            -
                        this 
     | 
| 
       72 
     | 
    
         
            -
                        this 
     | 
| 
       73 
     | 
    
         
            -
                            this 
     | 
| 
       74 
     | 
    
         
            -
                        });
         
     | 
| 
      
 160 
     | 
    
         
            +
                        __classPrivateFieldSet(this, _DOMWorld_documentPromise, null, "f");
         
     | 
| 
      
 161 
     | 
    
         
            +
                        __classPrivateFieldSet(this, _DOMWorld_contextPromise, new Promise(fulfill => {
         
     | 
| 
      
 162 
     | 
    
         
            +
                            __classPrivateFieldSet(this, _DOMWorld_contextResolveCallback, fulfill, "f");
         
     | 
| 
      
 163 
     | 
    
         
            +
                        }), "f");
         
     | 
| 
       75 
164 
     | 
    
         
             
                    }
         
     | 
| 
       76 
165 
     | 
    
         
             
                }
         
     | 
| 
       77 
166 
     | 
    
         
             
                _hasContext() {
         
     | 
| 
       78 
     | 
    
         
            -
                    return !this 
     | 
| 
      
 167 
     | 
    
         
            +
                    return !__classPrivateFieldGet(this, _DOMWorld_contextResolveCallback, "f");
         
     | 
| 
       79 
168 
     | 
    
         
             
                }
         
     | 
| 
       80 
169 
     | 
    
         
             
                _detach() {
         
     | 
| 
       81 
     | 
    
         
            -
                    this 
     | 
| 
       82 
     | 
    
         
            -
                    this. 
     | 
| 
       83 
     | 
    
         
            -
                    for (const waitTask of this._waitTasks)
         
     | 
| 
      
 170 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _DOMWorld_detached, true, "f");
         
     | 
| 
      
 171 
     | 
    
         
            +
                    __classPrivateFieldGet(this, _DOMWorld_client, "f").off('Runtime.bindingCalled', __classPrivateFieldGet(this, _DOMWorld_onBindingCalled, "f"));
         
     | 
| 
      
 172 
     | 
    
         
            +
                    for (const waitTask of this._waitTasks) {
         
     | 
| 
       84 
173 
     | 
    
         
             
                        waitTask.terminate(new Error('waitForFunction failed: frame got detached.'));
         
     | 
| 
      
 174 
     | 
    
         
            +
                    }
         
     | 
| 
       85 
175 
     | 
    
         
             
                }
         
     | 
| 
       86 
176 
     | 
    
         
             
                executionContext() {
         
     | 
| 
       87 
     | 
    
         
            -
                    if (this 
     | 
| 
       88 
     | 
    
         
            -
                        throw new Error(`Execution context is not available in detached frame "${this. 
     | 
| 
       89 
     | 
    
         
            -
                     
     | 
| 
      
 177 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _DOMWorld_detached, "f")) {
         
     | 
| 
      
 178 
     | 
    
         
            +
                        throw new Error(`Execution context is not available in detached frame "${__classPrivateFieldGet(this, _DOMWorld_frame, "f").url()}" (are you trying to evaluate?)`);
         
     | 
| 
      
 179 
     | 
    
         
            +
                    }
         
     | 
| 
      
 180 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _DOMWorld_contextPromise, "f") === null) {
         
     | 
| 
      
 181 
     | 
    
         
            +
                        throw new Error(`Execution content promise is missing`);
         
     | 
| 
      
 182 
     | 
    
         
            +
                    }
         
     | 
| 
      
 183 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _DOMWorld_contextPromise, "f");
         
     | 
| 
       90 
184 
     | 
    
         
             
                }
         
     | 
| 
       91 
185 
     | 
    
         
             
                async evaluateHandle(pageFunction, ...args) {
         
     | 
| 
       92 
186 
     | 
    
         
             
                    const context = await this.executionContext();
         
     | 
| 
         @@ -101,14 +195,20 @@ class DOMWorld { 
     | 
|
| 
       101 
195 
     | 
    
         
             
                    const value = await document.$(selector);
         
     | 
| 
       102 
196 
     | 
    
         
             
                    return value;
         
     | 
| 
       103 
197 
     | 
    
         
             
                }
         
     | 
| 
      
 198 
     | 
    
         
            +
                async $$(selector) {
         
     | 
| 
      
 199 
     | 
    
         
            +
                    const document = await this._document();
         
     | 
| 
      
 200 
     | 
    
         
            +
                    return document.$$(selector);
         
     | 
| 
      
 201 
     | 
    
         
            +
                }
         
     | 
| 
       104 
202 
     | 
    
         
             
                async _document() {
         
     | 
| 
       105 
     | 
    
         
            -
                    if (this 
     | 
| 
       106 
     | 
    
         
            -
                        return this 
     | 
| 
       107 
     | 
    
         
            -
                     
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
                        return  
     | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
      
 203 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _DOMWorld_documentPromise, "f")) {
         
     | 
| 
      
 204 
     | 
    
         
            +
                        return __classPrivateFieldGet(this, _DOMWorld_documentPromise, "f");
         
     | 
| 
      
 205 
     | 
    
         
            +
                    }
         
     | 
| 
      
 206 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _DOMWorld_documentPromise, this.executionContext().then(async (context) => {
         
     | 
| 
      
 207 
     | 
    
         
            +
                        return await context.evaluateHandle(() => {
         
     | 
| 
      
 208 
     | 
    
         
            +
                            return document;
         
     | 
| 
      
 209 
     | 
    
         
            +
                        });
         
     | 
| 
      
 210 
     | 
    
         
            +
                    }), "f");
         
     | 
| 
      
 211 
     | 
    
         
            +
                    return __classPrivateFieldGet(this, _DOMWorld_documentPromise, "f");
         
     | 
| 
       112 
212 
     | 
    
         
             
                }
         
     | 
| 
       113 
213 
     | 
    
         
             
                async $x(expression) {
         
     | 
| 
       114 
214 
     | 
    
         
             
                    const document = await this._document();
         
     | 
| 
         @@ -124,38 +224,36 @@ class DOMWorld { 
     | 
|
| 
       124 
224 
     | 
    
         
             
                    const value = await document.$$eval(selector, pageFunction, ...args);
         
     | 
| 
       125 
225 
     | 
    
         
             
                    return value;
         
     | 
| 
       126 
226 
     | 
    
         
             
                }
         
     | 
| 
       127 
     | 
    
         
            -
                async $$(selector) {
         
     | 
| 
       128 
     | 
    
         
            -
                    const document = await this._document();
         
     | 
| 
       129 
     | 
    
         
            -
                    const value = await document.$$(selector);
         
     | 
| 
       130 
     | 
    
         
            -
                    return value;
         
     | 
| 
       131 
     | 
    
         
            -
                }
         
     | 
| 
       132 
227 
     | 
    
         
             
                async content() {
         
     | 
| 
       133 
228 
     | 
    
         
             
                    return await this.evaluate(() => {
         
     | 
| 
       134 
229 
     | 
    
         
             
                        let retVal = '';
         
     | 
| 
       135 
     | 
    
         
            -
                        if (document.doctype)
         
     | 
| 
      
 230 
     | 
    
         
            +
                        if (document.doctype) {
         
     | 
| 
       136 
231 
     | 
    
         
             
                            retVal = new XMLSerializer().serializeToString(document.doctype);
         
     | 
| 
       137 
     | 
    
         
            -
                         
     | 
| 
      
 232 
     | 
    
         
            +
                        }
         
     | 
| 
      
 233 
     | 
    
         
            +
                        if (document.documentElement) {
         
     | 
| 
       138 
234 
     | 
    
         
             
                            retVal += document.documentElement.outerHTML;
         
     | 
| 
      
 235 
     | 
    
         
            +
                        }
         
     | 
| 
       139 
236 
     | 
    
         
             
                        return retVal;
         
     | 
| 
       140 
237 
     | 
    
         
             
                    });
         
     | 
| 
       141 
238 
     | 
    
         
             
                }
         
     | 
| 
       142 
239 
     | 
    
         
             
                async setContent(html, options = {}) {
         
     | 
| 
       143 
     | 
    
         
            -
                    const { waitUntil = ['load'], timeout = this. 
     | 
| 
      
 240 
     | 
    
         
            +
                    const { waitUntil = ['load'], timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").navigationTimeout(), } = options;
         
     | 
| 
       144 
241 
     | 
    
         
             
                    // We rely upon the fact that document.open() will reset frame lifecycle with "init"
         
     | 
| 
       145 
242 
     | 
    
         
             
                    // lifecycle event. @see https://crrev.com/608658
         
     | 
| 
       146 
     | 
    
         
            -
                    await this.evaluate( 
     | 
| 
      
 243 
     | 
    
         
            +
                    await this.evaluate(html => {
         
     | 
| 
       147 
244 
     | 
    
         
             
                        document.open();
         
     | 
| 
       148 
245 
     | 
    
         
             
                        document.write(html);
         
     | 
| 
       149 
246 
     | 
    
         
             
                        document.close();
         
     | 
| 
       150 
247 
     | 
    
         
             
                    }, html);
         
     | 
| 
       151 
     | 
    
         
            -
                    const watcher = new LifecycleWatcher_js_1.LifecycleWatcher(this 
     | 
| 
      
 248 
     | 
    
         
            +
                    const watcher = new LifecycleWatcher_js_1.LifecycleWatcher(__classPrivateFieldGet(this, _DOMWorld_frameManager, "f"), __classPrivateFieldGet(this, _DOMWorld_frame, "f"), waitUntil, timeout);
         
     | 
| 
       152 
249 
     | 
    
         
             
                    const error = await Promise.race([
         
     | 
| 
       153 
250 
     | 
    
         
             
                        watcher.timeoutOrTerminationPromise(),
         
     | 
| 
       154 
251 
     | 
    
         
             
                        watcher.lifecyclePromise(),
         
     | 
| 
       155 
252 
     | 
    
         
             
                    ]);
         
     | 
| 
       156 
253 
     | 
    
         
             
                    watcher.dispose();
         
     | 
| 
       157 
     | 
    
         
            -
                    if (error)
         
     | 
| 
      
 254 
     | 
    
         
            +
                    if (error) {
         
     | 
| 
       158 
255 
     | 
    
         
             
                        throw error;
         
     | 
| 
      
 256 
     | 
    
         
            +
                    }
         
     | 
| 
       159 
257 
     | 
    
         
             
                }
         
     | 
| 
       160 
258 
     | 
    
         
             
                /**
         
     | 
| 
       161 
259 
     | 
    
         
             
                 * Adds a script tag into the current context.
         
     | 
| 
         @@ -171,34 +269,42 @@ class DOMWorld { 
     | 
|
| 
       171 
269 
     | 
    
         
             
                    if (url !== null) {
         
     | 
| 
       172 
270 
     | 
    
         
             
                        try {
         
     | 
| 
       173 
271 
     | 
    
         
             
                            const context = await this.executionContext();
         
     | 
| 
       174 
     | 
    
         
            -
                            return  
     | 
| 
      
 272 
     | 
    
         
            +
                            return await context.evaluateHandle(addScriptUrl, url, id, type);
         
     | 
| 
       175 
273 
     | 
    
         
             
                        }
         
     | 
| 
       176 
274 
     | 
    
         
             
                        catch (error) {
         
     | 
| 
       177 
275 
     | 
    
         
             
                            throw new Error(`Loading script from ${url} failed`);
         
     | 
| 
       178 
276 
     | 
    
         
             
                        }
         
     | 
| 
       179 
277 
     | 
    
         
             
                    }
         
     | 
| 
       180 
278 
     | 
    
         
             
                    if (path !== null) {
         
     | 
| 
       181 
     | 
    
         
            -
                         
     | 
| 
       182 
     | 
    
         
            -
             
     | 
| 
      
 279 
     | 
    
         
            +
                        let fs;
         
     | 
| 
      
 280 
     | 
    
         
            +
                        try {
         
     | 
| 
      
 281 
     | 
    
         
            +
                            fs = (await Promise.resolve().then(() => __importStar(require('fs')))).promises;
         
     | 
| 
       183 
282 
     | 
    
         
             
                        }
         
     | 
| 
       184 
     | 
    
         
            -
                         
     | 
| 
       185 
     | 
    
         
            -
             
     | 
| 
      
 283 
     | 
    
         
            +
                        catch (error) {
         
     | 
| 
      
 284 
     | 
    
         
            +
                            if (error instanceof TypeError) {
         
     | 
| 
      
 285 
     | 
    
         
            +
                                throw new Error('Can only pass a filepath to addScriptTag in a Node-like environment.');
         
     | 
| 
      
 286 
     | 
    
         
            +
                            }
         
     | 
| 
      
 287 
     | 
    
         
            +
                            throw error;
         
     | 
| 
      
 288 
     | 
    
         
            +
                        }
         
     | 
| 
      
 289 
     | 
    
         
            +
                        let contents = await fs.readFile(path, 'utf8');
         
     | 
| 
       186 
290 
     | 
    
         
             
                        contents += '//# sourceURL=' + path.replace(/\n/g, '');
         
     | 
| 
       187 
291 
     | 
    
         
             
                        const context = await this.executionContext();
         
     | 
| 
       188 
     | 
    
         
            -
                        return  
     | 
| 
      
 292 
     | 
    
         
            +
                        return await context.evaluateHandle(addScriptContent, contents, id, type);
         
     | 
| 
       189 
293 
     | 
    
         
             
                    }
         
     | 
| 
       190 
294 
     | 
    
         
             
                    if (content !== null) {
         
     | 
| 
       191 
295 
     | 
    
         
             
                        const context = await this.executionContext();
         
     | 
| 
       192 
     | 
    
         
            -
                        return  
     | 
| 
      
 296 
     | 
    
         
            +
                        return await context.evaluateHandle(addScriptContent, content, id, type);
         
     | 
| 
       193 
297 
     | 
    
         
             
                    }
         
     | 
| 
       194 
298 
     | 
    
         
             
                    throw new Error('Provide an object with a `url`, `path` or `content` property');
         
     | 
| 
       195 
299 
     | 
    
         
             
                    async function addScriptUrl(url, id, type) {
         
     | 
| 
       196 
300 
     | 
    
         
             
                        const script = document.createElement('script');
         
     | 
| 
       197 
301 
     | 
    
         
             
                        script.src = url;
         
     | 
| 
       198 
     | 
    
         
            -
                        if (id)
         
     | 
| 
      
 302 
     | 
    
         
            +
                        if (id) {
         
     | 
| 
       199 
303 
     | 
    
         
             
                            script.id = id;
         
     | 
| 
       200 
     | 
    
         
            -
                         
     | 
| 
      
 304 
     | 
    
         
            +
                        }
         
     | 
| 
      
 305 
     | 
    
         
            +
                        if (type) {
         
     | 
| 
       201 
306 
     | 
    
         
             
                            script.type = type;
         
     | 
| 
      
 307 
     | 
    
         
            +
                        }
         
     | 
| 
       202 
308 
     | 
    
         
             
                        const promise = new Promise((res, rej) => {
         
     | 
| 
       203 
309 
     | 
    
         
             
                            script.onload = res;
         
     | 
| 
       204 
310 
     | 
    
         
             
                            script.onerror = rej;
         
     | 
| 
         @@ -211,13 +317,17 @@ class DOMWorld { 
     | 
|
| 
       211 
317 
     | 
    
         
             
                        const script = document.createElement('script');
         
     | 
| 
       212 
318 
     | 
    
         
             
                        script.type = type;
         
     | 
| 
       213 
319 
     | 
    
         
             
                        script.text = content;
         
     | 
| 
       214 
     | 
    
         
            -
                        if (id)
         
     | 
| 
      
 320 
     | 
    
         
            +
                        if (id) {
         
     | 
| 
       215 
321 
     | 
    
         
             
                            script.id = id;
         
     | 
| 
      
 322 
     | 
    
         
            +
                        }
         
     | 
| 
       216 
323 
     | 
    
         
             
                        let error = null;
         
     | 
| 
       217 
     | 
    
         
            -
                        script.onerror =  
     | 
| 
      
 324 
     | 
    
         
            +
                        script.onerror = e => {
         
     | 
| 
      
 325 
     | 
    
         
            +
                            return (error = e);
         
     | 
| 
      
 326 
     | 
    
         
            +
                        };
         
     | 
| 
       218 
327 
     | 
    
         
             
                        document.head.appendChild(script);
         
     | 
| 
       219 
     | 
    
         
            -
                        if (error)
         
     | 
| 
      
 328 
     | 
    
         
            +
                        if (error) {
         
     | 
| 
       220 
329 
     | 
    
         
             
                            throw error;
         
     | 
| 
      
 330 
     | 
    
         
            +
                        }
         
     | 
| 
       221 
331 
     | 
    
         
             
                        return script;
         
     | 
| 
       222 
332 
     | 
    
         
             
                    }
         
     | 
| 
       223 
333 
     | 
    
         
             
                }
         
     | 
| 
         @@ -236,25 +346,46 @@ class DOMWorld { 
     | 
|
| 
       236 
346 
     | 
    
         
             
                    if (url !== null) {
         
     | 
| 
       237 
347 
     | 
    
         
             
                        try {
         
     | 
| 
       238 
348 
     | 
    
         
             
                            const context = await this.executionContext();
         
     | 
| 
       239 
     | 
    
         
            -
                             
     | 
| 
      
 349 
     | 
    
         
            +
                            const handle = await context.evaluateHandle(addStyleUrl, url);
         
     | 
| 
      
 350 
     | 
    
         
            +
                            const elementHandle = handle.asElement();
         
     | 
| 
      
 351 
     | 
    
         
            +
                            if (elementHandle === null) {
         
     | 
| 
      
 352 
     | 
    
         
            +
                                throw new Error('Style element is not found');
         
     | 
| 
      
 353 
     | 
    
         
            +
                            }
         
     | 
| 
      
 354 
     | 
    
         
            +
                            return elementHandle;
         
     | 
| 
       240 
355 
     | 
    
         
             
                        }
         
     | 
| 
       241 
356 
     | 
    
         
             
                        catch (error) {
         
     | 
| 
       242 
357 
     | 
    
         
             
                            throw new Error(`Loading style from ${url} failed`);
         
     | 
| 
       243 
358 
     | 
    
         
             
                        }
         
     | 
| 
       244 
359 
     | 
    
         
             
                    }
         
     | 
| 
       245 
360 
     | 
    
         
             
                    if (path !== null) {
         
     | 
| 
       246 
     | 
    
         
            -
                         
     | 
| 
       247 
     | 
    
         
            -
             
     | 
| 
      
 361 
     | 
    
         
            +
                        let fs;
         
     | 
| 
      
 362 
     | 
    
         
            +
                        try {
         
     | 
| 
      
 363 
     | 
    
         
            +
                            fs = (await Promise.resolve().then(() => __importStar(require('fs')))).promises;
         
     | 
| 
       248 
364 
     | 
    
         
             
                        }
         
     | 
| 
       249 
     | 
    
         
            -
                         
     | 
| 
       250 
     | 
    
         
            -
             
     | 
| 
      
 365 
     | 
    
         
            +
                        catch (error) {
         
     | 
| 
      
 366 
     | 
    
         
            +
                            if (error instanceof TypeError) {
         
     | 
| 
      
 367 
     | 
    
         
            +
                                throw new Error('Cannot pass a filepath to addStyleTag in the browser environment.');
         
     | 
| 
      
 368 
     | 
    
         
            +
                            }
         
     | 
| 
      
 369 
     | 
    
         
            +
                            throw error;
         
     | 
| 
      
 370 
     | 
    
         
            +
                        }
         
     | 
| 
      
 371 
     | 
    
         
            +
                        let contents = await fs.readFile(path, 'utf8');
         
     | 
| 
       251 
372 
     | 
    
         
             
                        contents += '/*# sourceURL=' + path.replace(/\n/g, '') + '*/';
         
     | 
| 
       252 
373 
     | 
    
         
             
                        const context = await this.executionContext();
         
     | 
| 
       253 
     | 
    
         
            -
                         
     | 
| 
      
 374 
     | 
    
         
            +
                        const handle = await context.evaluateHandle(addStyleContent, contents);
         
     | 
| 
      
 375 
     | 
    
         
            +
                        const elementHandle = handle.asElement();
         
     | 
| 
      
 376 
     | 
    
         
            +
                        if (elementHandle === null) {
         
     | 
| 
      
 377 
     | 
    
         
            +
                            throw new Error('Style element is not found');
         
     | 
| 
      
 378 
     | 
    
         
            +
                        }
         
     | 
| 
      
 379 
     | 
    
         
            +
                        return elementHandle;
         
     | 
| 
       254 
380 
     | 
    
         
             
                    }
         
     | 
| 
       255 
381 
     | 
    
         
             
                    if (content !== null) {
         
     | 
| 
       256 
382 
     | 
    
         
             
                        const context = await this.executionContext();
         
     | 
| 
       257 
     | 
    
         
            -
                         
     | 
| 
      
 383 
     | 
    
         
            +
                        const handle = await context.evaluateHandle(addStyleContent, content);
         
     | 
| 
      
 384 
     | 
    
         
            +
                        const elementHandle = handle.asElement();
         
     | 
| 
      
 385 
     | 
    
         
            +
                        if (elementHandle === null) {
         
     | 
| 
      
 386 
     | 
    
         
            +
                            throw new Error('Style element is not found');
         
     | 
| 
      
 387 
     | 
    
         
            +
                        }
         
     | 
| 
      
 388 
     | 
    
         
            +
                        return elementHandle;
         
     | 
| 
       258 
389 
     | 
    
         
             
                    }
         
     | 
| 
       259 
390 
     | 
    
         
             
                    throw new Error('Provide an object with a `url`, `path` or `content` property');
         
     | 
| 
       260 
391 
     | 
    
         
             
                    async function addStyleUrl(url) {
         
     | 
| 
         @@ -271,7 +402,6 @@ class DOMWorld { 
     | 
|
| 
       271 
402 
     | 
    
         
             
                    }
         
     | 
| 
       272 
403 
     | 
    
         
             
                    async function addStyleContent(content) {
         
     | 
| 
       273 
404 
     | 
    
         
             
                        const style = document.createElement('style');
         
     | 
| 
       274 
     | 
    
         
            -
                        style.type = 'text/css';
         
     | 
| 
       275 
405 
     | 
    
         
             
                        style.appendChild(document.createTextNode(content));
         
     | 
| 
       276 
406 
     | 
    
         
             
                        const promise = new Promise((res, rej) => {
         
     | 
| 
       277 
407 
     | 
    
         
             
                            style.onload = res;
         
     | 
| 
         @@ -284,59 +414,58 @@ class DOMWorld { 
     | 
|
| 
       284 
414 
     | 
    
         
             
                }
         
     | 
| 
       285 
415 
     | 
    
         
             
                async click(selector, options) {
         
     | 
| 
       286 
416 
     | 
    
         
             
                    const handle = await this.$(selector);
         
     | 
| 
       287 
     | 
    
         
            -
                    (0, assert_js_1.assert)(handle,  
     | 
| 
      
 417 
     | 
    
         
            +
                    (0, assert_js_1.assert)(handle, `No element found for selector: ${selector}`);
         
     | 
| 
       288 
418 
     | 
    
         
             
                    await handle.click(options);
         
     | 
| 
       289 
419 
     | 
    
         
             
                    await handle.dispose();
         
     | 
| 
       290 
420 
     | 
    
         
             
                }
         
     | 
| 
       291 
421 
     | 
    
         
             
                async focus(selector) {
         
     | 
| 
       292 
422 
     | 
    
         
             
                    const handle = await this.$(selector);
         
     | 
| 
       293 
     | 
    
         
            -
                    (0, assert_js_1.assert)(handle,  
     | 
| 
      
 423 
     | 
    
         
            +
                    (0, assert_js_1.assert)(handle, `No element found for selector: ${selector}`);
         
     | 
| 
       294 
424 
     | 
    
         
             
                    await handle.focus();
         
     | 
| 
       295 
425 
     | 
    
         
             
                    await handle.dispose();
         
     | 
| 
       296 
426 
     | 
    
         
             
                }
         
     | 
| 
       297 
427 
     | 
    
         
             
                async hover(selector) {
         
     | 
| 
       298 
428 
     | 
    
         
             
                    const handle = await this.$(selector);
         
     | 
| 
       299 
     | 
    
         
            -
                    (0, assert_js_1.assert)(handle,  
     | 
| 
      
 429 
     | 
    
         
            +
                    (0, assert_js_1.assert)(handle, `No element found for selector: ${selector}`);
         
     | 
| 
       300 
430 
     | 
    
         
             
                    await handle.hover();
         
     | 
| 
       301 
431 
     | 
    
         
             
                    await handle.dispose();
         
     | 
| 
       302 
432 
     | 
    
         
             
                }
         
     | 
| 
       303 
433 
     | 
    
         
             
                async select(selector, ...values) {
         
     | 
| 
       304 
434 
     | 
    
         
             
                    const handle = await this.$(selector);
         
     | 
| 
       305 
     | 
    
         
            -
                    (0, assert_js_1.assert)(handle,  
     | 
| 
      
 435 
     | 
    
         
            +
                    (0, assert_js_1.assert)(handle, `No element found for selector: ${selector}`);
         
     | 
| 
       306 
436 
     | 
    
         
             
                    const result = await handle.select(...values);
         
     | 
| 
       307 
437 
     | 
    
         
             
                    await handle.dispose();
         
     | 
| 
       308 
438 
     | 
    
         
             
                    return result;
         
     | 
| 
       309 
439 
     | 
    
         
             
                }
         
     | 
| 
       310 
440 
     | 
    
         
             
                async tap(selector) {
         
     | 
| 
       311 
441 
     | 
    
         
             
                    const handle = await this.$(selector);
         
     | 
| 
      
 442 
     | 
    
         
            +
                    (0, assert_js_1.assert)(handle, `No element found for selector: ${selector}`);
         
     | 
| 
       312 
443 
     | 
    
         
             
                    await handle.tap();
         
     | 
| 
       313 
444 
     | 
    
         
             
                    await handle.dispose();
         
     | 
| 
       314 
445 
     | 
    
         
             
                }
         
     | 
| 
       315 
446 
     | 
    
         
             
                async type(selector, text, options) {
         
     | 
| 
       316 
447 
     | 
    
         
             
                    const handle = await this.$(selector);
         
     | 
| 
       317 
     | 
    
         
            -
                    (0, assert_js_1.assert)(handle,  
     | 
| 
      
 448 
     | 
    
         
            +
                    (0, assert_js_1.assert)(handle, `No element found for selector: ${selector}`);
         
     | 
| 
       318 
449 
     | 
    
         
             
                    await handle.type(text, options);
         
     | 
| 
       319 
450 
     | 
    
         
             
                    await handle.dispose();
         
     | 
| 
       320 
451 
     | 
    
         
             
                }
         
     | 
| 
       321 
452 
     | 
    
         
             
                async waitForSelector(selector, options) {
         
     | 
| 
       322 
453 
     | 
    
         
             
                    const { updatedSelector, queryHandler } = (0, QueryHandler_js_1.getQueryHandlerAndSelector)(selector);
         
     | 
| 
       323 
     | 
    
         
            -
                     
     | 
| 
      
 454 
     | 
    
         
            +
                    (0, assert_js_1.assert)(queryHandler.waitFor, 'Query handler does not support waiting');
         
     | 
| 
      
 455 
     | 
    
         
            +
                    return (await queryHandler.waitFor(this, updatedSelector, options));
         
     | 
| 
       324 
456 
     | 
    
         
             
                }
         
     | 
| 
       325 
     | 
    
         
            -
                 
     | 
| 
       326 
     | 
    
         
            -
                 * @internal
         
     | 
| 
       327 
     | 
    
         
            -
                 */
         
     | 
| 
       328 
     | 
    
         
            -
                async addBindingToContext(context, name) {
         
     | 
| 
      
 457 
     | 
    
         
            +
                async _addBindingToContext(context, name) {
         
     | 
| 
       329 
458 
     | 
    
         
             
                    // Previous operation added the binding so we are done.
         
     | 
| 
       330 
     | 
    
         
            -
                    if (this. 
     | 
| 
      
 459 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _DOMWorld_ctxBindings, "f").has(__classPrivateFieldGet(DOMWorld, _a, "f", _DOMWorld_bindingIdentifier).call(DOMWorld, name, context._contextId))) {
         
     | 
| 
       331 
460 
     | 
    
         
             
                        return;
         
     | 
| 
       332 
461 
     | 
    
         
             
                    }
         
     | 
| 
       333 
462 
     | 
    
         
             
                    // Wait for other operation to finish
         
     | 
| 
       334 
     | 
    
         
            -
                    if (this 
     | 
| 
       335 
     | 
    
         
            -
                        await this 
     | 
| 
       336 
     | 
    
         
            -
                        return this. 
     | 
| 
      
 463 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _DOMWorld_settingUpBinding, "f")) {
         
     | 
| 
      
 464 
     | 
    
         
            +
                        await __classPrivateFieldGet(this, _DOMWorld_settingUpBinding, "f");
         
     | 
| 
      
 465 
     | 
    
         
            +
                        return this._addBindingToContext(context, name);
         
     | 
| 
       337 
466 
     | 
    
         
             
                    }
         
     | 
| 
       338 
467 
     | 
    
         
             
                    const bind = async (name) => {
         
     | 
| 
       339 
     | 
    
         
            -
                        const expression =  
     | 
| 
      
 468 
     | 
    
         
            +
                        const expression = (0, util_js_1.pageBindingInitString)('internal', name);
         
     | 
| 
       340 
469 
     | 
    
         
             
                        try {
         
     | 
| 
       341 
470 
     | 
    
         
             
                            // TODO: In theory, it would be enough to call this just once
         
     | 
| 
       342 
471 
     | 
    
         
             
                            await context._client.send('Runtime.addBinding', {
         
     | 
| 
         @@ -357,59 +486,18 @@ class DOMWorld { 
     | 
|
| 
       357 
486 
     | 
    
         
             
                                return;
         
     | 
| 
       358 
487 
     | 
    
         
             
                            }
         
     | 
| 
       359 
488 
     | 
    
         
             
                            else {
         
     | 
| 
       360 
     | 
    
         
            -
                                (0,  
     | 
| 
      
 489 
     | 
    
         
            +
                                (0, util_js_1.debugError)(error);
         
     | 
| 
       361 
490 
     | 
    
         
             
                                return;
         
     | 
| 
       362 
491 
     | 
    
         
             
                            }
         
     | 
| 
       363 
492 
     | 
    
         
             
                        }
         
     | 
| 
       364 
     | 
    
         
            -
                        this. 
     | 
| 
      
 493 
     | 
    
         
            +
                        __classPrivateFieldGet(this, _DOMWorld_ctxBindings, "f").add(__classPrivateFieldGet(DOMWorld, _a, "f", _DOMWorld_bindingIdentifier).call(DOMWorld, name, context._contextId));
         
     | 
| 
       365 
494 
     | 
    
         
             
                    };
         
     | 
| 
       366 
     | 
    
         
            -
                    this 
     | 
| 
       367 
     | 
    
         
            -
                    await this 
     | 
| 
       368 
     | 
    
         
            -
                    this 
     | 
| 
      
 495 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _DOMWorld_settingUpBinding, bind(name), "f");
         
     | 
| 
      
 496 
     | 
    
         
            +
                    await __classPrivateFieldGet(this, _DOMWorld_settingUpBinding, "f");
         
     | 
| 
      
 497 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _DOMWorld_settingUpBinding, null, "f");
         
     | 
| 
       369 
498 
     | 
    
         
             
                }
         
     | 
| 
       370 
     | 
    
         
            -
                async  
     | 
| 
       371 
     | 
    
         
            -
                     
     | 
| 
       372 
     | 
    
         
            -
                    if (!this._hasContext())
         
     | 
| 
       373 
     | 
    
         
            -
                        return;
         
     | 
| 
       374 
     | 
    
         
            -
                    const context = await this.executionContext();
         
     | 
| 
       375 
     | 
    
         
            -
                    try {
         
     | 
| 
       376 
     | 
    
         
            -
                        payload = JSON.parse(event.payload);
         
     | 
| 
       377 
     | 
    
         
            -
                    }
         
     | 
| 
       378 
     | 
    
         
            -
                    catch {
         
     | 
| 
       379 
     | 
    
         
            -
                        // The binding was either called by something in the page or it was
         
     | 
| 
       380 
     | 
    
         
            -
                        // called before our wrapper was initialized.
         
     | 
| 
       381 
     | 
    
         
            -
                        return;
         
     | 
| 
       382 
     | 
    
         
            -
                    }
         
     | 
| 
       383 
     | 
    
         
            -
                    const { type, name, seq, args } = payload;
         
     | 
| 
       384 
     | 
    
         
            -
                    if (type !== 'internal' ||
         
     | 
| 
       385 
     | 
    
         
            -
                        !this._ctxBindings.has(DOMWorld.bindingIdentifier(name, context._contextId)))
         
     | 
| 
       386 
     | 
    
         
            -
                        return;
         
     | 
| 
       387 
     | 
    
         
            -
                    if (context._contextId !== event.executionContextId)
         
     | 
| 
       388 
     | 
    
         
            -
                        return;
         
     | 
| 
       389 
     | 
    
         
            -
                    try {
         
     | 
| 
       390 
     | 
    
         
            -
                        const result = await this._boundFunctions.get(name)(...args);
         
     | 
| 
       391 
     | 
    
         
            -
                        await context.evaluate(deliverResult, name, seq, result);
         
     | 
| 
       392 
     | 
    
         
            -
                    }
         
     | 
| 
       393 
     | 
    
         
            -
                    catch (error) {
         
     | 
| 
       394 
     | 
    
         
            -
                        // The WaitTask may already have been resolved by timing out, or the
         
     | 
| 
       395 
     | 
    
         
            -
                        // exection context may have been destroyed.
         
     | 
| 
       396 
     | 
    
         
            -
                        // In both caes, the promises above are rejected with a protocol error.
         
     | 
| 
       397 
     | 
    
         
            -
                        // We can safely ignores these, as the WaitTask is re-installed in
         
     | 
| 
       398 
     | 
    
         
            -
                        // the next execution context if needed.
         
     | 
| 
       399 
     | 
    
         
            -
                        if (error.message.includes('Protocol error'))
         
     | 
| 
       400 
     | 
    
         
            -
                            return;
         
     | 
| 
       401 
     | 
    
         
            -
                        (0, helper_js_1.debugError)(error);
         
     | 
| 
       402 
     | 
    
         
            -
                    }
         
     | 
| 
       403 
     | 
    
         
            -
                    function deliverResult(name, seq, result) {
         
     | 
| 
       404 
     | 
    
         
            -
                        globalThis[name].callbacks.get(seq).resolve(result);
         
     | 
| 
       405 
     | 
    
         
            -
                        globalThis[name].callbacks.delete(seq);
         
     | 
| 
       406 
     | 
    
         
            -
                    }
         
     | 
| 
       407 
     | 
    
         
            -
                }
         
     | 
| 
       408 
     | 
    
         
            -
                /**
         
     | 
| 
       409 
     | 
    
         
            -
                 * @internal
         
     | 
| 
       410 
     | 
    
         
            -
                 */
         
     | 
| 
       411 
     | 
    
         
            -
                async waitForSelectorInPage(queryOne, selector, options, binding) {
         
     | 
| 
       412 
     | 
    
         
            -
                    const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = this._timeoutSettings.timeout(), } = options;
         
     | 
| 
      
 499 
     | 
    
         
            +
                async _waitForSelectorInPage(queryOne, selector, options, binding) {
         
     | 
| 
      
 500 
     | 
    
         
            +
                    const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").timeout(), } = options;
         
     | 
| 
       413 
501 
     | 
    
         
             
                    const polling = waitForVisible || waitForHidden ? 'raf' : 'mutation';
         
     | 
| 
       414 
502 
     | 
    
         
             
                    const title = `selector \`${selector}\`${waitForHidden ? ' to be hidden' : ''}`;
         
     | 
| 
       415 
503 
     | 
    
         
             
                    async function predicate(root, selector, waitForVisible, waitForHidden) {
         
     | 
| 
         @@ -420,7 +508,7 @@ class DOMWorld { 
     | 
|
| 
       420 
508 
     | 
    
         
             
                    }
         
     | 
| 
       421 
509 
     | 
    
         
             
                    const waitTaskOptions = {
         
     | 
| 
       422 
510 
     | 
    
         
             
                        domWorld: this,
         
     | 
| 
       423 
     | 
    
         
            -
                        predicateBody:  
     | 
| 
      
 511 
     | 
    
         
            +
                        predicateBody: (0, util_js_1.makePredicateString)(predicate, queryOne),
         
     | 
| 
       424 
512 
     | 
    
         
             
                        predicateAcceptsContextElement: true,
         
     | 
| 
       425 
513 
     | 
    
         
             
                        title,
         
     | 
| 
       426 
514 
     | 
    
         
             
                        polling,
         
     | 
| 
         @@ -439,7 +527,7 @@ class DOMWorld { 
     | 
|
| 
       439 
527 
     | 
    
         
             
                    return elementHandle;
         
     | 
| 
       440 
528 
     | 
    
         
             
                }
         
     | 
| 
       441 
529 
     | 
    
         
             
                async waitForXPath(xpath, options) {
         
     | 
| 
       442 
     | 
    
         
            -
                    const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = this. 
     | 
| 
      
 530 
     | 
    
         
            +
                    const { visible: waitForVisible = false, hidden: waitForHidden = false, timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").timeout(), } = options;
         
     | 
| 
       443 
531 
     | 
    
         
             
                    const polling = waitForVisible || waitForHidden ? 'raf' : 'mutation';
         
     | 
| 
       444 
532 
     | 
    
         
             
                    const title = `XPath \`${xpath}\`${waitForHidden ? ' to be hidden' : ''}`;
         
     | 
| 
       445 
533 
     | 
    
         
             
                    function predicate(root, xpath, waitForVisible, waitForHidden) {
         
     | 
| 
         @@ -448,7 +536,7 @@ class DOMWorld { 
     | 
|
| 
       448 
536 
     | 
    
         
             
                    }
         
     | 
| 
       449 
537 
     | 
    
         
             
                    const waitTaskOptions = {
         
     | 
| 
       450 
538 
     | 
    
         
             
                        domWorld: this,
         
     | 
| 
       451 
     | 
    
         
            -
                        predicateBody:  
     | 
| 
      
 539 
     | 
    
         
            +
                        predicateBody: (0, util_js_1.makePredicateString)(predicate),
         
     | 
| 
       452 
540 
     | 
    
         
             
                        predicateAcceptsContextElement: true,
         
     | 
| 
       453 
541 
     | 
    
         
             
                        title,
         
     | 
| 
       454 
542 
     | 
    
         
             
                        polling,
         
     | 
| 
         @@ -466,7 +554,7 @@ class DOMWorld { 
     | 
|
| 
       466 
554 
     | 
    
         
             
                    return elementHandle;
         
     | 
| 
       467 
555 
     | 
    
         
             
                }
         
     | 
| 
       468 
556 
     | 
    
         
             
                waitForFunction(pageFunction, options = {}, ...args) {
         
     | 
| 
       469 
     | 
    
         
            -
                    const { polling = 'raf', timeout = this. 
     | 
| 
      
 557 
     | 
    
         
            +
                    const { polling = 'raf', timeout = __classPrivateFieldGet(this, _DOMWorld_timeoutSettings, "f").timeout() } = options;
         
     | 
| 
       470 
558 
     | 
    
         
             
                    const waitTaskOptions = {
         
     | 
| 
       471 
559 
     | 
    
         
             
                        domWorld: this,
         
     | 
| 
       472 
560 
     | 
    
         
             
                        predicateBody: pageFunction,
         
     | 
| 
         @@ -480,89 +568,124 @@ class DOMWorld { 
     | 
|
| 
       480 
568 
     | 
    
         
             
                    return waitTask.promise;
         
     | 
| 
       481 
569 
     | 
    
         
             
                }
         
     | 
| 
       482 
570 
     | 
    
         
             
                async title() {
         
     | 
| 
       483 
     | 
    
         
            -
                    return this.evaluate(() =>  
     | 
| 
      
 571 
     | 
    
         
            +
                    return this.evaluate(() => {
         
     | 
| 
      
 572 
     | 
    
         
            +
                        return document.title;
         
     | 
| 
      
 573 
     | 
    
         
            +
                    });
         
     | 
| 
       484 
574 
     | 
    
         
             
                }
         
     | 
| 
       485 
575 
     | 
    
         
             
            }
         
     | 
| 
       486 
576 
     | 
    
         
             
            exports.DOMWorld = DOMWorld;
         
     | 
| 
       487 
     | 
    
         
            -
            DOMWorld 
     | 
| 
      
 577 
     | 
    
         
            +
            _a = DOMWorld, _DOMWorld_frameManager = new WeakMap(), _DOMWorld_client = new WeakMap(), _DOMWorld_frame = new WeakMap(), _DOMWorld_timeoutSettings = new WeakMap(), _DOMWorld_documentPromise = new WeakMap(), _DOMWorld_contextPromise = new WeakMap(), _DOMWorld_contextResolveCallback = new WeakMap(), _DOMWorld_detached = new WeakMap(), _DOMWorld_ctxBindings = new WeakMap(), _DOMWorld_boundFunctions = new WeakMap(), _DOMWorld_waitTasks = new WeakMap(), _DOMWorld_settingUpBinding = new WeakMap(), _DOMWorld_onBindingCalled = new WeakMap();
         
     | 
| 
      
 578 
     | 
    
         
            +
            _DOMWorld_bindingIdentifier = { value: (name, contextId) => {
         
     | 
| 
      
 579 
     | 
    
         
            +
                    return `${name}_${contextId}`;
         
     | 
| 
      
 580 
     | 
    
         
            +
                } };
         
     | 
| 
      
 581 
     | 
    
         
            +
            const noop = () => { };
         
     | 
| 
       488 
582 
     | 
    
         
             
            /**
         
     | 
| 
       489 
583 
     | 
    
         
             
             * @internal
         
     | 
| 
       490 
584 
     | 
    
         
             
             */
         
     | 
| 
       491 
585 
     | 
    
         
             
            class WaitTask {
         
     | 
| 
       492 
586 
     | 
    
         
             
                constructor(options) {
         
     | 
| 
       493 
     | 
    
         
            -
                    this 
     | 
| 
       494 
     | 
    
         
            -
                    this 
     | 
| 
       495 
     | 
    
         
            -
                    this 
     | 
| 
       496 
     | 
    
         
            -
                     
     | 
| 
      
 587 
     | 
    
         
            +
                    _WaitTask_instances.add(this);
         
     | 
| 
      
 588 
     | 
    
         
            +
                    _WaitTask_domWorld.set(this, void 0);
         
     | 
| 
      
 589 
     | 
    
         
            +
                    _WaitTask_polling.set(this, void 0);
         
     | 
| 
      
 590 
     | 
    
         
            +
                    _WaitTask_timeout.set(this, void 0);
         
     | 
| 
      
 591 
     | 
    
         
            +
                    _WaitTask_predicateBody.set(this, void 0);
         
     | 
| 
      
 592 
     | 
    
         
            +
                    _WaitTask_predicateAcceptsContextElement.set(this, void 0);
         
     | 
| 
      
 593 
     | 
    
         
            +
                    _WaitTask_args.set(this, void 0);
         
     | 
| 
      
 594 
     | 
    
         
            +
                    _WaitTask_binding.set(this, void 0);
         
     | 
| 
      
 595 
     | 
    
         
            +
                    _WaitTask_runCount.set(this, 0);
         
     | 
| 
      
 596 
     | 
    
         
            +
                    _WaitTask_resolve.set(this, noop);
         
     | 
| 
      
 597 
     | 
    
         
            +
                    _WaitTask_reject.set(this, noop);
         
     | 
| 
      
 598 
     | 
    
         
            +
                    _WaitTask_timeoutTimer.set(this, void 0);
         
     | 
| 
      
 599 
     | 
    
         
            +
                    _WaitTask_terminated.set(this, false);
         
     | 
| 
      
 600 
     | 
    
         
            +
                    _WaitTask_root.set(this, null);
         
     | 
| 
      
 601 
     | 
    
         
            +
                    if ((0, util_js_1.isString)(options.polling)) {
         
     | 
| 
       497 
602 
     | 
    
         
             
                        (0, assert_js_1.assert)(options.polling === 'raf' || options.polling === 'mutation', 'Unknown polling option: ' + options.polling);
         
     | 
| 
       498 
     | 
    
         
            -
                     
     | 
| 
      
 603 
     | 
    
         
            +
                    }
         
     | 
| 
      
 604 
     | 
    
         
            +
                    else if ((0, util_js_1.isNumber)(options.polling)) {
         
     | 
| 
       499 
605 
     | 
    
         
             
                        (0, assert_js_1.assert)(options.polling > 0, 'Cannot poll with non-positive interval: ' + options.polling);
         
     | 
| 
       500 
     | 
    
         
            -
                     
     | 
| 
      
 606 
     | 
    
         
            +
                    }
         
     | 
| 
      
 607 
     | 
    
         
            +
                    else {
         
     | 
| 
       501 
608 
     | 
    
         
             
                        throw new Error('Unknown polling options: ' + options.polling);
         
     | 
| 
      
 609 
     | 
    
         
            +
                    }
         
     | 
| 
       502 
610 
     | 
    
         
             
                    function getPredicateBody(predicateBody) {
         
     | 
| 
       503 
     | 
    
         
            -
                        if ( 
     | 
| 
      
 611 
     | 
    
         
            +
                        if ((0, util_js_1.isString)(predicateBody)) {
         
     | 
| 
       504 
612 
     | 
    
         
             
                            return `return (${predicateBody});`;
         
     | 
| 
      
 613 
     | 
    
         
            +
                        }
         
     | 
| 
       505 
614 
     | 
    
         
             
                        return `return (${predicateBody})(...args);`;
         
     | 
| 
       506 
615 
     | 
    
         
             
                    }
         
     | 
| 
       507 
     | 
    
         
            -
                    this 
     | 
| 
       508 
     | 
    
         
            -
                    this 
     | 
| 
       509 
     | 
    
         
            -
                    this 
     | 
| 
       510 
     | 
    
         
            -
                    this 
     | 
| 
       511 
     | 
    
         
            -
                    this 
     | 
| 
       512 
     | 
    
         
            -
                    this. 
     | 
| 
       513 
     | 
    
         
            -
             
     | 
| 
       514 
     | 
    
         
            -
                    this 
     | 
| 
       515 
     | 
    
         
            -
                    this 
     | 
| 
       516 
     | 
    
         
            -
                    this 
     | 
| 
       517 
     | 
    
         
            -
                     
     | 
| 
       518 
     | 
    
         
            -
             
     | 
| 
       519 
     | 
    
         
            -
                        this._domWorld._boundFunctions.set(this._binding.name, this._binding.pptrFunction);
         
     | 
| 
      
 616 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_domWorld, options.domWorld, "f");
         
     | 
| 
      
 617 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_polling, options.polling, "f");
         
     | 
| 
      
 618 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_timeout, options.timeout, "f");
         
     | 
| 
      
 619 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_root, options.root || null, "f");
         
     | 
| 
      
 620 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_predicateBody, getPredicateBody(options.predicateBody), "f");
         
     | 
| 
      
 621 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_predicateAcceptsContextElement, options.predicateAcceptsContextElement, "f");
         
     | 
| 
      
 622 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_args, options.args, "f");
         
     | 
| 
      
 623 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_binding, options.binding, "f");
         
     | 
| 
      
 624 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_runCount, 0, "f");
         
     | 
| 
      
 625 
     | 
    
         
            +
                    __classPrivateFieldGet(this, _WaitTask_domWorld, "f")._waitTasks.add(this);
         
     | 
| 
      
 626 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _WaitTask_binding, "f")) {
         
     | 
| 
      
 627 
     | 
    
         
            +
                        __classPrivateFieldGet(this, _WaitTask_domWorld, "f")._boundFunctions.set(__classPrivateFieldGet(this, _WaitTask_binding, "f").name, __classPrivateFieldGet(this, _WaitTask_binding, "f").pptrFunction);
         
     | 
| 
       520 
628 
     | 
    
         
             
                    }
         
     | 
| 
       521 
629 
     | 
    
         
             
                    this.promise = new Promise((resolve, reject) => {
         
     | 
| 
       522 
     | 
    
         
            -
                        this 
     | 
| 
       523 
     | 
    
         
            -
                        this 
     | 
| 
      
 630 
     | 
    
         
            +
                        __classPrivateFieldSet(this, _WaitTask_resolve, resolve, "f");
         
     | 
| 
      
 631 
     | 
    
         
            +
                        __classPrivateFieldSet(this, _WaitTask_reject, reject, "f");
         
     | 
| 
       524 
632 
     | 
    
         
             
                    });
         
     | 
| 
       525 
633 
     | 
    
         
             
                    // Since page navigation requires us to re-install the pageScript, we should track
         
     | 
| 
       526 
634 
     | 
    
         
             
                    // timeout on our end.
         
     | 
| 
       527 
635 
     | 
    
         
             
                    if (options.timeout) {
         
     | 
| 
       528 
636 
     | 
    
         
             
                        const timeoutError = new Errors_js_1.TimeoutError(`waiting for ${options.title} failed: timeout ${options.timeout}ms exceeded`);
         
     | 
| 
       529 
     | 
    
         
            -
                        this 
     | 
| 
      
 637 
     | 
    
         
            +
                        __classPrivateFieldSet(this, _WaitTask_timeoutTimer, setTimeout(() => {
         
     | 
| 
      
 638 
     | 
    
         
            +
                            return this.terminate(timeoutError);
         
     | 
| 
      
 639 
     | 
    
         
            +
                        }, options.timeout), "f");
         
     | 
| 
       530 
640 
     | 
    
         
             
                    }
         
     | 
| 
       531 
641 
     | 
    
         
             
                    this.rerun();
         
     | 
| 
       532 
642 
     | 
    
         
             
                }
         
     | 
| 
       533 
643 
     | 
    
         
             
                terminate(error) {
         
     | 
| 
       534 
     | 
    
         
            -
                    this 
     | 
| 
       535 
     | 
    
         
            -
                    this. 
     | 
| 
       536 
     | 
    
         
            -
                    this. 
     | 
| 
      
 644 
     | 
    
         
            +
                    __classPrivateFieldSet(this, _WaitTask_terminated, true, "f");
         
     | 
| 
      
 645 
     | 
    
         
            +
                    __classPrivateFieldGet(this, _WaitTask_reject, "f").call(this, error);
         
     | 
| 
      
 646 
     | 
    
         
            +
                    __classPrivateFieldGet(this, _WaitTask_instances, "m", _WaitTask_cleanup).call(this);
         
     | 
| 
       537 
647 
     | 
    
         
             
                }
         
     | 
| 
       538 
648 
     | 
    
         
             
                async rerun() {
         
     | 
| 
       539 
     | 
    
         
            -
                     
     | 
| 
      
 649 
     | 
    
         
            +
                    var _b;
         
     | 
| 
      
 650 
     | 
    
         
            +
                    const runCount = __classPrivateFieldSet(this, _WaitTask_runCount, (_b = __classPrivateFieldGet(this, _WaitTask_runCount, "f"), ++_b), "f");
         
     | 
| 
       540 
651 
     | 
    
         
             
                    let success = null;
         
     | 
| 
       541 
652 
     | 
    
         
             
                    let error = null;
         
     | 
| 
       542 
     | 
    
         
            -
                    const context = await this. 
     | 
| 
       543 
     | 
    
         
            -
                    if (this 
     | 
| 
      
 653 
     | 
    
         
            +
                    const context = await __classPrivateFieldGet(this, _WaitTask_domWorld, "f").executionContext();
         
     | 
| 
      
 654 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _WaitTask_terminated, "f") || runCount !== __classPrivateFieldGet(this, _WaitTask_runCount, "f")) {
         
     | 
| 
       544 
655 
     | 
    
         
             
                        return;
         
     | 
| 
       545 
     | 
    
         
            -
                    if (this._binding) {
         
     | 
| 
       546 
     | 
    
         
            -
                        await this._domWorld.addBindingToContext(context, this._binding.name);
         
     | 
| 
       547 
656 
     | 
    
         
             
                    }
         
     | 
| 
       548 
     | 
    
         
            -
                    if (this 
     | 
| 
      
 657 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _WaitTask_binding, "f")) {
         
     | 
| 
      
 658 
     | 
    
         
            +
                        await __classPrivateFieldGet(this, _WaitTask_domWorld, "f")._addBindingToContext(context, __classPrivateFieldGet(this, _WaitTask_binding, "f").name);
         
     | 
| 
      
 659 
     | 
    
         
            +
                    }
         
     | 
| 
      
 660 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _WaitTask_terminated, "f") || runCount !== __classPrivateFieldGet(this, _WaitTask_runCount, "f")) {
         
     | 
| 
       549 
661 
     | 
    
         
             
                        return;
         
     | 
| 
      
 662 
     | 
    
         
            +
                    }
         
     | 
| 
       550 
663 
     | 
    
         
             
                    try {
         
     | 
| 
       551 
     | 
    
         
            -
                        success = await context.evaluateHandle(waitForPredicatePageFunction, this 
     | 
| 
      
 664 
     | 
    
         
            +
                        success = await context.evaluateHandle(waitForPredicatePageFunction, __classPrivateFieldGet(this, _WaitTask_root, "f") || null, __classPrivateFieldGet(this, _WaitTask_predicateBody, "f"), __classPrivateFieldGet(this, _WaitTask_predicateAcceptsContextElement, "f"), __classPrivateFieldGet(this, _WaitTask_polling, "f"), __classPrivateFieldGet(this, _WaitTask_timeout, "f"), ...__classPrivateFieldGet(this, _WaitTask_args, "f"));
         
     | 
| 
       552 
665 
     | 
    
         
             
                    }
         
     | 
| 
       553 
666 
     | 
    
         
             
                    catch (error_) {
         
     | 
| 
       554 
667 
     | 
    
         
             
                        error = error_;
         
     | 
| 
       555 
668 
     | 
    
         
             
                    }
         
     | 
| 
       556 
     | 
    
         
            -
                    if (this 
     | 
| 
       557 
     | 
    
         
            -
                        if (success)
         
     | 
| 
      
 669 
     | 
    
         
            +
                    if (__classPrivateFieldGet(this, _WaitTask_terminated, "f") || runCount !== __classPrivateFieldGet(this, _WaitTask_runCount, "f")) {
         
     | 
| 
      
 670 
     | 
    
         
            +
                        if (success) {
         
     | 
| 
       558 
671 
     | 
    
         
             
                            await success.dispose();
         
     | 
| 
      
 672 
     | 
    
         
            +
                        }
         
     | 
| 
       559 
673 
     | 
    
         
             
                        return;
         
     | 
| 
       560 
674 
     | 
    
         
             
                    }
         
     | 
| 
       561 
675 
     | 
    
         
             
                    // Ignore timeouts in pageScript - we track timeouts ourselves.
         
     | 
| 
       562 
676 
     | 
    
         
             
                    // If the frame's execution context has already changed, `frame.evaluate` will
         
     | 
| 
       563 
677 
     | 
    
         
             
                    // throw an error - ignore this predicate run altogether.
         
     | 
| 
       564 
678 
     | 
    
         
             
                    if (!error &&
         
     | 
| 
       565 
     | 
    
         
            -
                        (await this 
     | 
| 
      
 679 
     | 
    
         
            +
                        (await __classPrivateFieldGet(this, _WaitTask_domWorld, "f")
         
     | 
| 
      
 680 
     | 
    
         
            +
                            .evaluate(s => {
         
     | 
| 
      
 681 
     | 
    
         
            +
                            return !s;
         
     | 
| 
      
 682 
     | 
    
         
            +
                        }, success)
         
     | 
| 
      
 683 
     | 
    
         
            +
                            .catch(() => {
         
     | 
| 
      
 684 
     | 
    
         
            +
                            return true;
         
     | 
| 
      
 685 
     | 
    
         
            +
                        }))) {
         
     | 
| 
      
 686 
     | 
    
         
            +
                        if (!success) {
         
     | 
| 
      
 687 
     | 
    
         
            +
                            throw new Error('Assertion: result handle is not available');
         
     | 
| 
      
 688 
     | 
    
         
            +
                        }
         
     | 
| 
       566 
689 
     | 
    
         
             
                        await success.dispose();
         
     | 
| 
       567 
690 
     | 
    
         
             
                        return;
         
     | 
| 
       568 
691 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -579,48 +702,58 @@ class WaitTask { 
     | 
|
| 
       579 
702 
     | 
    
         
             
                        }
         
     | 
| 
       580 
703 
     | 
    
         
             
                        // When the page is navigated, the promise is rejected.
         
     | 
| 
       581 
704 
     | 
    
         
             
                        // We will try again in the new execution context.
         
     | 
| 
       582 
     | 
    
         
            -
                        if (error.message.includes('Execution context was destroyed'))
         
     | 
| 
      
 705 
     | 
    
         
            +
                        if (error.message.includes('Execution context was destroyed')) {
         
     | 
| 
       583 
706 
     | 
    
         
             
                            return;
         
     | 
| 
      
 707 
     | 
    
         
            +
                        }
         
     | 
| 
       584 
708 
     | 
    
         
             
                        // We could have tried to evaluate in a context which was already
         
     | 
| 
       585 
709 
     | 
    
         
             
                        // destroyed.
         
     | 
| 
       586 
     | 
    
         
            -
                        if (error.message.includes('Cannot find context with specified id'))
         
     | 
| 
      
 710 
     | 
    
         
            +
                        if (error.message.includes('Cannot find context with specified id')) {
         
     | 
| 
       587 
711 
     | 
    
         
             
                            return;
         
     | 
| 
       588 
     | 
    
         
            -
                         
     | 
| 
      
 712 
     | 
    
         
            +
                        }
         
     | 
| 
      
 713 
     | 
    
         
            +
                        __classPrivateFieldGet(this, _WaitTask_reject, "f").call(this, error);
         
     | 
| 
       589 
714 
     | 
    
         
             
                    }
         
     | 
| 
       590 
715 
     | 
    
         
             
                    else {
         
     | 
| 
       591 
     | 
    
         
            -
                         
     | 
| 
      
 716 
     | 
    
         
            +
                        if (!success) {
         
     | 
| 
      
 717 
     | 
    
         
            +
                            throw new Error('Assertion: result handle is not available');
         
     | 
| 
      
 718 
     | 
    
         
            +
                        }
         
     | 
| 
      
 719 
     | 
    
         
            +
                        __classPrivateFieldGet(this, _WaitTask_resolve, "f").call(this, success);
         
     | 
| 
       592 
720 
     | 
    
         
             
                    }
         
     | 
| 
       593 
     | 
    
         
            -
                    this. 
     | 
| 
       594 
     | 
    
         
            -
                }
         
     | 
| 
       595 
     | 
    
         
            -
                _cleanup() {
         
     | 
| 
       596 
     | 
    
         
            -
                    clearTimeout(this._timeoutTimer);
         
     | 
| 
       597 
     | 
    
         
            -
                    this._domWorld._waitTasks.delete(this);
         
     | 
| 
      
 721 
     | 
    
         
            +
                    __classPrivateFieldGet(this, _WaitTask_instances, "m", _WaitTask_cleanup).call(this);
         
     | 
| 
       598 
722 
     | 
    
         
             
                }
         
     | 
| 
       599 
723 
     | 
    
         
             
            }
         
     | 
| 
       600 
724 
     | 
    
         
             
            exports.WaitTask = WaitTask;
         
     | 
| 
      
 725 
     | 
    
         
            +
            _WaitTask_domWorld = new WeakMap(), _WaitTask_polling = new WeakMap(), _WaitTask_timeout = new WeakMap(), _WaitTask_predicateBody = new WeakMap(), _WaitTask_predicateAcceptsContextElement = new WeakMap(), _WaitTask_args = new WeakMap(), _WaitTask_binding = new WeakMap(), _WaitTask_runCount = new WeakMap(), _WaitTask_resolve = new WeakMap(), _WaitTask_reject = new WeakMap(), _WaitTask_timeoutTimer = new WeakMap(), _WaitTask_terminated = new WeakMap(), _WaitTask_root = new WeakMap(), _WaitTask_instances = new WeakSet(), _WaitTask_cleanup = function _WaitTask_cleanup() {
         
     | 
| 
      
 726 
     | 
    
         
            +
                __classPrivateFieldGet(this, _WaitTask_timeoutTimer, "f") !== undefined && clearTimeout(__classPrivateFieldGet(this, _WaitTask_timeoutTimer, "f"));
         
     | 
| 
      
 727 
     | 
    
         
            +
                __classPrivateFieldGet(this, _WaitTask_domWorld, "f")._waitTasks.delete(this);
         
     | 
| 
      
 728 
     | 
    
         
            +
            };
         
     | 
| 
       601 
729 
     | 
    
         
             
            async function waitForPredicatePageFunction(root, predicateBody, predicateAcceptsContextElement, polling, timeout, ...args) {
         
     | 
| 
       602 
730 
     | 
    
         
             
                root = root || document;
         
     | 
| 
       603 
731 
     | 
    
         
             
                const predicate = new Function('...args', predicateBody);
         
     | 
| 
       604 
732 
     | 
    
         
             
                let timedOut = false;
         
     | 
| 
       605 
     | 
    
         
            -
                if (timeout)
         
     | 
| 
       606 
     | 
    
         
            -
                    setTimeout(() =>  
     | 
| 
       607 
     | 
    
         
            -
             
     | 
| 
       608 
     | 
    
         
            -
                     
     | 
| 
       609 
     | 
    
         
            -
                 
     | 
| 
       610 
     | 
    
         
            -
             
     | 
| 
       611 
     | 
    
         
            -
             
     | 
| 
       612 
     | 
    
         
            -
             
     | 
| 
       613 
     | 
    
         
            -
             
     | 
| 
       614 
     | 
    
         
            -
             
     | 
| 
       615 
     | 
    
         
            -
             
     | 
| 
      
 733 
     | 
    
         
            +
                if (timeout) {
         
     | 
| 
      
 734 
     | 
    
         
            +
                    setTimeout(() => {
         
     | 
| 
      
 735 
     | 
    
         
            +
                        return (timedOut = true);
         
     | 
| 
      
 736 
     | 
    
         
            +
                    }, timeout);
         
     | 
| 
      
 737 
     | 
    
         
            +
                }
         
     | 
| 
      
 738 
     | 
    
         
            +
                switch (polling) {
         
     | 
| 
      
 739 
     | 
    
         
            +
                    case 'raf':
         
     | 
| 
      
 740 
     | 
    
         
            +
                        return await pollRaf();
         
     | 
| 
      
 741 
     | 
    
         
            +
                    case 'mutation':
         
     | 
| 
      
 742 
     | 
    
         
            +
                        return await pollMutation();
         
     | 
| 
      
 743 
     | 
    
         
            +
                    default:
         
     | 
| 
      
 744 
     | 
    
         
            +
                        return await pollInterval(polling);
         
     | 
| 
      
 745 
     | 
    
         
            +
                }
         
     | 
| 
       616 
746 
     | 
    
         
             
                async function pollMutation() {
         
     | 
| 
       617 
747 
     | 
    
         
             
                    const success = predicateAcceptsContextElement
         
     | 
| 
       618 
748 
     | 
    
         
             
                        ? await predicate(root, ...args)
         
     | 
| 
       619 
749 
     | 
    
         
             
                        : await predicate(...args);
         
     | 
| 
       620 
     | 
    
         
            -
                    if (success)
         
     | 
| 
      
 750 
     | 
    
         
            +
                    if (success) {
         
     | 
| 
       621 
751 
     | 
    
         
             
                        return Promise.resolve(success);
         
     | 
| 
       622 
     | 
    
         
            -
                     
     | 
| 
       623 
     | 
    
         
            -
                     
     | 
| 
      
 752 
     | 
    
         
            +
                    }
         
     | 
| 
      
 753 
     | 
    
         
            +
                    let fulfill = (_) => { };
         
     | 
| 
      
 754 
     | 
    
         
            +
                    const result = new Promise(x => {
         
     | 
| 
      
 755 
     | 
    
         
            +
                        return (fulfill = x);
         
     | 
| 
      
 756 
     | 
    
         
            +
                    });
         
     | 
| 
       624 
757 
     | 
    
         
             
                    const observer = new MutationObserver(async () => {
         
     | 
| 
       625 
758 
     | 
    
         
             
                        if (timedOut) {
         
     | 
| 
       626 
759 
     | 
    
         
             
                            observer.disconnect();
         
     | 
| 
         @@ -634,6 +767,9 @@ async function waitForPredicatePageFunction(root, predicateBody, predicateAccept 
     | 
|
| 
       634 
767 
     | 
    
         
             
                            fulfill(success);
         
     | 
| 
       635 
768 
     | 
    
         
             
                        }
         
     | 
| 
       636 
769 
     | 
    
         
             
                    });
         
     | 
| 
      
 770 
     | 
    
         
            +
                    if (!root) {
         
     | 
| 
      
 771 
     | 
    
         
            +
                        throw new Error('Root element is not found.');
         
     | 
| 
      
 772 
     | 
    
         
            +
                    }
         
     | 
| 
       637 
773 
     | 
    
         
             
                    observer.observe(root, {
         
     | 
| 
       638 
774 
     | 
    
         
             
                        childList: true,
         
     | 
| 
       639 
775 
     | 
    
         
             
                        subtree: true,
         
     | 
| 
         @@ -642,8 +778,10 @@ async function waitForPredicatePageFunction(root, predicateBody, predicateAccept 
     | 
|
| 
       642 
778 
     | 
    
         
             
                    return result;
         
     | 
| 
       643 
779 
     | 
    
         
             
                }
         
     | 
| 
       644 
780 
     | 
    
         
             
                async function pollRaf() {
         
     | 
| 
       645 
     | 
    
         
            -
                    let fulfill;
         
     | 
| 
       646 
     | 
    
         
            -
                    const result = new Promise( 
     | 
| 
      
 781 
     | 
    
         
            +
                    let fulfill = (_) => { };
         
     | 
| 
      
 782 
     | 
    
         
            +
                    const result = new Promise(x => {
         
     | 
| 
      
 783 
     | 
    
         
            +
                        return (fulfill = x);
         
     | 
| 
      
 784 
     | 
    
         
            +
                    });
         
     | 
| 
       647 
785 
     | 
    
         
             
                    await onRaf();
         
     | 
| 
       648 
786 
     | 
    
         
             
                    return result;
         
     | 
| 
       649 
787 
     | 
    
         
             
                    async function onRaf() {
         
     | 
| 
         @@ -654,15 +792,19 @@ async function waitForPredicatePageFunction(root, predicateBody, predicateAccept 
     | 
|
| 
       654 
792 
     | 
    
         
             
                        const success = predicateAcceptsContextElement
         
     | 
| 
       655 
793 
     | 
    
         
             
                            ? await predicate(root, ...args)
         
     | 
| 
       656 
794 
     | 
    
         
             
                            : await predicate(...args);
         
     | 
| 
       657 
     | 
    
         
            -
                        if (success)
         
     | 
| 
      
 795 
     | 
    
         
            +
                        if (success) {
         
     | 
| 
       658 
796 
     | 
    
         
             
                            fulfill(success);
         
     | 
| 
       659 
     | 
    
         
            -
                         
     | 
| 
      
 797 
     | 
    
         
            +
                        }
         
     | 
| 
      
 798 
     | 
    
         
            +
                        else {
         
     | 
| 
       660 
799 
     | 
    
         
             
                            requestAnimationFrame(onRaf);
         
     | 
| 
      
 800 
     | 
    
         
            +
                        }
         
     | 
| 
       661 
801 
     | 
    
         
             
                    }
         
     | 
| 
       662 
802 
     | 
    
         
             
                }
         
     | 
| 
       663 
803 
     | 
    
         
             
                async function pollInterval(pollInterval) {
         
     | 
| 
       664 
     | 
    
         
            -
                    let fulfill;
         
     | 
| 
       665 
     | 
    
         
            -
                    const result = new Promise( 
     | 
| 
      
 804 
     | 
    
         
            +
                    let fulfill = (_) => { };
         
     | 
| 
      
 805 
     | 
    
         
            +
                    const result = new Promise(x => {
         
     | 
| 
      
 806 
     | 
    
         
            +
                        return (fulfill = x);
         
     | 
| 
      
 807 
     | 
    
         
            +
                    });
         
     | 
| 
       666 
808 
     | 
    
         
             
                    await onTimeout();
         
     | 
| 
       667 
809 
     | 
    
         
             
                    return result;
         
     | 
| 
       668 
810 
     | 
    
         
             
                    async function onTimeout() {
         
     | 
| 
         @@ -673,10 +815,12 @@ async function waitForPredicatePageFunction(root, predicateBody, predicateAccept 
     | 
|
| 
       673 
815 
     | 
    
         
             
                        const success = predicateAcceptsContextElement
         
     | 
| 
       674 
816 
     | 
    
         
             
                            ? await predicate(root, ...args)
         
     | 
| 
       675 
817 
     | 
    
         
             
                            : await predicate(...args);
         
     | 
| 
       676 
     | 
    
         
            -
                        if (success)
         
     | 
| 
      
 818 
     | 
    
         
            +
                        if (success) {
         
     | 
| 
       677 
819 
     | 
    
         
             
                            fulfill(success);
         
     | 
| 
       678 
     | 
    
         
            -
                         
     | 
| 
      
 820 
     | 
    
         
            +
                        }
         
     | 
| 
      
 821 
     | 
    
         
            +
                        else {
         
     | 
| 
       679 
822 
     | 
    
         
             
                            setTimeout(onTimeout, pollInterval);
         
     | 
| 
      
 823 
     | 
    
         
            +
                        }
         
     | 
| 
       680 
824 
     | 
    
         
             
                    }
         
     | 
| 
       681 
825 
     | 
    
         
             
                }
         
     | 
| 
       682 
826 
     | 
    
         
             
            }
         
     |