antigravity-mobile-proxy 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +5 -2
- package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/action/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/action/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/history/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/history/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/new/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/new/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/state/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/state/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js +6 -3
- package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/conversations/route.js +6 -3
- package/.next/standalone/.next/server/app/api/v1/conversations/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/health/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/health/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/close/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/windows/close/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/open/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/windows/open/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/windows/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/select/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/windows/select/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/debug/page.js +1 -1
- package/.next/standalone/.next/server/app/debug/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page.js +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d31b133._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__133ac672._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1535be2d._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ee7d416._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__22df301c._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__25f5f8ec._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__26662154._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__2ec5ba30._.js → [root-of-the-server]__3fe6d12c._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4b17d628._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4c540a38._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8d2624da._.js → [root-of-the-server]__4d161104._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__53c4f34d._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__68965284._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8cb67283._.js +5 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f5ebbc3._.js +7 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f8bd59f._.js +20 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9166d84a._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__94275f7f._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c34d50c8._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8fdd2340._.js → [root-of-the-server]__c696771d._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0bd52b41._.js → [root-of-the-server]__cd7ccfdd._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d5818e20._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__360475ac._.js → [root-of-the-server]__db7b3604._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__eeb89c13._.js → [root-of-the-server]__dc1db6cb._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4effd91a._.js → [root-of-the-server]__e9181374._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__eb9ef4db._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4448d3d4._.js → [root-of-the-server]__ec32b318._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__7f18ffd0._.js → [root-of-the-server]__f54bea3d._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fabd57e0._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fd0215df._.js +3 -0
- package/.next/standalone/.next/server/chunks/lib_cdp_connection_ts_075c799e._.js +41 -0
- package/.next/standalone/.next/server/chunks/node_modules_151ca6ae._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_1f8a2929._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_2d9a2f12._.js +4 -0
- package/.next/standalone/.next/server/chunks/node_modules_3b486fee._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_64199bef._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_@puppeteer_browsers_lib_esm_main_83020de3.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_f81d3958._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_next_1402a1da._.js +2 -2
- package/.next/standalone/.next/server/chunks/node_modules_yargs_helpers_helpers_mjs_abe15519._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_yargs_index_mjs_c4f6f97b._.js +56 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__703e5e24._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__edab6069._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_63dba3f8._.js +1 -1
- package/.next/standalone/.next/server/pages/500.html +2 -2
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/next.config.js +19 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
- package/.next/standalone/node_modules/next/dist/build/generate-build-id.js +5 -1
- package/.next/standalone/package-lock.json +140 -129
- package/.next/standalone/package.json +4 -3
- package/.next/standalone/scripts/patch-next.js +69 -0
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/tsconfig.json +14 -4
- package/package.json +4 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08f06ee9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__15c96786._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__19ee93c1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__324dc867._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__38025e07._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a837477._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4f9fdc77._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__556e6cd5._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6479a312._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__693625a1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6ec98c1f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7f696ede._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8aa4aa02._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9d217c47._.js +0 -7
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e54cdc1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a73e4e4f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cd1b9505._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d850c12e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ef121746._.js +0 -3
- package/.next/standalone/.next/server/chunks/_7273dcfc._.js +0 -3
- package/.next/standalone/.next/server/chunks/_8dd0f398._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4fe85c38._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__85930638._.js +0 -3
- package/.next/standalone/next.config.ts +0 -10
- package/.next/standalone/node_modules/@puppeteer/browsers/package.json +0 -125
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +0 -53
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +0 -58
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context.js +0 -691
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +0 -6
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +0 -96
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +0 -58
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +0 -19
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +0 -387
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +0 -71
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/index.js +0 -128
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +0 -227
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +0 -41
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +0 -97
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +0 -77
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module.js +0 -302
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +0 -49
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +0 -300
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +0 -38
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types.js +0 -58
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +0 -169
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +0 -12
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/package.json +0 -60
- package/.next/standalone/node_modules/agent-base/dist/helpers.js +0 -66
- package/.next/standalone/node_modules/agent-base/dist/index.js +0 -178
- package/.next/standalone/node_modules/agent-base/package.json +0 -46
- package/.next/standalone/node_modules/ast-types/def/babel-core.js +0 -256
- package/.next/standalone/node_modules/ast-types/def/babel.js +0 -11
- package/.next/standalone/node_modules/ast-types/def/core.js +0 -298
- package/.next/standalone/node_modules/ast-types/def/es-proposals.js +0 -33
- package/.next/standalone/node_modules/ast-types/def/es2020.js +0 -16
- package/.next/standalone/node_modules/ast-types/def/es6.js +0 -210
- package/.next/standalone/node_modules/ast-types/def/es7.js +0 -34
- package/.next/standalone/node_modules/ast-types/def/esprima.js +0 -49
- package/.next/standalone/node_modules/ast-types/def/flow.js +0 -292
- package/.next/standalone/node_modules/ast-types/def/jsx.js +0 -103
- package/.next/standalone/node_modules/ast-types/def/type-annotations.js +0 -40
- package/.next/standalone/node_modules/ast-types/def/typescript.js +0 -344
- package/.next/standalone/node_modules/ast-types/fork.js +0 -52
- package/.next/standalone/node_modules/ast-types/gen/namedTypes.js +0 -6
- package/.next/standalone/node_modules/ast-types/lib/equiv.js +0 -154
- package/.next/standalone/node_modules/ast-types/lib/node-path.js +0 -411
- package/.next/standalone/node_modules/ast-types/lib/path-visitor.js +0 -343
- package/.next/standalone/node_modules/ast-types/lib/path.js +0 -331
- package/.next/standalone/node_modules/ast-types/lib/scope.js +0 -318
- package/.next/standalone/node_modules/ast-types/lib/shared.js +0 -47
- package/.next/standalone/node_modules/ast-types/lib/types.js +0 -780
- package/.next/standalone/node_modules/ast-types/main.js +0 -53
- package/.next/standalone/node_modules/ast-types/package.json +0 -65
- package/.next/standalone/node_modules/b4a/index.js +0 -188
- package/.next/standalone/node_modules/b4a/package.json +0 -49
- package/.next/standalone/node_modules/basic-ftp/dist/Client.js +0 -782
- package/.next/standalone/node_modules/basic-ftp/dist/FileInfo.js +0 -92
- package/.next/standalone/node_modules/basic-ftp/dist/FtpContext.js +0 -365
- package/.next/standalone/node_modules/basic-ftp/dist/ProgressTracker.js +0 -72
- package/.next/standalone/node_modules/basic-ftp/dist/StringEncoding.js +0 -2
- package/.next/standalone/node_modules/basic-ftp/dist/StringWriter.js +0 -23
- package/.next/standalone/node_modules/basic-ftp/dist/index.js +0 -28
- package/.next/standalone/node_modules/basic-ftp/dist/netUtils.js +0 -66
- package/.next/standalone/node_modules/basic-ftp/dist/parseControlResponse.js +0 -66
- package/.next/standalone/node_modules/basic-ftp/dist/parseList.js +0 -79
- package/.next/standalone/node_modules/basic-ftp/dist/parseListDOS.js +0 -52
- package/.next/standalone/node_modules/basic-ftp/dist/parseListMLSD.js +0 -187
- package/.next/standalone/node_modules/basic-ftp/dist/parseListUnix.js +0 -155
- package/.next/standalone/node_modules/basic-ftp/dist/transfer.js +0 -318
- package/.next/standalone/node_modules/basic-ftp/package.json +0 -52
- package/.next/standalone/node_modules/buffer-crc32/index.js +0 -111
- package/.next/standalone/node_modules/buffer-crc32/package.json +0 -39
- package/.next/standalone/node_modules/cliui/build/lib/index.js +0 -287
- package/.next/standalone/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/.next/standalone/node_modules/cliui/index.mjs +0 -13
- package/.next/standalone/node_modules/cliui/package.json +0 -83
- package/.next/standalone/node_modules/data-uri-to-buffer/dist/common.js +0 -54
- package/.next/standalone/node_modules/data-uri-to-buffer/dist/node.js +0 -26
- package/.next/standalone/node_modules/data-uri-to-buffer/package.json +0 -48
- package/.next/standalone/node_modules/debug/package.json +0 -64
- package/.next/standalone/node_modules/debug/src/browser.js +0 -272
- package/.next/standalone/node_modules/debug/src/common.js +0 -292
- package/.next/standalone/node_modules/debug/src/index.js +0 -10
- package/.next/standalone/node_modules/debug/src/node.js +0 -263
- package/.next/standalone/node_modules/degenerator/dist/compile.js +0 -107
- package/.next/standalone/node_modules/degenerator/dist/degenerator.js +0 -156
- package/.next/standalone/node_modules/degenerator/dist/index.js +0 -19
- package/.next/standalone/node_modules/degenerator/package.json +0 -42
- package/.next/standalone/node_modules/end-of-stream/index.js +0 -96
- package/.next/standalone/node_modules/end-of-stream/package.json +0 -37
- package/.next/standalone/node_modules/escalade/package.json +0 -74
- package/.next/standalone/node_modules/escodegen/escodegen.js +0 -2667
- package/.next/standalone/node_modules/escodegen/package.json +0 -63
- package/.next/standalone/node_modules/esprima/dist/esprima.js +0 -6709
- package/.next/standalone/node_modules/esprima/package.json +0 -112
- package/.next/standalone/node_modules/estraverse/estraverse.js +0 -805
- package/.next/standalone/node_modules/estraverse/package.json +0 -40
- package/.next/standalone/node_modules/esutils/lib/ast.js +0 -144
- package/.next/standalone/node_modules/esutils/lib/code.js +0 -135
- package/.next/standalone/node_modules/esutils/lib/keyword.js +0 -165
- package/.next/standalone/node_modules/esutils/lib/utils.js +0 -33
- package/.next/standalone/node_modules/esutils/package.json +0 -44
- package/.next/standalone/node_modules/events-universal/default.js +0 -1
- package/.next/standalone/node_modules/events-universal/package.json +0 -39
- package/.next/standalone/node_modules/extract-zip/LICENSE +0 -23
- package/.next/standalone/node_modules/extract-zip/cli.js +0 -19
- package/.next/standalone/node_modules/extract-zip/index.js +0 -173
- package/.next/standalone/node_modules/extract-zip/package.json +0 -80
- package/.next/standalone/node_modules/extract-zip/readme.md +0 -57
- package/.next/standalone/node_modules/fast-fifo/fixed-size.js +0 -39
- package/.next/standalone/node_modules/fast-fifo/index.js +0 -48
- package/.next/standalone/node_modules/fast-fifo/package.json +0 -28
- package/.next/standalone/node_modules/fd-slicer/index.js +0 -296
- package/.next/standalone/node_modules/fd-slicer/package.json +0 -36
- package/.next/standalone/node_modules/get-stream/buffer-stream.js +0 -52
- package/.next/standalone/node_modules/get-stream/index.js +0 -60
- package/.next/standalone/node_modules/get-stream/package.json +0 -50
- package/.next/standalone/node_modules/get-uri/dist/data.js +0 -43
- package/.next/standalone/node_modules/get-uri/dist/file.js +0 -57
- package/.next/standalone/node_modules/get-uri/dist/ftp.js +0 -93
- package/.next/standalone/node_modules/get-uri/dist/http-error.js +0 -15
- package/.next/standalone/node_modules/get-uri/dist/http.js +0 -191
- package/.next/standalone/node_modules/get-uri/dist/https.js +0 -16
- package/.next/standalone/node_modules/get-uri/dist/index.js +0 -57
- package/.next/standalone/node_modules/get-uri/dist/notfound.js +0 -16
- package/.next/standalone/node_modules/get-uri/dist/notmodified.js +0 -17
- package/.next/standalone/node_modules/get-uri/package.json +0 -58
- package/.next/standalone/node_modules/has-flag/index.js +0 -8
- package/.next/standalone/node_modules/has-flag/package.json +0 -46
- package/.next/standalone/node_modules/http-proxy-agent/dist/index.js +0 -148
- package/.next/standalone/node_modules/http-proxy-agent/package.json +0 -47
- package/.next/standalone/node_modules/https-proxy-agent/dist/index.js +0 -180
- package/.next/standalone/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
- package/.next/standalone/node_modules/https-proxy-agent/package.json +0 -50
- package/.next/standalone/node_modules/ip-address/dist/address-error.js +0 -12
- package/.next/standalone/node_modules/ip-address/dist/common.js +0 -46
- package/.next/standalone/node_modules/ip-address/dist/ip-address.js +0 -35
- package/.next/standalone/node_modules/ip-address/dist/ipv4.js +0 -360
- package/.next/standalone/node_modules/ip-address/dist/ipv6.js +0 -1003
- package/.next/standalone/node_modules/ip-address/dist/v4/constants.js +0 -8
- package/.next/standalone/node_modules/ip-address/dist/v6/constants.js +0 -76
- package/.next/standalone/node_modules/ip-address/dist/v6/helpers.js +0 -45
- package/.next/standalone/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
- package/.next/standalone/node_modules/ip-address/package.json +0 -78
- package/.next/standalone/node_modules/lru-cache/index.js +0 -1227
- package/.next/standalone/node_modules/lru-cache/package.json +0 -96
- package/.next/standalone/node_modules/ms/index.js +0 -162
- package/.next/standalone/node_modules/ms/package.json +0 -38
- package/.next/standalone/node_modules/netmask/lib/netmask.js +0 -208
- package/.next/standalone/node_modules/netmask/package.json +0 -36
- package/.next/standalone/node_modules/once/once.js +0 -42
- package/.next/standalone/node_modules/once/package.json +0 -33
- package/.next/standalone/node_modules/pac-proxy-agent/dist/index.js +0 -238
- package/.next/standalone/node_modules/pac-proxy-agent/package.json +0 -58
- package/.next/standalone/node_modules/pac-resolver/dist/dateRange.js +0 -73
- package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainIs.js +0 -30
- package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainLevels.js +0 -28
- package/.next/standalone/node_modules/pac-resolver/dist/dnsResolve.js +0 -32
- package/.next/standalone/node_modules/pac-resolver/dist/index.js +0 -87
- package/.next/standalone/node_modules/pac-resolver/dist/ip.js +0 -50
- package/.next/standalone/node_modules/pac-resolver/dist/isInNet.js +0 -42
- package/.next/standalone/node_modules/pac-resolver/dist/isPlainHostName.js +0 -23
- package/.next/standalone/node_modules/pac-resolver/dist/isResolvable.js +0 -23
- package/.next/standalone/node_modules/pac-resolver/dist/localHostOrDomainIs.js +0 -40
- package/.next/standalone/node_modules/pac-resolver/dist/myIpAddress.js +0 -50
- package/.next/standalone/node_modules/pac-resolver/dist/shExpMatch.js +0 -41
- package/.next/standalone/node_modules/pac-resolver/dist/timeRange.js +0 -92
- package/.next/standalone/node_modules/pac-resolver/dist/util.js +0 -22
- package/.next/standalone/node_modules/pac-resolver/dist/weekdayRange.js +0 -91
- package/.next/standalone/node_modules/pac-resolver/package.json +0 -47
- package/.next/standalone/node_modules/pend/index.js +0 -55
- package/.next/standalone/node_modules/pend/package.json +0 -18
- package/.next/standalone/node_modules/progress/index.js +0 -1
- package/.next/standalone/node_modules/progress/lib/node-progress.js +0 -236
- package/.next/standalone/node_modules/progress/package.json +0 -26
- package/.next/standalone/node_modules/proxy-agent/dist/index.js +0 -138
- package/.next/standalone/node_modules/proxy-agent/package.json +0 -60
- package/.next/standalone/node_modules/proxy-from-env/index.js +0 -108
- package/.next/standalone/node_modules/proxy-from-env/package.json +0 -34
- package/.next/standalone/node_modules/pump/index.js +0 -86
- package/.next/standalone/node_modules/pump/package.json +0 -30
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/package.json +0 -1
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +0 -204
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +0 -182
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js +0 -68
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/DeviceRequestPrompt.js +0 -34
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +0 -90
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +0 -1406
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js +0 -10
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +0 -904
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js +0 -461
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js +0 -56
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +0 -211
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +0 -227
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +0 -1511
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +0 -44
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js +0 -49
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js +0 -106
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js +0 -22
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +0 -769
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +0 -83
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js +0 -591
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js +0 -162
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BluetoothEmulation.js +0 -26
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +0 -327
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js +0 -26
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js +0 -192
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js +0 -39
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpSession.js +0 -129
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +0 -244
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js +0 -372
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +0 -151
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +0 -23
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +0 -206
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +0 -458
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +0 -457
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExtensionTransport.js +0 -175
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +0 -358
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +0 -455
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js +0 -24
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js +0 -91
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js +0 -195
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js +0 -126
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +0 -499
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +0 -157
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js +0 -20
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +0 -101
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js +0 -174
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js +0 -162
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +0 -601
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +0 -1011
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +0 -69
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +0 -243
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManageEvents.js +0 -7
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManager.js +0 -320
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js +0 -110
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js +0 -73
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js +0 -43
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js +0 -216
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +0 -54
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +0 -129
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +0 -39
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +0 -133
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +0 -78
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +0 -114
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +0 -109
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +0 -1604
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +0 -94
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +0 -128
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +0 -75
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +0 -70
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +0 -142
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +0 -23
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js +0 -21
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +0 -58
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +0 -100
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +0 -98
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +0 -225
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +0 -51
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +0 -69
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +0 -24
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +0 -15
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +0 -39
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +0 -394
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +0 -197
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +0 -21
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js +0 -35
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +0 -375
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +0 -24
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +0 -9
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index-browser.js +0 -11
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index.js +0 -8
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +0 -41
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +0 -14
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +0 -29
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +0 -105
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +0 -41
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +0 -70
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +0 -46
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +0 -232
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js +0 -342
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js +0 -63
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +0 -13
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/version.js +0 -10
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js +0 -44
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js +0 -196
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +0 -2887
- package/.next/standalone/node_modules/puppeteer-core/package.json +0 -169
- package/.next/standalone/node_modules/semver/functions/clean.js +0 -8
- package/.next/standalone/node_modules/semver/functions/compare-build.js +0 -9
- package/.next/standalone/node_modules/semver/functions/compare-loose.js +0 -5
- package/.next/standalone/node_modules/semver/functions/diff.js +0 -60
- package/.next/standalone/node_modules/semver/functions/inc.js +0 -21
- package/.next/standalone/node_modules/semver/functions/major.js +0 -5
- package/.next/standalone/node_modules/semver/functions/minor.js +0 -5
- package/.next/standalone/node_modules/semver/functions/patch.js +0 -5
- package/.next/standalone/node_modules/semver/functions/prerelease.js +0 -8
- package/.next/standalone/node_modules/semver/functions/rcompare.js +0 -5
- package/.next/standalone/node_modules/semver/functions/rsort.js +0 -5
- package/.next/standalone/node_modules/semver/functions/sort.js +0 -5
- package/.next/standalone/node_modules/semver/functions/valid.js +0 -8
- package/.next/standalone/node_modules/semver/index.js +0 -91
- package/.next/standalone/node_modules/semver/ranges/gtr.js +0 -6
- package/.next/standalone/node_modules/semver/ranges/intersects.js +0 -9
- package/.next/standalone/node_modules/semver/ranges/ltr.js +0 -6
- package/.next/standalone/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/.next/standalone/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/.next/standalone/node_modules/semver/ranges/min-version.js +0 -63
- package/.next/standalone/node_modules/semver/ranges/outside.js +0 -82
- package/.next/standalone/node_modules/semver/ranges/simplify.js +0 -49
- package/.next/standalone/node_modules/semver/ranges/subset.js +0 -249
- package/.next/standalone/node_modules/semver/ranges/to-comparators.js +0 -10
- package/.next/standalone/node_modules/semver/ranges/valid.js +0 -13
- package/.next/standalone/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
- package/.next/standalone/node_modules/smart-buffer/build/utils.js +0 -108
- package/.next/standalone/node_modules/smart-buffer/package.json +0 -79
- package/.next/standalone/node_modules/socks/build/client/socksclient.js +0 -793
- package/.next/standalone/node_modules/socks/build/common/constants.js +0 -108
- package/.next/standalone/node_modules/socks/build/common/helpers.js +0 -167
- package/.next/standalone/node_modules/socks/build/common/receivebuffer.js +0 -43
- package/.next/standalone/node_modules/socks/build/common/util.js +0 -25
- package/.next/standalone/node_modules/socks/build/index.js +0 -18
- package/.next/standalone/node_modules/socks/package.json +0 -58
- package/.next/standalone/node_modules/socks-proxy-agent/dist/index.js +0 -195
- package/.next/standalone/node_modules/socks-proxy-agent/package.json +0 -142
- package/.next/standalone/node_modules/source-map/lib/array-set.js +0 -121
- package/.next/standalone/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/.next/standalone/node_modules/source-map/lib/base64.js +0 -67
- package/.next/standalone/node_modules/source-map/lib/binary-search.js +0 -111
- package/.next/standalone/node_modules/source-map/lib/mapping-list.js +0 -79
- package/.next/standalone/node_modules/source-map/lib/quick-sort.js +0 -114
- package/.next/standalone/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/.next/standalone/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/.next/standalone/node_modules/source-map/lib/source-node.js +0 -413
- package/.next/standalone/node_modules/source-map/lib/util.js +0 -488
- package/.next/standalone/node_modules/source-map/package.json +0 -73
- package/.next/standalone/node_modules/source-map/source-map.js +0 -8
- package/.next/standalone/node_modules/streamx/index.js +0 -1184
- package/.next/standalone/node_modules/streamx/package.json +0 -34
- package/.next/standalone/node_modules/supports-color/index.js +0 -135
- package/.next/standalone/node_modules/supports-color/package.json +0 -53
- package/.next/standalone/node_modules/tar-stream/constants.js +0 -14
- package/.next/standalone/node_modules/tar-stream/extract.js +0 -406
- package/.next/standalone/node_modules/tar-stream/headers.js +0 -321
- package/.next/standalone/node_modules/tar-stream/index.js +0 -2
- package/.next/standalone/node_modules/tar-stream/pack.js +0 -287
- package/.next/standalone/node_modules/tar-stream/package.json +0 -42
- package/.next/standalone/node_modules/text-decoder/index.js +0 -64
- package/.next/standalone/node_modules/text-decoder/lib/pass-through-decoder.js +0 -19
- package/.next/standalone/node_modules/text-decoder/lib/utf8-decoder.js +0 -185
- package/.next/standalone/node_modules/text-decoder/package.json +0 -39
- package/.next/standalone/node_modules/tslib/package.json +0 -47
- package/.next/standalone/node_modules/tslib/tslib.js +0 -484
- package/.next/standalone/node_modules/wrappy/package.json +0 -29
- package/.next/standalone/node_modules/wrappy/wrappy.js +0 -33
- package/.next/standalone/node_modules/ws/lib/buffer-util.js +0 -131
- package/.next/standalone/node_modules/ws/lib/constants.js +0 -19
- package/.next/standalone/node_modules/ws/lib/event-target.js +0 -292
- package/.next/standalone/node_modules/ws/lib/extension.js +0 -203
- package/.next/standalone/node_modules/ws/lib/limiter.js +0 -55
- package/.next/standalone/node_modules/ws/lib/permessage-deflate.js +0 -528
- package/.next/standalone/node_modules/ws/lib/receiver.js +0 -706
- package/.next/standalone/node_modules/ws/lib/sender.js +0 -602
- package/.next/standalone/node_modules/ws/lib/stream.js +0 -161
- package/.next/standalone/node_modules/ws/lib/subprotocol.js +0 -62
- package/.next/standalone/node_modules/ws/lib/validation.js +0 -152
- package/.next/standalone/node_modules/ws/lib/websocket-server.js +0 -554
- package/.next/standalone/node_modules/ws/lib/websocket.js +0 -1393
- package/.next/standalone/node_modules/ws/package.json +0 -69
- package/.next/standalone/node_modules/ws/wrapper.mjs +0 -8
- package/.next/standalone/node_modules/y18n/build/lib/index.js +0 -174
- package/.next/standalone/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
- package/.next/standalone/node_modules/y18n/index.mjs +0 -8
- package/.next/standalone/node_modules/y18n/package.json +0 -70
- package/.next/standalone/node_modules/yargs/build/lib/argsert.js +0 -62
- package/.next/standalone/node_modules/yargs/build/lib/command.js +0 -449
- package/.next/standalone/node_modules/yargs/build/lib/completion-templates.js +0 -48
- package/.next/standalone/node_modules/yargs/build/lib/completion.js +0 -243
- package/.next/standalone/node_modules/yargs/build/lib/middleware.js +0 -88
- package/.next/standalone/node_modules/yargs/build/lib/parse-command.js +0 -32
- package/.next/standalone/node_modules/yargs/build/lib/typings/common-types.js +0 -9
- package/.next/standalone/node_modules/yargs/build/lib/usage.js +0 -584
- package/.next/standalone/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
- package/.next/standalone/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
- package/.next/standalone/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
- package/.next/standalone/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
- package/.next/standalone/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
- package/.next/standalone/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
- package/.next/standalone/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
- package/.next/standalone/node_modules/yargs/build/lib/utils/which-module.js +0 -10
- package/.next/standalone/node_modules/yargs/build/lib/validation.js +0 -305
- package/.next/standalone/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
- package/.next/standalone/node_modules/yargs/build/lib/yerror.js +0 -9
- package/.next/standalone/node_modules/yargs/helpers/helpers.mjs +0 -10
- package/.next/standalone/node_modules/yargs/index.mjs +0 -8
- package/.next/standalone/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
- package/.next/standalone/node_modules/yargs/package.json +0 -123
- package/.next/standalone/node_modules/yargs-parser/build/lib/index.js +0 -62
- package/.next/standalone/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
- package/.next/standalone/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
- package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
- package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
- package/.next/standalone/node_modules/yargs-parser/package.json +0 -92
- package/.next/standalone/node_modules/yauzl/LICENSE +0 -21
- package/.next/standalone/node_modules/yauzl/README.md +0 -658
- package/.next/standalone/node_modules/yauzl/index.js +0 -796
- package/.next/standalone/node_modules/yauzl/package.json +0 -40
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/comparator.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/range.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/semver.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/cmp.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/coerce.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/compare.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/eq.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gt.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gte.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lt.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lte.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/neq.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/parse.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/satisfies.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/constants.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/debug.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/identifiers.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/lrucache.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/parse-options.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/re.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/package.json +0 -0
- /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_buildManifest.js +0 -0
- /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_ssgManifest.js +0 -0
|
@@ -1,1011 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google Inc.
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
7
|
-
if (value !== null && value !== void 0) {
|
|
8
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
9
|
-
var dispose, inner;
|
|
10
|
-
if (async) {
|
|
11
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
12
|
-
dispose = value[Symbol.asyncDispose];
|
|
13
|
-
}
|
|
14
|
-
if (dispose === void 0) {
|
|
15
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
16
|
-
dispose = value[Symbol.dispose];
|
|
17
|
-
if (async) inner = dispose;
|
|
18
|
-
}
|
|
19
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
20
|
-
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
21
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
22
|
-
}
|
|
23
|
-
else if (async) {
|
|
24
|
-
env.stack.push({ async: true });
|
|
25
|
-
}
|
|
26
|
-
return value;
|
|
27
|
-
};
|
|
28
|
-
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
29
|
-
return function (env) {
|
|
30
|
-
function fail(e) {
|
|
31
|
-
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
32
|
-
env.hasError = true;
|
|
33
|
-
}
|
|
34
|
-
var r, s = 0;
|
|
35
|
-
function next() {
|
|
36
|
-
while (r = env.stack.pop()) {
|
|
37
|
-
try {
|
|
38
|
-
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
39
|
-
if (r.dispose) {
|
|
40
|
-
var result = r.dispose.call(r.value);
|
|
41
|
-
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
42
|
-
}
|
|
43
|
-
else s |= 1;
|
|
44
|
-
}
|
|
45
|
-
catch (e) {
|
|
46
|
-
fail(e);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
50
|
-
if (env.hasError) throw env.error;
|
|
51
|
-
}
|
|
52
|
-
return next();
|
|
53
|
-
};
|
|
54
|
-
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
55
|
-
var e = new Error(message);
|
|
56
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
57
|
-
});
|
|
58
|
-
import { firstValueFrom, from, raceWith } from '../../third_party/rxjs/rxjs.js';
|
|
59
|
-
import { CDPSessionEvent } from '../api/CDPSession.js';
|
|
60
|
-
import { Page, } from '../api/Page.js';
|
|
61
|
-
import { ConsoleMessage, } from '../common/ConsoleMessage.js';
|
|
62
|
-
import { TargetCloseError } from '../common/Errors.js';
|
|
63
|
-
import { EventEmitter } from '../common/EventEmitter.js';
|
|
64
|
-
import { FileChooser } from '../common/FileChooser.js';
|
|
65
|
-
import { NetworkManagerEvent } from '../common/NetworkManagerEvents.js';
|
|
66
|
-
import { debugError, evaluationString, getReadableAsTypedArray, getReadableFromProtocolStream, parsePDFOptions, timeout, validateDialogType, } from '../common/util.js';
|
|
67
|
-
import { environment } from '../environment.js';
|
|
68
|
-
import { assert } from '../util/assert.js';
|
|
69
|
-
import { Deferred } from '../util/Deferred.js';
|
|
70
|
-
import { AsyncDisposableStack } from '../util/disposable.js';
|
|
71
|
-
import { isErrorLike } from '../util/ErrorLike.js';
|
|
72
|
-
import { Binding } from './Binding.js';
|
|
73
|
-
import { CdpBluetoothEmulation } from './BluetoothEmulation.js';
|
|
74
|
-
import { CdpCDPSession } from './CdpSession.js';
|
|
75
|
-
import { isTargetClosedError } from './Connection.js';
|
|
76
|
-
import { Coverage } from './Coverage.js';
|
|
77
|
-
import { CdpDialog } from './Dialog.js';
|
|
78
|
-
import { EmulationManager } from './EmulationManager.js';
|
|
79
|
-
import { FrameManager } from './FrameManager.js';
|
|
80
|
-
import { FrameManagerEvent } from './FrameManagerEvents.js';
|
|
81
|
-
import { CdpKeyboard, CdpMouse, CdpTouchscreen } from './Input.js';
|
|
82
|
-
import { MAIN_WORLD } from './IsolatedWorlds.js';
|
|
83
|
-
import { releaseObject } from './JSHandle.js';
|
|
84
|
-
import { Tracing } from './Tracing.js';
|
|
85
|
-
import { createClientError, pageBindingInitString, valueFromJSHandle, } from './utils.js';
|
|
86
|
-
import { CdpWebWorker } from './WebWorker.js';
|
|
87
|
-
function convertConsoleMessageLevel(method) {
|
|
88
|
-
switch (method) {
|
|
89
|
-
case 'warning':
|
|
90
|
-
return 'warn';
|
|
91
|
-
default:
|
|
92
|
-
return method;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
export function convertSameSiteFromPuppeteerToCdp(sameSite) {
|
|
99
|
-
switch (sameSite) {
|
|
100
|
-
case 'Strict':
|
|
101
|
-
case 'Lax':
|
|
102
|
-
case 'None':
|
|
103
|
-
return sameSite;
|
|
104
|
-
default:
|
|
105
|
-
return undefined;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
export class CdpPage extends Page {
|
|
112
|
-
static async _create(client, target, defaultViewport) {
|
|
113
|
-
const page = new CdpPage(client, target);
|
|
114
|
-
await page.#initialize();
|
|
115
|
-
if (defaultViewport) {
|
|
116
|
-
try {
|
|
117
|
-
await page.setViewport(defaultViewport);
|
|
118
|
-
}
|
|
119
|
-
catch (err) {
|
|
120
|
-
if (isErrorLike(err) && isTargetClosedError(err)) {
|
|
121
|
-
debugError(err);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
throw err;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return page;
|
|
129
|
-
}
|
|
130
|
-
#closed = false;
|
|
131
|
-
#targetManager;
|
|
132
|
-
#cdpBluetoothEmulation;
|
|
133
|
-
#primaryTargetClient;
|
|
134
|
-
#primaryTarget;
|
|
135
|
-
#tabTargetClient;
|
|
136
|
-
#tabTarget;
|
|
137
|
-
#keyboard;
|
|
138
|
-
#mouse;
|
|
139
|
-
#touchscreen;
|
|
140
|
-
#frameManager;
|
|
141
|
-
#emulationManager;
|
|
142
|
-
#tracing;
|
|
143
|
-
#bindings = new Map();
|
|
144
|
-
#exposedFunctions = new Map();
|
|
145
|
-
#coverage;
|
|
146
|
-
#viewport;
|
|
147
|
-
#workers = new Map();
|
|
148
|
-
#fileChooserDeferreds = new Set();
|
|
149
|
-
#sessionCloseDeferred = Deferred.create();
|
|
150
|
-
#serviceWorkerBypassed = false;
|
|
151
|
-
#userDragInterceptionEnabled = false;
|
|
152
|
-
constructor(client, target) {
|
|
153
|
-
super();
|
|
154
|
-
this.#primaryTargetClient = client;
|
|
155
|
-
this.#tabTargetClient = client.parentSession();
|
|
156
|
-
assert(this.#tabTargetClient, 'Tab target session is not defined.');
|
|
157
|
-
this.#tabTarget = this.#tabTargetClient.target();
|
|
158
|
-
assert(this.#tabTarget, 'Tab target is not defined.');
|
|
159
|
-
this._tabId = this.#tabTarget._getTargetInfo().targetId;
|
|
160
|
-
this.#primaryTarget = target;
|
|
161
|
-
this.#targetManager = target._targetManager();
|
|
162
|
-
this.#keyboard = new CdpKeyboard(client);
|
|
163
|
-
this.#mouse = new CdpMouse(client, this.#keyboard);
|
|
164
|
-
this.#touchscreen = new CdpTouchscreen(client, this.#keyboard);
|
|
165
|
-
this.#frameManager = new FrameManager(client, this, this._timeoutSettings);
|
|
166
|
-
this.#emulationManager = new EmulationManager(client);
|
|
167
|
-
this.#tracing = new Tracing(client);
|
|
168
|
-
this.#coverage = new Coverage(client);
|
|
169
|
-
this.#viewport = null;
|
|
170
|
-
// Use browser context's connection, as current Bluetooth emulation in Chromium is
|
|
171
|
-
// implemented on the browser context level, and not tight to the specific tab.
|
|
172
|
-
this.#cdpBluetoothEmulation = new CdpBluetoothEmulation(this.#primaryTargetClient.connection());
|
|
173
|
-
const frameManagerEmitter = new EventEmitter(this.#frameManager);
|
|
174
|
-
frameManagerEmitter.on(FrameManagerEvent.FrameAttached, frame => {
|
|
175
|
-
this.emit("frameattached" /* PageEvent.FrameAttached */, frame);
|
|
176
|
-
});
|
|
177
|
-
frameManagerEmitter.on(FrameManagerEvent.FrameDetached, frame => {
|
|
178
|
-
this.emit("framedetached" /* PageEvent.FrameDetached */, frame);
|
|
179
|
-
});
|
|
180
|
-
frameManagerEmitter.on(FrameManagerEvent.FrameNavigated, frame => {
|
|
181
|
-
this.emit("framenavigated" /* PageEvent.FrameNavigated */, frame);
|
|
182
|
-
});
|
|
183
|
-
frameManagerEmitter.on(FrameManagerEvent.ConsoleApiCalled, ([world, event]) => {
|
|
184
|
-
this.#onConsoleAPI(world, event);
|
|
185
|
-
});
|
|
186
|
-
frameManagerEmitter.on(FrameManagerEvent.BindingCalled, ([world, event]) => {
|
|
187
|
-
void this.#onBindingCalled(world, event);
|
|
188
|
-
});
|
|
189
|
-
const networkManagerEmitter = new EventEmitter(this.#frameManager.networkManager);
|
|
190
|
-
networkManagerEmitter.on(NetworkManagerEvent.Request, request => {
|
|
191
|
-
this.emit("request" /* PageEvent.Request */, request);
|
|
192
|
-
});
|
|
193
|
-
networkManagerEmitter.on(NetworkManagerEvent.RequestServedFromCache, request => {
|
|
194
|
-
this.emit("requestservedfromcache" /* PageEvent.RequestServedFromCache */, request);
|
|
195
|
-
});
|
|
196
|
-
networkManagerEmitter.on(NetworkManagerEvent.Response, response => {
|
|
197
|
-
this.emit("response" /* PageEvent.Response */, response);
|
|
198
|
-
});
|
|
199
|
-
networkManagerEmitter.on(NetworkManagerEvent.RequestFailed, request => {
|
|
200
|
-
this.emit("requestfailed" /* PageEvent.RequestFailed */, request);
|
|
201
|
-
});
|
|
202
|
-
networkManagerEmitter.on(NetworkManagerEvent.RequestFinished, request => {
|
|
203
|
-
this.emit("requestfinished" /* PageEvent.RequestFinished */, request);
|
|
204
|
-
});
|
|
205
|
-
this.#tabTargetClient.on(CDPSessionEvent.Swapped, this.#onActivation.bind(this));
|
|
206
|
-
this.#tabTargetClient.on(CDPSessionEvent.Ready, this.#onSecondaryTarget.bind(this));
|
|
207
|
-
this.#targetManager.on("targetGone" /* TargetManagerEvent.TargetGone */, this.#onDetachedFromTarget);
|
|
208
|
-
this.#tabTarget._isClosedDeferred
|
|
209
|
-
.valueOrThrow()
|
|
210
|
-
.then(() => {
|
|
211
|
-
this.#targetManager.off("targetGone" /* TargetManagerEvent.TargetGone */, this.#onDetachedFromTarget);
|
|
212
|
-
this.emit("close" /* PageEvent.Close */, undefined);
|
|
213
|
-
this.#closed = true;
|
|
214
|
-
})
|
|
215
|
-
.catch(debugError);
|
|
216
|
-
this.#setupPrimaryTargetListeners();
|
|
217
|
-
this.#attachExistingTargets();
|
|
218
|
-
}
|
|
219
|
-
#attachExistingTargets() {
|
|
220
|
-
const queue = [];
|
|
221
|
-
for (const childTarget of this.#targetManager.getChildTargets(this.#primaryTarget)) {
|
|
222
|
-
queue.push(childTarget);
|
|
223
|
-
}
|
|
224
|
-
let idx = 0;
|
|
225
|
-
while (idx < queue.length) {
|
|
226
|
-
const next = queue[idx];
|
|
227
|
-
idx++;
|
|
228
|
-
const session = next._session();
|
|
229
|
-
if (session) {
|
|
230
|
-
this.#onAttachedToTarget(session);
|
|
231
|
-
}
|
|
232
|
-
for (const childTarget of this.#targetManager.getChildTargets(next)) {
|
|
233
|
-
queue.push(childTarget);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
async #onActivation(newSession) {
|
|
238
|
-
// TODO: Remove assert once we have separate Event type for CdpCDPSession.
|
|
239
|
-
assert(newSession instanceof CdpCDPSession, 'CDPSession is not instance of CdpCDPSession');
|
|
240
|
-
this.#primaryTargetClient = newSession;
|
|
241
|
-
this.#primaryTarget = newSession.target();
|
|
242
|
-
assert(this.#primaryTarget, 'Missing target on swap');
|
|
243
|
-
this.#keyboard.updateClient(newSession);
|
|
244
|
-
this.#mouse.updateClient(newSession);
|
|
245
|
-
this.#touchscreen.updateClient(newSession);
|
|
246
|
-
this.#emulationManager.updateClient(newSession);
|
|
247
|
-
this.#tracing.updateClient(newSession);
|
|
248
|
-
this.#coverage.updateClient(newSession);
|
|
249
|
-
await this.#frameManager.swapFrameTree(newSession);
|
|
250
|
-
this.#setupPrimaryTargetListeners();
|
|
251
|
-
}
|
|
252
|
-
async #onSecondaryTarget(session) {
|
|
253
|
-
assert(session instanceof CdpCDPSession);
|
|
254
|
-
if (session.target()._subtype() !== 'prerender') {
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
this.#frameManager.registerSpeculativeSession(session).catch(debugError);
|
|
258
|
-
this.#emulationManager
|
|
259
|
-
.registerSpeculativeSession(session)
|
|
260
|
-
.catch(debugError);
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Sets up listeners for the primary target. The primary target can change
|
|
264
|
-
* during a navigation to a prerended page.
|
|
265
|
-
*/
|
|
266
|
-
#setupPrimaryTargetListeners() {
|
|
267
|
-
const clientEmitter = new EventEmitter(this.#primaryTargetClient);
|
|
268
|
-
clientEmitter.on(CDPSessionEvent.Ready, this.#onAttachedToTarget);
|
|
269
|
-
clientEmitter.on(CDPSessionEvent.Disconnected, () => {
|
|
270
|
-
this.#sessionCloseDeferred.reject(new TargetCloseError('Target closed'));
|
|
271
|
-
});
|
|
272
|
-
clientEmitter.on('Page.domContentEventFired', () => {
|
|
273
|
-
this.emit("domcontentloaded" /* PageEvent.DOMContentLoaded */, undefined);
|
|
274
|
-
});
|
|
275
|
-
clientEmitter.on('Page.loadEventFired', () => {
|
|
276
|
-
this.emit("load" /* PageEvent.Load */, undefined);
|
|
277
|
-
});
|
|
278
|
-
clientEmitter.on('Page.javascriptDialogOpening', this.#onDialog.bind(this));
|
|
279
|
-
clientEmitter.on('Runtime.exceptionThrown', this.#handleException.bind(this));
|
|
280
|
-
clientEmitter.on('Inspector.targetCrashed', this.#onTargetCrashed.bind(this));
|
|
281
|
-
clientEmitter.on('Performance.metrics', this.#emitMetrics.bind(this));
|
|
282
|
-
clientEmitter.on('Log.entryAdded', this.#onLogEntryAdded.bind(this));
|
|
283
|
-
clientEmitter.on('Page.fileChooserOpened', this.#onFileChooser.bind(this));
|
|
284
|
-
}
|
|
285
|
-
#onDetachedFromTarget = (target) => {
|
|
286
|
-
const sessionId = target._session()?.id();
|
|
287
|
-
const worker = this.#workers.get(sessionId);
|
|
288
|
-
if (!worker) {
|
|
289
|
-
return;
|
|
290
|
-
}
|
|
291
|
-
this.#workers.delete(sessionId);
|
|
292
|
-
this.emit("workerdestroyed" /* PageEvent.WorkerDestroyed */, worker);
|
|
293
|
-
};
|
|
294
|
-
#onAttachedToTarget = (session) => {
|
|
295
|
-
assert(session instanceof CdpCDPSession);
|
|
296
|
-
this.#frameManager.onAttachedToTarget(session.target());
|
|
297
|
-
if (session.target()._getTargetInfo().type === 'worker') {
|
|
298
|
-
const worker = new CdpWebWorker(session, session.target().url(), session.target()._targetId, session.target().type(), this.#onConsoleAPI.bind(this), this.#handleException.bind(this), this.#frameManager.networkManager);
|
|
299
|
-
this.#workers.set(session.id(), worker);
|
|
300
|
-
this.emit("workercreated" /* PageEvent.WorkerCreated */, worker);
|
|
301
|
-
}
|
|
302
|
-
session.on(CDPSessionEvent.Ready, this.#onAttachedToTarget);
|
|
303
|
-
};
|
|
304
|
-
async #initialize() {
|
|
305
|
-
try {
|
|
306
|
-
await Promise.all([
|
|
307
|
-
this.#frameManager.initialize(this.#primaryTargetClient),
|
|
308
|
-
this.#primaryTargetClient.send('Performance.enable'),
|
|
309
|
-
this.#primaryTargetClient.send('Log.enable'),
|
|
310
|
-
]);
|
|
311
|
-
}
|
|
312
|
-
catch (err) {
|
|
313
|
-
if (isErrorLike(err) && isTargetClosedError(err)) {
|
|
314
|
-
debugError(err);
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
throw err;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
async resize(params) {
|
|
322
|
-
const windowId = await this.windowId();
|
|
323
|
-
await this.#primaryTargetClient.send('Browser.setContentsSize', {
|
|
324
|
-
windowId: Number(windowId),
|
|
325
|
-
width: params.contentWidth,
|
|
326
|
-
height: params.contentHeight,
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
async windowId() {
|
|
330
|
-
const { windowId } = await this.#primaryTargetClient.send('Browser.getWindowForTarget');
|
|
331
|
-
return windowId.toString();
|
|
332
|
-
}
|
|
333
|
-
async #onFileChooser(event) {
|
|
334
|
-
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
335
|
-
try {
|
|
336
|
-
if (!this.#fileChooserDeferreds.size) {
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
339
|
-
const frame = this.#frameManager.frame(event.frameId);
|
|
340
|
-
assert(frame, 'This should never happen.');
|
|
341
|
-
// This is guaranteed to be an HTMLInputElement handle by the event.
|
|
342
|
-
const handle = __addDisposableResource(env_1, (await frame.worlds[MAIN_WORLD].adoptBackendNode(event.backendNodeId)), false);
|
|
343
|
-
const fileChooser = new FileChooser(handle.move(), event.mode !== 'selectSingle');
|
|
344
|
-
for (const promise of this.#fileChooserDeferreds) {
|
|
345
|
-
promise.resolve(fileChooser);
|
|
346
|
-
}
|
|
347
|
-
this.#fileChooserDeferreds.clear();
|
|
348
|
-
}
|
|
349
|
-
catch (e_1) {
|
|
350
|
-
env_1.error = e_1;
|
|
351
|
-
env_1.hasError = true;
|
|
352
|
-
}
|
|
353
|
-
finally {
|
|
354
|
-
__disposeResources(env_1);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
_client() {
|
|
358
|
-
return this.#primaryTargetClient;
|
|
359
|
-
}
|
|
360
|
-
isServiceWorkerBypassed() {
|
|
361
|
-
return this.#serviceWorkerBypassed;
|
|
362
|
-
}
|
|
363
|
-
isDragInterceptionEnabled() {
|
|
364
|
-
return this.#userDragInterceptionEnabled;
|
|
365
|
-
}
|
|
366
|
-
isJavaScriptEnabled() {
|
|
367
|
-
return this.#emulationManager.javascriptEnabled;
|
|
368
|
-
}
|
|
369
|
-
async openDevTools() {
|
|
370
|
-
const pageTargetId = this.target()._targetId;
|
|
371
|
-
const browser = this.browser();
|
|
372
|
-
const devtoolsPage = await browser._createDevToolsPage(pageTargetId);
|
|
373
|
-
return devtoolsPage;
|
|
374
|
-
}
|
|
375
|
-
async hasDevTools() {
|
|
376
|
-
const browser = this.browser();
|
|
377
|
-
const targetId = await browser._hasDevToolsTarget(this.target()._targetId);
|
|
378
|
-
return Boolean(targetId);
|
|
379
|
-
}
|
|
380
|
-
async waitForFileChooser(options = {}) {
|
|
381
|
-
const needsEnable = this.#fileChooserDeferreds.size === 0;
|
|
382
|
-
const { timeout = this._timeoutSettings.timeout() } = options;
|
|
383
|
-
const deferred = Deferred.create({
|
|
384
|
-
message: `Waiting for \`FileChooser\` failed: ${timeout}ms exceeded`,
|
|
385
|
-
timeout,
|
|
386
|
-
});
|
|
387
|
-
if (options.signal) {
|
|
388
|
-
options.signal.addEventListener('abort', () => {
|
|
389
|
-
deferred.reject(options.signal?.reason);
|
|
390
|
-
}, { once: true });
|
|
391
|
-
}
|
|
392
|
-
this.#fileChooserDeferreds.add(deferred);
|
|
393
|
-
let enablePromise;
|
|
394
|
-
if (needsEnable) {
|
|
395
|
-
enablePromise = this.#primaryTargetClient.send('Page.setInterceptFileChooserDialog', {
|
|
396
|
-
enabled: true,
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
try {
|
|
400
|
-
const [result] = await Promise.all([
|
|
401
|
-
deferred.valueOrThrow(),
|
|
402
|
-
enablePromise,
|
|
403
|
-
]);
|
|
404
|
-
return result;
|
|
405
|
-
}
|
|
406
|
-
catch (error) {
|
|
407
|
-
this.#fileChooserDeferreds.delete(deferred);
|
|
408
|
-
throw error;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
async setGeolocation(options) {
|
|
412
|
-
return await this.#emulationManager.setGeolocation(options);
|
|
413
|
-
}
|
|
414
|
-
target() {
|
|
415
|
-
return this.#primaryTarget;
|
|
416
|
-
}
|
|
417
|
-
browser() {
|
|
418
|
-
return this.#primaryTarget.browser();
|
|
419
|
-
}
|
|
420
|
-
browserContext() {
|
|
421
|
-
return this.#primaryTarget.browserContext();
|
|
422
|
-
}
|
|
423
|
-
#onTargetCrashed() {
|
|
424
|
-
this.emit("error" /* PageEvent.Error */, new Error('Page crashed!'));
|
|
425
|
-
}
|
|
426
|
-
#onLogEntryAdded(event) {
|
|
427
|
-
const { level, text, args, source, url, lineNumber, stackTrace } = event.entry;
|
|
428
|
-
if (args) {
|
|
429
|
-
args.map(arg => {
|
|
430
|
-
void releaseObject(this.#primaryTargetClient, arg);
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
if (source !== 'worker') {
|
|
434
|
-
this.emit("console" /* PageEvent.Console */, new ConsoleMessage(convertConsoleMessageLevel(level), text, [], [{ url, lineNumber }], undefined, stackTrace, this.#primaryTarget._targetId));
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
mainFrame() {
|
|
438
|
-
return this.#frameManager.mainFrame();
|
|
439
|
-
}
|
|
440
|
-
get keyboard() {
|
|
441
|
-
return this.#keyboard;
|
|
442
|
-
}
|
|
443
|
-
get touchscreen() {
|
|
444
|
-
return this.#touchscreen;
|
|
445
|
-
}
|
|
446
|
-
get coverage() {
|
|
447
|
-
return this.#coverage;
|
|
448
|
-
}
|
|
449
|
-
get tracing() {
|
|
450
|
-
return this.#tracing;
|
|
451
|
-
}
|
|
452
|
-
frames() {
|
|
453
|
-
return this.#frameManager.frames();
|
|
454
|
-
}
|
|
455
|
-
workers() {
|
|
456
|
-
return Array.from(this.#workers.values());
|
|
457
|
-
}
|
|
458
|
-
async setRequestInterception(value) {
|
|
459
|
-
return await this.#frameManager.networkManager.setRequestInterception(value);
|
|
460
|
-
}
|
|
461
|
-
async setBypassServiceWorker(bypass) {
|
|
462
|
-
this.#serviceWorkerBypassed = bypass;
|
|
463
|
-
return await this.#primaryTargetClient.send('Network.setBypassServiceWorker', { bypass });
|
|
464
|
-
}
|
|
465
|
-
async setDragInterception(enabled) {
|
|
466
|
-
this.#userDragInterceptionEnabled = enabled;
|
|
467
|
-
return await this.#primaryTargetClient.send('Input.setInterceptDrags', {
|
|
468
|
-
enabled,
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
async setOfflineMode(enabled) {
|
|
472
|
-
return await this.#frameManager.networkManager.setOfflineMode(enabled);
|
|
473
|
-
}
|
|
474
|
-
async emulateNetworkConditions(networkConditions) {
|
|
475
|
-
return await this.#frameManager.networkManager.emulateNetworkConditions(networkConditions);
|
|
476
|
-
}
|
|
477
|
-
async emulateFocusedPage(enabled) {
|
|
478
|
-
return await this.#emulationManager.emulateFocus(enabled);
|
|
479
|
-
}
|
|
480
|
-
setDefaultNavigationTimeout(timeout) {
|
|
481
|
-
this._timeoutSettings.setDefaultNavigationTimeout(timeout);
|
|
482
|
-
}
|
|
483
|
-
setDefaultTimeout(timeout) {
|
|
484
|
-
this._timeoutSettings.setDefaultTimeout(timeout);
|
|
485
|
-
}
|
|
486
|
-
getDefaultTimeout() {
|
|
487
|
-
return this._timeoutSettings.timeout();
|
|
488
|
-
}
|
|
489
|
-
getDefaultNavigationTimeout() {
|
|
490
|
-
return this._timeoutSettings.navigationTimeout();
|
|
491
|
-
}
|
|
492
|
-
async queryObjects(prototypeHandle) {
|
|
493
|
-
assert(!prototypeHandle.disposed, 'Prototype JSHandle is disposed!');
|
|
494
|
-
assert(prototypeHandle.id, 'Prototype JSHandle must not be referencing primitive value');
|
|
495
|
-
const response = await this.mainFrame().client.send('Runtime.queryObjects', {
|
|
496
|
-
prototypeObjectId: prototypeHandle.id,
|
|
497
|
-
});
|
|
498
|
-
return this.mainFrame()
|
|
499
|
-
.mainRealm()
|
|
500
|
-
.createCdpHandle(response.objects);
|
|
501
|
-
}
|
|
502
|
-
async cookies(...urls) {
|
|
503
|
-
const originalCookies = (await this.#primaryTargetClient.send('Network.getCookies', {
|
|
504
|
-
urls: urls.length ? urls : [this.url()],
|
|
505
|
-
})).cookies;
|
|
506
|
-
const unsupportedCookieAttributes = ['sourcePort'];
|
|
507
|
-
const filterUnsupportedAttributes = (cookie) => {
|
|
508
|
-
for (const attr of unsupportedCookieAttributes) {
|
|
509
|
-
delete cookie[attr];
|
|
510
|
-
}
|
|
511
|
-
return cookie;
|
|
512
|
-
};
|
|
513
|
-
return originalCookies.map(filterUnsupportedAttributes).map(cookie => {
|
|
514
|
-
return {
|
|
515
|
-
...cookie,
|
|
516
|
-
// TODO: a breaking change is needed in Puppeteer types to support other
|
|
517
|
-
// partition keys.
|
|
518
|
-
partitionKey: cookie.partitionKey
|
|
519
|
-
? cookie.partitionKey.topLevelSite
|
|
520
|
-
: undefined,
|
|
521
|
-
// TODO: remove sameParty as it is removed from Chrome.
|
|
522
|
-
sameParty: false,
|
|
523
|
-
};
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
async deleteCookie(...cookies) {
|
|
527
|
-
const pageURL = this.url();
|
|
528
|
-
for (const cookie of cookies) {
|
|
529
|
-
const item = {
|
|
530
|
-
...cookie,
|
|
531
|
-
partitionKey: convertCookiesPartitionKeyFromPuppeteerToCdp(cookie.partitionKey),
|
|
532
|
-
};
|
|
533
|
-
if (!cookie.url && pageURL.startsWith('http')) {
|
|
534
|
-
item.url = pageURL;
|
|
535
|
-
}
|
|
536
|
-
await this.#primaryTargetClient.send('Network.deleteCookies', item);
|
|
537
|
-
if (pageURL.startsWith('http') && !item.partitionKey) {
|
|
538
|
-
const url = new URL(pageURL);
|
|
539
|
-
// Delete also cookies from the page's partition.
|
|
540
|
-
await this.#primaryTargetClient.send('Network.deleteCookies', {
|
|
541
|
-
...item,
|
|
542
|
-
partitionKey: {
|
|
543
|
-
topLevelSite: url.origin.replace(`:${url.port}`, ''),
|
|
544
|
-
hasCrossSiteAncestor: false,
|
|
545
|
-
},
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
async setCookie(...cookies) {
|
|
551
|
-
const pageURL = this.url();
|
|
552
|
-
const startsWithHTTP = pageURL.startsWith('http');
|
|
553
|
-
const items = cookies.map(cookie => {
|
|
554
|
-
const item = Object.assign({}, cookie);
|
|
555
|
-
if (!item.url && startsWithHTTP) {
|
|
556
|
-
item.url = pageURL;
|
|
557
|
-
}
|
|
558
|
-
assert(item.url !== 'about:blank', `Blank page can not have cookie "${item.name}"`);
|
|
559
|
-
assert(!String.prototype.startsWith.call(item.url || '', 'data:'), `Data URL page can not have cookie "${item.name}"`);
|
|
560
|
-
return item;
|
|
561
|
-
});
|
|
562
|
-
await this.deleteCookie(...items);
|
|
563
|
-
if (items.length) {
|
|
564
|
-
await this.#primaryTargetClient.send('Network.setCookies', {
|
|
565
|
-
cookies: items.map(cookieParam => {
|
|
566
|
-
return {
|
|
567
|
-
...cookieParam,
|
|
568
|
-
partitionKey: convertCookiesPartitionKeyFromPuppeteerToCdp(cookieParam.partitionKey),
|
|
569
|
-
sameSite: convertSameSiteFromPuppeteerToCdp(cookieParam.sameSite),
|
|
570
|
-
};
|
|
571
|
-
}),
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
async exposeFunction(name,
|
|
576
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
577
|
-
pptrFunction) {
|
|
578
|
-
if (this.#bindings.has(name)) {
|
|
579
|
-
throw new Error(`Failed to add page binding with name ${name}: window['${name}'] already exists!`);
|
|
580
|
-
}
|
|
581
|
-
const source = pageBindingInitString('exposedFun', name);
|
|
582
|
-
let binding;
|
|
583
|
-
switch (typeof pptrFunction) {
|
|
584
|
-
case 'function':
|
|
585
|
-
binding = new Binding(name, pptrFunction, source);
|
|
586
|
-
break;
|
|
587
|
-
default:
|
|
588
|
-
binding = new Binding(name, pptrFunction.default, source);
|
|
589
|
-
break;
|
|
590
|
-
}
|
|
591
|
-
this.#bindings.set(name, binding);
|
|
592
|
-
const [{ identifier }] = await Promise.all([
|
|
593
|
-
this.#frameManager.evaluateOnNewDocument(source),
|
|
594
|
-
this.#frameManager.addExposedFunctionBinding(binding),
|
|
595
|
-
]);
|
|
596
|
-
this.#exposedFunctions.set(name, identifier);
|
|
597
|
-
}
|
|
598
|
-
async removeExposedFunction(name) {
|
|
599
|
-
const exposedFunctionId = this.#exposedFunctions.get(name);
|
|
600
|
-
if (!exposedFunctionId) {
|
|
601
|
-
throw new Error(`Function with name "${name}" does not exist`);
|
|
602
|
-
}
|
|
603
|
-
// #bindings must be updated together with #exposedFunctions.
|
|
604
|
-
const binding = this.#bindings.get(name);
|
|
605
|
-
this.#exposedFunctions.delete(name);
|
|
606
|
-
this.#bindings.delete(name);
|
|
607
|
-
await Promise.all([
|
|
608
|
-
this.#frameManager.removeScriptToEvaluateOnNewDocument(exposedFunctionId),
|
|
609
|
-
this.#frameManager.removeExposedFunctionBinding(binding),
|
|
610
|
-
]);
|
|
611
|
-
}
|
|
612
|
-
async authenticate(credentials) {
|
|
613
|
-
return await this.#frameManager.networkManager.authenticate(credentials);
|
|
614
|
-
}
|
|
615
|
-
async setExtraHTTPHeaders(headers) {
|
|
616
|
-
return await this.#frameManager.networkManager.setExtraHTTPHeaders(headers);
|
|
617
|
-
}
|
|
618
|
-
async setUserAgent(userAgentOrOptions, userAgentMetadata) {
|
|
619
|
-
if (typeof userAgentOrOptions === 'string') {
|
|
620
|
-
return await this.#frameManager.networkManager.setUserAgent(userAgentOrOptions, userAgentMetadata);
|
|
621
|
-
}
|
|
622
|
-
else {
|
|
623
|
-
const userAgent = userAgentOrOptions.userAgent ?? (await this.browser().userAgent());
|
|
624
|
-
return await this.#frameManager.networkManager.setUserAgent(userAgent, userAgentOrOptions.userAgentMetadata, userAgentOrOptions.platform);
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
async metrics() {
|
|
628
|
-
const response = await this.#primaryTargetClient.send('Performance.getMetrics');
|
|
629
|
-
return this.#buildMetricsObject(response.metrics);
|
|
630
|
-
}
|
|
631
|
-
async captureHeapSnapshot(options) {
|
|
632
|
-
const { createWriteStream } = environment.value.fs;
|
|
633
|
-
const stream = createWriteStream(options.path);
|
|
634
|
-
const streamPromise = new Promise((resolve, reject) => {
|
|
635
|
-
stream.on('error', reject);
|
|
636
|
-
stream.on('finish', resolve);
|
|
637
|
-
});
|
|
638
|
-
const client = this.#primaryTargetClient;
|
|
639
|
-
await client.send('HeapProfiler.enable');
|
|
640
|
-
await client.send('HeapProfiler.collectGarbage');
|
|
641
|
-
const handler = (event) => {
|
|
642
|
-
stream.write(event.chunk);
|
|
643
|
-
};
|
|
644
|
-
client.on('HeapProfiler.addHeapSnapshotChunk', handler);
|
|
645
|
-
try {
|
|
646
|
-
await client.send('HeapProfiler.takeHeapSnapshot', {
|
|
647
|
-
reportProgress: false,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
finally {
|
|
651
|
-
client.off('HeapProfiler.addHeapSnapshotChunk', handler);
|
|
652
|
-
await client.send('HeapProfiler.disable');
|
|
653
|
-
}
|
|
654
|
-
stream.end();
|
|
655
|
-
await streamPromise;
|
|
656
|
-
}
|
|
657
|
-
#emitMetrics(event) {
|
|
658
|
-
this.emit("metrics" /* PageEvent.Metrics */, {
|
|
659
|
-
title: event.title,
|
|
660
|
-
metrics: this.#buildMetricsObject(event.metrics),
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
#buildMetricsObject(metrics) {
|
|
664
|
-
const result = {};
|
|
665
|
-
for (const metric of metrics || []) {
|
|
666
|
-
if (supportedMetrics.has(metric.name)) {
|
|
667
|
-
result[metric.name] = metric.value;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
return result;
|
|
671
|
-
}
|
|
672
|
-
#handleException(exception) {
|
|
673
|
-
this.emit("pageerror" /* PageEvent.PageError */, createClientError(exception.exceptionDetails));
|
|
674
|
-
}
|
|
675
|
-
#onConsoleAPI(world, event) {
|
|
676
|
-
const values = event.args.map(arg => {
|
|
677
|
-
return world.createCdpHandle(arg);
|
|
678
|
-
});
|
|
679
|
-
if (!this.listenerCount("console" /* PageEvent.Console */)) {
|
|
680
|
-
values.forEach(arg => {
|
|
681
|
-
return arg.dispose();
|
|
682
|
-
});
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
const textTokens = [];
|
|
686
|
-
// eslint-disable-next-line max-len -- The comment is long.
|
|
687
|
-
// eslint-disable-next-line @puppeteer/use-using -- These are not owned by this function.
|
|
688
|
-
for (const arg of values) {
|
|
689
|
-
textTokens.push(valueFromJSHandle(arg));
|
|
690
|
-
}
|
|
691
|
-
const stackTraceLocations = [];
|
|
692
|
-
if (event.stackTrace) {
|
|
693
|
-
for (const callFrame of event.stackTrace.callFrames) {
|
|
694
|
-
stackTraceLocations.push({
|
|
695
|
-
url: callFrame.url,
|
|
696
|
-
lineNumber: callFrame.lineNumber,
|
|
697
|
-
columnNumber: callFrame.columnNumber,
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
let targetId;
|
|
702
|
-
if (world.environment.client instanceof CdpCDPSession) {
|
|
703
|
-
targetId = world.environment.client.target()._targetId;
|
|
704
|
-
}
|
|
705
|
-
const message = new ConsoleMessage(convertConsoleMessageLevel(event.type), textTokens.join(' '), values, stackTraceLocations, undefined, event.stackTrace, targetId);
|
|
706
|
-
this.emit("console" /* PageEvent.Console */, message);
|
|
707
|
-
}
|
|
708
|
-
async #onBindingCalled(world, event) {
|
|
709
|
-
let payload;
|
|
710
|
-
try {
|
|
711
|
-
payload = JSON.parse(event.payload);
|
|
712
|
-
}
|
|
713
|
-
catch {
|
|
714
|
-
// The binding was either called by something in the page or it was
|
|
715
|
-
// called before our wrapper was initialized.
|
|
716
|
-
return;
|
|
717
|
-
}
|
|
718
|
-
const { type, name, seq, args, isTrivial } = payload;
|
|
719
|
-
if (type !== 'exposedFun') {
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
const context = world.context;
|
|
723
|
-
if (!context) {
|
|
724
|
-
return;
|
|
725
|
-
}
|
|
726
|
-
const binding = this.#bindings.get(name);
|
|
727
|
-
await binding?.run(context, seq, args, isTrivial);
|
|
728
|
-
}
|
|
729
|
-
#onDialog(event) {
|
|
730
|
-
const type = validateDialogType(event.type);
|
|
731
|
-
const dialog = new CdpDialog(this.#primaryTargetClient, type, event.message, event.defaultPrompt);
|
|
732
|
-
this.emit("dialog" /* PageEvent.Dialog */, dialog);
|
|
733
|
-
}
|
|
734
|
-
async reload(options) {
|
|
735
|
-
const [result] = await Promise.all([
|
|
736
|
-
this.waitForNavigation({
|
|
737
|
-
...options,
|
|
738
|
-
ignoreSameDocumentNavigation: true,
|
|
739
|
-
}),
|
|
740
|
-
this.#primaryTargetClient.send('Page.reload', {
|
|
741
|
-
ignoreCache: options?.ignoreCache ?? false,
|
|
742
|
-
}),
|
|
743
|
-
]);
|
|
744
|
-
return result;
|
|
745
|
-
}
|
|
746
|
-
async createCDPSession() {
|
|
747
|
-
return await this.target().createCDPSession();
|
|
748
|
-
}
|
|
749
|
-
async goBack(options = {}) {
|
|
750
|
-
return await this.#go(-1, options);
|
|
751
|
-
}
|
|
752
|
-
async goForward(options = {}) {
|
|
753
|
-
return await this.#go(+1, options);
|
|
754
|
-
}
|
|
755
|
-
async #go(delta, options) {
|
|
756
|
-
const history = await this.#primaryTargetClient.send('Page.getNavigationHistory');
|
|
757
|
-
const entry = history.entries[history.currentIndex + delta];
|
|
758
|
-
if (!entry) {
|
|
759
|
-
throw new Error('History entry to navigate to not found.');
|
|
760
|
-
}
|
|
761
|
-
const result = await Promise.all([
|
|
762
|
-
this.waitForNavigation(options),
|
|
763
|
-
this.#primaryTargetClient.send('Page.navigateToHistoryEntry', {
|
|
764
|
-
entryId: entry.id,
|
|
765
|
-
}),
|
|
766
|
-
]);
|
|
767
|
-
return result[0];
|
|
768
|
-
}
|
|
769
|
-
async bringToFront() {
|
|
770
|
-
await this.#primaryTargetClient.send('Page.bringToFront');
|
|
771
|
-
}
|
|
772
|
-
async setJavaScriptEnabled(enabled) {
|
|
773
|
-
return await this.#emulationManager.setJavaScriptEnabled(enabled);
|
|
774
|
-
}
|
|
775
|
-
async setBypassCSP(enabled) {
|
|
776
|
-
await this.#primaryTargetClient.send('Page.setBypassCSP', { enabled });
|
|
777
|
-
}
|
|
778
|
-
async emulateMediaType(type) {
|
|
779
|
-
return await this.#emulationManager.emulateMediaType(type);
|
|
780
|
-
}
|
|
781
|
-
async emulateCPUThrottling(factor) {
|
|
782
|
-
return await this.#emulationManager.emulateCPUThrottling(factor);
|
|
783
|
-
}
|
|
784
|
-
async emulateMediaFeatures(features) {
|
|
785
|
-
return await this.#emulationManager.emulateMediaFeatures(features);
|
|
786
|
-
}
|
|
787
|
-
async emulateTimezone(timezoneId) {
|
|
788
|
-
return await this.#emulationManager.emulateTimezone(timezoneId);
|
|
789
|
-
}
|
|
790
|
-
async emulateIdleState(overrides) {
|
|
791
|
-
return await this.#emulationManager.emulateIdleState(overrides);
|
|
792
|
-
}
|
|
793
|
-
async emulateVisionDeficiency(type) {
|
|
794
|
-
return await this.#emulationManager.emulateVisionDeficiency(type);
|
|
795
|
-
}
|
|
796
|
-
async setViewport(viewport) {
|
|
797
|
-
const needsReload = await this.#emulationManager.emulateViewport(viewport);
|
|
798
|
-
this.#viewport = viewport;
|
|
799
|
-
if (needsReload) {
|
|
800
|
-
await this.reload();
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
viewport() {
|
|
804
|
-
return this.#viewport;
|
|
805
|
-
}
|
|
806
|
-
async evaluateOnNewDocument(pageFunction, ...args) {
|
|
807
|
-
const source = evaluationString(pageFunction, ...args);
|
|
808
|
-
return await this.#frameManager.evaluateOnNewDocument(source);
|
|
809
|
-
}
|
|
810
|
-
async removeScriptToEvaluateOnNewDocument(identifier) {
|
|
811
|
-
return await this.#frameManager.removeScriptToEvaluateOnNewDocument(identifier);
|
|
812
|
-
}
|
|
813
|
-
async setCacheEnabled(enabled = true) {
|
|
814
|
-
await this.#frameManager.networkManager.setCacheEnabled(enabled);
|
|
815
|
-
}
|
|
816
|
-
async _screenshot(options) {
|
|
817
|
-
const env_2 = { stack: [], error: void 0, hasError: false };
|
|
818
|
-
try {
|
|
819
|
-
const { fromSurface, omitBackground, optimizeForSpeed, quality, clip: userClip, type, captureBeyondViewport, } = options;
|
|
820
|
-
const stack = __addDisposableResource(env_2, new AsyncDisposableStack(), true);
|
|
821
|
-
if (omitBackground && (type === 'png' || type === 'webp')) {
|
|
822
|
-
await this.#emulationManager.setTransparentBackgroundColor();
|
|
823
|
-
stack.defer(async () => {
|
|
824
|
-
await this.#emulationManager
|
|
825
|
-
.resetDefaultBackgroundColor()
|
|
826
|
-
.catch(debugError);
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
let clip = userClip;
|
|
830
|
-
if (clip && !captureBeyondViewport) {
|
|
831
|
-
const viewport = await this.mainFrame()
|
|
832
|
-
.isolatedRealm()
|
|
833
|
-
.evaluate(() => {
|
|
834
|
-
const { height, pageLeft: x, pageTop: y, width, } = window.visualViewport;
|
|
835
|
-
return { x, y, height, width };
|
|
836
|
-
});
|
|
837
|
-
clip = getIntersectionRect(clip, viewport);
|
|
838
|
-
}
|
|
839
|
-
const { data } = await this.#primaryTargetClient.send('Page.captureScreenshot', {
|
|
840
|
-
format: type,
|
|
841
|
-
optimizeForSpeed,
|
|
842
|
-
fromSurface,
|
|
843
|
-
...(quality !== undefined ? { quality: Math.round(quality) } : {}),
|
|
844
|
-
...(clip ? { clip: { ...clip, scale: clip.scale ?? 1 } } : {}),
|
|
845
|
-
captureBeyondViewport,
|
|
846
|
-
});
|
|
847
|
-
return data;
|
|
848
|
-
}
|
|
849
|
-
catch (e_2) {
|
|
850
|
-
env_2.error = e_2;
|
|
851
|
-
env_2.hasError = true;
|
|
852
|
-
}
|
|
853
|
-
finally {
|
|
854
|
-
const result_1 = __disposeResources(env_2);
|
|
855
|
-
if (result_1)
|
|
856
|
-
await result_1;
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
async createPDFStream(options = {}) {
|
|
860
|
-
const { timeout: ms = this._timeoutSettings.timeout() } = options;
|
|
861
|
-
const { landscape, displayHeaderFooter, headerTemplate, footerTemplate, printBackground, scale, width: paperWidth, height: paperHeight, margin, pageRanges, preferCSSPageSize, omitBackground, tagged: generateTaggedPDF, outline: generateDocumentOutline, waitForFonts, } = parsePDFOptions(options);
|
|
862
|
-
if (omitBackground) {
|
|
863
|
-
await this.#emulationManager.setTransparentBackgroundColor();
|
|
864
|
-
}
|
|
865
|
-
if (waitForFonts) {
|
|
866
|
-
await firstValueFrom(from(this.mainFrame()
|
|
867
|
-
.isolatedRealm()
|
|
868
|
-
.evaluate(() => {
|
|
869
|
-
return document.fonts.ready;
|
|
870
|
-
})).pipe(raceWith(timeout(ms))));
|
|
871
|
-
}
|
|
872
|
-
const printCommandPromise = this.#primaryTargetClient.send('Page.printToPDF', {
|
|
873
|
-
transferMode: 'ReturnAsStream',
|
|
874
|
-
landscape,
|
|
875
|
-
displayHeaderFooter,
|
|
876
|
-
headerTemplate,
|
|
877
|
-
footerTemplate,
|
|
878
|
-
printBackground,
|
|
879
|
-
scale,
|
|
880
|
-
paperWidth,
|
|
881
|
-
paperHeight,
|
|
882
|
-
marginTop: margin.top,
|
|
883
|
-
marginBottom: margin.bottom,
|
|
884
|
-
marginLeft: margin.left,
|
|
885
|
-
marginRight: margin.right,
|
|
886
|
-
pageRanges,
|
|
887
|
-
preferCSSPageSize,
|
|
888
|
-
generateTaggedPDF,
|
|
889
|
-
generateDocumentOutline,
|
|
890
|
-
});
|
|
891
|
-
const result = await firstValueFrom(from(printCommandPromise).pipe(raceWith(timeout(ms))));
|
|
892
|
-
if (omitBackground) {
|
|
893
|
-
await this.#emulationManager.resetDefaultBackgroundColor();
|
|
894
|
-
}
|
|
895
|
-
assert(result.stream, '`stream` is missing from `Page.printToPDF');
|
|
896
|
-
return await getReadableFromProtocolStream(this.#primaryTargetClient, result.stream);
|
|
897
|
-
}
|
|
898
|
-
async pdf(options = {}) {
|
|
899
|
-
const { path = undefined } = options;
|
|
900
|
-
const readable = await this.createPDFStream(options);
|
|
901
|
-
const typedArray = await getReadableAsTypedArray(readable, path);
|
|
902
|
-
assert(typedArray, 'Could not create typed array');
|
|
903
|
-
return typedArray;
|
|
904
|
-
}
|
|
905
|
-
async close(options = { runBeforeUnload: undefined }) {
|
|
906
|
-
const env_3 = { stack: [], error: void 0, hasError: false };
|
|
907
|
-
try {
|
|
908
|
-
const _guard = __addDisposableResource(env_3, await this.browserContext().waitForScreenshotOperations(), false);
|
|
909
|
-
const connection = this.#primaryTargetClient.connection();
|
|
910
|
-
assert(connection, 'Connection closed. Most likely the page has been closed.');
|
|
911
|
-
const runBeforeUnload = !!options.runBeforeUnload;
|
|
912
|
-
if (runBeforeUnload) {
|
|
913
|
-
await this.#primaryTargetClient.send('Page.close');
|
|
914
|
-
}
|
|
915
|
-
else {
|
|
916
|
-
await connection.send('Target.closeTarget', {
|
|
917
|
-
targetId: this.#primaryTarget._targetId,
|
|
918
|
-
});
|
|
919
|
-
await this.#tabTarget._isClosedDeferred.valueOrThrow();
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
catch (e_3) {
|
|
923
|
-
env_3.error = e_3;
|
|
924
|
-
env_3.hasError = true;
|
|
925
|
-
}
|
|
926
|
-
finally {
|
|
927
|
-
__disposeResources(env_3);
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
isClosed() {
|
|
931
|
-
return this.#closed;
|
|
932
|
-
}
|
|
933
|
-
get mouse() {
|
|
934
|
-
return this.#mouse;
|
|
935
|
-
}
|
|
936
|
-
/**
|
|
937
|
-
* This method is typically coupled with an action that triggers a device
|
|
938
|
-
* request from an api such as WebBluetooth.
|
|
939
|
-
*
|
|
940
|
-
* :::caution
|
|
941
|
-
*
|
|
942
|
-
* This must be called before the device request is made. It will not return a
|
|
943
|
-
* currently active device prompt.
|
|
944
|
-
*
|
|
945
|
-
* :::
|
|
946
|
-
*
|
|
947
|
-
* @example
|
|
948
|
-
*
|
|
949
|
-
* ```ts
|
|
950
|
-
* const [devicePrompt] = Promise.all([
|
|
951
|
-
* page.waitForDevicePrompt(),
|
|
952
|
-
* page.click('#connect-bluetooth'),
|
|
953
|
-
* ]);
|
|
954
|
-
* await devicePrompt.select(
|
|
955
|
-
* await devicePrompt.waitForDevice(({name}) => name.includes('My Device')),
|
|
956
|
-
* );
|
|
957
|
-
* ```
|
|
958
|
-
*/
|
|
959
|
-
async waitForDevicePrompt(options = {}) {
|
|
960
|
-
return await this.mainFrame().waitForDevicePrompt(options);
|
|
961
|
-
}
|
|
962
|
-
get bluetooth() {
|
|
963
|
-
return this.#cdpBluetoothEmulation;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
const supportedMetrics = new Set([
|
|
967
|
-
'Timestamp',
|
|
968
|
-
'Documents',
|
|
969
|
-
'Frames',
|
|
970
|
-
'JSEventListeners',
|
|
971
|
-
'Nodes',
|
|
972
|
-
'LayoutCount',
|
|
973
|
-
'RecalcStyleCount',
|
|
974
|
-
'LayoutDuration',
|
|
975
|
-
'RecalcStyleDuration',
|
|
976
|
-
'ScriptDuration',
|
|
977
|
-
'TaskDuration',
|
|
978
|
-
'JSHeapUsedSize',
|
|
979
|
-
'JSHeapTotalSize',
|
|
980
|
-
]);
|
|
981
|
-
/** @see https://w3c.github.io/webdriver-bidi/#rectangle-intersection */
|
|
982
|
-
function getIntersectionRect(clip, viewport) {
|
|
983
|
-
// Note these will already be normalized.
|
|
984
|
-
const x = Math.max(clip.x, viewport.x);
|
|
985
|
-
const y = Math.max(clip.y, viewport.y);
|
|
986
|
-
return {
|
|
987
|
-
x,
|
|
988
|
-
y,
|
|
989
|
-
width: Math.max(Math.min(clip.x + clip.width, viewport.x + viewport.width) - x, 0),
|
|
990
|
-
height: Math.max(Math.min(clip.y + clip.height, viewport.y + viewport.height) - y, 0),
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
/**
|
|
994
|
-
* @internal
|
|
995
|
-
*/
|
|
996
|
-
export function convertCookiesPartitionKeyFromPuppeteerToCdp(partitionKey) {
|
|
997
|
-
if (partitionKey === undefined) {
|
|
998
|
-
return undefined;
|
|
999
|
-
}
|
|
1000
|
-
if (typeof partitionKey === 'string') {
|
|
1001
|
-
return {
|
|
1002
|
-
topLevelSite: partitionKey,
|
|
1003
|
-
hasCrossSiteAncestor: false,
|
|
1004
|
-
};
|
|
1005
|
-
}
|
|
1006
|
-
return {
|
|
1007
|
-
topLevelSite: partitionKey.sourceOrigin,
|
|
1008
|
-
hasCrossSiteAncestor: partitionKey.hasCrossSiteAncestor ?? false,
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
//# sourceMappingURL=Page.js.map
|