rechrome 1.18.1 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/README.md +8 -3
  2. package/package.json +5 -3
  3. package/rech.js +117 -12
  4. package/rech.ts +117 -12
  5. package/serve.js +4 -1
  6. package/serve.ts +4 -1
  7. package/vendor/playwright-cli/node_modules/playwright-core/README.md +3 -0
  8. package/vendor/playwright-cli/node_modules/playwright-core/ThirdPartyNotices.txt +13 -0
  9. package/vendor/playwright-cli/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
  10. package/vendor/playwright-cli/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
  11. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
  12. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
  13. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
  14. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
  15. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
  16. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
  17. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
  18. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
  19. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
  20. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
  21. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
  22. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
  23. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
  24. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
  25. package/vendor/playwright-cli/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
  26. package/vendor/playwright-cli/node_modules/playwright-core/browsers.json +81 -0
  27. package/vendor/playwright-cli/node_modules/playwright-core/cli.js +21 -0
  28. package/vendor/playwright-cli/node_modules/playwright-core/index.d.ts +17 -0
  29. package/vendor/playwright-cli/node_modules/playwright-core/index.js +32 -0
  30. package/vendor/playwright-cli/node_modules/playwright-core/index.mjs +28 -0
  31. package/vendor/playwright-cli/node_modules/playwright-core/lib/androidServerImpl.js +65 -0
  32. package/vendor/playwright-cli/node_modules/playwright-core/lib/bootstrap.js +77 -0
  33. package/vendor/playwright-cli/node_modules/playwright-core/lib/browserServerImpl.js +120 -0
  34. package/vendor/playwright-cli/node_modules/playwright-core/lib/cli/driver.js +98 -0
  35. package/vendor/playwright-cli/node_modules/playwright-core/lib/cli/program.js +597 -0
  36. package/vendor/playwright-cli/node_modules/playwright-core/lib/cli/programWithTestStub.js +74 -0
  37. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/android.js +361 -0
  38. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/api.js +137 -0
  39. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/artifact.js +79 -0
  40. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/browser.js +169 -0
  41. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/browserContext.js +583 -0
  42. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/browserType.js +153 -0
  43. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/cdpSession.js +55 -0
  44. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/channelOwner.js +194 -0
  45. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/clientHelper.js +64 -0
  46. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/clientInstrumentation.js +55 -0
  47. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/clientStackTrace.js +69 -0
  48. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/clock.js +68 -0
  49. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/connect.js +143 -0
  50. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/connection.js +322 -0
  51. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/consoleMessage.js +61 -0
  52. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/coverage.js +44 -0
  53. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/debugger.js +57 -0
  54. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/dialog.js +56 -0
  55. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/disposable.js +76 -0
  56. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/download.js +62 -0
  57. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/electron.js +138 -0
  58. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/elementHandle.js +281 -0
  59. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/errors.js +77 -0
  60. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/eventEmitter.js +314 -0
  61. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/events.js +103 -0
  62. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/fetch.js +367 -0
  63. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/fileChooser.js +46 -0
  64. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/fileUtils.js +34 -0
  65. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/frame.js +404 -0
  66. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/harRouter.js +99 -0
  67. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/input.js +84 -0
  68. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/jsHandle.js +105 -0
  69. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/jsonPipe.js +39 -0
  70. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/localUtils.js +60 -0
  71. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/locator.js +367 -0
  72. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/network.js +750 -0
  73. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/page.js +729 -0
  74. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/platform.js +77 -0
  75. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/playwright.js +71 -0
  76. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/screencast.js +48 -0
  77. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/selectors.js +57 -0
  78. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/stream.js +39 -0
  79. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/timeoutSettings.js +79 -0
  80. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/tracing.js +126 -0
  81. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/types.js +28 -0
  82. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/video.js +68 -0
  83. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/waiter.js +142 -0
  84. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/webError.js +39 -0
  85. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/worker.js +85 -0
  86. package/vendor/playwright-cli/node_modules/playwright-core/lib/client/writableStream.js +39 -0
  87. package/vendor/playwright-cli/node_modules/playwright-core/lib/coreBundle.js +68170 -0
  88. package/vendor/playwright-cli/node_modules/playwright-core/lib/electron/loader.js +67 -0
  89. package/vendor/playwright-cli/node_modules/playwright-core/lib/entry/cliDaemon.js +5 -0
  90. package/vendor/playwright-cli/node_modules/playwright-core/lib/entry/dashboardApp.js +3 -0
  91. package/vendor/playwright-cli/node_modules/playwright-core/lib/entry/mcp.js +10 -0
  92. package/vendor/playwright-cli/node_modules/playwright-core/lib/entry/oopBrowserDownload.js +3 -0
  93. package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +28 -0
  94. package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/clockSource.js +28 -0
  95. package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/injectedScriptSource.js +28 -0
  96. package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +28 -0
  97. package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/storageScriptSource.js +28 -0
  98. package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/utilityScriptSource.js +28 -0
  99. package/vendor/playwright-cli/node_modules/playwright-core/lib/generated/webSocketMockSource.js +336 -0
  100. package/vendor/playwright-cli/node_modules/playwright-core/lib/inProcessFactory.js +60 -0
  101. package/vendor/playwright-cli/node_modules/playwright-core/lib/inprocess.js +3 -0
  102. package/vendor/playwright-cli/node_modules/playwright-core/lib/mcpBundle.js +81 -0
  103. package/vendor/playwright-cli/node_modules/playwright-core/lib/mcpBundleImpl/index.js +91 -0
  104. package/vendor/playwright-cli/node_modules/playwright-core/lib/outofprocess.js +76 -0
  105. package/vendor/playwright-cli/node_modules/playwright-core/lib/package.js +50 -0
  106. package/vendor/playwright-cli/node_modules/playwright-core/lib/protocol/serializers.js +197 -0
  107. package/vendor/playwright-cli/node_modules/playwright-core/lib/protocol/validator.js +3034 -0
  108. package/vendor/playwright-cli/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +193 -0
  109. package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/playwrightConnection.js +131 -0
  110. package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/playwrightPipeServer.js +100 -0
  111. package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/playwrightServer.js +339 -0
  112. package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/playwrightWebSocketServer.js +73 -0
  113. package/vendor/playwright-cli/node_modules/playwright-core/lib/remote/serverTransport.js +96 -0
  114. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/android/android.js +465 -0
  115. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/android/backendAdb.js +177 -0
  116. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/artifact.js +127 -0
  117. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +571 -0
  118. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +162 -0
  119. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +213 -0
  120. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiDeserializer.js +116 -0
  121. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +267 -0
  122. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +128 -0
  123. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiInput.js +146 -0
  124. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +411 -0
  125. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +102 -0
  126. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiPage.js +599 -0
  127. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +106 -0
  128. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
  129. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
  130. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +24 -0
  131. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +180 -0
  132. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
  133. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +148 -0
  134. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +261 -0
  135. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/browser.js +223 -0
  136. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/browserContext.js +703 -0
  137. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/browserType.js +338 -0
  138. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/callLog.js +82 -0
  139. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
  140. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/chromium.js +399 -0
  141. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +104 -0
  142. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crBrowser.js +532 -0
  143. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crConnection.js +197 -0
  144. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crCoverage.js +235 -0
  145. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crDevTools.js +111 -0
  146. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +131 -0
  147. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +146 -0
  148. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crInput.js +187 -0
  149. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +708 -0
  150. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crPage.js +1004 -0
  151. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crPdf.js +121 -0
  152. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +145 -0
  153. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +137 -0
  154. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +162 -0
  155. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/chromium/protocol.d.js +16 -0
  156. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/clock.js +149 -0
  157. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/csharp.js +327 -0
  158. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/java.js +274 -0
  159. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/javascript.js +247 -0
  160. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/jsonl.js +52 -0
  161. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/language.js +132 -0
  162. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/languages.js +68 -0
  163. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/python.js +279 -0
  164. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/codegen/types.js +16 -0
  165. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/console.js +61 -0
  166. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/cookieStore.js +206 -0
  167. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/debugController.js +197 -0
  168. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/debugger.js +120 -0
  169. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/deviceDescriptors.js +39 -0
  170. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +1779 -0
  171. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dialog.js +116 -0
  172. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +325 -0
  173. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +118 -0
  174. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +381 -0
  175. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +124 -0
  176. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +71 -0
  177. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +47 -0
  178. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
  179. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/debuggerDispatcher.js +80 -0
  180. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +47 -0
  181. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +364 -0
  182. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/disposableDispatcher.js +39 -0
  183. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +90 -0
  184. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
  185. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +227 -0
  186. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
  187. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
  188. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +185 -0
  189. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +214 -0
  190. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +434 -0
  191. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +108 -0
  192. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +67 -0
  193. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +68 -0
  194. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +164 -0
  195. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
  196. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/disposable.js +41 -0
  197. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/dom.js +823 -0
  198. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/download.js +71 -0
  199. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/electron/electron.js +272 -0
  200. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/electron/loader.js +115 -0
  201. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/errors.js +69 -0
  202. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/fetch.js +621 -0
  203. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/fileChooser.js +43 -0
  204. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/fileUploadUtils.js +84 -0
  205. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +415 -0
  206. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffConnection.js +142 -0
  207. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +150 -0
  208. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffInput.js +175 -0
  209. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +256 -0
  210. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/ffPage.js +495 -0
  211. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/firefox.js +114 -0
  212. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/firefox/protocol.d.js +16 -0
  213. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/formData.js +147 -0
  214. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/frameSelectors.js +160 -0
  215. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/frames.js +1495 -0
  216. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/har/harRecorder.js +147 -0
  217. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/har/harTracer.js +608 -0
  218. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/harBackend.js +157 -0
  219. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/helper.js +96 -0
  220. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/index.js +58 -0
  221. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/input.js +277 -0
  222. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/instrumentation.js +72 -0
  223. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/javascript.js +291 -0
  224. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/launchApp.js +127 -0
  225. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/localUtils.js +214 -0
  226. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/macEditingCommands.js +143 -0
  227. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/network.js +668 -0
  228. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/page.js +884 -0
  229. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/pipeTransport.js +89 -0
  230. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/playwright.js +69 -0
  231. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/progress.js +136 -0
  232. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/protocolError.js +52 -0
  233. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/chat.js +161 -0
  234. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/recorderApp.js +367 -0
  235. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +138 -0
  236. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +83 -0
  237. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +157 -0
  238. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder/throttledFile.js +57 -0
  239. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/recorder.js +540 -0
  240. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/browserFetcher.js +177 -0
  241. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/dependencies.js +371 -0
  242. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/index.js +1395 -0
  243. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/nativeDeps.js +1281 -0
  244. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +127 -0
  245. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/screencast.js +216 -0
  246. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/screenshotter.js +333 -0
  247. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/selectors.js +112 -0
  248. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +383 -0
  249. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/socksInterceptor.js +95 -0
  250. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +147 -0
  251. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +561 -0
  252. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +607 -0
  253. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +244 -0
  254. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/transport.js +181 -0
  255. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/types.js +28 -0
  256. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/usKeyboardLayout.js +152 -0
  257. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/ascii.js +44 -0
  258. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/comparators.js +139 -0
  259. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/crypto.js +216 -0
  260. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/debug.js +42 -0
  261. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/debugLogger.js +122 -0
  262. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/disposable.js +32 -0
  263. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/env.js +73 -0
  264. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/eventsHelper.js +41 -0
  265. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/expectUtils.js +123 -0
  266. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/fileUtils.js +191 -0
  267. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +207 -0
  268. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/hostPlatform.js +123 -0
  269. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/httpServer.js +205 -0
  270. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +89 -0
  271. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +109 -0
  272. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +78 -0
  273. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +102 -0
  274. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/linuxUtils.js +71 -0
  275. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/network.js +244 -0
  276. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/nodePlatform.js +154 -0
  277. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/pipeTransport.js +84 -0
  278. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/processLauncher.js +243 -0
  279. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/profiler.js +65 -0
  280. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/socksProxy.js +511 -0
  281. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/spawnAsync.js +41 -0
  282. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/task.js +51 -0
  283. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/userAgent.js +98 -0
  284. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/wsServer.js +121 -0
  285. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/zipFile.js +74 -0
  286. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/utils/zones.js +57 -0
  287. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/videoRecorder.js +133 -0
  288. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/protocol.d.js +16 -0
  289. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/webkit.js +108 -0
  290. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +331 -0
  291. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkConnection.js +144 -0
  292. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +154 -0
  293. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkInput.js +181 -0
  294. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +197 -0
  295. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkPage.js +1164 -0
  296. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +83 -0
  297. package/vendor/playwright-cli/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +106 -0
  298. package/vendor/playwright-cli/node_modules/playwright-core/lib/serverRegistry.js +7343 -0
  299. package/vendor/playwright-cli/node_modules/playwright-core/lib/serverRegistry.js.LICENSE +354 -0
  300. package/vendor/playwright-cli/node_modules/playwright-core/lib/third_party/pixelmatch.js +255 -0
  301. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/browserBackend.js +79 -0
  302. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/common.js +63 -0
  303. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/config.js +41 -0
  304. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/console.js +66 -0
  305. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/context.js +290 -0
  306. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/cookies.js +152 -0
  307. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/devtools.js +69 -0
  308. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/dialogs.js +59 -0
  309. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/evaluate.js +64 -0
  310. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/files.js +60 -0
  311. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/form.js +64 -0
  312. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/keyboard.js +155 -0
  313. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/logFile.js +95 -0
  314. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/mouse.js +168 -0
  315. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/navigate.js +106 -0
  316. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/network.js +135 -0
  317. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/pdf.js +48 -0
  318. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/response.js +302 -0
  319. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/route.js +140 -0
  320. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/runCode.js +76 -0
  321. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/screenshot.js +88 -0
  322. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/sessionLog.js +74 -0
  323. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/snapshot.js +208 -0
  324. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/storage.js +67 -0
  325. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tab.js +445 -0
  326. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tabs.js +67 -0
  327. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tool.js +47 -0
  328. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tools.js +102 -0
  329. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/tracing.js +75 -0
  330. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/utils.js +83 -0
  331. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/verify.js +151 -0
  332. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/video.js +89 -0
  333. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/wait.js +63 -0
  334. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/backend/webstorage.js +223 -0
  335. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/channelSessions.js +141 -0
  336. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/cli.js +6 -0
  337. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/help.json +679 -0
  338. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/minimist.js +128 -0
  339. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/output.js +343 -0
  340. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/program.js +380 -0
  341. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/registry.js +176 -0
  342. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/session.js +265 -0
  343. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/SKILL.md +388 -0
  344. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/element-attributes.md +23 -0
  345. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/playwright-tests.md +39 -0
  346. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/request-mocking.md +87 -0
  347. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/running-code.md +241 -0
  348. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/session-management.md +225 -0
  349. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/spec-driven-testing.md +305 -0
  350. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/storage-state.md +275 -0
  351. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/test-generation.md +134 -0
  352. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/tracing.md +139 -0
  353. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-client/skill/references/video-recording.md +143 -0
  354. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/command.js +73 -0
  355. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/commands.js +933 -0
  356. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/daemon.js +178 -0
  357. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/helpGenerator.js +173 -0
  358. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/cli-daemon/program.js +118 -0
  359. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/dashboard/appIcon.png +0 -0
  360. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/dashboard/dashboardApp.js +286 -0
  361. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/dashboard/dashboardController.js +296 -0
  362. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/exports.js +60 -0
  363. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/browserFactory.js +233 -0
  364. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/cdpRelay.js +356 -0
  365. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/cli-stub.js +7 -0
  366. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/config.d.js +16 -0
  367. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/config.js +401 -0
  368. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/configIni.js +189 -0
  369. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/extensionContextFactory.js +59 -0
  370. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/index.js +62 -0
  371. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/log.js +35 -0
  372. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/program.js +107 -0
  373. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/protocol.js +28 -0
  374. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/mcp/watchdog.js +44 -0
  375. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/SKILL.md +171 -0
  376. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/installSkill.js +48 -0
  377. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceActions.js +142 -0
  378. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceAttachments.js +69 -0
  379. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceCli.js +80 -0
  380. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceConsole.js +97 -0
  381. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceErrors.js +55 -0
  382. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceOpen.js +69 -0
  383. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceParser.js +96 -0
  384. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceRequests.js +158 -0
  385. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceScreenshot.js +68 -0
  386. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceSnapshot.js +149 -0
  387. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/trace/traceUtils.js +135 -0
  388. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/connect.js +32 -0
  389. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/extension.js +78 -0
  390. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/mcp/http.js +152 -0
  391. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/mcp/server.js +230 -0
  392. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/mcp/tool.js +47 -0
  393. package/vendor/playwright-cli/node_modules/playwright-core/lib/tools/utils/socketConnection.js +108 -0
  394. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +455 -0
  395. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/assert.js +31 -0
  396. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/colors.js +72 -0
  397. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +245 -0
  398. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +1051 -0
  399. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/formatUtils.js +64 -0
  400. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/headers.js +53 -0
  401. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/imageUtils.js +141 -0
  402. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +689 -0
  403. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +176 -0
  404. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +81 -0
  405. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/lruCache.js +51 -0
  406. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +114 -0
  407. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +464 -0
  408. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +80 -0
  409. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +81 -0
  410. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +342 -0
  411. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +43 -0
  412. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +386 -0
  413. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +54 -0
  414. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +158 -0
  415. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +204 -0
  416. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/time.js +49 -0
  417. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +66 -0
  418. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/entries.js +16 -0
  419. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotRenderer.js +502 -0
  420. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotServer.js +120 -0
  421. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +89 -0
  422. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +131 -0
  423. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js +366 -0
  424. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +401 -0
  425. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/traceUtils.js +58 -0
  426. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +16 -0
  427. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +16 -0
  428. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +16 -0
  429. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +16 -0
  430. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +16 -0
  431. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +16 -0
  432. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/types.js +16 -0
  433. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +243 -0
  434. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +262 -0
  435. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils/isomorphic/yaml.js +84 -0
  436. package/vendor/playwright-cli/node_modules/playwright-core/lib/utils.js +113 -0
  437. package/vendor/playwright-cli/node_modules/playwright-core/lib/utilsBundle.js +86478 -0
  438. package/vendor/playwright-cli/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +2058 -0
  439. package/vendor/playwright-cli/node_modules/playwright-core/lib/utilsBundleImpl/index.js +218 -0
  440. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
  441. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
  442. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
  443. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
  444. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/assets/index-BY2S1tHT.css +1 -0
  445. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/assets/index-DpEq2p62.js +52 -0
  446. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
  447. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/index.html +29 -0
  448. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
  449. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/htmlReport/index.html +16 -0
  450. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/htmlReport/report.css +1 -0
  451. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/htmlReport/report.js +72 -0
  452. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-BHYmBp6h.js +32 -0
  453. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +1 -0
  454. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  455. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/recorder/assets/index-4ZiSSCmn.css +1 -0
  456. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/recorder/assets/index-DA10QRaq.js +193 -0
  457. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
  458. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
  459. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BRrOnXSS.js +32 -0
  460. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BtGnd8kr.js +32 -0
  461. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-CnvO0fko.js +32 -0
  462. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-BkMbME_o.js +262 -0
  463. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-BoN8TZYy.js +262 -0
  464. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CN3cwLGD.js +262 -0
  465. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-BYQrIQwR.js +1 -0
  466. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
  467. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +1 -0
  468. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  469. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.B4dS75f0.css +1 -0
  470. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.BDKsFU3c.css +1 -0
  471. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.DcQiWcKS.css +1 -0
  472. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/index.B2ffe31o.js +2 -0
  473. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/index.CzXZzn5A.css +1 -0
  474. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/index.Df3uWWXm.js +2 -0
  475. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/index.PqVYgODr.js +2 -0
  476. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/index.html +44 -0
  477. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
  478. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
  479. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +10 -0
  480. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/snapshot.v8KI4P3m.js +2 -0
  481. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +5 -0
  482. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.B-IwVgWY.js +6 -0
  483. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.BZQ54Kgt.css +1 -0
  484. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
  485. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CmAqMvmy.js +6 -0
  486. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +18 -0
  487. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/uiMode.u9Eas4CP.js +6 -0
  488. package/vendor/playwright-cli/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
  489. package/vendor/playwright-cli/node_modules/playwright-core/lib/xdg-open +1066 -0
  490. package/vendor/playwright-cli/node_modules/playwright-core/lib/zipBundle.js +34 -0
  491. package/vendor/playwright-cli/node_modules/playwright-core/lib/zipBundleImpl.js +5 -0
  492. package/vendor/playwright-cli/node_modules/playwright-core/package.json +34 -0
  493. package/vendor/playwright-cli/node_modules/playwright-core/types/protocol.d.ts +24565 -0
  494. package/vendor/playwright-cli/node_modules/playwright-core/types/structs.d.ts +45 -0
  495. package/vendor/playwright-cli/node_modules/playwright-core/types/types.d.ts +23879 -0
  496. package/vendor/playwright-cli/package.json +6 -0
  497. package/vendor/playwright-cli/playwright-cli.js +50 -0
@@ -0,0 +1,381 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var browserContextDispatcher_exports = {};
30
+ __export(browserContextDispatcher_exports, {
31
+ BrowserContextDispatcher: () => BrowserContextDispatcher
32
+ });
33
+ module.exports = __toCommonJS(browserContextDispatcher_exports);
34
+ var import_fs = __toESM(require("fs"));
35
+ var import_path = __toESM(require("path"));
36
+ var import_browserContext = require("../browserContext");
37
+ var import_artifactDispatcher = require("./artifactDispatcher");
38
+ var import_cdpSessionDispatcher = require("./cdpSessionDispatcher");
39
+ var import_debuggerDispatcher = require("./debuggerDispatcher");
40
+ var import_dialogDispatcher = require("./dialogDispatcher");
41
+ var import_dispatcher = require("./dispatcher");
42
+ var import_frameDispatcher = require("./frameDispatcher");
43
+ var import_networkDispatchers = require("./networkDispatchers");
44
+ var import_pageDispatcher = require("./pageDispatcher");
45
+ var import_crBrowser = require("../chromium/crBrowser");
46
+ var import_errors = require("../errors");
47
+ var import_disposableDispatcher = require("./disposableDispatcher");
48
+ var import_tracingDispatcher = require("./tracingDispatcher");
49
+ var import_webSocketRouteDispatcher = require("./webSocketRouteDispatcher");
50
+ var import_writableStreamDispatcher = require("./writableStreamDispatcher");
51
+ var import_crypto = require("../utils/crypto");
52
+ var import_urlMatch = require("../../utils/isomorphic/urlMatch");
53
+ var import_recorder = require("../recorder");
54
+ var import_recorderApp = require("../recorder/recorderApp");
55
+ var import_elementHandlerDispatcher = require("./elementHandlerDispatcher");
56
+ var import_jsHandleDispatcher = require("./jsHandleDispatcher");
57
+ var import_disposable = require("../disposable");
58
+ class BrowserContextDispatcher extends import_dispatcher.Dispatcher {
59
+ constructor(parentScope, context) {
60
+ const debugger_ = import_debuggerDispatcher.DebuggerDispatcher.from(parentScope, context.debugger());
61
+ const requestContext = import_networkDispatchers.APIRequestContextDispatcher.from(parentScope, context.fetchRequest);
62
+ const tracing = import_tracingDispatcher.TracingDispatcher.from(parentScope, context.tracing);
63
+ super(parentScope, context, "BrowserContext", {
64
+ debugger: debugger_,
65
+ requestContext,
66
+ tracing,
67
+ options: context._options
68
+ });
69
+ this._type_EventTarget = true;
70
+ this._type_BrowserContext = true;
71
+ this._subscriptions = /* @__PURE__ */ new Set();
72
+ this._webSocketInterceptionPatterns = [];
73
+ this._disposables = [];
74
+ this._clockPaused = false;
75
+ this._interceptionUrlMatchers = [];
76
+ this.adopt(debugger_);
77
+ this.adopt(requestContext);
78
+ this.adopt(tracing);
79
+ this._requestInterceptor = (route, request) => {
80
+ const matchesSome = this._interceptionUrlMatchers.some((urlMatch) => (0, import_urlMatch.urlMatches)(this._context._options.baseURL, request.url(), urlMatch));
81
+ const routeDispatcher = this.connection.existingDispatcher(route);
82
+ if (!matchesSome || routeDispatcher) {
83
+ route.continue({ isFallback: true }).catch(() => {
84
+ });
85
+ return;
86
+ }
87
+ this._dispatchEvent("route", { route: new import_networkDispatchers.RouteDispatcher(import_networkDispatchers.RequestDispatcher.from(this, request), route) });
88
+ };
89
+ this._context = context;
90
+ for (const page of context.pages())
91
+ this._dispatchEvent("page", { page: import_pageDispatcher.PageDispatcher.from(this, page) });
92
+ this.addObjectListener(import_browserContext.BrowserContext.Events.Page, (page) => {
93
+ this._dispatchEvent("page", { page: import_pageDispatcher.PageDispatcher.from(this, page) });
94
+ });
95
+ this.addObjectListener(import_browserContext.BrowserContext.Events.Close, () => {
96
+ this._dispatchEvent("close");
97
+ this._dispose();
98
+ });
99
+ this.addObjectListener(import_browserContext.BrowserContext.Events.PageError, (error, page) => {
100
+ this._dispatchEvent("pageError", { error: (0, import_errors.serializeError)(error), page: import_pageDispatcher.PageDispatcher.from(this, page) });
101
+ });
102
+ this.addObjectListener(import_browserContext.BrowserContext.Events.Console, (message) => {
103
+ const pageDispatcher = import_pageDispatcher.PageDispatcher.fromNullable(this, message.page());
104
+ const workerDispatcher = import_pageDispatcher.WorkerDispatcher.fromNullable(this, message.worker());
105
+ if (this._shouldDispatchEvent(message.page(), "console") || workerDispatcher?._subscriptions.has("console")) {
106
+ this._dispatchEvent("console", {
107
+ page: pageDispatcher,
108
+ worker: workerDispatcher,
109
+ ...this.serializeConsoleMessage(message, workerDispatcher || pageDispatcher)
110
+ });
111
+ }
112
+ });
113
+ this._dialogHandler = (dialog) => {
114
+ if (!this._shouldDispatchEvent(dialog.page(), "dialog"))
115
+ return false;
116
+ this._dispatchEvent("dialog", { dialog: new import_dialogDispatcher.DialogDispatcher(this, dialog) });
117
+ return true;
118
+ };
119
+ context.dialogManager.addDialogHandler(this._dialogHandler);
120
+ if (context._browser.options.name === "chromium" && this._object._browser instanceof import_crBrowser.CRBrowser) {
121
+ for (const serviceWorker of context.serviceWorkers())
122
+ this._dispatchEvent("serviceWorker", { worker: new import_pageDispatcher.WorkerDispatcher(this, serviceWorker) });
123
+ this.addObjectListener(import_crBrowser.CRBrowserContext.CREvents.ServiceWorker, (serviceWorker) => this._dispatchEvent("serviceWorker", { worker: new import_pageDispatcher.WorkerDispatcher(this, serviceWorker) }));
124
+ }
125
+ this.addObjectListener(import_browserContext.BrowserContext.Events.Request, (request) => {
126
+ const redirectFromDispatcher = request.redirectedFrom() && this.connection.existingDispatcher(request.redirectedFrom());
127
+ if (!redirectFromDispatcher && !this._shouldDispatchNetworkEvent(request, "request") && !request.isNavigationRequest())
128
+ return;
129
+ const requestDispatcher = import_networkDispatchers.RequestDispatcher.from(this, request);
130
+ this._dispatchEvent("request", {
131
+ request: requestDispatcher,
132
+ page: import_pageDispatcher.PageDispatcher.fromNullable(this, request.frame()?._page.initializedOrUndefined())
133
+ });
134
+ });
135
+ this.addObjectListener(import_browserContext.BrowserContext.Events.Response, (response) => {
136
+ const requestDispatcher = this.connection.existingDispatcher(response.request());
137
+ if (!requestDispatcher && !this._shouldDispatchNetworkEvent(response.request(), "response"))
138
+ return;
139
+ this._dispatchEvent("response", {
140
+ response: import_networkDispatchers.ResponseDispatcher.from(this, response),
141
+ page: import_pageDispatcher.PageDispatcher.fromNullable(this, response.frame()?._page.initializedOrUndefined())
142
+ });
143
+ });
144
+ this.addObjectListener(import_browserContext.BrowserContext.Events.RequestFailed, (request) => {
145
+ const requestDispatcher = this.connection.existingDispatcher(request);
146
+ if (!requestDispatcher && !this._shouldDispatchNetworkEvent(request, "requestFailed"))
147
+ return;
148
+ this._dispatchEvent("requestFailed", {
149
+ request: import_networkDispatchers.RequestDispatcher.from(this, request),
150
+ failureText: request._failureText || void 0,
151
+ responseEndTiming: request._responseEndTiming,
152
+ page: import_pageDispatcher.PageDispatcher.fromNullable(this, request.frame()?._page.initializedOrUndefined())
153
+ });
154
+ });
155
+ this.addObjectListener(import_browserContext.BrowserContext.Events.RequestFinished, ({ request, response }) => {
156
+ const requestDispatcher = this.connection.existingDispatcher(request);
157
+ if (!requestDispatcher && !this._shouldDispatchNetworkEvent(request, "requestFinished"))
158
+ return;
159
+ this._dispatchEvent("requestFinished", {
160
+ request: import_networkDispatchers.RequestDispatcher.from(this, request),
161
+ response: import_networkDispatchers.ResponseDispatcher.fromNullable(this, response),
162
+ responseEndTiming: request._responseEndTiming,
163
+ page: import_pageDispatcher.PageDispatcher.fromNullable(this, request.frame()?._page.initializedOrUndefined())
164
+ });
165
+ });
166
+ this.addObjectListener(import_browserContext.BrowserContext.Events.RecorderEvent, ({ event, data, page, code }) => {
167
+ this._dispatchEvent("recorderEvent", { event, data, code, page: import_pageDispatcher.PageDispatcher.from(this, page) });
168
+ });
169
+ }
170
+ static from(parentScope, context) {
171
+ const result = parentScope.connection.existingDispatcher(context);
172
+ return result || new BrowserContextDispatcher(parentScope, context);
173
+ }
174
+ _shouldDispatchNetworkEvent(request, event) {
175
+ return this._shouldDispatchEvent(request.frame()?._page?.initializedOrUndefined(), event);
176
+ }
177
+ _shouldDispatchEvent(page, event) {
178
+ if (this._subscriptions.has(event))
179
+ return true;
180
+ const pageDispatcher = page ? this.connection.existingDispatcher(page) : void 0;
181
+ if (pageDispatcher?._subscriptions.has(event))
182
+ return true;
183
+ return false;
184
+ }
185
+ serializeConsoleMessage(message, jsScope) {
186
+ return {
187
+ type: message.type(),
188
+ text: message.text(),
189
+ args: message.args().map((a) => {
190
+ const elementHandle = a.asElement();
191
+ if (elementHandle)
192
+ return import_elementHandlerDispatcher.ElementHandleDispatcher.from(import_frameDispatcher.FrameDispatcher.from(this, elementHandle._frame), elementHandle);
193
+ return import_jsHandleDispatcher.JSHandleDispatcher.fromJSHandle(jsScope, a);
194
+ }),
195
+ location: message.location(),
196
+ timestamp: message.timestamp()
197
+ };
198
+ }
199
+ async createTempFiles(params, progress) {
200
+ const dir = this._context._browser.options.artifactsDir;
201
+ const tmpDir = import_path.default.join(dir, "upload-" + (0, import_crypto.createGuid)());
202
+ const tempDirWithRootName = params.rootDirName ? import_path.default.join(tmpDir, import_path.default.basename(params.rootDirName)) : tmpDir;
203
+ await progress.race(import_fs.default.promises.mkdir(tempDirWithRootName, { recursive: true }));
204
+ this._context._tempDirs.push(tmpDir);
205
+ return {
206
+ rootDir: params.rootDirName ? new import_writableStreamDispatcher.WritableStreamDispatcher(this, tempDirWithRootName) : void 0,
207
+ writableStreams: await Promise.all(params.items.map(async (item) => {
208
+ await progress.race(import_fs.default.promises.mkdir(import_path.default.dirname(import_path.default.join(tempDirWithRootName, item.name)), { recursive: true }));
209
+ const file = import_fs.default.createWriteStream(import_path.default.join(tempDirWithRootName, item.name));
210
+ return new import_writableStreamDispatcher.WritableStreamDispatcher(this, file, item.lastModifiedMs);
211
+ }))
212
+ };
213
+ }
214
+ async exposeBinding(params, progress) {
215
+ const binding = await this._context.exposeBinding(progress, params.name, !!params.needsHandle, (source, ...args) => {
216
+ if (this._disposed)
217
+ return;
218
+ const pageDispatcher = import_pageDispatcher.PageDispatcher.from(this, source.page);
219
+ const binding2 = new import_pageDispatcher.BindingCallDispatcher(pageDispatcher, params.name, !!params.needsHandle, source, args);
220
+ this._dispatchEvent("bindingCall", { binding: binding2 });
221
+ return binding2.promise();
222
+ });
223
+ this._disposables.push(binding);
224
+ return { disposable: new import_disposableDispatcher.DisposableDispatcher(this, binding) };
225
+ }
226
+ async newPage(params, progress) {
227
+ return { page: import_pageDispatcher.PageDispatcher.from(this, await this._context.newPage(progress)) };
228
+ }
229
+ async cookies(params, progress) {
230
+ return { cookies: await progress.race(this._context.cookies(params.urls)) };
231
+ }
232
+ async addCookies(params, progress) {
233
+ await this._context.addCookies(params.cookies);
234
+ }
235
+ async clearCookies(params, progress) {
236
+ const nameRe = params.nameRegexSource !== void 0 && params.nameRegexFlags !== void 0 ? new RegExp(params.nameRegexSource, params.nameRegexFlags) : void 0;
237
+ const domainRe = params.domainRegexSource !== void 0 && params.domainRegexFlags !== void 0 ? new RegExp(params.domainRegexSource, params.domainRegexFlags) : void 0;
238
+ const pathRe = params.pathRegexSource !== void 0 && params.pathRegexFlags !== void 0 ? new RegExp(params.pathRegexSource, params.pathRegexFlags) : void 0;
239
+ await this._context.clearCookies({
240
+ name: nameRe || params.name,
241
+ domain: domainRe || params.domain,
242
+ path: pathRe || params.path
243
+ });
244
+ }
245
+ async grantPermissions(params, progress) {
246
+ await this._context.grantPermissions(params.permissions, params.origin);
247
+ }
248
+ async clearPermissions(params, progress) {
249
+ await this._context.clearPermissions();
250
+ }
251
+ async setGeolocation(params, progress) {
252
+ await this._context.setGeolocation(params.geolocation);
253
+ }
254
+ async setExtraHTTPHeaders(params, progress) {
255
+ await this._context.setExtraHTTPHeaders(progress, params.headers);
256
+ }
257
+ async setOffline(params, progress) {
258
+ await this._context.setOffline(progress, params.offline);
259
+ }
260
+ async setHTTPCredentials(params, progress) {
261
+ await progress.race(this._context.setHTTPCredentials(params.httpCredentials));
262
+ }
263
+ async addInitScript(params, progress) {
264
+ const initScript = await this._context.addInitScript(params.source);
265
+ this._disposables.push(initScript);
266
+ return { disposable: new import_disposableDispatcher.DisposableDispatcher(this, initScript) };
267
+ }
268
+ async setNetworkInterceptionPatterns(params, progress) {
269
+ const hadMatchers = this._interceptionUrlMatchers.length > 0;
270
+ if (!params.patterns.length) {
271
+ if (hadMatchers)
272
+ await this._context.removeRequestInterceptor(this._requestInterceptor);
273
+ this._interceptionUrlMatchers = [];
274
+ } else {
275
+ this._interceptionUrlMatchers = params.patterns.map(import_urlMatch.deserializeURLMatch);
276
+ if (!hadMatchers)
277
+ await this._context.addRequestInterceptor(progress, this._requestInterceptor);
278
+ }
279
+ }
280
+ async setWebSocketInterceptionPatterns(params, progress) {
281
+ this._webSocketInterceptionPatterns = params.patterns;
282
+ if (params.patterns.length && !this._routeWebSocketInitScript)
283
+ this._routeWebSocketInitScript = await import_webSocketRouteDispatcher.WebSocketRouteDispatcher.install(progress, this.connection, this._context);
284
+ }
285
+ async storageState(params, progress) {
286
+ return await progress.race(this._context.storageState(progress, params.indexedDB));
287
+ }
288
+ async setStorageState(params, progress) {
289
+ await this._context.setStorageState(progress, params.storageState, "api");
290
+ }
291
+ async close(params, progress) {
292
+ progress.metadata.potentiallyClosesScope = true;
293
+ await this._context.close(params);
294
+ }
295
+ async enableRecorder(params, progress) {
296
+ await import_recorderApp.RecorderApp.show(this._context, params);
297
+ }
298
+ async disableRecorder(params, progress) {
299
+ const recorder = await import_recorder.Recorder.existingForContext(this._context);
300
+ await recorder?.setMode("none");
301
+ }
302
+ async exposeConsoleApi(params, progress) {
303
+ await this._context.exposeConsoleApi();
304
+ }
305
+ async pause(params, progress) {
306
+ }
307
+ async newCDPSession(params, progress) {
308
+ if (this._object._browser.options.browserType !== "chromium")
309
+ throw new Error(`CDP session is only available in Chromium`);
310
+ if (!params.page && !params.frame || params.page && params.frame)
311
+ throw new Error(`CDP session must be initiated with either Page or Frame, not none or both`);
312
+ const crBrowserContext = this._object;
313
+ return { session: new import_cdpSessionDispatcher.CDPSessionDispatcher(this, await progress.race(crBrowserContext.newCDPSession((params.page ? params.page : params.frame)._object))) };
314
+ }
315
+ async harStart(params, progress) {
316
+ const harId = this._context.harStart(params.page ? params.page._object : null, params.options);
317
+ return { harId };
318
+ }
319
+ async harExport(params, progress) {
320
+ const artifact = await progress.race(this._context.harExport(params.harId));
321
+ if (!artifact)
322
+ throw new Error("No HAR artifact. Ensure record.harPath is set.");
323
+ return { artifact: import_artifactDispatcher.ArtifactDispatcher.from(this, artifact) };
324
+ }
325
+ async clockFastForward(params, progress) {
326
+ await this._context.clock.fastForward(params.ticksString ?? params.ticksNumber ?? 0);
327
+ }
328
+ async clockInstall(params, progress) {
329
+ await this._context.clock.install(params.timeString ?? params.timeNumber ?? void 0);
330
+ }
331
+ async clockPauseAt(params, progress) {
332
+ await this._context.clock.pauseAt(params.timeString ?? params.timeNumber ?? 0);
333
+ this._clockPaused = true;
334
+ }
335
+ async clockResume(params, progress) {
336
+ await this._context.clock.resume(progress);
337
+ this._clockPaused = false;
338
+ }
339
+ async clockRunFor(params, progress) {
340
+ await this._context.clock.runFor(params.ticksString ?? params.ticksNumber ?? 0);
341
+ }
342
+ async clockSetFixedTime(params, progress) {
343
+ await this._context.clock.setFixedTime(params.timeString ?? params.timeNumber ?? 0);
344
+ }
345
+ async clockSetSystemTime(params, progress) {
346
+ await this._context.clock.setSystemTime(params.timeString ?? params.timeNumber ?? 0);
347
+ }
348
+ async updateSubscription(params, progress) {
349
+ if (params.enabled)
350
+ this._subscriptions.add(params.event);
351
+ else
352
+ this._subscriptions.delete(params.event);
353
+ }
354
+ async registerSelectorEngine(params, progress) {
355
+ this._object.selectors().register(params.selectorEngine);
356
+ }
357
+ async setTestIdAttributeName(params, progress) {
358
+ this._object.selectors().setTestIdAttributeName(params.testIdAttributeName);
359
+ }
360
+ _onDispose() {
361
+ if (this._context.isClosingOrClosed())
362
+ return;
363
+ this._context.dialogManager.removeDialogHandler(this._dialogHandler);
364
+ this._interceptionUrlMatchers = [];
365
+ this._context.removeRequestInterceptor(this._requestInterceptor).catch(() => {
366
+ });
367
+ (0, import_disposable.disposeAll)(this._disposables).catch(() => {
368
+ });
369
+ if (this._routeWebSocketInitScript)
370
+ import_webSocketRouteDispatcher.WebSocketRouteDispatcher.uninstall(this.connection, this._context, this._routeWebSocketInitScript).catch(() => {
371
+ });
372
+ this._routeWebSocketInitScript = void 0;
373
+ if (this._clockPaused)
374
+ this._context.clock.resumeNoReply();
375
+ this._clockPaused = false;
376
+ }
377
+ }
378
+ // Annotate the CommonJS export names for ESM import in node:
379
+ 0 && (module.exports = {
380
+ BrowserContextDispatcher
381
+ });
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var browserDispatcher_exports = {};
20
+ __export(browserDispatcher_exports, {
21
+ BrowserDispatcher: () => BrowserDispatcher
22
+ });
23
+ module.exports = __toCommonJS(browserDispatcher_exports);
24
+ var import_browser = require("../browser");
25
+ var import_browserContextDispatcher = require("./browserContextDispatcher");
26
+ var import_cdpSessionDispatcher = require("./cdpSessionDispatcher");
27
+ var import_dispatcher = require("./dispatcher");
28
+ var import_browserContext = require("../browserContext");
29
+ var import_artifactDispatcher = require("./artifactDispatcher");
30
+ class BrowserDispatcher extends import_dispatcher.Dispatcher {
31
+ constructor(scope, browser, options = {}) {
32
+ super(scope, browser, "Browser", { version: browser.version(), name: browser.options.name, browserName: browser.options.browserType });
33
+ this._type_Browser = true;
34
+ this._isolatedContexts = /* @__PURE__ */ new Set();
35
+ this._options = options;
36
+ if (!options.isolateContexts) {
37
+ this.addObjectListener(import_browser.Browser.Events.Context, (context) => this._dispatchEvent("context", { context: import_browserContextDispatcher.BrowserContextDispatcher.from(this, context) }));
38
+ this.addObjectListener(import_browser.Browser.Events.Disconnected, () => this._didClose());
39
+ if (browser._defaultContext)
40
+ this._dispatchEvent("context", { context: import_browserContextDispatcher.BrowserContextDispatcher.from(this, browser._defaultContext) });
41
+ for (const context of browser.contexts())
42
+ this._dispatchEvent("context", { context: import_browserContextDispatcher.BrowserContextDispatcher.from(this, context) });
43
+ }
44
+ }
45
+ _didClose() {
46
+ this._dispatchEvent("close");
47
+ this._dispose();
48
+ }
49
+ async newContext(params, progress) {
50
+ if (params.recordVideo && this._object.attribution.playwright.options.isServer)
51
+ params.recordVideo.dir = this._object.options.artifactsDir;
52
+ if (!this._options.isolateContexts) {
53
+ const context2 = await this._object.newContext(progress, params);
54
+ const contextDispatcher2 = import_browserContextDispatcher.BrowserContextDispatcher.from(this, context2);
55
+ return { context: contextDispatcher2 };
56
+ }
57
+ const context = await this._object.newContext(progress, params);
58
+ this._isolatedContexts.add(context);
59
+ context.on(import_browserContext.BrowserContext.Events.Close, () => this._isolatedContexts.delete(context));
60
+ const contextDispatcher = import_browserContextDispatcher.BrowserContextDispatcher.from(this, context);
61
+ this._dispatchEvent("context", { context: contextDispatcher });
62
+ return { context: contextDispatcher };
63
+ }
64
+ async newContextForReuse(params, progress) {
65
+ const context = await this._object.newContextForReuse(progress, params);
66
+ const contextDispatcher = import_browserContextDispatcher.BrowserContextDispatcher.from(this, context);
67
+ this._dispatchEvent("context", { context: contextDispatcher });
68
+ return { context: contextDispatcher };
69
+ }
70
+ async disconnectFromReusedContext(params, progress) {
71
+ const context = this._object.contextForReuse();
72
+ const contextDispatcher = context ? this.connection.existingDispatcher(context) : void 0;
73
+ if (contextDispatcher) {
74
+ await contextDispatcher.stopPendingOperations(new Error(params.reason));
75
+ contextDispatcher._dispose();
76
+ }
77
+ }
78
+ async close(params, progress) {
79
+ if (this._options.ignoreStopAndKill)
80
+ return;
81
+ progress.metadata.potentiallyClosesScope = true;
82
+ await this._object.close(params);
83
+ }
84
+ async killForTests(params, progress) {
85
+ if (this._options.ignoreStopAndKill)
86
+ return;
87
+ progress.metadata.potentiallyClosesScope = true;
88
+ await this._object.killForTests();
89
+ }
90
+ async defaultUserAgentForTest() {
91
+ return { userAgent: this._object.userAgent() };
92
+ }
93
+ async newBrowserCDPSession(params, progress) {
94
+ if (this._object.options.browserType !== "chromium")
95
+ throw new Error(`CDP session is only available in Chromium`);
96
+ const crBrowser = this._object;
97
+ return { session: new import_cdpSessionDispatcher.CDPSessionDispatcher(this, await crBrowser.newBrowserCDPSession()) };
98
+ }
99
+ async startTracing(params, progress) {
100
+ if (this._object.options.browserType !== "chromium")
101
+ throw new Error(`Tracing is only available in Chromium`);
102
+ const crBrowser = this._object;
103
+ await crBrowser.startTracing(params.page ? params.page._object : void 0, params);
104
+ }
105
+ async stopTracing(params, progress) {
106
+ if (this._object.options.browserType !== "chromium")
107
+ throw new Error(`Tracing is only available in Chromium`);
108
+ const crBrowser = this._object;
109
+ return { artifact: import_artifactDispatcher.ArtifactDispatcher.from(this, await crBrowser.stopTracing()) };
110
+ }
111
+ async startServer(params, progress) {
112
+ return await this._object.startServer(params.title, params);
113
+ }
114
+ async stopServer(params, progress) {
115
+ await this._object.stopServer();
116
+ }
117
+ async cleanupContexts() {
118
+ await Promise.all(Array.from(this._isolatedContexts).map((context) => context.close({ reason: "Global context cleanup (connection terminated)" })));
119
+ }
120
+ }
121
+ // Annotate the CommonJS export names for ESM import in node:
122
+ 0 && (module.exports = {
123
+ BrowserDispatcher
124
+ });
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var browserTypeDispatcher_exports = {};
20
+ __export(browserTypeDispatcher_exports, {
21
+ BrowserTypeDispatcher: () => BrowserTypeDispatcher
22
+ });
23
+ module.exports = __toCommonJS(browserTypeDispatcher_exports);
24
+ var import_browserContextDispatcher = require("./browserContextDispatcher");
25
+ var import_browserDispatcher = require("./browserDispatcher");
26
+ var import_dispatcher = require("./dispatcher");
27
+ class BrowserTypeDispatcher extends import_dispatcher.Dispatcher {
28
+ constructor(scope, browserType, denyLaunch) {
29
+ super(scope, browserType, "BrowserType", {
30
+ executablePath: browserType.executablePath(),
31
+ name: browserType.name()
32
+ });
33
+ this._type_BrowserType = true;
34
+ this._denyLaunch = denyLaunch;
35
+ }
36
+ async launch(params, progress) {
37
+ if (this._denyLaunch)
38
+ throw new Error(`Launching more browsers is not allowed.`);
39
+ const browser = await this._object.launch(progress, params);
40
+ return { browser: new import_browserDispatcher.BrowserDispatcher(this, browser) };
41
+ }
42
+ async launchPersistentContext(params, progress) {
43
+ if (this._denyLaunch)
44
+ throw new Error(`Launching more browsers is not allowed.`);
45
+ const browserContext = await this._object.launchPersistentContext(progress, params.userDataDir, params);
46
+ const browserDispatcher = new import_browserDispatcher.BrowserDispatcher(this, browserContext._browser);
47
+ const contextDispatcher = import_browserContextDispatcher.BrowserContextDispatcher.from(browserDispatcher, browserContext);
48
+ return { browser: browserDispatcher, context: contextDispatcher };
49
+ }
50
+ async connectOverCDP(params, progress) {
51
+ if (this._denyLaunch)
52
+ throw new Error(`Launching more browsers is not allowed.`);
53
+ const browser = await this._object.connectOverCDP(progress, params.endpointURL, params);
54
+ const browserDispatcher = new import_browserDispatcher.BrowserDispatcher(this, browser);
55
+ return {
56
+ browser: browserDispatcher,
57
+ defaultContext: browser._defaultContext ? import_browserContextDispatcher.BrowserContextDispatcher.from(browserDispatcher, browser._defaultContext) : void 0
58
+ };
59
+ }
60
+ async connectOverCDPTransport(params, progress) {
61
+ if (this._denyLaunch)
62
+ throw new Error(`Launching more browsers is not allowed.`);
63
+ const browser = await this._object.connectOverCDPTransport(progress, params.transport);
64
+ const browserDispatcher = new import_browserDispatcher.BrowserDispatcher(this, browser);
65
+ return { browser: browserDispatcher, defaultContext: browser._defaultContext ? import_browserContextDispatcher.BrowserContextDispatcher.from(browserDispatcher, browser._defaultContext) : void 0 };
66
+ }
67
+ }
68
+ // Annotate the CommonJS export names for ESM import in node:
69
+ 0 && (module.exports = {
70
+ BrowserTypeDispatcher
71
+ });
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var cdpSessionDispatcher_exports = {};
20
+ __export(cdpSessionDispatcher_exports, {
21
+ CDPSessionDispatcher: () => CDPSessionDispatcher
22
+ });
23
+ module.exports = __toCommonJS(cdpSessionDispatcher_exports);
24
+ var import_dispatcher = require("./dispatcher");
25
+ var import_crConnection = require("../chromium/crConnection");
26
+ class CDPSessionDispatcher extends import_dispatcher.Dispatcher {
27
+ constructor(scope, cdpSession) {
28
+ super(scope, cdpSession, "CDPSession", {});
29
+ this._type_CDPSession = true;
30
+ this.addObjectListener(import_crConnection.CDPSession.Events.Event, ({ method, params }) => this._dispatchEvent("event", { method, params }));
31
+ this.addObjectListener(import_crConnection.CDPSession.Events.Closed, () => {
32
+ this._dispatchEvent("close");
33
+ this._dispose();
34
+ });
35
+ }
36
+ async send(params, progress) {
37
+ return { result: await progress.race(this._object.send(params.method, params.params)) };
38
+ }
39
+ async detach(_, progress) {
40
+ progress.metadata.potentiallyClosesScope = true;
41
+ await this._object.detach();
42
+ }
43
+ }
44
+ // Annotate the CommonJS export names for ESM import in node:
45
+ 0 && (module.exports = {
46
+ CDPSessionDispatcher
47
+ });